/* Quinto Ponto Cardeal | styles
   Tokens first, then base, layout, components. No framework. */

@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/cormorant-garamond-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2')}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:100 900;font-display:swap;src:url(fonts/hanken-grotesk-latin-wght-normal.woff2) format('woff2')}

:root{
  --bg:#F4EFE3;--bg-2:#ECE5D4;--surface:#FBF8F1;
  --ink:#0B1220;--ink-2:#434D5F;--ink-3:#5B6477;
  --line:rgba(11,18,32,.14);--line-2:rgba(11,18,32,.3);
  --gold:#C28A2B;--gold-text:#85560A;--gold-logo:#C28A2B;--azul:#243F9C;
  --btn-bg:#E8B04B;--btn-bg-h:#F0BE62;--btn-ink:#0B1220;
  --focus:#0B1220;--err:#A3231B;
  --header-bg:rgba(244,239,227,.86);
  --shadow:0 30px 60px -34px rgba(11,18,32,.45);
  --serif:'Cormorant Garamond','Iowan Old Style','Palatino Linotype',Georgia,serif;
  --sans:'Hanken Grotesk',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --wrap:1240px;--gutter:clamp(20px,4.4vw,56px);
  --header-h:72px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
html[data-theme="dark"]{
  --bg:#0B1220;--bg-2:#0F192B;--surface:#111D33;
  --ink:#F1F4FA;--ink-2:#B3BDCF;--ink-3:#8C98AD;
  --line:rgba(241,244,250,.14);--line-2:rgba(241,244,250,.32);
  --gold:#E8B04B;--gold-text:#EDBB62;--gold-logo:#E8B04B;--azul:#86A2EE;
  --focus:#F1F4FA;--err:#FF9A92;
  --header-bg:rgba(11,18,32,.84);
  --shadow:0 30px 60px -34px rgba(0,0,0,.8);
}
.on-dark{
  --surface:#111D33;--bg:#0A101C;--bg-2:#0F192B;--ink:#F1F4FA;--ink-2:#B3BDCF;--ink-3:#8C98AD;
  --line:rgba(241,244,250,.16);--line-2:rgba(241,244,250,.34);--gold:#E8B04B;--gold-text:#EDBB62;--focus:#F1F4FA;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + 12px)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1.0625rem/1.62 var(--sans);font-feature-settings:"kern","liga";-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:clip}
html{overflow-x:clip}
img,svg{max-width:100%}
h1,h2,h3,h4,p,ul,ol,figure,blockquote{margin:0}
ul,ol{padding:0;list-style:none}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
[hidden]{display:none!important}
main:focus{outline:none}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:2px}
::selection{background:var(--btn-bg);color:#0B1220}

.wrap{width:100%;max-width:calc(var(--wrap) + var(--gutter)*2);margin-inline:auto;padding-inline:var(--gutter)}
.wrap.narrow{max-width:calc(780px + var(--gutter)*2)}
.skip{position:fixed;left:12px;top:-60px;z-index:100;background:var(--btn-bg);color:#0B1220;padding:10px 16px;font-weight:600;text-decoration:none;border-radius:2px;transition:top .2s}
.skip:focus{top:12px}

/* ---------- header ---------- */
.progress{position:fixed;inset:0 0 auto 0;height:2px;z-index:60;pointer-events:none}
.progress span{display:block;height:100%;width:100%;background:var(--gold);transform:scaleX(0);transform-origin:0 50%}
.site-header{position:sticky;top:0;z-index:50;background:var(--header-bg);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid transparent;transition:border-color .25s}
.site-header.scrolled{border-bottom-color:var(--line)}
.bar{display:flex;align-items:center;gap:24px;height:var(--header-h)}
.brand{display:inline-flex;align-items:center;flex:0 0 auto;text-decoration:none;color:var(--ink);border-radius:2px}
.brand{gap:10px}.brand-emblem{display:block;width:48px;height:48px;flex:0 0 auto}.brand-name{font-family:var(--serif);font-weight:700;font-size:1.32rem;line-height:1;letter-spacing:.01em;color:var(--ink);white-space:nowrap}
.nav{margin-left:auto;display:none}
.nav ul{display:flex;gap:clamp(14px,2vw,32px)}
.nav a{position:relative;display:inline-block;padding:10px 2px;text-decoration:none;font-size:.9375rem;font-weight:500;color:var(--ink-2);transition:color .2s}
.nav a::after{content:"";position:absolute;left:0;right:0;bottom:4px;height:1px;background:var(--gold);transform:scaleX(0);transform-origin:0 50%;transition:transform .35s var(--ease)}
.nav a:hover,.nav a[aria-current="true"]{color:var(--ink)}
.nav a:hover::after,.nav a[aria-current="true"]::after{transform:scaleX(1)}
.tools{margin-left:auto;display:flex;align-items:center;gap:8px}
.lang-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 10px;text-decoration:none;font-size:.8125rem;font-weight:700;letter-spacing:.12em;color:var(--ink-2);border:1px solid var(--line);border-radius:2px;transition:border-color .2s,color .2s}
.lang-link:hover{border-color:var(--gold);color:var(--ink)}
.lang-menu{position:relative}
.lang-menu>summary{list-style:none;cursor:pointer;user-select:none}
.lang-menu>summary::-webkit-details-marker{display:none}
.lang-menu[open]>summary{border-color:var(--gold);color:var(--ink)}
.lang-list{position:absolute;right:0;top:calc(100% + 6px);z-index:61;min-width:184px;margin:0;padding:6px;list-style:none;background:var(--surface);border:1px solid var(--line-2);border-radius:2px;box-shadow:var(--shadow)}
.lang-list a{display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;text-decoration:none;color:var(--ink-2);font-size:.9375rem;border-radius:2px}
.lang-list a:hover{color:var(--ink);background:var(--bg-2)}
.lang-list a[aria-current]{color:var(--ink);font-weight:700}
.lang-code{min-width:2.2em;font-size:.75rem;font-weight:700;letter-spacing:.12em;color:var(--gold-text)}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:transparent;border:1px solid var(--line);border-radius:2px;cursor:pointer;color:var(--ink);transition:border-color .2s}
.icon-btn:hover{border-color:var(--gold)}
.icon-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-btn .i-moon{display:none}
html[data-theme="light"] .theme-btn .i-sun{display:none}
html[data-theme="light"] .theme-btn .i-moon{display:block}
.site-header .cta-head{display:none}
.bars{position:relative;width:20px;height:14px;display:block}
.bars i{position:absolute;left:0;right:0;height:1.6px;background:currentColor;transition:transform .3s var(--ease),opacity .2s,top .3s var(--ease)}
.bars i:nth-child(1){top:0}.bars i:nth-child(2){top:6.2px}.bars i:nth-child(3){top:12.4px}
.menu-open .bars i:nth-child(1){top:6.2px;transform:rotate(45deg)}
.menu-open .bars i:nth-child(2){opacity:0}
.menu-open .bars i:nth-child(3){top:6.2px;transform:rotate(-45deg)}

.menu{position:fixed;inset:var(--header-h) 0 0 0;padding-bottom:110px!important;background:var(--bg);overflow-y:auto;z-index:49;padding-block:20px 40px;opacity:0;transform:translateY(-8px);transition:opacity .28s var(--ease),transform .28s var(--ease)}
.menu-open .menu{opacity:1;transform:none}
.menu ul{border-top:1px solid var(--line)}
.menu li{border-bottom:1px solid var(--line)}
.menu li a{display:flex;align-items:baseline;gap:18px;padding:18px 2px;text-decoration:none;font:500 clamp(1.9rem,8vw,2.6rem)/1.1 var(--serif);color:var(--ink)}
.menu li a[aria-current="true"]{color:var(--gold-text)}
.menu .m-n{font:600 .8125rem/1 var(--sans);letter-spacing:.14em;color:var(--gold-text)}
.menu .btn{margin-top:28px;width:100%}
html.menu-open{overflow:hidden}


@media (max-width:420px){.brand-emblem{width:40px;height:40px}.brand-name{font-size:1.08rem}.tools{gap:6px}.lang-link,.icon-btn{width:40px;min-width:40px;height:40px}}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:0 26px;font:600 .9375rem/1 var(--sans);letter-spacing:.04em;text-decoration:none;border:1px solid transparent;border-radius:2px;cursor:pointer;transition:background .2s,border-color .2s,transform .2s var(--ease),color .2s}
.btn-primary{background:var(--btn-bg);color:var(--btn-ink)}
.btn-primary:hover{background:var(--btn-bg-h)}
.btn-ghost{background:transparent;border-color:var(--line-2);color:var(--ink)}
.btn-ghost:hover{border-color:var(--gold)}
.btn-sm{min-height:44px;padding:0 18px;font-size:.875rem}
.btn .arr{transition:transform .25s var(--ease)}
@media (hover:hover) and (pointer:fine){.btn:hover .arr{transform:translateX(3px)}}
.btn:active{transform:translateY(1px)}

