/* =====================================================================
   Rehan Ali — plain landing page
   Editorial: type does the work. Warm paper, ink, hairline rules,
   one serif italic voice for emphasis, mono labels. Real work as imagery.
   ===================================================================== */
:root {
  --paper: #f2f0ea;
  --paper-2: #e8e5dc;
  --ink: #121212;
  --ink-2: #3b3a36;
  --ink-3: #77746b;
  --rule: rgba(18, 18, 18, 0.16);
  --navy: #22306a;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --g: clamp(16px, 3vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--ink); color: var(--paper); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.4; }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.4s var(--spring), background-color 0.25s;
}
.btn:hover { background: var(--navy); }
.btn:active { transform: scale(0.96); transition-duration: 0.08s; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.ulink { position: relative; display: inline-block; font-weight: 500; text-decoration: none; padding-bottom: 2px; }
.ulink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.5s var(--out); }
.ulink:hover::after { transform: scaleX(0); }
.ulink--quiet { color: var(--ink-3); }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 var(--g); color: var(--ink); transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--out); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(242, 240, 234, 0.82); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom-color: var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; font-size: 17px; }
.nav__links { display: flex; gap: 22px; }
.nav__links a, .nav__cta { font-size: 15px; text-decoration: none; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--out); }
.nav__links a:hover::after, .nav__links a.is-on::after { transform: scaleX(1); }
.nav__time { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: #2fbf5b; box-shadow: 0 0 0 3px rgba(47, 191, 91, 0.18); }
.nav__cta { font-weight: 500; padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: background-color 0.25s; }
.nav__cta:hover { background: var(--navy); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px var(--g) 0; overflow: hidden; }
.hero__top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: clamp(24px, 3vw, 40px); color: var(--ink-2); }
.hero__title { font-size: clamp(50px, 8.4vw, 150px); line-height: 0.9; letter-spacing: -0.058em; font-weight: 500; margin-left: -0.04em; }
.hero__title em { letter-spacing: -0.03em; color: var(--navy); padding-right: 0.04em; }
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: inline-block; }
.js .line > span { transform: translateY(105%); transition: transform 1.2s var(--out); }
.js .is-ready .line > span { transform: none; }
.js .is-ready .line:nth-child(2) > span { transition-delay: 0.08s; }
.js .is-ready .line:nth-child(3) > span { transition-delay: 0.16s; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 64px; align-items: end; margin-top: clamp(28px, 4vw, 56px); }
.hero__sub { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 30em; letter-spacing: -0.01em; }
.hero__cta { display: flex; align-items: center; gap: 24px; }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; padding-bottom: 36px; border-top: 1px solid var(--rule); }
.hero__facts > div { padding: 16px 20px 0 0; }
.hero__facts > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.hero__facts dt { color: var(--ink-3); margin-bottom: 8px; }
.hero__facts dd { font-size: 15px; line-height: 1.4; color: var(--ink-2); max-width: 17em; }
.hero__facts b { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; color: var(--ink); margin-right: 2px; }
.js .hero__row, .js .hero__facts, .js .wall { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease 0.45s, transform 1.2s var(--out) 0.45s; }
.js .is-ready .hero__row, .js .is-ready .hero__facts, .js .is-ready .wall { opacity: 1; transform: none; }
.js .is-ready .wall { transition-delay: 0.6s; }

