/* ============================================================
   SCALE MEDIA® — scalemedia.pro  (v2 · software studio)
   Bone paper · deep forest · acid lime
   Fraunces / Archivo / Space Mono — refined scale
   Visual language: designed UI artifacts, no photography
   ============================================================ */

:root {
  --paper: #f2eee4;
  --paper-2: #e9e2d2;
  --card: #fbf8f0;
  --ink: #17140b;
  --ink-soft: #5d5643;
  --line: rgba(23, 20, 11, 0.15);
  --green: #0d2b1f;
  --green-2: #081d15;
  --green-3: #0b241a;
  --cream: #efead9;
  --cream-soft: rgba(239, 234, 217, 0.66);
  --line-dark: rgba(239, 234, 217, 0.16);
  --acid: #c6ef4a;
  --acid-deep: #8fb821;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --radius: 14px;
  --container: min(1180px, 92vw);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--acid); color: var(--green-2); }
:focus-visible { outline: 2px solid var(--acid-deep); outline-offset: 3px; border-radius: 2px; }
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

.container { width: var(--container); margin-inline: auto; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 400; background: var(--green); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-family: var(--font-mono); font-size: 12px; transition: top 0.3s var(--ease); }
.skip-link:focus { top: 12px; }

/* ---------- grain ---------- */
#grain { position: fixed; inset: -100%; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.6s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-5%,-2%)} 80%{transform:translate(4%,4%)} 100%{transform:translate(0,0)} }
@media (prefers-reduced-motion: reduce) { #grain { animation: none; } }

/* ---------- cursor ---------- */
#cursor-dot, #cursor-ring { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; display: none; }
body.has-cursor #cursor-dot, body.has-cursor #cursor-ring { display: block; }
#cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #fff; mix-blend-mode: difference; }
#cursor-ring { width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1px solid #fff; mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background-color .35s; }
#cursor-ring.is-hover { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(255,255,255,.12); }

/* ---------- preloader ---------- */
#preloader { position: fixed; inset: 0; z-index: 250; background: var(--green-2); display: flex; align-items: center; justify-content: center; transition: transform .8s var(--ease-io); }
#preloader.done { transform: translateY(-101%); }
.pre-inner { text-align: center; color: var(--cream); }
.pre-mark { width: 36px; height: 36px; margin: 0 auto 14px; animation: preSpin 2.2s var(--ease) infinite; }
@keyframes preSpin { 0%{transform:rotate(0) scale(1)} 50%{transform:rotate(180deg) scale(.82)} 100%{transform:rotate(360deg) scale(1)} }
.pre-word { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 3vw, 1.8rem); letter-spacing: .02em; overflow: hidden; }
.pre-word span { display: inline-block; transform: translateY(110%); animation: preUp .8s var(--ease) forwards; }
@keyframes preUp { to { transform: translateY(0); } }
.pre-count { position: absolute; right: 5vw; bottom: 4vh; font-family: var(--font-mono); font-size: 12px; color: var(--acid); letter-spacing: .14em; }
.pre-tag { position: absolute; left: 5vw; bottom: 4vh; font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; color: var(--cream-soft); text-transform: uppercase; }

/* ---------- veil ---------- */