/* ---------- contact ---------- */
.direct{margin-top:14px;color:var(--ink-2)}
.direct a{color:var(--ink);text-underline-offset:4px}
.form{display:grid;gap:20px 20px;grid-template-columns:1fr;align-content:start}
@media (min-width:640px){.form{grid-template-columns:1fr 1fr}.form .wide{grid-column:1/-1}}
.field{display:grid;gap:8px;align-content:start}
.field label{font:600 .875rem/1.3 var(--sans);color:var(--ink)}
.field input[type=text],.field input[type=email],.field select,.field textarea{width:100%;min-height:50px;padding:12px 14px;background:var(--surface);border:1px solid var(--line-2);border-radius:2px;color:var(--ink);transition:border-color .2s,box-shadow .2s}
.field textarea{resize:vertical;min-height:140px;line-height:1.5}
.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--ink-3)}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--gold) 38%,transparent)}
.field [aria-invalid="true"]{border-color:var(--err)}
.select-wrap{position:relative}
.select-wrap::after{content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;border-right:1.5px solid var(--ink-2);border-bottom:1.5px solid var(--ink-2);transform:translateY(-70%) rotate(45deg);pointer-events:none}
.select-wrap select{appearance:none;-webkit-appearance:none;padding-right:40px;cursor:pointer}
.hint{font-size:.8125rem;color:var(--ink-3)}
.err{font-size:.8125rem;font-weight:600;color:var(--err)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.check{grid-template-columns:auto 1fr;column-gap:12px;align-items:start}
.check input{width:24px;height:24px;margin:1px 0 0;accent-color:var(--gold)}
.check label{font-weight:400;letter-spacing:0;font-size:.9375rem;color:var(--ink-2)}
.check label a{color:var(--ink);text-underline-offset:3px}
.check .err{grid-column:1/-1}
.form .btn[disabled]{opacity:.7;cursor:progress}
.form-status{padding:16px 18px;border:1px solid var(--line-2);border-left:3px solid var(--gold);background:var(--surface);font-size:.9375rem}
.form-status strong{display:block;font:600 1.25rem/1.2 var(--serif);margin-bottom:4px}
.form-status.is-error{border-left-color:var(--err)}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line);padding-block:clamp(44px,6vw,80px) 28px;background:var(--bg)}
.foot{display:grid;gap:36px}
.foot-logo{margin:0}.foot-brand .brand-emblem{width:56px;height:56px}.foot-brand .brand-name{font-size:1.5rem;font-style:normal}
.foot-brand p{margin-top:16px;max-width:24em;color:var(--ink-2);font:italic 500 1.25rem/1.35 var(--serif)}
.foot-nav ul{display:grid;gap:4px}
.foot-nav a{display:inline-block;padding:8px 0;text-decoration:none;color:var(--ink-2);font-size:.9375rem}
.foot-nav a:hover{color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:5px}
.foot-meta{display:grid;gap:6px;align-content:start;color:var(--ink-3);font-size:.875rem}
.foot-meta a{color:var(--ink-2)}
.foot-base{margin-top:36px;padding-top:22px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--ink-3);font-size:.8125rem}
.to-top{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:2px;text-decoration:none;font-size:1.125rem;color:var(--ink);transition:border-color .2s,transform .25s var(--ease)}
.to-top:hover{border-color:var(--gold)}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){.to-top:hover{transform:translateY(-2px)}}
@media (min-width:860px){.foot{grid-template-columns:1.4fr 1fr 1fr;gap:56px}}