/* The wall: real screenshots on a tilted plane, drifting. */
.wall { position: relative; height: clamp(360px, 44vw, 620px); margin: clamp(8px, 2vw, 24px) calc(var(--g) * -1) 0; perspective: 1600px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 70%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 70%, transparent 100%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); mask-composite: intersect; }
.wall__tilt { --rx: 0deg; --ry: 0deg; position: absolute; left: 50%; top: 50%; width: 170%; display: grid; gap: 22px; transform: translate(-50%, -50%) rotateX(calc(42deg + var(--rx))) rotateZ(-14deg) rotateY(var(--ry)); transform-style: preserve-3d; will-change: transform; }
.wall__row { overflow: visible; }
.wall__track { display: flex; gap: 22px; width: max-content; animation: drift 90s linear infinite; }
.wall__row--2 .wall__track { animation-direction: reverse; animation-duration: 110s; }
.wall__row--3 .wall__track { animation-duration: 100s; }
.wall__track img { width: clamp(220px, 22vw, 360px); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; background: var(--paper-2); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 30px 40px -24px rgba(18, 18, 18, 0.45); }
@keyframes drift { to { transform: translateX(-50%); } }
.wall:hover .wall__track { animation-play-state: paused; }
.wall__cap { position: relative; margin-top: -48px; padding-bottom: 28px; color: var(--ink-3); text-align: center; }

/* ---------- start here ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.path { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px var(--g) 34px; text-decoration: none; overflow: hidden; isolation: isolate; }
.path + .path { border-left: 1px solid var(--rule); }
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 0.6s var(--out); }
.path:hover::before, .path:focus-visible::before { transform: none; }
.path .mono { color: var(--ink-3); transition: color 0.3s; }
.path strong { font-weight: 500; font-size: clamp(20px, 1.9vw, 27px); line-height: 1.15; letter-spacing: -0.03em; max-width: 14em; transition: color 0.3s; }
.path__go { position: absolute; right: var(--g); top: 26px; font-size: 22px; transition: transform 0.5s var(--out), color 0.3s; }
.path:hover .mono, .path:focus-visible .mono { color: rgba(242, 240, 234, 0.6); }
.path:hover strong, .path:hover .path__go, .path:focus-visible strong, .path:focus-visible .path__go { color: var(--paper); }
.path:hover .path__go { transform: translateX(6px); }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 160px) var(--g); }
.sec--paper2 { background: var(--paper-2); }
.sec__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; margin-bottom: clamp(48px, 7vw, 104px); }
.sec__n { grid-column: 1 / -1; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); color: var(--ink-3); }
.sec__title { grid-column: 1 / span 11; font-size: clamp(40px, 6.6vw, 112px); line-height: 0.95; letter-spacing: -0.05em; }
.sec__title em { color: var(--navy); }
.sec__note { grid-column: 7 / -1; margin-top: 28px; color: var(--ink-2); font-size: 17px; max-width: 34em; }
.sec__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 56px; }

/* ---------- work ---------- */
.case { padding-bottom: clamp(72px, 9vw, 128px); }
.case + .case { padding-top: 28px; border-top: 1px solid var(--rule); }
.case__meta { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 24px; margin-bottom: 24px; }
.case__no { grid-column: 1 / -1; color: var(--ink-3); }
.case__name { font-size: clamp(44px, 7.6vw, 128px); line-height: 0.92; letter-spacing: -0.055em; }
.case__tag { color: var(--ink-2); }
.case__tag--live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2fbf5b; margin-right: 8px; vertical-align: 1px; }
.case__shot { position: relative; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.case__shot img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; transition: opacity 0.2s, transform 1.4s var(--out); }
.case:hover .case__shot img { transform: scale(1.015); }
.case__shot img.is-swap { opacity: 0; }
.thumbs { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(18, 18, 18, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.thumb { border: 0; background: none; color: rgba(242, 240, 234, 0.7); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.thumb:hover { color: var(--paper); }
.thumb.is-on { background: var(--paper); color: var(--ink); }
.case__info { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 28px; }
.case__dl { grid-column: 1 / span 5; }
.case__dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.case__dl > div:last-child { border-bottom: 1px solid var(--rule); }
.case__dl dt { color: var(--ink-3); padding-top: 3px; }
.case__dl dd { font-size: 15.5px; }
.case__text { grid-column: 7 / -1; display: grid; gap: 18px; justify-items: start; align-content: start; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); letter-spacing: -0.01em; }
.case__win { display: flex; align-items: baseline; gap: 14px; color: var(--ink); }
.case__win .mono { color: var(--navy); }
.case__links { display: flex; flex-wrap: wrap; gap: 24px; }
.case__text .ulink { font-size: 16px; color: var(--ink); }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 28px; border-top: 1px solid var(--rule); margin-bottom: clamp(72px, 9vw, 128px); }
.more__item { display: grid; gap: 12px; align-content: start; justify-items: start; }
.more__item img, .more__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; background: var(--paper-2); margin-bottom: 6px; transition: transform 1s var(--out); }
.more__item:hover img { transform: translateY(-4px); }
.more__ph { display: grid; place-items: center; color: var(--ink-3); background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(18, 18, 18, 0.05) 12px 13px), var(--paper-2); }
.more__item > .mono:first-of-type { color: var(--ink-3); }
.more__item h3 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -0.04em; line-height: 1; }
.more__item > p:not(.mono) { color: var(--ink-2); font-size: 16px; }
.more__stack { color: var(--ink-3); text-transform: none; letter-spacing: 0; }

