:root {
  --canvas: #fbf4ea;
  --panel: #f3e6d6;
  --brown: #632401;
  --ink: #3b1a07;
  --accent: #f6984e;
  --accent-deep: #d9762c;
  --text-secondary: #7a5b48;
  --cream: #fcf6ea;
  --line: rgba(99, 36, 1, .14);
  --line-strong: #a8826a;
  --display: "Gilda Display", Georgia, serif;
  --body: "Figtree", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --pad: clamp(16px, 5vw, 80px);
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-soft: cubic-bezier(.45, 0, .25, 1);
  --tshadow: 0 1px 1px rgba(252,246,234,.9), 0 2px 14px rgba(252,246,234,.85), 0 8px 40px rgba(252,246,234,.8);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: hidden; overflow-x: clip;
  background: var(--canvas); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased;
  animation: page-in 1.2s var(--ease-out) both;
}
@keyframes page-in { from { opacity: 0 } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: -.01em; color: var(--brown); }
em { font-style: italic; color: var(--accent-deep); }
::selection { background: var(--accent); color: var(--brown); }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--brown); color: var(--cream); padding: 10px 16px; border-radius: 8px; transition: top .3s var(--ease-out); }
.skip:focus { top: 16px; }
main:focus { outline: none; }

/* ---------- environment ---------- */
.env { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.env-glow { position: absolute; width: 90vmax; height: 90vmax; left: 50%; top: 40%; margin: -45vmax 0 0 -45vmax;
  background: radial-gradient(circle, rgba(246,152,78,.10), transparent 60%);
  animation: drift 75s var(--ease-soft) infinite alternate; animation-delay: -25s; }
@keyframes drift { 0% { transform: translate(-18vw, -10vh) } 50% { transform: translate(14vw, 12vh) } 100% { transform: translate(-6vw, 22vh) } }
.env-grain { position: absolute; inset: -50%; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.4s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 33%{transform:translate(-3%,2%)} 66%{transform:translate(2%,-3%)} 100%{transform:translate(0,0)} }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ---------- type helpers ---------- */
.label, .kicker, .mono { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 22px; }
.h2 { font-size: clamp(40px, 5.6vw, 86px); }
.lede { color: var(--text-secondary); font-size: clamp(17px, 1.4vw, 19px); max-width: 44ch; margin: 26px 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 500; font-size: 15px; letter-spacing: .02em;
  padding: 15px 28px; border-radius: 999px; border: 1px solid var(--brown); cursor: pointer;
  background: var(--brown); color: var(--cream); text-shadow: none;
  transition: background .4s var(--ease-out), color .4s var(--ease-out), transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  box-shadow: 0 12px 36px -16px rgba(99,36,1,.7);
}
.btn:hover { background: #7a3008; transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(246,152,78,.8); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 34px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--brown); box-shadow: none; }
.btn-ghost:hover { background: var(--panel); }
@media (pointer: coarse) { .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--pad);
  transition: background .6s var(--ease-out), padding .6s var(--ease-out), border-color .6s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(251,244,234,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-block: 11px; border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
/* logo oficial, recortado em máscaras para trocar de cor */
.logo-mark, .logo-word, .logo-tag { display: block; flex: none; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.logo-mark { -webkit-mask-image: url("../brand/mark.png"); mask-image: url("../brand/mark.png"); aspect-ratio: 512 / 610; }
.logo-word { -webkit-mask-image: url("../brand/wordmark.png"); mask-image: url("../brand/wordmark.png"); aspect-ratio: 1780 / 242; }
.logo-tag { -webkit-mask-image: url("../brand/tagline.png"); mask-image: url("../brand/tagline.png"); aspect-ratio: 1260 / 94; }
.brand .logo-mark { width: 24px; color: var(--accent-deep); }
.brand .logo-word { height: 17px; color: var(--brown); }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: color .3s var(--ease-out); }
.nav-links a:hover { color: var(--brown); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.poster { position: absolute; inset: 0; background: #f6e7d2 url("../img/hero-poster.jpg") center / cover no-repeat; }
#scrub { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s var(--ease-out); will-change: transform; transform: translateZ(0); }
.stage.ready #scrub { opacity: 1; }
.scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(251,244,234,.55) 0%, transparent 14%, transparent 82%, var(--canvas) 100%); }

.band { position: absolute; top: 46%; width: min(25vw, 380px); transform: translateY(-50%); opacity: 0; text-shadow: var(--tshadow); pointer-events: none; }
.band.on { pointer-events: auto; }
.band-r { right: var(--pad); }
.band-l { left: var(--pad); }
.band-top { left: 50%; top: 15vh; width: min(80vw, 760px); margin-left: calc(min(80vw, 760px) / -2); transform: none; text-align: center; }
.band::before { content: ""; position: absolute; inset: -38% -26%; z-index: -1; pointer-events: none;
  opacity: calc(.25 + .75 * var(--k, 1));
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(251,244,234,var(--sa,.62)) 0%, rgba(251,244,234,calc(var(--sa,.62) * .6)) 46%, rgba(251,244,234,0) 76%); }
.b1 { --sa: .6; } .b2 { --sa: .6; } .b3 { --sa: .7; width: min(21vw, 340px); }
.band h1, .band h2 { font-size: clamp(36px, 3.9vw, 66px); }
.band-top h2 { font-size: clamp(48px, 6vw, 100px); }
.band .sub { color: var(--ink); font-size: clamp(17px, 1.5vw, 21px); margin: 18px 0 0; }
.band .kicker { margin-bottom: 18px; }
.band .row { margin-top: 30px; }
.band .btn { text-shadow: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.split .w { display: inline-block; white-space: nowrap; }

/* focus: blur to sharp (opacity only) */
[data-fx="focus"] .split { position: relative; }
[data-fx="focus"] .split .soft { position: absolute; inset: 0; filter: blur(12px); opacity: calc(1 - var(--k, 1)); }
[data-fx="focus"] .split .sharp { opacity: var(--k, 1); display: block; }
[data-fx="focus"] .kicker { opacity: var(--k, 1); transform: translateY(calc((1 - var(--k, 1)) * 10px)); }

/* drift: words float down like the leaves */
[data-fx="drift"] .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1); opacity: var(--kc);
  transform: translate(calc((1 - var(--kc)) * var(--jx, 0px)), calc((1 - var(--kc)) * -34px)) rotate(calc((1 - var(--kc)) * var(--jr, 0deg))); }
[data-fx="drift"] .sub { opacity: clamp(0, (var(--k, 0) - .5) * 3, 1); }

/* rise into a staged settle, as the butterfly lands */
[data-fx="rise"] .w { --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 3, 1); opacity: var(--kc); transform: translateY(calc((1 - var(--kc)) * 34px)); }
[data-fx="rise"] .sub { --ks: clamp(0, (var(--k, 0) - .66) * 4, 1); opacity: var(--ks); transform: translateY(calc((1 - var(--ks)) * 12px)); }
[data-fx="rise"] .row { --kb: clamp(0, (var(--k, 0) - .78) * 5, 1); opacity: var(--kb); transform: translateY(calc((1 - var(--kb)) * 12px)); }

