/* Rawle Kostenko. One stylesheet, no framework.
   Order: fonts, tokens, base, header, footer, type, buttons, home, work windows, prices,
   forms, studio, extras (cursor, toast), motion, print. */

/* ---- Fonts. All SIL Open Font License, self-hosted, free for commercial and client work.
   Jost speaks for the name: the wordmark and the poster. Fixel Display (MacPaw with AlfaBravo,
   Kyiv) carries the headings, Fixel Text the reading, both with Cyrillic of their own. Space
   Grotesk is the voice of the interface: the nav, buttons, labels and small headings. Inter
   lends Space Grotesk its Cyrillic. Nothing loads unless a page needs it. */
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-wght.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-ext-wght.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-cyrillic-wght.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-latin-wght.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url(/fonts/space-grotesk-latin-ext-wght.woff2) format("woff2"); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fixel Text"; src: url(/fonts/FixelText-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url(/fonts/FixelText-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url(/fonts/FixelText-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url(/fonts/FixelDisplay-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url(/fonts/FixelDisplay-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url(/fonts/FixelDisplay-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-cyrillic-wght.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-cyrillic-ext-wght.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

/* ---- Tokens. The Bauhaus palette: warm paper, letterpress black, the poster red as the one
   accent for text. Blue and yellow belong to shapes and marks, never to body text up close.
   Every text pair passes WCAG AA. */
:root {
  --paper: #F0EBE1;
  --surface: #E5DDCB;
  --ink: #16130E;     /* 13.4:1 on paper */
  --muted: #58503E;   /* 6.5:1 */
  --line: #CBC2AB;
  --accent: #C13513;  /* poster red, 5:1 */
  --blue: #2456A6;    /* marks and states */
  --yellow: #E9B213;  /* marks only */
  --band: #16130E;
  --band-ink: #F0EBE1;
  --band-muted: #AA9F89;
  --shadow: .4rem .4rem 0 rgb(22 19 14 / .12);

  --logo: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --display: "Fixel Display", "Fixel Text", system-ui, sans-serif;
  --ui: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Fixel Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --measure: 38rem;
  --space: clamp(5rem, 12vw, 9rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}


/* ---- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body); font-kerning: normal; -webkit-font-smoothing: antialiased;
  min-height: 100svh; display: flex; flex-direction: column; overflow-x: clip;
}
main { flex: 1; padding-block: clamp(3rem, 8vw, 6rem) var(--space); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-family: var(--ui); font-weight: 500; font-size: 1.25rem; letter-spacing: 0; }
p, ul, ol, dl, table, figure, fieldset { margin: 0; }
p + p { margin-top: .75em; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--line); transition: text-decoration-color .2s var(--ease), color .2s var(--ease); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 0; }
::selection { background: var(--accent); color: var(--paper); }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.n { font-family: var(--ui); font-variant-numeric: tabular-nums; color: var(--muted); font-size: .875rem; letter-spacing: .04em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--ink); color: var(--paper); padding: .5rem .75rem; z-index: 30; }
.skip:focus { top: 1rem; }

/* Rolling text: the label slides up and an identical copy slides in from below. */
.roll { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1.3; height: 1.3em; }
.roll > span { display: block; position: relative; transition: transform .5s var(--ease); }
.roll > span::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; left: 0; top: 100%; white-space: nowrap; }
a:hover .roll > span, button:hover .roll > span, a:focus-visible .roll > span { transform: translateY(-100%); }

