/* Velvet Rocket — site styles */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit.woff2") format("woff2-variations"),
       url("/assets/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #07081a;
  --ink-2: #0c1030;
  --text: #f5f2ef;
  --muted: rgba(232, 228, 240, .74);
  --faint: rgba(232, 228, 240, .16);
  --line: rgba(255, 255, 255, .14);
  --peach: #f3bf9b;
  --peach-2: #e79e78;
  --accent-grad: linear-gradient(100deg, #f8d3b5 0%, #f0b08a 55%, #e3936f 100%);
  --glass: rgba(14, 16, 44, .42);
  --glass-hi: rgba(255, 255, 255, .06);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --header: clamp(4.5rem, 9vh, 6.5rem);
  --font: "Outfit", ui-sans-serif, "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
svg { display: block; }
em { font-style: normal; }
::selection { background: rgba(243, 191, 155, .85); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: .75rem 1.1rem; border-radius: 999px;
  background: var(--text); color: var(--ink); font-weight: 500;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.accent, h2 em, .statement em {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Background ---------- */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.6s ease; }
.bg.ready canvas { opacity: 1; }
.bg-fallback {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 75% 30%, rgba(90, 110, 255, .45), transparent 70%),
    radial-gradient(35% 30% at 85% 70%, rgba(240, 160, 120, .35), transparent 70%),
    radial-gradient(45% 40% at 55% 55%, rgba(150, 70, 200, .30), transparent 70%),
    linear-gradient(160deg, #0a0c26, #07081a 60%);
  filter: blur(30px);
  transition: opacity 1.6s ease;
}
.bg.ready .bg-fallback { opacity: 0; }
.veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 20, .72) 0%, rgba(5, 6, 20, .35) 45%, rgba(5, 6, 20, 0) 75%),
    rgba(5, 6, 20, var(--veil, 0));
  transition: background-color .2s linear;
}
.grain {
  position: absolute; inset: -50%;
  opacity: .07; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center; gap: 2rem;
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 8, 26, .45);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .06);
}

.brand { display: flex; align-items: flex-start; gap: .35rem; margin-right: auto; padding: .5rem 0; }
.brand-word {
  display: flex; flex-direction: column;
  font-weight: 300; text-transform: uppercase;
  font-size: clamp(1.05rem, .8rem + .9vw, 1.6rem);
  letter-spacing: .26em; line-height: 1.02;
}
.brand-word .accent { font-weight: 400; }
.spark { fill: var(--peach); }
.brand-spark { width: clamp(1.1rem, .8rem + 1vw, 1.7rem); margin-top: -.35em; transition: transform .9s var(--ease); }
.brand:hover .brand-spark { transform: rotate(90deg) scale(1.1); }

.nav { display: flex; gap: clamp(1.5rem, 3vw, 3rem); }
.nav a {
  position: relative;
  font-size: .82rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  padding: .75rem 0;
  color: rgba(245, 242, 239, .86);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: .2em; bottom: .45rem; height: 1px;
  background: var(--peach); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }

