@font-face { font-family: 'Alliance No. 2'; src: url('/assets/fonts/AllianceNo2-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Alliance No. 2'; src: url('/assets/fonts/AllianceNo2-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alliance No. 2'; src: url('/assets/fonts/AllianceNo2-Medium.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Alliance No. 2'; src: url('/assets/fonts/AllianceNo2-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/fonts/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* grid and type measured from helsing.ai at 1440 and 390 (reference/helsing) */
:root {
  --ink: #08090b;
  --fg: #f3f1ec;
  --fg-dim: rgb(243 241 236 / .66);
  --fg-line: rgb(243 241 236 / .2);
  --paper: #e3dcd1;
  --paper-ink: #1f1e1e;
  --paper-dim: #545356;
  --paper-line: rgb(31 30 30 / .2);
  --stone: #a9a6a2;
  --ember: #cf5f22;
  --gutter: clamp(32px, 3.9vw, 56px);
  --gap: 16px;
  --col: calc((100vw - 2 * var(--gutter) - 11 * var(--gap)) / 12);
  --span: calc(var(--col) + var(--gap));
  --section: clamp(56px, 5.6vw, 80px);
  --t-display: clamp(24px, 5vw, 72px);
  --t-title: clamp(24px, 2.78vw, 40px);
  --t-lead: clamp(16px, 1.67vw, 24px);
  --t-body: clamp(14px, 1.39vw, 20px);
  --t-ui: clamp(14px, 1.25vw, 18px);
  --t-label: clamp(12px, 1.67vw, 24px);
  --t-meta: clamp(11px, 1.11vw, 16px);
  --ease: cubic-bezier(.16, .84, .24, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--fg); font: 400 var(--t-body)/1.3 'Alliance No. 2', 'Helvetica Neue', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
ul { list-style: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip { position: fixed; left: var(--gutter); top: -60px; z-index: 30; padding: 10px 14px; background: var(--fg); color: var(--ink); }
.skip:focus { top: 12px; }

.label { font-size: var(--t-label); line-height: 1; text-transform: uppercase; font-weight: 400; }
.meta { font-size: var(--t-meta); line-height: 1.1; text-transform: uppercase; font-weight: 400; }

.box { display: inline-block; padding: 8px 24px; border: 1px solid currentColor; font-size: var(--t-ui); line-height: calc(var(--t-ui) + 4px); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease); }
.box:active { transform: scale(.97); }
/* a tap leaves :hover stuck on touch screens */
@media (hover: hover) { .box:hover { background: var(--fg); color: var(--ink); border-color: var(--fg); } }
@media (pointer: coarse) { .box { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; } }

.film { width: 100%; height: 100%; object-fit: cover; background: #000; }

/* safari styles the header and the autoplay film before this sheet lands; without the hold the menu and the film fade in from browser defaults on load */
:root:not(.is-live) * { transition: none !important; }

/* header */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 var(--gutter); transition: transform .5s var(--ease), background-color .4s var(--ease); }
.bar.is-solid { background: var(--ink); }
.bar.is-hidden { transform: translateY(-100%); }
.bar-mark, .foot-mark { display: inline-flex; align-items: center; gap: 10px; font-family: 'Geist', sans-serif; font-size: 20px; line-height: 1; letter-spacing: -.01em; }
.bar-mark img { width: auto; height: 30px; }
.bar-nav { display: flex; align-items: center; gap: 32px; font-size: var(--t-ui); line-height: 22px; text-transform: uppercase; }
.bar-nav a:not(.box) { opacity: .86; background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: opacity .2s, background-size .35s var(--ease); }
.bar-nav a:not(.box):hover { opacity: 1; background-size: 100% 1px; }
.bar-nav .box { padding: 6px 12px; font-size: 14px; line-height: 20px; color: var(--ember); background: var(--ink); }
.bar-nav .box:hover { background: var(--ember); border-color: var(--ember); color: var(--ink); }
.bar-nav .lang { opacity: .55; letter-spacing: .06em; }
.bar-nav .lang:hover { opacity: 1; }
.bar-menu { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: var(--fg); cursor: pointer; }
.bar-menu span { display: block; width: 24px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .35s var(--ease); }
.bar-menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.bar-menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* opening: one film behind hero and statement */
.opening { position: relative; }
.opening-film { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; }
.opening-film .film { opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 2.6s var(--ease); }
.is-ready .opening-film .film { opacity: 1; transform: scale(1); }
.opening-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(8 9 11 / .35), rgb(8 9 11 / 0) 22%, rgb(8 9 11 / 0) 60%, rgb(8 9 11 / .55)); }
/* case films vary in brightness; the client caption sits lower than the home statement */
.case .opening-shade { background: radial-gradient(120% 80% at 0% 100%, rgb(8 9 11 / .74), rgb(8 9 11 / 0)), linear-gradient(to bottom, rgb(8 9 11 / .64), rgb(8 9 11 / 0) 24%, rgb(8 9 11 / 0) 36%, rgb(8 9 11 / .62)); }
.opening-shade::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: var(--dim, 0); transition: opacity .4s var(--ease); }
.hero { position: relative; height: 100svh; display: flex; align-items: flex-end; padding: 0 1vw; }
.hero-word { width: 100%; font-weight: 700; line-height: .74; letter-spacing: -.035em; white-space: nowrap; font-size: 27vw; margin-bottom: -.04em; overflow: hidden; padding-top: .12em; }
/* home: the homodeus.co title stacked on the film, its subtitle under it */
.home-hero { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 24px; padding-bottom: 40px; }
/* fit() lands on these for this copy; starting here keeps the title from collapsing after first paint. New title = new ratios */
.hero-title { line-height: .8; text-transform: uppercase; margin-bottom: 0; font-size: 7.14vw; }
.hero-title:lang(pt) { font-size: 8.46vw; }
.hero-title .sm { display: none; }
.hero-sub { padding: 0 1vw; font-size: var(--t-lead); line-height: 1.25; font-weight: 500; text-shadow: 0 0 24px rgb(8 9 11 / .6); opacity: 0; transform: translateY(1em); transition: opacity .8s var(--ease) 1.45s, transform .8s var(--ease) 1.45s; }
.hero-word span { display: block; transform: translateY(105%); transition: transform 1.5s var(--ease) .25s; }
.is-ready .hero-word span { transform: none; }
.is-ready .hero-sub { opacity: 1; transform: none; }
/* the pinned film is covered by the next section; a soft lead edge hides the seam, the statement stays above it */
.opening + section::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 45svh; background: linear-gradient(rgb(8 9 11 / 0), var(--ink)); pointer-events: none; }
.statement { position: relative; z-index: 1; min-height: 100svh; display: grid; align-content: end; padding: 120px var(--gutter) 70px; }
.statement h2 { width: calc(9 * var(--col) + 8 * var(--gap)); font-size: var(--t-display); line-height: .9; letter-spacing: -.014em; font-weight: 500; text-indent: var(--span); margin-bottom: 50px; }
.statement-body { display: grid; gap: 1.3em; text-wrap: balance; width: calc(5 * var(--col) + 4 * var(--gap)); margin-left: calc(2 * var(--span)); font-weight: 500; }

/* clients */
.clients { position: relative; padding: var(--section) var(--gutter); background: var(--ink); }
.clients .label { color: var(--fg-dim); margin-bottom: 48px; }
.logos { --logo: 56px; --cap: 40px; display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; justify-items: center; gap: 48px var(--gap); align-items: center; }
.logos li { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; }
.logos img { height: min(var(--cap), calc(var(--logo) / sqrt(var(--r, 4)))); width: auto; opacity: .85; }
/* lit copy on its own layer, only its opacity moves; safari paints a logo black when a drop-shadow shares its filter chain mid-animation */
@media (hover: hover) and (pointer: fine) {
  .logos li::after { content: ''; position: absolute; inset: 0; background: var(--src) center / contain no-repeat; filter: drop-shadow(0 0 14px rgb(255 255 255 / .55)); opacity: 0; transition: opacity .7s ease-in-out; will-change: opacity; pointer-events: none; }
  .logos li:hover::after { opacity: 1; transition-duration: .5s; }
}

/* systems */
.systems { position: relative; display: grid; gap: 2px; background: var(--ink); }
.system { display: block; position: relative; height: clamp(440px, 75svh, 780px); overflow: hidden; isolation: isolate; }
.system-film { position: absolute; inset: 0; z-index: -1; will-change: transform; transition: transform .5s var(--ease); }
.system::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(8 9 11 / .82), rgb(8 9 11 / .52) 42%, rgb(8 9 11 / 0) 76%); }
.system-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 72px; display: grid; justify-items: start; text-shadow: 0 0 24px rgb(8 9 11 / .6); }
.system-copy .meta { color: var(--fg-dim); margin-bottom: 14px; }
.system-copy h2, .system-copy h3, .system-line { font-size: var(--t-title); line-height: 1; font-weight: 500; letter-spacing: -.01em; }
.system-line { color: var(--fg-dim); margin-bottom: 40px; text-wrap: balance; }
.system-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.system:focus-visible { outline-offset: -8px; }
.system .box { transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease); }
.system:active .box { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .system:hover .box { background: var(--fg); color: var(--ink); border-color: var(--fg); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .system .film { transition: transform 1.2s var(--ease); }
  .system:hover .film { transform: scale(1.04); }
}
/* the door out of the home selection, one seam under the grid */
.system-all { margin-top: 2px; }
.system-all h3 { font-size: var(--t-display); line-height: .9; letter-spacing: -.014em; margin-bottom: 32px; }
/* /cases: the word alone on its film, then every banner */
.cases-hero { z-index: 1; }
.cases-index .system { height: clamp(420px, 68svh, 720px); }

/* careers: the film holds the screen while the scroll plays one line at a time */
.careers { position: relative; background: var(--ink); }
.careers-stage { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 32px; min-height: 100svh; padding: 104px var(--gutter) var(--gutter); overflow: hidden; }
.careers-film { position: absolute; inset: 0; }
.careers-film .film { transition: transform .5s var(--ease); }
.careers-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(8 9 11 / .22), rgb(8 9 11 / .16) 40%, rgb(8 9 11 / .74)); }
.careers-stage > :not(.careers-film) { position: relative; }
.careers-lines { display: grid; align-content: end; gap: 1em; width: min(100%, calc(11 * var(--col) + 10 * var(--gap))); margin: 0; padding: 0; list-style: none; font-size: clamp(36px, 6.2vw, 100px); line-height: .98; letter-spacing: -.014em; font-weight: 500; }
.careers-lines span { display: block; text-wrap: balance; }
.careers-lines li:last-child { font-size: 1.7em; line-height: .94; }
.careers.is-playing { height: 420svh; }
.is-playing .careers-stage { position: sticky; top: 0; height: 100svh; }
.is-playing .careers-lines { gap: 0; }
.is-playing .careers-lines li { grid-area: 1 / 1; align-self: end; opacity: 0; transform: translateY(.3em); transition: opacity .25s ease, transform .25s ease; }
.is-playing .careers-lines li.is-on { opacity: 1; transform: none; transition: opacity .7s var(--ease) .14s, transform 1s var(--ease) .14s; }
.careers.is-end .box { background: var(--ember); border-color: var(--ember); color: var(--ink); }