/* ---------- nav ---------- */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: var(--nav-h); display: flex; align-items: center; border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s, backdrop-filter .4s; }
#nav.scrolled { background: rgba(242, 238, 228, .86); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { width: var(--container); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; }
.brand svg { width: 26px; height: 26px; transition: transform .6s var(--ease); }
.brand:hover svg { transform: rotate(180deg); }
.brand em { font-style: normal; font-family: var(--font-mono); font-size: .62em; vertical-align: super; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-size: .82rem; font-weight: 500; letter-spacing: .04em; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: flex; align-items: center; gap: .9rem; }
.clock-chip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink-soft); white-space: nowrap; }
#menu-btn { display: none; width: 44px; height: 44px; position: relative; z-index: 220; }
#menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
#menu-btn span:nth-child(1) { top: 17px; } #menu-btn span:nth-child(2) { top: 26px; }
body.menu-open #menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open #menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
#mobile-menu { position: fixed; inset: 0; z-index: 210; background: var(--green-2); color: var(--cream); display: flex; flex-direction: column; justify-content: center; padding: 0 8vw; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io); visibility: hidden; }
body.menu-open #mobile-menu { clip-path: inset(0 0 0% 0); visibility: visible; }
#mobile-menu a.mm-link { font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.8rem); font-weight: 500; padding: .35em 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: baseline; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
#mobile-menu a.mm-link i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--acid); }
body.menu-open #mobile-menu a.mm-link { opacity: 1; transform: none; }
body.menu-open #mobile-menu a.mm-link:nth-child(2) { transition-delay: .1s; }
body.menu-open #mobile-menu a.mm-link:nth-child(3) { transition-delay: .16s; }
body.menu-open #mobile-menu a.mm-link:nth-child(4) { transition-delay: .22s; }
#mobile-menu .mm-foot { margin-top: 2rem; font-family: var(--font-mono); font-size: 11px; color: var(--cream-soft); letter-spacing: .12em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.45rem; border-radius: 999px; font-weight: 600; font-size: .85rem; letter-spacing: .02em; border: 1px solid var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, color .35s, border-color .35s; }
.btn .arr { transition: transform .35s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn:hover { transform: translateY(-2px); }
.btn-acid { background: var(--acid); border-color: var(--acid); color: var(--green-2); }
.btn-acid:hover { box-shadow: 0 12px 30px rgba(159, 206, 34, .3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { color: var(--cream); border-color: var(--line-dark); }
.btn-ghost.on-dark:hover { border-color: var(--cream); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.eyebrow::before { content: "✦"; color: var(--acid-deep); font-size: .85rem; }
.on-dark .eyebrow { color: rgba(239, 234, 217, .82); }
.on-dark .eyebrow::before { color: var(--acid); }
.h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -0.015em; }
.h2 em { font-style: italic; color: var(--green); }
.on-dark .h2 em { color: var(--acid); }
.lede { font-size: clamp(.95rem, 1.2vw, 1.08rem); color: var(--ink-soft); max-width: 54ch; }
.on-dark .lede { color: rgba(239, 234, 217, .82); }

/* ---------- reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.lines .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.lines .line > span { display: block; transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.lines.is-in .line > span { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal], .lines .line > span { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* ---------- hero ---------- */
.hero { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 5vh); padding-bottom: 7vh; position: relative; z-index: 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero-eyebrow { margin-bottom: 1.4rem; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1.0; letter-spacing: -0.022em; text-transform: uppercase; }
.hero h1 .accent { font-style: italic; text-transform: none; color: var(--green); position: relative; white-space: nowrap; }
.hero h1 .accent::after { content: ""; position: absolute; left: -1%; right: -1%; bottom: .06em; height: .14em; background: var(--acid); z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .8s; }
body.loaded .hero h1 .accent::after { transform: scaleX(1); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.8rem; margin-top: clamp(1.8rem, 4vh, 2.8rem); }
.hero-lede { max-width: 46ch; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-meta { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.hero-meta .chip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; color: var(--ink-soft); display: inline-flex; gap: .6em; align-items: center; }
.hero-meta .chip b { color: var(--green); font-weight: 700; }
.hero-meta .chip .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--acid-deep); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.55} }
.scroll-cue { position: absolute; left: 4vw; bottom: 3vh; display: flex; align-items: center; gap: .8rem; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .3em; color: var(--ink-soft); }
.scroll-cue::after { content: ""; width: 46px; height: 1px; background: var(--ink-soft); transform-origin: left; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%{transform:scaleX(0)} 55%{transform:scaleX(1)} 100%{transform:scaleX(1);opacity:0} }

/* ---------- terminal (hero graphic) ---------- */
.term { width: 100%; max-width: 430px; justify-self: end; background: var(--green-3); border: 1px solid #1e3a2b; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -35px rgba(8, 29, 21, .55); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0a2018; border-bottom: 1px solid #1e3a2b; }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #23483a; }
.term-bar i:first-child { background: #35604a; }
.term-bar span { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: #5b7a68; }
.term-body { padding: 16px 18px 18px; font-family: var(--font-mono); font-size: 12px; line-height: 2.05; color: #cfe3c6; min-height: 172px; }
.term-body .p { color: var(--acid); }
.term-body .ok { color: var(--acid); }
.term-body .dim { color: #6d8a77; }
.term-caret { display: inline-block; width: 7px; height: 12px; background: var(--acid); vertical-align: -2px; animation: caret .9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); }
.marquee-acid { background: var(--acid); border-block: none; color: var(--green-2); }
.marquee-track { display: flex; align-items: center; gap: 2.6rem; width: max-content; padding: .85rem 0; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(.95rem, 1.7vw, 1.25rem); font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: 2.6rem; }
.marquee-track span i { font-style: italic; }
.marquee-track .star { font-style: normal; font-size: .8em; }
.marquee-mono .marquee-track { animation-duration: 44s; }
.marquee-mono span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- sections ---------- */
.section-pad { padding-block: clamp(5rem, 10vw, 8.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.4rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head .eyebrow { display: flex; margin-bottom: .9rem; }

/* ---------- services ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 56px 1.2fr 1fr 40px; align-items: center; gap: 1.4rem; padding: 1.7rem 1.1rem; border-bottom: 1px solid var(--line); position: relative; isolation: isolate; transition: color .45s var(--ease); }
.svc-row::before { content: ""; position: absolute; inset: 0; background: var(--green); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-io); }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row:hover { color: var(--cream); }
.svc-num { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-soft); transition: color .45s; }
.svc-row:hover .svc-num { color: var(--acid); }
.svc-title { font-family: var(--font-display); font-size: clamp(1.2rem, 2.1vw, 1.65rem); font-weight: 500; }
.svc-desc { font-size: .86rem; color: var(--ink-soft); transition: color .45s; max-width: 46ch; }
.svc-row:hover .svc-desc { color: var(--cream-soft); }
.svc-tags { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; }
.svc-tags li { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; transition: border-color .45s, color .45s; }
.svc-row:hover .svc-tags li { border-color: var(--line-dark); color: var(--cream-soft); }
.svc-arr { font-size: 1.15rem; justify-self: end; transition: transform .45s var(--ease), color .45s; }
.svc-row:hover .svc-arr { transform: translate(4px, -4px) rotate(45deg); color: var(--acid); }

/* ---------- work cards + artifacts ---------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(4rem, 8vw, 7rem) clamp(2rem, 4vw, 4rem); }
#work { padding-bottom: clamp(6rem, 12vw, 10rem); }
.work-card { display: block; position: relative; }
.work-card:nth-child(even) { margin-top: clamp(2.5rem, 6vw, 5rem); }
.wc-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.poster { position: relative; width: 100%; height: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; padding: clamp(1.2rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; isolation: isolate; transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .8s var(--ease); }
.wc-media .poster { aspect-ratio: auto; }
.work-card:hover .poster { transform: translateY(-4px); box-shadow: 0 30px 70px -35px rgba(23, 20, 11, .4); }
.poster::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.pat-dots::before { background-image: radial-gradient(currentColor 1px, transparent 1.4px); background-size: 18px 18px; opacity: .13; }
.pat-stripes::before { background-image: repeating-linear-gradient(45deg, currentColor 0 1px, transparent 1px 14px); opacity: .11; }
.pat-rings::before { background-image: repeating-radial-gradient(circle at 85% 15%, currentColor 0 1px, transparent 1px 26px); opacity: .15; }
.pat-grid::before { background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 26px 26px; opacity: .09; }
.p-green { background: var(--green); color: var(--cream); }
.p-ink { background: #17140c; color: var(--cream); }
.p-acid { background: var(--acid); color: var(--green-2); }
.p-bone { background: var(--paper-2); color: var(--ink); }
.po-top { display: flex; justify-content: space-between; gap: .8rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .72; }
.po-title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.02; letter-spacing: -0.01em; }
.po-title em { color: inherit; }
.poster.big { aspect-ratio: 16 / 8; padding: clamp(1.6rem, 3vw, 2.4rem); }
.poster.big .po-title { font-size: clamp(2.4rem, 6vw, 5rem); }
.po-bottom { display: flex; justify-content: space-between; align-items: center; }
.po-cat { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 6px 13px; opacity: .85; }
.po-arr { font-size: 1.35rem; transition: transform .45s var(--ease); }
.work-card:hover .po-arr { transform: translate(4px, -4px); }
.po-star { position: absolute; right: -10%; bottom: -16%; width: 52%; opacity: .12; transition: transform 1s var(--ease); pointer-events: none; }
.work-card:hover .po-star { transform: rotate(45deg); }
.wc-body { padding-top: 1.05rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.wc-title a { color: inherit; }
.wc-actions { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; margin-top: .2rem; }
.live-pill { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; color: var(--green); background: var(--card); transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--ease); }
.live-pill:hover { background: var(--green); border-color: var(--green); color: var(--acid); transform: translateY(-2px); }
.wc-title { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; position: relative; display: inline-block; }
.wc-title::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%; background: var(--acid-deep); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.work-card:hover .wc-title::after { transform: scaleX(1); transform-origin: left; }
.wc-sub { color: var(--ink-soft); font-size: .86rem; margin-top: .3rem; max-width: 44ch; }
.wc-arr { font-size: 1.2rem; transition: transform .45s var(--ease); flex-shrink: 0; margin-top: .2rem; }
.work-card:hover .wc-arr { transform: translate(5px, -5px); color: var(--green); }
.work-card.hide { display: none; }

/* ---------- artifact system (designed UI graphics) ---------- */
.artifact { --acc: var(--acid); position: relative; width: 100%; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, #fcfaf3, #ebe4d2); padding: clamp(12px, 1.8vw, 20px); overflow: hidden; box-shadow: 0 26px 60px -34px rgba(23, 20, 11, .35); transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .8s var(--ease); }
.artifact:hover { transform: translateY(-4px); box-shadow: 0 36px 80px -38px rgba(23, 20, 11, .45); }
.win { flex: 1; min-width: 0; width: 100%; background: #fffdf7; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge-row li { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); background: #fffdf7; border-radius: 999px; padding: 4px 10px; color: var(--ink-soft); }
.chat { width: 34%; min-width: 118px; border-left: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #faf6ec; }
.chat-t { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--acid-deep); }
.chat i { height: 8px; border-radius: 4px; background: #e7e0cd; width: 86%; }
.chat i.me { align-self: flex-end; width: 62%; background: var(--acc); opacity: .8; }
.chat .ok { margin-top: auto; font-family: var(--font-mono); font-size: 8.5px; color: var(--acid-deep); }
.out-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.doc { flex: 1; border: 1px solid var(--line); border-radius: 8px; background: #fdfbf4; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.doc em { font-family: var(--font-mono); font-style: normal; font-size: 9px; color: var(--ink-soft); margin-top: auto; }
.tabs { display: flex; gap: 6px; }
.tabs li { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; color: var(--ink-soft); }
.tabs li.on { background: var(--green); border-color: var(--green); color: var(--acid); }
.win.dark { background: #17140f; border-color: #2b261d; }
.win.dark .win-bar { background: #1c1812; border-color: #2b261d; }
.win.dark .win-bar i { background: #332c20; }
.win.dark .win-url { background: #241f16; color: #8d8468; }
.ml.dk { background: #2b261d; }
.ml.big.dk { background: #3a3323; }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.g-grid i { background: #241f16; border-radius: 6px; }
.g-grid i.on { box-shadow: inset 0 0 0 1px var(--acc); background: #2e2818; }
.g-grid i.on2 { background: #2e2818; }
.win-bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); background: #f6f1e4; flex-shrink: 0; }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d9d2bf; }
.win-url { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em; color: var(--ink-soft); background: #ece5d2; padding: 3px 10px; border-radius: 999px; margin-left: 6px; }
.win-body { flex: 1; display: flex; min-height: 0; }
.win-body.col { flex-direction: column; gap: 10px; padding: 12px; }
.side { width: 21%; border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 9px; background: #faf6ec; }
.side i { height: 7px; border-radius: 4px; background: #e3dcc8; }
.side i.on { background: var(--acc); }
.main { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; background: #fdfbf4; }
.kpi b { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: -0.02em; }
.kpi b.up { color: var(--acid-deep); }
.kpi span { font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.chart { flex: 1; border: 1px solid var(--line); border-radius: 8px; position: relative; overflow: hidden; background: linear-gradient(#f7f3e7 1px, transparent 1px) 0 0 / 100% 20px, #fdfbf4; }
.chart svg, .p-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.draw { stroke: var(--acc); stroke-width: 2.4; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.fill { fill: var(--acc); opacity: 0; transition: opacity 1s var(--ease) 1.4s; }
[data-reveal].is-in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s var(--ease) .5s; }
[data-reveal].is-in .fill { opacity: .13; }
.log { border: 1px solid var(--line); border-radius: 8px; background: var(--green-3); padding: 10px 12px; font-family: var(--font-mono); font-size: 10px; line-height: 1.9; color: #b9d3ab; flex: 1; overflow: hidden; }
.log p { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.log p.ok { color: var(--acid); }
[data-reveal].is-in .log p { opacity: 1; transform: none; }
[data-reveal].is-in .log p:nth-child(1) { transition-delay: .5s; }
[data-reveal].is-in .log p:nth-child(2) { transition-delay: 1s; }
[data-reveal].is-in .log p:nth-child(3) { transition-delay: 1.5s; }
[data-reveal].is-in .log p:nth-child(4) { transition-delay: 2s; }
/* site mocks */
.mock-hero { display: flex; flex-direction: column; gap: 7px; padding: 4px 2px; }
.ml { height: 7px; border-radius: 4px; background: #e0d9c5; display: block; }
.ml.big { height: 13px; background: #23201434; background: #d6cfba; }
.w90{width:90%} .w80{width:80%} .w75{width:75%} .w70{width:70%} .w60{width:60%} .w50{width:50%} .w40{width:40%} .w30{width:30%} .w20{width:20%} .w12{width:12%}
.mock-strip { border: 1px dashed var(--line); border-radius: 999px; padding: 6px 12px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; overflow: hidden; }
.mock-strip.thin { padding: 5px 12px; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 8px; flex: 1; }
.mock-card { border: 1px solid var(--line); border-radius: 8px; background: #fdfbf4; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.mock-form { border: 1px solid var(--acc); border-radius: 8px; background: #f4f9e2; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.mock-form i { height: 14px; border-radius: 4px; background: #fff; border: 1px solid var(--line); }
.mock-form b { margin-top: auto; align-self: flex-end; background: var(--acc); color: var(--green-2); border-radius: 6px; padding: 2px 10px; font-size: 10px; }
/* shop mocks */
.shop-nav { display: flex; gap: 12px; align-items: center; }
.shop-nav b { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; background: var(--green); color: var(--acid); padding: 3px 9px; border-radius: 999px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.shop-card { border: 1px solid var(--line); border-radius: 8px; background: #fdfbf4; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.shop-card em { font-family: var(--font-mono); font-style: normal; font-size: 9.5px; color: var(--ink-soft); }
.bag { width: 100%; height: 44px; border-radius: 6px; background: linear-gradient(160deg, #efe9da 40%, #e0d8c2); border: 1px solid var(--line); position: relative; }
.bag::after { content: ""; position: absolute; inset: 30% 18% 18%; border-radius: 3px; background: var(--green); }
.bag.b2::after { background: var(--acid-deep); }
.bag.b3::after { background: #6b6449; }
/* phone */
.phone { width: min(46%, 200px); flex: 1; min-height: 0; margin: 4px auto 0; border: 2px solid #262217; border-radius: 20px; background: #fffdf7; padding: 12px 10px 8px; display: flex; flex-direction: column; gap: 8px; position: relative; box-shadow: 0 18px 40px -20px rgba(23,20,11,.4); }
.notch { position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 34%; height: 5px; border-radius: 999px; background: #262217; }
.p-kpi { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #f6f1e4; }
.p-kpi b { font-family: var(--font-mono); font-size: 13px; }
.p-kpi span { font-family: var(--font-mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: block; }
.p-chart { position: relative; height: 52px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fdfbf4; }
.p-row { display: flex; align-items: center; gap: 7px; }
.p-row i { width: 14px; height: 14px; border-radius: 50%; background: #e3dcc8; flex-shrink: 0; }
.p-row i.on { background: var(--acc); }
.p-row span { flex: 1; height: 6px; border-radius: 3px; background: #ece5d2; }
.p-row em { font-family: var(--font-mono); font-style: normal; font-size: 8.5px; color: var(--ink-soft); }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 7px; border-top: 1px solid var(--line); }
.tabbar i { width: 16px; height: 4px; border-radius: 2px; background: #e3dcc8; }
.tabbar i.on { background: var(--acc); }
/* ---------- code band (studio) ---------- */
.code-band { background: var(--green); color: var(--cream); padding-top: clamp(6rem, 12vw, 10rem); }
.code-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.8rem, 6vw, 5.5rem); align-items: center; }
.editor { background: var(--green-2); border: 1px solid #1e3a2b; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .7); }
.editor .term-bar span { color: #5b7a68; }
.ed-body { padding: 22px 26px 26px; font-family: var(--font-mono); font-size: 13px; line-height: 2.2; color: #d9e7d3; overflow-x: auto; }
.ed-body .ln { display: block; white-space: pre; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.is-in .ed-body .ln, .ed-body.is-in .ln { opacity: 1; transform: none; }
.ed-body .no { color: #3d5a49; display: inline-block; width: 2.2ch; user-select: none; }
.tk-c { color: #6d8a77; } .tk-k { color: #7cc7ff; } .tk-s { color: #ffd479; } .tk-f { color: #c6ef4a; } .tk-n { color: #f0a5a5; }
.band-quote p { font-family: var(--font-display); font-size: clamp(1.5rem, 2.9vw, 2.5rem); line-height: 1.22; font-weight: 500; letter-spacing: -0.01em; }
.band-quote p em { font-style: italic; color: var(--acid); }
.band-quote .who { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream); opacity: .85; }
.band-facts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.band-facts li { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid rgba(239, 234, 217, .34); border-radius: 999px; padding: 6px 12px; color: var(--cream); }
.band-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; margin-top: clamp(3.2rem, 7vw, 5rem); }
.band-stats li { background: var(--green-3); padding: 1.9rem 1.6rem; }
.band-stats .num { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.8rem); color: var(--acid); font-weight: 500; letter-spacing: -0.01em; }
.band-stats .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-soft); margin-top: .5rem; }

/* ---------- team (operator cards) ---------- */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.9rem, 1.6vw, 1.4rem); }
.op-card { flex: 0 1 220px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 1.3rem 1.2rem 1.2rem; position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.op-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(23, 20, 11, .35); border-color: rgba(23, 20, 11, .3); }
.op-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--acid); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.op-card:hover::after { transform: scaleX(1); }
.op-idx { position: absolute; top: 12px; right: 14px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-soft); }
.op-sigil { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--green); border: 1px solid var(--line); position: relative; transition: transform .6s var(--ease); }
.op-card:hover .op-sigil { transform: rotate(-8deg) scale(1.06); }
.op-sigil::after { content: ""; position: absolute; inset: -6px; border: 1px dashed var(--line); border-radius: 50%; transition: transform 1s var(--ease); }
.op-card:hover .op-sigil::after { transform: rotate(40deg); }
.op-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.06rem; margin-top: .95rem; }
.op-card .role { font-family: var(--font-mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-top: .3rem; }
.op-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.op-tags li { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; color: var(--ink-soft); }
.team-note { margin-top: 2.2rem; display: flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); }
.team-note::before { content: ""; width: 40px; height: 1px; background: var(--ink-soft); }

/* ---------- process ---------- */
.process { background: var(--green); color: var(--cream); }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.proc-step { background: var(--green); padding: 1.8rem 1.4rem; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; transition: background-color .5s; }
.proc-step:hover { background: var(--green-2); }
.proc-step .n { font-family: var(--font-mono); font-size: 11px; color: var(--acid); letter-spacing: .2em; }
.proc-step h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin: 1.3rem 0 .5rem; }
.proc-step p { font-size: .84rem; color: var(--cream-soft); }

/* ---------- CTA ---------- */
.cta { background: var(--green-2); color: var(--cream); overflow: hidden; position: relative; }
.cta .h-mega { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4.8vw, 3.9rem); line-height: 1.06; letter-spacing: -0.018em; }
.cta .h-mega em { font-style: italic; color: var(--acid); }
.cta-mail { display: inline-block; margin-top: 2rem; font-family: var(--font-mono); font-size: clamp(.9rem, 1.8vw, 1.15rem); letter-spacing: .06em; color: var(--acid); position: relative; padding-bottom: 5px; }
.cta-mail::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: var(--acid); transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.cta-mail:hover::after { transform: scaleX(1); }
.cta-row { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; margin-top: 2.4rem; }
.cta-star { position: absolute; right: -5vw; top: -7vw; width: 26vw; min-width: 220px; color: var(--green); opacity: .9; animation: preSpin 26s linear infinite; pointer-events: none; }

/* ---------- footer ---------- */
footer { background: var(--green-2); color: var(--cream); border-top: 1px solid var(--line-dark); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.2rem; padding: clamp(3rem, 6vw, 4.6rem) 0 2.6rem; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-soft); margin-bottom: 1rem; }
.foot-grid a { display: block; padding: .24rem 0; font-size: .86rem; color: var(--cream); transition: color .3s, transform .3s var(--ease); }
.foot-grid a:hover { color: var(--acid); transform: translateX(4px); }
.foot-blurb { color: var(--cream-soft); font-size: .86rem; max-width: 34ch; margin-top: .9rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line-dark); padding: 1.2rem 0 1.4rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-soft); }

/* ---------- work page ---------- */
.page-head { padding-top: calc(var(--nav-h) + 7vh); padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.page-head h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.5rem, 6.6vw, 5.6rem); line-height: .98; letter-spacing: -0.022em; text-transform: uppercase; }
.page-head h1 em { font-style: italic; text-transform: none; color: var(--green); }
.page-head .sub { margin-top: 1.2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 2rem 0 3rem; }
.chip-btn { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; color: var(--ink-soft); transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.chip-btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.chip-btn.active { background: var(--green); border-color: var(--green); color: var(--acid); }
.more-work { margin-top: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem); }
.mw-row { display: grid; grid-template-columns: 80px 1.3fr 1fr auto; gap: 1.2rem; align-items: baseline; padding: 1.3rem .6rem; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.mw-row:hover { padding-left: 1.2rem; }
.mw-row .y { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); }
.mw-row .t { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.mw-row .c { font-size: .84rem; color: var(--ink-soft); }
.mw-row .a { transition: transform .4s var(--ease); }
.mw-row:hover .a { transform: translateX(6px); color: var(--green); }

/* ---------- project page ---------- */
.proj-head { padding-top: calc(var(--nav-h) + 7vh); }
.proj-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.3rem, 6.2vw, 5.2rem); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; margin-top: 1rem; }
.proj-title em { font-style: italic; text-transform: none; color: var(--green); }
.type-line { margin-top: 1.5rem; font-family: var(--font-mono); font-size: clamp(.8rem, 1.4vw, .98rem); color: var(--green); letter-spacing: .04em; min-height: 1.6em; }
.type-line::after { content: "▍"; animation: caret .9s steps(1) infinite; color: var(--acid-deep); }
.proj-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.proj-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.proj-meta li { background: var(--paper); padding: 1.3rem 1.2rem; }
.proj-meta .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.proj-meta .v { font-size: .88rem; font-weight: 500; }
.proj-art { margin-top: clamp(2.6rem, 6vw, 4.2rem); }
.proj-art .artifact { aspect-ratio: 16 / 8.6; }
.proj-poster { margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.proj-body { display: grid; grid-template-columns: .85fr 1.4fr; gap: clamp(2.2rem, 5vw, 5rem); }
.proj-sticky { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
.proj-brief p { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.68; margin-bottom: 1.5em; }
.proj-brief p:first-child::first-letter { font-family: var(--font-display); font-size: 3em; float: left; line-height: .85; padding-right: .12em; color: var(--green); font-style: italic; }
.type-el { min-height: 1.65em; }
.svc-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.svc-chips li { font-family: var(--font-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.proj-quote { border-left: 3px solid var(--acid-deep); padding: .5rem 0 .5rem 1.8rem; margin: 1rem 0; }
.proj-quote p { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.6rem); line-height: 1.35; font-style: italic; color: var(--green); margin-bottom: .9rem; }
.proj-quote .who { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.proj-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2.6rem, 6vw, 4.2rem); }
.proj-stats li { background: var(--paper-2); padding: 1.9rem 1.4rem; }
.proj-stats .num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--green); font-weight: 500; }
.proj-stats .lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: .45rem; }
.next-case { display: block; background: var(--green); color: var(--cream); text-align: center; overflow: hidden; }
.next-case .nc-inner { padding: clamp(3.4rem, 8vw, 6rem) 0; transition: transform .5s var(--ease); }
.next-case:hover .nc-inner { transform: translateY(-6px); }
.next-case .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-soft); }
.next-case .t { font-family: var(--font-display); font-size: clamp(1.9rem, 5.4vw, 4.2rem); text-transform: uppercase; letter-spacing: -0.02em; margin-top: .7rem; transition: color .4s; }
.next-case:hover .t { color: var(--acid); font-style: italic; }

/* ---------- persistent WhatsApp bubble ---------- */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 180; width: 58px; height: 58px; border-radius: 50%; background: var(--acid); color: var(--green-2); display: grid; place-items: center; border: 2px solid var(--green-2); box-shadow: 0 16px 40px -12px rgba(8, 29, 21, .6); transition: transform .35s var(--ease), background-color .35s; }
.wa-float:hover { transform: translateY(-3px) scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--acid); opacity: .6; animation: waPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .term { justify-self: start; }
  .team-grid { gap: 1rem; }
  .op-card { flex-basis: 200px; }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .band-stats { grid-template-columns: repeat(2, 1fr); }
  .code-grid { grid-template-columns: 1fr; }
  .proj-body { grid-template-columns: 1fr; }
  .proj-sticky { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .clock-chip { display: none; }
  #menu-btn { display: block; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { margin-top: 0; }
  .svc-row { grid-template-columns: 40px 1fr 30px; }
  .svc-tags { display: none; }
  .team-grid { gap: .9rem; }
  .op-card { flex-basis: 44%; }
  .proj-meta { grid-template-columns: repeat(2, 1fr); }
  .proj-stats { grid-template-columns: 1fr; }
  .mw-row { grid-template-columns: 56px 1fr auto; }
  .mw-row .c { display: none; }
  .scroll-cue { display: none; }
  .proj-art .artifact { aspect-ratio: 4 / 3; }
  .hero-meta { flex-direction: row; flex-wrap: wrap; }
  .term { max-width: 100%; }
  .term-body { font-size: 11px; min-height: 150px; }
  .ed-body { font-size: 11px; }
  .band-quote p { font-size: 1.3rem; }
  .wc-media { aspect-ratio: 4 / 3; }
  .wc-body { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .wc-actions { width: 100%; justify-content: space-between; margin-top: .2rem; }
  .wc-sub { max-width: 100%; }
  .work-grid { gap: 3.5rem 0; }
  .work-card[data-reveal] { transform: none; transition: opacity .7s var(--ease); }
  #work { padding-bottom: clamp(6rem, 14vw, 9rem); }
}
@media (max-width: 640px) {
  .nav-cta .btn { display: none; }
  .term { display: none; }
  .hero { min-height: auto; padding-bottom: 9vh; }
  .section-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0; }
  .section-head > div:first-child { flex: 1 1 100%; order: 2; max-width: 100%; }
  .section-head > .btn { order: 1; margin-left: auto; margin-bottom: 1.1rem; }
  .section-head > .lede { order: 3; flex: 1 1 100%; max-width: 100%; margin-top: 1.1rem; font-size: .9rem; }
  .section-head .h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero-meta { width: 100%; }
  .hero-meta .chip { flex: 1 1 0; justify-content: center; text-align: center; }
  .filters .chip-btn { flex: 1 1 auto; text-align: center; }
  .cta-row { gap: .9rem; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}
@media (max-width: 560px) {
  .team-grid { gap: .8rem; }
  .op-card { flex-basis: 46%; padding: 1rem .9rem .9rem; }
  .poster { padding: 1.1rem; gap: .8rem; }
  .po-title { font-size: clamp(1.5rem, 7vw, 1.9rem); }
  .po-star { width: 44%; }
  .proc-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .kpis { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .kpi b { font-size: 9.5px; }
  .kpi span { font-size: 7px; }
  .log { font-size: 9px; padding: 8px 10px; }
  .side { width: 16%; }
  .badge-row li { font-size: 8px; padding: 3px 8px; }
  .proj-art .artifact { aspect-ratio: auto; }
  .poster.big { aspect-ratio: 4 / 3; }
  .hero-ctas .btn { flex: 1 1 auto; text-align: center; justify-content: center; padding: .68rem 1.1rem; font-size: .78rem; }
  .op-card { padding: 1rem .9rem .9rem; }
  .op-sigil { width: 48px; height: 48px; font-size: 1.05rem; }
  .band-stats li { padding: 1.1rem 1rem; }
  .phone { width: min(56%, 200px); }
  .mock-row { grid-template-columns: 1fr 1fr; }
  .mock-form { grid-column: 1 / -1; }
  .shop-grid { gap: 5px; }
  .win-url { display: none; }
}