.menu-btn {
  position: relative; z-index: 60;
  width: 48px; height: 48px; margin-right: -10px;
  display: grid; place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer; border-radius: 50%;
}
.menu-btn span {
  display: block; height: 1.5px; width: 26px; background: var(--text); border-radius: 2px;
  transition: transform .5s var(--ease), opacity .3s, width .5s var(--ease);
}
.menu-btn span:nth-child(2) { width: 20px; justify-self: end; }
.menu-btn span:nth-child(3) { width: 14px; justify-self: end; }
.menu-btn:hover span { width: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { width: 26px; transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Menu overlay ---------- */

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: grid; align-items: center;
  padding: var(--header) var(--gutter) 2rem;
  background: rgba(6, 7, 22, .82);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease), visibility 0s .6s;
}
.menu[hidden] { display: grid; }
.menu.open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.menu ol { display: grid; gap: clamp(.25rem, 1.5vh, 1rem); }
.menu a {
  display: inline-flex; align-items: baseline; gap: 1.25rem;
  font-size: clamp(2.4rem, 1.5rem + 5vw, 5.5rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em;
  opacity: 0; transform: translateY(40px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}
.menu a .n { min-width: 1.75rem; font-variant-numeric: tabular-nums; font-size: .8rem; letter-spacing: .2em; color: var(--peach); transform: translateY(-1.6em); }
.menu a:hover { color: var(--peach); }
.menu.open a { opacity: 1; transform: none; }
.menu.open li:nth-child(1) a { transition-delay: .08s; }
.menu.open li:nth-child(2) a { transition-delay: .14s; }
.menu.open li:nth-child(3) a { transition-delay: .2s; }
.menu.open li:nth-child(4) a { transition-delay: .26s; }
.menu.open li:nth-child(5) a { transition-delay: .32s; }

/* ---------- Section dots ---------- */

.dots {
  position: fixed; right: clamp(1rem, 2vw, 2rem); top: 50%; z-index: 30;
  transform: translateY(-50%);
  display: grid; gap: .25rem;
}
.dots a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.dots a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transition: transform .5s var(--ease), background-color .4s;
}
.dots a:hover::before { background: var(--text); }
.dots a.active::before { background: var(--peach); transform: scale(1.7); }

/* ---------- Panels ---------- */

.panel {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header) + 1rem) var(--gutter) clamp(2rem, 6vh, 4rem);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; }

.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-size: .78rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1rem, 2.5vh, 1.75rem);
}
.eyebrow span { color: var(--peach); }
.eyebrow::after { content: ""; width: 3rem; height: 1px; background: var(--peach); opacity: .7; order: 1; }
.eyebrow span { order: 0; }

h2 {
  font-weight: 300;
  font-size: clamp(2.2rem, min(1.2rem + 4.2vw, 7.4svh), 4.6rem);
  line-height: 1.04; letter-spacing: -.025em;
  text-wrap: balance;
}
h3 { font-weight: 400; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.005em; }

.sec-head { display: grid; align-content: start; }
.sec-head.row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: clamp(1.5rem, 5vh, 3.5rem); }
.sec-head.row .sec-lede { max-width: 26rem; margin: 0; }
.sec-head.center { justify-items: center; text-align: center; margin-bottom: clamp(2rem, 7vh, 5rem); }
.sec-lede { margin-top: clamp(1rem, 2.5vh, 1.5rem); max-width: 30rem; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); text-wrap: pretty; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }

/* ---------- Hero ---------- */

.hero { padding-bottom: clamp(4rem, 10vh, 6rem); }
.hero-title {
  font-weight: 400;
  font-size: clamp(2.4rem, min(14vw, 8svh), 7.2rem);
  line-height: 1.0; letter-spacing: -.03em;
  max-width: 11.5ch;
}
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
.hero-title .w > span { display: inline-block; }
.hero-title .accent { font-weight: 400; }

.hero-mark { display: grid; gap: clamp(.8rem, 2vh, 1.4rem); margin: clamp(1.1rem, 3vh, 2.2rem) 0 clamp(.9rem, 2.6vh, 1.8rem); }
.hero-mark .rule { width: 6.25rem; height: 2px; background: var(--accent-grad); border-radius: 2px; }
.hero-mark .spark { width: clamp(2.4rem, 5vh, 3.4rem); }
.twinkle { animation: twinkle 6s var(--ease-io) infinite; transform-origin: 50% 50%; }
@keyframes twinkle {
  0%, 100% { transform: rotate(0) scale(1); opacity: 1; }
  45% { transform: rotate(0) scale(1); }
  55% { transform: rotate(90deg) scale(.82); opacity: .8; }
  65% { transform: rotate(90deg) scale(1); opacity: 1; }
}

.lede { max-width: 31rem; color: var(--muted); font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem); line-height: 1.5; text-wrap: pretty; }

