/* ------------------------------------------------------------------
   Theme tokens: change these to rebrand the whole page.
------------------------------------------------------------------ */
:root {
  --accent: #c2410c;        /* burnt orange: links, buttons, avatar, CTA card */
  --accent-contrast: #ffffff; /* text on top of --accent */
  --pop: #fb923c;           /* lighter orange for small highlights */
  --tint: #fff1e6;          /* soft peach: bands, icon chips */
  --ink: #231815;           /* warm near-black: headings and body text */
  --ink-soft: #6b5d55;
  --paper: #ffffff;
  --line: #efe6de;
  /* Dark theme values from the brand kit (canvas, surface, text) */
  --dark: #17110f;
  --dark-surface: #241b18;
  --dark-text: #fff7f1;

  /* Type system: one modern family (Geist) for titles and text, told apart by
     weight and tight tracking, with its mono sibling for technical labels. */
  --font-display: "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --radius: 12px;
  --shadow: 0 5px 5px 0 rgba(35, 24, 21, 0.03), 0 0 0 1px var(--line);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17.5px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; margin: 0 0 1rem; }
h1 { font-weight: 500; letter-spacing: -0.045em; line-height: 1.04; }
h2 { letter-spacing: -0.035em; }
p, dd, li { text-wrap: pretty; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.5rem; }
.center { text-align: center; }
.section { padding-block: 6rem; }
.ruled { border-top: 1px solid var(--line); }
.sub { font-size: 1.25rem; margin-bottom: 3rem; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.55em 1.4em;
  border: 2px solid var(--accent);
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--accent);
  background: transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .16s var(--ease-out);
}
.btn:hover { background: var(--accent); color: var(--accent-contrast); text-decoration: none; }

/* Nav --------------------------------------------------------------- */
/* Clear over the hero; gains a frosted surface once the page scrolls */
.nav-bar {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.nav-bar.is-scrolled, .nav-bar.nav-open {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(35, 24, 21, 0.45);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; transition: padding .25s; }
.nav-bar.is-scrolled .nav { padding-block: 0.6rem; }
section[id] { scroll-margin-top: 5rem; }
/* Small mono label above a section title */
.kicker { margin-bottom: 1rem; font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.brand { color: var(--accent); display: inline-flex; }
.brand-logo { display: block; height: 48px; width: auto; }
/* Technical text uses the brand's monospace */
.case-num, .case-facts li, .skill-icon, .step-num, .gate-code, .lang-switch a { font-family: var(--font-mono); }
.nav-menu { display: flex; align-items: center; gap: 2.25rem; margin-left: auto; }
.nav-menu > a:not(.btn) {
  position: relative; padding: 0.4rem 0;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
}
/* Underline that grows from the left: on hover, and held on the section in view */
.nav-menu > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-menu > a:not(.btn):hover, .nav-menu > a[aria-current="true"] { color: var(--ink); text-decoration: none; }
.nav-menu > a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-menu > a:not(.btn):hover::after { transform: scaleX(1); }
}
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta-phone { display: none; }
.btn-solid { background: var(--accent); color: var(--accent-contrast); }
.btn-solid:hover { background: #a8370a; border-color: #a8370a; }
/* Two-line toggle that turns into a cross; phones only */
.nav-toggle { display: none; position: relative; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .25s var(--ease-out); }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Language switch (nav) ---------------------------------------------- */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tint); }
.lang-switch a {
  padding: 0.35em 0.8em;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft);
  font: 500 0.85rem/1 var(--font-display); letter-spacing: 0.06em;
  cursor: pointer;
}
.lang-switch a:hover { text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--accent); color: var(--accent-contrast); }