/* paper: newsroom */
.paper { background: var(--paper); color: var(--paper-ink); padding-bottom: var(--section); }
.paper .label, .paper .meta { color: var(--paper-dim); }
.newsroom { padding: var(--section) var(--gutter) 0; }
.newsroom { padding-top: calc(var(--section) * 2); }
.newsroom .label { margin-bottom: 48px; }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news a { display: grid; gap: 12px; }
.news img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; background: #111; transition: opacity .3s; }
.news a:hover img { opacity: .82; }
.news-meta time::before { content: '| '; }
.news-title { font-size: var(--t-body); line-height: 1.3; font-weight: 500; margin-top: -4px; text-wrap: balance; }

/* homepage newsroom: horizontal widget rail, dragged or scrolled to the right */
.news-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; cursor: grab; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.news-rail::-webkit-scrollbar { display: none; }
.news-rail.dragging { cursor: grabbing; }
.news-rail.dragging a { pointer-events: none; }
.news-card { flex: 0 0 clamp(248px, 30vw, 340px); scroll-snap-align: start; }
.news-card a { display: grid; gap: 14px; }
.news-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .3s; }
.news-rail:not(.is-in) .news-media img { transform: scale(1.1); }
@media (hover: hover) { .news-card a:hover .news-media img { transform: scale(1.03); opacity: .9; } }
.news-mark { display: grid; place-items: center; width: 100%; height: 100%; padding: 16px; color: var(--fg); font-size: clamp(18px, 2vw, 26px); letter-spacing: -.01em; font-weight: 500; text-align: center; text-wrap: balance; }
.news-card .news-title { margin: 0; }
.news-card .news-meta { color: var(--paper-dim); }

