/* Industry + case study pages. Same design language as the homepage. */
@font-face { font-family: 'Inter Tight'; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/inter-tight.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; src: url(/assets/fonts/instrument-serif-italic.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-display: swap; src: url(/assets/fonts/jetbrains-mono.woff2) format('woff2'); }

:root {
  --ink: #0b0b0c; --ink-2: #151517; --paper: #efede8; --lime: #d4ff3a;
  --f-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --muted-d: rgba(239, 237, 232, .62); --line-d: rgba(239, 237, 232, .14);
  --muted-l: rgba(11, 11, 12, .62); --line-l: rgba(11, 11, 12, .14);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body { background: var(--ink); color: var(--paper); font-family: var(--f-sans); font-size: 17px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.ico { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--lime); color: var(--ink); border-radius: 10px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; background: var(--lime); color: var(--ink); transition: transform .5s var(--ease), background-color .3s, color .3s; }
.btn:hover { transform: translateY(-2px); }
.btn__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--lime); transition: transform .5s var(--ease); }
.btn:hover .btn__ic { transform: rotate(45deg); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; padding-right: 24px; }
.btn--sm { height: 44px; padding-left: 18px; font-size: .92rem; }
.btn--sm .btn__ic { width: 30px; height: 30px; }

/* nav */
.nav { position: fixed; z-index: 50; left: var(--gutter); right: var(--gutter); top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 10px 0 26px; max-width: 1488px; margin-inline: auto; border-radius: 999px; background: rgba(15, 15, 17, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; gap: 30px; font-weight: 500; font-size: .96rem; }
.nav__links a { opacity: .86; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; color: var(--lime); }
@media (max-width: 860px) { .nav__links { display: none; } .nav { padding-left: 18px; } }

/* hero */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: flex-end; overflow: hidden; padding: 150px 0 clamp(40px, 6vw, 80px); background: var(--bgc); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--rgb)) 0%, rgba(var(--rgb), .95) 34%, rgba(var(--rgb), .5) 58%, rgba(var(--rgb), .08) 100%), linear-gradient(180deg, rgba(var(--rgb), .55) 0%, rgba(var(--rgb), 0) 18%, rgba(var(--rgb), 0) 72%, rgb(var(--rgb)) 100%); }
@media (max-width: 767px) { .hero::after { background: linear-gradient(180deg, rgba(var(--rgb), .5) 0%, rgba(var(--rgb), .25) 22%, rgba(var(--rgb), .94) 56%, rgb(var(--rgb)) 100%); } }
.hero .wrap { position: relative; z-index: 2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--hero-muted); }
.crumbs a:hover { color: var(--hero-fg); }
.hero h1 { margin-top: 22px; font-size: clamp(3rem, 9.4vw, 9rem); font-weight: 500; letter-spacing: -.055em; line-height: .94; color: var(--hero-fg); }
.hero h1 em { color: var(--ac-hero, var(--ac)); }
.hero__row { display: block; margin-top: clamp(24px, 3vw, 44px); color: var(--hero-fg); }
.hero__lead { max-width: 58ch; font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--hero-muted); }
@media (max-width: 767px) { .hero { min-height: 86vh; padding-top: 120px; } }