/* ---- Header. Sticky glass; the nav underline glides to whatever you point at. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem 2rem;
  padding: 1rem max(var(--gutter), calc((100% - 76rem) / 2 + var(--gutter)));
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  transition: padding .4s var(--ease);
}
html.scrolled .site-header { padding-block: .6rem; }
.wordmark { font-family: var(--logo); font-size: 1.375rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dot { color: var(--yellow); display: inline-block; transform-origin: 50% 80%; }
.nav { position: relative; display: flex; font-family: var(--ui); gap: clamp(1rem, 2.5vw, 2rem); justify-self: center; }
.nav a { text-decoration: none; color: var(--muted); padding-block: .35rem; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav-line { position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w, 0); transform: translateX(var(--x, 0)); background: var(--accent); border-radius: 2px; opacity: var(--o, 0); transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; }
html:not(.js) .nav a[aria-current] { text-decoration: underline 2px var(--accent); text-underline-offset: .5em; }
.header-end { display: flex; align-items: center; gap: 1rem; }

.lang { position: relative; }
.lang summary { list-style: none; font-family: var(--ui); cursor: pointer; text-transform: uppercase; font-size: .8125rem; letter-spacing: .06em; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 0; color: var(--muted); transition: border-color .2s, color .2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); border-color: var(--ink); }
.lang ul { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 10rem; padding: .4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); animation: drop .25s var(--ease); }
.lang a { display: block; padding: .4rem .7rem; border-radius: 8px; text-decoration: none; }
.lang a:hover { background: var(--surface); }
.lang a[aria-current] { color: var(--accent); }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 47.99rem) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .header-end .button { display: none; }
}

/* ---- Footer. Ink, full width, the name set large and cropped by the bottom edge. */
.site-footer { position: relative; z-index: 6; overflow: hidden; background: var(--ink); color: var(--paper); }
.footer-inner { max-width: 76rem; margin-inline: auto; padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) clamp(2rem, 4vw, 3rem); display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 3rem; padding-bottom: clamp(1.75rem, 4vw, 2.75rem); border-bottom: 2px solid color-mix(in srgb, var(--paper) 22%, transparent); }
.footer-line { font: 700 clamp(1.75rem, 4vw, 3.25rem)/1.02 var(--display); letter-spacing: -.025em; max-width: 14ch; text-wrap: balance; }
.footer-mail { font: 500 clamp(1.0625rem, 1.8vw, 1.375rem) var(--ui); color: var(--paper); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.footer-mail:hover { color: var(--yellow); text-decoration-color: var(--yellow); }
.footer-mid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem clamp(1.25rem, 3vw, 2.25rem); font-family: var(--ui); }
.footer-nav a { color: var(--band-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--paper); }
.site-footer .stamp { margin: 0; border-color: color-mix(in srgb, var(--paper) 40%, transparent); color: var(--band-muted); }
.footer-legal { font-size: .875rem; color: var(--band-muted); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-name { margin: 0 0 -.17em; padding-inline: calc(var(--gutter) * .5); font: 700 min(13vw, 13rem)/.8 var(--logo); letter-spacing: -.055em; white-space: nowrap; text-align: center; }
.footer-name .o { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin: 0 .015em; background: var(--accent); transition: background-color .4s var(--ease); }
.footer-name .o2 { background: var(--blue); }
.footer-name.swap .o1 { background: var(--blue); } .footer-name.swap .o2 { background: var(--accent); }
.footer-name .dot { cursor: pointer; }
.stamp { font-family: var(--ui); display: inline-block; padding: .35rem .6rem; border: 1px solid var(--ink); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---- Type */
.display { font-family: var(--display); font-size: clamp(3rem, 8vw, 7.5rem); font-weight: 700; line-height: .92; letter-spacing: -.035em; max-width: 16ch; text-wrap: balance; }
.lead { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.5; max-width: var(--measure); margin-top: 1.5rem; color: var(--muted); }
.more { font-size: 1.0625rem; text-decoration-color: currentColor; white-space: nowrap; }
.more span { display: inline-block; transition: transform .3s var(--ease); }
.more:hover span { transform: translateX(.3em); }

/* ---- Buttons */
.button { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border: 0; border-radius: 0; background: var(--ink); color: var(--paper); text-decoration: none; font-size: .9375rem; font-family: var(--ui); font-weight: 500; text-transform: uppercase; letter-spacing: .07em; cursor: pointer; transition: background-color .3s var(--ease), transform .3s var(--spring); }
.button:hover { background: var(--accent); }
.button:active { transform: scale(.96); }
.button.small { padding: .5rem 1rem; font-size: .9375rem; }

/* ---- Home */
/* The poster. Full bleed, a tall stage with a pinned frame. --p (0 to 1) comes from the script. */
.poster { position: relative; height: 210svh; width: 100vw; margin: calc(-1 * clamp(3rem, 8vw, 6rem) - 4.5rem) calc(50% - 50vw) 0; }
.poster-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: 1fr auto auto; padding-top: 5rem; }
.headline { grid-row: 1; align-self: end; position: relative; z-index: 3; max-width: 20ch; padding: 0 var(--gutter) clamp(1rem, 3vh, 2.25rem);
  font-size: clamp(1.875rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; opacity: calc(1 - var(--p, 0) * 4); }
.poster-name { grid-row: 2; position: relative; z-index: 3; padding: 0 calc(var(--gutter) * .6) clamp(.5rem, 2vh, 1.5rem);
  font: 700 clamp(3.5rem, 11vw, 24rem)/.8 var(--logo); letter-spacing: -.055em; white-space: nowrap; }
.poster-name br { display: none; }
.poster-name .o { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin: 0 .015em; background: var(--accent); }
.poster-name .o2 { background: var(--blue); }
.ps { position: absolute; z-index: 1; transition: translate .6s var(--ease), rotate .5s var(--spring); rotate: var(--turn, 0deg); }
.ps-quarter { transform-origin: 50% 50%; }
.ps-quarter.spin { animation: quarterRoll 1.1s cubic-bezier(.65, 0, .35, 1); }
@keyframes quarterRoll { from { rotate: 0deg; } to { rotate: 360deg; } }
.sun { pointer-events: none; }
.ps-quarter { right: 0; top: 0; width: clamp(8rem, 26vw, 26rem); aspect-ratio: 1; background: var(--yellow); border-bottom-left-radius: 100%;
  transform: translate(calc(var(--p, 0) * 40%), calc(var(--p, 0) * -60%)); }
.ps-half { right: clamp(9rem, 30vw, 30rem); top: clamp(6rem, 16vh, 10rem); width: clamp(6rem, 15vw, 15rem); aspect-ratio: 2 / 1; background: var(--blue); border-radius: 999px 999px 0 0;
  transform: translateY(calc(var(--p, 0) * -40vh)) rotate(calc(var(--p, 0) * -90deg)); }
.ps-rules { left: var(--gutter); top: clamp(6rem, 16vh, 10rem); width: clamp(5.5rem, 14vw, 14rem); height: clamp(4rem, 9vw, 9rem);
  background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 16px); transform: translateX(calc(var(--p, 0) * -60vw)); }
.ps-slab { left: 46%; top: 0; width: 14px; height: calc(30% + var(--p, 0) * 70%); background: var(--ink); }
.ps-block { left: 30%; top: 20%; width: clamp(3.5rem, 8vw, 8rem); aspect-ratio: 1; background: var(--ink); transform: translateY(calc(var(--p, 0) * 30vh)) rotate(calc(var(--p, 0) * 45deg)); }
.sun { position: absolute; z-index: 2; left: var(--ox, -10rem); top: var(--oy, -10rem); width: var(--os, 0); aspect-ratio: 1; border-radius: 50%; background: var(--accent); pointer-events: none;
  transform: translate(-50%, -50%) scale(var(--sun, 1)); opacity: min(1, calc(var(--p, 0) * 40)); }
.poster-band { grid-row: 3; position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-block: 2px solid var(--ink); background: var(--paper); }
.poster-band > * { padding: .9rem clamp(.9rem, 2vw, 1.6rem); }
.ticker { overflow: hidden; white-space: nowrap; font: 500 clamp(1rem, 1.6vw, 1.375rem)/1.7 var(--ui); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker span { display: inline-block; animation: run 60s linear infinite; }
@keyframes run { to { transform: translateX(-50%); } }
.poster-cta { display: flex; align-items: center; gap: .75rem; border-left: 2px solid var(--ink); font: 500 .9375rem/1.25 var(--ui); text-decoration: none; }
.poster-cta::after { content: ""; border-left: 12px solid var(--accent); border-block: 8px solid transparent; transition: transform .3s var(--ease); }
.poster-cta:hover::after { transform: translateX(6px); }
@media (max-width: 47.99rem) {
  .poster { height: 190svh; }
  .poster-name { font-size: 22vw; line-height: .86; white-space: normal; }
  .poster-name br { display: inline; }
  .ps-quarter { width: 46vw; } .ps-half { right: 52vw; top: 22vh; width: 24vw; } .ps-rules { top: 14vh; width: 30vw; height: 16vw; } .ps-block { left: 60%; top: 36%; width: 14vw; }
  .poster-band { grid-template-columns: 1fr; }
  .poster-cta { border-left: 0; border-top: 2px solid var(--ink); }
}
/* Tall screens (a portrait tablet, a monitor on its side): the name stacks and the shapes grow, so
   the poster fills the height instead of leaving a gap in the middle. */
@media (min-width: 48rem) and (max-aspect-ratio: 4 / 5) {
  .poster-name { font-size: 19vw; line-height: .86; white-space: normal; }
  .poster-name br { display: inline; }
  .headline { font-size: 5.5vw; }
  .ps-quarter { width: 50vw; } .ps-half { right: 50vw; top: 24vh; width: 26vw; }
  .ps-rules { top: 14vh; width: 30vw; height: 18vw; } .ps-block { left: 60%; top: 36%; width: 16vw; }
}
@media (prefers-reduced-motion: reduce) { .poster { height: auto; } .poster-pin { position: relative; min-height: 100svh; height: auto; } .sun { display: none; } }
.cycler { display: inline-block; color: var(--accent); }
.cycler .word { display: inline-block; }
html:not(.js) .lead-words, html:not(.js) .total { display: none; }
.cycler .word.out { animation: wordOut .45s var(--ease) forwards; }
.cycler .word.in { animation: wordIn .6s var(--ease) both; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-.35em); filter: blur(4px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(.35em); filter: blur(4px); } }
/* Headline letters roll in once, on load (the script wraps each word). */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; animation: rollIn .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes rollIn { from { transform: translateY(105%); } }

.section { margin-top: var(--space); }
.section h2::before, .band h2::before, .case-head .n::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .3em; vertical-align: .06em; background: var(--accent); border-radius: 50%; }
.section:nth-of-type(3n) h2::before { background: var(--blue); border-radius: 0; }
.section:nth-of-type(3n+1) h2::before { background: var(--yellow); border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.band h2::before { background: var(--yellow); }
/* Every page other than home opens under a quarter disc cropped by the corner of the page. */
main { position: relative; }
main:not(:has(.poster))::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * clamp(3rem, 8vw, 6rem)); right: calc(50% - 50vw); width: clamp(7rem, 22vw, 20rem); aspect-ratio: 1; background: var(--yellow); border-bottom-left-radius: 100%; }
.section > h2, .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; }