/* footer */
.foot { background: var(--stone); color: var(--paper-ink); padding: 32px var(--gutter) 8px; overflow: hidden; }
.foot-word { font-size: 13vw; line-height: .9; letter-spacing: -.04em; white-space: nowrap; padding: 2vw 0 5vw; }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gap); align-items: start; font-size: 16px; line-height: 22px; }
.foot-mark { grid-column: 1 / span 4; filter: brightness(0); font-size: 24px; gap: 12px; }
.foot-mark img { width: auto; height: 44px; }
.foot-col { grid-column: span 2; display: grid; gap: 16px; }
.foot-mark + .foot-col { grid-column: 7 / span 2; }
.foot-col a { justify-self: start; color: rgb(31 30 30 / .78); background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: color .2s, background-size .35s var(--ease); }
@media (hover: hover) { .foot-col a:hover { color: var(--paper-ink); background-size: 100% 1px; } }
.foot-call { grid-column: 11 / -1; justify-self: end; }
@media (hover: hover) { .foot .box:hover { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--stone); } }
.foot-legal { grid-column: 1 / -1; font-size: 12px; line-height: 22px; color: rgb(31 30 30 / .85); padding-top: 40px; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.foot-word[data-reveal] { opacity: 1; transform: translateY(100%); clip-path: inset(0 0 100% 0); transition: transform 1.4s var(--ease), clip-path 1.4s var(--ease); }
.foot-word[data-reveal].is-in { transform: none; clip-path: inset(0 0 0 0); }
/* lists arrive one child at a time. a keyframe, so nothing lingers on the hover and press transitions afterwards */
@media (prefers-reduced-motion: no-preference) {
  [data-stagger]:not(.is-in) > :not([data-rise]) { opacity: 0; }
  [data-stagger].is-in > :not([data-rise]) { animation: settle 1.1s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 60ms + var(--lag, 0ms)); }
  .logos.is-in > li { animation-delay: calc(var(--n, 0) * 38ms); }
  .bar-nav.is-open > * { animation: settle .6s var(--ease) backwards; animation-delay: calc(var(--n, 0) * 45ms); }
  .system-pair .system:nth-child(2) { --lag: 140ms; }
  /* the mask would cut the text shadow around each word once the title has landed */
  .is-in > [data-rise] .w { animation: unmask 0s linear 1.6s forwards; }
  /* sentences of a careers beat land in turn */
  .is-playing .careers-lines li.is-on span { animation: settle 1s var(--ease) backwards; animation-delay: .14s; }
  .is-playing .careers-lines li.is-on span:nth-child(2) { animation-delay: .28s; }
  .is-playing .careers-lines li.is-on span:nth-child(3) { animation-delay: .42s; }
  .is-playing .careers-lines li.is-on span:nth-child(4) { animation-delay: .56s; }
  @keyframes settle { from { opacity: 0; transform: translateY(22px); } }
  @keyframes unmask { to { overflow: visible; } }
}

