/* Varanova — creative studio site. Brand: 246-studio/brand/varanova/README.md (palette, type, marks). */
:root {
  --night: #10140F;
  --night-2: #1A1F18;
  --bone: #F3F0E6;
  --bone-2: #E8E4D6;
  --lime: #C8F542;
  --olive: #7E9B2A;
  --grey: #474C41;
  --on-night: rgba(243, 240, 230, .72);
  --on-night-line: rgba(243, 240, 230, .16);
  --on-bone: #474C41;
  --on-bone-line: rgba(16, 20, 15, .14);
  --error-night: #FFB199;
  --error-bone: #A8320C;

  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Unbounded', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-accent: 'Instrument Serif', Georgia, serif;

  --max: 1200px;
  --gutter: clamp(18px, 5vw, 56px);
  --header-h: 72px;
  --r: 24px;
  --r-sm: 14px;
  --shadow: 0 18px 36px -14px rgba(16, 20, 15, .38);
  --shadow-night: 0 18px 40px -12px rgba(0, 0, 0, .6);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: var(--olive) var(--bone-2); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--night);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--lime); color: var(--night); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6.2vw, 5.2rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); line-height: 1.06; letter-spacing: -0.025em; }
h1 em, h2 em, .statement-text em, .footer-line em, .thanks h3 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  font-size: 1.12em; letter-spacing: -0.01em; line-height: 0.9;
}
.hero h1 em { font-size: 1.32em; display: inline-block; }
.night h2 em, .site-footer em { color: var(--lime); }
.lime h2 em, .tile h3 em { color: inherit; }
h2 em { color: inherit; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); position: relative; }
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.night { background: var(--night); color: var(--bone); }
.lime { background: var(--lime); color: var(--night); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; max-width: 36em; color: var(--on-bone); }
.night .lead, .night .muted { color: var(--on-night); }
.lime .lead { color: var(--night); }
.muted { color: var(--on-bone); }
.quiet { color: var(--on-bone); }
.night .quiet { color: var(--on-night); }
.text-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--olive); transition: text-decoration-color .2s; }
.night .text-link { text-decoration-color: var(--lime); }
.text-link:hover { text-decoration-color: currentColor; }