.work-grid { display: grid; gap: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 48rem) { .work-grid { grid-template-columns: 1fr 1fr; } }
.card-meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: baseline; margin-top: 1.25rem; text-decoration: none; }
.card-meta strong { font-family: var(--display); font-weight: 700; font-size: 1.625rem; letter-spacing: -.02em; transition: color .2s; }
.card-meta .n { padding: .1rem .4rem; background: var(--ink); color: var(--paper); }
.card-meta:hover strong { color: var(--accent); }
.card-meta .muted { flex-basis: 100%; font-family: var(--ui); }

.price-rows { margin-bottom: 2rem; border-top: 2px solid var(--ink); }
.media-list { display: grid; gap: 0 2rem; margin: 2rem 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.media-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 48rem) { .media-list { grid-template-columns: 1fr 1fr; } }
.price-rows a { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; align-items: baseline; padding: 1.25rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .25s var(--ease), padding .35s var(--ease); }
.price-rows a:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); padding-inline: 1rem; }
.price-rows .name { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.price-rows .scope { color: var(--muted); grid-row: 2; }
.price-rows .price { grid-row: 1 / 3; grid-column: 2; display: grid; justify-items: end; font-size: clamp(1.125rem, 2vw, 1.5rem); font-variant-numeric: tabular-nums; }
.price-rows .price small { font-size: .875rem; color: var(--muted); }

.split { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 5fr 6fr; } }
.names { margin-top: 1.25rem; display: grid; gap: .25rem; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--muted); }
.names + p { margin-top: 1.5rem; }