/* case page: one continuous stage. each film pins, the copy passes over it, --dim takes it down to ink and the next film rises out of ink */
.case-hero { flex-direction: column; align-items: stretch; justify-content: flex-end; gap: clamp(20px, 2.2vw, 32px); padding: 0 var(--gutter) clamp(28px, 3.4vw, 48px); }
.case-id { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(20px, 3vw, 44px); min-height: 40px; font-size: var(--t-ui); font-weight: 500; }
.case-id img { width: auto; height: min(44px, calc(62px / sqrt(var(--r, 4)))); }
.case-title { display: grid; gap: clamp(14px, 1.5vw, 22px); font-weight: 400; }
.case-name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .6em; font-size: var(--t-lead); line-height: 1.2; font-weight: 500; }
.case-name span { color: var(--fg-dim); font-weight: 400; }
.case-result { display: block; font-size: min(10.4vw, 22svh); line-height: .94; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.case-result .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.case-result .w > span { display: block; transform: translateY(112%); transition: transform 1.3s var(--ease); transition-delay: calc(.2s + var(--i) * 70ms); }
.is-ready .case-result .w > span { transform: none; }
.case-open { min-height: 100svh; align-content: end; padding-bottom: clamp(48px, 8svh, 96px); }
.case-open h2 { text-indent: 0; line-height: 1; margin-bottom: 0; text-wrap: balance; width: calc(10 * var(--col) + 9 * var(--gap)); }
.case-ask { display: grid; gap: 12px; margin: clamp(40px, 6svh, 72px) 0 0 calc(6 * var(--span)); scroll-margin-top: 96px; }
.case-ask h3 { font-size: var(--t-lead); line-height: 1.2; font-weight: 500; }
.case-ask p, .scene-rows p { max-width: 60ch; font-size: clamp(17px, 1.53vw, 22px); line-height: 1.42; text-wrap: pretty; }

.scene { position: relative; background: var(--ink); padding-bottom: 26svh; }
.scene.is-solo { padding-bottom: 0; min-height: 180svh; }
.scene:has(> .case-big:last-child), .scene:has(> .case-quote:last-child) { padding-bottom: 0; }
/* the section before sinks into ink under a soft lead edge, so no film ever ends on a line */
.scene::before, .plate::before, .case-close::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 36svh; background: linear-gradient(rgb(8 9 11 / 0), var(--ink)); pointer-events: none; z-index: 1; }
.scene-film { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; overflow: hidden; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgb(8 9 11 / .68), rgb(8 9 11 / 0) 72%), linear-gradient(to bottom, rgb(8 9 11 / .3), rgb(8 9 11 / 0) 24%, rgb(8 9 11 / .08) 46%, rgb(8 9 11 / .66)); }
.scene-shade::after { content: ''; position: absolute; inset: 0; background: var(--ink); opacity: var(--dim, 0); }
.scene-shade::before { content: ''; position: absolute; inset: 0 0 auto; height: 46svh; background: linear-gradient(var(--ink), rgb(8 9 11 / 0)); opacity: var(--edge, 0); }
.scene-grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: clamp(56px, 12svh, 120px) var(--gutter) 0; }
.scene-grid.is-first { padding-top: 0; }
.scene-head, .case-title, .case-id, .case-open h2, .case-close-line { text-shadow: 0 0 28px rgb(8 9 11 / .5); }
.scene-head { grid-column: 1 / span 5; align-self: start; position: sticky; top: clamp(96px, 15svh, 150px); font-size: clamp(30px, 3.5vw, 54px); line-height: 1.03; letter-spacing: -.016em; font-weight: 500; text-wrap: balance; }
.is-first > .scene-head { margin-top: 64svh; }
.scene-rows { grid-column: 7 / -1; display: grid; gap: clamp(44px, 7svh, 72px); }
.is-first > .scene-rows { padding-top: 116svh; }
.scene-rows:empty { display: none; }
.case-row { display: grid; gap: 10px; border-top: 1px solid var(--fg-line); padding-top: 16px; }
.case-row h3 { font-size: var(--t-lead); line-height: 1.2; font-weight: 500; }
.case-big { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 0 var(--gutter); font-size: var(--t-display); line-height: 1; letter-spacing: -.014em; font-weight: 500; text-wrap: balance; max-width: calc(10 * var(--col) + 9 * var(--gap) + 2 * var(--gutter)); }
.case-quote { position: relative; min-height: 100svh; display: grid; align-content: center; gap: clamp(20px, 2.4vw, 36px); padding: 0 var(--gutter); max-width: calc(11 * var(--col) + 10 * var(--gap) + 2 * var(--gutter)); }
.case-quote blockquote { font-size: var(--t-display); line-height: 1.02; letter-spacing: -.014em; font-weight: 500; text-wrap: pretty; }
.case-quote.is-long blockquote { font-size: clamp(22px, 3.6vw, 56px); line-height: 1.1; }
.case-quote figcaption { font-size: var(--t-lead); }
.lit { transition: opacity .28s linear; }
[data-rise] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
[data-rise] .w > span { display: block; transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--lag, 0ms)); }
[data-rise].is-in .w > span, .is-in > [data-rise] .w > span { transform: none; }
.case-proofs, .case-news, .states { position: relative; margin-left: var(--gutter); margin-right: var(--gutter); }
.flow { position: relative; }
.case-proofs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px calc(2 * var(--gap)); padding-top: clamp(48px, 10svh, 96px); }
.case-proofs li { border-top: 1px solid var(--fg-line); padding-top: 20px; display: grid; align-content: start; gap: 12px; }
.case-proofs h3 { font-size: var(--t-ui); font-weight: 400; color: var(--fg-dim); }
.case-proofs p { max-width: 52ch; font-size: clamp(18px, 1.53vw, 22px); line-height: 1.4; text-wrap: pretty; }
.states { display: grid; justify-items: start; gap: 20px; padding-top: var(--section); }
.states-value { font-size: clamp(72px, 9vw, 140px); line-height: .9; letter-spacing: -.04em; font-weight: 500; }
.states .meta { color: var(--fg-dim); font-size: clamp(13px, 1.11vw, 16px); line-height: 1.2; }
.states-ticks { display: flex; align-items: flex-end; gap: clamp(4px, .7vw, 10px); height: 34px; margin-top: 4px; }
.states-ticks i { display: block; width: 1px; height: 18px; background: var(--fg-dim); transform-origin: bottom; transform: scaleY(0); transition: transform .7s var(--ease); transition-delay: calc(var(--i) * 22ms); }
.states-ticks i:first-child { height: 34px; background: var(--fg); }
.states.is-in .states-ticks i { transform: none; }
.careers-film .film, .scene-film .film { will-change: transform; }