.btn {
  --h: 4.25rem;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem;
  height: var(--h); padding: 0 2rem 0 2.6rem;
  margin-top: clamp(1.5rem, 4vh, 2.6rem);
  border-radius: 999px;
  font-size: .9rem; font-weight: 400; letter-spacing: .28em; text-transform: uppercase;
  background: rgba(8, 9, 28, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 0; cursor: pointer;
  transition: transform .6s var(--ease), color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: linear-gradient(100deg, rgba(255, 255, 255, .85), rgba(243, 191, 155, .9) 60%, rgba(231, 158, 120, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -2;
  background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.btn svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.btn:hover { color: var(--ink); }
.btn:hover::after { transform: scaleX(1); }
.btn:hover svg { transform: translateX(6px); }
.btn:active { transform: scale(.98); }

.scroll-cue {
  position: absolute; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: 44px; height: 44px; margin-left: -22px;
  display: grid; place-items: center;
}
.scroll-cue span { width: 1px; height: 2.6rem; background: linear-gradient(var(--peach), transparent); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--text); animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  padding: clamp(1.25rem, 3vh, 2rem) clamp(1.25rem, 2vw, 1.75rem);
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid var(--line);
  transition: transform .7s var(--ease), border-color .4s, background-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(243, 191, 155, .18), transparent 70%);
  transition: opacity .4s;
}
.card:hover { border-color: rgba(243, 191, 155, .45); }
.card:hover::before { opacity: 1; }
.card .num { display: block; font-size: .78rem; letter-spacing: .2em; color: var(--peach); margin-bottom: clamp(1.5rem, 5vh, 3.5rem); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Work ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(20rem, 52svh, 30rem);
  border-radius: 26px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--ink-2);
}
.art { position: absolute; inset: -12%; z-index: -1; transition: transform 1.4s var(--ease); filter: saturate(1.15); }
.art::before, .art::after { content: ""; position: absolute; inset: 0; }
.art::after { background: linear-gradient(180deg, rgba(7, 8, 26, 0) 30%, rgba(7, 8, 26, .78) 72%, rgba(7, 8, 26, .95)); }
.art-a::before {
  background:
    radial-gradient(42% 36% at 30% 30%, #f6c4a2 0%, transparent 70%),
    radial-gradient(50% 45% at 72% 42%, #5562ff 0%, transparent 70%),
    radial-gradient(60% 50% at 40% 70%, #8b3fd1 0%, transparent 70%),
    #0b0d2b;
  filter: blur(18px);
  animation: drift 18s var(--ease-io) infinite alternate;
}
.art-b::before {
  background:
    conic-gradient(from 210deg at 60% 40%, #0b0d2b, #2b46ff, #79e0ff, #f3bf9b, #9b3fcf, #0b0d2b);
  filter: blur(34px);
  animation: spin 26s linear infinite;
}
.art-c::before {
  background:
    radial-gradient(45% 40% at 70% 25%, #ff9b7a 0%, transparent 70%),
    radial-gradient(55% 50% at 25% 45%, #3a2bd8 0%, transparent 70%),
    radial-gradient(50% 40% at 70% 70%, #d64fa8 0%, transparent 70%),
    #0b0d2b;
  filter: blur(20px);
  animation: drift 22s var(--ease-io) infinite alternate-reverse;
}
@keyframes drift { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg) scale(1.2); } }
.tile:hover .art { transform: scale(1.06); }
.tile-body { padding: clamp(1.25rem, 2.2vw, 2rem); }
.kicker { display: block; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--peach); margin-bottom: .75rem; }
.tile h3 { font-size: clamp(1.4rem, 1.1rem + .8vw, 1.9rem); font-weight: 300; margin-bottom: .55rem; }
.tile p { color: var(--muted); font-size: .98rem; max-width: 24rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.tags li { font-size: .74rem; letter-spacing: .06em; padding: .38rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: rgba(245, 242, 239, .85); }

/* ---------- Process ---------- */

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px;
}
.steps::before { background: var(--faint); }
.steps::after {
  background: var(--accent-grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 2.2s var(--ease) .35s;
}
.in .steps::after { transform: scaleX(1); }
.step { position: relative; padding-top: 2.5rem; }
.node { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 1px solid var(--peach); }
.node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--peach); transform: scale(0); transition: transform .6s var(--ease) calc(.6s + var(--i, 0) * .25s); }
.in .node::after { transform: scale(1); }
.step .t { display: block; font-size: .78rem; letter-spacing: .22em; color: var(--peach); margin-bottom: .7rem; }
.step h3 { margin-bottom: .55rem; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem); font-weight: 300; }
.step p { color: var(--muted); font-size: .98rem; max-width: 18rem; }

/* ---------- About ---------- */

.statement {
  font-size: clamp(1.9rem, min(1rem + 3.6vw, 6.4svh), 4.1rem);
  line-height: 1.12; max-width: 22ch; letter-spacing: -.02em;
}
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); margin-top: clamp(2rem, 7vh, 5rem); padding-top: clamp(1.5rem, 4vh, 2.5rem); border-top: 1px solid var(--line); }
.principles li { display: flex; gap: 1rem; align-items: flex-start; }
.principles .spark { width: 1rem; flex: none; margin-top: .25rem; }
.principles h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.principles p { color: var(--muted); font-size: .96rem; }

/* ---------- Contact ---------- */

.contact { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
.form {
  display: grid; gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid var(--line);
}
.field { position: relative; }
.field input, .field textarea {
  width: 100%; display: block;
  padding: 1.55rem 1.1rem .6rem;
  font-size: 1rem; /* ≥16px: no iOS zoom */
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  outline: none; resize: none;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { min-height: 6.5rem; }
.field label {
  position: absolute; left: 1.1rem; top: 1.08rem;
  color: var(--muted); font-size: 1rem; pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--peach); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(243, 191, 155, .12); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-.6rem) scale(.74); color: var(--peach); }
.field.invalid input, .field.invalid textarea { border-color: #ff8f8f; }
.form .btn { margin-top: .25rem; width: 100%; --h: 3.75rem; }
.btn.solid { background: transparent; }
.form-status { min-height: 1.4em; font-size: .95rem; color: var(--peach); }
.form-status:empty { display: none; }

.site-footer {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem var(--gutter) max(1.25rem, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .82rem; letter-spacing: .08em; color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.to-top { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 0; letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; transition: color .3s; }
.to-top svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.to-top:hover { color: var(--text); }
.to-top:hover svg { transform: translateY(-4px); }

/* ---------- Reveal system ---------- */

.js .r {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(6px);
  transition:
    opacity .9s var(--ease) calc(var(--i, 0) * 80ms),
    transform 1.2s var(--ease) calc(var(--i, 0) * 80ms),
    filter .9s var(--ease) calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.js .in .r { opacity: 1; transform: none; filter: none; }
.js .card.r.in-done { transition: transform .7s var(--ease), border-color .4s, background-color .4s; }

.js .hero-title .w > span { transform: translate3d(0, 110%, 0); transition: transform 1.25s var(--ease) calc(.15s + var(--i) * 65ms); }
.js .in .hero-title .w > span { transform: none; }

.js .site-header { opacity: 0; transform: translateY(-14px); transition: opacity 1s var(--ease) .2s, transform 1s var(--ease) .2s, background-color .5s, border-color .5s; }
.js.loaded .site-header { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .dots { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3.5vh, 2rem); }
  .services { gap: .75rem; }
  .card .num { margin-bottom: clamp(.75rem, 2vh, 1.25rem); }
  .tiles {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 22rem);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) .25rem;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; min-height: clamp(19rem, 54svh, 28rem); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: clamp(1rem, 3vh, 1.75rem); padding-left: 2.25rem; }
  .steps::before, .steps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .in .steps::after { transform: scaleY(1); }
  .step { padding-top: 0; }
  .node { left: -2.25rem; top: .1rem; }
  .step .t { margin-bottom: .3rem; }
  .step h3 { margin-bottom: .25rem; }
  .sec-head.center { justify-items: start; text-align: left; margin-bottom: clamp(1.25rem, 4vh, 2.5rem); }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
}

@media (max-width: 600px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; padding: 1rem 1.15rem; border-radius: 18px; }
  .card .num { grid-row: span 2; margin: .2rem 0 0; }
  .card h3 { font-size: 1.12rem; margin-bottom: .2rem; }
  .card p { font-size: .92rem; }
  .btn { --h: 3.9rem; gap: 2rem; padding: 0 1.6rem 0 2rem; font-size: .82rem; }
  .sec-head.row .sec-lede { display: none; }
  .site-footer { font-size: .76rem; }
}

/* Compact phones (iPhone SE / mini, small Androids) */
@media (max-width: 600px) and (max-height: 840px) {
  .panel { padding-top: calc(var(--header) + .25rem); padding-bottom: 1.5rem; }
  .hero { padding-bottom: 3.5rem; }
  .hero-mark .spark { display: none; }
  .hero-mark { margin: 1rem 0 .9rem; }
  .lede { font-size: 1rem; }
  .btn { margin-top: 1.25rem; --h: 3.5rem; }
  #services .sec-lede, #contact .sec-lede { display: none; }
  .services { gap: .5rem; }
  .card { padding: .8rem 1rem; }
  .card p { font-size: .86rem; line-height: 1.45; }
  .steps { gap: .9rem; }
  .step p { font-size: .9rem; line-height: 1.45; }
  .form { gap: .7rem; padding: 1rem; }
  .field textarea { min-height: 4.75rem; }
  .contact { padding-bottom: 4rem; }
}

/* Short screens (landscape phones): let content breathe, relax snapping */
@media (max-height: 620px) {
  html { scroll-snap-type: y proximity; }
  .panel { scroll-snap-stop: normal; }
  .site-footer { position: static; padding-inline: 0; margin-top: 2rem; }
  .scroll-cue { display: none; }
}

@media (hover: none) {
  .card::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .js .r, .js .hero-title .w > span, .js .site-header { transform: none !important; filter: none !important; transition: opacity .6s ease !important; }
  .steps::after, .node::after { transition: none !important; }
}

/* ---------- Contact extras ---------- */

.sec-mail { margin-top: 1rem; color: var(--muted); font-size: .98rem; }
.sec-mail a {
  color: var(--text);
  background: linear-gradient(var(--peach), var(--peach)) left bottom / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color .3s, background-size .5s var(--ease);
  overflow-wrap: anywhere;
}
.sec-mail a:hover { color: var(--peach); }
.footer-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
button.to-top { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; }

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed; z-index: 70;
  right: clamp(.75rem, 2vw, 1.75rem);
  bottom: calc(clamp(.75rem, 2vw, 1.75rem) + env(safe-area-inset-bottom));
  width: min(27.5rem, calc(100vw - 1.5rem));
  border-radius: 26px;
  isolation: isolate;
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.97);
  filter: blur(10px);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
}
.consent.in { opacity: 1; transform: none; filter: none; }
.consent:not(.in) { pointer-events: none; transition-duration: .45s; }

