/* Layout concept: left-aligned editorial column on a cool mineral ground. The name is a field of patches; the work
   is shown as big case-study cards with real-looking UI that slide sideways as you scroll.
   One family (Archivo) used across its width axis: expanded for display, normal for reading.
   Viridis (the colourmap of attention maps) appears only where something is "being looked at". */
:root {
  --paper: #E3E8E6;
  --paper-2: #D5DCD9;
  --ink: #13232A;
  --ink-soft: #4C5E65;
  --rule: #B9C4C1;
  --accent: #136B67;
  --v0: #440154; --v1: #3B528B; --v2: #21918C; --v3: #5EC962; --v4: #FDE725;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --step-3: clamp(2.75rem, 1.4rem + 5.4vw, 5.75rem);
  --space: clamp(4.5rem, 3rem + 6vw, 9rem);
  --max: 1320px;
  --header-h: 64px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg { max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--v4); color: var(--ink); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Split text helpers (built by main.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }
.ch { display: inline-block; will-change: transform; }

/* Scroll progress */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 40; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, transform .45s var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header.is-hidden { transform: translateY(-100%); }
.bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { font-weight: 800; font-variation-settings: "wdth" 125; text-decoration: none; letter-spacing: -0.01em; font-size: 1.05rem; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; color: var(--ink-soft); font-size: var(--step--1); padding-block: 4px; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* Buttons: fill wipes up on hover */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font: inherit; font-weight: 600; font-size: var(--step--1);
  text-decoration: none; cursor: pointer;
  transition: color .35s var(--ease-out), border-color .35s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .5s var(--ease-out), border-radius .5s var(--ease-out); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn:hover { border-color: var(--accent); }
.btn-small { min-height: 40px; padding: 0 16px; }
.btn-ghost { background: transparent; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-wa { background: #0B5C4A; border-color: #0B5C4A; color: #fff; --accent: #128C5A; gap: 9px; }
.btn-wa svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.wa-note { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: var(--step--1); }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #25D366; flex-shrink: 0; }

/* Hero */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); }
.hero-stage { position: relative; }
.hero-name {
  font-weight: 800; font-variation-settings: "wdth" 125; font-stretch: 125%;
  text-transform: uppercase; font-size: clamp(2.4rem, 15.2vw, 13.6rem); /* "MAYANK" is ~5.5em wide, so 15.2vw always fits the column */
  line-height: 0.86; letter-spacing: -0.02em; margin-left: -0.04em;
  transition: opacity .4s;
}
.hero-name span { display: block; }
/* Set by the inline head script when WebGL works: the tile canvas draws the name instead. */
.hero-webgl-pending .hero-name { opacity: 0; }
.hero-canvas { position: absolute; left: 0; top: 0; display: block; opacity: 0; pointer-events: none; }
.hero-stage.is-webgl .hero-name { opacity: 0; }
.hero-stage.is-webgl .hero-canvas { opacity: 1; pointer-events: auto; }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end;
  margin-top: clamp(1.75rem, 1rem + 2.5vw, 3rem); padding-top: 24px; position: relative;
}
.hero-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); transform-origin: 0 50%; }
.hero-lede { font-size: var(--step-1); line-height: 1.4; max-width: 36ch; }
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.status { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: var(--step--1); }
.status-dot { width: 9px; height: 9px; background: var(--v3); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--v3) 55%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--v3) 0%, transparent); } }
.meta-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.meta-verified { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: var(--step--1); }
.meta-tech { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: var(--step--1); }
.mv-check { width: 16px; height: 16px; border-radius: 50%; background: #1877F2; position: relative; flex-shrink: 0; }
.mv-check::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.mt-mark { width: 16px; height: 16px; border-radius: 4px; background: #0866FF; color: #fff; display: grid; place-items: center; font-size: 13px; line-height: 1; font-weight: 700; flex-shrink: 0; }
.site-footer .meta-verified, .site-footer .meta-tech { color: inherit; }
.hero-hint { margin-top: 18px; color: var(--ink-soft); font-size: var(--step--1); }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--ink); padding-block: 18px; background: var(--paper); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-row { display: flex; align-items: center; gap: 36px; padding-right: 36px; flex-shrink: 0; }
.marquee-row span { font-size: clamp(1.5rem, 1rem + 2.4vw, 3rem); font-weight: 700; font-variation-settings: "wdth" 112; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; line-height: 1; }
.marquee-row span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.2px var(--ink); }
.marquee-row i { width: 14px; height: 14px; background: var(--v2); flex-shrink: 0; }
.marquee-row i:nth-of-type(3n+2) { background: var(--v3); }
.marquee-row i:nth-of-type(3n) { background: var(--v4); }

