/* ==========================================================================
   michaelonofrio.com — design system
   Brand: monochrome, angular light lines, the M monogram, "//" labels, "Create or be consumed".
   Type: League Spartan for headings (uppercase only for the name and page titles), Inter for everything
   you read, Instrument Serif italic for the odd quote. UV mode (html[data-uv]) is a blacklight palette
   taken from the fluorescent paintings.
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #111113;
  --ink-3: #1a1a1d;
  --steel: #a7a8ac;
  --fog: #d6d6da;
  --body: #b4b4ba;
  --text: #f3f3f4;
  --muted: #8b8b92;
  --faint: #5c5c63;
  --line: rgba(243, 243, 244, 0.1);
  --line-2: rgba(243, 243, 244, 0.2);
  --paper: #e4e4e7;
  --hi: #ffffff;
  --sel: #ffffff;
  --sel-text: #0b0b0c;
  --fill: url("../img/texture.jpg");

  --f-display: "League Spartan", Futura, "Avenir Next", system-ui, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --t-hero: clamp(72px, 14.6vw, 236px);
  --t-title: clamp(54px, 9vw, 140px);
  --t-h2: clamp(34px, 4.1vw, 58px);
  --t-h3: clamp(20px, 1.6vw, 24px);
  --t-lead: clamp(18.5px, 1.45vw, 22px);
  --t-body: 17px;
  --t-small: 15px;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 72px;
  --section: clamp(88px, 10.5vw, 150px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  color-scheme: dark;
}

html[data-uv] {
  --ink: #08040f;
  --ink-2: #0e0820;
  --ink-3: #170d2c;
  --steel: #c3b2ff;
  --fog: #e2d8f7;
  --body: #bdb0d9;
  --text: #f7f0ff;
  --muted: #a397c4;
  --faint: #6b5e8d;
  --line: rgba(214, 190, 255, 0.14);
  --line-2: rgba(214, 190, 255, 0.3);
  --hi: #ff3bd4;
  --sel: #c8ff3a;
  --fill: linear-gradient(100deg, #ff3bd4 0%, #8b5cff 32%, #39f3ff 64%, #c8ff3a 100%);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 var(--t-body)/1.65 var(--f-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }
::selection { background: var(--sel); color: var(--sel-text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 2px; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; background: var(--text); color: var(--ink); padding: 10px 16px; border-radius: 4px; }
.mono-mark { width: auto; height: 1em; }
.arrow { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }

/* ---------------------------------------------------------------- type */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.label {
  display: flex; align-items: center; gap: 10px;
  font: 600 12.5px/1.2 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: "//"; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.h2 { font: 700 var(--t-h2)/1.04 var(--f-display); letter-spacing: -0.028em; color: var(--text); text-wrap: balance; }
.h3 { font: 600 var(--t-h3)/1.2 var(--f-display); letter-spacing: -0.012em; color: var(--text); }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--fog); }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.page-title { font: 800 var(--t-title)/0.86 var(--f-display); text-transform: uppercase; letter-spacing: -0.04em; color: var(--text); margin-left: -0.04em; }
p a, .lead a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color 0.3s; }
p a:hover, .lead a:hover { text-decoration-color: var(--text); }

/* ---------------------------------------------------------------- layout */
.section { padding-block: var(--section); }
.section--tight { padding-top: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); transition: background-color 0.7s var(--ease); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.head__text { display: grid; gap: 16px; max-width: 760px; }
.head__note { color: var(--muted); font-size: 17px; max-width: 56ch; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 104px); align-items: center; }
.split__text { display: grid; gap: 22px; justify-items: start; }
.split__text > p:not(.label):not(.lead) { color: var(--body); max-width: 60ch; }
.side { display: grid; grid-template-columns: 4fr 7fr; gap: 40px clamp(40px, 6vw, 104px); align-items: start; }
.side__head { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 18px; justify-items: start; }
.side__body { display: grid; gap: clamp(40px, 5vw, 60px); }