.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--night); color: var(--bone); font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; }
.night :focus-visible { outline-color: var(--lime); }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; border: 2px solid var(--night);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.btn-primary { background: var(--night); color: var(--bone); box-shadow: 0 0 0 var(--night); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(16, 20, 15, .55); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--night); }
.btn-ghost:hover { background: var(--night); color: var(--bone); }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.night .btn-primary { background: var(--lime); color: var(--night); border-color: var(--lime); }
.night .btn-primary:hover { box-shadow: 0 10px 24px -8px rgba(200, 245, 66, .45); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(243, 240, 230, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--on-bone-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-word { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 500; border-radius: 999px; transition: background-color .2s; }
.nav-link:hover { background: var(--bone-2); }
@media (max-width: 760px) {
  .nav-link { display: none; }
  .brand-word { width: 136px; }
}

/* ---------- 3D objects ---------- */
.obj { pointer-events: none; user-select: none; }
@media (prefers-reduced-motion: no-preference) {
  .obj--float { animation: float 8s ease-in-out infinite; }
  .obj--float:nth-child(2n) { animation-duration: 9.5s; animation-delay: -2s; }
  .obj--float:nth-child(3n) { animation-duration: 7s; animation-delay: -4s; }
}
@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -12px; rotate: 2deg; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding-block: clamp(56px, 8vw, 96px); overflow: clip; }
.hero-inner { display: grid; gap: 24px; justify-items: center; text-align: center; z-index: 1; }
.hero-inner h1 { max-width: 12ch; }
.hero-inner .lead { margin-inline: auto; }
.hero-inner .actions { justify-content: center; margin-top: 8px; }
.hero mark { background: none; color: inherit; background-image: linear-gradient(var(--lime), var(--lime)); background-size: 100% .42em; background-position: 0 88%; background-repeat: no-repeat; padding-inline: .06em; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit ellipse { fill: none; stroke: var(--night); stroke-opacity: .18; stroke-width: 1.25; }
@media (max-width: 900px) {
  .hero { align-items: start; }
  .hero-inner { padding-top: 120px; padding-bottom: 120px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .w { display: inline-block; animation: enter .9s var(--ease-out) both; }
  .hero h1 .w:nth-child(2) { animation-delay: .07s; }
  .hero h1 em .w:nth-child(1) { animation-delay: .16s; }
  .hero h1 em .w:nth-child(2) { animation-delay: .23s; }
  [data-enter] > .lead { animation: enter .9s var(--ease-out) .32s both; }
  [data-enter] > .actions { animation: enter .9s var(--ease-out) .4s both; }
  .orbit ellipse { stroke-dasharray: 1; animation: draw 1.8s var(--ease-io) .15s both; }
}
@keyframes enter { from { opacity: .35; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes orbit { to { offset-distance: 100%; } }
@keyframes pop { from { opacity: .35; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.work-card {
  display: grid; height: 100%; border: 2px solid var(--night); border-radius: var(--r); overflow: hidden; background: var(--bone);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bone-2); border-bottom: 2px solid var(--night); }
.work-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.work-card:hover .work-img { transform: scale(1.03); }
.work-img.is-blank { display: block; background: var(--olive); }
.work-text { display: grid; gap: 6px; padding: 18px 20px 22px; align-content: start; }
.work-title { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.work-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--on-bone); }
.work-summary { color: var(--on-bone); font-size: 15.5px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.step { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r); background: var(--bone); border: 2px solid var(--night); }
.step-no { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--grey); }
.step p { color: var(--on-bone); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
/* ---------- why ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 20px; }
.tile { position: relative; display: grid; align-content: end; gap: 8px; padding: 28px; border-radius: var(--r); overflow: hidden; border: 2px solid var(--night); }
.tile h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 14ch; }
.tile p { max-width: 30ch; }
.tile-big { grid-row: span 2; }
.tile-lime { background: var(--lime); }
.tile-night { background: var(--night); color: var(--bone); }
.tile-night p { color: var(--on-night); }
.tile-olive { background: var(--olive); }
.tile-bone { background: var(--bone-2); grid-column: span 2; }
.tile-obj { position: absolute; right: 20px; top: 20px; width: clamp(110px, 14vw, 190px); transition: transform .5s var(--ease-spring); }
.tile-bone .tile-obj { width: clamp(80px, 9vw, 120px); }
.tile:hover .tile-obj { transform: rotate(-8deg) scale(1.05); }
.tile-big .tile-obj { left: 50%; right: auto; top: 28px; translate: -50% 0; width: clamp(140px, 15vw, 210px); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-big { grid-row: span 1; grid-column: span 2; min-height: 400px; }
  .tile-big .tile-obj { top: 28px; width: 170px; }
  .tile-bone { grid-column: span 2; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile-big, .tile-bone { grid-column: span 1; }
  .tile-bone { padding-top: 120px; }
}

/* ---------- form ---------- */
.start-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.start-copy { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.o-start { width: clamp(120px, 14vw, 200px); margin-top: 16px; }
@media (max-width: 899px) { .start-grid { grid-template-columns: 1fr; } .start-copy { position: static; } .o-start { display: none; } }
.form-shell { background: var(--night-2); border: 1.5px solid var(--on-night-line); border-radius: var(--r); padding: clamp(20px, 3.5vw, 40px); }
.request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
@media (max-width: 560px) { .request-form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 700; }
.opt { font-weight: 400; color: var(--on-night); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  font: inherit; font-size: 16px; color: var(--bone); caret-color: var(--lime);
  background: var(--night); border: 1.5px solid rgba(243, 240, 230, .22);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23F3F0E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.field select option { background: var(--night); color: var(--bone); }
.field ::placeholder { color: rgba(243, 240, 230, .5); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(243, 240, 230, .4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 245, 66, .25); }
.field [aria-invalid="true"] { border-color: var(--error-night); }
.field-error { min-height: 22px; font-size: 14px; color: var(--error-night); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 16px; justify-items: start; margin-top: 8px; }
.turnstile { min-height: 65px; }
.form-status { color: var(--error-night); font-size: 15px; }
.form-status:empty { display: none; }
.is-sending .btn-primary { cursor: progress; }
.thanks { display: grid; gap: 16px; justify-items: start; outline: none; }
.thanks h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--bone); border-top: 1.5px solid var(--on-night-line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 40px; }
.brand-lockup { width: 220px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--on-night); transition: color .2s; }
.footer-links a:hover { color: var(--lime); }
.footer-note { font-size: 14px; color: var(--on-night); }

/* ---------- /work/<slug> ---------- */
.case-main { min-height: 60vh; }
.case { padding-block: clamp(32px, 5vw, 56px) clamp(64px, 9vw, 112px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--on-bone); transition: color .2s; }
.back-link svg { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .3s var(--ease-out); }
.back-link:hover { color: var(--night); }
.back-link:hover svg { transform: rotate(180deg) translateX(3px); }
.loading { margin-top: 40px; }
.case-head { display: grid; gap: 24px; margin-top: clamp(24px, 4vw, 40px); max-width: 960px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.case-meta div { display: grid; gap: 2px; }
.case-meta dt { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--on-bone); }
.case-meta dd { margin: 0; font-weight: 700; }
.case-results { margin-top: 40px; padding: 22px 24px; border-radius: var(--r); background: var(--lime); border: 2px solid var(--night); max-width: 760px; display: grid; gap: 6px; }
.case-results h2 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.case-results p { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.3; }
.case-media { display: grid; gap: 24px; margin-top: clamp(40px, 6vw, 64px); }
.media-video { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--night); border: 2px solid var(--night); }
.media-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.media-img { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--bone-2); border: 2px solid var(--night); }
.case-img { width: 100%; }
.social-embed { margin: 0 auto !important; max-width: 540px; width: 100%; }
.media-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; width: 100%; max-width: 540px; padding: 0 22px; border-radius: var(--r); border: 2px solid var(--night); background: var(--bone); font-weight: 700; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.media-link svg { width: 18px; height: 18px; }
.media-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.prose { max-width: 68ch; margin-top: clamp(40px, 6vw, 64px); font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.8em; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.prose h3 { font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .35em; }
.prose a[href] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--olive); }
.prose img { border-radius: var(--r-sm); }
.prose blockquote { margin: 0; padding: 14px 18px; border-radius: var(--r-sm); background: var(--bone-2); color: var(--on-bone); }
.prose code { font-family: var(--font-mono); font-size: .9em; }
.case-missing { display: grid; gap: 20px; margin-top: clamp(24px, 4vw, 40px); }
.case-missing .actions { margin-top: 12px; }
.case-cta { position: relative; padding-block: clamp(64px, 9vw, 112px); overflow: clip; }
.case-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.case-cta-inner { justify-content: flex-start; }
.case-cta .obj { position: absolute; right: var(--gutter); top: calc(50% - 70px); width: 140px; }
@media (max-width: 700px) { .case-cta .obj { display: none; } }

/* ---------- statement (scroll-lit words) ---------- */
.statement { position: relative; padding-block: clamp(96px, 14vw, 180px); overflow: clip; }
.statement-text { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; }
.o-statement { position: absolute; right: 6%; bottom: 12%; width: clamp(120px, 14vw, 220px); }
@media (max-width: 760px) { .o-statement { display: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement-text span { opacity: .18; animation: lit linear both; animation-timeline: view(); }
    .statement-text > span:nth-child(1) { animation-range: entry 40% cover 30%; }
    .statement-text > span:nth-child(2) { animation-range: entry 50% cover 33%; }
    .statement-text > span:nth-child(3) { animation-range: entry 60% cover 36%; }
    .statement-text > span:nth-child(4) { animation-range: entry 70% cover 39%; }
    .statement-text em span:nth-child(1) { animation-range: entry 80% cover 42%; }
    .statement-text em span:nth-child(2) { animation-range: entry 90% cover 45%; }
    .statement-text em span:nth-child(3) { animation-range: entry 100% cover 48%; }
    .statement-text em span:nth-child(4) { animation-range: cover 20% cover 51%; }
  }
}
@keyframes lit { to { opacity: 1; } }

/* ---------- work cursor pill ---------- */
.cursor-pill { position: fixed; left: 0; top: 0; z-index: 60; padding: 10px 18px; border-radius: 999px; background: var(--lime); color: var(--night); font-weight: 700; font-size: 15px; pointer-events: none; opacity: 0; scale: .6; transition: opacity .2s var(--ease-out), scale .25s var(--ease-out); }
.cursor-pill.is-on { opacity: 1; scale: 1; }
@media (hover: hover) and (pointer: fine) { .work-card { cursor: none; } }

/* ---------- footer ---------- */
.footer-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; padding-top: clamp(64px, 9vw, 112px); }
.footer-line { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; }
.footer-word { padding-bottom: 8px; }
.footer-word img { width: 100%; height: auto; opacity: .95; }

/* ---------- orbit of work (hero) ---------- */
.orbit-cards { position: absolute; inset: 0; pointer-events: none; }
.orbit-card { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; backface-visibility: hidden; }
.orbit-card img { height: clamp(120px, 14vw, 210px); width: auto; max-width: none; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(16, 20, 15, .55); }
.hero-inner { position: relative; z-index: 60; }
.hero-inner h1, .hero-inner .lead { text-shadow: 0 0 24px var(--bone), 0 0 2px var(--bone); }
@media (max-width: 700px) { .orbit-card img { height: 108px; } }

/* ---------- scroll cue ---------- */
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 120; display: grid; justify-items: center; width: 44px; height: 44px; }
.scroll-cue::before { content: ""; width: 26px; height: 40px; border: 1.5px solid var(--night); border-radius: 999px; background: var(--bone); }
.scroll-cue-dot { position: absolute; top: 9px; width: 4px; height: 8px; border-radius: 4px; background: var(--night); }
@media (prefers-reduced-motion: no-preference) { .scroll-cue-dot { animation: cue 1.8s var(--ease-io) infinite; } }
@keyframes cue { 0% { translate: 0 0; opacity: 1; } 70% { translate: 0 12px; opacity: 0; } 100% { translate: 0 0; opacity: 0; } }

