/* Daniel Design Edit — portfolio styles. No framework, mobile-first. */
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 70%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 40%; }

:root {
  --ink: #0a0a0a;
  --ink-2: #131312;
  --ink-3: #1c1b1a;
  --bone: #ede8df;
  --bone-2: #c9c3b9;
  --ash: #b3aea6;
  --line: rgba(237, 232, 223, 0.12);
  --line-2: rgba(237, 232, 223, 0.22);
  --accent: #3fd98b;
  --accent-soft: rgba(63, 217, 139, 0.16);

  --font: "Bricolage Grotesque", "Inter Display", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1480px;
  --hh: 72px;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1: clamp(1.18rem, 1.1rem + .4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2.2rem, 1.6rem + 3vw, 4.6rem);
  --step-4: clamp(2.8rem, 1.8rem + 6vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 12px); }
html { background: var(--ink); }
body {
  margin: 0; background: transparent; color: var(--bone);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.55;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; text-rendering: optimizeLegibility;
}
img, svg, video, picture { 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, dl, dd, figure { margin: 0; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 10001; background: var(--bone); color: var(--ink); padding: 10px 16px; border-radius: 4px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
main { display: block; outline: none; min-height: 60vh; }

/* ---------- buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--bh); padding: 0 1.4em; border-radius: 999px;
  font-weight: 600; font-size: var(--step-0); letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn .ico, .btn .arrow { width: 1.2em; height: 1.2em; flex: none; }
.btn-solid { background: var(--bone); color: var(--ink); }
.btn-solid:hover { background: var(--accent); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-lg { --bh: 62px; font-size: var(--step-1); padding: 0 1.6em; }
.arrow { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
a:hover > .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 900; height: var(--hh);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter);
  transition: transform .45s var(--ease), background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(10, 10, 10, .78); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 650; letter-spacing: -.01em; margin-right: auto; }
.brandmark { width: 30px; height: 30px; color: var(--bone); }
.brand-name { font-size: 1rem; }
.nav { display: none; }
.nav-list { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list a { font-size: .98rem; color: var(--bone-2); transition: color .2s; padding: 8px 0; display: inline-block; }
.nav-list a:hover, .nav-list a[aria-current="page"], .nav-list a.is-active { color: var(--bone); }
.nav-list a.is-active::after { content: ""; display: block; height: 1px; background: var(--accent); margin-top: 2px; }
.sub-toggle { width: 24px; height: 24px; display: grid; place-items: center; color: var(--ash); }
.sub-toggle svg { width: 16px; transition: transform .3s var(--ease); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 10px); left: -18px; min-width: 260px; padding: 10px;
  background: rgba(19, 19, 18, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
}
.has-sub.is-open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .has-sub:hover .sub { opacity: 1; visibility: visible; transform: none; } .has-sub:hover .sub-toggle svg { transform: rotate(180deg); } }
.sub a { display: flex; justify-content: space-between; gap: 20px; padding: 10px 12px; border-radius: 6px; color: var(--bone-2); }
.sub a:hover { background: var(--ink-3); color: var(--bone); }
.count { color: var(--ash); font-size: .82em; font-variant-numeric: tabular-nums; margin-left: .5em; }
.nav-cta { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .95rem; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s; }
.nav-cta .ico { width: 18px; height: 18px; }
.nav-cta:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.menu-btn { width: 48px; height: 48px; display: grid; place-items: center; margin-right: -12px; position: relative; z-index: 2; }
.menu-lines, .menu-lines::before { display: block; width: 24px; height: 1.6px; background: var(--bone); position: relative; transition: transform .45s var(--ease), background-color .2s; }
.menu-lines::before { content: ""; position: absolute; top: 7px; width: 16px; right: 0; }
.menu-lines { transform: translateY(-3.5px); }
.menu-btn[aria-expanded="true"] .menu-lines { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::before { width: 24px; top: 0; transform: rotate(-90deg); }

/* ---------- translate menu ---------- */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--bone-2); font-size: .85rem; font-weight: 600; letter-spacing: .02em; transition: border-color .2s, color .2s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--bone); border-color: var(--bone); }
.lang-ico { width: 16px; height: 16px; }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px; padding: 8px; background: rgba(19, 19, 18, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 10px; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; color: var(--bone-2); font-size: .95rem; transition: background-color .15s, color .15s; }
.lang-menu button:hover { background: var(--ink-3); color: var(--bone); }
.lang-menu button[aria-current="true"] { color: var(--accent); }
.lang-note { padding: 8px 12px 4px; color: var(--ash); font-size: .78rem; border-top: 1px solid var(--line); margin-top: 6px; }
/* Google translate plumbing: its own widget and banner stay invisible, so the layout never moves */
#dde-gt, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip { display: none !important; }
.skiptranslate iframe.skiptranslate, iframe.skiptranslate { display: none !important; visibility: hidden !important; }
body { top: 0 !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 899; background: rgba(8, 10, 10, .9); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: calc(var(--hh) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }
.mm-main a { display: block; font-size: clamp(2.6rem, 12vw, 4rem); font-weight: 700; font-variation-settings: "wdth" 92; line-height: 1.05; letter-spacing: -.018em; padding: 4px 0; }
.mm-main li, .mm-cats li { opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .6s var(--ease); }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(2) { transition-delay: .05s; } .mobile-menu.is-open li:nth-child(3) { transition-delay: .1s; } .mobile-menu.is-open li:nth-child(4) { transition-delay: .15s; } .mobile-menu.is-open li:nth-child(5) { transition-delay: .2s; } .mobile-menu.is-open li:nth-child(6) { transition-delay: .25s; }
.mm-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.mm-cats a { display: block; padding: 10px 0; color: var(--bone-2); }
.mobile-menu .btn { margin-top: auto; width: 100%; }
html.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav { display: block; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- section scaffolding ---------- */
.section { padding: clamp(72px, 12vw, 160px) 0; width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sec-head { display: grid; gap: 14px 40px; margin-bottom: clamp(36px, 6vw, 72px); align-items: end; }
.sec-title { font-size: var(--step-3); font-weight: 700; font-variation-settings: "wdth" 96; line-height: .95; letter-spacing: -.022em; }
.sec-note { color: var(--ash); max-width: 42ch; font-size: var(--step-0); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr auto; } .sec-note { text-align: right; justify-self: end; } }
.sec-foot { margin-top: clamp(40px, 6vw, 72px); display: flex; justify-content: center; }

/* ---------- media / cards ---------- */
.card { display: block; position: relative; color: var(--bone); -webkit-tap-highlight-color: transparent; }
.card-media {
  display: block; position: relative; overflow: hidden; border-radius: var(--r);
  aspect-ratio: var(--ar); background: var(--c, var(--ink-3));
  transform: translateZ(0); isolation: isolate;
}
.card-media .pic, .card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media img { transition: transform 1s var(--ease), opacity .4s; }
.card-media video { opacity: 0; transition: opacity .5s ease; }
.card-media video.is-playing { opacity: 1; }
.card-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%), rgba(237, 232, 223, .14), transparent 45%);
  box-shadow: inset 0 0 0 1px rgba(237, 232, 223, .06);
  opacity: 0; transition: opacity .4s;
}
.card:hover .card-media::after { opacity: 1; }
.card:hover .card-media img { transform: scale(1.035); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; font-size: var(--step--1); }
.card-title { font-weight: 600; font-size: var(--step-0); line-height: 1.25; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.card:hover .card-title, .card:focus-visible .card-title { background-size: 100% 1px; }
.card-cat { color: var(--ash); white-space: nowrap; }
.badge { position: absolute; left: 10px; bottom: 10px; z-index: 3; background: rgba(10, 10, 10, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px; font-size: .8rem; }
.media-failed .card-media::before { content: "Preview unavailable"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ash); font-size: .9rem; z-index: 1; }
.media-failed .card-media img { opacity: 0; }

/* ---------- loader ---------- */
.loader { display: none; }
html.intro .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 10000; background: var(--ink);
  animation: loaderOut .7s var(--ease-io) 1.15s forwards;
}
.loader-grid { display: grid; grid-template-columns: repeat(4, clamp(40px, 7vw, 64px)); gap: clamp(18px, 3vw, 36px) clamp(22px, 4vw, 48px); }
.loader .mark { width: 100%; height: clamp(40px, 7vw, 64px); }
.loader .mark { fill: var(--bone); fill-opacity: 0; stroke: var(--bone); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s var(--ease) calc(var(--k) * 55ms) forwards, fillIn .35s ease calc(var(--k) * 55ms + .45s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill-opacity: 1; } }
@keyframes loaderOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--hh) + 24px) var(--gutter) clamp(28px, 6vh, 64px); overflow: hidden; }
.hero-marks { position: absolute; inset: calc(var(--hh) + 2vh) 0 auto; height: 52svh; --px: 0; --py: 0; }
.hm-layer {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 3vh 4vw; padding: 0 var(--gutter); align-items: center; justify-items: center;
}
.hm { width: 100%; height: 100%; display: grid; place-items: center; transform: translate3d(calc(var(--px) * var(--d) * 22px), calc(var(--py) * var(--d) * 16px + var(--sy, 0px) * var(--d)), 0); will-change: transform; }
.hm .mark { width: 72%; height: 72%; }
.hm .mark { fill: currentColor; }
.hm-dim { color: rgba(237, 232, 223, .085); }
.hm-lit {
  color: var(--bone);
  -webkit-mask-image: radial-gradient(circle min(30vmax, 360px) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 35%, transparent 70%);
  mask-image: radial-gradient(circle min(30vmax, 360px) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .55) 35%, transparent 70%);
}
.hm-lit .hm:nth-child(4n+2) { color: var(--accent); }
.hero-marks.is-auto { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { 0% { --mx: 15%; --my: 30%; } 33% { --mx: 60%; --my: 75%; } 66% { --mx: 88%; --my: 25%; } 100% { --mx: 35%; --my: 70%; } }
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(4.2rem, min(19vw, 27vh), 17.5rem); font-weight: 750; font-variation-settings: "wdth" 92, "opsz" 96;
  line-height: .88; letter-spacing: -.028em; margin-left: -.04em; display: flex; flex-direction: column;
}
.ht-line { display: block; }
.ht-indent { padding-left: .62em; }
.hero-sub { display: flex; flex-direction: column; gap: 2px 28px; margin-top: clamp(18px, 3vh, 32px); font-size: var(--step-1); align-items: baseline; }
.hero-role { color: var(--ash); }
.hero-typed { display: inline-flex; align-items: baseline; font-weight: 600; min-height: 1.5em; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); margin-left: 3px; align-self: center; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 4vh, 40px); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(28px, 6vh, 64px); width: 44px; height: 64px; display: none; justify-content: center; z-index: 2; }
.scroll-cue span { width: 1px; height: 100%; background: linear-gradient(var(--bone) 0 0) 0 0 / 100% 40% no-repeat, var(--line); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { 0% { background-position: 0 -40%; } 100% { background-position: 0 260%; } }
@media (min-width: 760px) {
  .hero-marks { inset: calc(var(--hh) + 4vh) 0 auto 34%; height: 56vh; }
  .hm-layer { gap: 4vh 2.5vw; }
  .scroll-cue { display: flex; }
  .hero-sub { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 759px) {
  .hero-marks { height: 36svh; }
  .hm-layer { gap: 2vh 4vw; }
  .hero-title { font-size: clamp(3.6rem, 19vw, 8rem); font-variation-settings: "wdth" 100, "opsz" 96; letter-spacing: -.012em; line-height: .92; }
  .ht-indent { padding-left: .45em; }
}
@media (min-width: 760px) and (max-height: 640px) { .hero-marks { height: 46vh; } }

/* ---------- selected work ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 7vw, 96px) 16px; }
.sw { grid-column: 1 / -1; }
.sw:nth-child(odd) { grid-column: 1 / span 11; }
.sw:nth-child(even) { grid-column: 2 / -1; }
.sw-a, .sw-c, .sw-f, .sw-h { grid-column: 3 / span 8 !important; }
@media (min-width: 760px) {
  .sw-a { grid-column: 2 / span 4 !important; }
  .sw-b { grid-column: 7 / span 5 !important; margin-top: 22vh; }
  .sw-c { grid-column: 1 / span 3 !important; margin-top: -6vh; }
  .sw-d { grid-column: 5 / span 6 !important; margin-top: 8vh; }
  .sw-e { grid-column: 2 / span 5 !important; }
  .sw-f { grid-column: 9 / span 3 !important; margin-top: 18vh; }
  .sw-g { grid-column: 1 / span 4 !important; margin-top: -4vh; }
  .sw-h { grid-column: 7 / span 3 !important; margin-top: 14vh; }
}
.tilt { transform-style: preserve-3d; transition: transform .6s var(--ease); }

/* ---------- brand stack ---------- */
.brands { padding-top: clamp(40px, 8vw, 120px); }
.brand-panel { position: relative; }
.bp-inner {
  width: min(100% - 2 * var(--gutter), var(--maxw)); margin: 0 auto 24px; border-radius: 14px;
  background: color-mix(in srgb, var(--bc) 42%, var(--ink-2)); padding: clamp(22px, 4vw, 48px);
  display: grid; gap: clamp(20px, 3vw, 40px); border: 1px solid var(--line);
  transform-origin: 50% 0; transform: scale(calc(1 - var(--cover, 0) * .06)); filter: brightness(calc(1 - var(--cover, 0) * .45));
}
.bp-head { display: grid; gap: 14px 40px; }
.bp-name { font-size: var(--step-3); font-weight: 700; font-variation-settings: "wdth" 92; letter-spacing: -.022em; line-height: .95; }
.bp-line { max-width: 52ch; color: var(--bone-2); }
.bp-deliverables { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-deliverables a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: var(--step--1); transition: background-color .2s, color .2s; }
.bp-deliverables a:hover { background: var(--bone); color: var(--ink); }
.bp-tiles { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * clamp(22px, 4vw, 48px)); padding: 0 clamp(22px, 4vw, 48px) 4px; scrollbar-width: none; }
.bp-tiles::-webkit-scrollbar { display: none; }
.bp-tile { flex: none; scroll-snap-align: start; }
.bp-tile .card-media { height: 44svh; width: auto; }
.bp-tile .card-meta { display: none; }
@media (min-width: 900px) {
  .brand-panel { position: sticky; top: calc(var(--hh) + 8px + var(--k) * 14px); }
  .bp-inner { margin-bottom: 10vh; }
  .bp-head { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .bp-tiles { overflow: visible; margin: 0; padding: 0; }
  .bp-tile { flex: var(--g) 1 0; min-width: 0; }
  .bp-tile .card-media { height: auto; width: 100%; max-height: 52vh; }
  .bp-tile .card-meta { display: flex; }
}

/* ---------- AI horizontal ---------- */
.ai { position: relative; padding: clamp(72px, 10vw, 140px) 0 0; }
.ai-sticky { display: flex; flex-direction: column; justify-content: center; }
.ai-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ai-track::-webkit-scrollbar { display: none; }
.ai-card { flex: none; scroll-snap-align: center; }
.ai-card .card-media { height: min(68svh, 640px); width: auto; }
.ai-progress { height: 1px; background: var(--line); margin: 24px var(--gutter) 0; }
.ai-progress span { display: block; height: 100%; background: var(--bone); transform-origin: 0 50%; transform: scaleX(var(--ap, 0)); }
.ai.is-h { padding-bottom: 0; }
.ai.is-h .ai-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; padding-top: var(--hh); }
.ai.is-h .ai-track { overflow: visible; scroll-snap-type: none; will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); }
.ai.is-h .ai-card .card-media { height: min(58vh, 620px); }
.ai.is-h .sec-head { margin-bottom: clamp(24px, 4vh, 48px); }