/* section heads */
.sec { padding-block: clamp(70px, 10vw, 150px); }
.sec--paper { background: var(--paper); color: var(--ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.h2 { margin-top: 16px; font-size: clamp(2.3rem, 5.6vw, 5.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.sec--paper .h2 em { color: var(--ac-ink); }

/* needs */
.needs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(30px, 6vw, 110px); }
.needs__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding-block: 26px; border-top: 1px solid var(--line-l); }
.needs__list li:last-child { border-bottom: 1px solid var(--line-l); }
.needs__n { color: var(--ac-ink); padding-top: 5px; }
.needs__list h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.needs__list p { margin-top: 8px; color: var(--muted-l); max-width: 58ch; }
@media (max-width: 860px) { .needs { grid-template-columns: minmax(0, 1fr); } }

/* case study */
.case { padding-block: clamp(70px, 10vw, 140px); border-top: 1px solid var(--line-d); scroll-margin-top: 60px; }
.case:first-of-type { border-top: 0; }
.case__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 22px; }
.case__kick { display: flex; gap: 14px; color: var(--muted-d); }
.case__kick b { color: var(--ac); font-weight: 400; }
.case__title { margin-top: 12px; font-size: clamp(2.6rem, 7vw, 7rem); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.case__art { position: relative; display: block; margin-top: clamp(26px, 3.4vw, 50px); overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.case__art img { width: 100%; transition: transform 1.4s var(--ease); }
.case__art:hover img { transform: scale(1.025); }
.live { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: .96rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .5s var(--ease); }
.case__art:hover .live { transform: scale(1.05); }
.case__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(26px, 4vw, 70px); margin-top: clamp(36px, 5vw, 70px); }
.case__h { color: var(--ac); margin-bottom: 14px; display: block; }
.case__brief { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.38; letter-spacing: -.015em; }
.built li { display: flex; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line-d); color: rgba(239, 237, 232, .86); }
.built li:last-child { border-bottom: 1px solid var(--line-d); }
.built svg { color: var(--ac); margin-top: 5px; flex: none; }
.facts div { padding-block: 12px; border-top: 1px solid var(--line-d); }
.facts div:last-child { border-bottom: 1px solid var(--line-d); }
.facts dt { color: var(--muted-d); font-size: .7rem; }
.facts dd { margin-top: 3px; font-weight: 500; }
@media (max-width: 960px) { .case__grid { grid-template-columns: minmax(0, 1fr); } }

/* screens */
.screens { display: flex; gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(36px, 5vw, 70px); padding-bottom: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line-d) transparent; }
.screen { flex: none; scroll-snap-align: start; margin: 0; }
.screen--d { width: min(72vw, 720px); }
.screen--m { width: min(42vw, 236px); }
.frame { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.frame__bar { display: flex; gap: 6px; align-items: center; height: 30px; padding-inline: 12px; background: #1b1b1f; }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: #55565c; }
.frame img { width: 100%; }
.screen--m .frame { padding: 7px; border-radius: 34px; background: #17171a; }
.screen--m .frame img { border-radius: 27px; }
.screen figcaption { margin-top: 10px; color: var(--muted-d); font-size: .68rem; }

/* quote + actions */
.quote { margin-top: clamp(36px, 5vw, 70px); padding: clamp(26px, 4vw, 54px); border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-d); }
.quote p { max-width: 42ch; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1.14; letter-spacing: -.015em; }
.quote footer { margin-top: 20px; color: var(--muted-d); }
.quote footer b { display: block; color: var(--paper); font-weight: 600; font-family: var(--f-sans); font-size: .98rem; letter-spacing: 0; text-transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 4vw, 54px); }

/* included */
.incl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(30px, 4vw, 54px); }
.incl li { padding: 26px 22px; border-radius: var(--radius); background: #fff; }
.incl b { display: block; font-size: 1.16rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.incl span { display: block; margin-top: 8px; color: var(--muted-l); font-size: .94rem; line-height: 1.45; }
@media (max-width: 960px) { .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .incl { grid-template-columns: minmax(0, 1fr); } }

/* other industries */
.more { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: clamp(30px, 4vw, 54px); }
.more a { display: block; }
.more__img { overflow: hidden; border-radius: 16px; }
.more img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.more a:hover img { transform: scale(1.06); }
.more b { display: block; margin-top: 12px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
@media (max-width: 1100px) { .more { display: flex; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; } .more a { flex: 0 0 min(62vw, 300px); scroll-snap-align: start; } }

/* cta + footer */
.cta { background: var(--lime); color: var(--ink); padding-block: clamp(70px, 10vw, 150px); }
.cta h2 { font-size: clamp(2.8rem, 8.6vw, 8.6rem); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 50px); }
.cta .btn { background: var(--ink); color: var(--paper); }
.cta .btn__ic { background: var(--lime); color: var(--ink); }
.cta .btn--ghost { background: transparent; color: var(--ink); padding-right: 24px; }
.foot { padding-block: 44px 34px; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 34px; }
.foot__row img { height: 24px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .96rem; }
.foot__links a:hover { color: var(--lime); }
.foot__sm { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-d); color: var(--muted-d); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* reveal, only once JS has confirmed it can run it */
.js .r { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .r.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .r { opacity: 1; transform: none; transition: none; } }