/* ---------- document pages ---------- */
.doc{padding-block:clamp(48px,7vw,96px) clamp(72px,9vw,128px)}
.doc .back{text-decoration:none;color:var(--ink-2)}
.doc .back:hover{color:var(--ink)}
.doc-title{margin-top:28px;font:500 clamp(2.4rem,6vw,4.2rem)/1.04 var(--serif)}
.doc-meta{margin-top:14px;color:var(--ink-3);font-size:.9375rem}
.doc-h{margin-top:44px;font:600 1.75rem/1.15 var(--serif)}
.doc p+p{margin-top:12px}
.doc .doc-h+p{margin-top:12px}
.doc p{color:var(--ink-2)}
.nf-code{font:italic 500 clamp(5rem,16vw,10rem)/1 var(--serif);color:var(--gold-text);opacity:.9}
.nf .btn{margin-top:28px}

/* ---------- print ---------- */
@media print{.site-header,.progress,.menu,.skip,.to-top,.plate{display:none!important}body{background:#fff;color:#000}.section{padding-block:24px}}

/* ---------- nautical chart theming ---------- */
.chart{--c-paper:#F3EDE0;--c-water:#F8F4EA;--c-land:#E6DAC0;--c-ink:#0B1220;--gold:#C28A2B;--gold-text:#8A5A0C;display:block;width:100%;height:auto}
[data-theme="dark"] .chart,[data-theme="dark"].chart{--c-paper:#0B1220;--c-water:#0E1A2E;--c-land:#15263F;--c-ink:#C9D6EC;--gold:#E8B04B;--gold-text:#E8B04B}
.ch-paper{fill:var(--c-paper)}.ch-water{fill:var(--c-water)}
.ch-rhumb{stroke:var(--c-ink);stroke-opacity:.15;stroke-width:.8;fill:none}.ch-rhumb.b{stroke:var(--gold);stroke-opacity:.3}
.ch-halo2{fill:none;stroke:var(--c-ink);stroke-opacity:.045;stroke-width:15;stroke-linejoin:round}
.ch-halo1{fill:none;stroke:var(--c-ink);stroke-opacity:.07;stroke-width:7;stroke-linejoin:round}
.ch-land{fill:var(--c-land)}
.ch-coast{fill:none;stroke:var(--c-ink);stroke-width:1.15;stroke-opacity:.85;stroke-linejoin:round}
.ch-ring{fill:none;stroke:var(--c-ink);stroke-width:1.3;stroke-opacity:.75}.ch-ring.thin{stroke-width:.6;stroke-opacity:.5}
.ch-pt-a{fill:var(--c-ink);fill-opacity:.9}.ch-pt-b{fill:var(--c-water);stroke:var(--c-ink);stroke-width:.8}
.ch-north{fill:var(--gold)}
.ch-frame{fill:none;stroke:var(--c-ink);stroke-width:1.5}.ch-frame.thin{stroke-width:.6;stroke-opacity:.6}
.ch-tick{stroke:var(--c-ink);stroke-width:.8;fill:none}
.ch-tick-label{font:500 10.5px 'Hanken Grotesk Variable','Hanken Grotesk',system-ui,sans-serif;letter-spacing:.06em;fill:var(--c-ink);opacity:.7}
.ch-label{font:italic 500 19px 'Cormorant Garamond',Georgia,serif;fill:var(--c-ink)}
.ch-label.cap{font-style:normal;font-weight:600;font-size:18px}
.ch-label.strong{font-style:normal;font-weight:700;font-size:24px;paint-order:stroke;stroke:var(--c-water);stroke-width:5px}
.ch-label.gold{fill:var(--gold-text);font-size:23px;font-weight:600;paint-order:stroke;stroke:var(--c-water);stroke-width:5px}
.ch-city{fill:var(--c-ink)}
.ch-route{fill:none;stroke:var(--gold);stroke-width:2.8;stroke-linecap:round;stroke-dasharray:1 9}
.ch-mask{fill:none;stroke:#fff;stroke-width:16}
.ch-lis-ring{fill:none;stroke:var(--gold);stroke-width:2}.ch-lis-dot{fill:var(--gold)}
.ch-needle{fill:var(--gold)}.ch-q-ring{fill:none;stroke:#243F9C;stroke-width:9;stroke-opacity:.85}.ch-q-leg{fill:var(--gold);stroke:var(--gold-text);stroke-width:1;stroke-linejoin:round}[data-theme="dark"] .ch-q-ring{stroke:#86A2EE}.ch-fifth-ring{fill:none;stroke:var(--gold);stroke-width:1.4;stroke-dasharray:2 4}

/* azulejo band, taken from the tile pattern of the original logo concept */
.azulejo{height:48px;background:var(--azul);opacity:.5;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='M24 0A24 24 0 0 1 0 24M24 0A24 24 0 0 0 48 24M0 24A24 24 0 0 0 24 48M48 24A24 24 0 0 1 24 48'/%3E%3Cg%3E%3Cellipse cx='24' cy='14.5' rx='4' ry='8.5'/%3E%3Cellipse cx='24' cy='14.5' rx='4' ry='8.5' transform='rotate(90 24 24)'/%3E%3Cellipse cx='24' cy='14.5' rx='4' ry='8.5' transform='rotate(180 24 24)'/%3E%3Cellipse cx='24' cy='14.5' rx='4' ry='8.5' transform='rotate(270 24 24)'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='2.4' fill='%23000' stroke='none'/%3E%3C/svg%3E") repeat-x center/48px 48px;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='M24 0A24 24 0 0 1 0 24M24 0A24 24 0 0 0 48 24M0 24A24 24 0 0 0 24 48M48 24A24 24 0 0 1 24 48'/%3E%3Cg%3E%3Cellipse cx='24' cy='14.5' rx='4' ry='8.5'/%3E%3Cellipse cx='24' cy='14.5' rx='4' ry='8.5' transform='rotate(90 24 24)'/%3E%3Cellipse cx='24' cy='14.5' rx='4' ry='8.5' transform='rotate(180 24 24)'/%3E%3Cellipse cx='24' cy='14.5' rx='4' ry='8.5' transform='rotate(270 24 24)'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='2.4' fill='%23000' stroke='none'/%3E%3C/svg%3E") repeat-x center/48px 48px}
.azulejo-wrap{padding-block:28px 0;overflow:hidden}
@media print{.azulejo-wrap{display:none}}

/* ==========================================================
   Route layout (November 2026): the page is a voyage on a chart.
   One bold device, the compass rail; everything else stays quiet.
   ========================================================== */
.site-header .cta-head{display:none}
@media (min-width:760px){.site-header .cta-head{display:inline-flex}}

/* compass parts, shared by rail and dock */
.d-ring{fill:none;stroke:currentColor;stroke-opacity:.55;stroke-width:1.2}
.d-ring.thin{stroke-opacity:.25;stroke-width:.8}
.d-ticks{stroke:currentColor;stroke-opacity:.6;stroke-width:1.2;fill:none}
.d-l{font:600 11px var(--serif);text-anchor:middle;fill:currentColor}
.n-n{fill:var(--gold)}.n-s{fill:currentColor;opacity:.5}.n-c{fill:var(--bg);stroke:var(--gold);stroke-width:1.5}
.needle{transform-box:view-box;transform-origin:60px 60px;transform:rotate(var(--deg,0deg))}
.q-ring{fill:#243F9C}.q-rim{fill:none;stroke:#C9962F;stroke-width:2.2}.q-card{fill:#F6F0E2}.q-tick{stroke:#8A6A2A;stroke-width:.8;fill:none}.q-b{fill:#2B4AA8}.q-g{fill:#E6B44C}.q-gs{fill:#B9831F}.q-l{font:700 9.5px var(--serif);fill:#0B1220;text-anchor:middle}.q-leg{fill:#D9A43C;stroke:#8E6212;stroke-width:1;stroke-linejoin:round}.q-hub{fill:#E6B44C;stroke:#8E6212;stroke-width:1}
@media (prefers-reduced-motion:no-preference){.needle{transition:transform .45s var(--ease)}}

/* rail: desktop only, on the home page */
.rail{display:none}
@media (min-width:1100px){
  body:has(.rail){padding-left:184px}
  .rail{display:flex;flex-direction:column;position:fixed;z-index:55;left:0;top:0;bottom:0;width:184px;padding:18px 0 26px;background:var(--bg);border-right:1px solid var(--line)}
  .rail-compass{display:block;width:104px;height:104px;margin:0 auto 8px;border-radius:50%;color:var(--ink)}
  .rail-compass svg{display:block;width:100%;height:100%}
  .rail-list{position:relative;flex:1;display:flex;flex-direction:column;justify-content:space-between;margin:12px 0 0 34px;padding:0}
  .rail-list::before,.rail-list::after{content:"";position:absolute;left:5px;top:22px;bottom:22px}
  .rail-list::before{border-left:1px dashed var(--line-2)}
  .rail-list::after{bottom:auto;width:2px;margin-left:-.5px;height:calc((100% - 44px) * var(--route,0));background:var(--gold)}
  .rail-list a{position:relative;z-index:1;display:flex;align-items:center;gap:14px;min-height:44px;padding-right:12px;text-decoration:none;color:var(--ink-3);font:500 .9375rem/1.2 var(--sans);transition:color .2s}
  .rail-list a:hover,.rail-list a[aria-current="true"]{color:var(--ink)}
  .rail-list a[aria-current="true"] .wp-l{font-weight:700}
  .wp{flex:0 0 auto;width:11px;height:11px;background:var(--bg);border:1.5px solid var(--line-2);transform:rotate(45deg);transition:background .3s,border-color .3s}
  .rail-list a.is-past .wp,.rail-list a[aria-current="true"] .wp{background:var(--gold);border-color:var(--gold)}
  .is-fifth .wp{width:17px;height:17px;margin-left:-3px;border:0;transform:none;background:var(--line-2);clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}
  .is-fifth a{font-family:var(--serif);font-size:1.125rem;font-style:italic}
}

/* dock: the route on phones and tablets */
.dock{position:fixed;z-index:56;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translateX(-50%);display:inline-flex;align-items:center;gap:12px;height:58px;padding:0 20px 0 9px;border:0;border-radius:999px;background:var(--ink);color:var(--bg);box-shadow:0 18px 40px -16px rgba(11,18,32,.55);cursor:pointer;font:600 .9375rem/1 var(--sans)}
.dock .n-c{fill:var(--ink)}
.dock-compass{width:44px;height:44px;flex:0 0 auto}
.dock-l{min-width:6.5em;text-align:left;white-space:nowrap}
.dock:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media (min-width:1100px){body:has(.rail) .dock{display:none}}
@media (max-width:1099px){.site-footer{padding-bottom:110px}}

/* ---------- hero ---------- */
.hero{padding-block:clamp(16px,3vw,40px) clamp(64px,8vw,112px)}
.hero-grid{display:grid;gap:clamp(28px,4vw,64px);align-items:center}
.hero-card{margin:0}
.hero-card img{display:block;width:100%;height:auto;border-radius:4px;box-shadow:var(--shadow)}
.hero h1{font:500 clamp(2.6rem,4.4vw,4.6rem)/1.02 var(--serif);letter-spacing:-.015em}
.hero h1 span{display:block}
.hero h1 .h1-b{padding-left:clamp(.5em,2.4vw,1.2em)}
.lede{margin-top:24px;max-width:32em;font-size:clamp(1.0625rem,1.4vw,1.1875rem);line-height:1.6;color:var(--ink-2)}
.actions{margin-top:32px;display:flex;flex-wrap:wrap;gap:12px}
.facts{margin-top:28px;display:flex;flex-wrap:wrap;gap:6px 22px;font-size:.9375rem;color:var(--ink-3)}
.facts span{display:inline-flex;align-items:center;gap:10px}
.facts span::before{content:"";width:6px;height:6px;background:var(--gold);transform:rotate(45deg)}
@media (min-width:1100px){.hero-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);min-height:calc(100svh - var(--header-h) - 56px)}}
@media (prefers-reduced-motion:no-preference){
  .hero-card img{animation:card-in 1.1s var(--ease) both}
  .hero-copy{animation:fade-in .9s var(--ease) .3s both}
}
@keyframes card-in{from{opacity:0;transform:scale(.965) rotate(-1deg)}to{opacity:1;transform:none}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}

/* ---------- sections ---------- */
.section{position:relative;padding-block:clamp(84px,11vw,160px)}
.section.alt{background:var(--bg-2)}
.on-dark{background:var(--bg);color:var(--ink)}
.section h2{font:500 clamp(2.4rem,5.2vw,4.6rem)/1.02 var(--serif);letter-spacing:-.015em;text-wrap:balance}
.sec-intro{margin-top:20px;max-width:36em;color:var(--ink-2);font-size:1.125rem}
.split{display:grid;gap:clamp(36px,5vw,80px)}
@media (min-width:960px){.split{grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:start}.split-head{position:sticky;top:calc(var(--header-h) + 40px)}}
.wide-head{max-width:52rem;margin-bottom:clamp(44px,6vw,84px)}
.kicker{margin-bottom:14px;font:italic 500 1.25rem/1.3 var(--serif);color:var(--gold-text)}
.link{justify-self:start;display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:1.5px;text-underline-offset:6px}
.link:hover{color:var(--gold-text)}
.points,.plain{display:grid;gap:10px}
.points li,.plain li{position:relative;padding-left:22px}
.points li::before,.plain li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;background:var(--gold);transform:rotate(45deg)}
.points{color:var(--ink)}

/* services: a legend you open line by line */
.svc-list{border-top:1px solid var(--line-2)}
.svc{border-bottom:1px solid var(--line-2)}
.svc summary{list-style:none;display:grid;grid-template-columns:1fr 30px;align-items:center;gap:6px 22px;padding:26px 0;cursor:pointer}
.svc summary::-webkit-details-marker{display:none}
.svc summary:focus-visible{outline-offset:6px}
.svc-t{font:500 clamp(1.6rem,2.6vw,2.3rem)/1.1 var(--serif);transition:color .2s}
.svc summary:hover .svc-t{color:var(--gold-text)}
.svc-p{font-size:.875rem;color:var(--ink-3);text-align:right}
.svc-ic{position:relative;width:30px;height:30px;border:1px solid var(--line-2);border-radius:50%;color:var(--ink);transition:background .25s,border-color .25s}
.svc-ic::before,.svc-ic::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:1.5px;background:currentColor;transform:translate(-50%,-50%)}
.svc-ic::after{transform:translate(-50%,-50%) rotate(90deg);transition:transform .3s var(--ease)}
.svc[open] .svc-ic{background:var(--gold);border-color:var(--gold);color:#0B1220}
.svc[open] .svc-ic::after{transform:translate(-50%,-50%) rotate(0)}
.svc-body{display:grid;gap:16px;max-width:40em;padding:0 0 32px;color:var(--ink-2)}
@media (max-width:640px){.svc summary{grid-template-columns:1fr 30px}}

/* projects: plates you slide sideways */
.proj-sec{overflow:hidden}
.proj-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:clamp(32px,4vw,56px)}
.proj{scroll-snap-align:start;display:flex;flex-direction:column;gap:12px;padding:16px 16px 20px;background:var(--surface);border:1px solid var(--line)}
.proj-img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;border:1px solid var(--line);background:var(--bg-2)}
.proj-blank{display:grid;place-items:center;color:var(--ink)}
.proj-blank svg{width:34%;opacity:.16}
.tag{font:italic 500 1.0625rem/1.25 var(--serif);color:var(--gold-text)}
.proj h3{font:600 1.6rem/1.12 var(--serif)}
.card-text,.fiche{color:var(--ink-2);font-size:.96875rem}
.fiche{display:grid;gap:8px;margin:0}
.fiche dt{display:inline;font-weight:600;color:var(--ink)}
.fiche dd{display:inline;margin:0 0 0 .25em}
.fiche-note{font-size:.8125rem;font-style:italic;color:var(--ink-3)}
.proj-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px}
.data{font-size:.8125rem;color:var(--ink-3)}
.status{font-size:.8125rem;font-weight:600;color:var(--ink-2);padding:5px 11px;border:1px dashed var(--line-2);border-radius:99px}