/* the drawing: lines draw as --p runs 0 to 1, stays finished without js */
.plate { position: relative; height: 240svh; background: var(--ink); --p: 1; }
.plate-stick { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding: 56px 0 24px; overflow: hidden; }
.plate-art { width: 100%; height: 100%; max-height: 100%; overflow: visible; color: var(--fg); fill: var(--fg); }
.plate-art.is-tall { display: none; }
.plate-art .d { fill: none; stroke: var(--fg); stroke-opacity: .7; stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--p) - var(--a)) / var(--b), 1)); opacity: clamp(0, (var(--p) - var(--a)) * 60, 1); }
.plate-art .h { stroke-opacity: .42; }
.plate-art .x { stroke-opacity: .22; }
.plate-art .g { stroke-opacity: .28; }
.plate-art .b { stroke-opacity: .95; }
.plate-art .m { stroke-opacity: .6; fill-opacity: .66; }
.plate-art .a { stroke: var(--accent); stroke-opacity: 1; stroke-width: 2; }
.plate-art .w { stroke-width: 3.5; }
.plate-art .ah { stroke: var(--accent); stroke-opacity: .55; }
.plate-art .s { fill: none; stroke: var(--fg); stroke-opacity: .5; opacity: clamp(0, (var(--p) - var(--a)) * 12, 1); }
.plate-art .lit { fill: var(--fg); fill-opacity: .09; stroke: none; }
.plate-art .lit.ah { fill: var(--accent); fill-opacity: .2; }
.plate-glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plate-art .q { transform-box: fill-box; transform-origin: center; }
.plate-art .read { fill: none; stroke: var(--accent); stroke-width: 2.5; transform: translateY(calc(clamp(0, (var(--p) - var(--a)) / var(--b), 1) * var(--span))); opacity: calc(clamp(0, (var(--p) - var(--a)) * 60, 1) * clamp(0, (var(--a) + var(--b) - var(--p)) * 40, 1)); }
.plate-art .t, .plate-art .q, .plate-art .f { opacity: clamp(0, (var(--p) - var(--a)) * 16, 1); }
.plate-art .t { font-weight: 400; paint-order: stroke; stroke: var(--ink); stroke-width: 7px; stroke-linejoin: round; }
.plate-art .t.k { font-weight: 500; fill: var(--accent); }
.plate-art .q { fill-opacity: .55; }
.plate-art .q.k { fill: var(--accent); fill-opacity: 1; }
.plate-art .f { color: var(--fg); }
.plate-art .q.o { fill-opacity: .13; }
.plate-art .sw { fill: var(--accent); stroke: none; opacity: calc(clamp(0, (var(--p) - var(--a)) * 80, 1) * clamp(0, 1 - (var(--p) - var(--a)) / .1, 1) * .24); }
.plate-art .bk { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: calc(clamp(0, (var(--p) - var(--a)) * 80, 1) * (.42 + .58 * clamp(0, 1 - (var(--p) - var(--a)) / .035, 1))); }
.plate-art .hand { fill: none; stroke: var(--accent); stroke-width: 2.5; transform: rotate(calc(clamp(0, (var(--p) - .43) / .55, 1) * 360deg)); opacity: clamp(0, (var(--p) - .36) * 30, 1); }
.plate-art .clock { font-weight: 500; letter-spacing: -.02em; }
.plate-art .scan { fill: none; stroke: var(--accent); stroke-width: 2.5; transform: translateX(calc(clamp(0, (var(--p) - .06) / .78, 1) * var(--span))); opacity: clamp(0, (.92 - var(--p)) * 20, 1); }

