/* Tercero homepage: dark and premium, the work as the star.
   Warm dark grounds, one metallic accent, Instrument Serif + Archivo. */

:root {
  --bg: #0c0b09;
  --bg-2: #12100d;
  --panel: #161410;
  --panel-2: #1d1a15;
  --line: rgba(241, 232, 214, .12);
  --line-2: rgba(241, 232, 214, .24);
  --tx: #f1ebe0;
  --tx-2: #c9c0b1;
  --mu: #958c7e;
  --acc: #c9a96e;
  --acc-hi: #dcc08c;
  --acc-ink: #17120a;
  --glow: rgba(201, 169, 110, .07);
  --error: #ef9a8a;
  --nav-h: 76px;
  --pad: clamp(18px, 3.2vw, 40px);
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
[data-theme="emerald"] { --bg: #0a120e; --bg-2: #0e1813; --panel: #112019; --panel-2: #16281f; --line: rgba(234, 226, 206, .12); --line-2: rgba(234, 226, 206, .24); --tx: #eee8d8; --tx-2: #c6c0ae; --mu: #8f9a8e; --acc: #b89458; --acc-hi: #ccab72; --acc-ink: #120d04; --glow: rgba(184, 148, 88, .07); }
[data-theme="oxblood"] { --bg: #100a0a; --bg-2: #170e0e; --panel: #1e1212; --panel-2: #261717; --line: rgba(244, 228, 218, .12); --line-2: rgba(244, 228, 218, .24); --tx: #f4e9e1; --tx-2: #cfbfb4; --mu: #9f8a82; --acc: #d9b49a; --acc-hi: #e7c8b2; --acc-ink: #1c0f0a; --glow: rgba(217, 180, 154, .07); }
[data-theme="midnight"] { --bg: #080c16; --bg-2: #0c1220; --panel: #101828; --panel-2: #152033; --line: rgba(220, 226, 240, .12); --line-2: rgba(220, 226, 240, .24); --tx: #eef0f5; --tx-2: #c2c7d3; --mu: #8a92a5; --acc: #c8ccd6; --acc-hi: #e1e4ea; --acc-ink: #0b0f1a; --glow: rgba(200, 204, 214, .06); }
[data-theme="teal"] { --bg: #070a0a; --bg-2: #0b1010; --panel: #0f1615; --panel-2: #141d1c; --line: rgba(225, 238, 234, .12); --line-2: rgba(225, 238, 234, .24); --tx: #eef2ef; --tx-2: #c2ccc8; --mu: #8a9894; --acc: #7fc4b8; --acc-hi: #9ad4ca; --acc-ink: #06120f; --glow: rgba(127, 196, 184, .06); }


*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #2a333c var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font-family: var(--f); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; caret-color: var(--acc); overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--f); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.b { color: var(--mu); }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 1.5px solid var(--acc); outline-offset: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--acc); color: var(--bg); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ── Buttons & links ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 34px; border: 1px solid transparent; border-radius: 0;
  font-family: var(--f); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-acc, .btn-paper { background: var(--acc); color: var(--acc-ink); font-weight: 600; }
.btn-acc:hover, .btn-paper:hover { background: var(--acc-hi); }
.btn-line, .btn-line-ink { border-color: var(--line-2); color: var(--tx); }
.btn-line:hover, .btn-line-ink:hover { border-color: var(--acc); background: rgba(201, 169, 110, .08); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-line { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--tx); text-decoration: none; }
.link-line::before { content: ""; width: 28px; height: 1px; background: var(--acc); transition: width 300ms var(--ease); }
.link-line:hover::before { width: 44px; }

/* ── Nav (the rail markup, laid out as a top bar) ───── */
.rail { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-h); pointer-events: none; }
.rail::before { content: ""; position: absolute; inset: 0; background: rgba(5, 6, 7, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 300ms; }
.rail.scrolled::before { opacity: 1; }
.rail > * { pointer-events: auto; }
.rail-top { position: absolute; left: 0; right: 0; top: 0; height: var(--nav-h); display: flex; align-items: center; justify-content: center; z-index: 2; pointer-events: none; }
.rail-top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark { width: 20px; height: auto; flex: none; fill: currentColor; }
.brand span { font-weight: 800; font-variation-settings: "wdth" 125; font-size: 18px; letter-spacing: .1em; }
.rail-top .lang-toggle { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); }
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.lang-toggle span { padding: 4px 4px; color: var(--mu); }
.lang-toggle span.active { color: var(--tx); }
.lang-toggle span + span::before { content: "/"; margin-right: 6px; color: var(--mu); }
.menu-btn { display: none; }
.toc { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 var(--pad); }
.toc ol { display: flex; width: 100%; justify-content: space-between; padding-right: 110px; }
.toc li.toc-home, .toc li:last-child { display: none; }
.toc li:nth-child(4) { margin-right: auto; }

.toc ol { gap: clamp(16px, 2.6vw, 44px); justify-content: flex-start; }
.toc li a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.toc .n { color: var(--mu); }

.toc a:hover span:last-child, .toc a[aria-current="true"] span:last-child { color: var(--acc); }
.rail-cta, .rail-foot { display: none; }

main { display: block; }

/* ── Intro: the T is traced, filled and raised, once per visit ── */
.intro-ov { display: none; }
html.intro .intro-ov { display: flex; }
.intro-ov { position: fixed; inset: 0; z-index: 90; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); animation: intro-out 700ms var(--ease) 3.15s forwards; cursor: pointer; }
.intro-mark { height: min(30vh, 240px); width: auto; overflow: visible; animation: mark-out 700ms var(--ease) 3.1s forwards; }
.ishape { fill: var(--tx); fill-opacity: 0; stroke: var(--acc); stroke-width: 3; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.i-main { animation: i-draw 1.1s var(--ease) .2s forwards, i-fill .5s var(--ease) 1.25s forwards, i-unstroke .6s var(--ease) 1.5s forwards; }
.i-pillar { transform: translateY(40px); animation-name: i-draw, i-fill, i-unstroke, i-rise; animation-duration: .8s, .5s, .6s, .9s; animation-delay: .55s, 1.4s, 1.65s, 1.2s; animation-fill-mode: forwards; animation-timing-function: var(--ease), var(--ease), var(--ease), cubic-bezier(.7, 0, .2, 1); }
.intro-ov .glint { fill: url(#sweep); opacity: 0; animation: i-sweep .9s var(--ease) 1.95s forwards; }
.intro-word { margin-top: 28px; font-weight: 800; font-variation-settings: "wdth" 125; font-size: clamp(1.6rem, 4vw, 3.4rem); letter-spacing: .32em; padding-left: .32em; line-height: 1; }
.intro-word span { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); animation: i-letter .7s var(--ease) forwards; animation-delay: calc(2.1s + var(--i) * 70ms); }
@keyframes i-draw { to { stroke-dashoffset: 0; } }
@keyframes i-fill { to { fill-opacity: 1; } }
@keyframes i-unstroke { to { stroke-opacity: 0; } }
@keyframes i-rise { to { transform: none; } }
@keyframes i-sweep { 0% { opacity: 1; transform: translateX(-220px); } 100% { opacity: 1; transform: translateX(720px); } }
@keyframes i-letter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes mark-out { to { transform: scale(.82); opacity: 0; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro-ov.skip-now { animation: intro-out 300ms var(--ease) forwards; }
html.intro .g0.on { animation: hero-in 900ms var(--ease) 3.3s both; }
html.intro .stack { animation: stack-in 1200ms var(--ease) 3.2s both; }
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes stack-in { from { opacity: 0; } to { opacity: 1; } }

/* the dock: one calm, persistent call to action */
.dock { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 35; min-width: 280px; transition: opacity 300ms var(--ease), transform 300ms var(--ease), background-color 220ms var(--ease); }
.dock.away { opacity: 0; pointer-events: none; transform: translate(-50%, 12px); }

/* ── Statement ────────────────────────────────────────── */
.statement-sec { padding: clamp(120px, 14vw, 200px) var(--pad) clamp(80px, 9vw, 120px); max-width: 1440px; margin: 0 auto; }
.statement { font-size: clamp(1.75rem, 3.6vw, 3.4rem); line-height: 1.14; font-weight: 500; letter-spacing: -.025em; max-width: 24ch; text-wrap: pretty;  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; }
.statement .dim { color: var(--mu); }
.clients { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: clamp(56px, 7vw, 96px); padding-top: 18px; border-top: 1px solid var(--line); }
.clients dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mu); padding-top: 4px; }
.clients dd { display: flex; flex-wrap: wrap; gap: 10px 40px; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-weight: 600; }

/* ── Opening: one brand, as an object you can turn and open ── */
.glow-sec { position: relative; height: 440vh; }
.glow-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.glow-bg { position: absolute; inset: 0; background: radial-gradient(48% 52% at 64% 50%, var(--glow), transparent 72%), radial-gradient(50% 30% at 66% 92%, rgba(0, 0, 0, .55), transparent 70%); }
.rig { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 62% 42%; }
.stack { position: absolute; left: 64%; top: 52%; width: min(40vw, 580px); aspect-ratio: 16 / 10; transform-style: preserve-3d; transform: translate(-50%, -50%) rotateX(var(--rx, 58deg)) rotateZ(var(--rz, -32deg)); cursor: grab; touch-action: pan-y; }
.stack:active { cursor: grabbing; }
.rig { pointer-events: none; } .stack { pointer-events: auto; }
.layer { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--gap, 10px))); }
.layer .face { position: absolute; inset: 0; overflow: hidden; background: var(--panel); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85); transition: filter 600ms var(--ease); }
.layer .face::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color 500ms var(--ease); }
.layer img { width: 100%; height: 100%; object-fit: cover; }
.layer.contain .face { background: #0a0a0a; display: grid; place-items: center; }
.layer.contain img { object-fit: contain; width: 86%; height: 86%; }
.dims { display: none; position: absolute; left: 0; right: 0; top: -26px; display: flex; justify-content: space-between; color: var(--acc); opacity: 0; transition: opacity 500ms var(--ease); }
svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
svg.lines line { stroke: var(--line-2); stroke-width: 1; }
svg.lines circle { fill: var(--acc); r: 2px; }
.call { position: absolute; display: flex; gap: 10px; align-items: baseline; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); pointer-events: none; }
.call.on { opacity: 1; transform: none; }
.call b { font-weight: 600; color: var(--tx); }
.call small { font-size: 12px; color: var(--mu); }
.gcopy { position: absolute; left: var(--pad); bottom: 130px; max-width: 31rem; opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); pointer-events: none; z-index: 2; }
.gcopy.on { opacity: 1; transform: none; pointer-events: auto; }
.g0 { top: 50%; bottom: auto; transform: translateY(-44%); }
.g0.on { transform: translateY(-50%); }
.cover-title { font-weight: 500; font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance;  font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1; }
.cover-title .t { font-style: italic; color: var(--acc); }
.g0 p { margin-top: 20px; color: var(--tx-2); font-size: 18px; max-width: 30ch; }
.g0 .btns { margin-top: 30px; }
.gcopy h2, .gcopy .h2 { font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.08; letter-spacing: -.025em;  font-family: var(--serif); font-weight: 400; letter-spacing: -.005em; }
.gcopy em { font-style: italic; color: var(--acc); }
.gcopy p:not(.h2) { margin-top: 14px; color: var(--tx-2); }
.g1 p, .g2 p:not(.h2) { color: var(--tx-2); }
.gcopy .link-line { margin-top: 14px; }
.hint { position: absolute; right: var(--pad); bottom: 34px; transition: opacity 400ms; }
html:not(.js) .glow-sec, .reduced .glow-sec { height: auto; }
html:not(.js) .glow-sticky, .reduced .glow-sticky { position: relative; height: 100vh; height: 100svh; }
html:not(.js) .stack, .reduced .stack { --gap: 26px; }
html:not(.js) .g0 { opacity: 1; transform: translateY(-50%); pointer-events: auto; }