/* Language chooser (first visit) ------------------------------------- */
html:not(.has-lang) body { overflow: hidden; }
html.has-lang .lang-gate { display: none; }
.lang-gate:focus { outline: none; }
.lang-gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.gate-head {
  position: absolute; top: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 1.5rem 0.6rem 0.75rem;
  border-radius: 999px;
  background: var(--paper); color: var(--accent);
  box-shadow: var(--shadow);
  white-space: nowrap; pointer-events: none;
}
.gate-logo { height: 44px; width: auto; }
.gate-prompt { margin: 0; font: 500 0.8rem/1.5 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.gate-prompt span { display: block; }
.gate-prompt span + span { color: var(--ink-soft); }
.gate-option {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 7rem 2rem 3rem;
  border: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.gate-option-alt { background: var(--tint); }
.gate-code {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint); color: var(--accent);
  font: 600 1.1rem/1 var(--font-display); letter-spacing: 0.06em;
  transition: background-color .25s;
}
.gate-option-alt .gate-code { background: var(--paper); }
.gate-name { font: 600 clamp(2.75rem, 7vw, 5.5rem)/1 var(--font-display); }
.gate-go { font-weight: 500; font-size: 1.05rem; color: var(--accent); transition: color .25s; }
.gate-option:hover, .gate-option:focus-visible { background: var(--accent); color: var(--accent-contrast); outline: none; }
.gate-option:hover .gate-code, .gate-option:focus-visible .gate-code { background: var(--accent-contrast); }
.gate-option:hover .gate-go, .gate-option:focus-visible .gate-go { color: var(--accent-contrast); }

/* Hero -------------------------------------------------------------- */
.hero { padding-top: 4.5rem; }
.hero .lead { margin-bottom: 2.25rem; }
.hero h1 { max-width: 17ch; margin-inline: auto; font-size: clamp(2.3rem, 6vw, 4.25rem); }
.eyebrow { margin-bottom: 1.25rem; font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.hl { color: var(--accent); }
.lead { max-width: 58ch; margin: 0 auto 3rem; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-soft); }
.avatar {
  width: 190px; height: 190px; margin: 0 auto 3rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  font: 600 3.5rem/1 var(--font-display);
  object-fit: cover;
}
/* Zoom into the photo: size = zoom level, position = where the face sits */
.avatar-photo { background: var(--ink) url("assets/avatar.webp") 50% 24% / 200% no-repeat; }
.avatar-sm { width: 96px; height: 96px; font-size: 1.75rem; margin-bottom: 2rem; background: var(--tint); color: var(--accent); }
/* Three headline results under the photo: type and rules only, no boxes */
.results { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin: 0 auto; padding-bottom: 4.5rem; }
.result { padding: 0.25rem 2rem; border-left: 1px solid var(--line); }
.result:first-child { border-left: 0; }
.result-num { display: block; margin-bottom: 0.75rem; font: 500 clamp(2.1rem, 4.4vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.05em; color: var(--accent); white-space: nowrap; }
.result-text { display: block; color: var(--ink-soft); }

/* The call: dark statement block ------------------------------------- */
.call {
  position: relative; overflow: hidden;
  padding: 8rem 0 15rem;  /* the long bottom leaves room for the card that overlaps it */
  background: var(--dark); color: var(--dark-text);
}
/* A warm glow behind the console, plus a faint grid for depth */
.call::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px circle at 76% 40%, rgba(251, 146, 60, 0.2), transparent 64%);
}
.call::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 20%, transparent 100%);
}
.call-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.call-title { margin: 0 0 2.5rem; font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.06; letter-spacing: -0.045em; }
/* Words start dim and light up as the section scrolls into view (script.js sets the opacity) */
.js .call-title .w { opacity: 0.2; transition: opacity .18s linear; }
.call-close { margin: 0; padding-top: 1.5rem; border-top: 2px solid var(--pop); font-size: 1.08rem; color: rgba(255, 255, 255, 0.74); }

/* Incident console. The default look is the final, resolved state; script.js
   adds .is-armed to rewind it and then plays the sequence in a slow loop. */
