/* OVVY · site 2026
   Display font: Inter (opsz) as stand-in for Real Head Pro.
   To switch to Real Head Pro, drop the licensed .woff2 files in /assets/fonts/,
   uncomment the @font-face block below and change --font-sans. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-opsz.woff2") format("woff2-variations"), url("../fonts/inter-latin-opsz.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Chivo Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/chivo-mono-latin-400.woff2") format("woff2"); }

/*
@font-face { font-family: "Real Head Pro"; src: url("../fonts/RealHeadPro-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Real Head Pro"; src: url("../fonts/RealHeadPro-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
*/

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Chivo Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --bg: #ffffff;
  --bg-rgb: 255, 255, 255;
  --ink: #1a1a1c;
  --ink-2: #1e1e1e;
  --muted: #707070;
  --muted-2: #6f6f6f;
  --line: #d9d9d9;
  --line-2: #e0e0e0;
  --surface: #f0f0f2;
  --placeholder: #eaeaea;
  --toggle: #f1f1f2;
  --accent: #1a1a1c;
  --accent-ink: #ffffff;
  --violet: #7c4dff;

  --svc-1: #e2daf2;
  --svc-2: #c8f0bd;
  --svc-3: #f6c8c1;
  --svc-4: #f2e9c6;

  --t1: #705261;
  --t2: #2f4236;
  --t3: #4a0de3;

  --maxw: 1680px;
  --pad: max(40px, calc((100vw - var(--maxw)) / 2));
  --nav-h: 80px;
  --radius-card: 32px;

  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-io: cubic-bezier(0.42, 0, 0.58, 1);
  --ease-lines: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c0c10;
  --bg-rgb: 12, 12, 16;
  --ink: #f1f0ec;
  --ink-2: #f1f0ec;
  --muted: #99998f;
  --muted-2: #99998f;
  --line: #2e2e35;
  --line-2: #2e2e35;
  --surface: #1c1c22;
  --placeholder: #1c1c22;
  --toggle: #1c1c22;
  --accent: #7c4dff;
  --accent-ink: #ffffff;
  --t1: #3d2c35;
  --t2: #1d2a22;
  --t3: #3510a8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color .4s var(--ease-io), color .4s var(--ease-io);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