/* ── Work: a carousel in depth, driven by scroll ── */
.work-sec { position: relative; }
.cf { position: relative; height: 380vh; }
.cf-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: calc(var(--nav-h) + 24px) var(--pad) 0; display: flex; flex-direction: column; }
.cf-sticky .ch-head { margin-bottom: 0; }
.cards { position: relative; flex: 1; margin: 28px 0 110px; perspective: 1400px; transform-style: preserve-3d; }
.cards .plate { position: absolute; top: 0; bottom: 0; left: 50%; width: min(46vw, 640px); margin-left: calc(min(46vw, 640px) / -2); transform-style: preserve-3d; will-change: transform; }
.cards .mat { height: calc(100% - 56px); }
.cards .cap { transition: opacity 300ms; }
.cf-count { position: absolute; right: var(--pad); bottom: 40px; }
html:not(.js) .cf, .reduced .cf { height: auto; }
html:not(.js) .cf-sticky, .reduced .cf-sticky { position: relative; height: auto; }
html:not(.js) .cards, .reduced .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; perspective: none; }
html:not(.js) .cards .plate, .reduced .cards .plate { position: relative; left: auto; width: auto; margin: 0; }
html:not(.js) .cards .mat, .reduced .cards .mat { height: clamp(260px, 30vw, 420px); }
.more-wrap { padding-top: 40px; }
.more-wrap .sub-head { margin-top: 0; }

/* services: names flip up in depth as they arrive */
.practices { perspective: 900px; }
.js.motion .pr-name { transform-origin: 50% 100%; transform: rotateX(var(--flip, 0deg)); }