.console { --alert: #ff6b57; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--dark-surface); font-family: var(--font-mono); }
.console-head { display: flex; justify-content: space-between; padding: 0.85rem 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.console-clock { color: var(--pop); font-variant-numeric: tabular-nums; }
.clock-run { display: none; color: var(--alert); }
.console.is-armed:not(.is-done) .clock-run { display: inline; }
.console.is-armed:not(.is-done) .clock-done { display: none; }
.call-list { list-style: none; margin: 0; padding: 0; }
.inc {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 1.35rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: opacity .32s var(--ease-out), transform .32s var(--ease-out);
}
.inc:last-child { border-bottom: 0; }
.inc-id { display: flex; align-items: center; gap: 0.55rem; font-size: 0.74rem; color: rgba(255, 255, 255, 0.6); }
.inc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pop); }
.inc-text { font: 500 clamp(1rem, 1.5vw, 1.15rem)/1.35 var(--font-display); letter-spacing: -0.01em; }
.inc-state { min-width: 5.8rem; padding: 0.25rem 0.5rem; border: 1px solid var(--pop); background: var(--pop); color: var(--dark); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; transition: color .25s, border-color .25s, background-color .25s; }
.state-open { display: none; }
/* The line that closes each incident */
.inc::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--pop); transform-origin: left; transition: transform .6s var(--ease-out); }
/* Rewound: rows wait off to the side, then show as open until resolved */
.console.is-armed .inc:not(.is-in) { opacity: 0; transform: translateX(14px); }
.console.is-armed .inc:not(.is-ok)::after { transform: scaleX(0); }
.console.is-armed .inc:not(.is-ok) .inc-dot { background: var(--alert); animation: inc-ping 1.1s infinite; }
.console.is-armed .inc:not(.is-ok) .inc-state { background: transparent; border-color: rgba(255, 107, 87, 0.55); color: var(--alert); }
.console.is-armed .inc:not(.is-ok) .state-open { display: inline; }
.console.is-armed .inc:not(.is-ok) .state-ok { display: none; }
@keyframes inc-ping { from { box-shadow: 0 0 0 0 rgba(255, 107, 87, 0.6); } to { box-shadow: 0 0 0 9px rgba(255, 107, 87, 0); } }
.console-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--pop); box-shadow: 0 0 28px 6px rgba(251, 146, 60, 0.45); opacity: 0; pointer-events: none; }
.console.is-scanning .console-scan { opacity: 1; animation: console-scan 2.2s linear forwards; }
@keyframes console-scan { from { left: 0; } to { left: 100%; } }

/* Skills (pulled up over the band) ----------------------------------- */
/* Sits above the dark block it overlaps; without this the block paints over the card */
.skills-wrap { position: relative; z-index: 2; margin-top: -9rem; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); text-align: left; }
/* Each column shares the card's rows (number, heading, text, three list items)
   through subgrid, so the same piece starts at the same height in all three. */
.skill { display: grid; grid-row: span 6; grid-template-rows: subgrid; align-items: start; padding: 3.5rem 2rem; border-left: 1px solid var(--line); }
.skill ul { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-self: stretch; }
.skill:first-child { border-left: 0; }
.skill-icon {
  width: 56px; height: 56px; margin: 0 0 1.5rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tint); color: var(--accent);
  font: 600 1.25rem/1 var(--font-display);
}
.skill h3 { font-size: 1.35rem; }
.skill p { color: var(--ink-soft); }
.skill ul { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.skill li { position: relative; padding: 0.35rem 0 0.35rem 1.4rem; font-weight: 500; }
.skill li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 0.7rem; height: 2px; background: var(--accent); }