blockquote { margin: 0; }
.logo-mask {
  display: block; width: 100%; aspect-ratio: 548 / 163.44;
  background: currentColor;
  -webkit-mask: url("/assets/img/brand/ovvy-logo.svg") center / contain no-repeat;
  mask: url("/assets/img/brand/ovvy-logo.svg") center / contain no-repeat;
}
.two-lines { max-width: 5.4em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 999px; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(11px, calc(11.26px + .19vw), 14px);
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.2;
}
.muted { color: var(--muted); }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Type scale (1440 → 390) ---------- */
.t-display { font-size: clamp(40px, calc(31.09px + 2.286vw), 64px); line-height: .98; letter-spacing: -.03em; font-weight: 500; }
.t-display-xl { font-size: clamp(40px, calc(28.86px + 2.857vw), 70px); line-height: .98; letter-spacing: -.02em; font-weight: 500; }
.t-h2 { font-size: clamp(40px, calc(32.57px + 1.905vw), 60px); line-height: 1.04; letter-spacing: -.02em; font-weight: 500; }
.t-statement { font-size: clamp(26px, calc(17.83px + 2.095vw), 48px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; }
.t-quote { font-size: clamp(22px, calc(18.29px + .952vw), 32px); line-height: 1.32; letter-spacing: -.01em; font-weight: 500; }

/* ---------- Reveal presets ---------- */
.js [data-reveal] { opacity: 0; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(60px); }
.js [data-reveal="down"] { transform: translateY(-60px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease-lines); transition-delay: calc(var(--i, 0) * 70ms); }
.is-in .split-line > span { transform: none; }
.js [data-split]:not(.is-split) { visibility: hidden; }

/* ---------- Buttons / links ---------- */
.link-plus { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(16px, calc(15.26px + .19vw), 18px); font-weight: 500; position: relative; padding-bottom: 6px; white-space: nowrap; }
.link-plus::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 15%; background: currentColor; transition: width .35s var(--ease-io); }
.link-plus:hover::after { width: 100%; }
.link-plus .ico { font-weight: 400; transition: transform .35s var(--ease-io); color: var(--accent); }
:root:not([data-theme="dark"]) .link-plus .ico { color: inherit; }
.link-plus:hover .ico { transform: translateX(4px) rotate(90deg); }
.link-plus .ico.arrow { display: inline-block; }
.link-plus:hover .ico.arrow { transform: translate(3px, -3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad);
  background: rgba(var(--bg-rgb), .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .4s var(--ease-io);
}
.nav-left { display: flex; align-items: center; gap: 28px; }
.nav-logo { display: block; width: 86px; color: var(--ink); }
.nav-logo svg { width: 100%; height: auto; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 18px; }

.lang { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .02em; }
.lang button { display: inline-flex; align-items: center; gap: 6px; opacity: .62; font-weight: 500; transition: opacity .25s; }
.lang button[aria-pressed="true"] { opacity: 1; font-weight: 700; }
.lang button:hover { opacity: 1; }
.lang .flag { width: 17px; height: 12px; border-radius: 2px; overflow: hidden; flex: none; }
.lang .sep { opacity: .5; font-weight: 300; }

.theme-toggle { position: relative; width: 58px; height: 30px; border-radius: 999px; background: var(--toggle); border: 1px solid var(--line-2); transition: background-color .4s; }
.theme-toggle .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .45s var(--ease-out), background-color .4s; }
.theme-toggle .knob svg { width: 12px; height: 12px; color: var(--bg); }
:root[data-theme="dark"] .theme-toggle .knob { transform: translateX(28px); background: var(--violet); }
:root[data-theme="dark"] .theme-toggle .knob svg { color: #fff; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.menu-btn { display: inline-flex; align-items: center; gap: 16px; height: 40px; }
.menu-btn .mono { font-size: 12px; letter-spacing: .06em; }
.plus { position: relative; width: 22px; height: 22px; display: inline-block; }
.plus i { position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--accent); transition: transform .35s var(--ease-io); }
:root:not([data-theme="dark"]) .plus i { background: var(--ink); }
.plus i:last-child { transform: rotate(90deg); }
.menu-btn:hover .plus i:first-child { transform: translateY(4px); }
.menu-btn:hover .plus i:last-child { transform: translateY(-4px); }
.nav-right .theme-toggle { display: none; }
.menu-open .menu-btn .plus i:first-child { transform: rotate(45deg); }
.menu-open .menu-btn .plus i:last-child { transform: rotate(-45deg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(var(--bg-rgb), .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: translateY(-100%);
  transition: transform .6s cubic-bezier(.7, 0, .3, 1), visibility 0s linear .6s;
  visibility: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(var(--nav-h) + min(60px, 6vh)) var(--pad) 40px;
  overflow-y: auto;
}
.menu-open .menu { transform: none; visibility: visible; transition: transform .6s cubic-bezier(.7, 0, .3, 1), visibility 0s; }
.menu-top { display: flex; justify-content: center; text-align: center; }
.menu-tagline { color: var(--muted); font-size: clamp(16px, calc(13.77px + .571vw), 24px); }
.menu-body { display: grid; grid-template-columns: 1fr auto; align-items: start; margin-top: min(56px, 5vh); gap: 40px; }
.menu-list li { display: flex; align-items: center; gap: 30px; }
.menu-list .mono { width: 62px; flex: none; }
.menu-list a { position: relative; display: inline-block; font-size: clamp(36px, min(calc(35.09px + 2.286vw), 8.4vh), 68px); line-height: 1.38; letter-spacing: -.02em; font-weight: 500; }
.menu-list a::after { content: ""; position: absolute; left: 0; bottom: .18em; height: 2px; width: 0; background: currentColor; opacity: 0; transition: width .35s var(--ease-io), opacity .35s var(--ease-io); }
.menu-list a:hover::after, .menu-list a[aria-current="page"]::after { width: 100%; opacity: 1; }
.menu-list li { opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.menu-open .menu-list li { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 60ms); }
.menu-social { display: flex; gap: 10px; color: var(--muted); padding-top: 40px; }
.menu-social a:hover { color: var(--ink); }
.menu-bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: min(40px, 3vh); flex-wrap: wrap; }
.menu-mail { position: relative; font-size: clamp(24px, calc(17.31px + 1.524vw), 40px); letter-spacing: -.01em; padding-bottom: 10px; }
.menu-mail::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: currentColor; transition: width .35s var(--ease-io); }
.menu-mail:hover::after { width: 100%; }
.menu .lang-mobile { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 16px); }
.hero-top { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--pad); }
.hero-loc { position: absolute; left: var(--pad); top: 6px; }
.hero-plus { position: absolute; right: calc(var(--pad) + 2px); top: 0; font-size: 30px; font-weight: 400; line-height: 1; }
.hero-logo { width: clamp(200px, 38vw, 620px); color: var(--ink); margin-top: 8px; }
.hero-logo svg { width: 100%; height: auto; }
.hero-tag { margin-top: clamp(18px, 2.4vw, 34px); font-size: clamp(15px, calc(11.66px + .857vw), 24px); letter-spacing: -.005em; }
.hero-row { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--pad); padding-top: clamp(28px, 4.5vh, 56px); margin-bottom: 16px; }
.hero-row .socials { display: flex; gap: 8px; }
.hero-row .socials a:hover { color: var(--muted); }

.panels { position: relative; height: clamp(300px, calc(100svh - 400px), 690px); overflow: hidden; }
.panels::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg), rgba(var(--bg-rgb), 0) 9%, rgba(var(--bg-rgb), 0) 91%, var(--bg)); z-index: 2; }
.marquee-track { display: flex; width: max-content; height: 100%; animation: marquee var(--dur, 60s) linear infinite; will-change: transform; }
.marquee-set { display: flex; height: 100%; gap: var(--gap, 12px); padding-right: var(--gap, 12px); }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--shift, -50%), 0, 0); } }
.logos:hover .marquee-track { animation-play-state: paused; }
.panel { position: relative; height: 100%; aspect-ratio: 181 / 520; overflow: hidden; background: var(--placeholder); border-radius: 80px 0 80px 0; flex: none; }
.panel:nth-child(even) { border-radius: 0 80px 0 80px; }
.panel img, .panel video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- About / statement ---------- */
.about { padding: clamp(70px, 7.6vw, 110px) var(--pad) clamp(60px, 7.6vw, 110px); display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 4.4vw, 64px); }
.about-statement { max-width: 880px; text-align: center; font-size: clamp(26px, calc(17.83px + 2.095vw), 48px); line-height: 1.1; letter-spacing: -.02em; }