/* Work: horizontal on desktop */
.work { position: relative; background: var(--paper); }
.work-pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.work-track { display: flex; gap: 32px; align-items: stretch; width: max-content; padding-left: max(20px, calc((100vw - var(--max)) / 2 + 20px)); padding-right: 8vw; will-change: transform; }
.work-intro { width: min(420px, 34vw); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-right: 24px; }
.work-intro h2 { font-size: clamp(2.3rem, 1.1rem + 2.9vw, 3.9rem); font-weight: 800; font-variation-settings: "wdth" 118; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.92; }
.work-intro p { color: var(--ink-soft); max-width: 38ch; }
.work-count { font-weight: 700; color: var(--ink) !important; font-variant-numeric: tabular-nums; }
.work-bar { position: absolute; left: max(20px, calc((100vw - var(--max)) / 2 + 20px)); right: max(20px, calc((100vw - var(--max)) / 2 + 20px)); bottom: 28px; height: 2px; background: var(--rule); }
.work-bar span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }

.case { width: min(64vw, 820px); display: flex; flex-direction: column; gap: 18px; flex-shrink: 0; }
.case-visual {
  position: relative; height: min(62vh, 560px); min-height: 380px; overflow: hidden;
  background: var(--case-bg); color: var(--case-fg); border-radius: 20px;
  display: grid; place-items: center;
}
.case-visual::before { /* faint patch grid behind every mockup */
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(var(--case-fg) 1px, transparent 1px), linear-gradient(90deg, var(--case-fg) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.case-meta { display: grid; gap: 10px; }
.case-head { display: flex; align-items: baseline; gap: 14px; }
.case-head h3 { font-size: var(--step-2); font-weight: 800; font-variation-settings: "wdth" 115; letter-spacing: -0.015em; }
.case-tag { font-size: var(--step--1); border: 1px solid var(--rule); border-radius: 999px; padding: 1px 10px; color: var(--ink-soft); }
.case-what { color: var(--ink-soft); max-width: 60ch; }
.case-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.case-roles li { font-size: var(--step--1); background: var(--paper-2); padding: 3px 10px; border-radius: 999px; }

/* --- UI mockups --- */
.phone { position: relative; z-index: 1; width: 236px; height: 480px; border-radius: 36px; background: #0A0F12; padding: 8px; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: #0A0F12; border-radius: 12px; z-index: 3; }
.screen { position: relative; height: 100%; border-radius: 29px; overflow: hidden; background: #F7F8F6; color: #13232A; font-size: 11px; line-height: 1.35; }
.screen b { font-weight: 700; }
.screen small { display: block; color: #6A7A80; font-size: 9.5px; }
.menu-row { display: flex; justify-content: space-between; gap: 10px; }
.ui-btn { display: grid; place-items: center; height: 34px; border-radius: 10px; background: #13232A; color: #fff; font-weight: 700; font-size: 11px; }
.ui-btn.wa { background: #1FA855; }

.phone, .browser, .appshot { zoom: var(--fit, 1); } /* --fit is set per card by main.js so a mockup never overflows a short card. zoom, not scale: GSAP owns transform/scale on these */

.float {
  position: absolute; z-index: 2; background: #fff; color: #13232A; border-radius: 14px; padding: 10px 14px;
  font-size: 11px; line-height: 1.35; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
  animation: bob 5s ease-in-out infinite;
}
.float small { display: block; color: #6A7A80; font-size: 9.5px; }
.float b { display: block; font-size: 13px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* chat */
.chat { background: #E8E2D8; display: flex; flex-direction: column; }
.c-top { display: flex; gap: 8px; align-items: center; padding: 34px 12px 10px; background: #0F4A45; color: #fff; }
.c-top small { color: #BFE3DC; }
.c-av { width: 28px; height: 28px; border-radius: 50%; background: #FDE725; }
.c-body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.bub { max-width: 82%; padding: 7px 9px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.bub.me { align-self: flex-end; background: #D3F5C9; }
.bub.bot { align-self: flex-start; display: grid; gap: 4px; }
.bub-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 2px; }
.bub-btns span { text-align: center; color: #0F7C6E; font-weight: 700; border-top: 1px solid #E3E3E3; padding-top: 5px; }
.c-input { padding: 8px 10px 14px; }
.c-input span { display: block; height: 30px; border-radius: 999px; background: #fff; }
.chat.temple { background: #ECE5DD; }
.chat.temple .c-top { background: #0B5C4A; }
.c-av.temple { background: #E87722; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.chat.temple .bub.me { background: #D9FDD3; }
.bub-choices { display: flex; gap: 6px; padding: 0; background: transparent; box-shadow: none; }
.bub-choices span { background: #fff; border: 1px solid #CFE7DA; color: #0B5C4A; font-weight: 700; border-radius: 999px; padding: 4px 10px; font-size: 10px; }
.f-inbox { left: 5%; top: 20%; width: 170px; background: #D9FDD3; }

/* real project screenshots */
.browser { position: relative; z-index: 1; width: min(520px, 86%); border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .6); color: #13232A; font-size: 11px; }
.b-top { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: #EDF0EE; }
.b-top i { width: 9px; height: 9px; border-radius: 50%; background: #C9D2CF; }
.b-top span { margin-left: 12px; background: #fff; border-radius: 6px; padding: 2px 10px; color: #6A7A80; font-size: 10px; }
.browser.shot { width: min(560px, 88%); background: #0F1115; }
.shot-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.f-crm { right: 6%; top: 14%; width: 180px; }
.f-order { right: 6%; bottom: 12%; width: 160px; }
.appshot { position: relative; z-index: 1; width: 258px; aspect-ratio: 712 / 1248; border-radius: 30px; overflow: hidden; background: #FBF1E6; box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .65), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.appshot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.f-mentor { left: 6%; top: 14%; width: 170px; }
.f-admin { right: 6%; bottom: 12%; width: 160px; }

/* instagram automation flow */
.flow-browser { width: min(500px, 88%); }
.flow { padding: 16px; }
.flow-head { display: flex; align-items: center; justify-content: space-between; }
.flow-head b { font-size: 15px; font-weight: 800; }
.flow-live { font-size: 9px; font-weight: 700; color: #1F7A4D; background: #DCF5E6; padding: 2px 8px; border-radius: 999px; }
.flow-sub { color: #6A7A80; font-size: 10px; margin-top: 2px; }
.flow-node { display: flex; align-items: center; gap: 9px; background: #F6F2FA; border: 1px solid #E4D8F0; border-radius: 10px; padding: 8px 10px; margin-top: 10px; }
.flow-node b { display: block; font-size: 11px; }
.flow-node small { display: block; color: #6A7A80; font-size: 9.5px; }
.flow-ic { width: 26px; height: 26px; border-radius: 8px; background: #2B1145; color: #fff; display: grid; place-items: center; font-size: 9px; font-weight: 800; flex-shrink: 0; }
.flow-line { width: 2px; height: 10px; background: #D8C7E8; margin-left: 22px; }
.flow-stats { display: flex; justify-content: space-between; gap: 8px; background: #2B1145; color: #fff; border-radius: 10px; padding: 10px 12px; margin-top: 14px; }
.flow-stats div { display: grid; gap: 1px; }
.flow-stats b { font-size: 14px; }
.flow-stats small { color: #CBB6DE; font-size: 9px; }
.f-ig { right: 5%; top: 18%; width: 190px; }

.case-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; font-size: var(--step--1); font-weight: 700; color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out); }
.case-link span { transition: transform .3s var(--ease-out); }
.case-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.case-link:hover span { transform: translate(2px, -2px); }

/* Sections */
.section { padding-block: var(--space); position: relative; }
.section-alt { background: var(--paper-2); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); max-width: 60ch; }
.section-head h2 { font-size: var(--step-3); font-weight: 800; font-variation-settings: "wdth" 118; letter-spacing: -0.02em; text-transform: uppercase; line-height: 0.92; }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.4; max-width: 46ch; }

/* Services: dark fill rises on hover */
.services-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.sticky-head { position: sticky; top: calc(var(--header-h) + 32px); container-type: inline-size; }
.sticky-head h2 { font-size: min(var(--step-3), 15.5cqi); } /* "SERVICES" is ~6.1em wide; keep it inside its column */
.services { border-top: 1px solid var(--ink); }
.service { position: relative; overflow: hidden; isolation: isolate; padding: 30px 18px; border-bottom: 1px solid var(--ink); display: grid; gap: 10px; transition: color .45s var(--ease-out); }
.service::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease-out); }
.service h3 { font-size: var(--step-2); font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -0.015em; line-height: 1.1; transition: transform .55s var(--ease-out); }
.service p { color: var(--ink-soft); max-width: 52ch; transition: color .45s; }
@media (hover: hover) and (pointer: fine) {
  .service:hover { color: var(--paper); }
  .service:hover::before { transform: scaleY(1); }
  .service:hover h3 { transform: translateX(14px); }
  .service:hover p { color: color-mix(in srgb, var(--paper) 75%, var(--ink)); }
}

/* Process: line fills as you scroll */
.process { position: relative; }
.process-line { position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--rule); }
.process-line span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--paper); border: 2px solid var(--rule); color: var(--ink-soft);
  font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.1rem;
  transition: background .4s, border-color .4s, color .4s;
}
.steps li.is-on::before { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.steps h3 { font-size: var(--step-1); font-weight: 700; margin-top: 6px; }
.steps p { color: var(--ink-soft); }

/* Contact */
.contact { padding-block: var(--space); background: var(--ink); color: var(--paper); overflow: hidden; }
.contact-title { font-size: clamp(2.6rem, 1rem + 7vw, 8rem); font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.9; max-width: 14ch; }
.contact-title .ch { transition: color .3s; }
.contact-title .ch:hover { color: var(--v4); }
.contact-row { display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: space-between; align-items: end; margin-top: clamp(2rem, 1rem + 4vw, 4rem); }
.email-block { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; min-width: 0; }
.email { font-size: var(--step-2); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--v3); overflow-wrap: anywhere; transition: color .3s; }
.email:hover { color: var(--v4); }
.contact .btn-ghost { color: var(--paper); border-color: var(--paper); }
.contact .btn-ghost::before { background: var(--paper); }
.contact .btn-ghost:hover { color: var(--ink); border-color: var(--paper); }
.contact :focus-visible { outline-color: var(--v4); }
.copy-status { color: var(--v3); font-size: var(--step--1); min-width: 6ch; }
.clock { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); font-variant-numeric: tabular-nums; }
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--paper) 60%, var(--ink)); border-top: 1px solid color-mix(in srgb, var(--paper) 15%, var(--ink)); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; font-size: var(--step--1); }

/* Intro curtain of tiles (created by main.js) */
.curtain { position: fixed; inset: 0; z-index: 100; display: grid; pointer-events: none; }
.curtain i { background: var(--ink); }

/* Custom cursor (desktop only, enabled by main.js) */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor canvas { cursor: 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(--ink); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid var(--ink);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), border-radius .35s var(--ease-out), background .35s, border-color .35s;
  display: grid; place-items: center; color: var(--paper); font-size: 12px; font-weight: 700;
}
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--v2) 30%, transparent); border-color: var(--v2); }
.cursor.is-patch .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 3px; border-color: var(--v4); background: color-mix(in srgb, var(--v4) 25%, transparent); }
.cursor.is-case .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ink); border-color: var(--ink); }
.cursor.is-case .cursor-ring::after { content: "Scroll"; }
.cursor.on-dark .cursor-dot { background: var(--paper); }
.cursor.on-dark .cursor-ring { border-color: var(--paper); }

/* Responsive */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .sticky-head { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps li { position: relative; padding-left: 70px; min-height: 48px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .process-line { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process-line span { transform-origin: 50% 0; transform: scaleY(0); }
}
/* Work is a vertical list unless main.js turns on horizontal scrolling (wide screens, motion allowed) */
html:not(.hscroll) .work-pin { height: auto; overflow: visible; padding-block: var(--space); }
html:not(.hscroll) .work-track { width: auto; flex-direction: column; gap: 56px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); max-width: var(--max); margin-inline: auto; }
html:not(.hscroll) .work-intro { width: auto; padding-right: 0; }
html:not(.hscroll) .work-count, html:not(.hscroll) .work-bar { display: none; }
html:not(.hscroll) .case { width: 100%; }
html:not(.hscroll) .case-visual { height: 460px; min-height: 0; }
@media (max-width: 640px) {
  .nav { display: none; }
  .bar { justify-content: space-between; gap: 12px; }
  .brand { font-size: 0.95rem; white-space: nowrap; }
  .btn-small { padding: 0 14px; white-space: nowrap; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .case-visual { height: 440px; }
  .case-visual .float { display: none; } /* real screenshots stay readable without cards on top */
  .case-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .email { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