/* ---------------------------------------------------------------- links + buttons */
.link {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 5px; white-space: nowrap;
  font: 500 15px/1.2 var(--f-text); color: var(--text); border-bottom: 1px solid var(--line-2);
  transition: border-color 0.3s, gap 0.4s var(--ease);
}
.link:hover { border-color: var(--text); gap: 12px; }
.link .arrow { width: 14px; height: 14px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; isolation: isolate;
  height: 52px; padding: 0 24px; border-radius: 99px; background: var(--text); color: var(--ink);
  font: 600 15px/1 var(--f-text); white-space: nowrap; transition: color 0.5s var(--ease), box-shadow 0.4s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink-3); transform: translateY(101%); transition: transform 0.6s var(--ease); border-radius: inherit; }
.btn:hover { color: var(--text); }
.btn:hover::before { transform: none; }
.btn .arrow { width: 15px; height: 15px; transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: rotate(45deg); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--ink); }
html[data-uv] .btn:not(.btn--ghost) { background: linear-gradient(100deg, #ff3bd4, #8b5cff 50%, #39f3ff); color: #08040f; box-shadow: 0 0 28px rgba(255, 59, 212, 0.3); }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); border-bottom: 1px solid transparent; transition: transform 0.6s var(--ease), background-color 0.4s, border-color 0.4s; }
.nav.is-solid { background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-size: 28px; justify-self: start; }
.nav__logo .mono-mark { transition: transform 0.6s var(--ease); }
.nav__logo:hover .mono-mark { transform: skewX(-8deg); }
.nav__name { font: 700 14px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.nav__links { display: flex; gap: clamp(24px, 2.6vw, 40px); font: 500 15px/1 var(--f-text); }
.nav__links a { position: relative; color: var(--muted); padding: 8px 0; transition: color 0.3s; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--text); }
.nav__links a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.nav__side { display: flex; align-items: center; gap: 10px; justify-self: end; }
.uv { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); font: 600 12px/1 var(--f-text); letter-spacing: 0.1em; color: var(--fog); transition: border-color 0.3s, box-shadow 0.4s; }
.uv:hover { border-color: var(--text); }
.uv__dot { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(#ff3bd4, #8b5cff, #39f3ff, #c8ff3a, #ff3bd4); filter: grayscale(1) brightness(1.4); transition: filter 0.4s; }
.uv[aria-pressed="true"] { border-color: #ff3bd4; box-shadow: 0 0 18px rgba(255, 59, 212, 0.4); }
.uv[aria-pressed="true"] .uv__dot { filter: none; animation: spin 3s linear infinite; }
.nav__cta { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 99px; background: var(--text); color: var(--ink); font: 600 14px/1 var(--f-text); transition: opacity 0.3s; }
.nav__cta:hover { opacity: 0.85; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.nav__burger i:nth-of-type(1) { top: 18px; }
.nav__burger i:nth-of-type(2) { top: 25px; }
.nav__burger[aria-expanded="true"] i:nth-of-type(1) { top: 21.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-of-type(2) { top: 21.5px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-io);
}
.menu.is-open { clip-path: inset(0); }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font: 700 clamp(36px, 10vw, 64px)/1.1 var(--f-display); letter-spacing: -0.025em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu__foot { display: grid; gap: 6px; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 48px) 0 clamp(40px, 6vh, 72px); }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__plane { position: absolute; inset: 0; z-index: -2; background: var(--ink-2); clip-path: polygon(64% 0, 100% 0, 100% 100%, 47% 100%); transition: background-color 0.7s var(--ease); }
.hero__inner { display: grid; gap: clamp(18px, 2.6vh, 30px); }
.hero__name {
  font: 800 var(--t-hero)/0.82 var(--f-display); text-transform: uppercase; letter-spacing: -0.035em;
  color: var(--steel); margin-left: -0.05em; user-select: none; transition: filter 0.7s var(--ease);
}
html[data-uv] .hero__name { filter: drop-shadow(0 0 18px rgba(255, 59, 212, 0.45)) drop-shadow(0 0 54px rgba(120, 80, 255, 0.35)); }
.hero__line { display: block; overflow: hidden; padding: 0.05em 0.06em 0.02em; margin: -0.05em -0.06em -0.02em; white-space: nowrap; }
.hero__line .ch { display: inline-block; transition: color 0.5s var(--ease); }
.js .hero__line .ch { transform: translateY(110%); }
.hero.is-in .hero__line .ch { transform: none; transition: transform 1.3s var(--ease), color 0.5s var(--ease); transition-delay: calc(var(--i) * 40ms + 150ms), 0s; }
.hero__line .ch.is-lit { color: var(--hi); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; padding-top: clamp(22px, 3vh, 32px); border-top: 1px solid var(--line-2); }
.hero__intro { max-width: 54ch; font-size: var(--t-lead); line-height: 1.55; color: var(--fog); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.js .hero__label, .js .hero__foot { opacity: 0; transform: translateY(14px); }
.hero.is-in .hero__label, .hero.is-in .hero__foot { opacity: 1; transform: none; transition: opacity 1.1s var(--ease) 0.75s, transform 1.1s var(--ease) 0.75s; }

/* ---------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.04em 0.06em; margin: -0.04em -0.04em -0.06em; }
[data-split] .wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(110%); }
.js [data-split].is-in .wi { transform: none; transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 60ms); }

/* ---------------------------------------------------------------- darkroom frames
   Every piece of work sits in one: monochrome like the brand until you engage with it (hover, or scroll it
   to the middle of the screen on phones), then it develops into colour. The angled cut corner with a second
   line beside it echoes the brand book's double lines. Flat artwork sits on proof-grey paper. */
.mw { position: relative; --cx: 20px; --cy: 47px; }
.mw.frame--lg { --cx: 30px; --cy: 70px; }
.frame {
  --ix: 0%; --iy: 0%;
  position: relative; overflow: hidden; background: var(--bg, var(--ink-3));
  clip-path: polygon(var(--ix) var(--iy), calc(100% - var(--ix)) var(--iy), calc(100% - var(--ix)) calc(100% - var(--iy) - var(--cy)), calc(100% - var(--ix) - var(--cx)) calc(100% - var(--iy)), var(--ix) calc(100% - var(--iy)));
}
.card__media > .frame, .next__media > .frame, .svc-work__media > .frame { position: absolute; inset: 0; }
.card__media img, .card__media video, .next__media img, .svc-work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.frame img, .frame video { filter: grayscale(1) contrast(1.06) brightness(0.92); transition: filter 1s var(--ease), transform 1.4s var(--ease), opacity 0.6s; }
a:hover .frame img, a:hover .frame video, a:focus-visible .frame img, .mw.is-color img, .mw.is-color video { filter: none; }
a:hover .card__media img, a:hover .next__media img, a:hover .svc-work__media img { transform: scale(1); }
html[data-uv] .frame img, html[data-uv] .frame video { filter: saturate(1.3) contrast(1.05); }
.card__media video { opacity: 0; }
.is-playing video { opacity: 1; }
.frame.is-paper { background: var(--paper); }
.frame.is-paper img { mix-blend-mode: multiply; }
.card__media .is-paper img, .next__media .is-paper img, .svc-work__media .is-paper img { object-fit: contain; padding: 8%; transform: none; }
a:hover .card__media .is-paper img { transform: scale(1.03); }
.frame::before {
  content: ""; position: absolute; inset: 14px; z-index: 2; pointer-events: none; color: #fff; mix-blend-mode: difference; opacity: 0;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) 0 0 / 1px 14px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) 100% 0 / 1px 14px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 14px 1px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 1px 14px no-repeat;
  transition: opacity 0.5s, inset 0.8s var(--ease);
}
a:hover .frame::before, a:focus-visible .frame::before { opacity: 0.85; inset: 20px; }
.mw__cut {
  position: absolute; z-index: 1; height: 1px; pointer-events: none;
  width: calc(var(--cx) * 2.54 + 30px); left: calc(100% - var(--cx) / 2 + 8px); top: calc(100% - var(--cy) / 2 + 3.5px);
  background: var(--line-2); transform: translate(-50%, -50%) rotate(-66.8deg);
  transition: background-color 0.4s, left 0.6s var(--ease), top 0.6s var(--ease), opacity 0.8s;
}
a:hover .mw__cut, .mw.is-color .mw__cut { background: var(--text); left: calc(100% - var(--cx) / 2 + 5px); top: calc(100% - var(--cy) / 2 + 2px); }
html[data-uv] .mw__cut { background: #ff3bd4; box-shadow: 0 0 10px #ff3bd4; }
.js .reveal .frame { --ix: 6%; --iy: 10%; }
.js .reveal.is-in .frame { --ix: 0%; --iy: 0%; transition: clip-path 1.4s var(--ease); }
.js .reveal .mw__cut { opacity: 0; }
.js .reveal.is-in .mw__cut { opacity: 1; transition-delay: 0s, 0s, 0s, 0.8s; }
.develop .frame img, .develop .frame video { transition-duration: 2s, 1.4s, 0.6s; }

/* ---------------------------------------------------------------- project cards (home) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5.5vw, 80px) clamp(20px, 2.4vw, 36px); }
.card { display: grid; gap: 10px; align-content: start; }
.card__media { aspect-ratio: 4 / 3; margin-bottom: 8px; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__title { font: 700 clamp(21px, 1.8vw, 26px)/1.15 var(--f-display); letter-spacing: -0.015em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size 0.6s var(--ease); }
.card:hover .card__title { background-size: 100% 1px; }
.card__cat { flex: none; font-size: 14px; color: var(--muted); }
.card__text { color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 58ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- portrait (about) */
.portrait { position: relative; aspect-ratio: 4 / 5; width: 100%; }
.portrait--photo .frame { position: absolute; inset: 0; }
.portrait--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait--mark { display: block; overflow: hidden; isolation: isolate; background: var(--ink-3); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 70px), calc(100% - 30px) 100%, 0 100%); }
.section--alt .portrait--mark { background: var(--ink); }
.portrait--mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.portrait__mark { position: absolute; left: 10%; bottom: 17%; font-size: clamp(110px, 15vw, 230px); color: var(--text); }
html[data-uv] .portrait__mark { color: #ff3bd4; filter: drop-shadow(0 0 24px rgba(255, 59, 212, 0.5)); }
.portrait__cap { position: absolute; left: 10%; bottom: 7%; font: 600 12px/1.6 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--text); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f3f4' stroke-width='2'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.stats { display: flex; flex-wrap: wrap; gap: 20px clamp(28px, 4vw, 56px); padding: 6px 0 8px; }
.stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.stats dd { font: 800 clamp(36px, 3.4vw, 50px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--text); }
.stats dt { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- services grid (home) */
.svcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 290px; padding: clamp(24px, 2.2vw, 32px); background: var(--ink); transition: color 0.5s var(--ease), background-color 0.7s var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); clip-path: inset(100% 0 0 0); transition: clip-path 0.7s var(--ease-io); }
.svc:hover, .svc:focus-visible { color: var(--ink); }
.svc:hover::before, .svc:focus-visible::before { clip-path: inset(0); }
html[data-uv] .svc::before { background: linear-gradient(140deg, #ff3bd4, #8b5cff 55%, #39f3ff); }
.svc__icon { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: miter; margin-bottom: auto; }
.svc__title { font: 700 21px/1.15 var(--f-display); letter-spacing: -0.012em; margin-top: 28px; }
.svc__text { font-size: 15px; line-height: 1.55; color: var(--muted); transition: color 0.5s; }
.svc__go { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--f-text); color: var(--muted); margin-top: 6px; transition: color 0.5s; }
.svc:hover .svc__text, .svc:hover .svc__go { color: inherit; }
.svc__go .arrow { width: 13px; height: 13px; transition: transform 0.5s var(--ease); }
.svc:hover .svc__go .arrow { transform: rotate(45deg); }

/* ---------------------------------------------------------------- rows (experience, strengths) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row__when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row__what { display: grid; gap: 4px; }
.row__what strong { font: 600 19px/1.3 var(--f-display); letter-spacing: -0.008em; color: var(--text); }
.row__what span { color: var(--muted); font-size: 15.5px; }
.row__what em { font-style: normal; color: var(--body); font-size: 16px; margin-top: 6px; max-width: 62ch; }
.rows--numbered .row { grid-template-columns: 3rem minmax(0, 1fr); }
.rows--numbered .row__when { font: 700 15px/1 var(--f-display); color: var(--faint); }
.edu, .clients { display: grid; gap: 14px; }
.edu p:not(.label) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.edu strong { color: var(--text); }
.edu span { color: var(--muted); font-size: 15.5px; }
.clients__list, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.clients__list li, .tags li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; color: var(--fog); }

/* ---------------------------------------------------------------- CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(100px, 13vw, 180px); background: var(--ink-2); border-top: 1px solid var(--line); transition: background-color 0.7s var(--ease); }
.cta__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta__title { font: 800 clamp(44px, 6.8vw, 104px)/0.96 var(--f-display); letter-spacing: -0.035em; max-width: 13ch; margin-top: 22px; text-wrap: balance; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(32px, 4vw, 52px); }
.cta__mail { font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; color: var(--fog); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: color 0.3s, border-color 0.3s; }
.cta__mail:hover { color: var(--text); border-color: var(--text); }

/* ---------------------------------------------------------------- footer */
.foot { padding: clamp(64px, 8vw, 96px) 0 28px; border-top: 1px solid var(--line); }
.foot__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot__logo { display: inline-flex; align-items: center; gap: 12px; font-size: 30px; }
.foot__logo span { font: 700 14px/1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.foot__motto { margin-top: 22px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; color: var(--fog); }
.foot__label { font: 600 12.5px/1.2 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot__col li + li { margin-top: 8px; }
.foot__col a { color: var(--fog); transition: color 0.3s; }
.foot__col a:hover { color: var(--text); }
.foot__clock { font: 700 22px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.foot__loc { color: var(--muted); font-size: 15px; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__bottom a:hover { color: var(--text); }

/* ---------------------------------------------------------------- page heads */
.page-head { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + clamp(64px, 11vh, 132px)) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-head__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.page-head .wrap { display: grid; gap: 24px; justify-items: start; }
.page-head__lede { max-width: 54ch; }

/* ---------------------------------------------------------------- archive (work page) */
.archive { position: relative; padding: clamp(32px, 4vw, 56px) 0 var(--section); }
.archive__bar {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; margin-bottom: clamp(32px, 4vw, 48px); background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top 0.6s var(--ease);
}
.nav-visible .archive__bar, .nav-visible .jump { top: var(--nav-h); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.archive .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.archive .chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; display: inline-flex; flex: none; align-items: center; gap: 5px; height: 38px; padding: 0 13px; border-radius: 99px;
  border: 1px solid var(--line-2); font: 500 14px/1 var(--f-text); color: var(--fog); cursor: pointer; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chip sup { font-size: 11px; color: var(--muted); vertical-align: 0.3em; transition: color 0.3s; }
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--text); color: var(--ink); border-color: var(--text); }
.chip[aria-pressed="true"] sup { color: var(--ink); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--text); outline-offset: 3px; }
.views { display: flex; flex: none; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; }
.views button { height: 30px; padding: 0 14px; border-radius: 99px; font: 500 13px/1 var(--f-text); color: var(--muted); transition: background-color 0.3s, color 0.3s; }
.views button[aria-pressed="true"] { background: var(--text); color: var(--ink); }
.archive__head { display: none; }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4.5vw, 64px) clamp(16px, 2vw, 28px); }
.item a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.item .card__media { grid-column: 1 / -1; margin-bottom: 12px; }
.item__no, .item__client { display: none; }
.item__title { font: 700 20px/1.2 var(--f-display); letter-spacing: -0.012em; }
.item__tags { grid-column: 1; color: var(--muted); font-size: 14px; }
.item__go { grid-column: 2; grid-row: 2; font-size: 16px; color: var(--muted); transition: transform 0.6s var(--ease), color 0.3s; }
.item a:hover .item__go { transform: rotate(45deg); color: var(--text); }
.item.is-out { display: none; }
.item.is-new { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--k, 0) * 45ms); }
.archive__empty { padding: 60px 0; color: var(--muted); }
.archive[data-view="list"] .archive__head { display: grid; grid-template-columns: 4rem 1.6fr 1.1fr 1.1fr 24px; gap: 24px; padding-bottom: 12px; font: 600 12.5px/1 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.archive[data-view="list"] .items { display: block; border-top: 1px solid var(--line); }
.archive[data-view="list"] .item a { grid-template-columns: 4rem 1.6fr 1.1fr 1.1fr 24px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity 0.4s; }
.archive[data-view="list"] .item a > * { grid-column: auto; grid-row: auto; }
.archive[data-view="list"] .card__media { display: none; }
.archive[data-view="list"] .item__no, .archive[data-view="list"] .item__client { display: block; color: var(--muted); font-size: 14px; }
.archive[data-view="list"] .item__no { font-variant-numeric: tabular-nums; }
.archive[data-view="list"] .item__title { font-size: clamp(19px, 1.8vw, 24px); transition: transform 0.6s var(--ease); }
.archive[data-view="list"] .items:hover .item a { opacity: 0.4; }
.archive[data-view="list"] .items .item a:hover { opacity: 1; }
.archive[data-view="list"] .item a:hover .item__title { transform: translateX(10px); }
.preview { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: clamp(200px, 20vw, 320px); aspect-ratio: 4 / 3; translate: var(--x, -999px) var(--y, -999px); }
.preview__inner { position: absolute; inset: 0; overflow: hidden; background: var(--ink-3); transform: translate(14%, -58%) scale(0) rotate(var(--r, 0deg)); transition: transform 0.6s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.preview.is-on .preview__inner { transform: translate(14%, -58%) scale(1) rotate(var(--r, 0deg)); }
.preview__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 0.45s, transform 0.9s var(--ease); }
.preview__inner img.is-on { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- project page */
.project__head { padding: calc(var(--nav-h) + clamp(48px, 8vh, 96px)) 0 clamp(40px, 5vw, 64px); display: grid; gap: 22px; justify-items: start; }
.back { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--f-text); color: var(--muted); margin-bottom: clamp(8px, 2vh, 24px); transition: color 0.3s, gap 0.4s var(--ease); }
.back .arrow { width: 14px; height: 14px; transform: rotate(-135deg); }
.back:hover { color: var(--text); gap: 12px; }
.project__title { font: 800 clamp(46px, 7.4vw, 118px)/0.9 var(--f-display); text-transform: uppercase; letter-spacing: -0.035em; max-width: 15ch; margin-left: -0.03em; text-wrap: balance; }
.project__intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 88px); width: 100%; margin-top: 8px; align-items: start; }
.project__meta { border-top: 1px solid var(--line); }
.project__meta div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.project__meta dt { font-size: 14px; color: var(--muted); padding-top: 2px; }
.project__meta dd { color: var(--fog); }
.project__hero .frame img, .project__video { width: 100%; height: auto; max-height: 86vh; object-fit: cover; }
.project__hero.is-contain .frame { padding: clamp(24px, 5vw, 80px); }
.project__hero.is-contain .frame img { object-fit: contain; max-height: 76vh; margin: 0 auto; width: auto; }
.project__video { aspect-ratio: 16 / 9; background: #000; }
.project__body { display: grid; gap: 1.1em; padding: clamp(56px, 7vw, 100px) 0 clamp(56px, 7vw, 100px) min(33.333%, 440px); }
.project__body p { max-width: 62ch; color: var(--body); font-size: 18px; line-height: 1.7; }
.project__body p:first-child { font-size: var(--t-lead); line-height: 1.55; color: var(--text); }
.project__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.shot .mw, .shot .frame { height: 100%; }
.shot .frame { display: grid; place-items: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--wide, .shot--solo { grid-column: 1 / -1; }
.shot--solo .frame, .shot .is-paper { padding: clamp(20px, 4vw, 64px); }
.shot--solo img, .shot .is-paper img { object-fit: contain; max-height: 84vh; width: auto; }
.next { margin-top: var(--section); border-top: 1px solid var(--line); }
.next__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; padding: clamp(40px, 5vw, 72px) 0 var(--section); }
.next__link .label { grid-column: 1 / -1; }
.next__title { font: 800 clamp(40px, 6vw, 96px)/0.92 var(--f-display); text-transform: uppercase; letter-spacing: -0.035em; color: var(--steel); transition: color 0.5s, transform 0.8s var(--ease); max-width: 14ch; }
.next__link:hover .next__title { color: var(--text); transform: translateX(clamp(6px, 1.5vw, 24px)); }
.next__media { width: clamp(180px, 22vw, 320px); aspect-ratio: 4 / 3; }

/* ---------------------------------------------------------------- services page */
.jump { position: sticky; top: 0; z-index: 15; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top 0.6s var(--ease); }
.jump__list { display: flex; gap: 6px 28px; overflow-x: auto; scrollbar-width: none; padding-block: 16px; white-space: nowrap; font: 500 14px/1 var(--f-text); }
.jump__list::-webkit-scrollbar { display: none; }
.jump__list a { color: var(--muted); transition: color 0.3s; }
.jump__list a:hover { color: var(--text); }
.svc-row { display: grid; grid-template-columns: 1fr 3fr; gap: 24px clamp(32px, 5vw, 80px); padding-block: clamp(64px, 8vw, 104px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 64px); }
.svc-row:last-child { border-bottom: 0; }
.svc-row__side { display: flex; flex-direction: column; gap: 16px; color: var(--muted); }
.svc-row__no { font: 700 15px/1 var(--f-display); color: var(--faint); }
.svc-row__side .svc__icon { width: 48px; height: 48px; color: var(--text); margin: 0; }
.svc-row__main { display: grid; gap: 28px; justify-items: start; }
.svc-row__body { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 64px); width: 100%; }
.svc-row__body .label { margin-bottom: 14px; }
.ticks li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--fog); font-size: 16px; }
.ticks li::before { content: "//"; color: var(--faint); font-size: 13px; padding-top: 2px; }
.svc-row__work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
.svc-work__media { aspect-ratio: 4 / 3; }
.svc-work__title { display: block; margin-top: 12px; font-weight: 600; font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { display: grid; gap: 12px; align-content: start; min-height: 250px; padding: clamp(24px, 2.4vw, 34px); background: var(--ink-2); transition: background-color 0.7s var(--ease); }
.step__no { font: 800 48px/1 var(--f-display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--steel); margin-bottom: 18px; transition: color 0.5s; }
.step:hover .step__no { color: var(--text); -webkit-text-stroke-color: var(--text); }
.step p { color: var(--muted); font-size: 15.5px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.value { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line-2); }
.value p { color: var(--body); }

/* ---------------------------------------------------------------- about */
.story { border-top: 1px solid var(--line); }
.chapter { display: grid; grid-template-columns: 4fr 7fr; gap: 16px clamp(40px, 6vw, 104px); padding-block: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.chapter__side { display: flex; align-items: baseline; gap: 18px; }
.chapter__no { font: 800 clamp(40px, 4vw, 58px)/1 var(--f-display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--steel); transition: color 0.5s; }
.chapter:hover .chapter__no { color: var(--text); -webkit-text-stroke-color: var(--text); }
.chapter__where { font: 600 12.5px/1.3 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chapter__body { display: grid; gap: 10px; }
.chapter__body p { color: var(--body); max-width: 62ch; }
.quote { padding-block: clamp(96px, 12vw, 168px); text-align: center; }
.quote__text { max-width: 20ch; margin: 0 auto; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.1; color: var(--text); text-wrap: balance; }
.quote__motto { margin-top: 32px; font: 700 14px/1 var(--f-text); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.quote__motto span { color: var(--text); }
html[data-uv] .quote__motto span { color: transparent; background: var(--fill); -webkit-background-clip: text; background-clip: text; }
.facts { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: clamp(32px, 4vw, 72px); }
.facts .label { margin-bottom: 16px; }
.facts__list li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts__list li:first-child { border-top: 1px solid var(--line); }
.facts__list strong { color: var(--text); }
.facts__list span { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.form { display: grid; gap: 34px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend, .field > span { display: block; margin-bottom: 14px; font: 600 12.5px/1.2 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--text);
  font: 400 clamp(19px, 1.5vw, 22px)/1.4 var(--f-text); padding: 6px 0 14px; transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); }
.field textarea::placeholder { color: var(--faint); }
.field .is-bad, .field input:user-invalid { border-color: #ff6b6b; }
.hp { position: absolute; left: -9999px; }
.form__send { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__status { font-size: 15px; color: var(--muted); }
.form__status.is-ok { color: var(--text); }
.form__status.is-err { color: #ff8b8b; }
.contact__side { display: grid; gap: 36px; align-content: start; }
.contact__side .label { margin-bottom: 12px; }
.contact__side p:not(.label) { color: var(--fog); }
.contact__mail { font: 600 clamp(19px, 1.6vw, 24px)/1.3 var(--f-text); border-bottom: 1px solid var(--line-2); word-break: break-all; transition: border-color 0.3s; }
.contact__mail:hover { border-color: var(--text); }
.contact__clock { margin-top: 8px; font-size: 14px; color: var(--muted) !important; }
.contact__links li + li { margin-top: 6px; }
.contact__links a { font-size: 18px; color: var(--fog); border-bottom: 1px solid transparent; transition: border-color 0.3s, color 0.3s; }
.contact__links a:hover { color: var(--text); border-color: var(--text); }

/* ---------------------------------------------------------------- 404 / thanks */
.lost { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 64px; }
.lost .wrap { display: grid; gap: 24px; justify-items: start; }
.lost__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------------------------------------------------------------- cursor, grain, toast */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; translate: var(--dx, -99px) var(--dy, -99px); }
.cursor__ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(255, 255, 255, 0.7); translate: var(--rx, -99px) var(--ry, -99px); display: grid; place-items: center; transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.35s, border-color 0.35s; }
.cursor__label { color: #000; font: 600 12px/1 var(--f-text); opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.cursor.is-link .cursor__ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; border-color: #fff; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.is-hidden { opacity: 0; }
.grain {
  position: fixed; inset: -100%; z-index: 200; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
html[data-uv] body::before {
  content: ""; position: fixed; inset: 0; z-index: 150; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(120% 80% at 80% -10%, rgba(139, 92, 255, 0.2), transparent 60%), radial-gradient(90% 70% at 0% 110%, rgba(255, 59, 212, 0.14), transparent 60%);
}
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--text); color: var(--ink); padding: 12px 18px; border-radius: 99px; font: 500 14px/1 var(--f-text); transition: opacity 0.4s, translate 0.6s var(--ease); }
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------------------------------------------------------------- page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.5s var(--ease-io) both; }
::view-transition-new(root) { animation: vt-in 0.8s var(--ease-io) both; }
::view-transition-group(*) { animation-duration: 0.8s; animation-timing-function: var(--ease-io); }

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -7%); } 60% { transform: translate(-4%, -3%); } 80% { transform: translate(7%, 5%); } 100% { transform: translate(-2%, 6%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4vh) scale(0.98); } }
@keyframes vt-in { from { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .svcs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > :last-child { grid-column: 1 / -1; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row__side { flex-direction: row; align-items: center; }
  .svc-row__side .svc__icon { width: 40px; height: 40px; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .split, .side, .chapter, .contact, .project__intro, .svc-row__body { grid-template-columns: 1fr; }
  .side__head { position: static; }
  .split__media { max-width: 460px; width: 100%; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__plane { clip-path: polygon(78% 0, 100% 0, 100% 100%, 40% 100%); }
  .project__body { padding-left: 0; }
  .next__link { grid-template-columns: 1fr; }
  .next__media { width: 100%; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .archive__bar { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .form .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .views { align-self: flex-start; }
  .archive[data-view="list"] .archive__head { display: none; }
  .archive[data-view="list"] .item a { grid-template-columns: 2.5rem minmax(0, 1fr) 20px; gap: 2px 12px; }
  .archive[data-view="list"] .item__client { display: none; }
  .archive[data-view="list"] .item__tags { grid-column: 2; grid-row: 2; }
  .archive[data-view="list"] .item__go { grid-column: 3; grid-row: 1 / span 2; }
  .preview { display: none; }
  .mw { --cx: 15px; --cy: 35px; }
  .mw.frame--lg { --cx: 20px; --cy: 47px; }
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --t-hero: 21vw; }
  .nav__cta { display: none; }
  .svcs, .steps, .items, .facts, .values { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .svc__title { margin-top: 20px; }
  .step { min-height: 0; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .rows--numbered .row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .svc-row__work { grid-template-columns: 1fr 1fr; }
  .svc-row__work .svc-work:nth-child(3) { display: none; }
  .project__gallery { grid-template-columns: 1fr; }
  .chapter__side { gap: 14px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero__label, .js .hero__foot { opacity: 1; transform: none; }
  .js .hero__line .ch, .js [data-split] .wi { transform: none; }
  .js .reveal .frame { --ix: 0%; --iy: 0%; }
  .grain { animation: none; }
  @view-transition { navigation: none; }
}