/* the idea */
.idea{overflow:hidden}
.idea .watermark{position:absolute;right:-12vw;top:50%;width:min(72vw,860px);height:auto;transform:translateY(-50%) rotate(calc(var(--deg,0deg) * -.4));color:#F1F4FA;opacity:.05;pointer-events:none}
.section .idea-title{font:italic 500 clamp(1.25rem,2vw,1.5rem)/1.3 var(--serif);color:var(--gold-text);letter-spacing:0}
.quote{position:relative;margin-top:24px;max-width:15em;font:500 clamp(2.5rem,6.4vw,6rem)/1.02 var(--serif);letter-spacing:-.02em;text-wrap:balance}
.idea-text{position:relative;margin-top:clamp(44px,6vw,88px);display:grid;gap:20px 48px;color:var(--ink-2);font-size:1.0625rem}
@media (min-width:960px){.idea-text{grid-template-columns:repeat(3,1fr)}}

/* about */
.about-text{display:grid;gap:20px;max-width:38em;font-size:1.125rem;color:var(--ink-2)}
.about-lead{font:500 clamp(1.5rem,2.4vw,2rem)/1.32 var(--serif);color:var(--ink)}
.sign{padding-top:6px;font:italic 500 1.3rem/1.3 var(--serif);color:var(--ink)}

/* method: three stops on one route */
.steps{position:relative;display:grid;gap:40px}
.roman{position:relative;display:inline-block;padding-right:18px;background:var(--bg-2);font:500 clamp(3rem,5vw,4.2rem)/1 var(--serif);color:var(--gold-text)}
.steps h3{margin-top:16px;font:600 clamp(1.6rem,2.2vw,2rem)/1.1 var(--serif)}
.steps p{margin-top:10px;max-width:30em;color:var(--ink-2)}
@media (min-width:900px){.steps{grid-template-columns:repeat(3,1fr);gap:48px}.steps::before{content:"";position:absolute;left:0;right:0;top:calc(clamp(3rem,5vw,4.2rem) / 2);border-top:1.5px dashed var(--gold);opacity:.75}}
.sub-title{margin-top:clamp(60px,7vw,100px);font:500 clamp(1.6rem,2.4vw,2rem)/1.2 var(--serif)}
.rules{margin-top:24px;display:grid;gap:28px}
.rule{padding-top:18px;border-top:1px solid var(--line-2)}
.rule h4{margin-bottom:8px;font:600 1.375rem/1.2 var(--serif)}
.rule p{color:var(--ink-2);font-size:1rem}
@media (min-width:900px){.rules{grid-template-columns:repeat(3,1fr);gap:40px}}

/* pricing */
.prices{display:grid;border-top:1px solid var(--line-2)}
.price-col{display:grid;gap:10px;align-content:start;padding:30px 0;border-bottom:1px solid var(--line-2)}
.price-col h3{font:600 1.6rem/1.15 var(--serif)}
.big-price{margin-top:4px;font:500 clamp(2.6rem,4vw,3.6rem)/1 var(--serif);letter-spacing:-.01em}
@media (min-width:900px){.prices{grid-template-columns:repeat(3,1fr)}.price-col{padding:34px 32px 38px 0;border-bottom:0}.price-col+.price-col{padding-left:32px;border-left:1px solid var(--line-2)}}
.two{margin-top:clamp(48px,6vw,84px);display:grid;gap:8px 64px}
.two .sub-title{margin-top:28px}
.plain{margin-top:16px;color:var(--ink-2)}
@media (min-width:900px){.two{grid-template-columns:1fr 1fr}}

/* contact: the destination */
.contact-grid{display:grid;gap:clamp(40px,5vw,80px)}
@media (min-width:960px){.contact-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}}
.where{margin-top:22px;font-size:.9375rem;color:var(--ink-3)}
.plate{margin:clamp(32px,4vw,48px) 0 0;max-width:520px}
.plate .chart{border:1px solid var(--line-2)}
.plate figcaption{margin-top:12px;font:italic 500 1.0625rem/1.4 var(--serif);color:var(--ink-2)}
.chart .ch-mask{stroke-dasharray:1;stroke-dashoffset:1}
html:not(.js) .chart .ch-mask,.plate.drawn .ch-mask{stroke-dashoffset:0}
@media (prefers-reduced-motion:no-preference){.plate.drawn .ch-mask{animation:draw 2.6s var(--ease) .2s both}.chart .ch-fifth{opacity:0}.plate.drawn .ch-fifth{animation:fade-in .6s var(--ease) 2.6s both}}
@media (prefers-reduced-motion:reduce){.plate .ch-mask{stroke-dashoffset:0}}
@keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@media (min-width:1100px){body:has(.rail) .progress{display:none}}
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- voyage: the work of a company, from the chart to AI ---------- */
.voyage{position:relative;height:360vh;background:#F3EDE0}
.voyage-stage{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:#F3EDE0;transition:background-color .2s linear}
.jy-scene{position:absolute;inset:0;overflow:hidden}
.journey{position:absolute;top:0;left:0;height:100%;width:auto;max-width:none;will-change:transform}
.jy-text{position:absolute;left:0;right:0;top:calc(var(--header-h) + clamp(14px,3vh,36px));padding-inline:var(--gutter);pointer-events:none}
.jy-title{max-width:14em;font:500 clamp(1.9rem,4vw,3.4rem)/1.05 var(--serif);letter-spacing:-.01em;color:#0B1220;transition:color .4s}
.jy-end{margin-top:14px;max-width:16em;font:italic 500 clamp(1.5rem,3vw,2.6rem)/1.12 var(--serif);color:#E8B04B;opacity:0;transform:translateY(8px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
.voyage.is-night .jy-title{color:#F1F4FA}
.voyage.is-end .jy-end{opacity:1;transform:none}
.jy-bar{position:absolute;left:var(--gutter);right:var(--gutter);bottom:calc(20px + env(safe-area-inset-bottom));height:2px;background:rgba(127,127,127,.25)}
.jy-bar i{display:block;height:100%;width:calc(var(--jt,0) * 100%);background:#C9962F}
@media (max-width:1099px){.jy-bar{bottom:86px}}
.j-yr{font:600 34px var(--serif);text-anchor:middle}
.j-lb{font:500 24px var(--sans);text-anchor:middle}
.j-wp.dark .j-yr,.j-wp.dark .j-lb{fill:#1E1A14}
.j-wp.light .j-yr,.j-wp.light .j-lb{fill:#F1F4FA}
.j-wp.end .j-yr{fill:#E8B04B;font-size:44px}
.j-wp.end .j-lb{font-size:28px}
.j-stem{stroke:currentColor;stroke-opacity:.35;stroke-dasharray:3 6;color:#5B4A33}
.j-wp.light .j-stem{color:#C9D5F2}
.j-dot{fill:#F3EDE0;stroke:#C9962F;stroke-width:3}
.j-wp.is-past .j-dot{fill:#C9962F}
.j-star{fill:#E8B04B}
.j-v{opacity:0;transition:opacity .35s linear}
.j-v.on{opacity:1}
@media (prefers-reduced-motion:no-preference){
  .j-smoke circle{animation:puff 2.4s ease-out infinite}
  .j-smoke circle:nth-child(2){animation-delay:.8s}.j-smoke circle:nth-child(3){animation-delay:1.6s}
  .voyage.is-end .j-arm{transform-origin:54px 58px;animation:wave .7s ease-in-out .4s 4 alternate}
}
@keyframes puff{0%{opacity:.8;transform:translateY(0)}100%{opacity:0;transform:translateY(-24px)}}
@keyframes wave{to{transform:rotate(-28deg)}}
.j-yr,.j-lb{paint-order:stroke;stroke-linejoin:round;stroke-width:9px}
.j-wp.dark .j-yr,.j-wp.dark .j-lb{stroke:#F3EDE0}
.j-wp.light .j-yr,.j-wp.light .j-lb{stroke:#0B1636}
.jy-era{display:none}
.voyage.is-night .jy-text{text-shadow:0 2px 18px rgba(4,9,21,.85)}
@media (max-aspect-ratio:1/1){
  .j-yr,.j-lb,.j-stem{display:none}
  .jy-era{display:block;margin-top:14px;font:400 1rem/1.4 var(--sans);color:#3A3326;transition:color .4s}
  .jy-era b{display:block;font:600 1.5rem/1.2 var(--serif);color:#85560A}
  .voyage.is-night .jy-era{color:#DCE3F2}.voyage.is-night .jy-era b{color:#E8B04B}
}
.jy-year{position:absolute;left:var(--gutter);bottom:calc(34px + env(safe-area-inset-bottom));font:600 clamp(1.6rem,3vw,2.4rem)/1 var(--serif);font-variant-numeric:tabular-nums;color:#85560A;pointer-events:none}
.voyage.is-night .jy-year{color:#E8B04B}
@media (max-width:1099px){.jy-year{bottom:100px}}
.j-warp{opacity:0;transition:opacity .25s}
.voyage.is-warp .j-warp{opacity:1}
.jy-flash{position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(circle at 60% 50%,#FFF6DA 0,rgba(255,246,218,.6) 18%,rgba(255,246,218,0) 55%)}
@media (prefers-reduced-motion:no-preference){
  .voyage.is-warp .j-warp path{animation:streak .35s linear infinite}
  .voyage.is-end .jy-flash{animation:flash 1s ease-out both}
}
@keyframes streak{from{transform:translateX(60px)}to{transform:translateX(-60px)}}
@keyframes flash{0%{opacity:0}18%{opacity:1}100%{opacity:0}}

/* ---------- AI video and photo examples: before and after ----------
   The range thumb is 48px wide, so the line follows its centre: 24px + (width - 48px) * value. */
.links{display:flex;flex-wrap:wrap;gap:0 28px}
.cmp-grid{display:grid;gap:clamp(36px,4vw,48px) clamp(20px,2.4vw,32px)}
@media (min-width:760px){.cmp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.cmp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.cmp-card{display:flex;flex-direction:column;gap:10px;min-width:0}
.cmp-card h3,.vid-copy h3{font:600 1.6rem/1.12 var(--serif)}
.cmp{--p:.5;--x:calc(24px + (100% - 48px) * var(--p));position:relative;margin:0 0 6px;aspect-ratio:3/2;overflow:hidden;border:1px solid var(--line);background:var(--bg);touch-action:pan-y;user-select:none;-webkit-user-select:none}
.cmp img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.cmp-a{position:absolute;inset:0}
.cmp-b{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--x)) 0 0)}
.cmp-l{position:absolute;top:10px;padding:5px 10px;font:600 .75rem/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:#F1F4FA;background:rgba(11,18,32,.72);border-radius:2px;pointer-events:none}
.cmp-l-b{left:10px}
.cmp-l-a{right:10px}
.cmp-handle{position:absolute;top:0;bottom:0;left:var(--x);width:2px;margin-left:-1px;background:#F1F4FA;box-shadow:0 0 0 1px rgba(11,18,32,.25);pointer-events:none}
.cmp-handle::after{content:"";position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%);border-radius:50%;background:#E8B04B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1220' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center/22px no-repeat;box-shadow:0 6px 18px -6px rgba(11,18,32,.6)}
.cmp:has(.cmp-range:focus-visible) .cmp-handle::after{outline:2px solid #F1F4FA;outline-offset:3px}
.cmp-range{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:ew-resize;-webkit-appearance:none;appearance:none;background:transparent}
.cmp-range::-webkit-slider-runnable-track{height:100%;background:transparent}
.cmp-range::-webkit-slider-thumb{-webkit-appearance:none;width:48px;height:100%;min-height:200px;background:transparent;border:0}
.cmp-range::-moz-range-track{height:100%;background:transparent;border:0}
.cmp-range::-moz-range-thumb{width:48px;height:100%;background:transparent;border:0}
/* without JavaScript the slider cannot move, so show the two images side by side */
html:not(.js) .cmp{aspect-ratio:auto;display:grid;grid-template-columns:1fr 1fr}
html:not(.js) .cmp-a,html:not(.js) .cmp-b{position:static;clip-path:none;aspect-ratio:3/2;grid-row:1}
html:not(.js) .cmp-a{grid-column:2}
html:not(.js) .cmp-range,html:not(.js) .cmp-handle{display:none}
.vid-card{margin-top:clamp(56px,7vw,96px);display:grid;gap:24px clamp(28px,4vw,64px);align-items:center;padding-top:clamp(36px,4vw,48px);border-top:1px solid var(--line-2)}
@media (min-width:760px){.vid-card{grid-template-columns:minmax(0,320px) minmax(0,1fr)}}
.vid-frame{width:100%;max-width:320px;aspect-ratio:9/16;background:var(--bg);border:1px solid var(--line);overflow:hidden}
.vid-frame video{display:block;width:100%;height:100%;object-fit:cover;background:#0B1220}
.vid-frame:has(.vid-blank){max-width:220px}
.vid-blank{display:grid;place-items:center;width:100%;height:100%;color:var(--ink)}
.vid-blank svg{width:40%;opacity:.16}
.vid-copy{display:flex;flex-direction:column;align-items:flex-start;gap:12px;max-width:34em}
.showcase-note{margin-top:clamp(36px,4vw,56px);max-width:52em}

/* ---------- sites inside the site ---------- */
.proj-site{position:relative;display:block;color:inherit}
.proj-site .proj-img{transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
@media (hover:hover) and (pointer:fine){.proj-site:hover .proj-img{transform:translateY(-3px);box-shadow:0 18px 34px -20px rgba(11,18,32,.5)}}
.proj-live{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--ink);color:var(--bg);box-shadow:0 6px 16px -6px rgba(11,18,32,.5)}
.proj-live svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.proj-open{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:.9375rem;color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px;text-decoration-thickness:1.5px}
.proj-open:hover{text-decoration-thickness:2.5px}
.proj-open svg{width:15px;height:15px;fill:none;stroke:var(--gold-text);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

.peek-scrim{position:fixed;inset:0;z-index:89;background:rgba(11,18,32,.55)}
.peek{position:fixed;z-index:90;background:var(--surface);border:1px solid var(--line-2);box-shadow:0 40px 80px -30px rgba(11,18,32,.65);transform-origin:0 0;overflow:hidden;border-radius:10px}
.peek[hidden],.peek-scrim[hidden]{display:none}
.peek-link{display:block;color:var(--ink);text-decoration:none}
.peek-link:focus-visible{outline:2px solid var(--focus);outline-offset:-4px}
.peek-bar{display:flex;align-items:center;gap:12px;height:34px;padding:0 12px;background:var(--bg-2);border-bottom:1px solid var(--line)}
.peek-dots{display:flex;gap:6px}.peek-dots i{width:9px;height:9px;border-radius:50%;background:var(--line-2)}
.peek-url{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;color:var(--ink-3);text-align:center;padding-right:40px}
.peek-view{position:relative;display:block;overflow:hidden;background:var(--bg-2)}
.peek-view::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.35) 50%,transparent 70%) var(--bg-2);background-size:200% 100%;animation:peek-wait 1.2s linear infinite}
.peek.is-loaded .peek-view::before{display:none}
@keyframes peek-wait{from{background-position:120% 0}to{background-position:-80% 0}}
.peek iframe{position:absolute;left:0;top:0;width:1280px;height:800px;border:0;transform-origin:0 0;background:#fff}
.peek-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;height:46px;padding:0 14px;border-top:1px solid var(--line)}
.peek-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 1rem/1.2 var(--serif)}
.peek-go{display:inline-flex;align-items:center;gap:6px;flex:none;height:32px;padding:0 14px;border-radius:999px;background:var(--btn-bg);color:var(--btn-ink);font-weight:600;font-size:.875rem}
.peek-go svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.peek-link:hover .peek-go{background:var(--btn-bg-h)}
.peek-close{display:none;position:absolute;top:3px;right:6px;width:28px;height:28px;border:0;border-radius:50%;background:transparent;color:var(--ink-2);cursor:pointer}
.peek-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.peek.is-tap .peek-close{display:grid;place-items:center}
@media (prefers-reduced-motion:reduce){.peek-view::before{animation:none}.proj-site .proj-img{transition:none}.proj-site:hover .proj-img{transform:none}}

/* ---------- projects grouped by type, each group opens like the services ---------- */
.pgrp-list{border-top:1px solid var(--line-2)}
.pgrp{border-bottom:1px solid var(--line-2)}
.pgrp summary{list-style:none;display:grid;grid-template-columns:1fr auto auto 30px;align-items:center;gap:6px 22px;padding:26px 0;cursor:pointer}
.pgrp summary::-webkit-details-marker{display:none}
.pgrp summary:focus-visible{outline-offset:6px}
.pgrp-t{font:500 clamp(1.6rem,2.6vw,2.3rem)/1.1 var(--serif);transition:color .2s}
.pgrp summary:hover .pgrp-t{color:var(--gold-text)}
.pgrp-n{min-width:7.5em;font-size:.875rem;color:var(--ink-3);text-align:right;white-space:nowrap}
.pgrp-thumbs{display:flex;align-items:center;justify-content:flex-end;width:116px}
.pgrp-thumbs img{display:block;width:64px;height:40px;object-fit:cover;object-position:top;border:1px solid var(--line);background:var(--bg-2);box-shadow:0 8px 16px -12px rgba(11,18,32,.55);transition:transform .3s var(--ease)}
.pgrp-thumbs img+img{margin-left:-20px}
.pgrp summary:hover .pgrp-thumbs img:nth-child(2){transform:translateX(6px)}
.pgrp summary:hover .pgrp-thumbs img:nth-child(3){transform:translateX(12px)}
.pgrp[open] .pgrp-thumbs{visibility:hidden}
.pgrp[open] .svc-ic{background:var(--gold);border-color:var(--gold);color:#0B1220}
.pgrp[open] .svc-ic::after{transform:translate(-50%,-50%) rotate(0)}
.pgrp-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:clamp(16px,2vw,28px);align-items:stretch;padding:4px 0 36px}
@media (max-width:640px){
.pgrp summary{grid-template-columns:1fr 30px}
.pgrp-thumbs{display:none}
.pgrp-n{grid-row:2;min-width:0;text-align:left}
.pgrp summary .svc-ic{grid-row:1/3;grid-column:2}
}
@media (prefers-reduced-motion:reduce){.pgrp-thumbs img{transition:none}.pgrp summary:hover .pgrp-thumbs img{transform:none}}

/* ---------- folded extras (method rules, other prices and terms) ---------- */
.more{margin-top:clamp(36px,4.5vw,56px);border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2)}
.more summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;cursor:pointer;font:600 1.35rem/1.2 var(--serif);color:var(--ink)}
.more summary::-webkit-details-marker{display:none}
.more summary:hover{color:var(--gold-text)}
.more summary:focus-visible{outline-offset:6px}
.more[open] .svc-ic{background:var(--gold);border-color:var(--gold);color:#0B1220}
.more[open] .svc-ic::after{transform:translate(-50%,-50%) rotate(0)}
.more .rules,.more .two{margin-top:4px;padding-bottom:28px}
.more .two .sub-title:first-child{margin-top:8px}

/* ---------- a demo page of the site itself (/projetos/ia-antes-e-depois/) ---------- */
.demo-body{background:var(--bg)}
.demo-page{padding-top:clamp(48px,7vw,96px);padding-bottom:clamp(110px,12vw,150px)}
.demo-mark{width:26px;height:26px;vertical-align:-6px;margin-right:10px}

/* ---------- page to page: a soft cross-fade into the demos and back ---------- */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.28s}
}
.demo-h1{font:500 clamp(2.4rem,5.2vw,4.6rem)/1.02 var(--serif);letter-spacing:-.015em;text-wrap:balance}
.demo-page h2.cmp-t{font:600 1.6rem/1.12 var(--serif);letter-spacing:0}
.proj-site.is-assistant{cursor:pointer}button.proj-open{background:none;border:0;padding:0;font-family:inherit;cursor:pointer}
.status.is-dev{display:inline-flex;align-items:center;gap:7px;border-style:solid;border-color:var(--gold);color:var(--gold-text)}
.dev-dot{width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--gold) 25%,transparent)}

/* ---------- lab: every demo, grouped by type, with the compass as the route ---------- */
.lab-kicker{display:inline-flex;align-items:center;gap:10px;margin-bottom:18px}
.lab-kicker svg{width:30px;height:30px;color:var(--ink)}
.lab-sec{scroll-margin-top:var(--header-h)}
.lab-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:8px clamp(18px,2.4vw,32px);margin-bottom:clamp(28px,3.6vw,48px);padding-bottom:clamp(18px,2vw,24px);border-bottom:1px solid var(--line-2)}
.lab-head .sec-intro{margin-top:10px;max-width:44em}
.lab-no{font:italic 500 clamp(2.4rem,4vw,3.6rem)/.9 var(--serif);color:var(--gold-text)}
.lab-head .pgrp-n{min-width:0;align-self:end}
.lab-grid{padding-bottom:0}
.lab-vid{margin-top:0;padding-top:0;border-top:0}
.lab-cmp{margin-top:clamp(48px,6vw,80px)}
.section.lab-next .lab-next-t{max-width:14em;font:500 clamp(2.4rem,4.4vw,4.2rem)/1.04 var(--serif);color:#F1F4FA;letter-spacing:-.01em}
.lab-next .idea-text{margin-top:clamp(20px,2.4vw,32px);max-width:36em;display:block}
.lab-next .actions{margin-top:clamp(28px,3vw,40px)}
.lab-link{white-space:nowrap}
@media (max-width:640px){
  .lab-head{grid-template-columns:minmax(0,1fr) auto}
  .lab-no{grid-row:1;grid-column:1;font-size:1.5rem}
  .lab-head>div{grid-column:1/-1}
  .lab-head .pgrp-n{grid-row:1;grid-column:2;align-self:baseline}
  .proj-head{flex-direction:column;align-items:flex-start}
}