/* ---------- logofolio wall ---------- */
.wall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wall-cell { position: relative; display: block; background: rgba(10, 10, 10, .62); aspect-ratio: 1 / 1; transition: background-color .4s; --draw: 0; }
.wall-mark { position: absolute; inset: 22%; width: 56%; height: 56%; overflow: visible; }
.wall-mark { fill: var(--bone); stroke: var(--bone); stroke-width: .6; stroke-dasharray: 1; stroke-dashoffset: var(--draw); fill-opacity: calc((.2 - var(--draw)) * 5); transition: fill .4s, stroke .4s; }
html.js .wall-cell { --draw: 1; }
.wall-cap { position: absolute; left: 14px; bottom: 12px; font-size: var(--step--1); color: var(--ash); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
a.wall-cell:hover, a.wall-cell:focus-visible { background: var(--ink-2); }
a.wall-cell:hover .wall-mark, a.wall-cell:focus-visible .wall-mark { fill: var(--accent); stroke: var(--accent); }
a.wall-cell:hover .wall-cap, a.wall-cell:focus-visible .wall-cap { opacity: 1; transform: none; }
@media (hover: none) { .wall-cap { opacity: 1; transform: none; } }
@media (min-width: 760px) { .wall-grid { grid-template-columns: repeat(4, 1fr); } .wall-cell { aspect-ratio: 1.15 / 1; } }

/* ---------- disciplines ---------- */
.disc-list { border-top: 1px solid var(--line); }
.disc-list li { border-bottom: 1px solid var(--line); }
.disc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 20px; padding: clamp(18px, 2.6vw, 30px) 0; position: relative; }
.disc-name { font-size: clamp(1.9rem, 1.2rem + 4vw, 4.6rem); font-weight: 700; font-variation-settings: "wdth" 92; line-height: 1; letter-spacing: -.022em; transition: transform .5s var(--ease), color .3s; }
.disc-count { color: var(--ash); font-size: var(--step--1); grid-row: 2; }
.disc-row .arrow { display: none; }
.disc-thumb { grid-row: 1 / span 2; grid-column: 2; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--ink-3); }
.disc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.disc-float { display: none; }
@media (hover: hover) and (pointer: fine) {
  .disc-row { grid-template-columns: 1fr auto auto; }
  .disc-count { grid-row: auto; }
  .disc-thumb { display: none; }
  .disc-row .arrow { display: block; width: 28px; height: 28px; color: var(--ash); transition: transform .4s var(--ease), color .3s; }
  .disc-row:hover .disc-name { transform: translateX(18px); }
  .disc-row:hover .arrow { color: var(--accent); transform: translateX(6px); }
  .disc-list:hover .disc-row:not(:hover) .disc-name { color: rgba(237, 232, 223, .32); }
  .disc-float {
    display: block; position: fixed; left: 0; top: 0; z-index: 50; width: 240px; aspect-ratio: 4 / 5; pointer-events: none;
    border-radius: 8px; overflow: hidden; background: var(--ink-3);
    opacity: 0; transform: translate3d(var(--fx, 0), var(--fy, 0), 0) scale(.85) rotate(var(--fr, 0deg)); transition: opacity .3s, transform .5s var(--ease);
  }
  .disc-float.is-on { opacity: 1; transform: translate3d(var(--fx, 0), var(--fy, 0), 0) scale(1) rotate(var(--fr, 0deg)); }
  .disc-float img, .disc-float video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .disc-float video { opacity: 0; transition: opacity .3s; }
  .disc-float video.is-playing { opacity: 1; }
}