.static-copy { display: none; }
.ring { position: absolute; right: var(--pad); bottom: 32px; width: 34px; height: 34px; color: var(--accent-deep); transform: rotate(-90deg); transition: opacity .6s; }
.ring circle { transition: stroke-dashoffset .2s linear; }
.stage.ready .ring { opacity: 0; }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: var(--text-secondary); transition: opacity .6s; }
.cue span { width: 1px; height: 44px; background: linear-gradient(var(--accent-deep), transparent); transform-origin: top; animation: cue 2.4s var(--ease-out) infinite; }
@keyframes cue { 0%{transform:scaleY(0);opacity:1} 60%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(1);opacity:0} }
.cue.gone { opacity: 0; }

/* ---------- phones: the scrub runs, footage in the lower part, text on top ---------- */
@media (max-width: 720px), (orientation: portrait) and (max-width: 1024px), (orientation: portrait) and (pointer: coarse) {
  .poster { background: linear-gradient(180deg, #f6e7d2 0%, #f6e7d2 40%, rgba(246,231,210,0) 52%), url("../img/hero-poster.jpg") 50% 100% / auto 60% no-repeat, #f6e7d2; }
  .scrim { background: linear-gradient(180deg, transparent 0%, transparent 86%, var(--canvas) 100%); }
  .band, .b3 { left: var(--pad); right: var(--pad); width: auto; top: calc(64px + 7vh); transform: none; }
  .band::before { inset: -20% -10%; }
  .band h1, .band h2 { font-size: clamp(40px, 11vw, 64px); }
  .band .sub { font-size: 17px; margin-top: 12px; max-width: 30ch; }
  .band .kicker { margin-bottom: 12px; }
  .band .row { margin-top: 20px; }
  .cue { bottom: 18px; }
}

/* ---------- static hero (landscape phones, reduced motion) ---------- */
@media (orientation: landscape) and (pointer: coarse) and (max-height: 560px), (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .stage { position: relative; height: 100svh; min-height: 600px; }
  .poster { background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas) 34%, rgba(251,244,234,0) 52%), url("../img/hero-end.jpg") 50% 100% / auto 58% no-repeat, #f7e9d6; }
  #scrub, .band, .ring, .cue { display: none; }
  .static-copy { display: block; position: absolute; left: var(--pad); right: var(--pad); top: 13vh; text-shadow: var(--tshadow); }
  .static-copy::before { content: ""; position: absolute; inset: -30% -20%; z-index: -1; background: radial-gradient(ellipse 70% 60% at 45% 45%, rgba(251,244,234,.8), rgba(251,244,234,0) 76%); }
  .static-copy h1 { font-size: clamp(46px, 12.5vw, 84px); }
  .static-copy .sub { margin: 16px 0 26px; max-width: 30ch; color: var(--ink); }
}

/* ---------- entrances ---------- */
.in-seq { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.in-seq.in { opacity: 1; transform: none; }
.in-seq.settled { transition-delay: 0s !important; }

/* signature leaf butterfly mark that draws itself */
.leaf-mark { display: block; width: 92px; height: 80px; margin-bottom: 30px; overflow: visible; }
.leaf-mark use { fill: none; stroke: var(--accent-deep); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; }

/* ---------- frames ---------- */
.frame { margin: 0; position: relative; overflow: hidden; border-radius: 220px 220px 8px 8px; }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.4s var(--ease-out); }
.frame.in img { transform: scale(1); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: center; max-width: 1360px; margin: 0 auto; padding: 18vh var(--pad) 14vh; }
.about-photo { aspect-ratio: 2 / 3; }
.lit-text { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.36; margin: 32px 0 0; max-width: 34ch; color: var(--brown); }
.lit-text p { margin: 0; }
.lit-text p + p { margin-top: .8em; }
.lit-text .w { opacity: .2; transition: opacity .4s linear; }
.lit-text .w.lit { opacity: 1; }
.sign { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); margin: 28px 0 0; }
.facts { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts li { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.facts b { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2vw, 30px); color: var(--brown); line-height: 1.1; }
.facts span { color: var(--text-secondary); font-size: 14px; }

/* ---------- when (brown, pinned: one sign at a time) ---------- */
.when { background: var(--brown); color: var(--cream); position: relative; }
.when-sticky { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.05fr; gap: 6vw; align-items: center;
  padding: 18vh max(var(--pad), calc((100vw - 1280px) / 2)); }
.when-sticky::after { content: ""; position: absolute; right: -10vw; top: -20vh; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(246,152,78,.18), transparent 62%); pointer-events: none; animation: breathe 9s var(--ease-soft) infinite alternate; animation-delay: -3s; }
@keyframes breathe { from { opacity: .5 } to { opacity: 1 } }
.when-mark { position: absolute; left: 74%; top: 50%; width: min(58vw, 760px); aspect-ratio: 512 / 610; color: var(--accent); opacity: .07; pointer-events: none;
  -webkit-mask: url("../brand/mark.png") center / contain no-repeat; mask: url("../brand/mark.png") center / contain no-repeat; background: currentColor;
  transform: translate(-50%, -50%) rotate(calc(var(--wp, 0) * 50deg - 12deg)) scale(calc(.9 + var(--wp, 0) * .25)); }
