:root {
  /* Aldomanyk identity v1: vault/brands/aldomanyk/identity/tokens.json */
  --paper: #F2F0EA;
  --bar: #E8E5DD;
  --line: #D9D4C8;
  --ink: #141414;
  --text: color-mix(in srgb, var(--ink) 82%, var(--paper)); /* derived: ink toward paper */
  --mute: #5E5A52; /* graphite: 6.02:1 on paper */
  --card: #FFFFFF;
  --accent: #1F3A93; /* prussian: the node; 8.84:1 on paper */
  --accent-ink: #8FA6FF; /* periwinkle: the accent on ink only */
  /* Motion vocabulary (Emil Kowalski's skills): ease-out to enter, ease-in-out to move on screen. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
h1, .title, .cta-copy h2 { text-wrap: balance; }

/* Nav */
nav {
  margin-top: 16px; padding: 10px 10px 10px 22px; border-radius: 16px;
  background: var(--bar); display: flex; align-items: center; gap: 24px;
}
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.logo svg { display: block; height: 30px; width: auto; fill: currentColor; color: currentColor; } /* 133 px wide: under the 240 px accent minimum, so one colour */
.logo .node { fill: currentColor; }
.links { display: flex; gap: 32px; margin: 0 auto; font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .links a:hover { color: var(--mute); } }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 20px; font-family: inherit; font-weight: 500; font-size: 15px; line-height: 1; cursor: pointer; /* the font shorthand cannot take inherit: it was dropped whole */
  white-space: nowrap; min-height: 44px;
}
@media (hover: hover) and (pointer: fine) { .pill:hover { background: color-mix(in srgb, var(--paper) 12%, var(--ink)); } }
.pill:disabled { opacity: .6; cursor: wait; }
.pill.light { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .pill.light:hover { background: var(--bar); } }
nav .pill { margin-left: auto; }

/* Hero */
header { text-align: center; padding: 80px 0 56px; }
h1 {
  font-weight: 500; font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08; letter-spacing: -0.035em; max-width: 820px; margin: 0 auto;
}
h1 span { display: block; color: var(--mute); }
.sub { max-width: 600px; margin: 24px auto 0; color: var(--text); font-size: 17px; }

