/* hafeezoyeneyin.com
   Layout: a quiet, dark studio. Large tightly-set grotesk headlines with one italic serif word,
   generous space, soft rounded panels. The portfolio stays neutral so each client's colors carry the color.
   One signature moment: the interactive field in the home hero. Dark-only by design. */
:root {
  --void: #07080B;
  --panel: #0D0F14;
  --panel-2: #12151C;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #F2F3F6;
  --text-2: #B4BAC6;
  --muted: #7E8594;
  --accent: #FF5BD6;          /* the studio's one accent */
  --font-display: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.4vw, 1.3rem);
  --step-2: clamp(1.5rem, 2.4vw, 2rem);
  --step-3: clamp(2.2rem, 5vw, 4rem);
  --step-4: clamp(2.8rem, 8.2vw, 7.4rem);
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 10px;
  --r-lg: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--void); }
body {
  margin: 0; background: var(--void); color: var(--text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "ss01";
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--void); }
img, video { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--void); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--void); padding: 10px 14px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.045em; line-height: .98; text-wrap: balance; margin: 0; }
.display em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; margin: 0 0 22px; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc, var(--accent)); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: background .3s ease, border-color .3s ease;
}
.site-header.scrolled, .site-header.nav-open, .site-header.solid { background: rgba(7, 8, 11, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-color: var(--line); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: -0.02em; white-space: nowrap; }
.mark { width: 28px; height: 28px; flex: none; }
.mark .bar { fill: var(--text); }
.mark .o { fill: none; stroke: var(--accent); stroke-width: 2.6; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { text-decoration: none; font-size: .93rem; color: var(--text-2); transition: color .2s; position: relative; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.nav-open .menu-btn span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .menu-btn span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); }
.mobile-menu .wrap { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 8px 24px; }
.mobile-menu a:not(.btn) { display: flex; justify-content: space-between; align-items: baseline; text-decoration: none; font-weight: 600; letter-spacing: -0.03em; font-size: 1.75rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn)::after { content: "→"; font-size: 1rem; color: var(--muted); }
.mobile-menu a[aria-current="page"]::after { color: var(--accent); }
.mobile-menu .btn { justify-content: center; margin-top: 20px; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } .menu-btn { display: block; } .nav { gap: 10px; } }
@media (max-width: 520px) { .nav .btn { display: none; } }
@media (min-width: 821px) { .mobile-menu { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 500 .95rem/1 var(--font-body); letter-spacing: -0.01em;
  padding: 15px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line-2); color: var(--text); background: transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
.btn-primary { background: var(--text); color: var(--void); border-color: var(--text); }
.btn-primary:hover { background: #fff; border-color: #fff; color: var(--void); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.site-header .btn { padding: 10px 16px; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; color: var(--text); transition: color .2s, gap .3s var(--ease); }
.link-arrow:hover { color: var(--acc, var(--accent)); gap: 12px; }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 16% 45%, rgba(7,8,11,.92), transparent 72%),
    linear-gradient(to bottom, rgba(7,8,11,.75), transparent 30%, transparent 70%, var(--void));
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(150px, 19vw, 230px) clamp(90px, 12vw, 160px); }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(13,15,20,.7); font-size: .85rem; color: var(--text-2); margin: 0 0 34px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #5BE49B; box-shadow: 0 0 0 4px rgba(91,228,155,.15); }
.hero h1 { font-size: var(--step-4); max-width: 11ch; }
.hero h1 em { color: var(--accent); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero .lede { font-size: var(--step-1); line-height: 1.55; color: var(--text-2); max-width: 30em; margin: 34px 0 40px; animation: fade 1s ease both .35s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: fade 1s ease both .5s; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Client strip ---------- */
.clients { border-bottom: 1px solid var(--line); }
.clients .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 48px; padding-block: 34px; }
.clients p { margin: 0; font-size: .85rem; color: var(--muted); max-width: 9em; line-height: 1.4; }
.client-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 30px; margin: 0; padding: 0; list-style: none; }
.client-list a { text-decoration: none; color: #9AA0AD; transition: color .3s; white-space: nowrap; }
.client-list a:hover { color: var(--text); }
.cl-courtside { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.cl-ascf { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .04em; }
.cl-nextgen { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.cl-timber { font-family: "Inter", sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: -0.03em; }
.cl-tipsy { font-family: "Boogaloo", cursive; font-size: 1.35rem; }
.client-viewport { min-width: 0; }
.client-list.dup { display: none; }
/* Phones and tablets: one continuous, slowly scrolling row instead of uneven wrapped lines */
@media (max-width: 860px) {
  .client-viewport { overflow: hidden; margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .client-track { display: flex; width: max-content; animation: clients 26s linear infinite; }
  .client-list, .client-list.dup { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 0 40px; padding-right: 40px; }
  .client-list li { flex: none; }
}
@keyframes clients { to { transform: translateX(-50%); } }
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .client-viewport { overflow: visible; margin-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .client-track { width: auto; display: block; }
  .client-list { flex-wrap: wrap; gap: 14px 28px; padding-right: 0; }
  .client-list.dup { display: none; }
}
@media (max-width: 860px) { .clients .wrap { grid-template-columns: minmax(0, 1fr); } .client-list { justify-content: flex-start; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: clamp(150px, 17vw, 210px) clamp(64px, 8vw, 104px); }
.page-hero h1 { font-size: var(--step-4); max-width: 12ch; }
.page-hero .intro { font-size: var(--step-1); color: var(--text-2); max-width: 32em; margin: 30px 0 0; line-height: 1.55; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding-block: clamp(96px, 13vw, 168px); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 20px 72px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin: 0; color: var(--text-2); max-width: 28em; }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } }
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Browser frame + live preview ---------- */
.frame { --acc: var(--accent); position: relative; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.12); flex: none; }
.chrome em { margin-inline: auto; font: 400 .74rem/1 var(--font-mono); color: var(--muted); font-style: normal; min-width: 0; max-width: 60%; padding: 6px 14px; border-radius: 6px; background: rgba(255,255,255,.04); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chrome b { width: 46px; flex: none; }
.frame-view { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; container-type: inline-size; background: var(--panel-2); }
.frame-view iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity .6s ease; background: #fff; z-index: 3; }
.frame-view video.media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 2; }
.frame.loaded .frame-view iframe { opacity: 1; }
.frame.loaded .poster { opacity: 0; }
.frame-view .loading { position: absolute; right: 12px; bottom: 12px; z-index: 4; font: 400 .7rem/1 var(--font-mono); color: var(--text-2); background: rgba(7,8,11,.75); padding: 7px 10px; border-radius: 999px; opacity: 0; transition: opacity .3s; }
.frame.loading .frame-view .loading { opacity: 1; }
.frame:not(.interactive) .frame-view iframe { pointer-events: none; }
.frame.is-phone { max-width: 400px; margin-inline: auto; border-radius: 34px; }
.frame.is-phone .frame-view { aspect-ratio: 390 / 760; }
.frame.is-phone .chrome i, .frame.is-phone .chrome b { display: none; }

/* ---------- Posters (client-branded fallbacks, sized with container units) ---------- */
.poster { position: absolute; inset: 0; z-index: 1; transition: opacity .6s ease; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 6cqw 7cqw; }
.poster p { margin: 0; }

.p-courtside { background: radial-gradient(80% 70% at 50% 0%, #1B2A4A, #0C1526 70%); color: #FAF6EE; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; align-items: center; text-align: center; gap: 1.5cqw; }
.p-courtside .board { display: flex; align-items: stretch; gap: 3cqw; font-weight: 700; letter-spacing: .06em; font-size: 2.4cqw; color: #D4A017; }
.p-courtside .board span { display: grid; place-items: center; padding: 1cqw 2.4cqw; border: .25cqw solid #1B2A4A; background: #08101E; }
.p-courtside .board b { color: #E8712B; font-size: 5cqw; line-height: 1; font-variant-numeric: tabular-nums; }
.p-courtside .board .clock b { color: #FF5A3C; text-shadow: 0 0 2cqw rgba(255, 90, 60, .6); }
.p-courtside .big { font-weight: 800; font-size: 26cqw; line-height: .82; color: #E8712B; letter-spacing: -.01em; }
.p-courtside .line { font-weight: 800; font-size: 5.2cqw; letter-spacing: .02em; line-height: 1; }
.p-courtside .sub { font-family: "Caveat", cursive; text-transform: none; font-size: 3.4cqw; color: #D4A017; }

.p-tipsy { background: radial-gradient(70% 90% at 85% 10%, #FF8CCB, #E85DA8 60%); color: #fff; font-family: "Boogaloo", "Comic Sans MS", cursive; gap: 1.6cqw; }
.p-tipsy .tag { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 2.2cqw; letter-spacing: .14em; opacity: .9; }
.p-tipsy .big { font-size: 17cqw; line-height: .86; text-shadow: .8cqw .8cqw 0 rgba(120, 20, 80, .35); }
.p-tipsy .cal { display: grid; grid-template-columns: repeat(7, 4.6cqw); gap: .8cqw; margin-top: 1cqw; font-family: "Nunito", sans-serif; font-weight: 800; font-size: 1.8cqw; }
.p-tipsy .cal span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); }
.p-tipsy .cal .on { background: #fff; color: #E85DA8; }
.p-tipsy .cal .hd { background: none; opacity: .85; }
.p-tipsy .price { font-family: "Nunito", sans-serif; font-weight: 800; font-size: 2.6cqw; }

.p-timber { background-color: #0E1B2A; color: #fff; font-family: "Inter", system-ui, sans-serif; gap: 2cqw; isolation: isolate; }
.p-timber .grain { position: absolute; inset: -20%; z-index: -1; opacity: .5;
  background:
    repeating-radial-gradient(ellipse 120% 40% at 70% 120%, rgba(201,139,79,0) 0 1.6cqw, rgba(201,139,79,.35) 1.7cqw 1.9cqw, rgba(201,139,79,0) 2cqw 3.4cqw),
    linear-gradient(120deg, #3A2414, #1A120C 60%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 75%); -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 75%);
}
.p-timber .kick { font-weight: 700; font-size: 2cqw; letter-spacing: .18em; color: #C98B4F; }
.p-timber .big { font-weight: 800; font-size: 7cqw; line-height: 1.02; letter-spacing: -.02em; max-width: 13ch; }
.p-timber .note { font-size: 2.2cqw; color: rgba(255,255,255,.75); }
.p-timber .btnish { align-self: flex-start; background: #C98B4F; color: #0E1B2A; font-weight: 700; font-size: 2.1cqw; padding: 1.2cqw 2.2cqw; border-radius: .6cqw; }

.p-ascf { background: #FDD10A; color: #0E1618; font-family: "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; gap: 1.4cqw; }
.p-ascf .kick { font-weight: 600; font-size: 2.2cqw; letter-spacing: .12em; }
.p-ascf .lbl { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 2cqw; letter-spacing: .16em; }
.p-ascf .count { font-weight: 700; font-size: 20cqw; line-height: .85; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.p-ascf .count small { font-size: 5cqw; letter-spacing: .04em; margin-left: 1.5cqw; }
.p-ascf .time { display: flex; gap: 1cqw; flex-wrap: wrap; margin-top: 1cqw; }
.p-ascf .time span { font-weight: 600; font-size: 2.4cqw; padding: .6cqw 1.6cqw; border: .25cqw solid #0E1618; }
.p-ascf .time .now { background: #0E1618; color: #FDD10A; }

.p-nextgen { background: #FBF7EC; color: #1C1A16; font-family: "Instrument Sans", system-ui, sans-serif; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 3cqw; }
.p-nextgen .kick { margin: 0 0 1.4cqw; font-weight: 700; font-size: 1.9cqw; letter-spacing: .14em; color: #9C7F2E; }
.p-nextgen .big { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 6.6cqw; line-height: 1.02; letter-spacing: -.02em; }
.p-nextgen .big em { font-style: italic; color: #B08D35; }
.p-nextgen svg { width: 100%; height: auto; }
.p-nextgen .e { stroke: #D9CBA0; stroke-width: 2; }
.p-nextgen .n { fill: #F1EBDC; stroke: #C9A84C; stroke-width: 2; }
.p-nextgen .n.solid { fill: #C9A84C; }
.p-nextgen .n.pulse { animation: ngpulse 2.8s ease-in-out infinite; }
@keyframes ngpulse { 0%, 100% { fill: #F1EBDC; } 30% { fill: #E4C25E; } 60% { fill: #F1EBDC; } }

/* ---------- Featured work (home) ---------- */
.feature-list { display: grid; gap: clamp(80px, 11vw, 150px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.feature:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.feature:nth-child(even) .frame-link { order: 2; }
.feature a.frame-link { display: block; text-decoration: none; }
.feature .frame { transition: transform .6s var(--ease), box-shadow .6s var(--ease); box-shadow: 0 50px 100px -60px color-mix(in srgb, var(--acc) 55%, transparent); }
.feature a.frame-link:hover .frame { transform: translateY(-6px); }
.feature-copy { min-width: 0; }
.kind { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; }
.kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.feature h3 { font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.045em; line-height: 1.02; margin: 0 0 18px; }
.feature h3 a { text-decoration: none; }
.feature-copy > p:not(.kind) { margin: 0 0 28px; color: var(--text-2); font-size: 1.08rem; max-width: 28em; }
.built { margin: 0 0 30px; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.built li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--text-2); }
@media (max-width: 900px) { .feature, .feature:nth-child(even) { grid-template-columns: minmax(0, 1fr); } .feature:nth-child(even) .frame-link { order: 0; } }

/* ---------- Specimen strip ---------- */
.specimens { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.spec { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 300px; padding: 24px 22px; text-decoration: none; background: var(--sbg); color: var(--sfg); border-radius: var(--r-lg); transition: transform .5s var(--ease); min-width: 0; overflow: hidden; }
.spec .sample { font-family: var(--sfont); font-weight: var(--sweight, 700); font-size: var(--ssize, 3rem); line-height: .9; letter-spacing: var(--strack, 0); text-transform: var(--scase, none); overflow-wrap: anywhere; }
.spec .meta { font-size: .78rem; line-height: 1.5; opacity: .82; }
.spec .meta b { display: block; font-weight: 600; font-size: .86rem; opacity: 1; }
.spec .sw { display: flex; gap: 6px; margin-top: 10px; }
.spec .sw i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 0 0 2px rgba(255,255,255,.15); }
.spec::after { content: "↗"; position: absolute; top: 18px; right: 20px; opacity: 0; transform: translate(-4px, 4px); transition: opacity .3s, transform .3s var(--ease); }
.spec:hover::after { opacity: 1; transform: none; }
.spec:hover { transform: translateY(-6px); }
@media (max-width: 1000px) { .specimens { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spec { min-height: 220px; } .spec:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .specimens { grid-template-columns: minmax(0, 1fr); } .spec { min-height: 0; } }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.quote { margin: 0; padding: 34px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 26px; align-content: space-between; }
.quote blockquote { margin: 0; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.3; letter-spacing: -0.01em; }
.quote figcaption { font-size: .9rem; color: var(--text-2); display: flex; gap: 12px; align-items: center; }
.quote figcaption::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
.quote figcaption span { color: var(--muted); }
.big-quote { margin: 0; display: grid; gap: 30px; max-width: 30em; }
.big-quote blockquote { margin: 0; font-family: var(--font-serif); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.2; letter-spacing: -0.015em; }
.big-quote figcaption { color: var(--text-2); }

/* ---------- Work grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.filters button { font: 500 .88rem/1 var(--font-body); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; transition: all .2s; }
.filters button:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--void); border-color: var(--text); }
.filters button span { opacity: .55; margin-left: 6px; font-variant-numeric: tabular-nums; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
.card { display: flex; flex-direction: column; gap: 22px; text-decoration: none; min-width: 0; }
.card .frame { transition: transform .6s var(--ease); }
.card:hover .frame { transform: translateY(-6px); }
.card-body { display: grid; gap: 10px; }
.card-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.card-top .kind { margin: 0; }
.status { font-size: .8rem; color: var(--muted); }
.card h3 { font-weight: 600; font-size: var(--step-2); letter-spacing: -0.04em; line-height: 1.1; margin: 0; transition: color .3s; }
.card:hover h3 { color: var(--acc); }
.card-body > p:not(.kind), .card-body .card-top p { margin: 0; }
.card-body > p:not(.kind) { color: var(--text-2); max-width: 34em; }
.card .go { display: none; }
.card[hidden] { display: none; }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services ---------- */
.svc-list { border-top: 1px solid var(--line-2); }
.svc { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 48px; padding: 44px 0; border-bottom: 1px solid var(--line-2); }
.svc h3 { font-weight: 600; font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -0.05em; line-height: 1; margin: 0; }
.svc h3 small { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.15rem; letter-spacing: 0; color: var(--text-2); margin-top: 12px; }
.svc p { margin: 0; color: var(--text-2); font-size: 1.08rem; max-width: 24em; }
.svc p .eg { display: block; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.svc p .eg a { color: var(--text); }
.svc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: .98rem; color: var(--text-2); }
.svc li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px; }
.svc li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: .62em; }
@media (max-width: 900px) { .svc { grid-template-columns: minmax(0, 1fr); padding: 34px 0; } }
.addons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.addon { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; display: grid; gap: 10px; align-content: start; min-width: 0; transition: border-color .3s; }
.addon:hover { border-color: var(--line-2); }
.addon h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.addon p { margin: 0; color: var(--text-2); font-size: .98rem; }
.addon .seen { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.addon .seen a { color: var(--text); }
@media (max-width: 900px) { .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .addons { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps::before, .steps::after { content: ""; position: absolute; top: 20px; left: 20px; right: 20px; height: 1px; }
.steps::before { background: var(--line-2); }
.steps::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--progress, 0)); }
.steps li { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; counter-increment: s; }
.steps li::before { content: counter(s); width: 40px; height: 40px; display: grid; place-items: center; font: 500 .9rem/1 var(--font-body); color: var(--muted); background: var(--void); border: 1px solid var(--line-2); border-radius: 50%; transition: color .4s, background .4s, border-color .4s; }
.steps li.lit::before { color: var(--void); background: var(--text); border-color: var(--text); }
.steps h3 { margin: 10px 0 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--text-2); font-size: .98rem; }
@media (max-width: 880px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .steps::before, .steps::after { top: 20px; bottom: 20px; left: 19px; right: auto; width: 1px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--progress, 0)); }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 20px; }
  .steps li::before { grid-row: span 2; }
  .steps h3 { margin-top: 9px; }
}

/* ---------- Principles / about ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.principle { padding: 36px 32px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 12px; align-content: start; min-width: 0; }
.principle h3 { margin: 0; font-weight: 600; font-size: 1.6rem; letter-spacing: -0.04em; }
.principle p { margin: 0; color: var(--text-2); max-width: 30em; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stack li { font-size: .9rem; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 72px; align-items: start; }
.two-col h2 { font-size: var(--step-3); }
.two-col .prose p { margin: 0 0 24px; color: var(--text-2); font-size: var(--step-1); line-height: 1.55; max-width: 30em; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Case study ---------- */
.cs { --acc: var(--brand); }
.cs-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.cs-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 75% at 92% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.cs-hero .wrap { padding-block: clamp(140px, 16vw, 200px) clamp(48px, 7vw, 72px); }
.crumb { display: flex; width: fit-content; gap: 8px; font-size: .9rem; color: var(--muted); text-decoration: none; margin-bottom: 34px; }
.crumb:hover { color: var(--text); }
.cs-hero h1 { font-size: clamp(2.6rem, 7vw, 6rem); max-width: 14ch; }
.cs-tagline { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--text-2); max-width: 26em; margin: 26px 0 0; line-height: 1.3; }
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 56px 0 0; border-top: 1px solid var(--line-2); }
.cs-meta div { padding: 20px 24px 4px 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.cs-meta dt { font-size: .8rem; color: var(--muted); }
.cs-meta dd { margin: 0; font-size: .98rem; overflow-wrap: anywhere; }
.cs-meta dd a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--brand); }
.cs-meta dd a:hover { color: var(--brand); }
@media (max-width: 820px) { .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-preview { padding-block: clamp(40px, 6vw, 64px) clamp(72px, 10vw, 120px); border-bottom: 1px solid var(--line); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { font: 500 .86rem/1 var(--font-body); padding: 9px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--void); }
.frame-note { margin: 16px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.cs-preview .frame { box-shadow: 0 60px 120px -60px color-mix(in srgb, var(--brand) 50%, transparent); }
.cs-sec { padding-block: clamp(80px, 11vw, 140px); border-bottom: 1px solid var(--line); }
.cs-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px 72px; align-items: start; }
.cs-grid > h2 { font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.045em; line-height: 1.02; margin: 0; }
.cs-grid > h2 small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .78rem; letter-spacing: 0; color: var(--muted); margin-bottom: 16px; }
.prose p { margin: 0 0 20px; color: var(--text-2); font-size: 1.12rem; line-height: 1.7; max-width: 36em; }
.prose p:first-child { color: var(--text); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; letter-spacing: -0.015em; }
.featlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.featlist li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--text-2); display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px; }
.featlist li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: .62em; }
@media (max-width: 860px) { .cs-grid { grid-template-columns: minmax(0, 1fr); } .featlist { grid-template-columns: minmax(0, 1fr); } }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.detail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px 34px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.detail h3 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.detail h3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--brand); margin-bottom: 22px; }
.detail p { margin: 0; color: var(--text-2); }
@media (max-width: 900px) { .details { grid-template-columns: minmax(0, 1fr); } }
.look { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.swatch { border-radius: var(--r-lg); overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.swatch i { display: block; height: 110px; }
.swatch span { display: block; padding: 12px 14px; font-size: .8rem; color: var(--text-2); line-height: 1.45; }
.swatch span code { font-family: var(--font-mono); color: var(--muted); font-size: .76rem; }
.type-spec { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 24px; background: var(--panel); align-content: center; }
.type-spec div { display: grid; gap: 6px; }
.type-spec .as { font-size: 2.4rem; line-height: 1.05; color: var(--text); overflow-wrap: anywhere; }
.type-spec .name { font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .look { grid-template-columns: minmax(0, 1fr); } }
.next-proj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: center; text-decoration: none; }
.next-proj .label { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.next-proj h2 { font-size: var(--step-3); transition: color .3s; }
.next-proj:hover h2 { color: var(--next); }
.next-proj .frame { --acc: var(--next); transition: transform .6s var(--ease); }
.next-proj:hover .frame { transform: translateY(-6px); }
@media (max-width: 860px) { .next-proj { grid-template-columns: minmax(0, 1fr); } }
.notice { margin: 18px auto 0; max-width: 40em; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: .92rem; color: var(--text-2); text-align: center; }

/* ---------- CTA band ---------- */
.cta { padding-block: clamp(110px, 15vw, 200px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: 120%; max-width: 1400px; aspect-ratio: 2 / 1; transform: translateX(-50%); z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); filter: blur(20px); }
.cta .wrap { display: grid; justify-items: center; }
.cta h2 { font-size: clamp(2.6rem, 8vw, 7rem); max-width: 11ch; margin-bottom: 28px; }
.cta h2 em { color: var(--accent); }
.cta p { color: var(--text-2); font-size: var(--step-1); max-width: 28em; margin: 0 0 40px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-2); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-weight: 300; font-size: 1.2rem; color: var(--text-2); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 0 28px; color: var(--text-2); max-width: 46em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px 72px; align-items: start; }
.direct { display: grid; gap: 22px; margin: 0 0 48px; }
.direct-row { display: grid; gap: 6px; }
.direct-row b { font-weight: 400; font-size: .85rem; color: var(--muted); }
.direct-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.direct-line span { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; user-select: all; overflow-wrap: anywhere; }
.copy { font: 500 .75rem/1 var(--font-body); background: transparent; color: var(--text-2); border: 1px solid var(--line-2); padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.copy:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-2); counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.next-steps li::before { content: counter(n); font-size: .9rem; line-height: 1.7; color: var(--accent); grid-row: span 2; }
.next-steps b { font-weight: 500; }
.next-steps span { color: var(--muted); font-size: .96rem; }
.side-label { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }
form.intake { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: grid; gap: 24px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 9px; min-width: 0; }
.field > label, .field > legend { font-size: .86rem; color: var(--text-2); padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--void); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5B6170; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255,255,255,.4); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--void); cursor: pointer; font-size: .93rem; transition: background .15s, color .15s, border-color .15s; }
.chip span:hover { border-color: rgba(255,255,255,.3); }
.chip input:checked + span { background: var(--text); color: var(--void); border-color: var(--text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: .95rem; color: var(--muted); flex: 1 1 220px; }
.form-status.ok { color: #5BE49B; }
.form-status.err { color: #FFB547; }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.lost { min-height: 72vh; display: grid; align-content: center; }
.lost .code { font-weight: 600; font-size: clamp(5rem, 22vw, 15rem); line-height: .85; letter-spacing: -0.06em; margin: 0 0 24px; color: var(--panel-2); -webkit-text-stroke: 1px var(--line-2); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 72px 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.foot-top .say { font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 0 0 22px; }
.foot-top .say em { color: var(--accent); }
.foot-mail { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; overflow-wrap: anywhere; }
.foot-mail:hover { color: var(--text); border-color: var(--accent); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.foot-cols h4 { margin: 0 0 14px; font-size: .82rem; font-weight: 400; color: var(--muted); }
.foot-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.foot-cols a { text-decoration: none; color: var(--text-2); font-size: .95rem; }
.foot-cols a:hover { color: var(--text); }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; padding-top: 28px; }
.foot-row p { margin: 0; }
@media (max-width: 760px) { .foot-top { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