.when-head, .signs { position: relative; z-index: 1; }
.when .label { color: var(--accent); }
.when h2 { color: var(--cream); }
.when em { color: var(--accent); }
.when .lede { color: #e9d3bf; }
.when-count { display: none; }
.signs { list-style: none; padding: 0; margin: 0; display: grid; }
.sg { padding: 34px 0; border-top: 1px solid rgba(252,246,234,.18); }
.sign-n { display: block; font-family: var(--display); font-size: clamp(64px, 7vw, 110px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--accent); margin-bottom: 20px; }
.sign-q { font-family: var(--display); font-size: clamp(26px, 2.8vw, 44px); line-height: 1.16; margin: 0; max-width: 20ch; color: var(--cream); }
.sign-a { margin: 22px 0 0; color: #e9d3bf; max-width: 40ch; }
.sign-a b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.sign-link { display: inline-flex; gap: 10px; margin-top: 24px; color: var(--accent); border-bottom: 1px solid rgba(246,152,78,.45); padding-bottom: 3px; font-size: 15px; transition: border-color .3s, gap .4s var(--ease-out); }
.sign-link::after { content: "→"; }
.sign-link:hover { border-color: var(--accent); gap: 16px; }

/* vertical timeline, same style as the trajectory, on brown */
.when-sticky { grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: start; overflow: hidden; overflow: clip; }
.when-head { position: sticky; top: 130px; }
.tl-dark .step { border: 0; padding: 0 0 56px; }
.tl-dark .step:last-child { padding-bottom: 0; }
.tl-dark::before { background: rgba(252,246,234,.28); opacity: 1; }
.tl-dark::after { background: var(--accent); }
.tl-dark .step-n { background: var(--brown); border-color: var(--accent); color: var(--accent); }
.tl-dark .step-k { color: var(--accent); }
.tl-dark .sign-q { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.12; margin: 0 0 12px; max-width: 22ch; color: var(--cream); }
.tl-dark .sign-a { margin: 0; max-width: 44ch; }
.tl-dark .sign-link { margin-top: 16px; }

/* live: the section pins and the signs change with the scroll */
.when.live { height: 460vh; }
.when.live .when-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 0; }
.when.live .when-count { display: flex; align-items: baseline; gap: 10px; margin-top: 52px; }
.when-count b { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; color: var(--cream); min-width: 1.4em; }
.when-count span { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.when-bar { position: relative; align-self: center; flex: 0 0 180px; height: 1px; margin-left: 18px; background: rgba(252,246,234,.2); }
.when-bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--wp, 0)); }
.when.live .sg { grid-area: 1 / 1; border: 0; padding: 0; visibility: hidden; transition: visibility 0s .9s; }
.when.live .sg > * { opacity: 0; transform: translateY(46px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.when.live .sg.past > * { transform: translateY(-46px); }
.when.live .sg.on { visibility: visible; transition-delay: 0s; }
.when.live .sg.on > * { opacity: 1; transform: none; }
.when.live .sg.on > :nth-child(2) { transition-delay: .08s; }
.when.live .sg.on > :nth-child(3) { transition-delay: .16s; }
.when.live .sg.on > :nth-child(4) { transition-delay: .24s; }
.when.live .sign-n { font-size: clamp(110px, 12vw, 200px); }

/* ---------- services (stacked cards) ---------- */
.services { max-width: 1320px; margin: 0 auto; padding: 18vh var(--pad) 12vh; }
.section-head { margin-bottom: 56px; }
.svc { position: sticky; top: calc(92px + var(--i) * 20px); display: grid; grid-template-columns: 1.15fr .85fr; min-height: min(76vh, 640px); margin-bottom: 7vh;
  border-radius: 36px; overflow: hidden; background: var(--panel); color: var(--ink); transform-origin: 50% 0; transform: scale(var(--sc, 1));
  box-shadow: 0 -24px 60px -44px rgba(59,26,7,.55); }
.svc:last-child { margin-bottom: 0; }
.svc::after { content: ""; position: absolute; inset: 0; background: #2a1003; opacity: var(--dim, 0); pointer-events: none; z-index: 3; }
.svc-text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 4.4vw, 68px); }
.svc .n { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--accent-deep); }
.svc h3 { font-size: clamp(40px, 4.4vw, 72px); margin: 26px 0 8px; }
.svc .tech { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 22px; }
.svc-desc { font-size: clamp(17px, 1.35vw, 20px); max-width: 40ch; margin: 0; }
.svc-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 10px; }
.svc-list li { position: relative; padding-left: 26px; font-size: 15px; }
.svc-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 0 100% 0 100%; background: var(--accent-deep); }
.svc-art { position: relative; overflow: hidden; color: var(--accent-deep); background: radial-gradient(circle at 50% 55%, rgba(246,152,78,.28), transparent 62%); }
.svc-big { position: absolute; right: 4%; bottom: -6%; font-family: var(--display); font-size: clamp(200px, 24vw, 380px); line-height: .8; -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.5px currentColor; opacity: .3; }
.svc-mark { position: absolute; left: var(--mx, 50%); top: var(--my, 50%); width: var(--mw, 52%); aspect-ratio: 512 / 610; background: currentColor;
  -webkit-mask: url("../brand/mark.png") center / contain no-repeat; mask: url("../brand/mark.png") center / contain no-repeat;
  transform: translate(-50%, -50%) rotate(var(--mr, 0deg)); animation: sway 7s var(--ease-soft) infinite alternate; }