/* ---------- services pile ---------- */
.pile-section { overflow: clip; }
.pile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pile-copy .lead { margin-top: 16px; }
.service-list { margin-top: clamp(28px, 4vw, 44px); border-top: 1.5px solid var(--on-night-line); }
.service { border-bottom: 1.5px solid var(--on-night-line); }
.service-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 2px; width: 100%; min-height: 76px; padding: 10px 4px; text-align: left; color: var(--bone); }
.service-obj { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; transition: transform .5s var(--ease-out); }
.service-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.15; }
.service-price { grid-column: 2; font-family: var(--font-mono); font-size: 13.5px; color: var(--on-night); }
.service-body { display: none; gap: 12px; padding: 0 4px 22px 72px; }
.service.is-active .service-body { display: grid; animation: body-in .45s var(--ease-out); }
@keyframes body-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.service-blurb { color: var(--on-night); max-width: 44ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-mono); font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--on-night-line); color: var(--bone); }
.service .link-arrow { color: var(--lime); justify-self: start; }
.service.is-active .service-name { color: var(--lime); }
.service.is-active .service-obj { transform: rotate(-8deg) scale(1.12); }
@media (hover: hover) and (pointer: fine) { .service-head:hover .service-obj { transform: rotate(-8deg) scale(1.12); } }
.pile { position: relative; height: clamp(420px, 46vw, 620px); perspective: 1500px; perspective-origin: 40% 40%; }
.pile-card { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d;
  transform: translate(-50%, -50%) translate3d(var(--x, 0), var(--y, 0), var(--z, 0)) rotateY(-30deg) rotateX(8deg) rotateZ(-3deg);
  transition: transform .9s var(--ease-out), opacity .6s var(--ease-out); will-change: transform; }