.photo { display: block; border: 1px solid var(--ink); border-radius: 0; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.tilt { transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .5s var(--ease); will-change: transform; }

.band { margin-top: var(--space); padding-block: clamp(4rem, 9vw, 7rem); background: var(--band); color: var(--band-ink); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.band h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.band p { color: var(--band-muted); }
.band :focus-visible { outline-color: var(--yellow); }
.three { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 52rem) { .three { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.three h3 { margin-bottom: .5rem; }
.band .three li { border-top: 1px solid color-mix(in srgb, var(--band-ink) 18%, transparent); padding-top: 1.25rem; }
/* Circle, square, triangle: the three shapes of the band, one before each item. */
.three li::before { content: ""; display: block; width: 1.35rem; height: 1.35rem; margin-bottom: 1rem; }
.three li:nth-child(1)::before { background: var(--accent); border-radius: 50%; }
.three li:nth-child(2)::before { background: var(--blue); }
.three li:nth-child(3)::before { background: var(--yellow); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.closing { margin-top: var(--space); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }

/* ---- Windows. A few pages of each site in a quiet frame. The lights are decoration. */
.shot { position: relative; padding: 0 clamp(1.5rem, 5%, 3rem) clamp(1.5rem, 6%, 3rem) 0; }
.browser { position: relative; border-radius: 0; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--ink); }
.bar { display: flex; align-items: center; gap: .75rem; height: 28px; padding-inline: 10px; background: var(--ink); }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; background: var(--line); }
.lights i:nth-child(1) { background: var(--accent); } .lights i:nth-child(2) { background: var(--yellow); } .lights i:nth-child(3) { background: var(--blue); }
.url { flex: 1; display: grid; text-align: center; font-size: .75rem; color: var(--band-muted); margin-right: 42px; white-space: nowrap; overflow: hidden; }
.url span { grid-area: 1 / 1; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .4s; }
.pages { display: grid; }
.pages img, .phone img { grid-area: 1 / 1; width: 100%; opacity: 0; transition: opacity .6s var(--ease); }
.pages img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.url .on, .pages .on, .phone .on { opacity: 1; }
.phone { position: absolute; right: 0; bottom: 0; display: grid; width: clamp(4.5rem, 22%, 9rem); overflow: hidden; border-radius: 0; border: clamp(3px, .5vw, 6px) solid var(--ink); box-shadow: var(--shadow); background: var(--ink); }
.phone img { aspect-ratio: 390 / 844; object-fit: cover; }

/* ---- Work page */
.case { display: grid; gap: 2rem 3.5rem; margin-top: var(--space); scroll-margin-top: 6rem; }
.case:first-of-type { margin-top: clamp(3rem, 7vw, 5rem); }
@media (min-width: 56rem) { .case { grid-template-columns: 7fr 5fr; align-items: center; } .case:nth-of-type(even) .shot { order: 2; } }
.case-text h2 { margin-block: .5rem .25rem; }
.case-text .kind { margin-bottom: 1.25rem; }
.case-text p { max-width: var(--measure); }
.role { margin-block: 1.25rem 1rem !important; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }

/* ---- Prices: the builder. Steps on the left, a running total that stays in view. */
.builder { display: grid; gap: 3rem; margin-top: clamp(2.5rem, 6vw, 4rem); align-items: start; }
@media (min-width: 60rem) { .builder { grid-template-columns: 1fr 18rem; } }
.steps { display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
.step { border: 0; padding: 0; min-width: 0; }
.step legend { font-family: var(--ui); font-weight: 500; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .05em; padding: 0 0 .6rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--ink); }
.step legend .muted { font-family: var(--body); font-size: 1rem; margin-left: .5rem; }
.step > p.muted { margin: -.5rem 0 1rem; max-width: var(--measure); }
.packages, .plans { display: grid; gap: .75rem; }
@media (min-width: 40rem) { .packages, .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .packages.three-up { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .included-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, 1fr); } }
.pick { position: relative; display: block; cursor: pointer; scroll-margin-top: 8rem; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-body { display: grid; align-content: start; gap: .25rem; height: 100%; padding: 1.25rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper); transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--spring); }
.pick:hover .pick-body { border-color: var(--muted); transform: translateY(-2px); }
.pick input:checked + .pick-body { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pick input:focus-visible + .pick-body { outline: 2px solid var(--accent); outline-offset: 3px; }
.pick-name { padding-right: 1.75rem; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 1.75rem; }
.pick.small .pick-name { font-size: 1.25rem; }
.pick-price { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.pick-care { font-size: .9375rem; color: var(--blue); }
.pick-price em, .chip em { font-style: normal; color: var(--muted); }
.pick-body .muted { font-size: .9375rem; line-height: 1.45; }
.pick-body::after { content: ""; position: absolute; top: 1.1rem; right: 1.1rem; width: 1.1rem; height: 1.1rem; border-radius: 0; border: 1px solid var(--line); transition: background-color .2s, border-color .2s, transform .35s var(--spring); }
.pick input:checked + .pick-body::after { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
.note { font-size: .875rem; color: var(--muted); padding-left: .6rem; border-left: 2px solid var(--accent); margin-top: .5rem; }
.included { margin-top: 1rem; }
.included summary { cursor: pointer; color: var(--muted); width: fit-content; }
.included summary:hover { color: var(--ink); }
.included-grid { display: grid; gap: 1.5rem; margin-top: 1rem; }
@media (min-width: 40rem) { .included-grid { grid-template-columns: repeat(2, 1fr); } }
.included-grid h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.included-grid li { font-size: .9375rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 0; transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--spring); }
.chip:hover > span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span em { color: var(--band-muted); }
.chip input:active + span { transform: scale(.95); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.slider { display: flex; align-items: center; gap: 1.25rem; max-width: 30rem; }
.slider input { flex: 1; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 0; background: linear-gradient(var(--ink), var(--ink)) 0 / var(--fill, 0%) 100% no-repeat, var(--line); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 0; background: var(--paper); border: 2px solid var(--ink); cursor: grab; transition: transform .3s var(--spring); }
.slider input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 0; background: var(--paper); border: 2px solid var(--ink); cursor: grab; }
.slider input:active::-webkit-slider-thumb { transform: scale(1.25); cursor: grabbing; }
.slider-value { min-width: 2ch; font-family: var(--display); font-size: 2rem; font-variant-numeric: tabular-nums; }

.total { position: sticky; top: 7rem; display: grid; gap: .75rem; padding: 1.5rem; border-radius: 0; background: var(--band); color: var(--band-ink); }
.total p { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; }
.total .muted { color: var(--band-muted); }
.sum { font-family: var(--display); font-weight: 500; font-size: 2rem; font-variant-numeric: tabular-nums; }
.sum.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.08); color: var(--yellow); } }
.total .fine { display: block; font-size: .8125rem; line-height: 1.45; }
@media (max-width: 59.99rem) {
  .total { position: sticky; bottom: .75rem; top: auto; z-index: 5; grid-template-columns: 1fr 1fr; padding: 1rem 1.25rem; box-shadow: var(--shadow); }
  .total .fine { display: none; }
  .total p { display: grid; gap: 0; }
  .sum { font-size: 1.375rem; }
}