.logos { position: relative; width: 100%; height: 44px; overflow: hidden; }
.logos::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg), rgba(var(--bg-rgb), 0) 12.5%, rgba(var(--bg-rgb), 0) 87.5%, var(--bg)); }
.logos .marquee-set { --gap: clamp(44px, 5.5vw, 80px); align-items: center; }
.logos img { height: 32px; width: auto; opacity: .8; }
:root[data-theme="dark"] .logos img { filter: invert(1) brightness(1.2); opacity: .7; }

/* ---------- Section heads ---------- */
.sec { padding: 40px var(--pad) 120px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.sec-head .mono { padding-bottom: 8px; }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; row-gap: 56px; margin-top: 52px; }
.proj { display: flex; flex-direction: column; gap: 16px; }
.proj-media { position: relative; aspect-ratio: 660 / 800; max-height: 86svh; border-radius: var(--radius-card); overflow: hidden; background: var(--placeholder); isolation: isolate; }
.proj-media::after, .post-media::after, .case-cover::after, .case-gallery figure::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; z-index: 1; }
:root[data-theme="dark"] .proj-media::after, :root[data-theme="dark"] .post-media::after, :root[data-theme="dark"] .case-cover::after, :root[data-theme="dark"] .case-gallery figure::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform .9s var(--ease-out), filter .6s var(--ease-io); }
.proj-cta { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -40%); opacity: 0; transition: opacity .45s var(--ease-io), transform .45s var(--ease-io); background: #fff; color: #1a1a1c; border-radius: 999px; padding: 12px 22px; font-size: 14px; white-space: nowrap; }
.proj:hover .proj-media img { transform: scale(1.06); filter: brightness(.82); }
.proj:hover .proj-cta { opacity: 1; transform: translate(-50%, -50%); }
.proj-cap { position: relative; padding-top: 12px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; letter-spacing: .01em; text-transform: uppercase; }
.proj-cap::before { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--line); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out) .15s; }
.is-in .proj-cap::before, .no-js .proj-cap::before { transform: none; }
.proj-cap .date { color: var(--muted); }
.proj-cat { display: none; }
.skeleton .proj-media { animation: pulse 1.6s ease-in-out infinite; }
.skeleton .proj-cap::before { transform: none; }
@keyframes pulse { 50% { opacity: .55; } }
.projects-more { display: flex; justify-content: center; margin-top: 64px; }
.btn-pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; transition: background-color .35s var(--ease-io), color .35s var(--ease-io), border-color .35s; }
.btn-pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Services ---------- */
.services { padding: 40px 0 120px var(--pad); overflow: hidden; }
.services .sec-head { padding-right: var(--pad); }
.svc-wrap { position: relative; margin-top: 56px; }
.svc-track { display: flex; gap: 24px; padding-top: 10px; margin-top: -10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-right: var(--pad); scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; }
.svc-track::-webkit-scrollbar { display: none; }
.svc-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.svc-track.dragging * { pointer-events: none; }
.svc { flex: none; width: clamp(300px, 31.7vw, 456px); aspect-ratio: 456 / 494; border-radius: 24px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; position: relative; color: #1a1a1c; scroll-snap-align: start; transition: transform .5s var(--ease-out); user-select: none; }
.svc:nth-child(1) { background: var(--svc-1); }
.svc:nth-child(2) { background: var(--svc-2); }
.svc:nth-child(3) { background: var(--svc-3); }
.svc:nth-child(4) { background: var(--svc-4); }
.svc:hover { transform: translateY(-6px); }
.svc-shape { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; background: #1a1a1c; transition: transform .7s var(--ease-out); }
.svc:hover .svc-shape { transform: rotate(90deg) scale(1.25); }
.svc-shape.s1 { border-radius: 14px 0 14px 0; }
.svc-shape.s2 { border-radius: 4px; }
.svc-shape.s3 { border-radius: 0 14px 0 14px; }
.svc-shape.s4 { border-radius: 50%; }
.svc-body { display: flex; flex-direction: column; gap: 12px; }
.svc-body p { font-size: 14px; line-height: 1.45; max-width: 396px; }
.svc-fade { position: absolute; top: 0; right: 0; bottom: 0; width: 12%; pointer-events: none; background: linear-gradient(90deg, rgba(var(--bg-rgb), 0), var(--bg)); }
.svc-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 32px; border-radius: 999px; background: var(--line-2); display: grid; place-items: center; font-size: 22px; line-height: 1; transition: opacity .3s, background-color .3s, color .3s; }
.svc-nav:hover { background: var(--ink); color: var(--bg); }
.svc-nav.next { right: var(--pad); }
.svc-nav.prev { left: 0; }
.svc-nav[hidden] { display: none; }

/* ---------- Metrics ---------- */
.metrics { padding: 100px var(--pad) 120px; display: flex; flex-direction: column; gap: clamp(56px, 9.7vw, 140px); }
.metrics-statement { max-width: 860px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.stat-num { font-size: clamp(36px, calc(34.51px + .381vw), 40px); letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 16px; color: var(--muted-2); font-size: clamp(15px, calc(13.89px + .286vw), 18px); line-height: 1.45; max-width: 310px; }

/* ---------- Testimonials (stacking) ---------- */
.testimonials { padding: 100px var(--pad) 120px; }
.t-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 780px; margin: 0 auto; }
.t-stack { display: flex; flex-direction: column; gap: 32px; margin-top: 64px; }
.t-card {
  position: sticky; top: calc(var(--nav-h) + 20px);
  height: min(880px, calc(100svh - var(--nav-h) - 60px)); min-height: 520px;
  display: grid; grid-template-columns: 650fr 710fr;
  border-radius: var(--radius-card); overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
.t-side { position: relative; color: #fff; padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.t-card:nth-child(1) .t-side { background: var(--t1); }
.t-card:nth-child(2) .t-side { background: var(--t2); }
.t-card:nth-child(3) .t-side { background: var(--t3); }
.t-side::before { content: ""; position: absolute; right: -14%; bottom: -18%; width: 62%; aspect-ratio: 181/520; border-radius: 80px 0 80px 0; background: rgba(255, 255, 255, .07); transform: rotate(-24deg); }
.t-side::after { content: ""; position: absolute; right: 18%; bottom: -30%; width: 40%; aspect-ratio: 181/520; border-radius: 0 80px 0 80px; background: rgba(255, 255, 255, .05); transform: rotate(-24deg); }
.t-client { position: relative; z-index: 1; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: -.03em; }
.t-panel { background: var(--surface); padding: 64px 72px; display: flex; flex-direction: column; justify-content: center; gap: 48px; transition: background-color .4s; }
.t-who { display: flex; flex-direction: column; gap: 8px; }
.t-name { font-size: 16px; }
.t-role { font-size: 18px; color: var(--muted); }
.t-stack.no-stack .t-card { position: relative; top: 0; transform: none !important; }
.t-shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 4; border-radius: inherit; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 616px); gap: 80px; padding: 100px 64px 120px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); transition: border-color .35s var(--ease-io); }
.faq-item:hover { border-color: var(--ink); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; text-align: left; font-size: 16px; font-weight: 400; }
.faq-q .pm { font-size: 20px; font-weight: 500; transition: transform .35s var(--ease-io); flex: none; }
.faq-item.open .faq-q { color: var(--muted); }
.faq-item.open .pm { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear .45s; }
.faq-item.open .faq-a > div { visibility: visible; transition-delay: 0s; }
.faq-a p { padding: 0 40px 24px 0; color: var(--muted); font-size: 15px; line-height: 1.6; font-weight: 400; opacity: 0; transition: opacity .35s var(--ease-io); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a p { opacity: 1; }

/* ---------- More work (ex-blog) ---------- */
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.post { display: flex; flex-direction: column; gap: 20px; }
.post-media { position: relative; aspect-ratio: 427 / 520; border-radius: 16px; overflow: hidden; background: var(--placeholder); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.post:hover .post-media img { transform: scale(1.08); }
.post h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.005em; font-weight: 500; margin-top: -4px; }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--pad) 40px; }
.f-rule { height: 1px; background: var(--line); }
.f-top { display: flex; justify-content: space-between; gap: 48px; padding: 90px 0; }
.f-left { max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.f-statement { font-size: clamp(26px, calc(23.77px + .571vw), 32px); line-height: 1.25; letter-spacing: -.01em; }
.f-mail { font-size: clamp(24px, calc(21.03px + .762vw), 32px); letter-spacing: -.01em; position: relative; align-self: flex-start; padding-bottom: 6px; }
.f-mail::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 15%; background: currentColor; transition: width .35s var(--ease-io); }
.f-mail:hover::after { width: 100%; }
.f-news { width: min(539px, 100%); display: flex; flex-direction: column; gap: 20px; }
.f-news h2 { font-size: clamp(30px, calc(23.31px + 1.714vw), 48px); letter-spacing: -.02em; line-height: 1.1; font-weight: 500; }
.f-form { display: flex; align-items: center; justify-content: space-between; width: min(400px, 100%); height: 54px; border-radius: 999px; border: 1px solid var(--line); padding: 6px 6px 6px 22px; transition: border-color .3s; }
.f-form:focus-within { border-color: var(--ink); }
.f-form input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; font-weight: 500; }
.f-form input::placeholder { color: var(--muted-2); }
.f-form button { height: 41px; padding: 0 22px; border-radius: 999px; background: var(--ink-2); color: var(--bg); font-size: 14px; transition: background-color .35s; }
:root[data-theme="dark"] .f-form button { background: var(--violet); color: #fff; }
.f-form button:hover { opacity: .85; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-msg { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.f-legal { font-size: 12px; color: var(--muted); font-weight: 400; }
.f-legal a { text-decoration: underline; text-underline-offset: 3px; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 90px; flex-wrap: wrap; }
.f-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 16px; }
.f-links a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color .35s var(--ease-io); }
.f-links a:hover { text-decoration-color: currentColor; }
.f-social { display: flex; gap: 8px; color: var(--muted-2); }
.f-social a:hover { color: var(--ink); }
.f-brand { margin-top: 80px; color: var(--ink); }
.f-brand svg { width: 100%; height: auto; }
.f-copy { display: flex; justify-content: space-between; margin-top: 28px; padding-right: 84px; color: var(--muted-2); gap: 16px; flex-wrap: wrap; }

/* ---------- WhatsApp ---------- */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); transition: transform .35s var(--ease-out), opacity .4s; }
.wa svg { width: 30px; height: 30px; }
.wa:hover { transform: scale(1.08); }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.6s var(--ease-out) infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-tip { position: absolute; right: 70px; top: 50%; transform: translate(8px, -50%); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-out); }
.wa:hover .wa-tip { opacity: 1; transform: translate(0, -50%); }
.menu-open .wa { opacity: 0; pointer-events: none; }