.pile-card img { display: block; height: clamp(170px, 19vw, 250px); width: auto; max-width: none; border-radius: 12px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .85); outline: 1.5px solid rgba(243, 240, 230, .12); outline-offset: -1.5px; }
.pile-card:not(.is-picked) img { filter: grayscale(1) brightness(.7); }
@media (max-width: 899px) {
  .pile-grid { grid-template-columns: 1fr; }
  .pile { order: -1; height: 340px; }
  .pile-card img { height: 150px; }
  .service.is-active .service-body { padding-left: 4px; }
  .service-head { grid-template-columns: 48px minmax(0, 1fr); row-gap: 2px; }
  .service-obj { grid-row: span 2; width: 48px; height: 48px; }
  .service-price { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .pile-card { transition: none; } .service.is-active .service-body { animation: none; } }

/* ---------- process tunnel ---------- */
.tunnel-section { overflow: clip; padding-bottom: clamp(72px, 9vw, 112px); }
.tunnel-head { margin-inline: auto; text-align: center; justify-items: center; }
.tunnel { position: relative; height: clamp(380px, 42vw, 580px); perspective: 1100px; margin-block: 0 clamp(24px, 3vw, 40px); }
.tunnel-ring { position: absolute; left: 50%; top: 44%; transform-style: preserve-3d; transform: rotateX(-10deg) rotateY(0deg); }
.tunnel-card { position: absolute; left: 0; top: 0; width: clamp(110px, 11vw, 150px); aspect-ratio: 9 / 13; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateY(var(--a)) translateZ(clamp(300px, 34vw, 480px)); }
.tunnel-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; backface-visibility: hidden; }
.tunnel-back { transform: rotateY(180deg); background: var(--night-2); border: 1.5px solid var(--on-night-line); }
@media (prefers-reduced-motion: no-preference) {
  .tunnel-ring { animation: tunnel 48s linear infinite; }
  .tunnel:hover .tunnel-ring { animation-play-state: paused; }
}
@keyframes tunnel { to { transform: rotateX(-10deg) rotateY(-360deg); } }
.night .step { background: var(--night-2); border-color: var(--on-night-line); color: var(--bone); }
.night .step p { color: var(--on-night); }
.night .step-no { color: var(--lime); }