@keyframes sway { from { rotate: -3deg; translate: 0 6px } to { rotate: 3deg; translate: 0 -6px } }
.svc-art.has-photo { background: none; }
.svc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2s var(--ease-out); }
.svc:hover .svc-photo { transform: scale(1.02); }
.svc-art.has-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--svc-bg, var(--panel)) 0%, transparent 22%); }
.svc-4 { --svc-bg: var(--cream); }
.svc-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.svc-ba figure { position: relative; margin: 0; overflow: hidden; }
.svc-ba figcaption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(251,244,234,.92); color: var(--brown); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.svc-ba figcaption.after { background: var(--brown); color: var(--cream); }
.svc-1 { --svc-bg: var(--panel); }
.svc-2 { --svc-bg: var(--accent); }
.svc-3 { --svc-bg: var(--brown); }
.svc-2 { background: var(--accent); color: var(--brown); }
.svc-2 .n, .svc-2 .tech { color: var(--brown); opacity: .8; }
.svc-2 .svc-list li::before { background: var(--brown); }
.svc-2 .svc-art { color: var(--brown); background: radial-gradient(circle at 40% 50%, rgba(252,246,234,.35), transparent 60%); --mw: 120%; --mx: 72%; --mr: -16deg; }
.svc-3 { background: var(--brown); color: #ead6c3; }
.svc-3 h3 { color: var(--cream); }
.svc-3 .n { color: var(--accent); }
.svc-3 .tech { color: #d9bea6; }
.svc-3 .svc-list li::before { background: var(--accent); }
.svc-3 .svc-art { color: var(--accent); --mw: 64%; --mr: 14deg; }
.svc-4 { background: var(--cream); border: 1px solid var(--line); }
.svc-4 .svc-art { --mw: 130%; --mx: 30%; --my: 60%; --mr: 22deg; }
.btn-light { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.btn-light:hover { background: #fff; color: var(--brown); }
.svc-3 .btn { background: var(--cream); color: var(--brown); border-color: var(--cream); }
.specs { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 10vh; padding-top: 28px; border-top: 1px solid var(--line); }
.specs .label { margin: 0; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 18px; font-size: 14px; color: var(--brown); transition: background .4s var(--ease-out), color .4s var(--ease-out); }
.tags li:hover { background: var(--brown); color: var(--cream); }

/* ---------- results (before / after) ---------- */
.results { max-width: 1320px; margin: 0 auto; padding: 14vh var(--pad) 6vh; }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: var(--panel); border-radius: 32px; padding: 14px 14px 26px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; background: var(--canvas); }
.pair figure:first-child { border-radius: 22px 8px 8px 22px; }
.pair figure:last-child { border-radius: 8px 22px 22px 8px; }
.pair img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.case:hover .pair img { transform: scale(1.04); }
.pair figcaption { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(251,244,234,.92); color: var(--brown); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.pair figcaption.after { background: var(--brown); color: var(--cream); }
.case-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 22px 14px 0; }
.case-text .mono { margin: 0; flex-basis: 100%; }
.case-text h3 { font-size: clamp(26px, 2.2vw, 34px); flex-basis: 100%; margin-bottom: 8px; }
.case-text .sign-link { margin: 0; color: var(--accent-deep); border-color: rgba(217,118,44,.45); }

/* ---------- essence (mission, vision, values) ---------- */
.essence { max-width: 1320px; margin: 0 auto; padding: 16vh var(--pad) 10vh; }
.ess-head { max-width: 760px; margin-bottom: 56px; }
.ess-mark { width: 54px; color: var(--accent-deep); margin-bottom: 28px; }
.values { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { position: relative; background: var(--panel); border-radius: 28px; padding: 34px 32px 38px; overflow: hidden; }
.value::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(246,152,78,.28), transparent 65%); }
.value:nth-child(2) { background: var(--brown); }
.value:nth-child(2) dt { color: var(--cream); }
.value:nth-child(2) dd { color: #ead6c3; }
.value:nth-child(2) .mono { color: var(--accent); }
.values dt { font-family: var(--display); font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; color: var(--brown); }
.values dt .mono { display: block; margin: 0 0 26px; font-size: 12px; }
.values dd { margin: 14px 0 0; font-size: clamp(16px, 1.25vw, 18px); color: var(--ink); line-height: 1.6; position: relative; z-index: 1; }

/* ---------- process (vertical timeline) ---------- */
.process { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; align-items: start; max-width: 1320px; margin: 0 auto; padding: 12vh var(--pad) 14vh; }
.process-intro { position: sticky; top: 130px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--line-strong); opacity: .5; }
.timeline::after { background: var(--accent-deep); opacity: 1; transform-origin: top; transform: scaleY(var(--tp, 0)); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding-bottom: 56px; }
.step:last-child { padding-bottom: 0; }
.timeline::before, .timeline::after { bottom: auto; height: calc(100% - var(--last, 120px)); }
.step-n { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); border: 1px solid var(--accent-deep); font-family: var(--mono); font-size: 13px; color: var(--accent-deep); }
.step-k { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-deep); margin: 6px 0 10px; }
.step h3 { font-size: clamp(30px, 3vw, 46px); margin: 0 0 12px; }
.step p:last-child { color: var(--text-secondary); margin: 0; max-width: 44ch; }