/* ---- Forms */
.form { margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 44rem; }
.fields { display: grid; gap: 1.75rem 1.5rem; }
.need-fields { border: 0; padding: 0; margin: 0 0 2rem; }
@media (min-width: 40rem) { .fields { grid-template-columns: 1fr 1fr; } .fields .wide { grid-column: 1 / -1; } }
.fields label { display: grid; gap: .15rem; }
.fields label > span { font-size: .875rem; color: var(--muted); }
.fields input, .fields textarea { width: 100%; padding: .4rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; transition: border-color .25s; }
/* The message starts one line tall, like the fields above it, and grows line by line as you write. */
.fields textarea { display: block; resize: none; field-sizing: content; min-height: calc(1.6em + .8rem); max-height: 18rem; overflow-y: auto; }
.fields input:focus, .fields textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.trap { position: absolute; left: -9999px; }
.toggle { display: inline-flex; align-items: center; gap: .75rem; margin-top: 2rem; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 2.5rem; height: 1.5rem; border-radius: 0; background: var(--line); position: relative; cursor: pointer; transition: background-color .25s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.125rem; height: 1.125rem; border-radius: 0; background: var(--paper); box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .35s var(--spring); }
.toggle input:checked { background: var(--blue); }
.toggle input:checked::after { transform: translateX(1rem); }
.call-fields { display: none; gap: 1rem; border: 0; padding: 1.25rem 0 0; margin: 0; }
form:has(#call input:checked) .call-fields { display: grid; animation: drop .35s var(--ease); }
.day { display: grid; gap: .35rem; max-width: 14rem; }
.day > span { font-size: .875rem; color: var(--muted); }
.day input { padding: .5rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.5rem; }
/* The one thing every page leads to, so it is the loudest thing on it. */
.send .button { justify-content: center; min-width: 14rem; padding: 1.15rem 2.75rem; font-size: 1.125rem; background: var(--accent); box-shadow: var(--shadow); }
.send .button:hover { background: var(--ink); }
@media (max-width: 39.99rem) { .send .button { width: 100%; } }
.status { color: var(--muted); }
.status.ok { color: var(--blue); }
.status.err { color: var(--accent); }
form.sending .button { opacity: .6; pointer-events: none; }
form.done .fields, form.done .toggle, form.done .call-fields, form.done .button { opacity: .4; pointer-events: none; }
.aside { margin-top: 2.5rem; color: var(--muted); }

/* ---- Call calendar: a working week, times down, a slot per button. */
.calendar { display: grid; gap: .75rem; max-width: 40rem; }
.cal-head { display: flex; align-items: center; gap: .75rem; }
.cal-head button { width: 2.25rem; height: 2.25rem; border-radius: 0; border: 1px solid var(--line); background: none; cursor: pointer; transition: border-color .2s, transform .3s var(--spring); }
.cal-head button:hover:not(:disabled) { border-color: var(--ink); transform: scale(1.06); }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-title { min-width: 7rem; text-align: center; font-variant-numeric: tabular-nums; }
.cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.cal-day { display: grid; gap: .4rem; align-content: start; }
.cal-day p { margin: 0 0 .25rem; font-size: .8125rem; line-height: 1.3; text-align: center; color: var(--muted); }
.cal-day p span { display: block; color: var(--ink); text-transform: capitalize; }
.slot { padding: .5rem 0; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: .875rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--spring); }
.slot:hover:not(:disabled) { border-color: var(--ink); }
.slot:active:not(:disabled) { transform: scale(.94); }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slot:disabled { opacity: .3; cursor: default; text-decoration: line-through; }