.index { position: relative; }
.index__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.index__head h3 { font-size: clamp(32px, 3.4vw, 52px); letter-spacing: -0.045em; line-height: 1; }
.index__head .mono { color: var(--ink-3); }
.index__list { list-style: none; padding: 0; }
.index__list a { display: grid; grid-template-columns: 60px 1.4fr 1fr 80px; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: color 0.25s; }
.index__list b { font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.02em; transition: transform 0.6s var(--out); }
.index__list a > span:nth-child(3) { color: var(--ink-3); font-size: 15px; }
.index__list a > .mono { color: var(--ink-3); }
.index__list a > .mono:last-child { text-align: right; }
.index__list a:hover b { transform: translateX(14px); }
.index__list:hover a:not(:hover) { color: rgba(18, 18, 18, 0.35); }
.peek { position: fixed; z-index: 40; left: 0; top: 0; width: 300px; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); transition: opacity 0.25s; will-change: transform; }
.peek img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 30px 50px -20px rgba(18, 18, 18, 0.5); }
.peek.is-on { opacity: 1; }

/* ---------- business ---------- */
.find { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(72px, 9vw, 120px); }
.find__lead { grid-column: 1 / span 7; font-size: clamp(22px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -0.03em; }
.find__lead b { font-weight: 500; font-family: var(--serif); font-style: italic; font-size: 1.25em; color: var(--navy); }
.find__stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.big { padding-top: 18px; border-top: 1px solid var(--ink); }
.big__n { font-size: clamp(76px, 9.4vw, 170px); line-height: 0.85; letter-spacing: -0.065em; font-weight: 400; margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.big__n span { color: rgba(18, 18, 18, 0.22); }
.big > p:not(.big__n) { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 20em; margin-bottom: 18px; }
.big__bar { display: block; height: 3px; background: rgba(18, 18, 18, 0.1); }
.big__bar i { display: block; height: 100%; width: calc(var(--v) * 100%); background: #d6301a; transform-origin: left; transition: transform 1.6s var(--out) 0.3s; }
.js .find:not(.is-in) .big__bar i { transform: scaleX(0); }
.find__fine { grid-column: 1 / -1; color: var(--ink-3); }
.fix { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.ba { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 32px; border-radius: 6px; background: var(--paper); }
.ba figure { display: grid; gap: 14px; }
.ba figcaption { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.ba figcaption .mono { display: block; margin-bottom: 4px; color: var(--ink); }
.ba figure:first-child figcaption .mono { color: #c4271c; }
.ba figure:last-child figcaption .mono { color: #1d8f43; }
.ba__note { grid-column: 1 / -1; color: var(--ink-3); text-align: center; }
.phone { position: relative; aspect-ratio: 9 / 18.5; width: 100%; max-width: 180px; margin: 0 auto; border-radius: 30px; border: 6px solid var(--ink); background: #fff; padding: 30px 13px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.phone__island { position: absolute; top: 7px; left: 50%; width: 36%; height: 12px; margin-left: -18%; border-radius: 999px; background: var(--ink); }
.ph-logo { width: 40%; height: 9px; border-radius: 3px; background: #d8d6cf; margin-bottom: 6px; }
.ph-line { height: 6px; border-radius: 3px; background: #ecebe6; width: 90%; }
.ph-line--l { height: 11px; width: 75%; background: #cfccc3; }
.ph-line--s { width: 55%; }
.ph-plain { font-size: 8.5px; color: #9a978e; }
.ph-tiny { font-size: 7px; color: #b0ada4; margin-top: auto; text-decoration: underline; }
.ph-cta { font-size: 9.5px; font-weight: 600; color: #fff; background: var(--navy); border-radius: 999px; padding: 8px; text-align: center; margin: 6px 0; }
.ph-bar { position: absolute; left: 6px; right: 6px; bottom: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ph-bar span { font-size: 9.5px; font-weight: 600; text-align: center; padding: 8px; border-radius: 12px; background: var(--ink); color: #fff; }
.ph-bar span + span { background: var(--navy); }
.fix__list { grid-column: 8 / -1; }
.fix__list h3 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -0.04em; margin-bottom: 20px; }
.fix__list ol { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.fix__list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.fix__list li .mono { color: var(--ink-3); padding-top: 4px; }
.fix__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }

/* ---------- agencies (ink) ---------- */
.sec--ink { background: var(--ink); color: var(--paper); }
.sec--ink .sec__n { color: rgba(242, 240, 234, 0.5); border-color: rgba(242, 240, 234, 0.18); }
.sec--ink .sec__title em { color: #aebcf2; }
.modes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(242, 240, 234, 0.18); margin-bottom: 72px; }
.modes li { padding: 26px 28px 8px 0; }
.modes li + li { padding-left: 28px; border-left: 1px solid rgba(242, 240, 234, 0.18); }
.modes .mono { display: block; font-family: var(--serif); font-style: italic; text-transform: none; font-size: 56px; line-height: 1; color: #aebcf2; margin-bottom: 18px; letter-spacing: 0; font-weight: 400; }
.modes h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 10px; }
.modes p { color: rgba(242, 240, 234, 0.65); }
.terms > div { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid rgba(242, 240, 234, 0.18); }
.terms > div:last-child { border-bottom: 1px solid rgba(242, 240, 234, 0.18); }
.terms dt { grid-column: 1 / span 3; color: rgba(242, 240, 234, 0.5); padding-top: 6px; }
.terms dd { grid-column: 4 / -1; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.025em; line-height: 1.3; }
.sec--ink .ulink { color: var(--paper); }

/* ---------- services + process ---------- */
.svc { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 32px; margin-bottom: clamp(80px, 10vw, 140px); }
.svc li { padding: 22px 0 40px; border-top: 1px solid var(--rule); }
.svc h3 { font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 12px; }
.svc p { color: var(--ink-2); max-width: 24em; }
.process__h { color: var(--ink-3); padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.steps li { padding: 24px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps__n { display: block; font-family: var(--serif); font-style: italic; font-size: 72px; line-height: 0.9; color: var(--navy); margin-bottom: 20px; }
.steps h4 { font-size: 20px; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- hiring ---------- */
.cv { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.cv__side { grid-column: 1 / span 4; position: sticky; top: 90px; align-self: start; display: grid; gap: 14px; justify-items: start; color: var(--ink-2); }
.cv__me { width: 88px; height: 88px; border-radius: 50%; padding: 6px; background: var(--paper); }
.cv__name { font-size: 24px; letter-spacing: -0.03em; color: var(--ink); }
.cv__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 10px; }
.cv__main { grid-column: 6 / -1; }
.jobs { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.jobs li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.jobs__when { color: var(--ink-3); padding-top: 6px; }
.jobs h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.035em; line-height: 1.15; }
.jobs h3 span { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--navy); letter-spacing: -0.01em; }
.jobs__where { color: var(--ink-3); margin: 6px 0 8px; }
.jobs p:not(.mono) { color: var(--ink-2); margin-top: 6px; }
.tools { margin-top: 56px; }
.tools > div { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 14px 0; border-top: 1px solid var(--rule); }
.tools > div:last-child { border-bottom: 1px solid var(--rule); }
.tools dt { color: var(--ink-3); padding-top: 4px; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 24px 56px 24px 0; font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -0.035em; line-height: 1.2; cursor: pointer; transition: color 0.25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy); }
.faq summary span { position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; }
.faq summary span::before, .faq summary span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.5s var(--out); }
.faq summary span::after { transform: rotate(90deg); }
.faq details[open] summary span::after { transform: rotate(0deg); }
.faq details > p { padding: 0 0 28px; max-width: 40em; font-size: 18px; color: var(--ink-2); }
.faq details[open] > p { animation: drop 0.6s var(--out); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- contact + footer ---------- */
.contact { padding: clamp(80px, 11vw, 160px) var(--g) 64px; background: var(--ink); color: var(--paper); }
.contact .sec__n { color: rgba(242, 240, 234, 0.5); border-color: rgba(242, 240, 234, 0.18); }
.contact__title { font-size: clamp(40px, 6.6vw, 112px); line-height: 0.95; letter-spacing: -0.05em; max-width: 12em; margin-bottom: clamp(40px, 6vw, 80px); }
.contact__title em { color: #aebcf2; }
.contact__mail { display: inline-flex; align-items: baseline; gap: 0.2em; font-size: clamp(30px, 6.2vw, 104px); letter-spacing: -0.05em; line-height: 1; text-decoration: none; position: relative; padding-bottom: 10px; max-width: 100%; }
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0.12); transform-origin: left; transition: transform 0.8s var(--out); }
.contact__mail:hover::after { transform: scaleX(1); }
.contact__mail span { font-size: 0.5em; transition: transform 0.6s var(--out); }
.contact__mail:hover span { transform: translate(6px, -6px); }
.contact__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid rgba(242, 240, 234, 0.18); }
.contact__list a { display: grid; gap: 8px; padding: 20px 20px 22px 0; text-decoration: none; font-size: 17px; transition: color 0.25s; }
.contact__list li + li a { padding-left: 20px; border-left: 1px solid rgba(242, 240, 234, 0.18); }
.contact__list .mono { color: rgba(242, 240, 234, 0.5); }
.contact__list a:hover { color: #aebcf2; }
.contact__social { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.contact__social a { text-decoration: none; color: rgba(242, 240, 234, 0.75); }
.contact__social a:hover { color: var(--paper); }
.foot { background: var(--ink); color: var(--paper); padding: 0 var(--g) 28px; overflow: hidden; }
.foot__mark { font-size: clamp(72px, 23.4vw, 460px); line-height: 0.78; letter-spacing: -0.07em; font-weight: 500; white-space: nowrap; margin: 0 0 24px -0.05em; color: rgba(242, 240, 234, 0.08); }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(242, 240, 234, 0.5); padding-top: 18px; border-top: 1px solid rgba(242, 240, 234, 0.18); }
.foot__row a { text-decoration: none; color: rgba(242, 240, 234, 0.75); }
.foot__row a:hover { color: var(--paper); }
.callbar { display: none; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s ease, transform 1.2s var(--out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .hero__facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 16px; }
  .case__dl, .case__text { grid-column: 1 / -1; }
  .more { grid-template-columns: 1fr 1fr; }
  .find__lead { grid-column: 1 / -1; }
  .ba, .fix__list { grid-column: 1 / -1; }
  .fix__list { margin-top: 32px; }
  .svc { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .steps__n { grid-row: span 2; font-size: 56px; margin: 0; }
  .cv__side { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .cv__main { grid-column: 1 / -1; }
  .contact__list { grid-template-columns: 1fr 1fr; }
  .contact__list li:nth-child(3) a { border-left: 0; padding-left: 0; }
  .contact__list li:nth-child(n+3) { border-top: 1px solid rgba(242, 240, 234, 0.18); }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .nav { gap: 14px; height: 56px; }
  .nav__time { display: none; }
  .hero { padding-top: 84px; }
  .hero__top .hero__idx { display: none; }
  .hero__title { font-size: clamp(40px, 11.4vw, 64px); letter-spacing: -0.055em; }
  .line > span { text-wrap: balance; }
  .hero__row { grid-template-columns: 1fr; }
  .hero__cta { gap: 20px; }
  .hero__facts dd { font-size: 14px; }
  .hero__facts b { font-size: 28px; }
  .wall { height: 340px; }
  .wall__tilt { width: 260%; gap: 12px; }
  .wall__track { gap: 12px; }
  .wall__track img { width: 170px; border-radius: 5px; }
  .wall__cap { margin-top: -28px; }
  .paths { grid-template-columns: 1fr; }
  .path + .path { border-left: 0; border-top: 1px solid var(--rule); }
  .path { padding: 22px var(--g) 24px; }
  .sec__title { grid-column: 1 / -1; }
  .sec__note { grid-column: 1 / -1; margin-top: 18px; font-size: 16px; }
  .case__meta { grid-template-columns: 1fr; }
  .case__shot img { aspect-ratio: 16 / 11; }
  .thumbs { left: 8px; right: 8px; bottom: 8px; overflow-x: auto; scrollbar-width: none; }
  .thumb { padding: 7px 10px; font-size: 10.5px; flex: none; }
  .case__dl > div { grid-template-columns: 76px 1fr; }
  .more { grid-template-columns: 1fr; gap: 48px; }
  .index__list a { grid-template-columns: 34px 1fr auto; }
  .index__list a > span:nth-child(3) { display: none; }
  .find__stats { grid-template-columns: 1fr; gap: 40px; }
  .ba { padding: 18px; gap: 12px; }
  .ba figcaption { font-size: 13px; }
  .fix__cta .btn { width: 100%; justify-content: center; }
  .modes { grid-template-columns: 1fr; }
  .modes li, .modes li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid rgba(242, 240, 234, 0.18); }
  .modes .mono { font-size: 44px; }
  .terms > div { grid-template-columns: 1fr; gap: 6px; }
  .terms dt, .terms dd { grid-column: 1; }
  .svc { grid-template-columns: 1fr; }
  .steps li, .steps li + li { grid-template-columns: 56px 1fr; }
  .steps__n { font-size: 46px; }
  .jobs li, .tools > div { grid-template-columns: 1fr; gap: 6px; }
  .faq summary { padding-right: 44px; }
  .faq details > p { font-size: 16px; }
  .contact__list { grid-template-columns: 1fr; }
  .contact__list li + li a, .contact__list li:nth-child(3) a { padding-left: 0; border-left: 0; }
  .contact__list li + li { border-top: 1px solid rgba(242, 240, 234, 0.18); }
  .contact__mail { font-size: clamp(24px, 8vw, 40px); }
  .callbar { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; border-radius: 999px; background: var(--ink); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.5); }
  .callbar a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; color: var(--paper); font-weight: 500; font-size: 15px; text-decoration: none; transition: transform 0.25s var(--spring); }
  .callbar a:active { transform: scale(0.95); }
  .callbar__wa { background: #1f9e55; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; transition-delay: 0s !important; }
  .js .line > span, .js .reveal, .js .hero__row, .js .hero__facts, .js .wall { transform: none !important; opacity: 1 !important; }
  .wall__track { animation: none; }
}