/* ---------- instagram ---------- */
.insta { max-width: 1320px; margin: 0 auto; padding: 16vh var(--pad) 6vh; }
.ig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.ig-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--panel); isolation: isolate; }
.ig-card:nth-child(2) { margin-top: 14vh; }
.ig-photo { position: absolute; inset: 0; margin: 0; }
.ig-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.8s var(--ease-out); }
.ig-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(59,26,7,.82) 100%); }
.ig-card:hover img { transform: scale(1.05); }
.ig-meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; padding: clamp(22px, 2.6vw, 34px); color: var(--cream); }
.ig-kind { grid-column: 1; font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.ig-handle { grid-column: 1; font-family: var(--display); font-size: clamp(22px, 2.4vw, 36px); line-height: 1.1; overflow-wrap: anywhere; }
.ig-go { grid-column: 2; grid-row: 1 / 3; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(252,246,234,.6); display: grid; place-items: center; transition: background .5s var(--ease-out), border-color .5s, transform .6s var(--ease-out); }
.ig-go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ig-card:hover .ig-go { background: var(--accent); border-color: var(--accent); color: var(--brown); transform: rotate(45deg); }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 7vw; align-items: center; max-width: 1360px; margin: 0 auto; padding: 12vh var(--pad) 18vh; }
.visit-text { order: -1; }
.visit-photo { aspect-ratio: 2 / 3; border-radius: 8px 8px 220px 220px; }
.visit .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.info { margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.info div { border-top: 1px solid var(--line); padding-top: 14px; }
.info dt { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-deep); }
.info dd { margin: 6px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.info a { border-bottom: 1px solid var(--line-strong); transition: border-color .3s; }
.info a:hover { border-color: var(--accent-deep); }

/* ---------- footer ---------- */
.footer { background: var(--brown); color: #ead6c3; padding: 16vh var(--pad) 36px; font-size: 15px; }
.foot-top { display: grid; grid-template-columns: auto 1fr; gap: 9vw; align-items: center; max-width: 1280px; margin: 0 auto; }
.foot-logo { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.foot-logo .logo-mark { width: 112px; color: var(--accent); }
.foot-logo .logo-word { height: 38px; color: var(--cream); }
.foot-logo .logo-tag { height: 12px; color: var(--accent); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-h { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.foot-cols p { margin: 0 0 14px; line-height: 1.75; overflow-wrap: anywhere; }
.foot-cols a { border-bottom: 1px solid rgba(252,246,234,.25); transition: border-color .3s, color .3s; }
.foot-cols a:hover { color: var(--cream); border-color: var(--accent); }
.foot-bottom { max-width: 1280px; margin: 12vh auto 0; padding-top: 28px; border-top: 1px solid rgba(252,246,234,.16); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.foot-bottom p { margin: 0; }
.muted { font-size: 12px; opacity: .8; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .about, .visit, .process { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; max-width: 560px; }
  .process-intro { position: static; }
  .about-photo, .visit-photo { max-width: 440px; }
  .visit-text { order: 0; }
  .when-sticky { grid-template-columns: 1fr; gap: 48px; }
  .when-head { position: static; }
  .when.live .when-sticky { align-content: center; padding-top: 64px; }
  .when.live .lede { display: none; }
  .when.live .when-count { margin-top: 22px; }
  .when-count b, .when-count span { display: none; }
  .when-bar { flex: 0 0 120px; margin-left: 0; }
  .when.live .sign-n { font-size: clamp(76px, 20vw, 130px); }
  .when-mark { left: 70%; top: 70%; width: 120vw; }
  .foot-top { grid-template-columns: 1fr; justify-items: start; }
  .foot-logo { align-items: flex-start; }
}
@media (max-width: 720px) {
  .svc { position: relative; top: auto; transform: none; grid-template-columns: 1fr; min-height: 0; margin-bottom: 18px; border-radius: 28px; }
  .svc::after { display: none; }
  .svc-art { order: -1; height: 200px; }
  .svc-art.has-photo { height: 260px; }
  .svc-art.has-photo::after { background: linear-gradient(0deg, var(--svc-bg, var(--panel)) 0%, transparent 30%); }
  .svc-big { font-size: 180px; }
  .ig-grid { grid-template-columns: 1fr; }
  .ig-card:nth-child(2) { margin-top: 0; }
  .foot-cols { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand .logo-word { height: 15px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .info { grid-template-columns: 1fr; }
  .svc-text { padding: 28px 24px 32px; }
  .ig-handle { font-size: 19px; overflow-wrap: normal; }
  .ig-go { width: 46px; height: 46px; }
  .svc h3 { margin-top: 18px; }
  .when.live .when-sticky .h2 { font-size: 36px; }
  .when.live .sign-q { font-size: 25px; }
  .foot-logo .logo-mark { width: 80px; }
  .foot-logo .logo-word { height: 28px; }
  .foot-logo .logo-tag { height: 9px; }
  .step { grid-template-columns: 44px 1fr; gap: 18px; }
  .step-n { width: 44px; height: 44px; }
  .timeline::before, .timeline::after { left: 21px; top: 22px; bottom: 22px; }
}
@media (max-height: 560px) { .cue, .ring { display: none; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; transition-delay: 0s !important; }
  .in-seq { opacity: 1; transform: none; }
  .lit-text .w { opacity: 1; }
  .leaf-mark use { stroke-dashoffset: 0; }
  .frame img { transform: none; }
  .timeline::after { transform: none; }
  .svc { position: relative; top: auto; transform: none; }
}