/* ---- Studio */
.wide-photo { margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 34rem; aspect-ratio: 4 / 5; }
.people { display: grid; gap: 3rem; max-width: 58rem; margin-top: var(--space); }
@media (min-width: 40rem) { .people { grid-template-columns: 1fr 1fr; } }
.portrait { aspect-ratio: 4 / 5; margin-bottom: 1.5rem; max-width: 22rem; }
.people h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: .75rem; }
.people p { max-width: 30rem; }
.block { margin-top: var(--space); padding-top: 2rem; border-top: 1px solid var(--line); }
.block > h2 { margin-bottom: 1.5rem; }
.ticks li, .dashes li { position: relative; padding-left: 1.25rem; }
.ticks li + li, .dashes li + li { margin-top: .4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .65em; width: .4rem; height: .4rem; border-radius: 0; background: var(--ink); }
.dashes li::before { content: ""; position: absolute; left: 0; top: .8em; width: .6rem; height: 1px; background: var(--muted); }
figure.photo figcaption { padding: .8rem 0 0; font-size: .875rem; line-height: 1.45; color: var(--muted); }
.prose { max-width: var(--measure); margin-top: 2.5rem; }
/* ---- One case, its own page. */
.case-page { display: grid; gap: clamp(2rem, 5vw, 3rem); }
.case-head .n { margin-bottom: .5rem; }
.case-head .display { max-width: 22ch; }
.case-head .muted { margin-top: .75rem; font-size: 1.125rem; }
.case-head .more { display: inline-block; margin-top: .75rem; }
.case-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 1rem; margin-top: var(--space); padding-top: 1.5rem; border-top: 2px solid var(--ink); font-family: var(--ui); }
.case-nav a { white-space: normal; }
.case-nav a:last-child { justify-self: end; text-align: right; }
.more:hover span:first-child:not(:only-child) { transform: translateX(-.3em); }