/* ---------- about ---------- */
.about-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.about-statement { font-size: clamp(2rem, 1.3rem + 3.4vw, 4.4rem); font-weight: 650; font-variation-settings: "wdth" 96; line-height: 1.02; letter-spacing: -.018em; max-width: 18ch; text-wrap: balance; }
.about-body { display: grid; gap: 1.1em; max-width: 60ch; color: var(--bone-2); font-size: var(--step-1); line-height: 1.5; }
.about-equation { color: var(--bone); font-weight: 600; font-size: var(--step-0); padding-top: .6em; }
.about-equation span { color: var(--accent); margin: 0 .25em; }
.caps-title { font-size: var(--step--1); color: var(--ash); font-weight: 500; margin-bottom: 14px; }
.caps { columns: 2 180px; column-gap: 24px; }
.caps li { padding: 9px 0; border-top: 1px solid var(--line); break-inside: avoid; font-size: var(--step-0); }
@media (min-width: 1000px) {
  .about-grid { grid-template-columns: repeat(12, 1fr); }
  .about-statement { grid-column: 1 / span 7; }
  .about-body { grid-column: 8 / -1; padding-top: .5em; }
  .about-caps { grid-column: 8 / -1; }
}

/* ---------- footer / contact ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 8vw, 96px); padding: clamp(72px, 12vw, 160px) var(--gutter) calc(28px + env(safe-area-inset-bottom)); width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; }
.contact-kicker { color: var(--ash); font-size: var(--step-1); }
.contact-title { font-size: var(--step-4); font-weight: 750; font-variation-settings: "wdth" 92, "opsz" 96; line-height: .9; letter-spacing: -.028em; margin-top: .2em; }
.contact-title span { display: block; }
.contact-title span + span { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.socials { display: grid; grid-template-columns: 1fr; margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.socials a { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); min-height: 56px; transition: color .2s, padding .4s var(--ease); }
.socials .ico { width: 22px; height: 22px; color: var(--ash); transition: color .2s; }
.socials .s-name { font-weight: 600; }
.socials .s-handle { color: var(--ash); font-size: var(--step--1); }
.socials a:hover { padding-left: 8px; }
.socials a:hover .ico { color: var(--accent); }
@media (min-width: 760px) { .socials { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1100px) { .socials { grid-template-columns: repeat(3, 1fr); } }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; color: var(--ash); font-size: var(--step--1); }
.to-top { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.to-top:hover { color: var(--bone); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
/* ---------- privacy policy ---------- */
.legal { max-width: 760px; padding: calc(var(--hh) + clamp(40px, 8vw, 110px)) 0 clamp(40px, 8vw, 96px); }
.legal .page-title { font-size: var(--step-3); line-height: .95; }
.legal-updated { color: var(--ash); font-size: var(--step--1); margin: 14px 0 36px; }
.legal h2 { font-size: var(--step-1); font-weight: 650; line-height: 1.2; margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--bone-2); line-height: 1.65; max-width: 68ch; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 8px 0 12px; list-style: disc; }
.legal li { margin: 4px 0; }
.legal strong { color: var(--bone); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- work pages ---------- */
.work-head { padding: calc(var(--hh) + clamp(40px, 8vw, 110px)) 0 clamp(28px, 4vw, 48px); }
.page-title { font-size: var(--step-4); font-weight: 750; font-variation-settings: "wdth" 92, "opsz" 96; line-height: .88; letter-spacing: -.028em; }
.page-intro { color: var(--bone-2); max-width: 56ch; margin-top: 18px; font-size: var(--step-1); line-height: 1.45; }
.cat-tabs { margin-top: clamp(28px, 4vw, 48px); margin-inline: calc(-1 * var(--gutter)); position: sticky; top: var(--hh); z-index: 20; }
.cat-tabs ul { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter); scrollbar-width: none; }
.cat-tabs ul::-webkit-scrollbar { display: none; }
.cat-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; font-size: .95rem; transition: background-color .25s, color .25s, border-color .25s; background: rgba(10, 10, 10, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cat-tabs a:hover { border-color: var(--bone); }
.cat-tabs a[aria-current="page"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.cat-tabs a[aria-current="page"] .count { color: rgba(10, 10, 10, .55); }
.work-sec { padding: clamp(28px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.ws-head { display: grid; gap: 8px 32px; margin-bottom: 24px; }
.ws-head h2 { font-size: var(--step-2); font-weight: 700; font-variation-settings: "wdth" 96; letter-spacing: -.02em; }
.ws-head p { color: var(--ash); max-width: 56ch; }
.ws-all { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
@media (min-width: 900px) { .ws-head { grid-template-columns: 1fr 1.4fr auto; align-items: baseline; } }
.ws-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ws-row .card { flex: none; scroll-snap-align: start; }
.ws-row .card-media { height: clamp(220px, 32vw, 360px); width: auto; }
.masonry { columns: 1; column-gap: 16px; padding-top: 8px; }
.masonry .card { break-inside: avoid; margin-bottom: clamp(24px, 3vw, 40px); }
@media (min-width: 600px) { .masonry { columns: 2; } }
@media (min-width: 1100px) { .masonry { columns: 3; column-gap: 20px; } }

/* ---------- project ---------- */
.project-top { display: flex; justify-content: space-between; align-items: center; padding-top: calc(var(--hh) + 20px); padding-bottom: 20px; color: var(--ash); font-size: var(--step--1); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--bone-2); font-size: var(--step-0); }
.back svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.back:hover svg { transform: translateX(-4px); }
.project-body { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 1000px) {
  .project-body { grid-template-columns: minmax(0, 1fr) 360px; }
  .project-info { position: sticky; top: calc(var(--hh) + 24px); }
}
.project-stage { display: flex; justify-content: center; min-width: 0; }
.project-title { font-size: var(--step-3); font-weight: 700; font-variation-settings: "wdth" 92; line-height: .95; letter-spacing: -.022em; }
.project-desc { color: var(--bone-2); margin-top: 18px; }
/* likes */
.like-row { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--bone-2); font-size: .95rem; font-weight: 600; transition: border-color .2s, color .2s, transform .15s var(--ease); }
.like-btn:hover { border-color: var(--bone); color: var(--bone); }
.like-btn:active { transform: scale(.93); }
.like-heart { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.like-btn.is-liked { border-color: #ff2a8a; color: #ff2a8a; }
.like-btn.is-liked .like-heart { fill: #ff2a8a; stroke: #ff2a8a; animation: like-pop .45s var(--ease); }
@keyframes like-pop { 40% { transform: scale(1.4); } }
.like-n { font-variant-numeric: tabular-nums; }
.like-hint { color: var(--ash); font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { .like-btn.is-liked .like-heart { animation: none; } }
.heart-pop { position: fixed; z-index: 2000; width: 22px; height: 22px; margin: 0; pointer-events: none; animation: heart-pop 1s var(--ease) both; }
.heart-pop svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
@keyframes heart-pop {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; }
  18% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 110px)) scale(.7) rotate(var(--rot, 0deg)); opacity: 0; }
}

/* reactive CTA: one subtle wiggle + accent flash when it scrolls into view */
@keyframes cta-attn {
  0%, 100% { transform: none; }
  18% { transform: translate(1px, -2px) rotate(-1.2deg) scale(1.04); }
  38% { transform: translate(-1px, 1px) rotate(1deg) scale(1.03); }
  58% { transform: rotate(-.6deg) scale(1.015); }
  78% { transform: rotate(.3deg); }
}
@keyframes cta-flash-ghost { 25%, 65% { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 28px var(--accent-soft); } }
@keyframes cta-flash-solid { 25%, 65% { background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 28px var(--accent-soft); } }
.btn.cta-attn { animation: cta-attn .75s var(--ease), cta-flash-ghost .75s var(--ease); }
.btn-solid.cta-attn { animation: cta-attn .75s var(--ease), cta-flash-solid .75s var(--ease); }

.facts { margin: 28px 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.facts dt { color: var(--ash); }
.facts dd { text-align: right; }
.still, .player { position: relative; width: min(100%, calc(80svh * (var(--ar)))); aspect-ratio: var(--ar); border-radius: var(--r); overflow: hidden; background: var(--c); }
.still img, .player .pic, .player img { width: 100%; height: 100%; object-fit: contain; }
.still-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.doc { display: grid; gap: 16px; width: 100%; }
.doc-page { aspect-ratio: var(--ar); background: var(--c); border-radius: var(--r); overflow: hidden; }
.doc-page img { width: 100%; height: 100%; object-fit: cover; }
.player .pic { position: absolute; inset: 0; }
.player-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; opacity: 0; transition: opacity .4s; }
.player.is-started .player-video { opacity: 1; }
.player-hit { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.player-sound-hint {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none;
  padding: 12px 20px; border-radius: 999px; background: rgba(10, 10, 10, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 600; font-size: .95rem; transition: opacity .35s, transform .45s var(--ease); display: flex; gap: 8px; align-items: center; max-width: 80%; width: max-content; text-align: center; line-height: 1.3;
}
.player-sound-hint::before { content: ""; width: 0; height: 0; border-left: 10px solid var(--bone); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.player.is-started .player-sound-hint::before { display: none; }
.player.has-sound .player-sound-hint, .player.is-silent.is-started .player-sound-hint { opacity: 0; transform: translate(-50%, -40%); }
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: .82rem; font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .3s;
}
.player:hover .player-bar, .player:focus-within .player-bar, .player.show-ui .player-bar, .player:not(.is-started) .player-bar { opacity: 1; }
.player-bar button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.player-bar button:hover { background: rgba(237, 232, 223, .14); }
.player-bar svg { width: 22px; height: 22px; }
.pb-seek { flex: 1; min-width: 40px; accent-color: var(--accent); height: 24px; background: transparent; cursor: pointer; }
.i-pause, .player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: inline; }
.i-off { display: inline; } .i-on { display: none; }
.player.has-sound .i-on { display: inline; } .player.has-sound .i-off { display: none; }
.pb-dur, .pb-time { color: var(--bone-2); }
.player:fullscreen { width: 100%; height: 100%; border-radius: 0; background: #000; }
.player:-webkit-full-screen { width: 100%; height: 100%; border-radius: 0; background: #000; }
.more { padding: clamp(64px, 9vw, 120px) 0 0; }
.more-title { font-size: var(--step-2); font-weight: 700; font-variation-settings: "wdth" 96; letter-spacing: -.02em; margin-bottom: 24px; }
.more-row { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.more-row .card { flex: none; scroll-snap-align: start; }
.more-row .card-media { height: clamp(200px, 26vw, 320px); width: auto; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.pager-link { display: grid; gap: 6px; padding: 24px 0; align-content: start; }
.pager-link.next { text-align: right; justify-items: end; grid-template-columns: auto; }
.pl-dir { color: var(--ash); font-size: var(--step--1); }
.pl-name { font-size: var(--step-2); font-weight: 650; font-variation-settings: "wdth" 96; letter-spacing: -.02em; line-height: 1.1; }
.pager-link .arrow { width: 28px; height: 28px; }
.pager-link:hover .pl-name { color: var(--accent); }

/* zoom dialog */
.zoom { border: 0; padding: 0; background: rgba(5, 5, 5, .96); width: 100vw; height: 100svh; max-width: none; max-height: none; color: var(--bone); }
.zoom::backdrop { background: rgba(0, 0, 0, .7); }
.zoom img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-out; }
.zoom-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; background: rgba(237, 232, 223, .12); font-size: 26px; line-height: 1; }

/* 404 */
.nf { padding: calc(var(--hh) + 12vh) 0 8vh; }
.nf-mark { width: 120px; margin-bottom: 32px; color: var(--accent); }
.nf-mark svg { fill: currentColor; }

/* ---------- cursor ---------- */
.cursor { display: none; }
html.has-cursor .cursor { --cx: -200px; --cy: -200px; --rx: -200px; --ry: -200px; display: block; position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--bone); transform: translate3d(var(--cx), var(--cy), 0); transition: opacity .2s; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(237, 232, 223, .45);
  transform: translate3d(var(--rx), var(--ry), 0) scale(var(--rs, 1)); display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .3s, border-color .3s;
}
.cursor-label { font-size: 12.5px; font-weight: 650; color: var(--ink); opacity: 0; transition: opacity .2s; letter-spacing: .01em; }
.cursor.is-label .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--bone); border-color: var(--bone); }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-link .cursor-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-color: var(--accent); }
.cursor.is-hidden { opacity: 0; }

/* ---------- page transitions ---------- */
@keyframes vtOut { to { opacity: 0; transform: translateY(-24px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(28px); } }
::view-transition-old(main) { animation: vtOut .32s var(--ease-io) both; }
::view-transition-new(main) { animation: vtIn .5s var(--ease) .06s both; }
::view-transition-group(media) { animation-duration: .55s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
main { view-transition-name: main; }
.site-header { view-transition-name: header; }
html.is-loading main { opacity: .35; transition: opacity .25s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hm { transform: none !important; }
  .hero-marks.is-auto { animation: none; }
  .caret { display: none; }
  .bp-inner { transform: none !important; filter: none !important; }
  html.js .wall-cell { --draw: 0 !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- animated gradient mesh background ---------- */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--ink); contain: strict; }
.mesh i {
  position: absolute; display: block; width: 78vmax; height: 78vmax; border-radius: 50%;
  background: radial-gradient(closest-side, var(--mc) 0%, transparent 100%);
  opacity: var(--mo, .7); will-change: transform; transform: translate3d(0, 0, 0);
  animation: var(--ma) var(--md, 38s) ease-in-out infinite alternate;
}
.mesh i:nth-child(1) { --mc: #0f5a3c; --mo: .62; left: -24vmax; top: -30vmax; --ma: meshA; --md: 16s; }
.mesh i:nth-child(2) { --mc: #0c3550; --mo: .8; right: -30vmax; top: -12vmax; --ma: meshB; --md: 19s; }
.mesh i:nth-child(3) { --mc: #3b1846; --mo: .62; left: 8vmax; bottom: -42vmax; --ma: meshC; --md: 22s; }
.mesh i:nth-child(4) { --mc: #4a1d14; --mo: .5; right: -18vmax; bottom: -36vmax; --ma: meshB; --md: 25s; animation-direction: alternate-reverse; }
.mesh i:nth-child(5) { --mc: #1f8a5c; --mo: .14; width: 46vmax; height: 46vmax; left: 30vw; top: 22vh; --ma: meshA; --md: 13s; animation-direction: alternate-reverse; }
.mesh::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(5, 6, 6, .55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .5; mix-blend-mode: soft-light;
}
@keyframes meshA { 0% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(30vmax, 10vmax, 0) scale(1.2); } 66% { transform: translate3d(12vmax, 32vmax, 0) scale(.85); } 100% { transform: translate3d(-6vmax, 18vmax, 0) scale(1.1); } }
@keyframes meshB { 0% { transform: translate3d(0, 0, 0) scale(1.05); } 33% { transform: translate3d(-28vmax, 22vmax, 0) scale(.85); } 66% { transform: translate3d(-12vmax, 34vmax, 0) scale(1.2); } 100% { transform: translate3d(-34vmax, 6vmax, 0) scale(1); } }
@keyframes meshC { 0% { transform: translate3d(0, 0, 0) scale(.95); } 33% { transform: translate3d(26vmax, -24vmax, 0) scale(1.2); } 66% { transform: translate3d(-16vmax, -30vmax, 0) scale(.9); } 100% { transform: translate3d(-24vmax, -6vmax, 0) scale(1.1); } }
@media (max-width: 760px) { .mesh i:nth-child(4), .mesh i:nth-child(5) { display: none; } .mesh i { width: 110vmax; height: 110vmax; } }
@media (prefers-reduced-motion: reduce) { .mesh i { animation: none !important; } }

/* =====================================================================
   Design-app interface: selection boxes, toolbar, rulers, guides, timeline
   ===================================================================== */
:root { --chrome: rgba(16, 18, 18, .86); --chrome-line: rgba(237, 232, 223, .1); --tl-h: 36px; }

/* selection / transform box (cards + hero text layer) */
.bbox {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .18s;
  background:
    linear-gradient(var(--accent) 0 0) 0 0 / 8px 8px no-repeat, linear-gradient(var(--accent) 0 0) 50% 0 / 8px 8px no-repeat,
    linear-gradient(var(--accent) 0 0) 100% 0 / 8px 8px no-repeat, linear-gradient(var(--accent) 0 0) 0 50% / 8px 8px no-repeat,
    linear-gradient(var(--accent) 0 0) 100% 50% / 8px 8px no-repeat, linear-gradient(var(--accent) 0 0) 0 100% / 8px 8px no-repeat,
    linear-gradient(var(--accent) 0 0) 50% 100% / 8px 8px no-repeat, linear-gradient(var(--accent) 0 0) 100% 100% / 8px 8px no-repeat;
}
.bbox::before {
  content: ""; position: absolute; inset: 3px;
  background:
    repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(0deg, var(--accent) 0 6px, transparent 6px 12px) 0 0 / 1px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--accent) 0 6px, transparent 6px 12px) 100% 0 / 1px 100% no-repeat;
  animation: ants .7s linear infinite paused;
}
.bbox::after {
  content: attr(data-dim); position: absolute; left: 14px; top: 14px; white-space: pre;
  padding: 3px 7px; border-radius: 3px; background: var(--accent); color: #0a0a0a;
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em; font-variant-numeric: tabular-nums; line-height: 1.3;
}
@keyframes ants { to { background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px; } }
.card:hover .bbox, .card:focus-visible .bbox { opacity: 1; }
.card:hover .bbox::before, .card:focus-visible .bbox::before { animation-play-state: running; }
.text-layer { position: relative; display: inline-block; padding: .06em .12em .02em; margin-left: -.12em; }
.bbox-text { inset: -6px; opacity: .55; }
.bbox-text::after { top: -30px; left: 0; }
.hero:hover .bbox-text { opacity: 1; }
.hero:hover .bbox-text::before { animation-play-state: running; }
@media (hover: none) { .bbox-text { display: none; } }

/* player: timeline-style scrubber + timecode */
.pb-track { position: relative; flex: 1; min-width: 40px; height: 28px; display: flex; align-items: center; }
.pb-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 6px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(237, 232, 223, .55) 0 1px, transparent 1px calc(100% / var(--ticks-n, 30)));
}
.pb-seek { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
.pb-seek::-webkit-slider-runnable-track { height: 3px; background: rgba(237, 232, 223, .3); border-radius: 2px; }
.pb-seek::-moz-range-track { height: 3px; background: rgba(237, 232, 223, .3); border-radius: 2px; }
.pb-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 22px; margin-top: -10px; border: 0; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 62%, 50% 100%, 50% 100%, 50% 62%, 0 45%); }
.pb-seek::-moz-range-thumb { width: 12px; height: 22px; border: 0; border-radius: 0; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 62%, 50% 100%, 0 45%); }
.pb-time, .pb-dur { font-size: .78rem; letter-spacing: .02em; }
.pb-time { color: var(--accent); font-weight: 650; }

/* ---------- desktop design-app chrome (built by app.js) ---------- */
.tools, .ruler, .guides, .tl { display: none; }
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  html.app { --gutter: 100px; }
  html.app body { padding-bottom: var(--tl-h); }
  html.app .tools, html.app .tl { display: flex; }
  html.app.rulers-on .ruler { display: block; }
  html.app.grid-on .guides { display: block; }
}

/* toolbar */
.tools {
  position: fixed; z-index: 880; left: 28px; top: calc(var(--hh) + 34px); flex-direction: column; gap: 2px; padding: 6px;
  background: var(--chrome); border: 1px solid var(--chrome-line); border-radius: 10px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.tool { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; color: var(--bone-2); transition: background-color .15s, color .15s; }
.tool svg { width: 19px; height: 19px; }
.tool:hover { background: rgba(237, 232, 223, .08); color: var(--bone); }
.tool[aria-pressed="true"] { background: rgba(237, 232, 223, .14); color: var(--accent); }
.tool-sep { height: 1px; margin: 4px 6px; background: var(--chrome-line); }
.tool[data-tip]:hover::after, .tool[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 5px 9px; border-radius: 5px; background: #1d201f; border: 1px solid var(--chrome-line); color: var(--bone); font-size: 12.5px; font-weight: 500; pointer-events: none;
}
.swatches { position: relative; width: 36px; height: 40px; margin-top: 2px; }
.swatch { position: absolute; width: 22px; height: 22px; border-radius: 4px; border: 2px solid #0a0a0a; box-shadow: 0 0 0 1px rgba(237, 232, 223, .35); }
.swatch-fg { left: 2px; top: 2px; z-index: 2; background: var(--accent); }
.swatch-bg { right: 2px; bottom: 2px; background: var(--bone); }

/* rulers */
.ruler { position: fixed; z-index: 870; background: var(--chrome); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.ruler canvas { display: block; width: 100%; height: 100%; }
.ruler-x { left: 18px; right: 0; top: var(--hh); height: 18px; border-bottom: 1px solid var(--chrome-line); }
.ruler-y { left: 0; top: var(--hh); bottom: var(--tl-h); width: 18px; border-right: 1px solid var(--chrome-line); }
.ruler-mark { position: absolute; background: var(--accent); }
.ruler-x .ruler-mark { top: 0; bottom: 0; width: 1px; left: 0; transform: translateX(var(--m, -10px)); }
.ruler-y .ruler-mark { left: 0; right: 0; height: 1px; top: 0; transform: translateY(var(--m, -10px)); }
html.app.rulers-on .site-header.is-scrolled { border-color: transparent; }

/* layout guides */
.guides { position: fixed; z-index: 860; inset: var(--hh) 0 var(--tl-h); pointer-events: none; }
.guides-inner { height: 100%; width: min(100% - 2 * var(--gutter), var(--maxw)); margin: 0 auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.guides-inner span { background: color-mix(in srgb, var(--accent) 7%, transparent); border-inline: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }

/* timeline dock */
.tl { position: fixed; z-index: 890; left: 0; right: 0; bottom: 0; flex-direction: column; background: var(--chrome); border-top: 1px solid var(--chrome-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 12.5px; }
.tl-bar { height: var(--tl-h); display: flex; align-items: center; gap: 16px; padding: 0 12px 0 28px; }
.tl-comp { display: inline-flex; align-items: center; gap: 7px; color: var(--bone); font-weight: 600; white-space: nowrap; }
.tl-comp svg { width: 15px; height: 15px; color: var(--accent); }
.tl-tc { color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .02em; min-width: 82px; }
.tl-mini { position: relative; flex: 1; height: 14px; border-radius: 3px; overflow: hidden; background: rgba(237, 232, 223, .06); cursor: ew-resize; }
.tl-seg { position: absolute; top: 2px; bottom: 2px; border-radius: 2px; background: rgba(237, 232, 223, .16); }
.tl-seg.is-active { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.tl-head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--accent); transform: translateX(var(--x, 0)); pointer-events: none; }
.tl-status { color: var(--bone-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34%; }
.tl-status b { color: var(--bone); font-weight: 600; }
.tl-toggle { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 5px; color: var(--bone); font-weight: 600; }
.tl-toggle:hover { background: rgba(237, 232, 223, .1); }
.tl-toggle svg { width: 14px; height: 14px; transition: transform .25s; }
.tl[data-open="true"] .tl-toggle svg { transform: rotate(180deg); }
.tl-panel { display: none; position: relative; border-top: 1px solid var(--chrome-line); max-height: 40vh; overflow-y: auto; padding: 4px 0 8px; }
.tl[data-open="true"] .tl-panel { display: block; }
.tl-row { display: grid; grid-template-columns: 26px 26px 190px 1fr; align-items: center; width: 100%; height: 28px; padding: 0 12px 0 16px; text-align: left; color: var(--bone-2); }
.tl-row:hover { background: rgba(237, 232, 223, .05); color: var(--bone); }
.tl-row.is-active { color: var(--bone); background: rgba(237, 232, 223, .07); }
.tl-row svg { width: 15px; height: 15px; opacity: .45; }
.tl-row.is-active svg { opacity: 1; color: var(--accent); }
.tl-num { color: var(--ash); font-variant-numeric: tabular-nums; }
.tl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 12px; }
.tl-lane { position: relative; height: 16px; }
.tl-clip { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: color-mix(in srgb, var(--c, var(--accent)) 38%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--accent)) 70%, transparent); }
.tl-clip::before, .tl-clip::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; background: var(--bone); transform: translate(-50%, -50%) rotate(45deg); }
.tl-clip::before { left: 0; } .tl-clip::after { left: 100%; }
.tl-phead { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--accent); pointer-events: none; left: 0; transform: translateX(var(--x, 0)); }
.tl-phead::before { content: ""; position: absolute; top: 0; left: -5px; width: 11px; height: 9px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%); }