/* the landing: what changed, in full white, and the one next step */
.case-close { position: relative; min-height: 100svh; display: flex; align-items: flex-end; background: var(--ink); }
.case-close-film { position: absolute; inset: 0; overflow: hidden; }
.case-close-film .film { width: 100%; height: 100%; object-fit: cover; }
.case-close-film .scene-shade { background: linear-gradient(to top, rgb(8 9 11 / .86), rgb(8 9 11 / .44) 46%, rgb(8 9 11 / .12)); }
.case-close-copy { position: relative; z-index: 1; display: grid; justify-items: start; gap: clamp(20px, 2.2vw, 32px); padding: 0 var(--gutter) clamp(48px, 7svh, 88px); max-width: calc(11 * var(--col) + 10 * var(--gap) + var(--gutter)); }
.case-close-line { font-size: var(--t-display); line-height: 1; letter-spacing: -.014em; font-weight: 500; text-wrap: balance; }
.case-close-now { font-size: var(--t-lead); line-height: 1.34; max-width: 56ch; text-wrap: pretty; }
.case-close .box { background: var(--fg); color: var(--ink); border-color: var(--fg); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease); }
@media (hover: hover) { .case-close .box:hover { background: transparent; color: var(--fg); } }
.case-close .box:active { transform: scale(.96); }

/* next case: a door, not another screen */
.next .system { height: clamp(260px, 46svh, 440px); }
.next .system-copy { bottom: clamp(24px, 3.4vw, 44px); }
.next .system-line { margin-bottom: 20px; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 40px var(--gutter) var(--section); border-top: 1px solid var(--fg-line); }
.flow-col { padding: 20px var(--gap) 28px 0; border-right: 1px solid rgb(243 241 236 / .1); }
.flow-col + .flow-col { padding-left: var(--gap); }
.flow-col:last-of-type { border-right: 0; }
.flow h4 { font-size: var(--t-lead); line-height: 1.1; font-weight: 500; margin-bottom: 16px; }
.flow-act { font-size: var(--t-meta); text-transform: uppercase; color: var(--fg); margin-bottom: 6px; }
.flow-col:not(:has(.flow-act)) h4 { margin-top: calc(var(--t-meta) * 1.3 + 6px); }
.flow ul { display: grid; gap: 12px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.32; }
.flow-rule { padding: 16px var(--gap) 0 0; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.32; border-top: 1px solid var(--fg-line); }
.flow-rule-a { grid-column: 1 / 3; }
.flow-rule-b { grid-column: 3; padding-left: var(--gap); }
.flow-rule-c { grid-column: 4 / 6; padding-left: var(--gap); }