form {
  display: flex; max-width: 500px; margin: 32px auto 0; padding: 5px 5px 5px 20px;
  background: var(--bar); border-radius: 999px;
}
form input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); }
form input:focus { outline: none; }
form:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.note { margin-top: 12px; font-size: 14px; color: var(--mute); min-height: 1.6em; }
.legal { max-width: 500px; margin: 10px auto 0; font-size: 13px; color: var(--mute); }
.legal a, .note a, .prose a { text-decoration: underline; text-underline-offset: 2px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Hero cards: each links to its service page; label centred, kept small so the film shows. */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  border-radius: 22px; overflow: hidden; margin-bottom: 32px;
}
.card { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--ink); color: inherit; }
.card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .tag {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; max-width: calc(100% - 48px); text-align: center;
  background: rgb(255 255 255 / .95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 12px; padding: 10px 16px;
  box-shadow: 0 8px 24px rgb(0 0 0 / .18); transition: transform 250ms var(--ease-out);
}
.card .tag h2 { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card .tag p { font-size: 13px; color: var(--text); line-height: 1.35; }
.card .credit { display: block; margin-top: 4px; font-size: 11px; color: var(--mute); }
.go { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--accent); }
a.card:focus-visible .tag { transform: translate(-50%, -50%) scale(1.04); }
@media (hover: hover) and (pointer: fine) { a.card:hover .tag { transform: translate(-50%, -50%) scale(1.04); } }
a.card:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Sections */
main { display: block; }
.block { padding: 96px 0; border-top: 1px solid var(--bar); }
.title {
  font-weight: 500; font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 40px; max-width: 760px;
}
.title span { display: block; color: var(--mute); }
.lead { max-width: 640px; font-size: 18px; color: var(--text); }
.eyebrow { font-size: 13px; color: var(--mute); margin-bottom: 12px; }

.problem-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: center; }
.quotes { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 32px; }
.quotes li { background: var(--card); border-radius: 16px; padding: 20px 24px; font-size: 18px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid3 article { border-top: 1px solid var(--ink); padding-top: 16px; }
.grid3 h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.grid3 p { color: var(--text); margin-top: 6px; }

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-size: 14px; color: var(--mute); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.steps strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.steps p { color: var(--text); margin-top: 6px; }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.tracks h3 { font-size: 13px; font-weight: 500; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; }
.steps-v { grid-template-columns: 1fr; gap: 24px; }

.offer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  background: var(--ink); color: #fff; border-radius: 22px; padding: 64px 56px; border: 0;
}
.offer .title { font-size: clamp(28px, 3.2vw, 38px); }
.offer .title span { color: color-mix(in srgb, var(--paper) 62%, var(--ink)); } /* derived tint, 7.4:1 on ink */
.offer .lead { color: color-mix(in srgb, var(--paper) 86%, var(--ink)); margin-bottom: 28px; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 14px 0 14px 32px; border-top: 1px solid color-mix(in srgb, var(--paper) 14%, var(--ink)); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 7px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
#diagnostico + .block { border-top: 0; }

.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq-wrap .title { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 20px 36px 20px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 36px 20px 0; color: var(--text); }

.chip { display: inline-block; margin-top: 12px; padding: 2px 10px; border-radius: 999px; background: var(--bar); font-size: 12px; color: var(--text); }

/* Code-built example artefacts: one family, paper + ink + one accent. */
.art { width: 100%; height: 100%; position: relative; display: grid; place-items: center; padding: 14%; }
.art .sheet { width: 100%; background: var(--card); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .08); padding: 9%; display: grid; gap: 7px; }
.art .bar { height: 7px; border-radius: 4px; background: var(--line); }
.art .bar.ink { background: var(--ink); height: 10px; }
.art .bar.acc { background: var(--accent); }
.art .w40 { width: 40%; } .art .w55 { width: 55%; } .art .w70 { width: 70%; } .art .w85 { width: 85%; }
.art .chart { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 6px; }
.art .chart i { flex: 1; background: var(--line); border-radius: 3px 3px 0 0; }
.art .chart i.acc { background: var(--accent); }
.art .lbl { font-size: 11px; color: var(--mute); letter-spacing: .02em; }
.art-logo svg { width: 78%; height: auto; }
.art-swatch { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12%; }
.art-swatch div { aspect-ratio: 1; border-radius: 10px; display: flex; align-items: flex-end; padding: 8px; font-size: 10px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.art-type { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; place-items: initial; gap: 4px; }
.art-type b { font-size: clamp(72px, 9vw, 120px); font-weight: 500; letter-spacing: -0.05em; line-height: .9; }
.art-type span { font-size: 18px; color: var(--text); letter-spacing: .04em; }
.art-type em { font-style: normal; display: flex; gap: 6px; margin-top: 10px; }
.art-type em i { width: 26px; height: 26px; border-radius: 50%; }
.art-name { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; place-items: initial; gap: 2px; }
.art-name p { display: flex; align-items: baseline; gap: 10px; font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; color: var(--line); }
.art-name p:last-child { color: var(--ink); }
.art-name p small { font-size: 14px; letter-spacing: 0; color: var(--mute); font-weight: 400; }
.art-bubbles { display: flex; flex-direction: column; gap: 10px; justify-content: center; place-items: initial; }
.bub { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.35; background: var(--card); box-shadow: 0 4px 14px rgb(0 0 0 / .06); }
.bub.me { align-self: flex-end; background: var(--ink); color: #fff; }
.bub.btn { align-self: flex-end; background: var(--accent); color: #fff; font-weight: 500; }
.tones { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tones span { font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--ink); }
.art-apps .card-b { position: absolute; width: 46%; aspect-ratio: 1.7; background: var(--ink); border-radius: 6px; left: 12%; top: 22%; transform: rotate(-8deg); box-shadow: 0 10px 24px rgb(0 0 0 / .15); }
.art-apps .card-b::after { content: ""; position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); left: 12%; top: 22%; }
.art-apps .poster { position: absolute; width: 40%; aspect-ratio: .7; background: var(--card); border-radius: 6px; right: 12%; bottom: 14%; transform: rotate(5deg); box-shadow: 0 10px 24px rgb(0 0 0 / .12); padding: 8%; display: grid; align-content: end; gap: 6px; }
.art-apps .poster::before { content: ""; position: absolute; left: 14%; top: 12%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); }
.art-matrix { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14%; place-items: stretch; align-content: center; }
.art-matrix i { aspect-ratio: 1; border-radius: 6px; background: var(--card); }
.art-matrix i.ink { background: var(--ink); }
.art-matrix i.acc { background: none; border: 2px dashed var(--accent); }
.art-carousel .sq { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 10px; box-shadow: 0 10px 24px rgb(0 0 0 / .12); }
.art-carousel .sq:nth-child(1) { background: var(--card); left: 10%; top: 26%; transform: rotate(-6deg); }
.art-carousel .sq:nth-child(2) { background: var(--ink); left: 27%; top: 24%; }
.art-carousel .sq:nth-child(3) { background: var(--accent); left: 44%; top: 28%; transform: rotate(6deg); }
.art-carousel .sq:nth-child(2)::after { content: ""; position: absolute; inset: 22% 22% auto; height: 10%; border-radius: 4px; background: #fff; }
.art-rows .row { display: grid; grid-template-columns: 26px 1fr 34px; gap: 10px; align-items: center; }
.art-rows .row i { width: 26px; height: 26px; border-radius: 50%; background: var(--line); }
.art-rows .row b { height: 8px; border-radius: 4px; background: var(--accent); }
.art-rows .row b.lo { background: var(--line); }
.art-phone .ph { width: 52%; aspect-ratio: .5; background: var(--card); border: 6px solid var(--ink); border-radius: 26px; padding: 12% 9%; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 14px 30px rgb(0 0 0 / .12); }
.art-phone .ph .blk { border-radius: 8px; background: var(--bar); flex: 1; }
.art-phone .ph .cta { height: 26px; border-radius: 999px; background: var(--accent); flex: none; }
.art-phone .ph .tabs { display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid var(--line); }
.art-phone .ph .tabs i { width: 14px; height: 14px; border-radius: 4px; background: var(--line); }
.art-phone .ph .tabs i:first-child { background: var(--accent); }
.art-browser .win { width: 100%; background: var(--card); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .08); overflow: hidden; }
.art-browser .top { display: flex; gap: 5px; padding: 9px 10px; background: var(--bar); }
.art-browser .top i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.art-browser .body { padding: 9%; display: grid; gap: 8px; justify-items: center; }
.art-browser .hero { width: 100%; aspect-ratio: 2.4; border-radius: 6px; background: var(--ink); margin-top: 4px; }
.art-browser .btn { width: 34%; height: 18px; border-radius: 999px; background: var(--accent); }
.art-dash .win { width: 100%; display: grid; grid-template-columns: 22% 1fr; background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
.art-dash .side { background: var(--ink); padding: 14px 10px; display: grid; gap: 8px; align-content: start; }
.art-dash .side i { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--paper) 18%, var(--ink)); }
.art-dash .side i:first-child { background: var(--accent); }
.art-dash .main { padding: 12px; display: grid; gap: 8px; }
.art-dash .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.art-dash .kpis i { height: 34px; border-radius: 6px; background: var(--bar); }
.art-stack { display: flex; flex-direction: column; gap: 8px; justify-content: center; place-items: initial; }
.art-stack .hub-dot { align-self: center; width: 54px; height: 54px; border-radius: 14px; background: var(--ink); margin-bottom: 6px; position: relative; }
.art-stack .hub-dot::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--accent); }
.art-stack .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.art-stack .tags span { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--card); box-shadow: 0 3px 10px rgb(0 0 0 / .06); }