/* ---------- Inner pages (projects list, case) ---------- */
.page-head { padding: calc(var(--nav-h) + 80px) var(--pad) 0; }
.page-head .mono { display: block; margin-bottom: 24px; }
.case-hero { padding: calc(var(--nav-h) + 80px) var(--pad) 0; }
.case-title { font-size: clamp(44px, calc(28.4px + 4vw), 104px); line-height: .96; letter-spacing: -.035em; font-weight: 500; max-width: 1200px; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); }
.case-meta dt { color: var(--muted); }
.case-meta dd { margin: 10px 0 0; font-size: 16px; }
.case-meta a { text-decoration: underline; text-underline-offset: 4px; }
.case-cover { position: relative; margin: 48px var(--pad) 0; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16 / 9; background: var(--placeholder); }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px); gap: 40px; padding: 110px var(--pad); }
.case-lead { font-size: clamp(22px, calc(16.43px + 1.429vw), 37px); line-height: 1.25; letter-spacing: -.015em; }
.case-desc { margin-top: 32px; color: var(--muted); font-size: 17px; line-height: 1.65; font-weight: 400; display: flex; flex-direction: column; gap: 16px; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0 var(--pad); }
.case-gallery figure { position: relative; border-radius: 24px; overflow: hidden; background: var(--placeholder); aspect-ratio: 16 / 9; }
.case-gallery figure:nth-child(3n + 1) { grid-column: 1 / -1; }
.case-gallery img { width: 100%; height: 100%; object-fit: cover; }
.case-next { display: block; margin: 140px var(--pad) 0; padding-top: 24px; border-top: 1px solid var(--line); }
.case-next .row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.case-next .name { font-size: clamp(40px, calc(28.86px + 2.857vw), 70px); letter-spacing: -.03em; line-height: 1; transition: transform .6s var(--ease-out); }
.case-next:hover .name { transform: translateX(12px); }
.case-next .thumb { width: min(360px, 40vw); aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; }
.case-next .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.case-next:hover .thumb img { transform: scale(1.06); }
.state-msg { padding: 120px var(--pad); text-align: center; color: var(--muted); }