/* tool modes */
html.tool-hand main, html.tool-hand main * { cursor: grab !important; }
html.tool-hand.is-grabbing main, html.tool-hand.is-grabbing main * { cursor: grabbing !important; }
html.tool-eyedrop main, html.tool-eyedrop main * { cursor: crosshair !important; }
html.tool-hand .cursor, html.tool-eyedrop .cursor { display: none !important; }
.toast { position: fixed; z-index: 9000; left: 50%; bottom: calc(var(--tl-h) + 18px); transform: translate(-50%, 10px); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 8px; background: #1d201f; border: 1px solid var(--chrome-line); color: var(--bone); font-size: 13.5px; transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 16px; height: 16px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 1px rgba(237, 232, 223, .4); }
@media (prefers-reduced-motion: reduce) { .bbox::before { animation: none !important; } }
.ruler-x, .ruler-y, .tools, .guides { transition: top .45s var(--ease); }
.site-header.is-hidden ~ .ruler-x, .site-header.is-hidden ~ .ruler-y, .site-header.is-hidden ~ .guides { top: 0; }
.site-header.is-hidden ~ .tools { top: 34px; }

/* keep content clear of the rulers */
html.app .hero { padding-top: calc(var(--hh) + 18px + 64px); min-height: calc(100svh - var(--tl-h)); padding-bottom: 28px; }
html.app .project-top { padding-top: calc(var(--hh) + 18px + 20px) !important; }
@media (min-width: 1100px) and (max-height: 760px) {
  html.app .hero { padding-top: calc(var(--hh) + 18px + 44px); }
  .hero-title { font-size: clamp(4.2rem, min(19vw, 23vh), 17.5rem); }
  .hero-sub { margin-top: 12px; }
  .hero-ctas { margin-top: 18px; }
}
/* project media always fits between the rulers and the timeline */
html.app .still, html.app .player { width: min(100%, calc((100svh - var(--hh) - 18px - var(--tl-h) - 120px) * (var(--ar)))); }

/* Color Picker (design-app style) */
.cp { position: fixed; z-index: 895; left: 92px; top: calc(var(--hh) + 34px); width: 588px; max-width: calc(100vw - 110px); background: #161918; border: 1px solid rgba(237, 232, 223, .12); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); color: var(--bone); font-size: 13px; overflow: hidden; }
.cp[hidden] { display: none; }
.cp-head { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; background: #1b1f1e; border-bottom: 1px solid rgba(237, 232, 223, .08); cursor: move; user-select: none; touch-action: none; }
.cp-head > svg { width: 14px; height: 14px; color: #8f8a82; }
.cp-head h2 { margin: 0; font-size: 13.5px; font-weight: 650; flex: 1; }
.cp-x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; color: var(--bone-2); }
.cp-x:hover { background: rgba(237, 232, 223, .1); color: var(--bone); }
.cp-x svg { width: 14px; height: 14px; }
.cp-body { display: flex; gap: 14px; padding: 14px; }
.cp-field { position: relative; flex: none; width: 248px; height: 248px; border-radius: 6px; cursor: crosshair; touch-action: none; outline-offset: 3px;
  background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, var(--hue, #f00)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cp-ring { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(0, 0, 0, .4); pointer-events: none; }
.cp-hue { position: relative; flex: none; width: 20px; height: 248px; border-radius: 4px; cursor: ns-resize; touch-action: none; outline-offset: 3px;
  background: linear-gradient(to bottom, #f00 0%, #f0f 17%, #00f 33%, #0ff 50%, #0f0 67%, #ff0 83%, #f00 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.cp-hue-mark { position: absolute; left: -5px; right: -5px; top: 0; height: 6px; margin-top: -3px; border-radius: 2px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); pointer-events: none; }
.cp-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cp-top { display: flex; gap: 12px; align-items: flex-start; }
.cp-cmp { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--bone-2); }
.cp-cmp-box { width: 64px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.cp-new { display: block; height: 38px; }
.cp-cur { display: block; width: 64px; height: 38px; }
.cp-msgs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cp-warn, .cp-ok { display: flex; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 6px; font-size: 12px; line-height: 1.3; }
.cp-warn[hidden], .cp-ok[hidden] { display: none; }
.cp-warn { background: rgba(255, 193, 92, .1); border: 1px solid rgba(255, 193, 92, .35); }
.cp-warn svg { width: 18px; height: 18px; flex: none; color: #ffc15c; }
.cp-ok { background: rgba(63, 217, 139, .08); border: 1px solid rgba(63, 217, 139, .3); }
.cp-ok svg { width: 18px; height: 18px; flex: none; color: #3fd98b; }
.cp-safe { width: 26px; height: 26px; flex: none; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .45); }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid rgba(237, 232, 223, .16); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cp-btn:hover { background: rgba(237, 232, 223, .08); }
.cp-btn svg { width: 15px; height: 15px; }
.cp-primary { background: var(--accent); color: #0a0a0a; border-color: transparent; padding: 0 22px; font-weight: 700; }
.cp-primary:hover { background: var(--accent); filter: brightness(1.08); }
.cp-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.cp-num { display: flex; align-items: center; gap: 6px; }
.cp-num > span { width: 12px; color: var(--bone-2); font-size: 12.5px; }
.cp-num i { width: 12px; font-style: normal; color: var(--bone-2); }
.cp-num input { width: 0; flex: 1; height: 28px; box-sizing: border-box; padding: 0 8px; border-radius: 4px; border: 1px solid rgba(237, 232, 223, .16); background: #0f1211; color: var(--bone); font: inherit; font-variant-numeric: tabular-nums; }
.cp-num input:focus { border-color: var(--accent); outline: none; }
.cp-hex { grid-column: span 2; }
.cp-hex input { letter-spacing: .04em; text-transform: uppercase; }
.cp-sw-wrap { padding: 0 14px 12px; }
.cp-sw-wrap p { margin: 0 0 8px; font-size: 12px; color: var(--bone-2); }
.cp-sws { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.cp-sw { aspect-ratio: 1; border-radius: 5px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .15s; }
.cp-sw:hover { transform: scale(1.12); }
.cp-sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #161918, 0 0 0 4px var(--bone); }
.cp-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1b1f1e; border-top: 1px solid rgba(237, 232, 223, .08); }
.cp-foot span { flex: 1; }

/* brand panels: compact and stacking on phones */
.bp-short { display: none; }
@media (max-width: 899px) {
  .brand-panel { position: sticky; top: calc(var(--hh) + 6px + var(--k) * 10px); }
  .bp-inner { padding: 18px; gap: 14px; margin-bottom: 16svh; transform-origin: 50% 0; }
  .brand-panel:last-child .bp-inner { margin-bottom: 0; }
  .bp-head { gap: 10px; }
  .bp-name { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .bp-long { display: none; }
  .bp-short { display: inline; }
  .bp-deliverables { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
  .bp-deliverables::-webkit-scrollbar { display: none; }
  .bp-deliverables { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); padding-right: 44px; }
  .bp-deliverables a { display: inline-flex; align-items: center; min-height: 40px; white-space: nowrap; }
  .bp-tiles { margin: 0 -18px; padding: 0 18px 2px; }
  .bp-tile .card-media { height: min(44svh, calc(100svh - var(--hh) - 300px)); min-height: 200px; }
}

/* ---------- panel grid (homepage selected work, work index, categories) ---------- */
.pgrid { --cols: 2; --pgap: clamp(10px, 1.4vw, 18px); columns: var(--cols); column-gap: var(--pgap); padding-top: 4px; }
@media (min-width: 760px) { .pgrid { --cols: 3; } }
@media (min-width: 1100px) { .pgrid { --cols: 4; } }
/* with JS, cards are dealt left to right into the shortest column so the order reads across like a row */
.pgrid.is-laid { columns: auto; display: block; }
.pgrid-cols { display: flex; align-items: flex-start; gap: var(--pgap); }
.pgrid-col { flex: 1 1 0; min-width: 0; }
.pgrid-rows { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; column-gap: var(--pgap); }
.pgrid-rows > .card { flex: 0 0 calc((100% - (var(--lc, 4) - 1) * var(--pgap)) / var(--lc, 4)); min-width: 0; }

@media (max-width: 759px) { .cl-dur { display: none; } }
.pgrid .card { break-inside: avoid; margin-bottom: clamp(18px, 2.4vw, 32px); }
.card-panel { display: block; background: var(--pbg); color: var(--pfg); border-radius: clamp(12px, 1.4vw, 20px); padding: clamp(10px, 1.1vw, 16px) clamp(12px, 1.8vw, 26px) clamp(14px, 2vw, 28px); transition: transform .5s var(--ease); }
.card-label { display: block; text-align: center; font-size: clamp(.6rem, .55rem + .25vw, .74rem); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; margin-bottom: clamp(8px, 1vw, 14px); }
.pcard .card-media { border-radius: 4px; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.pcard:hover .card-panel { transform: translateY(-4px); }
.pcard .card-meta { padding-top: 10px; }
@media (max-width: 759px) { .pcard .card-meta { flex-direction: column; gap: 2px; } .pcard .card-title { font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .pcard:hover .card-panel { transform: none; } }

/* ---------- contact additions ---------- */
:root { --err: #ff9586; }
.contact-note { margin-top: 18px; color: var(--ash); font-size: var(--step--1); }
.contact-note a, .iq-fine a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 0; margin: -12px 0; }
.site-footer.is-compact { padding-top: clamp(28px, 5vw, 56px); }
.site-footer.is-compact .socials { margin-top: 0; }
.mm-actions { margin-top: auto; display: grid; gap: 10px; }
.mm-actions .btn { margin-top: 0; }
.nav-cta .arrow { width: 16px; height: 16px; }

/* ---------- start a project ---------- */
.iq { padding: calc(var(--hh) + clamp(40px, 8vw, 110px)) 0 clamp(24px, 4vw, 48px); display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .iq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .iq-head { position: sticky; top: calc(var(--hh) + 32px); } }
.iq-kicker { color: var(--accent); font-weight: 650; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.iq .page-title { font-size: var(--step-3); line-height: .92; }
.iq-steps { margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.iq-steps li { display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--bone-2); }
.iq-steps b { color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; }
.iq-form { counter-reset: q; }
.iq-group { border: 0; margin: 0 0 clamp(28px, 3.5vw, 44px); padding: 0; min-width: 0; }
.iq-route { border: 0; margin: 0; padding: 0; min-width: 0; }
.iq-route[hidden], .iq-rest[hidden], .iq-form[hidden], .iq-done[hidden] { display: none; }
.iq-label { display: flex; gap: 12px; align-items: baseline; font-size: var(--step-1); font-weight: 650; letter-spacing: -.01em; line-height: 1.25; margin-bottom: 14px; }
.iq-num::before { counter-increment: q; content: counter(q, decimal-leading-zero); color: var(--accent); font-size: var(--step--1); font-weight: 650; font-variant-numeric: tabular-nums; }
.iq-hint { color: var(--ash); font-size: var(--step--1); margin: -6px 0 14px; }
.iq-choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .iq-choices-2 { grid-template-columns: 1fr 1fr; } }
.iq-choice { position: relative; display: block; cursor: pointer; }
.iq-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.iq-choice-box { position: relative; display: grid; gap: 4px; align-content: center; min-height: 56px; padding: 15px 18px 15px 50px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--ink-2); transition: border-color .2s, background-color .2s; }
.iq-choice-box::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid var(--bone-2); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.iq-choice:hover .iq-choice-box { border-color: var(--bone-2); }
.iq-choice input:checked + .iq-choice-box { border-color: var(--accent); background: var(--accent-soft); }
.iq-choice input:checked + .iq-choice-box::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3.5px var(--ink-2); }
.iq-choice input:focus-visible + .iq-choice-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.iq-choice-title { font-weight: 600; }
.iq-choice-sub { color: var(--ash); font-size: var(--step--1); line-height: 1.4; }
.iq-fields { display: grid; gap: 16px; }
@media (min-width: 640px) { .iq-fields { grid-template-columns: 1fr 1fr; } .iq-fields [data-field="business"] { grid-column: 1 / -1; } }
.iq-field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.iq-group > .iq-field + .iq-field { margin-top: 18px; }
.iq-field > label { color: var(--bone-2); font-size: var(--step--1); font-weight: 500; }
.iq-field > label.iq-label { color: var(--bone); font-size: var(--step-1); font-weight: 650; margin-bottom: 6px; }
.iq-opt { color: var(--ash); font-weight: 400; font-size: var(--step--1); }
.iq input[type="text"], .iq input[type="email"], .iq input[type="tel"], .iq textarea, .iq select {
  width: 100%; min-height: 52px; padding: 14px 16px; font: inherit; font-size: max(16px, var(--step-0)); color: var(--bone);
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
.iq textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.iq input::placeholder, .iq textarea::placeholder { color: var(--ash); opacity: .7; }
.iq input:focus, .iq textarea:focus, .iq select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.iq-select { position: relative; }
.iq-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.iq-select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid var(--bone-2); border-bottom: 1.6px solid var(--bone-2); transform: rotate(45deg); pointer-events: none; }
.iq select option { background: var(--ink-2); color: var(--bone); }
.iq [aria-invalid="true"] { border-color: var(--err) !important; }
.iq-group.is-invalid .iq-choice-box { border-color: rgba(255, 149, 134, .55); }
.iq-err { color: var(--err); font-size: var(--step--1); margin-top: 10px; }
.iq-field .iq-err { margin-top: 0; }

/* instant estimate: appears under the package/service choices the moment one is picked */
.iq-est { margin-top: 12px; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); color: var(--bone); font-size: var(--step--1); line-height: 1.55; }
.iq-est.is-new { animation: est-in .4s var(--ease); }
@keyframes est-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .iq-est.is-new { animation: none; } }
.iq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.iq-submit { display: grid; gap: 14px; justify-items: start; border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 36px); }
.iq-submit .btn[disabled] { opacity: .6; cursor: progress; }
.iq-fine { color: var(--ash); font-size: var(--step--1); line-height: 1.5; }
.iq-status { color: var(--err); line-height: 1.5; }
.iq-status a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; }
.iq-done { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-2); border-radius: 20px; background: var(--ink-2); }
.iq-done:focus { outline: none; }
.iq-done-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--ink); margin-bottom: 22px; }
.iq-done-mark svg { width: 28px; height: 28px; }
.iq-done-title { font-size: var(--step-3); font-weight: 750; font-variation-settings: "wdth" 92; line-height: .95; letter-spacing: -.022em; }
.iq-done-text { color: var(--bone-2); font-size: var(--step-1); line-height: 1.45; max-width: 52ch; margin-top: 14px; }

/* ---------- FAQ (one answer open at a time) ---------- */
.faq { display: grid; gap: 24px; padding-top: clamp(56px, 8vw, 110px); }
@media (min-width: 1000px) { .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); } }
.faq-title { font-size: var(--step-3); font-weight: 750; font-variation-settings: "wdth" 92; line-height: .95; letter-spacing: -.025em; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; min-height: 56px; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--step-1); line-height: 1.3; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.6px; margin-top: -.8px; background: currentColor; transition: transform .35s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { color: var(--bone-2); max-width: 62ch; line-height: 1.6; padding: 0 0 22px; }
.faq-sec { padding-top: 0; }
.faq-sec .faq { padding-top: 0; }

/* ---------- case study (Orinla.AI) ---------- */
.case { padding-bottom: clamp(56px, 8vw, 120px); }
.cs-head { padding-top: clamp(8px, 2vw, 24px); }
.cs-title { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 5.2rem); font-weight: 750; font-variation-settings: "wdth" 90; line-height: .95; letter-spacing: -.025em; max-width: 18ch; text-wrap: balance; }
.cs-sub { color: var(--accent); font-weight: 600; font-size: var(--step-1); margin-top: 16px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cs-tags li { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: var(--step--1); color: var(--bone-2); }
.cs-hero { margin-top: clamp(28px, 4vw, 56px); }
.cs-hero .player { width: 100%; max-height: none; }
.cs-fig { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; width: 100%; }
.cs-cap { color: var(--ash); font-size: var(--step--1); text-align: center; max-width: 46ch; }
.cs-text { display: grid; gap: clamp(24px, 3vw, 40px); margin-top: clamp(40px, 6vw, 88px); }
@media (min-width: 1000px) { .cs-text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); } }
.cs-lead { font-size: var(--step-1); line-height: 1.5; color: var(--bone); max-width: 60ch; }
.cs-h { font-size: var(--step-2); font-weight: 700; font-variation-settings: "wdth" 92; letter-spacing: -.015em; line-height: 1.05; margin-bottom: 14px; }
.cs-block p { color: var(--bone-2); line-height: 1.6; max-width: 62ch; }
.cs-section { margin-top: clamp(64px, 9vw, 140px); display: grid; gap: clamp(28px, 4vw, 56px); scroll-margin-top: calc(var(--hh) + 16px); }
#brand-film, #logo-concept, #logo-animation { scroll-margin-top: calc(var(--hh) + 16px); }
.cs-swatches { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: var(--step--1); color: var(--bone-2); }
.cs-swatches li { display: inline-flex; align-items: center; gap: 10px; }
.cs-swatches span { width: 28px; height: 28px; border-radius: 50%; background: var(--sw); border: 1px solid var(--line); }
.cs-pair { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }
@media (min-width: 900px) { .cs-pair { grid-template-columns: 1fr 1fr; align-items: center; } }
.cs-pair .still, .cs-pair .player { width: min(100%, calc(70svh * (var(--ar)))); }
.cs-solo { display: flex; justify-content: center; }
.cs-solo .player { width: min(100%, calc(78svh * (var(--ar)))); }
.cs-grid { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2vw, 24px); }
@media (min-width: 700px) { .cs-grid { grid-template-columns: 1fr 1fr; } }
.cs-grid .still { width: 100%; }
.cs-lists { margin-top: clamp(64px, 9vw, 140px); display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .cs-lists { grid-template-columns: 1fr 1fr; } }
.cs-list { border-top: 1px solid var(--line); }
.cs-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--bone-2); line-height: 1.45; }
.cs-end { margin-top: clamp(48px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.cs-client { color: var(--bone-2); }
.cs-client a { color: var(--bone); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 10px 0; margin: -10px 0; }
@media (max-width: 759px) { .cs-end .btn { width: 100%; justify-content: center; } }

/* ---------- website previews ---------- */
.ws-stage { position: relative; width: 100%; display: flex; align-items: flex-end; padding-right: clamp(40px, 9vw, 120px); }
.ws-stage.no-phone { padding-right: 0; }
.ws-desk { position: relative; width: 100%; border-radius: var(--r); overflow: hidden; background: var(--c); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border: 1px solid var(--line); }
.ws-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #17171a; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ws-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ws-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--ash); font-size: 11px; letter-spacing: .01em; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-desk .still-link { aspect-ratio: var(--ar); }
.ws-desk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-phone { position: absolute; right: 0; bottom: clamp(-28px, -2vw, -12px); width: clamp(96px, 19%, 220px); aspect-ratio: var(--ar); border-radius: clamp(14px, 2vw, 26px); overflow: hidden; border: clamp(4px, .5vw, 7px) solid #0d0d0f; background: #0d0d0f; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.ws-phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-body:has(.ws-stage) { padding-bottom: 28px; }
.ws-visit { margin-bottom: 12px; }
