:root {
  --ink: #050505;
  --panel: #101010;
  --paper: #f2f1ec;
  --muted: #999;
  --line: rgba(255,255,255,.16);
  --orange: #ff4b1b;
  --width: 1440px;
  --heading: "Manrope", sans-serif;
  --body: "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--ink); }
body { background: var(--ink); color: var(--paper); font-family: var(--body); line-height: 1.6; overflow-x: hidden; }
img, video { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: var(--orange); color: #fff; }
.page-width { width: min(calc(100% - 80px), var(--width)); margin-inline: auto; }
.eyebrow { color: var(--orange); font-size: .67rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.case-header { position: absolute; z-index: 10; inset: 0 0 auto; height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(40px, calc((100vw - var(--width))/2)); }
.case-brand { width: 92px; height: 58px; }
.case-brand img { height: 100%; object-fit: contain; object-position: left center; }
.case-back { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.case-back span { margin-right: 9px; color: var(--orange); }

.case-hero { position: relative; min-height: 88svh; display: flex; align-items: flex-start; overflow: hidden; background: #111; }
.case-hero > img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.24) 70%), linear-gradient(0deg, rgba(0,0,0,.7), transparent 55%); }
.case-hero__content { position: relative; z-index: 1; width: min(1120px, calc(100% - 80px)); margin: 0 auto; padding-top: clamp(150px, 19vh, 220px); }
.case-hero h1 { max-width: 1050px; margin-top: 24px; font: 700 clamp(3.5rem, 9vw, 9rem)/.9 var(--heading); letter-spacing: -.065em; text-transform: uppercase; text-wrap: balance; }
.case-hero__industry { display: inline-block; margin-top: 32px; color: rgba(255,255,255,.68); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; }

.case-main { padding-bottom: 100px; }
.rule { width: min(calc(100% - 80px), var(--width)); height: 1px; margin: clamp(70px, 9vw, 135px) auto; border: 0; background: var(--line); }
.case-section { width: min(calc(100% - 80px), 1240px); margin-inline: auto; }
.overview { display: grid; grid-template-columns: .35fr 1.65fr; gap: clamp(45px, 8vw, 120px); }
.overview-copy h2, .section-heading h2 { font: 700 clamp(2.8rem, 6vw, 6.8rem)/.94 var(--heading); letter-spacing: -.055em; text-transform: uppercase; }
.overview-copy > p { max-width: 980px; margin-top: 32px; color: #d0d0cc; font-size: clamp(1.08rem, 1.8vw, 1.38rem); line-height: 1.75; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-top: 90px; }
.detail-block h3 { padding-bottom: 18px; border-bottom: 1px solid var(--line); font: 700 1rem var(--heading); letter-spacing: .12em; text-transform: uppercase; }
.detail-block ul { list-style: none; }
.detail-block li { position: relative; padding: 19px 0 19px 28px; border-bottom: 1px solid var(--line); color: #c4c4c0; }
.detail-block li::before { content: "↗"; position: absolute; left: 0; color: var(--orange); }

.platform-section { width: min(calc(100% - 80px), 1240px); margin-inline: auto; }
.platform-panel { position: relative; isolation: isolate; min-height: clamp(440px, 45vw, 590px); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: clamp(38px, 5vw, 64px) clamp(24px, 7vw, 90px); border: 1px solid var(--line); background: radial-gradient(circle at 50% 135%, rgba(255,75,27,.22), transparent 44%), linear-gradient(145deg, #151515, #080808 70%); text-align: center; }
.platform-panel::before { content: ""; position: absolute; z-index: -1; top: -180px; left: 50%; width: 440px; height: 440px; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(255,255,255,.01); }
.platform-panel::after { content: ""; position: absolute; z-index: -1; right: -90px; bottom: -140px; width: 320px; height: 320px; border-radius: 50%; background: var(--orange); filter: blur(150px); opacity: .12; }
.platform-panel .eyebrow { color: var(--muted); }
.platform-panel h2 { max-width: 1050px; margin: 16px auto 0; font: 700 clamp(2.5rem, 5.3vw, 5.9rem)/.91 var(--heading); letter-spacing: -.06em; text-transform: uppercase; text-wrap: balance; }
.platform-panel h2 span { color: var(--orange); }
.platform-grid { display: flex; justify-content: center; gap: clamp(14px, 3vw, 30px); margin-top: clamp(30px, 4vw, 48px); }
.platform-card { width: clamp(105px, 12vw, 145px); aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); box-shadow: 0 22px 65px rgba(0,0,0,.38); transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.platform-card::after { content: ""; position: absolute; inset: auto 20% -40% 20%; height: 70%; border-radius: 50%; background: var(--orange); filter: blur(38px); opacity: 0; transition: opacity .3s ease; }
.platform-card img { position: absolute; z-index: 1; width: 68%; height: 68%; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.28)); transition: opacity .3s ease, transform .3s ease; }
.platform-icon--color { opacity: 0; transform: scale(.88); }
.platform-card:hover, .platform-card:focus-within { transform: translateY(-8px); border-color: rgba(255,75,27,.7); background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,75,27,.04)); }
.platform-card:hover::after, .platform-card:focus-within::after { opacity: .22; }
.platform-card:hover .platform-icon--mono, .platform-card:focus-within .platform-icon--mono { opacity: 0; transform: scale(.88); }
.platform-card:hover .platform-icon--color, .platform-card:focus-within .platform-icon--color { opacity: 1; transform: scale(1); }
.platform-card span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section-heading { display: grid; grid-template-columns: .35fr 1.65fr; gap: clamp(45px, 8vw, 120px); align-items: end; margin-bottom: 48px; }
.section-heading p:last-child { max-width: 490px; color: var(--muted); line-height: 1.75; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-card { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--panel); }
.video-card video { height: 100%; object-fit: cover; }
.video-card::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; }
.video-card span { position: absolute; z-index: 1; left: 20px; bottom: 18px; color: rgba(255,255,255,.72); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.media-note { margin-top: 18px; color: #666; font-size: .72rem; line-height: 1.6; }

.comparison { --split: 50%; position: relative; width: min(100%, 1040px); aspect-ratio: 1 / 1; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); background: #0b0b0b; cursor: ew-resize; touch-action: pan-y; }
.social-layer { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: #050505; }
.social-layer--after { clip-path: inset(0 0 0 var(--split)); }
.social-tile { position: relative; overflow: hidden; background: #161616; }
.social-tile img { height: 100%; object-fit: cover; }
.social-layer--before img { filter: grayscale(1) contrast(.82) brightness(.62); }
.social-layer--after img { filter: saturate(1.08) contrast(1.03); }
.comparison-label { position: absolute; z-index: 4; top: 18px; padding: 8px 11px; background: rgba(0,0,0,.72); font-size: .61rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.comparison-label--before { left: 18px; }
.comparison-label--after { right: 18px; }
.comparison-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--split); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); transform: translateX(-1px); pointer-events: none; }
.comparison-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; font-size: 1.2rem; transform: translate(-50%, -50%); box-shadow: 0 10px 35px rgba(0,0,0,.45); }
.comparison input { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }

.case-next { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-top: 12px; }
.case-next span { color: var(--muted); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.case-next strong { display: block; margin-top: 14px; font: 700 clamp(2.3rem, 6vw, 6.5rem)/.95 var(--heading); letter-spacing: -.055em; text-transform: uppercase; }
.case-next b { color: var(--orange); font-size: 2rem; }
.case-footer { padding: 42px 0; border-top: 1px solid var(--line); color: #666; font-size: .65rem; letter-spacing: .14em; text-align: center; text-transform: uppercase; }

.archive-hero { min-height: 68svh; display: flex; align-items: flex-end; padding: 180px 0 90px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 25%, rgba(255,75,27,.16), transparent 28%), var(--ink); }
.archive-hero__inner { width: min(calc(100% - 80px), var(--width)); margin-inline: auto; }
.archive-hero h1 { max-width: 1100px; margin-top: 24px; font: 700 clamp(4rem, 10vw, 10rem)/.86 var(--heading); letter-spacing: -.07em; text-transform: uppercase; }
.archive-hero h1 span { color: #555; }
.archive-hero p:last-child { max-width: 640px; margin-top: 38px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.archive { padding: clamp(80px, 10vw, 150px) 0; }
.archive-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.archive-card { position: relative; min-height: clamp(390px, 47vw, 660px); overflow: hidden; background: var(--panel); }
.archive-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.archive-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.9), transparent 62%); }
.archive-card__copy { position: absolute; z-index: 1; inset: auto 30px 28px; }
.archive-card__copy span { color: var(--orange); font-size: .64rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.archive-card__copy h2 { max-width: 720px; margin-top: 10px; font: 700 clamp(2rem, 4.3vw, 4.8rem)/.94 var(--heading); letter-spacing: -.055em; text-transform: uppercase; }
.archive-card__copy b { display: inline-block; margin-top: 20px; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; }
.archive-card:hover img, .archive-card:focus-visible img { transform: scale(1.035); }
.archive-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

@media (max-width: 820px) {
  .page-width, .case-section, .rule { width: calc(100% - 40px); }
  .case-header { height: 78px; padding-inline: 20px; }
  .case-brand { width: 78px; height: 48px; }
  .case-hero { min-height: 75svh; }
  .case-hero__content { width: calc(100% - 40px); padding-top: 135px; }
  .case-hero h1 { font-size: clamp(3rem, 14vw, 6rem); }
  .overview, .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .detail-grid { grid-template-columns: 1fr; gap: 50px; margin-top: 65px; }
  .video-grid { gap: 7px; }
  .video-card span { left: 10px; bottom: 10px; font-size: .52rem; }
  .comparison-label { top: 10px; }
  .comparison-label--before { left: 10px; }
  .comparison-label--after { right: 10px; }
  .archive-hero__inner { width: calc(100% - 40px); }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-card { min-height: 72vw; }
  .platform-section { width: calc(100% - 40px); }
  .platform-panel { padding-inline: 18px; }
  .platform-grid { gap: 9px; }
  .platform-card { width: min(29%, 132px); border-radius: 20px; }
}

@media (max-width: 520px) {
  .case-hero h1 { font-size: 3.1rem; }
  .case-back { font-size: .6rem; }
  .video-grid { overflow-x: auto; grid-template-columns: repeat(3, minmax(245px, 72vw)); padding-bottom: 12px; scroll-snap-type: x mandatory; }
  .video-card { scroll-snap-align: start; }
  .comparison-handle::after { width: 44px; height: 44px; }
  .case-next { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