/* phones: their own type scale and gutter; the desktop clamps bottom out too small, and the 12-column widths waste a third of a 390 screen */
@media (max-width: 900px) {
  :root {
    --gutter: clamp(20px, 5.13vw, 36px);
    --gap: 12px;
    --section: 64px;
    --t-display: clamp(34px, 9.2vw, 60px);
    --t-title: clamp(26px, 6.9vw, 40px);
    --t-lead: clamp(18px, 4.9vw, 24px);
    --t-body: 16px;
    --t-ui: 15px;
    --t-meta: 12px;
  }
  .scene-shade { background: linear-gradient(rgb(8 9 11 / .36), rgb(8 9 11 / .36)), linear-gradient(to bottom, rgb(8 9 11 / .3), rgb(8 9 11 / 0) 24%, rgb(8 9 11 / .08) 46%, rgb(8 9 11 / .66)); }
  .hero-title { font-size: 14.28vw; }
  .hero-title:lang(pt) { font-size: 11.22vw; }
  .hero-title .sm { display: inline; }
  .home-hero { padding-bottom: max(28px, env(safe-area-inset-bottom)); gap: 14px; }
  /* the line lands as the title settles; it is the phone's largest paint, so its wait is the page's LCP */
  .hero-sub { text-wrap: balance; transition-delay: .85s; }

  .bar { height: 60px; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
  /* 44 px to the thumb without moving the mark */
  .bar-mark { position: relative; z-index: 2; font-size: 17px; gap: 8px; padding: 10px 0; margin: -10px 0; }
  .bar-mark img { height: 24px; }
  .bar-menu { display: block; position: relative; z-index: 2; }
  /* menu: four rows share the screen, each word at the foot of its row, the call and the language under the thumb */
  .bar-nav { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: repeat(4, 1fr) auto; align-items: stretch; gap: 0; padding: 76px var(--gutter) max(28px, calc(env(safe-area-inset-bottom) + 16px)); background: var(--ink); font-size: clamp(36px, 10.3vw, 56px); line-height: 1; letter-spacing: -.02em; font-weight: 500; text-transform: none; opacity: 0; visibility: hidden; overscroll-behavior: contain; transition: opacity .35s var(--ease), visibility .35s; }
  .bar-nav a:not(.box, .lang) { grid-column: 1 / -1; display: flex; align-items: flex-end; padding: 16px 0 14px; border-bottom: 1px solid var(--fg-line); opacity: 1; background: none; }
  .bar-nav .box { display: inline-flex; align-items: center; justify-content: center; margin-top: 32px; min-height: 56px;font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--ember); border-color: var(--ember); }
  .bar-nav .lang { display: grid; place-items: center; align-self: stretch; min-width: 56px; margin: 32px 0 0 10px; border: 1px solid var(--fg-line); font-size: 15px; letter-spacing: .06em; opacity: .8; }
  .bar-nav.is-open { opacity: 1; visibility: visible; }

  .statement { padding: 96px var(--gutter) 56px; }
  .statement h2 { width: auto; text-indent: 0; line-height: .98; margin-bottom: 28px; }
  .statement-body { width: auto; margin-left: 0; gap: 1em; line-height: 1.45; text-wrap: pretty; }
  .clients .label { margin-bottom: 36px; }
  .logos { --logo: 38px; --cap: 28px; grid-template-columns: repeat(3, auto); gap: 40px var(--gap); }
  /* the next banner shows under each one, so the list reads as a feed */
  .system { height: 78svh; }
  .system-copy { bottom: 28px; }
  .system-copy .meta { margin-bottom: 10px; }
  .system-line { margin-bottom: 24px; }
  .system-pair { grid-template-columns: 1fr; }
  .system-all h3 { margin-bottom: 24px; }
  .careers-stage { padding: 88px var(--gutter) max(var(--gutter), calc(env(safe-area-inset-bottom) + 12px)); }
  .careers-lines { width: 100%; }
  .newsroom { padding-top: calc(var(--section) * 1.5); }
  .newsroom .label { margin-bottom: 28px; }
  .news-rail { gap: 14px; scroll-snap-type: x mandatory; }
  .news-card { flex-basis: min(80vw, 340px); }
  .news { grid-template-columns: 1fr; gap: 40px; }
  .foot { padding: 24px var(--gutter) max(12px, env(safe-area-inset-bottom)); }
  .foot-word { font-size: 16vw; padding: 4vw 0 9vw; }
  .foot-grid { gap: 28px var(--gap); }
  .foot-mark { grid-column: 1 / -1; }
  .foot-col, .foot-mark + .foot-col { grid-column: span 6; }
  .foot-col { gap: 0; }
  .foot-col a { padding: 11px 0; min-width: 44px; }
  .foot-legal { padding-top: 8px; }
  /* the one next step, full width under the thumb */
  .foot-call, .case-close .box { grid-column: 1 / -1; justify-self: stretch; display: flex; align-items: center; justify-content: center; min-height: 52px; }
  .ember, .news-title { font-size: 16px; }

  /* the portrait cut puts brighter sky behind the client and name; the sweep failed Tirion and Chronicle at 4.1 and 4.5 */
  .case .opening-shade { background: radial-gradient(150% 100% at 0% 100%, rgb(8 9 11 / .82), rgb(8 9 11 / 0)), linear-gradient(to bottom, rgb(8 9 11 / .64), rgb(8 9 11 / 0) 24%, rgb(8 9 11 / 0) 30%, rgb(8 9 11 / .72)); }
  .case-hero { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .case-result { font-size: 15.4vw; }
  .case-open { padding-bottom: 56px; }
  .case-open h2 { width: auto; line-height: 1.02; }
  .case-ask { margin: 40px 0 0; }
  /* shorter dark runs between films: a phone scrolls past them with nothing to read */
  .scene { padding-bottom: 14svh; }
  .scene.is-solo { min-height: 140svh; }
  .scene::before, .plate::before, .case-close::before { height: 28svh; }
  .scene-grid { display: block; padding-top: 72px; }
  .scene-head { position: relative; top: 0; font-size: clamp(30px, 8.2vw, 48px); line-height: 1.04; }
  .is-solo .scene-head { position: sticky; top: 16svh; }
  .is-first > .scene-head { margin-top: 46svh; }
  .is-first > .scene-rows { padding-top: 28svh; }
  .scene-rows { margin-top: 32px; gap: 40px; }
  .case-row { gap: 8px; padding-top: 14px; }
  .case-big, .case-quote { min-height: 74svh; max-width: none; }
  .case-quote.is-long blockquote { font-size: clamp(25px, 6.9vw, 40px); line-height: 1.14; }
  .case-quote figcaption { font-size: 15px; }
  .case-proofs { grid-template-columns: 1fr; gap: 24px; }
  .case-proofs li { padding-top: 14px; gap: 8px; }
  .case-proofs p { font-size: 16px; line-height: 1.45; }
  .case-close-copy { max-width: none; padding-bottom: max(48px, calc(env(safe-area-inset-bottom) + 24px)); }
  .case-close-line { font-size: clamp(30px, 8.2vw, 48px); line-height: 1.04; }
  .next .system { height: clamp(300px, 52svh, 440px); }
  .flow { grid-template-columns: 1fr; }
  .flow-col, .flow-col + .flow-col { padding: 16px 0 20px; border-right: 0; border-bottom: 1px solid rgb(243 241 236 / .1); }
  .flow-col:not(:has(.flow-act)) h4 { margin-top: 0; }
  .flow-rule, .flow-rule-b, .flow-rule-c { grid-column: 1; padding: 12px 0; }
}

@media (max-aspect-ratio: 1/1) {
  .plate-art.is-wide { display: none; }
  .plate-art.is-tall { display: block; }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: page-out .18s ease both; }
  ::view-transition-new(root) { animation: page-in .46s var(--ease) both; }
  .bar { view-transition-name: bar; }
  .case .opening-film { view-transition-name: film; }
  .case .hero { view-transition-name: hero; }
  ::view-transition-group(film) { animation-duration: .72s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
  ::view-transition-old(film), ::view-transition-new(film) { width: 100%; height: 100%; object-fit: cover; animation-duration: .72s; }
  /* the opening fades in on a plain load; during a grow it is already on screen */
  html:active-view-transition .opening-film .film { opacity: 1; transform: none; transition: none; }
  @keyframes page-out { to { opacity: 0; } }
  @keyframes page-in { from { opacity: 0; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  [data-reveal], .foot-word[data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .news-rail:not(.is-in) .news-media img { transform: none; }
  .hero-word span, .hero-sub, .opening-film .film, .case-result .w > span, [data-rise] .w > span { transform: none; opacity: 1; }
  .plate { height: auto; }
  .plate-stick { position: relative; }
}

/* case page press grid */
.case-news { padding-top: var(--section); }
.case-news .meta { color: var(--fg-dim); }