/* soft breathing glow behind the glass */
.consent-glow {
  position: absolute; inset: -18% -10%; z-index: -2;
  border-radius: 50%;
  background:
    radial-gradient(45% 55% at 25% 30%, rgba(243, 191, 155, .32), transparent 70%),
    radial-gradient(50% 60% at 80% 75%, rgba(96, 110, 255, .30), transparent 70%);
  filter: blur(42px);
  opacity: .65;
  animation: consentGlow 7s var(--ease-io) infinite alternate;
  pointer-events: none;
}
@keyframes consentGlow { from { opacity: .45; transform: scale(.96); } to { opacity: .8; transform: scale(1.04); } }

.consent-inner {
  position: relative; overflow: hidden;
  display: grid; gap: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(243, 191, 155, .10), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(96, 110, 255, .12), transparent 60%),
    linear-gradient(160deg, rgba(24, 27, 70, .78), rgba(9, 10, 30, .88));
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .10) inset,
    0 30px 80px -20px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(255, 255, 255, .06);
}
/* gradient hairline border */
.consent-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(248, 211, 181, .65), rgba(255, 255, 255, .08) 40%, rgba(120, 132, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* fine satin grain */
.consent-inner::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.consent-head { display: flex; align-items: center; gap: .75rem; }
.consent-mark {
  width: 2.25rem; height: 2.25rem; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(243, 191, 155, .28), rgba(243, 191, 155, .06));
  box-shadow: 0 0 0 1px rgba(243, 191, 155, .3) inset, 0 0 24px rgba(243, 191, 155, .25);
}
.consent-mark svg { width: .85rem; fill: var(--peach); }
.consent.in .consent-mark svg { animation: twinkle 6s var(--ease-io) 1s infinite; }
.consent h2 { font-size: 1.2rem; font-weight: 400; letter-spacing: -.005em; line-height: 1.2; }
.consent-desc { color: var(--muted); font-size: .93rem; line-height: 1.55; text-wrap: pretty; }