/* Service page hero */
.svc-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; text-align: left; padding: 64px 0 88px; }
.svc-hero h1 { font-size: clamp(36px, 4.6vw, 56px); margin: 0; max-width: none; }
.svc-hero h1 span { max-width: 22ch; }
.svc-hero .sub { margin: 20px 0 28px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--mute); margin-bottom: 8px; }
@media (hover: hover) and (pointer: fine) { .back:hover { color: var(--ink); } }

/* Closing CTA, split with an image. */
.cta-split {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: 32px 0 96px;
  background: var(--bar); border-radius: 22px; overflow: hidden; scroll-margin-top: 24px;
}
.cta-copy { min-width: 0; padding: 56px 48px; align-self: center; }
.cta-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.cta-copy > p { color: var(--text); margin: 16px 0 28px; max-width: 460px; }
.cta-copy form { margin: 0; background: var(--card); }
.cta-copy .legal { margin: 10px 0 0; }

/* Footer: link columns sit in the sky of the engraved bay of Luanda. */
.site-footer { position: relative; overflow: hidden; }
.site-footer .wrap { position: relative; z-index: 1; }
.fcols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-top: 24px; }
.fbrand p { color: var(--mute); font-size: 14px; margin-top: 4px; line-height: 1.5; }
.fhead { font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 4px; }
.fcols a:not(.logo), .fcols .linkish { display: flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration: none; text-align: left; }
@media (hover: hover) and (pointer: fine) { .fcols a:hover, .fcols .linkish:hover { color: var(--mute); } }
.fbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }

/* Cookie consent */
#consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10; max-width: 440px;
  background: var(--card); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .18); font-size: 14px; line-height: 1.5;
}
#consent[hidden] { display: none; }
#consent .row { display: flex; gap: 8px; margin-top: 12px; }
#consent .row .pill { flex: 1; }
#consent .pill.alt { background: var(--bar); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { #consent .pill.alt:hover { background: #dedcd5; } }

/* Privacy page */
.prose { max-width: 680px; padding: 64px 0 80px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 8px; text-align: left; }
.prose h2 { font-size: 19px; font-weight: 600; margin: 36px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose .meta { color: var(--mute); font-size: 14px; }
.todo { background: #fff1a8; padding: 0 4px; border-radius: 3px; }

@media (max-width: 760px) {
  .links { display: none; }
  header { padding: 40px 0 32px; }
  .sub { margin-top: 18px; font-size: 16px; }
  form { margin-top: 24px; }
  .cards { grid-template-columns: 1fr; gap: 8px; border-radius: 0; overflow: visible; }
  .card { border-radius: 18px; overflow: hidden; }
  .block { padding: 64px 0; }
  .problem-grid, .hub, .svc-hero, .tracks, .cta-split, .grid3, .steps, .offer, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap { gap: 24px; }
  .hub { gap: 32px; }
  .steps { gap: 28px; }
  .offer { padding: 36px 24px; gap: 24px; border-radius: 18px; }
  .quotes li { font-size: 17px; padding: 18px 20px; }
  .svc-hero { padding: 32px 0 56px; gap: 32px; }
  .cta-copy { padding: 32px 20px; }
  .cta-copy form { padding-left: 16px; }
  .cta-split { margin-bottom: 64px; }
    .fcols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .fbrand { grid-column: 1 / -1; }
    /* A compact bar so the hero CTA stays visible on first visit. */
  #consent { left: 8px; right: 8px; bottom: 8px; padding: 8px 8px 8px 14px; font-size: 13px; line-height: 1.35; display: flex; gap: 8px; align-items: center; }
  #consent p { flex: 1; }
  #consent .row { margin: 0; gap: 6px; flex: none; }
  #consent .row .pill { flex: none; }
  #consent .row .pill { padding: 6px 14px; font-size: 13px; }
}
/* Motion pass. Only transform and opacity move, so layout never shifts. */

/* Press: the interface heard the tap. Big surfaces press less. */
.pill, .linkish { transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.pill:active, .linkish:active { transform: scale(0.97); }
a.card, a.feat { transition: transform 160ms var(--ease-out); }
a.card:active, a.feat:active { transform: scale(0.99); }

/* Scroll reveal, once per visit (site.js adds .in). The hero is never hidden: it is the first paint. */
.reveal-on :where(.block > .title, .block > .sub, .problem-grid > *, .feat > *, .steps > li, .grid3 > article, .tracks > div, .faq details, .cta-split > *, .offer > *) {
  opacity: 0; transform: translateY(12px);
}
.reveal-on .in {
  opacity: 1; transform: none;
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* FAQ: the answer eases open instead of snapping; browsers without ::details-content just open as before. */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content {
  block-size: 0; overflow: clip; opacity: 0;
  transition: block-size 200ms var(--ease-out), opacity 200ms var(--ease-out), content-visibility 200ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; margin-top: -1px;
  background: var(--mute); border-radius: 1px;
}
.faq summary::before { transform: rotate(90deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::before { transform: rotate(0deg); } /* the + folds into a − */

/* Form button: its label changes in place (site.js). */
.pill .lbl { display: inline-block; transition: opacity 120ms ease, filter 120ms ease; }
.pill .lbl.out { opacity: 0; filter: blur(2px); }

/* Page to page: the browser's own cross-document transition. The clicked card grows into the service page's hero. */
@view-transition { navigation: auto; }
.svc-hero .scene { view-transition-name: svc; }
::view-transition-group(root) { animation-duration: 220ms; animation-timing-function: var(--ease-out); }
/* A morph the user starts moves at once (drawer curve); the images crossfade with the page, so nothing lingers half-faded. */
::view-transition-group(svc) { animation-duration: 360ms; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
::view-transition-old(svc), ::view-transition-new(svc) { animation-duration: 220ms; }
::view-transition-image-pair(svc) { overflow: hidden; border-radius: 20px; }
::view-transition-old(svc), ::view-transition-new(svc) { height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  /* Fewer and gentler, not none: fades stay, movement goes. */
  * { transition-property: opacity, color, background-color, border-color !important; }
  .reveal-on :where(.block > .title, .block > .sub, .problem-grid > *, .feat > *, .steps > li, .grid3 > article, .tracks > div, .faq details, .cta-split > *, .offer > *) { transform: none; }
  .reveal-on .in { transition-duration: 200ms !important; transition-delay: 0s !important; }
  .pill:active, .linkish:active, a.card:active, a.feat:active { transform: none; }
  a.feat:hover .obj { transform: translateX(-50%); } /* hover scales would jump with no transition */
  a.card:hover .tag { transform: translate(-50%, -50%); }
  .svc-hero .scene { view-transition-name: none; }
  .faq details::details-content { transition-property: opacity, content-visibility !important; } /* height growth is movement */
  .faq summary::before { transition: none; } /* pseudo-elements escape the * rule: the + to − turn is movement too */
}
@media print {
  .reveal-on :where(.block > .title, .block > .sub, .problem-grid > *, .feat > *, .steps > li, .grid3 > article, .tracks > div, .faq details, .cta-split > *, .offer > *) { opacity: 1 !important; transform: none !important; }
}

/* Reference-style feature cards: pill label with icon, muted text, visual at the bottom. */
.feats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.feat { display: flex; flex-direction: column; background: var(--card); padding: 28px 28px 0; color: inherit; min-height: 420px; }
.ptag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}
.ptag svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat p { color: var(--mute); font-size: 15px; line-height: 1.5; margin-top: 16px; max-width: 34ch; }
.feat .go, .feat .chip { align-self: flex-start; }
.feat .chip { margin-top: 10px; }
.fvis { position: relative; flex: 1; min-height: 230px; margin: 16px -28px 0; overflow: hidden; }
.fvis > video { position: absolute; inset: 12px 28px 0; width: calc(100% - 56px); height: calc(100% - 12px); object-fit: cover; border-radius: 12px 12px 0 0; }
.fvis > .art { position: absolute; inset: 0; }
@media (hover: hover) and (pointer: fine) { a.feat:hover .obj { transform: translateX(-50%) scale(1.04); } }
a.feat:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* Object scene: photographed object + floating chips + mini card, all on white. */
.scene { position: absolute; inset: 0; background: var(--card); }
.scene .obj {
  position: absolute; left: 50%; bottom: -8%; width: 74%; height: auto; transform: translateX(-50%);
  mix-blend-mode: multiply; transition: transform 250ms var(--ease-out);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.fchip {
  position: absolute; transform: rotate(var(--r, 0)); display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px;
  font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: 0 6px 18px rgb(0 0 0 / .08); z-index: 1;
}
.fchip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fcard {
  position: absolute; z-index: 2; min-width: 190px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px 14px; box-shadow: 0 10px 28px rgb(0 0 0 / .1); font-size: 13.5px;
}
.fcard div { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; }
.fcard div + div { border-top: 1px solid var(--bar); }
.fcard b { font-weight: 500; color: var(--mute); }
.scene.hero, .scene.wide { position: relative; inset: auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.scene.hero { aspect-ratio: 1; }
.scene.wide { aspect-ratio: 1; }
.scene.hero .fchip { font-size: 15px; padding: 8px 14px; }
.scene.hero .fcard { font-size: 14.5px; min-width: 230px; }
.cta-split > .scene.wide { border: 0; border-radius: 0; aspect-ratio: auto; min-height: 380px; }
.offer > .scene.wide { border: 0; }
.offer .checks { margin: 0 0 28px; }

/* Code artefacts now sit on white cards: give their surfaces an edge. */
.feat .art .sheet, .feat .art-browser .win, .feat .bub:not(.me):not(.btn), .feat .art-stack .tags span { border: 1px solid var(--line); box-shadow: 0 8px 22px rgb(0 0 0 / .06); }
.feat .art-matrix i { background: var(--bar); }
.feat .art-matrix i.ink { background: var(--ink); }

@media (max-width: 760px) {
  .feats { grid-template-columns: minmax(0, 1fr); }
  .feat { min-height: 380px; padding: 24px 20px 0; }
  .fvis { margin: 16px -20px 0; }
  .fvis > video { inset: 12px 20px 0; width: calc(100% - 40px); }
  .fchip { font-size: 13px; padding: 5px 10px; }
  .scene.hero .fchip { font-size: 13px; padding: 6px 11px; }
  .fcard, .scene.hero .fcard { min-width: 168px; font-size: 12.5px; }
  .cta-split > .scene.wide { min-height: 0; aspect-ratio: 1; }
}

/* Scene fixes: readable inside the dark band, rows never wrap, small cards stay uncluttered. */
.fchip, .fcard { color: var(--ink); }
.fcard div { white-space: nowrap; }
.feat .scene .fchip:nth-of-type(n+3) { display: none; }
.feat .scene .fcard { left: auto !important; right: 6%; top: auto !important; bottom: 10%; min-width: 0; font-size: 12.5px; padding: 4px 12px; }
.feat .scene .fcard div { padding: 5px 0; gap: 14px; }
.feat .scene .fcard div:nth-child(n+3) { display: none; }
.feat .scene .obj { left: 38%; width: 66%; }

/* Footer in the same card system, full width: white panel, hairline top edge, wordmark across the page. */
.site-footer { padding-bottom: 0; }
.fpanel { background: var(--card); border-top: 1px solid var(--line); border-radius: 28px 28px 0 0; padding: 56px 0 0; overflow: hidden; }
.fcols { padding-top: 0; }
.fbar { margin-top: 32px; }
.fmark { display: block; width: 100%; height: auto; margin-top: 40px; padding: 0 16px 24px; color: var(--bar); fill: currentColor; user-select: none; }
.fmark .node { fill: var(--accent); } /* the one accent on this surface: the node, at full size */
@media (max-width: 760px) {
  .fpanel { padding-top: 32px; border-radius: 22px 22px 0 0; }
}

/* Round 3: nav tap height; scenes never bury chips or cut them at the edge. */
.links a { padding-block: 10px; }
@media (max-width: 760px) {
  .scene .fchip { font-size: 12px; padding: 4px 9px; }
  .scene.hero .fchip:nth-of-type(n+3), .scene.wide .fchip:nth-of-type(n+3) { display: none; }
  .scene.hero .fcard, .scene.wide .fcard { left: auto !important; right: 5%; top: auto !important; bottom: 8%; }
  .cta-split > .scene.wide { aspect-ratio: 4 / 3; }
}

/* Identity v1, critic round 1 */
/* Hanken Grotesk sets wider than the old face: the full nav needs room from 761 to 860 px */
@media (min-width: 761px) and (max-width: 860px) { nav { gap: 16px; } .links { gap: 18px; } }
/* Values in mono, as on the brand sheet: what we measure is set in JetBrains Mono */
code, .fcard b, .fbar, .fhead { font-family: "JetBrains Mono", ui-monospace, monospace; }
.fbar, .fhead { font-size: 12px; letter-spacing: -0.01em; }
.fcard b { font-size: .92em; }
/* The footer mark is the end card: ink word, prussian node, the brand's primary lockup */
.fmark { color: var(--ink); margin-top: clamp(40px, 6vw, 88px); } /* room for the construction labels above the x-height */

/* Wordmark motion (identity v1, styles/traco-show-the-working). Static by default: no JS or reduced motion = the finished mark. */
.logo .node { transform-box: fill-box; transform-origin: center; }
.wm-intro .wm .node { animation: wm-land .5s cubic-bezier(.34, 1.56, .64, 1) .2s backwards; } /* site.js drops .wm-intro when it ends */
.fmark { overflow: visible; }
.fmark .work { display: none; }
.fmark .guide { stroke: var(--accent); stroke-width: 2; }
.fmark .ghost { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 8 6; }
.fmark .label { fill: var(--accent); font: 500 22px "JetBrains Mono", ui-monospace, monospace; }
.fmark .shadow { opacity: .55; }
/* armed by site.js: the construction shows first, the letters wait for the scroll */
.fmark.armed .work { display: inline; }
.fmark.armed :is(.ring, .arch) { stroke-dasharray: 100; stroke-dashoffset: 100; }
.fmark.armed .stem { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.fmark.armed .node { opacity: 0; }
.fmark.play .work { animation: wm-out .4s var(--ease-out) 1.8s forwards; }
.fmark.play .ghost { animation: wm-crawl 1.5s var(--ease-out); }
.fmark.play :is(.ring, .arch) { animation: wm-draw .7s var(--ease-in-out) forwards; animation-delay: calc(.3s + var(--i) * 50ms); }
.fmark.play .stem { animation: wm-grow .6s var(--ease-out) forwards; animation-delay: calc(.35s + var(--i) * 50ms); }
.fmark.play .node { transform-box: fill-box; transform-origin: center; animation: wm-land .45s cubic-bezier(.34, 1.56, .64, 1) 1.9s forwards; }
@keyframes wm-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes wm-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes wm-land { 0% { transform: translateY(-260%) scale(.6); opacity: 0; } 30% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes wm-out { to { opacity: 0; } }
@keyframes wm-crawl { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) {
  .wm *, .logo .node { animation: none !important; }
}

/* Identity v1, critic round 2 */
.fmark { padding-bottom: clamp(24px, 4.5vw, 64px); } /* the "node 26 × 26" value sits below the descender */
@media (max-width: 600px) { .fmark .label { display: none; } } /* ~8 px on a phone: the lines carry the construction there */
@media (max-width: 360px) { nav { gap: 12px; padding-left: 16px; } .logo svg { height: 26px; } nav .pill { padding-inline: 14px; } }

/* Language switch (PT ↔ EN): a quiet mono link before the pill; the choice is remembered (site.js) */
.lang { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; font: 500 13px "JetBrains Mono", ui-monospace, monospace; letter-spacing: .02em; color: var(--mute); }
nav .lang + .pill { margin-left: 4px; }
@media (hover: hover) and (pointer: fine) { .lang:hover { color: var(--ink); } }