/* pricing: cards lean toward the pointer */
.pk { transform: perspective(1100px) rotateX(var(--tx-r, 0deg)) rotateY(var(--ty-r, 0deg)); transition: transform 400ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease); }
.pk::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(201, 169, 110, .1), transparent 60%); opacity: 0; transition: opacity 300ms; }
.pk:hover::after { opacity: 1; }
.pk.hot { background: var(--panel-2); border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
.pk.hot .label { color: var(--acc-ink); }

/* ── Chapters ─────────────────────────────────────────── */
.chapter { padding: clamp(110px, 12vw, 170px) var(--pad); max-width: 1440px; margin: 0 auto; }
.ch-head { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(200px, 320px); align-items: end; column-gap: 24px; margin-bottom: clamp(48px, 5vw, 80px); }
.ch-no { align-self: start; padding-top: 14px; color: var(--mu); }
.ch-head h2 { font-size: clamp(2.8rem, 6vw, 5.75rem); line-height: .98; font-weight: 500; letter-spacing: -.035em; text-wrap: balance;  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }

.ch-head h2 .t { font-style: italic; color: var(--acc); }
.ch-note { font-size: 15px; line-height: 1.55; color: var(--mu); padding-bottom: 8px; }
.sub-head { display: flex; align-items: center; gap: 18px; margin: clamp(80px, 8vw, 120px) 0 28px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); }
.sub-head::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ── Work ─────────────────────────────────────────────── */
.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) 24px; }
.p-8 { grid-column: span 8; } .p-7 { grid-column: span 7; } .p-5 { grid-column: span 5; } .p-4 { grid-column: span 4; }
.plate { position: relative; display: flex; flex-direction: column; }
.mat { position: relative; display: flex; align-items: center; justify-content: center; height: clamp(280px, 31vw, 480px); padding: clamp(24px, 3vw, 48px); background: var(--panel); overflow: hidden; transition: background-color 400ms var(--ease); }
.mat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 40%, rgba(201, 169, 110, .06), transparent 70%); pointer-events: none; }
.mat img { position: relative; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); transition: transform 600ms var(--ease); }
.plate:hover .mat { background: var(--panel-2); }
.plate:hover .mat img { transform: scale(1.025); }
.plate-link { position: absolute; inset: 0; z-index: 2; }
.cap { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; margin-top: 14px; }
.cap .fig { grid-row: span 2; color: var(--mu); }

.cap b { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cap > span:not(.fig):not(.sw) { grid-column: 2; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); }
.cap .sw { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 4px; padding-top: 4px; }
.cap .sw i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.plate:has(.plate-link) .cap b::after {
  content: ""; display: inline-block; width: .6em; height: .6em; margin-left: .4em; vertical-align: .05em; background: var(--acc);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 1h7v7M9 1 1 9' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 1h7v7M9 1 1 9' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.js.motion .plates .plate, .js.motion .sheet-grid .plate { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.js.motion .plate.in { opacity: 1; transform: none; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; }
.sheet-grid .mat { height: clamp(200px, 19vw, 280px); padding: clamp(16px, 1.8vw, 26px); }
.sheet-grid .cap { grid-template-columns: 44px minmax(0, 1fr) auto; }
.sheet-grid .cap b { font-size: 15px; }
.more-toggle { display: none; margin-top: 32px; }

/* ── Services ─────────────────────────────────────────── */
.practices { border-top: 1px solid var(--line); }
.pr-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(220px, 340px); column-gap: 24px; row-gap: 14px; align-items: end; padding: clamp(26px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.pr-no { align-self: start; padding-top: 16px; color: var(--mu); }

.pr-name { font-family: var(--serif); font-size: clamp(3.2rem, 8.5vw, 6.5rem); line-height: .95; font-weight: 400; letter-spacing: -.01em; transition: font-variation-settings 800ms var(--ease), color 400ms var(--ease); }
.pr-row:hover .pr-name { font-style: italic; color: var(--acc); }
.pr-desc { color: var(--tx-2); padding-bottom: 8px; }
.pr-items { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--mu); }
.pr-items span + span::before { content: "·"; margin-right: 22px; margin-left: -12px; color: var(--acc); }

/* ── Pricing ──────────────────────────────────────────── */
.group { display: flex; align-items: center; gap: 18px; margin: clamp(56px, 6vw, 88px) 0 22px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); }
.group:first-of-type { margin-top: 0; }
.group::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.pk-set { display: grid; gap: 16px; }
.pk-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pk { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 2.8vw, 40px); background: var(--panel); border: 1px solid var(--line); transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.pk.hot { background: linear-gradient(160deg, #1b2330, var(--panel) 60%); border-color: rgba(201, 169, 110, .4); }
.pk.sel { border-color: var(--acc); }
.pk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pk .name { font-size: clamp(1.1rem, 1.5vw, 1.25rem); font-weight: 600; letter-spacing: .02em; letter-spacing: -.015em; line-height: 1.1; }
.pk .label { font-size: 12px; color: var(--mu); }
.pk.hot .label { color: var(--bg); background: var(--acc); padding: 4px 8px; }
.pk .price { margin: 18px 0 18px; font-family: var(--serif); font-size: clamp(3.4rem, 5.6vw, 5rem); line-height: 1; font-weight: 400; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pk .per { font-size: 1.05rem; font-weight: 500; font-variation-settings: "wdth" 100; letter-spacing: 0; margin-left: 4px; color: var(--mu); }
.pk ul { margin-bottom: 18px; }
.pk li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--tx-2); font-size: 16px; }
.sep { margin-bottom: 20px; color: var(--mu); }
.sep s { text-decoration-thickness: 1px; }
.pk-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pk-show { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); }
.pk-show::before { content: ""; width: 9px; height: 9px; border: 1px solid currentColor; transition: background-color 200ms; }
.pk-show:hover { color: var(--tx); }
.pk-show[aria-pressed="true"] { color: var(--acc); }
.pk-show[aria-pressed="true"]::before { background: var(--acc); }
.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-bottom: 1px solid var(--line); }
.menu .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 12px; border-top: 1px solid var(--line); transition: background-color 300ms var(--ease), color 300ms var(--ease), opacity 300ms; }
.menu .row b { font-family: var(--f); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--tx-2); }
.menu.filtering .row:not(.lit) { opacity: .45; }
.menu.filtering .row.lit { background: rgba(201, 169, 110, .1); color: var(--tx); }
.menu.filtering .row.lit b { color: var(--acc); }
.row .either { margin-left: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); }
.menu-status { min-height: 1.6em; margin-top: 16px; text-transform: none; letter-spacing: .02em; color: var(--tx-2); }
.print-note { margin-top: 8px; font-size: 15px; color: var(--mu); max-width: 70ch; }