/* ---- Extras: toast, falling dots, magnifier. */
.toast { position: fixed; left: 50%; bottom: 5.5rem; z-index: 60; transform: translateX(-50%); padding: .6rem 1.1rem; border-radius: 0; background: var(--ink); color: var(--paper); font-size: .9375rem; animation: toast 2.6s var(--ease) forwards; pointer-events: none; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.fall { position: fixed; top: -20px; z-index: 90; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }

/* ---- Motion. Reveals fade up once as they enter. Gone for anyone who asks for less. */
html.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal li, html.js .reveal > article { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k, 0) * 80ms); }
html.js .reveal:not(.in) li, html.js .reveal:not(.in) > article { opacity: 0; transform: translateY(1rem); }
html.js .reveal.footer-name { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in h2::before, .case-head .n::before { animation: pop .55s var(--spring) .2s both; }
  @keyframes pop { from { transform: scale(0) rotate(-90deg); } }
  .footer-name.in .o { animation: roll .9s var(--spring) both; }
  .footer-name.in .o2 { animation-delay: .12s; }
  @keyframes roll { from { transform: translateX(-1.4em) rotate(-200deg); opacity: 0; } }
  .work-grid .browser { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  .work-grid li:hover .browser { transform: translate(-3px, -3px); box-shadow: .7rem .7rem 0 rgb(22 19 14 / .14); }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }
  .site-header { view-transition-name: header; }
  .dot.hop { animation: hop .6s var(--spring); }
  @keyframes hop { 40% { transform: translateY(-.5em) scale(1.3); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .skip { display: none; }
  .band { box-shadow: none; clip-path: none; background: none; color: #000; }
  html.js .reveal { opacity: 1; transform: none; }
}