.legal { max-width: 760px; padding: calc(var(--nav-h) + 80px) var(--pad) 120px; margin: 0 auto; box-sizing: content-box; }
.legal h1 { font-size: clamp(40px, calc(31.09px + 2.286vw), 64px); letter-spacing: -.03em; line-height: 1; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); font-weight: 400; line-height: 1.7; }
.legal ul { list-style: disc; padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  :root { --pad: 24px; --nav-h: 68px; --radius-card: 24px; }
  .projects-grid { column-gap: 24px; }
  .faq { grid-template-columns: 1fr; gap: 32px; padding: 60px var(--pad) 80px; }
  .t-panel { padding: 40px; gap: 32px; }
  .case-intro { grid-template-columns: 1fr; padding: 72px var(--pad); }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-top { flex-direction: column; padding: 56px 0; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid > :nth-child(3) { display: none; }
}

@media (max-width: 767px) {
  .nav { grid-template-columns: auto 1fr; padding: 0 20px; }
  .nav-left .lang, .nav-center { display: none; }
  .nav-right { gap: 14px; }
  .nav-right .theme-toggle { display: block; width: 50px; height: 26px; }
  .nav-right .theme-toggle .knob { width: 20px; height: 20px; top: 2px; left: 2px; }
  :root[data-theme="dark"] .nav-right .theme-toggle .knob { transform: translateX(24px); }
  .nav-logo { width: 74px; }
  .menu-btn .mono { display: none; }
  .menu { padding-top: calc(var(--nav-h) + 32px); }
  .menu-top { justify-content: flex-start; text-align: left; }
  .menu-body { grid-template-columns: 1fr; margin-top: 32px; gap: 24px; }
  .menu-list li { gap: 16px; }
  .menu-list .mono { width: 48px; }
  .menu-social { padding-top: 0; }
  .menu .lang-mobile { display: inline-flex; }

  .hero { min-height: 0; }
  .hero-top { padding-top: 64px; }
  .hero-logo { width: 220px; }
  .hero-row { padding-top: 72px; }
  .hero-row .mono { font-size: 11px; }
  .panels { height: min(360px, 48svh); }
  .marquee-set { --gap: 10px; }
  .panel { border-radius: 48px 0 48px 0; }
  .panel:nth-child(even) { border-radius: 0 48px 0 48px; }

  .about { gap: 40px; }
  .about-statement { line-height: 1.22; }
  .logos { height: 30px; }
  .logos img { height: 20px; }

  .sec { padding: 30px var(--pad) 60px; }
  .projects-grid { grid-template-columns: 1fr; row-gap: 32px; margin-top: 32px; }
  .proj { gap: 12px; }
  .proj-media { aspect-ratio: 342 / 430; }
  .proj-cta { opacity: 1; transform: translate(-50%, -50%); display: none; }

  .services { padding: 30px var(--pad) 60px; }
  .services .sec-head { padding-right: 0; }
  .svc-wrap { margin-top: 32px; }
  .svc-track { flex-direction: column; overflow: visible; padding-right: 0; gap: 32px; cursor: auto; }
  .svc { width: 100%; aspect-ratio: auto; height: 300px; padding: 26px; border-radius: 22px; }
  .svc-shape { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  .svc-nav, .svc-fade { display: none !important; }

  .metrics { padding: 50px var(--pad) 60px; gap: 56px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .stat-label { margin-top: 10px; line-height: 1.4; }

  .testimonials { padding: 50px var(--pad) 60px; }
  .t-stack { margin-top: 40px; gap: 24px; }
  .t-card { grid-template-columns: 1fr; grid-template-rows: 190px auto; height: auto; min-height: 0; top: calc(var(--nav-h) + 12px); border-radius: 24px; }
  .t-side { padding: 24px; }
  .t-client { font-size: 34px; }
  .t-panel { padding: 32px 28px; gap: 28px; }
  .t-role { font-size: 15px; }

  .faq { padding: 50px var(--pad) 60px; gap: 28px; }

  .more-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .more-grid > :nth-child(3) { display: flex; }
  .post-media { aspect-ratio: 342 / 300; }
  .post h3 { font-size: 19px; }

  .footer { padding: 40px var(--pad) 36px; }
  .f-top { padding: 40px 0; gap: 40px; }
  .f-bottom { padding-top: 40px; }
  .f-links { gap: 10px 20px; font-size: 15px; }
  .f-brand { margin-top: 56px; }

  .wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-tip { display: none; }

  .case-hero, .page-head { padding-top: calc(var(--nav-h) + 48px); }
  .case-meta { margin-top: 40px; }
  .case-cover { margin: 32px var(--pad) 0; aspect-ratio: 4 / 3; }
  .case-gallery { grid-template-columns: 1fr; gap: 16px; }
  .case-gallery figure { border-radius: 16px; }
  .case-next { margin-top: 90px; }
  .case-next .row { flex-direction: column; align-items: flex-start; }
  .case-next .thumb { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
}

.page-head + .sec { padding-top: 0; }

/* ---------- Buttons ---------- */
.btn-solid { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 500; border: 1px solid var(--ink); transition: transform .35s var(--ease-out), background-color .35s, color .35s; white-space: nowrap; }
.btn-solid:hover { transform: translateY(-2px); }
:root[data-theme="dark"] .btn-solid { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-solid:disabled { opacity: .55; cursor: progress; transform: none; }
.nav-cta { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s; white-space: nowrap; }
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-theme="dark"] .nav-cta:hover { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- Hero extras ---------- */
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(20px, 2.6vw, 32px); }
.hero-row-right { display: flex; align-items: end; gap: 18px; }
.pause-btn { color: var(--muted); transition: color .25s; }
.pause-btn:hover { color: var(--ink); }
.marquee-paused .marquee-track { animation-play-state: paused; }

/* ---------- Process ---------- */
.process { padding: 40px var(--pad) 120px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; counter-reset: step; }
.step { position: relative; padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.step::after { content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--violet); transition: width .9s var(--ease-out) .2s; }
.step.is-in::after { width: 48px; }
.step h3 { font-size: clamp(24px, calc(20.29px + .952vw), 34px); letter-spacing: -.02em; font-weight: 500; line-height: 1.1; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.55; font-weight: 400; }
.step-time { margin-top: auto; padding-top: 8px; }
.process-note { margin-top: 40px; font-size: 14px; font-weight: 400; max-width: 640px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 110px); align-items: center; padding: 40px var(--pad) 120px; }
.founder-photo { position: relative; border-radius: 120px 0 120px 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--placeholder); max-width: 560px; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-text { display: flex; flex-direction: column; gap: 24px; max-width: 620px; }
.founder-p { font-size: clamp(17px, calc(15.51px + .381vw), 21px); line-height: 1.55; color: var(--muted); font-weight: 400; }
.founder-p:first-of-type { color: var(--ink); }
.founder-sign { margin-top: 4px; }

/* ---------- Testimonials (CMS-driven) ---------- */
.t-side { background: var(--tc, var(--t1)) !important; }
:root[data-theme="dark"] .t-side { background: color-mix(in srgb, var(--tc, var(--t1)) 72%, #000) !important; }
.t-side.has-photo::before, .t-side.has-photo::after { display: none; }
.t-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-side.has-photo::after { content: none; }
.t-side.has-photo { justify-content: space-between; }
.t-side.has-photo > .mono, .t-side.has-photo > .t-case { position: relative; z-index: 1; }
.t-side.has-photo > .mono { align-self: flex-start; background: rgba(0, 0, 0, .35); padding: 6px 10px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.t-logo { position: relative; z-index: 1; width: auto; max-width: 70%; height: clamp(32px, 4vw, 56px); filter: brightness(0) invert(1); }
.t-case { position: relative; z-index: 1; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; background: #fff; color: #1a1a1c; border-radius: 999px; padding: 10px 18px; font-size: 14px; transition: transform .35s var(--ease-out); }
.t-case:hover { transform: translateY(-2px); }
.t-side > .t-case:not(:first-child) { margin-top: 16px; }

/* ---------- Project filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; }
.chip { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.filter-count { margin-left: 8px; }
.proj.is-hidden { display: none; }
.proj-tags { color: var(--muted); }

/* ---------- Case page extras ---------- */
.case-cs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding: 0 var(--pad) 110px; }
.case-col h2 { margin-bottom: 18px; color: var(--ink); }
.case-col .case-desc { margin-top: 0; }
.case-results { padding: 0 var(--pad) 110px; }
.case-results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 28px; }
.case-results-grid .r-val { font-size: clamp(44px, calc(32.86px + 2.857vw), 74px); letter-spacing: -.03em; line-height: 1; }
.case-results-grid .r-lab { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.45; font-weight: 400; }
.case-video { padding: 0 var(--pad) 24px; }
.case-video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; }
.case-video iframe, .case-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Briefing dialog ---------- */
.brief { width: min(760px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 28px; background: var(--bg); color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .3); overflow: hidden; }
.brief::backdrop { background: rgba(10, 10, 14, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.brief[open] { animation: brief-in .5s var(--ease-out); }
@keyframes brief-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.brief-inner { max-height: calc(100svh - 32px); overflow-y: auto; padding: 28px 36px 32px; }
.brief-head { display: flex; justify-content: space-between; align-items: center; }
.brief-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); font-size: 16px; transition: background-color .25s, color .25s; }
.brief-close:hover { background: var(--ink); color: var(--bg); }
.brief-form { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.brief-form h2, .brief-done h2 { font-size: clamp(28px, calc(21.31px + 1.714vw), 42px); letter-spacing: -.025em; line-height: 1.05; font-weight: 500; }
.brief-chips { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brief-chips legend { font-size: 14px; margin-bottom: 10px; padding: 0; }
.brief-chips label { position: relative; }
.brief-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.brief-chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.brief-chips input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
:root[data-theme="dark"] .brief-chips input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.brief-chips input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.brief-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.brief-field input, .brief-field select, .brief-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: transparent; color: inherit; font: inherit; font-size: 15px; outline: none; transition: border-color .2s; resize: vertical; }
.brief-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.brief-field select option { color: #1a1a1c; }
.brief-field input:focus, .brief-field select:focus, .brief-field textarea:focus { border-color: var(--ink); }
.brief-field .invalid, .brief-field input[aria-invalid="true"] { border-color: #d4380d; }
.brief-hint { font-size: 13px; margin-top: -8px; font-weight: 400; }
.brief-msg { color: #d4380d; font-size: 14px; min-height: 1.2em; }
.brief-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brief-foot .f-legal { max-width: 360px; }
.brief-done { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 0 8px; }
.brief-check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 26px; }
.brief-done-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.menu-contact { display: flex; align-items: end; gap: 28px; flex-wrap: wrap; }

@media (max-width: 991px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 420px; }
}
@media (max-width: 767px) {
  .nav-cta { height: 32px; padding: 0 12px; font-size: 12px; }
  .hero-ctas .btn-solid, .hero-ctas .btn-pill { height: 46px; padding: 0 20px; font-size: 14px; }
  .process { padding: 30px var(--pad) 60px; }
  .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 32px; }
  .founder { padding: 30px var(--pad) 60px; gap: 32px; }
  .founder-photo { border-radius: 72px 0 72px 0; }
  .case-cs { grid-template-columns: 1fr; padding-bottom: 72px; }
  .case-results { padding-bottom: 72px; }
  .brief { inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; border-radius: 0; margin: 0; }
  .brief-inner { max-height: 100svh; padding: 20px 20px 28px; }
  .brief-grid { grid-template-columns: 1fr; }
  .menu-contact { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-row-right { gap: 12px; }
}

/* ---------- Blog ---------- */
.blog-intro { margin-top: 28px; max-width: 620px; color: var(--muted); font-size: clamp(17px, calc(15.5px + .38vw), 21px); line-height: 1.5; font-weight: 400; }
.blog-grid { row-gap: 64px; }
.blog-grid .post-media { aspect-ratio: 16 / 10; }
.post-title { font-size: 20px; line-height: 1.3; letter-spacing: -.005em; font-weight: 500; margin-top: -4px; }
.post-excerpt { margin-top: -8px; color: var(--muted); font-size: 15px; line-height: 1.55; font-weight: 400; }
.crumbs { display: block; margin-bottom: 28px; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--ink); }
.article-title { max-width: 1100px; font-size: clamp(40px, calc(26px + 3.4vw), 88px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px); gap: 40px; padding: 96px var(--pad) 0; }
.article-toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.article-toc ol { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; max-width: 300px; }
.article-toc a { color: var(--muted); font-size: 15px; line-height: 1.4; transition: color .3s; }
.article-toc a:hover { color: var(--ink); }
.prose { font-size: 18px; line-height: 1.7; font-weight: 400; }
.prose > * + * { margin-top: 24px; }
.prose p, .prose li { color: var(--muted); }
.prose .article-lead { color: var(--ink); font-size: clamp(22px, calc(16.43px + 1.429vw), 32px); line-height: 1.3; letter-spacing: -.015em; font-weight: 500; margin-bottom: 48px; }
.prose h2 { margin-top: 64px; font-size: clamp(28px, calc(22px + 1.2vw), 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h3 { margin-top: 40px; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; font-weight: 500; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { border-left: 2px solid var(--ink); padding: 4px 0 4px 24px; }
.prose blockquote p { color: var(--ink); font-size: 22px; line-height: 1.45; letter-spacing: -.01em; }
.prose figure { margin: 48px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 16px; background: var(--placeholder); }
.prose figcaption { margin-top: 12px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.article-author { display: flex; align-items: center; gap: 20px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-author img { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.article-author p { font-size: 15px; line-height: 1.55; }
.prose .article-author-name { color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.article-cta { display: flex; flex-direction: column; align-items: center; gap: 24px; margin: 120px var(--pad) 0; padding: 72px 40px; border-radius: var(--radius-card); background: var(--surface); text-align: center; }
.article-cta-title { max-width: 14em; font-size: clamp(32px, calc(24px + 2vw), 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 500; }
.article-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.article .sec.more { padding-top: 120px; }
@media (max-width: 991px) {
  .blog-grid > :nth-child(3) { display: flex; }
  .article-layout { grid-template-columns: 1fr; padding-top: 56px; gap: 32px; }
  .article-toc { position: static; }
}
@media (max-width: 767px) {
  .prose { font-size: 17px; }
  .article-cta { margin-top: 80px; padding: 48px 24px; }
  .article .sec.more { padding-top: 80px; }
}

/* ---------- Social icons ---------- */
.social-link { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.hero-row .socials a:hover, .menu-social a:hover, .f-social a:hover { color: var(--bg); }
.hero-row .socials, .f-social { gap: 10px; align-items: center; }
.menu-social { gap: 12px; }
.menu-social .social-link { width: 44px; height: 44px; }
.menu-social .social-link svg { width: 20px; height: 20px; }
/* Always visible, stacked above the WhatsApp button. */
.social-rail { position: fixed; right: 31px; bottom: 96px; z-index: 50; display: flex; flex-direction: column; gap: 10px; transition: opacity .4s; }
.social-rail[hidden] { display: none; }
.social-rail .social-link { width: 44px; height: 44px; border: 0; background: var(--ink); color: var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); transition: transform .35s var(--ease-out), background-color .3s; }
.social-rail .social-link svg { width: 20px; height: 20px; }
.social-rail .social-link:hover { transform: scale(1.08); background: var(--violet); color: #fff; }
.menu-open .social-rail { opacity: 0; pointer-events: none; }
@media (max-width: 767px) {
  .social-rail { right: 23px; bottom: 82px; gap: 8px; }
  .social-rail .social-link { width: 40px; height: 40px; }
  .social-rail .social-link svg { width: 18px; height: 18px; }
}
.hero-row, .hero-row-right { align-items: center; }

/* Newsletter box at the end of blog articles */
.article-news { margin-top: 64px; padding: 32px; border-radius: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.prose .article-news-title { color: var(--ink); font-size: clamp(22px, calc(18px + .8vw), 28px); line-height: 1.2; letter-spacing: -.015em; font-weight: 500; }
.prose .article-news-sub { font-size: 15px; line-height: 1.5; margin-top: -4px; }
.article-news .f-form { background: var(--bg); width: min(440px, 100%); margin-top: 6px; }
.prose .article-news .f-msg { font-size: 13px; }
@media (max-width: 767px) { .article-news { padding: 24px 20px; } }

/* ---------- Service pages ---------- */
.lp-head { padding-bottom: 40px; }
.lp-title { max-width: 15em; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.inc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 40px; margin-top: 56px; }
.inc { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.inc h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-weight: 500; }
.inc p { color: var(--muted); font-size: 16px; line-height: 1.55; font-weight: 400; }
.lp .process { padding-top: 40px; }
.lp-cta { margin-bottom: 120px; }
@media (max-width: 991px) { .inc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .inc-grid { grid-template-columns: 1fr; gap: 32px; } .lp-cta { margin-bottom: 80px; } }
.svc-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