/* ---------- work + player ---------- */
.work-media { position: relative; }
.work-play { position: absolute; left: 16px; bottom: 16px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--night); transition: transform .3s var(--ease-out); }
.work-play svg { width: 20px; height: 20px; margin-left: 3px; }
.work-card:hover .work-play { transform: scale(1.08); }
.player { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r); background: var(--night); color: var(--bone); overflow: hidden; }
.player::backdrop { background: rgba(16, 20, 15, .78); backdrop-filter: blur(6px); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-bar { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 22px; }
.player-title { flex: 1; font-weight: 700; }
.player .link-arrow { color: var(--lime); }
.player-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night-2); }
.player-close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .player[open] { animation: player-in .35s var(--ease-out); }
}
@keyframes player-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- objects around the page ---------- */
.tile-obj-sm { width: clamp(56px, 5vw, 76px) !important; right: 18px; top: 16px; }
.o-statement { width: clamp(120px, 13vw, 200px); }
.footer-top { position: relative; }
.o-planet { position: absolute; right: clamp(150px, 22vw, 320px); top: 28px; width: clamp(80px, 9vw, 130px); }
@media (max-width: 760px) { .o-planet { display: none; } }

/* ---------- footer icons ---------- */
.footer-icons { gap: 10px; }
.footer-icons a { display: grid; place-items: center; width: 48px; height: 48px; min-height: 48px; border-radius: 50%; border: 1.5px solid var(--on-night-line); color: var(--bone); transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out); }
.footer-icons a:hover { background: var(--lime); border-color: var(--lime); color: var(--night); transform: translateY(-2px); }
.footer-icons a:active { transform: scale(.96); }
.footer-icons svg { width: 22px; height: 22px; }

/* ---------- pricing (Ayyub's services-and-pricing.md, 1 Dec 2026) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.price-block { padding: clamp(24px, 3vw, 36px); border: 2px solid var(--night); border-radius: var(--r); }
.price-block-feed { background: var(--lime); }
.price-block h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.price-rows { list-style: none; margin: 0; padding: 0; }
.price-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; padding-block: 14px; border-top: 1px solid var(--on-bone-line); }
.pr-name { font-weight: 700; }
.pr-what { grid-column: 1; color: var(--on-bone); font-size: .95rem; }
.price-block-feed .pr-what, .price-block-feed .price-note { color: var(--night); }
.pr-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; font-family: var(--font-mono); font-size: .95rem; font-variant-numeric: tabular-nums; }
.price-note { margin: 14px 0 0; font-size: .95rem; color: var(--on-bone); }
.price-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(28px, 4vw, 44px); }
.price-foot p { margin: 0; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
@media (max-width: 760px) {
  .price-grid { grid-template-columns: 1fr; }
  .pr-price { max-width: 14ch; }
}