/* ── About ────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 88px); align-items: start; }
.about-photo .mat { height: auto; aspect-ratio: 4 / 4.4; padding: 0; }
.about-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; filter: grayscale(.35) contrast(1.05); box-shadow: none; }
.lede { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.42; font-weight: 400; letter-spacing: -.01em; max-width: 36ch; margin-bottom: 36px;  font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; }
.spec { border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.spec div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.spec dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); padding-top: 4px; }
.spec dd { font-weight: 500; }
.results { border-bottom: 1px solid var(--line); }
.result { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 24px; align-items: baseline; padding: 24px 0; border-top: 1px solid var(--line); }
.result .num { font-family: var(--serif); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1.05; font-weight: 400; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-transform: none; }
.result p:not(.num) { color: var(--tx-2); max-width: 60ch; }

/* ── Saldo ────────────────────────────────────────────── */
.saldo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.saldo-logo { width: 170px; height: auto; margin-bottom: 26px; }
.saldo-copy h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 14px;  font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.saldo-copy > p { color: var(--tx-2); }
.saldo-copy ul { margin: 22px 0 24px; }
.saldo-copy li { padding: 10px 0 10px 22px; position: relative; border-top: 1px solid var(--line); color: var(--tx-2); }
.saldo-copy li::before { content: "+"; position: absolute; left: 0; top: 10px; color: var(--acc); font-family: var(--mono); }
.saldo-price { margin-bottom: 20px; color: var(--mu); }
.saldo-price b { font-family: var(--serif); font-size: 2.8rem; font-weight: 400; color: var(--tx); letter-spacing: -.02em; margin-right: 6px; }
.plate-dark .mat { height: auto; aspect-ratio: 16 / 10.6; }
.saldo-shot .cap > span:not(.fig) { text-transform: none; }

/* ── FAQ ──────────────────────────────────────────────── */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 90px minmax(0, 1fr) 24px; column-gap: 24px; align-items: baseline; padding: 24px 0; min-height: 44px; cursor: pointer; list-style: none; font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; align-self: center; justify-self: end; background: linear-gradient(var(--acc), var(--acc)) center / 14px 1.5px no-repeat, linear-gradient(var(--acc), var(--acc)) center / 1.5px 14px no-repeat; transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover span:last-child { color: var(--acc); }
.q-no { color: var(--mu); }

.faq details p { padding: 0 0 26px 114px; max-width: calc(66ch + 114px); color: var(--tx-2); }

/* ── Contact ──────────────────────────────────────────── */
.closing { max-width: 14ch;  font-family: var(--serif); }
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-aside h3 { font-size: 1.8rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 14px;  font-family: var(--serif); font-weight: 400; }
.contact-aside p { color: var(--tx-2); max-width: 34ch; }
.direct { margin-top: 22px; }
.direct a { color: var(--tx); display: inline-block; padding: 10px 0; overflow-wrap: anywhere; }
.ticket { background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 3vw, 44px); }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; color: var(--mu); padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.field-in { margin: 0 0 26px; border: 0; padding: 0; min-width: 0; }
.field-in > label, .field-in legend { display: block; font-size: 15px; font-weight: 500; color: var(--tx-2); margin-bottom: 6px; padding: 0; }
.req { color: var(--acc); }
.input, .select { width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; font: inherit; font-size: 17px; color: var(--tx); appearance: none; -webkit-appearance: none; transition: border-color 200ms var(--ease); }
.select { padding-right: 30px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a96e' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; background-size: 12px; }
.select option { background: var(--panel); color: var(--tx); }
.input::placeholder { color: var(--mu); }
.input:hover, .select:hover { border-bottom-color: var(--mu); }
.input:focus, .select:focus { outline: none; border-bottom-color: var(--acc); }
.input:focus-visible, .select:focus-visible { box-shadow: 0 1px 0 var(--acc); }
.input.invalid, .select.invalid { border-bottom-color: var(--error); }
.field-err { display: block; margin-top: 8px; font-size: 14px; color: var(--error); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); cursor: pointer; font-size: 15px; color: var(--tx-2); transition: border-color 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease); }
.check input { width: 15px; height: 15px; margin: 0; accent-color: var(--acc); }
.check:hover { border-color: var(--mu); color: var(--tx); }
.check:has(input:checked) { border-color: var(--acc); background: rgba(201, 169, 110, .1); color: var(--tx); }
.check:has(input:focus-visible) { outline: 1.5px solid var(--acc); outline-offset: 3px; }
#estimate-form .btn-acc { width: 100%; min-height: 56px; margin-top: 6px; }
.form-error { display: none; margin-top: 14px; color: var(--error); }
.form-error.show { display: block; }
.form-error a { color: var(--error); }
.confirm { display: none; padding: 32px 0 12px; }
.confirm.visible { display: block; }
.confirm svg { color: var(--acc); margin-bottom: 18px; }
.confirm h3 { font-size: 2rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px;  font-family: var(--serif); font-weight: 400; }
.confirm p { color: var(--tx-2); max-width: 44ch; }
.confirm:focus { outline: none; }

/* ── Footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 6vw, 88px) var(--pad) 110px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; max-width: 1440px; margin: 0 auto; }
.foot-brand .brand-mark { width: 34px; fill: var(--tx); margin-bottom: 20px; }
.foot-brand p { color: var(--mu); max-width: 30ch; }
.footer h4 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--mu); margin-bottom: 12px; }
.footer li a { display: inline-block; padding: 9px 0; text-decoration: none; color: var(--tx-2); }
.footer li a:hover { color: var(--acc); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; max-width: 1440px; margin: 56px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--mu); }

/* ── Tablet ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ch-head { grid-template-columns: 70px minmax(0, 1fr); row-gap: 16px; }
  .ch-note { grid-column: 2; max-width: 52ch; }
  .sheet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-row { grid-template-columns: 70px minmax(0, 1fr); }
  .pr-desc { grid-column: 2; }
  .toc ol { gap: 28px; }
}

/* ── Phone ────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .rail { height: var(--nav-h); }
  .rail::before { opacity: 1; }
  .rail-top { padding: 0 8px 0 16px; justify-content: space-between; gap: 8px; }
  .rail-top .lang-toggle { position: static; transform: none; margin-left: auto; }
  .menu-btn { display: grid; place-items: center; width: 48px; height: 48px; }
  .menu-btn span, .menu-btn span::before { display: block; width: 22px; height: 1.5px; background: var(--tx); transition: transform 260ms var(--ease); }
  .menu-btn span { position: relative; transform: translateY(-4px); }
  .menu-btn span::before { content: ""; position: absolute; left: 0; top: 8px; }
  .rail.open .menu-btn span { transform: rotate(45deg); }
  .rail.open .menu-btn span::before { top: 0; transform: rotate(-90deg); }
  .toc { position: fixed; inset: var(--nav-h) 0 0 0; display: flex; flex-direction: column; align-items: stretch; background: var(--bg); padding: 24px 20px 28px; visibility: hidden; opacity: 0; transition: opacity 260ms var(--ease), visibility 0s linear 260ms; }
  .rail.open .toc { visibility: visible; opacity: 1; transition: opacity 260ms var(--ease), visibility 0s; }
  .toc ol { flex-direction: column; gap: 0; padding: 0; }
  .toc li.toc-home, .toc li:last-child { display: block; }
  .toc li:nth-child(3), .toc li:nth-child(4) { margin: 0; }
  .toc li a { display: grid; grid-template-columns: 56px 1fr; width: 100%; min-height: 58px; border-top: 1px solid var(--line); font-family: var(--f); font-size: 26px; font-weight: 500; letter-spacing: -.01em; text-transform: none; }
  .toc .n { font-family: var(--mono); font-size: 12px; }
  .rail-cta { display: flex; margin-top: 28px; }
  .rail-foot { display: block; margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--mu); }

  .dock { left: 16px; right: 16px; bottom: 16px; transform: none; min-width: 0; }
  .dock.away { transform: translateY(12px); }

  .stack { left: 50%; top: 68%; width: 66vw; }
  .rig { perspective-origin: 50% 40%; }
  .g0 { top: 13%; right: var(--pad); transform: none; }
  .g0.on { transform: none; }
  .cover-title { font-size: 2.4rem; }
  .g0 p { font-size: 16px; }
  .hint { display: none; }
  .cards .plate { width: 78vw; margin-left: -39vw; }
  .cards { margin-bottom: 90px; }
  .cf-count { bottom: 92px; }
  .call small { display: none; }
  .g1, .g2 { right: var(--pad); bottom: 96px; }

  .ch-head { grid-template-columns: 1fr; }
  .ch-no { padding-top: 0; margin-bottom: 4px; }
  .ch-note { grid-column: 1; }
  .clients { grid-template-columns: 1fr; gap: 10px; }
  .plates { grid-template-columns: 1fr; }
  .plates .plate { grid-column: 1 / -1; }
  .mat { height: auto; min-height: 220px; aspect-ratio: 4 / 3; }
  .plates .tall .mat { aspect-ratio: 4 / 4.6; }
  .sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .sheet-grid .mat { aspect-ratio: 1; min-height: 0; padding: 14px; }
  .sheet-grid .cap { grid-template-columns: minmax(0, 1fr); }
  .sheet-grid .cap .fig, .sheet-grid .cap .sw { display: none; }
  .sheet-grid .cap > span:not(.fig):not(.sw) { grid-column: 1; }
  .sheet-grid:not(.open) .plate:nth-child(n+5) { display: none; }
  .more-toggle { display: inline-flex; width: 100%; }
  .more-toggle[hidden] { display: none; }
  .pr-row { grid-template-columns: 1fr; row-gap: 10px; }
  .pr-no { padding-top: 0; }
  .pr-desc, .pr-items { grid-column: 1; }
  .pk-2, .pk-3 { grid-template-columns: 1fr; }
  .menu { grid-template-columns: 1fr; }
  .saldo, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 420px; }
  .result { grid-template-columns: 1fr; gap: 6px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .faq summary { grid-template-columns: 52px minmax(0, 1fr) 18px; column-gap: 12px; }
  .faq details p { padding-left: 64px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .btn { white-space: normal; text-align: center; }
}

@media (max-width: 380px) {
  .brand span { font-size: 15px; }
  .pk-foot { flex-direction: column; align-items: stretch; }
  .pk-foot .btn { width: 100%; }
}
@media (hover: none) { .pr-row:hover .pr-name { font-variation-settings: "wdth" var(--w); color: inherit; } }


/* ════════════════════════════════════════════════════════════════
   Atelier layer: black and white, light uppercase Geist, the work
   and the 3D stack carry all the color. Overrides everything above.
   ════════════════════════════════════════════════════════════════ */