/* Sensitive data and security (dark) ---------------------------------- */
.secure { background: var(--dark); color: var(--dark-text); padding-block: 6.5rem; }
.secure .kicker { color: var(--pop); }
.secure h2 { max-width: 20ch; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.secure-sub { max-width: 54ch; margin-bottom: 3rem; font-size: 1.15rem; color: rgba(255, 255, 255, 0.72); }
/* Security explorer: pick a layer on the left, open a control on the right */
.sec-ui { display: grid; grid-template-columns: 320px 1fr; gap: 4rem; align-items: start; }
.sec-tabs { display: grid; gap: 0.6rem; }
.sec-tabs button {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%; padding: 1.05rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px;
  background: transparent; color: rgba(255, 255, 255, 0.72);
  font: 500 1rem/1.25 var(--font-body); text-align: left;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .16s var(--ease-out);
}
.sec-tabs button:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.sec-tabs button:active { transform: scale(0.98); }
.sec-tabs button[aria-selected="true"] { background: rgba(251, 146, 60, 0.13); border-color: var(--pop); color: #fff; }
.sec-tab-num { font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.08em; color: var(--pop); }
.sec-tab-count { margin-left: auto; font: 500 0.75rem/1 var(--font-mono); color: rgba(255, 255, 255, 0.55); }

/* Without scripts every layer shows with its title; with scripts the tab names it */
.layer-title {
  display: flex; align-items: baseline; gap: 0.9rem;
  margin: 0 0 0.25rem; padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--pop);
  font: 500 0.85rem/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.layer-title span:first-child { color: var(--pop); }
.layer + .layer { margin-top: 3rem; }
.js .layer-title { display: none; }
.js .layer + .layer { margin-top: 0; }
.js .layer:not([hidden]) { animation: rise .35s var(--ease-out) both; }

/* A control: name and how it is verified always visible, the detail on demand */
.ctl { border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
.ctl:first-child { border-top: 1px solid rgba(255, 255, 255, 0.13); }
.ctl summary {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 0;
  font: 500 1.08rem/1.3 var(--font-display);
  cursor: pointer; list-style: none;
}
.ctl summary::-webkit-details-marker { display: none; }
.ctl summary > span:first-child { flex: 1; }
.ctl summary::after {
  content: "+"; flex: none; width: 1.25rem; text-align: center;
  font: 400 1.3rem/1 var(--font-mono); color: var(--pop);
  transition: transform .2s var(--ease-out);
}
.ctl[open] summary::after { transform: rotate(45deg); }
.ctl summary:hover > span:first-child { color: var(--pop); }
.ctl-tag {
  flex: none; padding: 0.3em 0.6em;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px;
  font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
}
.ctl p { max-width: 62ch; margin: 0 0 1.25rem; font-size: 0.98rem; color: rgba(255, 255, 255, 0.72); }

/* How I work ---------------------------------------------------------- */
.sub-narrow { max-width: 56ch; margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: left; }
.step { position: relative; padding-top: 1.5rem; }
/* The accent line is a pseudo-element so it can draw itself in sequence */
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform-origin: left; }
.steps { list-style: none; padding: 0; margin: 0; }
.step-num { font-weight: 500; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--accent); }
.step h3 { font-size: 1.35rem; margin: 0.75rem 0 0.5rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* Case studies -------------------------------------------------------- */
.cases { max-width: 1060px; margin: 0 auto; display: grid; gap: 1.75rem; text-align: left; }
.case { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding: 2.75rem; }
.case-num { font: 600 0.95rem/1 var(--font-display); letter-spacing: 0.1em; color: var(--accent); }
.case h3 { font-size: 1.6rem; margin: 0.75rem 0; }
.case-kind { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.case-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.case-facts li { padding: 0.3em 0.8em; border-radius: 6px; background: var(--tint); color: var(--accent); font-size: 0.85rem; font-weight: 500; }
.case-body { margin: 0; display: grid; gap: 1.5rem; align-content: start; }
.case-body dt { margin-bottom: 0.35rem; font: 500 0.8rem/1 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.case-body dd { margin: 0; }

/* Keyboard users: a visible focus ring everywhere, and a link that jumps past the header */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.call :focus-visible, .secure :focus-visible, .engage :focus-visible, .start :focus-visible, .footer :focus-visible { outline-color: #fff; }
/* Text for screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 100; left: 1rem; top: -4rem; padding: 0.7rem 1rem; border-radius: 8px; background: var(--ink); color: #fff; transition: top .15s var(--ease-out); }
.skip-link:focus { top: 1rem; text-decoration: none; }
#main { scroll-margin-top: 6rem; }

/* Questions ------------------------------------------------------------ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 4rem; align-items: start; text-align: left; }
.faq-head { position: sticky; top: 7rem; }
.faq-sub { margin: 0; color: var(--ink-soft); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 2px solid var(--ink); }
.faq-item summary {
  display: flex; align-items: baseline; gap: 1.1rem;
  padding: 1.3rem 0; cursor: pointer; list-style: none;
  font: 500 1.12rem/1.35 var(--font-display); letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span:last-of-type { flex: 1; }
.faq-item summary::after { content: "+"; flex: none; font: 400 1.4rem/1 var(--font-mono); color: var(--accent); transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-num { flex: none; font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.08em; color: var(--accent); }
.faq-item p { max-width: 62ch; margin: 0 0 1.5rem 2.35rem; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover > span:last-of-type { color: var(--accent); }
}

/* Working together: one point of contact (dark) ----------------------- */
/* Clips sideways: the turning rings' corners would otherwise widen the page on phones */
.engage { background: var(--dark); color: var(--dark-text); padding-top: 6.5rem; overflow-x: clip; }
.engage .kicker { color: var(--pop); }
.engage h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.engage .sub { max-width: 58ch; color: rgba(255, 255, 255, 0.7); }
.engage-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4.5rem; align-items: center; }
/* The team's areas turn on two rings around the mark */
.orbit { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; margin: 0 auto; }
.orbit-ring { position: absolute; inset: var(--inset); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; animation: orbit-turn var(--turn) linear infinite; }
.orbit-ring.is-reverse { animation-direction: reverse; }
/* --s and --c are the sine and cosine of each area's angle on the ring. Each
   badge turns against its ring at the same speed, so the icon stays upright. */
.orbit-ring b { position: absolute; top: calc(50% - 50% * var(--c)); left: calc(50% + 50% * var(--s)); width: 42px; height: 42px; margin: -21px; display: grid; place-items: center; border: 1px solid rgba(251, 146, 60, 0.55); border-radius: 50%; background: var(--dark); color: var(--pop); box-shadow: 0 0 0 5px rgba(251, 146, 60, 0.1); animation: orbit-turn var(--turn) linear infinite reverse; }
.orbit-ring.is-reverse b { animation-direction: normal; }
.orbit-ring svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
.orbit-core { position: absolute; inset: 34%; display: grid; place-items: center; border: 2px solid var(--pop); border-radius: 50%; background: var(--dark-surface); box-shadow: 0 0 0 10px rgba(251, 146, 60, 0.1), 0 0 70px rgba(251, 146, 60, 0.4); }
.orbit-core img { width: 56%; height: auto; }
.team-line { max-width: 44ch; margin: 2rem auto 0; text-align: center; color: rgba(255, 255, 255, 0.74); }
.way { display: grid; grid-template-columns: 4.2rem 1fr; gap: 1rem; padding: 1.8rem 0; border-top: 1px solid rgba(255, 255, 255, 0.14); transition: padding-left .3s var(--ease-out); }
.way:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.way-num { font: 500 2.6rem/1 var(--font-display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--pop); transition: color .3s; }
.way h3 { margin: 0 0 0.45rem; font-size: 1.4rem; }
.way p { margin: 0; color: rgba(255, 255, 255, 0.7); }
@media (hover: hover) and (pointer: fine) {
  .way:hover { padding-left: 0.8rem; }
  .way:hover .way-num { color: var(--pop); }
}
/* Industries served, as a small labelled record under the three ways */
.creds { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.75rem; align-items: start; margin: 1.9rem 0 0; }
.creds dt { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pop); }
.creds dd { margin: 0; font-size: 0.98rem; color: rgba(255, 255, 255, 0.86); }
/* Each industry is its own tag, so a long list wraps cleanly */
.creds dd:has(span) { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.creds dd span { padding: 0.3rem 0.65rem; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.9rem; line-height: 1.3; }
/* Room for the "start a project" card that overlaps the footer */
.pad-start { padding-bottom: 12rem; }

/* Testimonials ------------------------------------------------------- */
.testimonials { padding-bottom: 12rem; }
.slide { display: none; margin: 0 auto; max-width: 720px; }
.slide.is-active { display: block; animation: fade .4s; }
.slide blockquote { margin: 0 0 2rem; font: 500 1.4rem/1.45 var(--font-display); }
.slide figcaption strong, .slide figcaption span { display: block; }
.slide figcaption span { font-size: 0.95rem; color: var(--ink-soft); }
.dots { display: flex; justify-content: center; gap: 0.75rem; margin-top: 2.5rem; }
.dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--accent); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Start a project (pulled down over the footer) ----------------------- */
/* The wide shadow, clipped to this row, paints the page-wide dark band behind the
   card, so the dark section above and the dark footer below read as one surface. */
.start-wrap { margin-top: -5rem; position: relative; z-index: 1; background: var(--dark); box-shadow: 0 0 0 100vmax var(--dark); clip-path: inset(0 -100vmax); }
.start {
  display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 2rem;
  padding: 3rem 4rem;
  background: var(--accent); color: var(--accent-contrast);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(35, 24, 21, 0.25);
}
.start h3, .start p { margin: 0; }
/* Direct contact: WhatsApp and email, each showing its value */
.start-actions { display: grid; gap: 0.75rem; }
.start-link { display: grid; gap: 0.25rem; padding: 0.8rem 1.2rem; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 10px; color: var(--accent-contrast); text-align: left; transition: background-color .2s, color .2s, transform .16s var(--ease-out); }
.start-link:hover { background: #fff; color: var(--accent); text-decoration: none; }
.start-link:active { transform: scale(0.98); }
.start-link-kind { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
#contact { scroll-margin-top: 6rem; }

/* Footer ------------------------------------------------------------- */
.footer { background: var(--dark); color: var(--dark-text); margin-top: -5rem; padding: 10rem 0 4rem; }
.footer-logo { display: block; height: 56px; width: auto; margin: 0 auto 1rem; }
.footer-person { display: inline-flex; align-items: center; gap: 1.5rem; margin-bottom: 2.25rem; text-align: left; }
.footer-photo { flex: none; width: 104px; height: 104px; margin: 0; box-shadow: 0 0 0 4px var(--dark), 0 0 0 6px var(--pop); }
.footer-name { margin: 0 0 0.4rem; font: 600 1.5rem/1.1 var(--font-display); }
.footer-role { margin: 0; font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pop); }
.tagline { font: 500 1.4rem/1.3 var(--font-display); max-width: 22ch; margin: 0 auto 2.5rem; }
.socials { display: flex; justify-content: center; gap: 1.25rem; margin-bottom: 2.5rem; }
.socials a {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 2px solid currentColor; border-radius: 50%;
  color: inherit; font-weight: 500;
  transition: background-color .2s, color .2s;
}
.socials a:hover { background: var(--pop); border-color: var(--pop); color: var(--dark); text-decoration: none; }
.credit { font-size: 0.95rem; margin: 0; }

/* Motion ------------------------------------------------------------- */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }

/* Press feedback */
.btn:active, .lang-switch a:active, .socials a:active { transform: scale(0.97); }
.lang-switch a, .socials a { transition: background-color .2s, color .2s, transform .16s var(--ease-out); }

/* Background: three very soft color fields drifting slowly */
.bg-drift { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-drift span { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; will-change: transform; }
.bg-drift span:nth-child(1) { top: -24vmax; left: -16vmax; background: radial-gradient(circle, rgba(251, 146, 60, 0.20) 0%, rgba(251, 146, 60, 0) 62%); animation: drift-a 46s ease-in-out infinite alternate; }
.bg-drift span:nth-child(2) { top: 14vmax; right: -26vmax; background: radial-gradient(circle, rgba(194, 65, 12, 0.11) 0%, rgba(194, 65, 12, 0) 62%); animation: drift-b 58s ease-in-out infinite alternate; }
.bg-drift span:nth-child(3) { bottom: -32vmax; left: 18vmax; background: radial-gradient(circle, rgba(255, 196, 150, 0.26) 0%, rgba(255, 196, 150, 0) 62%); animation: drift-c 64s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(16vmax, 11vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-18vmax, -9vmax, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(12vmax, -14vmax, 0) scale(1.08); } }

/* Background drawing: neural network, blurred and faded toward the center so text stays readable */
.bg-net {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  filter: blur(1.2px);
  -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(0, 0, 0, 0.2) 0%, #000 100%);
  mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(0, 0, 0, 0.2) 0%, #000 100%);
}

/* Language chooser fades out once a language is picked */
.lang-gate { transition: opacity .3s var(--ease-out); }
.lang-gate.is-leaving { opacity: 0; pointer-events: none; }

/* Hero entrance: plays when the page is revealed (has-lang) */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html.has-lang .hero > :not(.results), html.has-lang .result { animation: rise .55s var(--ease-out) both; }
html.has-lang .hero > h1 { animation-delay: .06s; }
html.has-lang .hero > .lead { animation-delay: .12s; }
html.has-lang .result:nth-child(1) { animation-delay: .22s; }
html.has-lang .result:nth-child(2) { animation-delay: .30s; }
html.has-lang .result:nth-child(3) { animation-delay: .38s; }

/* Scroll reveal: only when scripts run (.js), so content never stays hidden */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out) var(--d, 0ms), transform .5s var(--ease-out) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* Method steps: the line draws left to right, one step after another */
.js .step.reveal::before { transform: scaleX(0); transition: transform .4s var(--ease-out) var(--d, 0ms); }
.js .step.reveal.in::before { transform: scaleX(1); }

/* Language switch: brief fade so the text does not flicker */
body > header, body > section, body > footer { transition: opacity .12s ease-out; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .skills, .steps, .results, .sec-ui { grid-template-columns: 1fr; }
  .sec-ui { gap: 2rem; }
  .sec-tabs { grid-template-columns: 1fr 1fr; }
  .sec-tabs button { padding: 0.85rem 0.9rem; font-size: 0.92rem; }
  .sec-tab-count { display: none; }
  .ctl summary { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .ctl summary > span:first-child { flex: 1 1 100%; order: 1; }
  .ctl-tag { order: 2; }
  .ctl summary::after { order: 3; margin-left: auto; }
  .secure { padding-block: 4.5rem; }
  /* Phone menu: the section links become a panel that drops from the bar */
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 0.25rem 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(35, 24, 21, 0.5);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
  }
  .nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-menu > a:not(.btn) { padding: 1rem 0; border-top: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav-menu > a:not(.btn):first-child { border-top: 0; }
  .nav-menu > a:not(.btn)::after { display: none; }
  .nav-menu > a[aria-current="true"] { color: var(--accent); }
  .nav-cta-phone { display: block; margin-top: 1rem; text-align: center; }
  .result { padding: 1.5rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .result:first-child { border-top: 0; padding-top: 0; }
  .pad-start { padding-bottom: 10rem; }
  .case { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1.5rem; }
  .engage-grid { grid-template-columns: 1fr; gap: 3rem; }
  .orbit { max-width: 300px; }
  .way { grid-template-columns: 3.4rem 1fr; }
  .footer-person { flex-direction: column; gap: 1rem; text-align: center; }
  .skill { display: block; border-left: 0; border-top: 1px solid var(--line); }
  .skill ul { display: block; }
  .skill:first-child { border-top: 0; }
  .start { grid-template-columns: 1fr; text-align: center; padding: 2.5rem 1.5rem; }
  .section { padding-block: 4rem; }
  .call { padding-top: 5rem; }
  .call-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .lang-gate { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .gate-head { top: 1.25rem; }
  .gate-option { gap: 1rem; padding: 2rem 1.5rem; }
  .gate-option:first-of-type { padding-top: 6rem; }
  .gate-code { width: 52px; height: 52px; font-size: 0.95rem; }
}
@media (max-width: 560px) {
  .nav-actions { gap: 0.5rem; }
  .brand-logo { height: 42px; }
  .nav-cta { display: none; }  /* the panel carries the contact button on small phones */
}
/* Fold toggles and the fixed contact button exist for phones only */
.fold-toggle, .wa-fab { display: none; }

/* Phones --------------------------------------------------------------
   Same content, shown in less space: long blocks fold until asked for,
   sections tighten, and contact stays one tap away. */
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .section { padding-block: 3rem; }
  .secure { padding-block: 3.5rem; }
  .sub { font-size: 1.08rem; margin-bottom: 2rem; }

  /* Hero: the three figures share one row so the whole hero fits a screen */
  .hero { padding-top: 3rem; }
  .results { grid-template-columns: repeat(3, 1fr); padding-bottom: 3rem; }
  .result, .result:first-child { padding: 0 0.6rem; border-top: 0; border-left: 1px solid var(--line); }
  .result:first-child { border-left: 0; }
  .result-num { margin-bottom: 0.5rem; font-size: 1.55rem; }
  .result-text { font-size: 0.78rem; line-height: 1.4; }

  /* Folded until asked for: case write-ups and the example lists */
  .js .fold-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 44px; margin-top: 0.75rem; padding: 0;
    border: 0; background: none; cursor: pointer;
    font: 500 0.92rem/1 var(--font-body); color: var(--accent);
  }
  .fold-toggle::after { content: "+"; font: 500 1.1rem/1 var(--font-mono); }
  .fold-toggle[aria-expanded="true"]::after { content: "\2212"; }
  .fold-less, .fold-toggle[aria-expanded="true"] .fold-more { display: none; }
  .fold-toggle[aria-expanded="true"] .fold-less { display: inline; }
  .js .case:not(.is-open) .case-body, .js .skill:not(.is-open) ul { display: none; }
  .case { gap: 1rem; padding: 1.5rem 1.25rem; }
  .case h3 { font-size: 1.35rem; }
  .case-kind { margin-bottom: 1rem; }
  .cases { gap: 1rem; }
  .skill { padding: 1.75rem 1.5rem; }
  .skill-icon { width: 44px; height: 44px; margin-bottom: 1rem; }
  .skill ul { margin-top: 0.5rem; }

  /* Questions: one column, answers flush with the edge */
  .faq-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq-head { position: static; }
  .faq-item summary { padding: 1.05rem 0; font-size: 1.04rem; }
  .faq-item p { margin-left: 0; }

  /* Method: a short numbered list, with the number beside each step */
  .steps { gap: 1.25rem; }
  .step { display: grid; grid-template-columns: 2.2rem 1fr; padding-top: 0; }
  .step::before { display: none; }
  .step-num { grid-row: span 2; padding-top: 0.2rem; }
  .step h3 { margin: 0 0 0.25rem; font-size: 1.12rem; }
  .step p { font-size: 0.96rem; }

  /* Working together: the three ways first, then the team */
  .engage { padding-top: 3.5rem; }
  .engage-grid { gap: 2.5rem; }
  .engage-grid > :first-child { order: 2; }
  .way { padding: 1.25rem 0; }
  .way-num { font-size: 2.1rem; }
  /* Industries: one row that slides sideways */
  .creds { grid-template-columns: 1fr; gap: 0.6rem; }
  .creds dd:has(span) { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.5rem; padding-inline: 1.5rem; scrollbar-width: none; }
  .creds dd:has(span)::-webkit-scrollbar { display: none; }
  .creds dd span { flex: none; white-space: nowrap; }

  /* Footer: shorter, with room for the fixed button */
  .footer { padding: 8rem 0 6rem; }
  .footer-person { margin-bottom: 1.5rem; }
  .footer-photo { width: 80px; height: 80px; }
  .tagline { margin-bottom: 1.5rem; font-size: 1.2rem; }
  .socials { margin-bottom: 1.5rem; }

  /* The call: less padding, a tighter console, and a smaller overlap with the card below */
  .call { padding: 3.5rem 0 8.5rem; }
  .skills-wrap { margin-top: -6rem; }
  .call-grid { gap: 1.5rem; }
  .call-title { margin-bottom: 1.5rem; }
  .call-close { padding-top: 1rem; font-size: 1rem; }
  .console-head { gap: 0.75rem; padding: 0.7rem 0.9rem; font-size: 0.66rem; letter-spacing: 0.04em; white-space: nowrap; }
  .inc { gap: 0.7rem; padding: 1rem 0.9rem; }
  .inc-text { font-size: 0.98rem; }
  .inc-state { min-width: 0; font-size: 0.64rem; }

  /* Security: every control starts closed (script.js), tags show once a control is open,
     and the layer heading is left to screen readers because the selected tab already names it */
  .secure { padding-block: 3rem; }
  .secure-sub { margin-bottom: 1.75rem; font-size: 1.02rem; }
  .sec-ui { gap: 1.25rem; }
  .sec-tabs button { padding: 0.7rem 0.8rem; }
  .layer-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ctl:not([open]) .ctl-tag { display: none; }

  /* Working together: the orbit shrinks to a mark beside the team line */
  .engage .sub { margin-bottom: 1.5rem; }
  .engage-grid > :first-child { display: grid; grid-template-columns: 104px 1fr; gap: 1.1rem; align-items: center; }
  .orbit { max-width: 104px; }
  .orbit-ring b { width: 20px; height: 20px; margin: -10px; box-shadow: none; }
  .orbit-ring svg { width: 11px; height: 11px; }
  .orbit-core { inset: 30%; border-width: 1px; box-shadow: 0 0 26px rgba(251, 146, 60, 0.4); }
  .team-line { max-width: none; margin: 0; text-align: left; font-size: 0.93rem; }
  .way p { font-size: 0.96rem; }
  .pad-start { padding-bottom: 7rem; }

  /* Fixed contact button */
  .wa-fab {
    position: fixed; z-index: 40; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.8rem 1.1rem; border-radius: 999px;
    background: var(--accent); color: var(--accent-contrast);
    font: 500 0.92rem/1 var(--font-body);
    box-shadow: 0 10px 24px -8px rgba(35, 24, 21, 0.55);
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s;
  }
  .wa-fab:hover { text-decoration: none; }
  .wa-fab:active { transform: scale(0.97); }
  .wa-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  .wa-fab.is-hidden, html:not(.has-lang) .wa-fab, .nav-open ~ .wa-fab { opacity: 0; visibility: hidden; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
