/* namig garib — portfolio. Black canvas, Satoshi, violet glass. */
:root {
  --bg: #000;
  --text: #fff;
  --muted: #d7d7d7;
  --accent: #4e2bda;
  --accent-2: #7556f2;
  --accent-soft: #c4b8ff;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 24px;
  --bezel: 6px;
  --pad: 30px;
  --maxw: 1440px;
  --section-gap: 112px;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Courier New', monospace;
  --sans: 'Satoshi', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: cubic-bezier(.22,1,.36,1); }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }
a[href], button:not(:disabled), [role="button"] { cursor: pointer; }
:focus-visible { outline: 2px solid rgba(196, 184, 255, .9); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section-title { font-size: clamp(32px, 3.4vw, 52px); font-weight: 900; line-height: 1.2; letter-spacing: -.029em; }
html.svc-locked, html.menu-locked { overflow: hidden; }

/* Content waits for the intro cover. */
html.pl-enter main, html.pl-enter .site-header { opacity: 0; }

/* ---------- Intro cover ----------
   Minimal: a small wordmark gathers in (gentle tracking), holds, then the name and the cover simply
   fade away. Timing lives in one Web Animations timeline in site.js (introTimeline()). */
.intro-cover { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: #000; }
.intro-mark { display: grid; justify-items: center; }
.intro-logo { display: flex; font-weight: 700; font-size: clamp(20px, 1.9vw, 26px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; color: #fff; }
.intro-logo .ch { display: inline-block; padding: .1em 0 .25em; }
.intro-logo .ch > span { display: inline-block; will-change: opacity; }
.intro-logo .sp { width: .28em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; isolation: isolate;
  padding: 24px 0 0; transition: opacity .6s ease;
}
.site-header::before, .site-header::after {
  content: ""; position: absolute; inset: 0 0 -48px; pointer-events: none; z-index: -1;
}
.site-header::before {
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.45) 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%);
}
.site-header::after {
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 75%); mask-image: linear-gradient(to bottom, #000 0%, #000 20%, transparent 75%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 26px; }
.brand { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 19px; letter-spacing: -.035em; line-height: 1.35; white-space: nowrap; }
/* Wordmark "namig.garib": name in white, a violet dot, "garib" in a soft lavender-to-violet gradient. */
.brand-dot { color: #7c5cff; }
.brand-accent { background: linear-gradient(90deg, #c9bdff 0%, #9d8bff 55%, #7c5cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
/* Header wordmark, letter by letter (built by brandLetters() in site.js). Solid colours per letter, so
   descenders are never clipped the way gradient-clipped text can be. On hover the letters ripple up one
   after another, "garib" brightens in a sweep and the dot glows. */
.brand .bl, .mobile-brand .bl { display: inline-block; transition: transform .5s cubic-bezier(.34,1.56,.64,1), filter .4s ease, text-shadow .4s ease; transition-delay: calc(var(--i) * 28ms); }
.brand .bl.is-dot, .mobile-brand .bl.is-dot { color: #7c5cff; }
/* "garib": one continuous gradient across the word (each letter's slice is set in site.js) */
.brand .bl.is-accent, .mobile-brand .bl.is-accent { color: #a996ff; } /* each letter gets its own gradient colour in site.js */
@media (hover: hover) and (pointer: fine) {
  .brand:hover .bl { transform: translateY(-3px); }
  .brand:hover .bl.is-accent { filter: brightness(1.3); }
  .brand:hover .bl.is-dot { transform: translateY(-3px) scale(1.35); text-shadow: 0 0 12px rgba(124,92,255,.95); }
}
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { font-weight: 500; font-size: 16px; position: relative; transition: color .3s var(--ease); }
.header-nav a[data-nav]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.header-nav a[data-nav]:hover::after, .header-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-phone { display: grid; place-items: center; width: 25px; height: 25px; }
.nav-phone svg { transition: rotate .5s var(--spring); }
.nav-phone:hover svg { rotate: -14deg; }

.mobile-site-header { display: none; }
@media (max-width: 767px) {
  .site-header { display: none; }
  .mobile-site-header {
    position: fixed; inset: 0 0 auto; z-index: 1100; display: flex; align-items: center; justify-content: space-between;
    height: 76px; padding: 12px 20px; background: linear-gradient(#000000ee, #000000bb, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .mobile-brand { font: 700 20px/1.35 var(--sans); letter-spacing: -.035em; padding: 8px 0; }
}
.mobile-menu-toggle { position: relative; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.mobile-menu-toggle span { position: absolute; left: 10px; top: calc(50% - 1px); width: 24px; height: 2px; border-radius: 2px; background: #fff; transition: translate .5s cubic-bezier(.76,0,.24,1), rotate .5s cubic-bezier(.76,0,.24,1); }
.mobile-menu-toggle span:first-child { translate: 0 -4px; }
.mobile-menu-toggle span:last-child { translate: 0 4px; }
.mobile-site-menu {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; color: #fff; overflow: auto;
  display: flex; flex-direction: column; padding: 0 20px 32px;
  background: radial-gradient(120% 60% at 100% 0%, rgba(78,43,218,.38), transparent 60%), rgba(6,6,12,.88);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  clip-path: circle(0px at calc(100% - 42px) 38px); transition: clip-path .75s cubic-bezier(.76,0,.24,1);
}
.mobile-site-menu:not([open]) { display: none; }
.mobile-site-menu::backdrop { background: transparent; }
.mobile-site-menu.is-open { clip-path: circle(150vmax at calc(100% - 42px) 38px); }
.mobile-site-menu.is-closing { transition-duration: .5s; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 12px 0; flex: none; }
.mobile-site-menu nav { display: flex; flex-direction: column; margin: 3vh 0 0; }
.mobile-site-menu nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  font: 700 clamp(34px, 10vw, 52px)/1.05 var(--sans); letter-spacing: -.03em;
  opacity: 0; translate: 0 36px; transition: opacity .5s ease, translate .75s var(--ease); transition-delay: calc(.2s + var(--i) * .06s);
}
.mobile-site-menu nav a[aria-current=page] .mobile-menu-label { background: linear-gradient(90deg, #c3b5ff, #7556f2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mobile-menu-index { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: #9d8bff; translate: 0 -.7em; }
.mobile-menu-foot { margin-top: auto; display: grid; gap: 6px; padding-top: 28px; font: 500 15px/1.4 var(--sans); color: rgba(255,255,255,.6); opacity: 0; translate: 0 24px; transition: opacity .5s ease, translate .75s var(--ease); transition-delay: calc(.2s + var(--i) * .06s); }
.mobile-menu-foot a { color: #fff; padding: 6px 0; }
.mobile-site-menu.is-open nav a, .mobile-site-menu.is-open .mobile-menu-foot { opacity: 1; translate: 0 0; }
.mobile-site-menu.is-closing nav a, .mobile-site-menu.is-closing .mobile-menu-foot { transition-delay: 0s; transition-duration: .25s; }
.mobile-site-menu.is-open .mobile-menu-close span:first-child { translate: 0 0; rotate: 45deg; }
.mobile-site-menu.is-open .mobile-menu-close span:last-child { translate: 0 0; rotate: -45deg; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.hero canvas.gpu-fluid {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.15) 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.15) 92%, transparent 100%);
}
canvas.gpu-fluid.no-gl { background: radial-gradient(60% 50% at 60% 45%, rgba(56,140,255,.18), transparent 70%); }
.hero-copy { position: relative; z-index: 1; padding-bottom: clamp(96px, 17vh, 190px); pointer-events: none; }
.hero-lede { margin-top: 20px; max-width: 46ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; pointer-events: auto; }
.hero-btn { height: 48px; padding: 0 22px; font-size: 15px; }
.hero-btn svg { transition: translate .35s var(--ease); }
.hero-btn:hover svg { translate: 3px 0; }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 1; display: grid; justify-items: center; gap: 10px; color: rgba(255,255,255,.55); font: 500 11px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; transition: color .3s ease; }
.hero-scroll:hover { color: #fff; }
.hero-scroll i { width: 1px; height: 38px; background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent); transform-origin: top; animation: hero-scroll 2.4s var(--ease) infinite; }
@keyframes hero-scroll { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1200px) { .hero-lede { font-size: 19px; } }
@media (max-width: 809px) { .hero-copy { padding-bottom: 96px; } .hero-lede { font-size: 15px; margin-top: 14px; } .hero-actions { margin-top: 22px; } .hero-btn { height: 44px; padding: 0 18px; font-size: 14px; } }
.hero-hi { color: var(--muted); font-size: 16px; line-height: 24px; margin-bottom: 12px; }
/* Hero type follows Ulviyya's three breakpoints: phone < 810, tablet 810–1199, desktop ≥ 1200. */
.hero h1 { font-size: min(36px, 9.3vw); font-weight: 900; line-height: 1.2; letter-spacing: -.029em; white-space: nowrap; }
.hero .hero-copy { padding-left: 30px; padding-right: 30px; }
@media (min-width: 810px) { .hero h1 { font-size: 44px; line-height: 1.14; letter-spacing: -.03em; } }
@media (min-width: 1200px) {
  .hero .hero-copy { max-width: 1140px; padding-left: 0; padding-right: 0; }
  .hero-hi { color: #fff; font-size: 24px; line-height: 2.2; letter-spacing: -.02em; }
  .hero h1 { font-size: 96px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; white-space: nowrap; }
}

/* ---------- About statement ---------- */
.about { padding: 48px 0 0; }
.about-lead { font-size: clamp(30px, 5.08vw, 84px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; max-width: 22ch; }
.about-lead .w { display: inline-block; opacity: 0; filter: blur(10px); translate: 0 12px; transition: opacity .6s var(--ease), filter .6s var(--ease), translate .6s var(--ease); }
.about-lead .w.in { opacity: 1; filter: blur(0); translate: 0 0; }

/* ---------- Gallery marquee ---------- */
.gallery { padding: 48px 0 0; display: grid; gap: 16px; overflow: hidden; }
.marquee-row { overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.marquee-row.is-dragging { cursor: grabbing; }
.marquee-row.is-dragging .gallery-tile { pointer-events: none; }
.marquee-track { display: flex; gap: 32px; width: max-content; will-change: transform; }
.gallery-tile { flex: none; width: clamp(240px, 35vw, 460px); aspect-ratio: 360 / 250; overflow: hidden; background: #111; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .6s ease; -webkit-user-drag: none; }

/* ---------- Services ---------- */
.services { padding-top: var(--section-gap); }
.services .section-title { margin-bottom: 28px; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 16px; counter-reset: svc; }
@property --glare { syntax: '<number>'; inherits: false; initial-value: 0; }
@property --shade { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --shade-angle { syntax: '<angle>'; inherits: true; initial-value: 180deg; }
.svc-card {
  counter-increment: svc; position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 23px 23px 25px;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  background:
    linear-gradient(var(--shade-angle), rgba(0,0,0,calc(.45 * var(--shade))), transparent 55%, rgba(255,255,255,calc(.1 * var(--shade)))),
    radial-gradient(130% 120% at 0% 0%, rgba(78,43,218,calc(.75 * var(--glare))), rgba(78,43,218,calc(.2 * var(--glare))) 60%, transparent 100%),
    rgba(255,255,255,calc(.035 + .015 * var(--glare)));
  box-shadow: inset 0 1px 1px rgba(255,255,255,0), 0 30px 60px -40px rgba(0,0,0,.9);
  contain: paint;
}
.svc-card::after {
  content: ""; position: absolute; inset: var(--bezel); z-index: -2; border-radius: calc(var(--radius) - var(--bezel));
  background: linear-gradient(165deg, rgba(20,24,32,.8), rgba(6,8,12,.88));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.03);
  transition: opacity .5s var(--ease);
}
.svc-card::before {
  content: counter(svc, decimal-leading-zero); position: absolute; right: 26px; bottom: -24px; z-index: -1;
  font: 700 150px/1 var(--sans); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09);
  pointer-events: none; transition: -webkit-text-stroke-color .6s var(--ease), translate .8s var(--ease);
}
.svc-card:hover { --glare: 1; border-color: rgba(255,255,255,.26); box-shadow: inset 0 1px 1px rgba(255,255,255,.3), 0 30px 80px -30px rgba(78,43,218,.6); }
.svc-card:hover::after { opacity: .35; }
.svc-card:hover::before { -webkit-text-stroke-color: rgba(160,140,255,.5); translate: -10px 0; }
.svc-card-icon {
  position: absolute; top: 22px; left: 22px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  color: #cfc6ff; background: radial-gradient(120% 120% at 0% 0%, rgba(117,86,242,.45), rgba(78,43,218,.12));
  border: 1px solid rgba(160,140,255,.32); box-shadow: inset 0 1px 1px rgba(255,255,255,.2); pointer-events: none;
  transition: color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), scale .5s var(--spring);
}
.svc-card:hover .svc-card-icon { color: #fff; border-color: rgba(200,188,255,.6); box-shadow: inset 0 1px 1px rgba(255,255,255,.3), 0 0 24px rgba(117,86,242,.55); scale: 1.06; }
.svc-card-arrow {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  scale: 0; transition: scale .35s var(--spring);
}
.svc-card:hover .svc-card-arrow, .svc-card:focus-visible .svc-card-arrow { scale: 1; }
.svc-eyebrow-sm { font: 500 11px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); transition: color .4s var(--ease); padding-top: 64px; }
.svc-card:hover .svc-eyebrow-sm { color: #fff; }
.svc-card h3 { font-size: 26px; font-weight: 700; line-height: 1.3; max-width: 22ch; padding-top: 64px; }
/* Sub-services as points, in two columns on wide cards (trenders.team /service style). */
.svc-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.svc-list li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.72); transition: color .4s var(--ease); }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #7c5cff; box-shadow: 0 0 8px rgba(124,92,255,.7); }
.svc-card:hover .svc-list li { color: rgba(255,255,255,.9); }
/* Seven services: the last card spans both columns, its points in three columns. */
.svc-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.svc-card:last-child:nth-child(odd) .svc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-card:focus-visible { outline: 2px solid rgba(196,184,255,.9); outline-offset: 3px; }

/* Glass bend shared by service and experience cards. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .svc-grid, .exp-list { perspective: 1000px; }
  .glass-tilt {
    rotate: var(--card-axis-x, 1) var(--card-axis-y, 0) 0 var(--card-angle, 0deg); transform-origin: center;
    transition: scale .6s var(--ease), translate .6s var(--ease), --glare .5s var(--ease), background-color .5s ease, box-shadow .5s ease, border-color .5s ease;
  }
  .svc-card:hover { scale: 1.02; }
}

/* Service pop-up */
.svc-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 24px; }
.svc-modal[hidden] { display: none; }
.svc-backdrop { position: absolute; inset: 0; background: rgba(3,3,8,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .45s var(--ease); }
.svc-panel {
  position: relative; width: min(580px, 100%); max-height: calc(100dvh - 48px); overflow: auto; padding: 32px;
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(160deg, rgba(44,34,84,.78), rgba(10,10,18,.86));
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.18), 0 40px 120px -40px rgba(78,43,218,.75), 0 30px 60px -30px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.svc-modal.is-open .svc-backdrop { opacity: 1; }
.svc-modal.is-open .svc-panel { opacity: 1; transform: none; }
.svc-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background-color .3s var(--ease), rotate .4s var(--ease); }
.svc-close:hover { background: rgba(255,255,255,.16); rotate: 90deg; }
.svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.svc-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: radial-gradient(120% 120% at 0% 0%, rgba(117,86,242,.7), rgba(78,43,218,.2)); border: 1px solid rgba(200,188,255,.4); box-shadow: inset 0 1px 1px rgba(255,255,255,.3), 0 0 32px rgba(117,86,242,.45); }
.svc-index { font: 400 12px/1 var(--mono); letter-spacing: .12em; color: rgba(255,255,255,.45); }
.svc-eyebrow { margin: 0 0 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); }
.svc-title { margin: 0 0 14px; font: 700 28px/1.2 var(--sans); letter-spacing: -.02em; }
.svc-body { margin: 0 0 22px; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.76); }
.svc-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.svc-points li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 500; line-height: 1.5; color: rgba(255,255,255,.92); }
.svc-points li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 999px; border: 1px solid rgba(160,140,255,.55);
  background: rgba(78,43,218,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-btn, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font: 600 15px/1 var(--sans); color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  transition: filter .35s var(--ease), translate .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.svc-btn:not(.svc-btn-primary):hover { background: rgba(255,255,255,.15); translate: 0 -1px; }
.svc-btn-primary, .btn-primary { background: linear-gradient(160deg, rgba(117,86,242,.95), rgba(78,43,218,.85)); border-color: rgba(255,255,255,.2); box-shadow: inset 0 1px 1px rgba(255,255,255,.3), 0 16px 36px -18px rgba(78,43,218,.9); }
.svc-btn-primary:hover, .btn-primary:hover { filter: brightness(1.12); translate: 0 -1px; }
.svc-btn svg { transition: translate .35s var(--ease); }
.svc-btn-primary:hover svg { translate: 3px 0; }

/* ---------- Recent projects (pinned stack) ---------- */
.projects { padding-top: var(--section-gap); }
.home-project-stack .stack-heading { position: sticky; top: var(--project-heading-top, 96px); z-index: 2; margin-bottom: 28px; }
[data-project-gallery="home"] { display: flex; flex-direction: column; gap: 40px; isolation: isolate; }
.project-card { display: block; position: relative; min-width: 0; color: #fff; isolation: isolate; padding: 8px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 30px 60px -40px rgba(0,0,0,.9);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.project-card::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 1px rgba(255,255,255,.3); opacity: 0; transition: opacity .5s var(--ease); }
.project-card:hover::before { opacity: 1; }
.project-media { position: relative; overflow: hidden; border-radius: 16px; background: #17191c; aspect-ratio: 3 / 2; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
@media (hover: hover) and (pointer: fine) { .project-card:hover .project-media img { transform: scale(1.035); } }
.project-copy { padding: 22px 14px 14px; }

[data-project-gallery="home"] .project-card {
  position: sticky; top: var(--project-card-top, 186px); flex: none;
  background: linear-gradient(160deg, rgba(30,24,44,.97), rgba(8,8,12,.98));
  transform-origin: 50% 100%; transform: perspective(1400px) rotateX(var(--entry-tilt, 0deg)) rotateZ(var(--entry-turn, 0deg)); backface-visibility: hidden;
}
[data-project-gallery="home"] .project-media { aspect-ratio: 1.69; max-height: calc(100svh - var(--project-card-top, 186px) - 28px); width: 100%; }
[data-project-gallery="home"] .project-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.82) 75%, #000 100%); }
[data-project-gallery="home"] .project-copy { position: absolute; bottom: 80px; left: 7%; right: 7%; text-align: center; padding: 0; pointer-events: none; }
[data-project-gallery="home"] .project-copy h2 { font-family: 'Inter', var(--sans); font-size: clamp(24px, 2.8vw, 42px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
[data-project-gallery="home"] .project-copy p { font-family: 'Inter', var(--sans); font-size: 17px; line-height: 1.5; color: #e0e0e0; margin-top: 24px; text-wrap: balance; }

/* ---------- Portfolio (home) — trenders.team layout in the site's own glass language ---------- */
.pf { padding-top: var(--section-gap); }
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.pf-more { height: 44px; padding: 0 20px; border-radius: 999px; }
.pf-more svg { transition: translate .35s var(--ease); }
.pf-more:hover svg { translate: 3px 0; }

.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Card: full-bleed media, trenders.team proportions (592px tall, 26px radius) and interaction timing. */
.pf-card {
  position: relative; display: block; height: 592px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: #0c0c10; color: #fff; cursor: pointer; transform: translateZ(0); will-change: transform;
  opacity: 0; translate: 0 45px;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
/* Soft violet glow on hover, drawn by a pseudo-element so only opacity animates. */
.pf-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 0 1px rgba(124,92,255,.0); background: radial-gradient(120% 60% at 50% 110%, rgba(124,92,255,.28), transparent 60%);
  opacity: 0; transition: opacity .7s cubic-bezier(.22,1,.36,1); }
/* Parallax layer: a little taller than the card so the drift never shows an edge. */
.pf-par { position: absolute; left: 0; right: 0; top: -36px; bottom: -36px; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.pf-card.is-visible { animation: pf-rise .85s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * .1s); }
@keyframes pf-rise { from { opacity: 0; translate: 0 45px; } to { opacity: 1; translate: 0 0; } }
.pf-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity var(--clip-fade, .7s) cubic-bezier(.22,1,.36,1); }
.pf-clip { opacity: 0; }
.pf-card.is-playing .pf-clip { opacity: 1; }
.pf-card.is-playing .pf-still { opacity: 0; }
.pf-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.65) 100%); }
.pf-body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 37px; padding: 24px; }
.pf-title { display: block; font-size: 26px; font-weight: 400; line-height: 1.25; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
@media (hover: hover) and (pointer: fine) {
  .pf-card:hover { transform: translateY(var(--pf-lift, -6px)); }
  .pf-card:hover::after { opacity: 1; }
  .pf-card:hover .pf-media { transform: scale(var(--pf-zoom, 1.04)); }
}
.pf-card:active { transform: translateY(-3px) scale(.99); transition-duration: .2s; }
/* Projects page video cards: not clickable (hover still plays the clip) */
.pf-card.pf-static { cursor: default; }
.pf-card.pf-static:active { transform: none; }
@media (hover: hover) and (pointer: fine) { .pf-card.pf-static:active { transform: translateY(var(--pf-lift, -6px)); } }
.gallery-tile { cursor: inherit; }
.pf-card:focus-visible { outline: 2px solid rgba(196,184,255,.9); outline-offset: 4px; }

/* Card + heading type (2026-11-28): General Sans, same family as the Services panels. */
.pf-card, .pf .section-title, .pj-head h1, .pj-filter { font-family: 'General Sans', var(--sans); }
.pf .section-title, .projects-page .pj-head h1 { font-weight: 500; font-size: clamp(44px, 5.2vw, 84px); line-height: .92; letter-spacing: -.05em; }
.pf-shade { background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 46%, rgba(0,0,0,.72) 100%); }
.pf-top { position: absolute; z-index: 3; left: 22px; right: 22px; top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 500 12px/1 'General Sans', var(--sans); letter-spacing: .01em; color: rgba(255,255,255,.78); white-space: nowrap; }
.pf-num { font-variant-numeric: tabular-nums; color: rgba(255,255,255,.55); }
.pf-cat { padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pf-body { bottom: 0; padding: 24px 24px 26px; display: grid; gap: 6px; }
.pf-client { font: 500 13px/1.2 'General Sans', var(--sans); letter-spacing: .01em; color: rgba(255,255,255,.66); }
.pf-card .pf-title { font: 500 clamp(24px, 2.05vw, 32px)/1.02 'General Sans', var(--sans); letter-spacing: -.04em; max-width: 14ch; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 8px; font: 400 13px/1.2 'General Sans', var(--sans); color: rgba(255,255,255,.6); }
.pf-tags span + span::before { content: "·"; margin: 0 7px; color: rgba(255,255,255,.35); }
/* Category pill + tags: film-credit capitals (Cinzel, Trajan-style poster face), 2026-11-29 */
.pf-cat { font: 600 10.5px/1 'Cinzel', serif; letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px 7px; }
.pf-tags { font: 500 11px/1.3 'Cinzel', serif; letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }
.pf-tags span + span::before { margin: 0 9px; }
@media (hover: hover) and (pointer: fine) {
  .pf-tags { opacity: .75; transition: opacity .6s cubic-bezier(.22,1,.36,1); }
  .pf-card:hover .pf-tags { opacity: 1; }
}
@media (max-width: 1100px) { .pf-head { margin-bottom: 36px; } }
@media (max-width: 900px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .pf-head { margin-bottom: 24px; }
  .pf-more { height: 38px; padding: 0 14px; font-size: 13px; }
  .pf-grid { grid-template-columns: 1fr; gap: 14px; }
  .pf-card { height: 420px; border-radius: 20px; }
  .pf-body { padding: 18px 18px 20px; }
  .pf-card .pf-title { font-size: 24px; }
  .pf-top { left: 16px; right: 16px; top: 16px; }
}
@media (max-width: 400px) { .pf-card { height: 380px; } }
@media (prefers-reduced-motion: reduce) {
  .pf-card { opacity: 1; translate: none; }
  .pf-card.is-visible { animation: none; }
  .pf-card, .pf-media { transition: none; }
  .pf-par { transform: none; }
}

/* ---------- Projects page: type filter, photo grid, lightbox ---------- */
.pj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.projects-page .pj-head h1 { margin-bottom: 0; }
.pj-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-filter {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 14px/1 var(--sans); color: rgba(255,255,255,.72); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  transition: color .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.pj-filter:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.pj-filter[aria-pressed="true"] { color: #fff; background: linear-gradient(160deg, rgba(117,86,242,.95), rgba(78,43,218,.85)); border-color: rgba(255,255,255,.2); }
.pj-count { font: 500 11px/1 var(--mono); letter-spacing: .06em; opacity: .6; }
.pf-grid, .ph-grid { transition: opacity .26s ease, translate .26s ease; }
.pf-grid.is-leaving, .ph-grid.is-leaving { opacity: 0; translate: 0 10px; }
.pf-grid.is-entering, .ph-grid.is-entering { opacity: 0; translate: 0 18px; transition: none; }
.pf-grid[hidden], .ph-grid[hidden], .pf-card[hidden] { display: none; }
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.pf-grid[hidden] + .ph-grid { margin-top: 0; }
.ph-card {
  position: relative; display: block; padding: 0; border: 0; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; cursor: zoom-in;
  background: #0c0c10; opacity: 0; translate: 0 45px; transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.ph-card.is-visible { animation: pf-rise .85s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * .1s); }
.ph-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (pointer: fine) { .ph-card:hover { transform: translateY(-6px); } .ph-card:hover img { transform: scale(1.04); } }
.ph-card:focus-visible { outline: 2px solid rgba(196,184,255,.9); outline-offset: 4px; }
.lightbox { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 64px 72px; background: rgba(3,3,8,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .35s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 40px 120px -40px rgba(0,0,0,.9); }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background-color .3s var(--ease); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; bottom: 20px; left: 50%; translate: -50% 0; font: 500 12px/1 var(--mono); letter-spacing: .12em; color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .ph-grid { grid-template-columns: 1fr; gap: 14px; }
  .pj-filters { gap: 6px; }
  .pj-filter { height: 36px; padding: 0 13px; font-size: 13px; }
  .lightbox { padding: 56px 12px; }
  .lb-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ph-card { opacity: 1; translate: none; } .ph-card.is-visible { animation: none; } }

/* ---------- Partners ---------- */
.partners { padding-top: var(--section-gap); }
.partners-divider { height: 1px; margin-bottom: 48px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.16) 20%, rgba(255,255,255,.16) 80%, rgba(255,255,255,0)); }
.partners-head { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; margin-bottom: 56px; }
.partners-desc { color: var(--muted); font-size: 18px; font-weight: 400; line-height: 1.45; letter-spacing: -.01em; text-wrap: pretty; }
.partners-desc a {
  font-weight: 700; background: linear-gradient(90deg, #c3b5ff, #7556f2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.partners-desc a::after { content: "→"; display: inline-block; margin-left: 6px; color: #9d8bff; -webkit-text-fill-color: #9d8bff; transition: transform .3s var(--ease); }
.partners-desc a:hover::after { transform: translateX(6px); }
.partners-reveal.is-visible { animation: partners-rise .8s cubic-bezier(.16,1,.3,1) both; }
@keyframes partners-rise { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }

.partners-marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.partners-marquee { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.partners-marquee.is-dragging { cursor: grabbing; }
.partners-track { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; width: max-content; will-change: transform; }
.partner { flex: none; display: flex; align-items: center; justify-content: center; height: 72px; padding: 0 44px; }
.partner-mark { position: relative; display: grid; place-items: center; height: var(--logo-h, 28px); }
.partner-logo { display: block; height: var(--logo-h, 28px); width: auto; max-width: 150px; object-fit: contain; opacity: .45; transition: opacity .3s ease-in-out; -webkit-user-drag: none; }
/* Hover reveals the logo in its own colours (as on birainy.com), cross-fading from the white version. */
.partner-logo-color { position: absolute; left: 50%; top: 50%; translate: -50% -50%; height: var(--logo-h, 28px); width: auto; max-width: 150px; object-fit: contain; opacity: 0; transition: opacity .3s ease-in-out; pointer-events: none; -webkit-user-drag: none; }
.partner:hover .partner-mark:has(.partner-logo-color) .partner-logo { opacity: 0; }
.partner:hover .partner-logo-color { opacity: 1; }
.partner-logo.is-mono { filter: brightness(0) invert(1); }
.partner-logo.is-screen { filter: grayscale(1) invert(1) brightness(1.15); mix-blend-mode: screen; }
.partner-logo.is-luma { filter: grayscale(1) contrast(6) brightness(.95); mix-blend-mode: screen; }
.partner-word { white-space: nowrap; color: #fff; opacity: .45; font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; transition: opacity .35s ease; }
.partner:hover .partner-logo, .partner:hover .partner-word { opacity: .9; }

@media (max-width: 1024px) { .partners-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; } }
@media (max-width: 600px) {
  .partners-desc { font-size: 16px; }
  .partners-divider { margin-bottom: 36px; }
  .partner { padding: 0 30px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .partners-reveal.is-visible { animation: none; }
  .partners-track { animation: none; }
}

/* ---------- Work experience ---------- */
.experience { padding-top: var(--section-gap); }
.experience .section-title { margin-bottom: 28px; }
.exp-list { display: grid; gap: 16px; }
.exp-card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 120px; padding: 26px 28px 26px 76px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 30px 60px -40px rgba(0,0,0,.9);
  contain: paint;
  background: linear-gradient(var(--shade-angle), rgba(0,0,0,calc(.4 * var(--shade))), transparent 55%, rgba(255,255,255,calc(.1 * var(--shade)))),
    linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.025)), rgba(10,8,20,.35);
}
.exp-card::before { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 1px rgba(255,255,255,.3); opacity: 0; transition: opacity .5s var(--ease); }
.exp-card:hover::before { opacity: 1; }
.exp-main h3 { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 6px; }
.exp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; color: var(--muted); }
.exp-meta p { font-size: 16px; line-height: 24px; }
.exp-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.35); margin: 0 4px; }
.exp-rail { position: absolute; left: 35px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.14) 30%, rgba(255,255,255,.14) 70%, transparent); pointer-events: none; }
[data-exp="current"] .exp-rail { background: linear-gradient(to bottom, transparent, rgba(117,86,242,.9) 35%, rgba(78,43,218,.5) 70%, transparent); }
.exp-node { position: absolute; left: 29px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #0c0b14; border: 2px solid rgba(255,255,255,.35); box-shadow: 0 0 0 5px rgba(12,11,20,.9); pointer-events: none; transition: scale .5s var(--spring), border-color .5s ease; }
[data-exp="current"] .exp-node { background: var(--accent-2); border-color: #fff; box-shadow: 0 0 0 5px rgba(117,86,242,.22), 0 0 22px rgba(117,86,242,.9); animation: exp-pulse 2.6s var(--ease) infinite; }
@keyframes exp-pulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(117,86,242,.22), 0 0 22px rgba(117,86,242,.9); } 50% { box-shadow: 0 0 0 11px rgba(117,86,242,0), 0 0 30px rgba(117,86,242,.6); } }
.exp-year { position: absolute; right: 196px; bottom: -26px; z-index: -1; font: 700 128px/1 var(--sans); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); pointer-events: none; transition: -webkit-text-stroke-color .6s ease, translate .8s var(--ease); }
@media (min-width: 810px) and (max-width: 1199.98px) { .exp-year { font-size: 92px; bottom: -18px; } }
[data-exp="current"] .exp-year { -webkit-text-stroke-color: rgba(117,86,242,.28); }
.exp-duration { flex: none; padding: 5px 11px; border-radius: 999px; font: 500 12px/1.2 var(--mono); letter-spacing: .02em; white-space: nowrap; color: #d4ccff; background: rgba(78,43,218,.2); border: 1px solid rgba(117,86,242,.35); }
.exp-clients { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.exp-clients li { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #e6e1ff; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.exp-location { flex: none; display: flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); font-size: 16px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .exp-card { transition: translate .6s var(--ease), border-color .6s var(--ease) !important; }
  .exp-card:hover { translate: 6px 0; }
  .exp-card:hover .exp-node { scale: 1.3; border-color: #fff; }
  .exp-card:hover .exp-year { -webkit-text-stroke-color: rgba(255,255,255,.16); translate: -12px 0; }
  [data-exp="current"]:hover .exp-year { -webkit-text-stroke-color: rgba(117,86,242,.5); }
}

/* ---------- Get in touch + footer ---------- */
.contact-zone { position: relative; margin-top: var(--section-gap); }
.footer-fluid-lights {
  position: absolute; left: 0; right: 0; top: 0; height: var(--footer-fluid-height, 100%); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 90px, #000 220px, #000 85%, rgba(0,0,0,.5) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 90px, #000 220px, #000 85%, rgba(0,0,0,.5) 100%);
}
.footer-fluid-lights canvas { width: 100%; height: 100%; display: block; }
.cta { position: relative; z-index: 1; height: 600px; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.cta-marquee { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; overflow: hidden; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cta-track { display: flex; gap: .3em; width: max-content; will-change: transform; }
.cta h2 { font-size: clamp(56px, 9.8vw, 150px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; white-space: nowrap; }
.cta-portrait { position: absolute; left: 50%; bottom: 0; margin: 0; width: clamp(270px, 37vw, 470px); translate: -50% 0; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%); }
.cta-portrait { opacity: 0; transform: translateY(100px); transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
.cta-portrait img { width: 100%; height: auto; opacity: .2; transform: scale(1.15); transform-origin: 50% 100%; transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.cta-portrait.is-in { opacity: 1; transform: none; }
.cta-portrait.is-in img { opacity: 1; transform: none; }
.cta-portrait figcaption { position: absolute; left: 0; right: 0; top: 38%; text-align: center; font: 500 11px/1.4 var(--mono); letter-spacing: .16em; color: rgba(255,255,255,.35); text-transform: uppercase; }

.cta-orb {
  position: absolute; left: 0; top: 0; z-index: 20; width: 140px; height: 140px; margin: -70px 0 0 -70px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(140,120,255,.4), rgba(34,24,80,.6) 60%, rgba(10,10,20,.65));
  border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 24px 70px -12px rgba(78,43,218,.8);
  pointer-events: none; opacity: 0; scale: .3; transition: opacity .35s var(--ease), scale .6s var(--spring);
}
.cta.cta-orb-active, .cta.cta-orb-active * { cursor: none !important; }
.cta-orb-active > .cta-orb { opacity: 1; scale: 1; }
.cta-orb-pressed > .cta-orb { scale: .86; }
.cta-orb-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: cta-orb-spin 16s linear infinite; }
.cta-orb-ring text { font: 600 10px var(--mono); letter-spacing: .14em; fill: rgba(255,255,255,.9); }
.cta-orb-core { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(160deg, #7556f2, #4e2bda); box-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 0 32px rgba(117,86,242,.85); transition: rotate .5s var(--spring); }
.cta-orb-pressed > .cta-orb .cta-orb-core { rotate: 45deg; }
@keyframes cta-orb-spin { to { rotate: 360deg; } }
@media (hover: none), (pointer: coarse) {
  .cta-orb { left: 50%; top: auto; bottom: 24px; margin: 0 0 0 -60px; width: 120px; height: 120px; opacity: 1; scale: 1; pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
}

.site-footer { position: relative; z-index: 2; overflow: hidden; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; font-size: 16px; color: rgba(255,255,255,.85); }
.footer-row strong { color: #fff; font-weight: 700; }
.footer-wordmark { width: max-content; margin: 36px auto 0; font-weight: 900; font-size: 15vw; line-height: .8; letter-spacing: -.055em; white-space: nowrap; padding: 0 .04em .02em 0; translate: 0 .12em; user-select: none; }

/* ---------- Contact page ---------- */
.contact-page { min-height: 100svh; padding: 150px 0 80px; display: flex; flex-direction: column; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.contact-eyes { display: flex; gap: 8px; margin-bottom: 18px; }
.eye { position: relative; width: 24px; height: 36px; border-radius: 40px; background: #fffefd; display: grid; place-items: center; overflow: hidden; }
.eye-pupil { position: relative; width: 16px; height: 22px; border-radius: 50%; background: #0c0c0c; will-change: transform; }
.eye-pupil::after { content: ""; position: absolute; left: 7px; top: 16px; width: 3px; height: 3px; border-radius: 50%; background: #fffefd; }
.contact-top { display: flex; justify-content: flex-end; height: 0; }
.contact-top .contact-close { translate: 0 -64px; }
.contact-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .3s var(--ease), rotate .4s var(--ease); }
.contact-close:hover { background: rgba(255,255,255,.16); rotate: 90deg; }
.contact-page h1 { font-size: clamp(36px, 4.3vw, 64px); font-weight: 900; line-height: 1.14; letter-spacing: -.03em; margin-bottom: 16px; }
.contact-page .lede { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 34ch; margin-bottom: 48px; }
.contact-links { display: grid; gap: 14px; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; transition: color .3s ease; width: max-content; }
.contact-links a:hover { color: #fff; }
.contact-form { padding: 28px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 30px 60px -40px rgba(0,0,0,.9); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.field { display: grid; gap: 12px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 16px; }
.field input, .field textarea {
  width: 100%; font: 400 15px/1.5 var(--sans); color: #fff; padding: 12px 14px; border-radius: 12px; resize: vertical;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.45); }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.2); }
.field input:focus, .field textarea:focus { outline: none; background: rgba(0,0,0,.5); border-color: rgba(117,86,242,.7); box-shadow: inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 4px rgba(78,43,218,.22); }
.field textarea { min-height: 120px; }
.form-status { grid-column: 1 / -1; margin: -8px 0 0; min-height: 1.5em; font-size: 15px; color: #b9f5d0; }
.form-status[data-state="error"] { color: #ffb4b4; }
.contact-form .btn-primary:disabled { opacity: .7; cursor: default; }
.contact-form .btn-primary { grid-column: 1 / -1; width: 100%; height: 48px; font-size: 16px; }
.simple-footer { margin-top: auto; padding-top: 80px; }

/* ---------- Projects page ---------- */
.projects-page { padding: 150px 0 0; }
.projects-page h1 { font-size: clamp(36px, 4.3vw, 64px); font-weight: 900; letter-spacing: -.03em; line-height: 1.14; margin-bottom: 48px; }
[data-project-gallery="list"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 24px; }
[data-project-gallery="list"] .project-card { opacity: 0; translate: 0 40px; transition: opacity .8s var(--ease), translate .95s var(--ease); }
[data-project-gallery="list"] .project-card.project-revealed { opacity: 1; translate: 0 0; }
[data-project-gallery="list"] .project-media { height: 560px; aspect-ratio: auto; }
[data-project-gallery="list"] .project-media img { transform: scale(1.1); transition: transform .8s cubic-bezier(.22,.61,.36,1); }
[data-project-gallery="list"] .project-revealed .project-media img { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { [data-project-gallery="list"] .project-revealed:hover .project-media img { transform: scale(1.12); } }
[data-project-gallery="list"] .project-copy { padding: 24px 14px 14px; }
[data-project-gallery="list"] h3 { font-size: 40px; font-weight: 900; line-height: 1.3; letter-spacing: -.01em; }
[data-project-gallery="list"] p { font-size: 20px; font-weight: 500; line-height: 1.4; margin-top: 10px; color: #a8a8a8; }

/* ---------- Glass cursor ---------- */
html.has-glass-cursor, html.has-glass-cursor * { cursor: none !important; }
html.has-glass-cursor :is(input:not([type="submit"],[type="button"]), textarea) { cursor: text !important; }
.glass-cursor { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 2147483200; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.glass-cursor.is-visible { opacity: 1; }
.gc-dot, .gc-lens { position: absolute; left: 0; top: 0; will-change: transform; }
.gc-blob { scale: var(--gc-size, 1); }
.gc-dot::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(123,92,255,.9); transition: scale .35s var(--ease), opacity .25s ease; }
.gc-blob { position: absolute; left: 0; top: 0; }
.gc-glass {
  position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.3), rgba(255,255,255,.08) 55%, rgba(123,92,255,.12)), rgba(255,255,255,.05);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.4), inset 0 -6px 12px -6px rgba(123,92,255,.5), 0 8px 22px -8px rgba(0,0,0,.7);
  transition: scale .55s var(--ease), background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.gc-label { position: absolute; left: 0; top: 0; translate: -50% -50%; display: grid; place-items: center; color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: 0; scale: .6; transition: opacity .3s ease, scale .45s var(--ease); }
.gc-label svg { width: 16px; height: 16px; }
.gc-label span { display: none; }
.glass-cursor:is(.is-link,.is-view,.is-open) .gc-glass { background: radial-gradient(circle at 32% 26%, rgba(255,255,255,.16), transparent 60%) rgba(78,43,218,.22); border-color: rgba(190,175,255,.6); box-shadow: inset 0 1px 1px rgba(255,255,255,.45), 0 0 28px 4px rgba(78,43,218,.6); }
.glass-cursor.is-link .gc-glass { scale: 1.45; }
.glass-cursor:is(.is-view,.is-open) .gc-glass { scale: 1.9; background-color: rgba(78,43,218,.55); }
.glass-cursor:is(.is-link,.is-view,.is-open) .gc-dot::before { scale: 0; opacity: 0; }
.glass-cursor:is(.is-link,.is-view,.is-open) .gc-label { opacity: 1; scale: 1; }
.glass-cursor:is(.is-view,.is-open) .gc-label svg { display: none; }
.glass-cursor.is-view .gc-view, .glass-cursor.is-open .gc-open { display: block; }
/* Portfolio cards: smaller lens with "Projects" (2026-11-28) */
.glass-cursor.is-view .gc-glass { scale: 1.5; }
.glass-cursor.is-view .gc-label { font-size: 9px; letter-spacing: .12em; }
.glass-cursor.is-view.is-pressed .gc-glass { scale: 1.3; }
.glass-cursor.is-pressed .gc-glass { scale: .7; transition-duration: .18s; }
.glass-cursor.is-link.is-pressed .gc-glass { scale: 1.15; }
.glass-cursor:is(.is-view,.is-open).is-pressed .gc-glass { scale: 1.6; }
.glass-cursor.is-text, .glass-cursor.is-hidden { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) { :root { --section-gap: 96px; } }
@media (max-width: 809px) {
  :root { --pad: 20px; --section-gap: 72px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card h3 { font-size: 22px; }
  .svc-list, .svc-card:last-child:nth-child(odd) .svc-list { grid-template-columns: 1fr; }
  .exp-card { flex-direction: column; align-items: flex-start; padding: 22px 20px 22px 56px; gap: 14px; }
  .exp-rail { left: 25px; } .exp-node { left: 19px; }
  .exp-year { font-size: 88px; right: 16px; bottom: -18px; }
  .exp-dot { display: none; }
  .exp-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  [data-project-gallery="list"] { grid-template-columns: 1fr; gap: 48px; }
  [data-project-gallery="list"] .project-media { height: 440px; }
  [data-project-gallery="list"] h3 { font-size: 28px; }
  [data-project-gallery="list"] p { font-size: 18px; }
  .footer-row { flex-direction: column; font-size: 14px; }
  .cta { height: 420px; }
}
@media (max-width: 700px) {
  [data-project-gallery="home"] { gap: 28px; }
  [data-project-gallery="home"] .project-media { aspect-ratio: 1 / 1.05; }
  [data-project-gallery="home"] .project-copy { left: 24px; right: 24px; bottom: 32px; }
  [data-project-gallery="home"] .project-copy h2 { font-size: clamp(20px, 5.5vw, 28px); line-height: 1.18; }
  [data-project-gallery="home"] .project-copy p { font-size: 14px; margin-top: 14px; }
  .contact-page, .projects-page { padding-top: 124px; }
  .contact-top .contact-close { translate: 0 -36px; } /* sits below the fixed header, not under it */
  .contact-form :is(input, textarea, select) { font-size: 16px; } /* under 16px, iPhone zooms the page on focus */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .about-lead .w { opacity: 1; filter: none; translate: none; }
  .cta-portrait, .cta-portrait img { opacity: 1; transform: none; }
  [data-project-gallery="home"] .project-card { position: relative; top: auto; transform: none; }
  .home-project-stack .stack-heading { position: relative; top: auto; }
  [data-project-gallery="list"] .project-card { opacity: 1; translate: none; }
}

/* ---------- Services: video panels (default style; "Classic" in Studio → Layout brings back the glass cards above) ---------- */
.sv-new { --sv-f: 'General Sans', 'Satoshi', system-ui, sans-serif; --sv-ease: cubic-bezier(.16,1,.3,1); --sv-spring: cubic-bezier(.2,.9,.25,1); font-family: var(--sv-f); }
.sv-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: 44px; }
.sv-h { margin: 0; font: 500 clamp(56px, 7vw, 112px)/.86 var(--sv-f); letter-spacing: -.055em; }
.sv-side { display: flex; align-items: center; gap: 28px; padding-bottom: 8px; }
.sv-side p { margin: 0; max-width: 28ch; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.62); }
.sv-cta { position: relative; flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: #000;
  font: 500 15px var(--sv-f); letter-spacing: -.01em; text-decoration: none; overflow: hidden; isolation: isolate; transition: color .5s var(--sv-ease); }
.sv-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-2); border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--sv-ease); }
.sv-cta:hover { color: #fff; } .sv-cta:hover::before { transform: none; }
.sv-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.sv-panels { display: flex; gap: 12px; height: clamp(460px, 64vh, 600px); perspective: 1600px; }
.sv-p { --grow: 1; position: relative; flex: var(--grow) 1 0; min-width: 0; border-radius: 16px; overflow: hidden; cursor: pointer; outline: none; isolation: isolate; background: #0d0d0d;
  transition: flex-grow .95s var(--sv-spring), transform 1.4s var(--sv-ease) var(--delay, 0s); }
.sv-p.on { --grow: 2.7; }
.sv-p::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); pointer-events: none; z-index: 3; }
.sv-p:focus-visible::before { box-shadow: inset 0 0 0 2px #fff; }
.sv-media { position: absolute; inset: 0; z-index: -2; }
.sv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.06) brightness(calc(.7 * var(--b, 1)));
  transform: scale(1.06); transition: transform 1.6s var(--sv-spring), filter 1s var(--sv-ease); }
.sv-p.on .sv-media video { transform: scale(1); filter: saturate(.9) contrast(1.06) brightness(calc(.78 * var(--b, 1))); }
.sv-p:not(.on) .sv-media video { filter: saturate(.35) contrast(1.05) brightness(calc(.5 * var(--b, 1))); }
.sv-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 40%, rgba(0,0,0,.9) 100%); }
.sv-tl { position: absolute; left: 22px; right: 22px; top: 52px; height: 1.5px; background: rgba(255,255,255,.16); z-index: 2; opacity: 0; transition: opacity .5s var(--sv-ease); }
.sv-tl i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--t, 0)); }
.sv-p.on .sv-tl { opacity: 1; transition-delay: .35s; }
.sv-top { position: absolute; left: 22px; right: 22px; top: 22px; display: flex; justify-content: space-between; gap: 12px; font: 500 13px/1 var(--sv-f); color: rgba(255,255,255,.82); z-index: 2; white-space: nowrap; }
.sv-count { color: rgba(255,255,255,.55); transition: opacity .4s var(--sv-ease); }
.sv-p:not(.on) .sv-count { opacity: 0; }
.sv-foot { position: absolute; left: 22px; bottom: 22px; right: 22px; z-index: 2; }
.sv-foot h3 { margin: 0; font: 500 clamp(22px, 1.8vw, 30px)/1.02 var(--sv-f); letter-spacing: -.04em; text-wrap: balance; max-width: 14ch; }
.sv-detail { width: min(560px, 52vw); }
.sv-lede { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.74); max-width: 40ch; }
.sv-detail ul { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font-size: 14.5px; line-height: 1.3; color: rgba(255,255,255,.92); }
.sv-ask { display: inline-flex; margin-top: 20px; height: 40px; align-items: center; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 500 14px var(--sv-f); text-decoration: none; transition: background .35s var(--sv-ease), color .35s var(--sv-ease); }
.sv-ask:hover { background: #fff; color: #000; }
.sv-detail > * { opacity: 0; transform: translateY(10px); transition: opacity .25s var(--sv-ease), transform .4s var(--sv-ease); }
.sv-p.on .sv-detail > * { opacity: 1; transform: none; transition: opacity .6s var(--sv-ease), transform .8s var(--sv-ease); }
.sv-p.on .sv-detail > :nth-child(1) { transition-delay: .32s; } .sv-p.on .sv-detail > :nth-child(2) { transition-delay: .4s; } .sv-p.on .sv-detail > :nth-child(3) { transition-delay: .48s; }
.sv-p:not(.on) .sv-detail { position: absolute; visibility: hidden; transition: visibility 0s .25s; }
/* entrance: dealt up from below the bottom edge, tilted back, straightening as they land */
.sv-panels:not(.in) .sv-p { transform: translateY(62vh) rotateX(38deg) rotate(var(--r0)); }
.sv-panels.settled .sv-p { transition: flex-grow .95s var(--sv-spring); }
@media (prefers-reduced-motion: reduce) { .sv-panels .sv-p { transform: none !important; } .sv-p, .sv-media video, .sv-detail > * { transition: none !important; } }
@media (max-width: 900px) {
  .sv-head { grid-template-columns: 1fr; } .sv-side { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sv-panels { flex-direction: column; height: auto; gap: 10px; }
  .sv-p, .sv-panels:not(.in) .sv-p { flex: none; height: 92px; transform: none; transition: height .8s var(--sv-spring); }
  .sv-p.on, .sv-panels:not(.in) .sv-p.on { height: min(560px, 128vw); }
  .sv-top { top: 18px; } .sv-tl { top: 44px; } .sv-foot { bottom: 18px; }
  .sv-p:not(.on) .sv-foot { bottom: auto; top: 40px; } .sv-p:not(.on) .sv-foot h3 { font-size: 21px; max-width: none; }
  .sv-p:not(.on) .sv-name { opacity: 0; }
  .sv-detail { width: auto; } .sv-detail ul { grid-template-columns: 1fr; }
}

/* ---- contact: email / phone choice  ---- */
.cf-via { gap: 14px; }
.cf-label { font-weight: 700; font-size: 16px; }
.cf-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.cf-seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07)); border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 1px rgba(255,255,255,.18), 0 6px 18px -8px rgba(0,0,0,.8); transition: translate .55s var(--spring); }
.cf-seg[data-v="phone"] .cf-seg-pill { translate: 100% 0; }
.cf-seg label { position: relative; z-index: 1; cursor: pointer; }
.cf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cf-seg span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 999px; font: 500 15px/1 var(--sans); color: rgba(255,255,255,.5); transition: color .35s ease; }
.cf-seg input:checked + span { color: #fff; }
.cf-seg input:focus-visible + span { outline: 2px solid rgba(117,86,242,.8); outline-offset: 2px; }
.cf-swap { display: grid; }
.cf-pane { grid-area: 1 / 1; opacity: 0; translate: 0 8px; pointer-events: none; transition: opacity .3s ease, translate .45s var(--ease); }
.cf-pane.is-on { opacity: 1; translate: none; pointer-events: auto; }
.cf-tel { position: relative; display: flex; align-items: stretch; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); transition: border-color .4s var(--ease), box-shadow .4s var(--ease), background-color .4s var(--ease); }
.cf-tel:hover { border-color: rgba(255,255,255,.2); }
.cf-tel:focus-within { background: rgba(0,0,0,.5); border-color: rgba(117,86,242,.7); box-shadow: inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 4px rgba(78,43,218,.22); }
.cf-cc { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; border: 0; border-right: 1px solid rgba(255,255,255,.1); background: none; color: #fff; font: 500 15px/1 var(--sans); cursor: pointer; border-radius: 12px 0 0 12px; transition: background-color .25s ease; }
.cf-cc:hover, .cf-cc[aria-expanded="true"] { background: rgba(255,255,255,.06); }
.cf-cc svg { opacity: .55; transition: rotate .35s var(--ease); }
.cf-cc[aria-expanded="true"] svg { rotate: 180deg; }
.cf-flag { font-size: 18px; line-height: 1; }
.field .cf-tel input[type=tel] { border: 0; background: none; box-shadow: none; border-radius: 0 12px 12px 0; letter-spacing: .02em; }
.field .cf-tel input[type=tel]:focus { box-shadow: none; background: none; }
.cf-menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: min(340px, 100%); padding: 8px; border-radius: 16px; background: rgba(18,18,24,.92); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); transform-origin: 20% 0; animation: cf-pop .32s var(--ease); }
@keyframes cf-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.field .cf-menu .cf-search { padding: 10px 12px; font-size: 14px; border-radius: 10px; margin-bottom: 6px; }
.cf-menu ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.cf-menu li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: rgba(255,255,255,.85); cursor: pointer; }
.cf-menu li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-menu li .d { font: 500 13px/1 'General Sans', var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .01em; color: rgba(255,255,255,.45); }
.cf-dial { font-family: 'General Sans', var(--sans); font-variant-numeric: tabular-nums; }
.cf-menu li.is-hi { background: rgba(255,255,255,.08); color: #fff; }
.cf-menu li[aria-selected="true"] .d { color: var(--accent-soft); }
.cf-menu li.sep { height: 1px; padding: 0; margin: 6px 4px; background: rgba(255,255,255,.08); pointer-events: none; }
.cf-menu .empty { padding: 12px; font-size: 14px; color: rgba(255,255,255,.45); }

/* ---------- Phone pass (2026-11-29), extended to all screen sizes the same day ---------- */
.mobile-site-menu:focus, .mobile-site-menu:focus-visible { outline: none; }
.mobile-site-menu .mobile-brand:focus:not(:focus-visible) { outline: none; }
/* Scroll cue: lower, set in the site's own face instead of mono */
.hero-scroll { bottom: 18px; gap: 9px; font: 500 10.5px/1 'General Sans', var(--sans); letter-spacing: .32em; padding-left: .32em; color: rgba(255,255,255,.6); }
.hero-scroll i { height: 34px; }
/* Portfolio card: category pill + tags in a clean web sans */
.pf-cat { font: 500 11.5px/1 'General Sans', var(--sans); letter-spacing: .06em; text-transform: none; padding: 7px 12px; }
.pf-tags { font: 400 13px/1.35 'General Sans', var(--sans); letter-spacing: .01em; text-transform: none; margin-top: 8px; color: rgba(255,255,255,.66); }
.pf-tags span + span::before { margin: 0 7px; }
/* Index chip (01 / 17) and duration pill: same glass chip as the category pill, tabular figures */
.pf-num { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 11.5px/1 'General Sans', var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: #fff; }
.pf-num i { font-style: normal; font-weight: 500; color: rgba(255,255,255,.45); }
.pf-num i::before { content: "/"; margin-right: 5px; color: rgba(255,255,255,.3); }
.exp-duration { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; font: 500 12.5px/1 'General Sans', var(--sans); letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: rgba(255,255,255,.82); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
[data-exp="current"] .exp-duration { color: #fff; background: rgba(78,43,218,.22); border-color: rgba(117,86,242,.45); }
.exp-live { display: block; width: 6px; height: 6px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 3px rgba(62,224,143,.18); animation: exp-live 2s ease-in-out infinite; }
@keyframes exp-live { 50% { box-shadow: 0 0 0 5px rgba(62,224,143,0); } }
/* Services: the last panel (Branding) has no timer line; the showreel ends there */
.sv-end .sv-p.on .sv-tl { opacity: 0; }
/* Portrait clips: keep the top of the frame (heads) and crop more from the bottom, under the title */
.pf-media { object-position: 50% 20%; }
@media (max-width: 809px) {
  .hero-scroll { bottom: 14px; font-size: 10px; }
  .hero-scroll i { height: 30px; }
  .pf-cat, .pf-num { font-size: 11px; padding: 7px 11px; }
  .pf-tags { font-size: 12.5px; }
  .exp-duration { font-size: 12px; padding: 6px 11px; }
}