:root {
  --bg: #000; --bg-2: #070707; --panel: #0d0d0d; --panel-2: #141414;
  --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .26);
  --tx: #f3f2ef; --tx-2: #bdbbb5; --mu: #8c8a85;
  --acc: #f3f2ef; --acc-hi: #ffffff; --acc-ink: #0a0a0a; --gold: #c9a96e;
  --glow: rgba(255, 255, 255, .05);
  --f: "Geist", "Helvetica Neue", Arial, sans-serif; --serif: var(--f); --mono: var(--f);
}
body { font-family: var(--f); font-weight: 300; font-size: 16px; letter-spacing: .005em; }
.mono { font-family: var(--f); font-size: 11px; font-weight: 500; letter-spacing: .22em; }
.display, .cover-title, .ch-head h2, .gcopy h2, .gcopy .h2, .statement, .pr-name, .closing, .contact-aside h3, .confirm h3, .saldo-copy h3, .lede {
  font-family: var(--f); font-weight: 300; text-transform: uppercase; letter-spacing: -.01em; font-style: normal;
}
.cover-title .t, .gcopy em, .ch-head h2 .t { font-style: normal; color: var(--tx); }
.btn { font-family: var(--f); font-size: 11px; font-weight: 500; letter-spacing: .22em; min-height: 46px; padding: 0 30px; position: relative; }
.btn-acc { background: var(--tx); color: var(--acc-ink); }
.btn-acc:hover { background: #fff; }
.btn-line, .btn-line-ink { border-color: var(--line-2); color: var(--tx); background: rgba(255, 255, 255, .02); }
.btn-line:hover, .btn-line-ink:hover { border-color: var(--tx); background: rgba(255, 255, 255, .06); }
.btn-line::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 40%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent); }
.link-line::before { background: var(--tx); }
:focus-visible { outline-color: var(--tx); }
::selection { background: var(--tx); color: #000; }

/* nav: language left, mark centered, menu right; the index opens full screen */
.rail::before { background: rgba(0, 0, 0, .82); border-bottom-color: transparent; }
.rail-top { justify-content: space-between; padding: 0 var(--pad); }
.rail-top .lang-toggle { position: static; transform: none; }
.brand { position: absolute; left: 50%; transform: translateX(-50%); }
.brand span { font-family: "Archivo", var(--f); font-size: 15px; letter-spacing: .3em; }
.brand-mark { width: 18px; }
.menu-btn { display: inline-flex; align-items: center; gap: 14px; height: 44px; width: auto; }
.mb-l { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.menu-btn span, .menu-btn span::before { display: block; width: 18px; height: 1px; background: var(--tx); transition: transform 300ms var(--ease); }
.menu-btn span { position: relative; transform: translateY(-3px); }
.menu-btn span::before { content: ""; position: absolute; left: 0; top: 6px; }
.rail.open .menu-btn span { transform: rotate(45deg); }
.rail.open .menu-btn span::before { top: 0; transform: rotate(-90deg); }
.toc { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: var(--nav-h) var(--pad) 40px; background: #000; visibility: hidden; opacity: 0; transition: opacity 400ms var(--ease), visibility 0s linear 400ms; }
.rail.open .toc { visibility: visible; opacity: 1; transition: opacity 400ms var(--ease), visibility 0s; }
.toc ol { display: flex; flex-direction: column; align-items: center; gap: 0; width: auto; padding: 0; }
.toc li, .toc li.toc-home, .toc li:last-child { display: block; margin: 0 !important; }
.toc li a { display: flex; align-items: baseline; gap: 18px; min-height: 0; padding: 6px 0; border: 0; font-family: var(--f); font-size: clamp(1.9rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -.01em; text-transform: uppercase; }
.toc .n { font-size: 11px; letter-spacing: .2em; color: var(--mu); }
.toc a:hover span:last-child, .toc a[aria-current="true"] span:last-child { color: var(--tx); opacity: 1; }
.toc li a span:last-child { opacity: .55; transition: opacity 300ms var(--ease); }
.toc li a:hover span:last-child { opacity: 1; }
.rail-cta { display: inline-flex; margin-top: 36px; }
.rail-foot { display: block; margin-top: 18px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mu); text-align: center; }

/* scroll progress, a hairline at the foot of the screen */
.progress { position: fixed; left: var(--pad); right: var(--pad); bottom: 14px; height: 1px; background: rgba(255, 255, 255, .14); z-index: 34; pointer-events: none; }
.progress i { position: absolute; inset: 0; background: var(--tx); transform-origin: 0 50%; transform: scaleX(0); }
.dock { bottom: 30px; }

/* intro in black and white */
.ishape { stroke: var(--tx); }

/* opening: centered headline over the object, actions below it */
.glow-bg { background: radial-gradient(40% 46% at 50% 58%, rgba(255, 255, 255, .06), transparent 72%); }
.stack { left: 50%; top: 58%; width: min(34vw, 480px); }
.rig { perspective-origin: 50% 40%; }
.g0-head { left: 0; right: 0; top: calc(var(--nav-h) + 4vh); bottom: auto; max-width: none; text-align: center; transform: translateY(-10px); }
.g0-head.on { transform: none; }
.cover-title { font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: .98; max-width: 14ch; margin: 0 auto; letter-spacing: -.02em; }
.g0-foot { left: 0; right: 0; top: auto; bottom: 64px; max-width: none; text-align: center; transform: translateY(10px); }
.g0-foot.on { transform: none; }
.g0-foot p { margin: 0 auto; max-width: 40ch; font-size: 15px; color: var(--tx-2); }
.g0-foot .btns { justify-content: center; margin-top: 22px; }
.g1, .g2 { left: 0; right: 0; bottom: 70px; max-width: none; text-align: center; }
.gcopy h2, .gcopy .h2 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); line-height: 1; }
.gcopy p:not(.h2) { margin-left: auto; margin-right: auto; max-width: 44ch; }
.g2 em { color: var(--gold); }
.hint { left: 0; right: 0; bottom: 26px; text-align: center; letter-spacing: .22em; }
.call b { font-weight: 500; letter-spacing: .2em; }
.call small { letter-spacing: .14em; }
svg.lines line { stroke: rgba(255, 255, 255, .3); }
svg.lines circle { fill: var(--tx); }

/* statement: words come up out of the dark as you read */
.statement-sec { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.statement { font-size: clamp(1.9rem, 4.2vw, 4rem); line-height: 1.06; max-width: 22ch; margin: 0 auto; }
.statement .dim { color: inherit; }
.reveal-words .w { opacity: .14; transition: opacity 500ms var(--ease); }
.reveal-words .w.lit { opacity: 1; }
.reveal-words .dim .w.lit { color: var(--gold); }
.clients { grid-template-columns: 1fr; justify-items: center; text-align: center; border: 0; gap: 14px; }
.clients dt { font-size: 11px; letter-spacing: .22em; }
.clients dd { justify-content: center; font-weight: 300; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(1rem, 1.6vw, 1.25rem); }

/* work: numbered full-screen slides over a blurred wash of the piece */
.cf { height: 600vh; }
.cf-sticky { padding: 0; }
.work-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.1) brightness(.5); transform: scale(1.1); transition: background-image 600ms var(--ease); }
.work-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, transparent, rgba(0, 0, 0, .75)); }
.cf-sticky .ch-head { position: absolute; left: var(--pad); right: var(--pad); top: calc(var(--nav-h) + 8px); z-index: 2; display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.cf-sticky .ch-head h2 { font-size: 11px; font-weight: 500; letter-spacing: .22em; line-height: 1.4; }
.cf-sticky .ch-head .ch-no, .cf-sticky .ch-note { display: none; }
.slides { position: absolute; inset: 0; margin: 0; perspective: none; }
.slides .plate { position: absolute; inset: 0; left: 0; width: auto; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding: 0 clamp(24px, 9vw, 160px); opacity: 0; visibility: hidden; transform: none !important; filter: none !important; transition: opacity 700ms var(--ease), visibility 0s linear 700ms; }
.slides .plate.now { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease), visibility 0s; }
.slides .mat { height: auto; aspect-ratio: 1; max-height: 64vh; justify-self: end; width: min(100%, 64vh); background: rgba(0, 0, 0, .35); padding: clamp(18px, 2.4vw, 36px); }
.slides .mat::before { display: none; }
.slides .plate .mat img { transform: scale(.96); transition: transform 1200ms var(--ease); }
.slides .plate.now .mat img { transform: none; }
.slides .cap { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin: 0; padding: 0; border: 0; opacity: 1 !important; }
.slides .cap .fig { order: -2; font-size: 13px; font-weight: 400; letter-spacing: .06em; color: var(--tx-2); margin-bottom: 18px; }
.slides .cap b { font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: .98; font-weight: 300; text-transform: uppercase; letter-spacing: -.015em; max-width: 12ch; }
.slides .cap > span:not(.fig):not(.sw) { margin-top: 18px; font-size: 11px; letter-spacing: .22em; color: var(--tx-2); }
.slides .cap .sw { order: 5; margin-top: 26px; padding: 0; }
.slides .cap .sw i { width: 14px; height: 14px; }
.slides .plate-link { position: absolute; inset: auto; left: auto; right: auto; }
.cf-count { right: var(--pad); left: auto; bottom: 46px; font-size: 13px; letter-spacing: .06em; }
.work-sec .more-wrap { position: relative; z-index: 1; background: var(--bg); }
html:not(.js) .slides .plate, .reduced .slides .plate { position: relative; opacity: 1; visibility: visible; min-height: 80vh; }
html:not(.js) .work-bg, .reduced .work-bg { display: none; }