.consent-prefs { display: grid; gap: .5rem; }
.consent.expanded .consent-prefs { animation: prefsIn .6s var(--ease) both; }
@keyframes prefsIn { from { opacity: 0; transform: translateY(8px); } }
.pref {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem .9rem; border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.pref:hover { background: rgba(255, 255, 255, .065); }
div.pref { cursor: default; }
.pref-text { display: grid; gap: .1rem; min-width: 0; }
.pref-title { font-size: .95rem; font-weight: 400; }
.pref-desc { font-size: .8rem; color: var(--muted); line-height: 1.4; }

.switch {
  appearance: none; -webkit-appearance: none; flex: none;
  position: relative; width: 46px; height: 28px; margin: 0;
  border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  transition: background .35s var(--ease), box-shadow .35s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #f5f2ef; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .45s var(--ease);
}
.switch:checked { background: var(--accent-grad); box-shadow: 0 0 16px rgba(243, 191, 155, .35); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { cursor: not-allowed; opacity: .55; }
.switch:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }

.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .25rem; }
.c-btn {
  position: relative; flex: 1 1 auto;
  min-height: 44px; padding: 0 1.1rem;
  border-radius: 999px; cursor: pointer;
  font-size: .76rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease), box-shadow .4s;
}
.c-btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.c-btn:active { transform: scale(.97); }
.c-primary {
  color: var(--ink); border-color: transparent;
  background: var(--accent-grad);
  box-shadow: 0 8px 24px -8px rgba(243, 166, 120, .55);
}
.c-primary:hover { background: var(--accent-grad); box-shadow: 0 10px 30px -6px rgba(243, 166, 120, .75); border-color: transparent; }
.c-link { flex: 0 0 auto; background: none; border-color: transparent; padding: 0 .6rem; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(243, 191, 155, .5); text-underline-offset: 4px; }
.c-link:hover { background: none; border-color: transparent; color: var(--text); }
.consent.expanded .c-link { flex: 1 1 100%; order: 3; color: var(--ink); background: var(--text); text-decoration: none; }
.consent.expanded .c-link:hover { background: #fff; }

.consent-open .dots { opacity: 0; pointer-events: none; }
.dots { transition: opacity .5s var(--ease); }

@media (max-width: 600px) {
  .consent { left: .75rem; right: .75rem; width: auto; border-radius: 22px; }
  .consent-inner { padding: 1.25rem 1.1rem 1.1rem; gap: .85rem; }
  .c-btn { flex: 1 1 40%; }
  .c-link { flex: 1 1 100%; order: 3; min-height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .consent { filter: none !important; transform: none !important; transition: opacity .4s ease !important; }
  .consent-glow { animation: none; }
}
.consent-prefs[hidden] { display: none; }
@media (min-width: 601px) {
  .c-btn { flex: 1 1 0; padding: 0 .9rem; letter-spacing: .12em; }
  .c-link { flex: 0 0 auto; padding: 0 .4rem; }
}
.c-btn { white-space: nowrap; }
@media (min-width: 601px) { .c-btn { font-size: .72rem; letter-spacing: .1em; padding: 0 .75rem; } }