/* services: full-screen panels that stack as you scroll */
.practices { border: 0; perspective: none; }
.js.motion .pr-name { transform: none; }
.pr-row { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 0; padding: 0; border: 0; background: var(--bg); }
.pr-row > :not(.pr-img) { grid-column: 1; padding-left: clamp(24px, 6vw, 100px); padding-right: clamp(24px, 4vw, 64px); }
.pr-row { grid-auto-flow: row; align-content: center; }
.pr-no { padding-top: 0; font-size: 11px; letter-spacing: .22em; color: var(--mu); }
.pr-no::before { content: "Service "; }
.pr-name { font-size: clamp(3rem, 6.4vw, 6rem); line-height: .95; margin: 14px 0 22px; }
.pr-row:hover .pr-name { font-style: normal; color: var(--tx); }
.pr-desc { max-width: 40ch; padding-bottom: 0; color: var(--tx-2); font-size: 16px; }
.pr-items { margin-top: 18px; font-size: 11px; letter-spacing: .2em; color: var(--mu); gap: 6px 20px; }
.pr-items span + span::before { content: none; }
.pr-cta { justify-self: start; margin-top: 30px; margin-left: clamp(24px, 6vw, 100px); }
.pr-img { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; overflow: hidden; background: #0b0b0b; }
.pr-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
#services .ch-head { min-height: 50vh; align-content: center; }

/* chapter heads: quiet label, large light uppercase */
.ch-head { grid-template-columns: 90px minmax(0, 1fr) minmax(200px, 320px); }
.ch-no { font-size: 11px; letter-spacing: .22em; }
.ch-head h2 { font-size: clamp(2.6rem, 6vw, 5.75rem); line-height: .96; }
.sub-head, .group { font-size: 11px; font-weight: 500; letter-spacing: .22em; }

/* pricing, about, faq, contact in the same quiet register */
.pk { background: rgba(255, 255, 255, .02); border-color: var(--line); }
.pk.hot { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .4); }
.pk.hot .label { background: var(--tx); color: #000; }
.pk .name { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.pk .price { font-family: var(--f); font-weight: 200; font-size: clamp(3.4rem, 5.6vw, 5.2rem); letter-spacing: -.03em; }
.pk .per { font-weight: 300; }
.pk::after { background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .07), transparent 60%); }
.pk.sel { border-color: var(--tx); }
.pk-show[aria-pressed="true"] { color: var(--tx); }
.pk-show[aria-pressed="true"]::before { background: var(--tx); }
.menu.filtering .row.lit { background: rgba(255, 255, 255, .08); }
.menu.filtering .row.lit b, .row .either { color: var(--tx); }
.menu .row b { font-weight: 400; }
.result .num { font-family: var(--f); font-weight: 200; font-size: clamp(2.4rem, 3.6vw, 3.2rem); letter-spacing: -.03em; }
.lede { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; }
.saldo-price b { font-family: var(--f); font-weight: 200; }
.saldo-copy li::before { color: var(--tx-2); }
.faq summary { font-weight: 300; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.faq summary::after { background: linear-gradient(var(--tx), var(--tx)) center / 14px 1px no-repeat, linear-gradient(var(--tx), var(--tx)) center / 1px 14px no-repeat; }
.ticket { background: rgba(255, 255, 255, .02); }
.input:focus, .select:focus { border-bottom-color: var(--tx); }
.check:has(input:checked) { border-color: var(--tx); background: rgba(255, 255, 255, .07); }
.check input { accent-color: #fff; }
.req { color: var(--tx-2); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f3f2ef' stroke-width='1.2'/%3E%3C/svg%3E"); }
.cap .sw i { border-radius: 50%; }
.plate:has(.plate-link) .cap b::after { background: var(--tx); }
.foot-brand .brand-mark { fill: var(--tx); }

@media (max-width: 900px) {
  .rail-top { padding: 0 12px; }
  .rail-top .lang-toggle { margin-left: 0; }
  .mb-l { display: none; }
  .menu-btn { width: 44px; justify-content: center; }
  .brand span { font-size: 13px; }
  .stack { top: 56%; width: 64vw; }
  .g0-head { top: calc(var(--nav-h) + 3vh); }
  .cover-title { font-size: clamp(2rem, 9.4vw, 2.8rem); padding: 0 16px; }
  .g0-foot { bottom: 92px; padding: 0 20px; }
  .g0-foot .btns { flex-direction: column; align-items: stretch; }
  .g1, .g2 { bottom: 100px; padding: 0 20px; }
  .slides .plate { grid-template-columns: 1fr; align-content: center; gap: 26px; padding: calc(var(--nav-h) + 40px) 24px 120px; }
  .slides .mat { justify-self: center; width: min(100%, 44vh); }
  .slides .cap b { font-size: 2.2rem; }
  .pr-row { grid-template-columns: 1fr; align-content: start; padding-top: 44vh; padding-bottom: 60px; }
  .pr-img { left: 0; right: 0; bottom: auto; width: auto; height: 42vh; }
  .pr-row > :not(.pr-img) { padding-left: 24px; padding-right: 24px; }
  .pr-no { margin-top: 28px; }
  .pr-cta { margin-left: 24px; }
  .progress { bottom: 8px; }
  .dock { bottom: 22px; }
  .toc li a { font-size: 2rem; }
}
.dims { display: none !important; }
.footer li a { padding: 11px 0; }
@media (max-width: 900px) {
  .mono, .mb-l, .pr-no, .pr-items, .ch-no, .sub-head, .group, .clients dt, .rail-foot, .btn, .slides .cap > span:not(.fig):not(.sw), .cf-sticky .ch-head h2, .call b, .hint { font-size: 12px; }
}
@media (max-width: 900px) {
  .ch-head h2 { font-size: clamp(1.9rem, 8.6vw, 2.6rem); overflow-wrap: break-word; }
}
@media (max-width: 1100px) {
  .ch-head { grid-template-columns: 70px minmax(0, 1fr); }
  .ch-note { grid-column: 2; }
}
@media (max-width: 900px) {
  .ch-head { grid-template-columns: minmax(0, 1fr); }
  .ch-note { grid-column: 1; }
}

/* ── Phone: native feel, and nothing hidden behind anything ── */
.dock.btn { position: fixed; }
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, .btn, [role="button"] { touch-action: manipulation; }
button, .btn, .lang-toggle, .menu-btn, .pk-show, summary, .stack, .check { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.toc { overscroll-behavior: contain; overflow-y: auto; }
.rail { padding-top: env(safe-area-inset-top, 0px); height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); }
.rail-top { top: env(safe-area-inset-top, 0px); }
.dock { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.progress { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.btn:active { transform: scale(.98); }
.dock.btn:active { transform: translateX(-50%) scale(.98); }
@media (hover: none) {
  .plate:hover .mat img { transform: none; }
  .plate:hover .mat { background: var(--panel); }
  .btn-line:hover, .btn-line-ink:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
  .link-line:hover::before { width: 28px; }
  .faq summary:hover span:last-child, .toc a:hover span:last-child { color: inherit; }
}
@media (max-width: 900px) {
  .dock { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transition: transform 360ms var(--ease), opacity 300ms var(--ease); }
  .dock.btn:active { transform: scale(.98); }
  .dock.hide { transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none; }
  .progress { bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  /* opening: a compact foot so the object has its own space */
  .stack { top: 47%; width: 60vw; }
  .g0-foot { bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .g0-foot p { font-size: 14px; max-width: 34ch; }
  .g0-foot .btns { flex-direction: row; gap: 8px; margin-top: 16px; }
  .g0-foot .btn { flex: 1; padding: 0 10px; min-height: 48px; }
  .g1, .g2 { bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
  .g1 h2, .g2 .h2 { font-size: clamp(1.4rem, 6.4vw, 1.9rem); }
  .g1 p, .g2 p:not(.h2) { font-size: 14px; }
  .hint { display: none; }
  /* services: plain stacked panels on phones, so every line and button is reachable */
  .pr-row { position: relative; min-height: 0; padding-top: 0; padding-bottom: 72px; display: flex; flex-direction: column; }
  .pr-img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; margin-bottom: 28px; order: -1; }
  .pr-img img { position: absolute; }
  .pr-row > :not(.pr-img) { padding-left: 24px; padding-right: 24px; }
  .pr-no { margin-top: 0; }
  .pr-cta { align-self: flex-start; }
  #services .ch-head { min-height: 0; }
  /* work slides fit short screens */
  .slides .plate { padding: calc(var(--nav-h) + 44px) 24px 80px; gap: 20px; }
  .slides .mat { width: min(100%, 38vh); }
  .slides .cap b { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .slides .cap .fig { margin-bottom: 10px; }
  .slides .cap > span:not(.fig):not(.sw) { margin-top: 10px; }
  .slides .cap .sw { margin-top: 14px; }
  .cf-count { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 900px) and (max-height: 700px) {
  .stack { top: 45%; width: 54vw; }
  .cover-title { font-size: clamp(1.8rem, 8.4vw, 2.4rem); }
}
@media (max-width: 900px) {
  .g0-foot .btn { letter-spacing: .12em; white-space: nowrap; }
  .pr-row { align-items: flex-start; text-align: left; }
}

/* the top card of the stack: Tercero's own mark */
.brand-layer .face { background: #050505; }
.brand-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7%; width: 100%; height: 100%; background: radial-gradient(80% 90% at 50% 40%, #161616, #050505 70%); }
.brand-card svg { height: 42%; width: auto; fill: #f3f2ef; }
.brand-card span { font-family: "Archivo", var(--f); font-weight: 800; font-variation-settings: "wdth" 125; letter-spacing: .34em; padding-left: .34em; color: #f3f2ef; font-size: clamp(10px, 1.6vw, 22px); }

/* ── Software: a quiet index of products, each with its screen ── */
.soft { border-top: 1px solid var(--line); }
.soft-row { position: relative; display: grid; grid-template-columns: 56px 200px minmax(0, 1fr) minmax(0, 1.1fr) 250px; grid-template-areas: "n img name desc meta"; column-gap: 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.soft-n { grid-area: n; color: var(--mu); }
.soft-thumb { grid-area: img; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border: 1px solid var(--line); filter: grayscale(1) brightness(.8); transition: filter 500ms var(--ease); }
.soft-ph { display: grid; place-items: center; background: var(--panel); color: var(--mu); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.soft-name { grid-area: name; font-family: var(--f); font-weight: 300; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.6rem, 2.8vw, 2.6rem); line-height: 1; }
.soft-desc { grid-area: desc; color: var(--tx-2); font-size: 15px; max-width: 44ch; }
.soft-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; color: var(--tx); }
.soft-stack { color: var(--mu); letter-spacing: .12em; }
.soft-link { position: absolute; inset: 0; }
@media (hover: hover) and (pointer: fine) {
  .soft-row:hover .soft-thumb { filter: none; }
}
@media (max-width: 1100px) {
  .soft-row { grid-template-columns: 44px 160px minmax(0, 1fr); grid-template-areas: "n img name" "n img desc" "n img meta"; row-gap: 8px; }
  .soft-meta { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
}
@media (max-width: 900px) {
  .soft-row { grid-template-columns: 1fr; grid-template-areas: "n" "img" "name" "desc" "meta"; row-gap: 10px; padding: 28px 0 32px; }
  .soft-thumb { filter: none; margin-bottom: 8px; }
  .soft-name { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

/* top card of the stack: the mark and the wordmark, sized to the card */
.brand-card { position: absolute; inset: 0; container-type: size; }
.brand-card svg { height: 40cqh; }
.brand-card span { font-size: max(12px, 8cqh); }

.dock { transition: transform 360ms var(--ease), opacity 300ms var(--ease); }
.dock.hide { opacity: 0; pointer-events: none; transform: translate(-50%, calc(100% + 40px)); }
@media (max-width: 900px) { .dock.hide { transform: translateY(calc(100% + 40px)); } }
@media (max-width: 900px) { .soft-ph { font-size: 12px; } }

/* ── Software slides: the screen, tilted toward you, owns the slide ── */
#sf { height: 420vh; }
.app-slides .plate { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.app-slides .mat { order: 2; justify-self: start; width: 100%; max-height: none; aspect-ratio: 16 / 10; padding: 0; background: none; perspective: 1600px; }
.app-slides .mat img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: left top; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95); transform: rotateY(-16deg) rotateX(6deg) scale(.94); transform-origin: 30% 50%; transition: transform 1400ms var(--ease); }
.app-slides .plate.now .mat img { transform: rotateY(-9deg) rotateX(3deg); }
.app-slides .cap { order: 1; }
.app-slides .cap > span[data-i18n^="st_"] { order: -1; margin: 0 0 14px; color: var(--gold); }
.app-slides .cap .fig { order: -2; }
.app-desc { margin-top: 20px !important; max-width: 34ch; font-size: 16px !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--tx-2) !important; line-height: 1.55; }
.app-stack { margin-top: 18px; color: var(--mu); }
#software .more-wrap { padding-top: 90px; }
.soft-sec .ch-note { display: none; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 24px clamp(40px, 7vw, 110px); margin-top: clamp(56px, 7vw, 96px); padding: 0; border: 0; }
.facts div { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; }
.facts dd { font-size: clamp(2.6rem, 5vw, 4.2rem) !important; font-weight: 200 !important; letter-spacing: -.03em !important; text-transform: none !important; }
.facts dt { font-size: 11px; letter-spacing: .22em; color: var(--mu); text-transform: uppercase; padding: 0; }
@media (max-width: 900px) {
  .app-slides .plate { grid-template-columns: 1fr; }
  .app-slides .mat { order: 0; width: 100%; aspect-ratio: 16 / 10; }
  .app-slides .mat img { transform: none; }
  .app-slides .plate.now .mat img { transform: none; }
  .app-desc { font-size: 14px !important; margin-top: 12px !important; }
  .app-stack { margin-top: 10px; }
  .facts { grid-template-columns: 1fr; gap: 28px; }
  .facts dt { font-size: 12px; }
}
.slides.app-slides .mat { width: 100%; max-width: none; max-height: none; justify-self: stretch; }
.slides.app-slides .plate { padding-right: clamp(24px, 5vw, 80px); }
