/* Marsilas — draft redesign, 2026-10-20, made with the ui-ux-pro-max skill.
   Swiss-style grid, Outfit + Work Sans, sharp corners, the brand blues as the
   only colour. Every colour is a variable here; dark mode redefines them. */

:root {
  --blue: #0E6CDE;
  --blue-deep: #0F328B;
  --blue-light: #6FA8F3;
  --on-blue: #FFFFFF;

  --bg: #FFFFFF;
  --bg-alt: #F3F5F8;
  --text: #0D1117;
  --text-muted: #525B68;
  --line: #DADFE6;
  --line-strong: #0D1117;
  --blue-text: #0E6CDE;

  --night: #12171D;
  --night-raised: #1A2129;
  --night-line: #2C3440;
  --night-line-hover: #4A5564;
  --night-text: #EEF1F5;
  --night-muted: #A6AFBB;
  --night-error: #FF8A80;

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  --maxw: 1280px;
  --pad: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --section-y: clamp(80px, 11vw, 152px);
  --nav-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 180ms;
  --med: 240ms;
  --slow: 420ms;

  color-scheme: light;
}

:root.dark {
  --bg: #12171D;
  --bg-alt: #171D25;
  --text: #EEF1F5;
  --text-muted: #A6AFBB;
  --line: #2C3440;
  --line-strong: #EEF1F5;
  --blue-text: #6FA8F3;
  color-scheme: dark;
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--med) var(--ease), color var(--med) var(--ease);
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue-text); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.dark :focus-visible,
.section-night :focus-visible,
.footer :focus-visible { outline-color: var(--blue-light); }
.section-blue :focus-visible,
.guarantee :focus-visible { outline-color: #FFFFFF; }

::selection { background: var(--blue); color: var(--on-blue); }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--blue);
  color: var(--on-blue);
  font-weight: 500;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .span-label { grid-column: 1 / 4; }
  .span-body { grid-column: 4 / 13; }
}

/* A small uppercase label with a blue square: the one marker used
   for every section, so the grid reads the same top to bottom. */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font: 500 .8125rem/1.3 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--blue);
}

@media (min-width: 900px) {
  .sec-label {
    position: sticky;
    top: calc(var(--nav-h) + 32px);
    align-self: start;
  }
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: 500 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); text-decoration: none; }

.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--on-blue); }

.btn-light { background: #FFFFFF; border-color: #FFFFFF; color: var(--blue-deep); }
.btn-light:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #FFFFFF; }

.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn-full { width: 100%; }

.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--med) var(--ease), border-color var(--med) var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
}

.nav-logo { flex: none; }

/* The tagline under the logo; the same line sits in the footer. */
.nav-brand { flex: none; display: grid; gap: 4px; }
.nav-brand .nav-logo { display: block; line-height: 0; }
.nav-tagline {
  margin-top: -10px; /* the lockup file has empty space under the wordmark */
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 699px) { .nav-tagline { display: none; } }
.nav-logo img { height: 40px; width: auto; }

.logo-dark { display: none !important; }
.dark .logo-light { display: none !important; }
.dark .logo-dark { display: block !important; }

.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 10px 10px;
  color: var(--text-muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch { display: flex; border: 1px solid var(--line); }
.lang-opt {
  min-width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 500 .8125rem/1 var(--font-body);
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.lang-opt:hover { color: var(--text); }
.lang-opt[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--fast) var(--ease);
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; }

.i-sun { display: none; }
.dark .i-sun { display: block; }
.dark .i-moon { display: none; }

.nav-burger { display: none; }

@media (max-width: 1099px) {
  .nav-burger { display: grid; }
  .nav-actions { margin-left: auto; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--pad) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 1.25rem;
  }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--blue-text); }
}

@media (max-width: 560px) {
  .nav-logo img { height: 34px; }
}

/* ------------------------------------------------------------- hero */
.hero { padding: clamp(56px, 9vw, 128px) 0 clamp(64px, 8vw, 112px); }

.hero h1 {
  max-width: 20ch;
  margin-top: 0;
  font-size: clamp(2.6rem, 6.6vw, 6.25rem);
  line-height: 1;
  letter-spacing: -.04em;
  /* Balancing re-breaks the lines as the typing changes the spans, so the
     line would jump at the end. Plain wrapping breaks it the same way
     throughout. */
  text-wrap: wrap;
}
.hl { color: var(--blue-text); }
/* Hero line: "AI solutions" crossed out in blue, then the real offer typed.
   The resting state below is the finished line; main.js adds .js-strike to
   play it, .struck to draw the line, and types into .new. The untyped rest
   stays in the line at zero opacity, so the heading never reflows and a
   screen reader always gets the whole sentence. */
.old {
  position: relative;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-muted);
}
.old::after {
  content: "";
  position: absolute;
  left: -.04em;
  right: -.04em;
  top: 54%;
  height: .07em;
  background: var(--blue-text);
  transform-origin: left center;
}
.js-strike .old { color: var(--text); transition: color var(--slow) var(--ease); }
.js-strike .old::after { transform: scaleX(0); transition: transform 300ms var(--ease); }
.js-strike.struck .old { color: var(--text-muted); }
.js-strike.struck .old::after { transform: none; }
.new .ghost { opacity: 0; }
.new .caret {
  border-right: .06em solid var(--blue-text);
  margin-right: -.06em;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { border-right-color: transparent; } }

.hero-top { align-items: center; }
@media (min-width: 900px) {
  .hero-top h1 { grid-column: 1 / -1; }
  .hero-row .col { grid-column: 8 / 13; }
}

.hero-row { margin-top: clamp(40px, 6vw, 80px); }

.hero-lede {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
}
.hero-lede p + p { margin-top: 1em; }
.hero-lede .ticks { margin-top: 0.75em; }
/* Line that sets the article source apart from the text above it. */
.hero-lede .source,
.mission .source { margin-top: 1.5em; padding-top: 1em; border-top: 1px solid currentColor; }

.mission {
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.6;
}
.mission p + p { margin-top: 1em; }

.guarantee {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--blue);
  color: var(--on-blue);
}
.guarantee p {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.guarantee strong { font-weight: 600; }
.guarantee-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-on-blue { border-color: rgba(255, 255, 255, .6); color: #FFFFFF; }
.btn-on-blue:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--blue-deep); }

@media (min-width: 900px) {
  .hero-lede { grid-column: 1 / 7; grid-row: 1; }
  .guarantee { grid-column: 8 / 13; grid-row: 1; }
}

.stage-num { color: var(--blue-text); font: 600 .9375rem/1 var(--font-head); }
/* Each step is a diamond with an icon, then its name and what happens in it.
   No gap between the columns, so their centres stay at 1/6, 1/2 and 5/6. */
.stages {
  --dia: clamp(72px, 7vw, 88px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 112px);
}
/* The line that joins the diamonds, centre to centre. */
.stages::before {
  content: "";
  position: absolute;
  top: calc(var(--dia) / 2 - 1px);
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: var(--line);
}
.stages li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 clamp(8px, 2vw, 28px);
  text-align: center;
}
.stage-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--dia);
  height: var(--dia);
  margin-bottom: 12px;
  background: color-mix(in srgb, var(--blue-text) 12%, var(--bg));
  color: var(--blue-text);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.stage-icon svg { width: 38%; height: 38%; }
.stage-name {
  font: 600 clamp(1.0625rem, 2.2vw, 1.75rem)/1.1 var(--font-head);
  letter-spacing: -.02em;
}
.stage-text {
  max-width: 32ch;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

/* Narrow: the steps stack, diamond on the left, joined by a line down. */
@media (max-width: 699px) {
  .stages { --dia: 64px; margin-top: 48px; grid-template-columns: 1fr; }
  .stages::before { display: none; }
  .stages li {
    display: grid;
    grid-template-columns: var(--dia) minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 6px;
    align-items: start;
    align-content: start;
    padding: 0 0 32px;
    text-align: left;
  }
  .stages li:last-child { padding-bottom: 0; }
  .stage-icon { grid-row: 1 / span 3; margin: 0; }
  .stage-num, .stage-name, .stage-text { grid-column: 2; }
  .stage-num { padding-top: 6px; }
  .stage-text { margin-top: 0; }
  .stages li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--dia) / 2 - 1px);
    top: calc(var(--dia) / 2);
    width: 2px;
    height: 100%;
    background: var(--line);
  }
}

/* --------------------------------------------------------- sections */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }

.h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.lede {
  max-width: 56ch;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  line-height: 1.6;
}

.cols {
  display: grid;
  gap: clamp(32px, 4vw, 48px) var(--gap);
  margin-top: clamp(48px, 6vw, 80px);
}
@media (min-width: 760px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.col { padding-top: 20px; border-top: 2px solid var(--line-strong); }
.col h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; letter-spacing: -.02em; }
.col p { margin-top: 12px; color: var(--text-muted); }

.after { margin-top: clamp(40px, 5vw, 64px); }

/* ------------------------------------------------------------- case */
/* The one real job, its result, and the guarantee (2026-11-15). */
.case {
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 2px solid var(--line-strong);
}
.case-label { font-weight: 500; }
.case-stat {
  display: flex;
  align-items: center;
  gap: .2em;
  margin-top: 20px;
  color: var(--blue-text);
  font: 600 clamp(3.5rem, 9vw, 6.5rem)/.9 var(--font-head);
  letter-spacing: -.05em;
}
.case-stat svg { width: .55em; height: .55em; }
.case-sub { margin: 12px 0 32px; color: var(--text-muted); }
.case-after { max-width: 60ch; margin-top: 24px; font-weight: 500; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; }
.ticks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  background: var(--blue-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The case's four steps, top to bottom with an arrow between each
   (Nika, 2026-11-15). The filled steps are the ones AI does. */
.flow-steps { display: grid; gap: 44px; max-width: 640px; }
.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  width: 28px;
  height: 28px;
  margin-left: -14px;
  background: var(--blue-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M6 14l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M6 14l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-num { color: var(--blue-text); font: 600 1.5rem/1 var(--font-head); }
.flow-who {
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.flow-step strong { font: 600 1.125rem/1.25 var(--font-head); letter-spacing: -.01em; }
.flow-desc { color: var(--text-muted); font-size: .9375rem; line-height: 1.55; }

.flow-step.is-ai { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.is-ai .flow-num,
.is-ai .flow-who,
.is-ai .flow-desc { color: var(--on-blue); }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--bg);
  border-left: 3px solid var(--blue);
}
.callout svg { flex: none; width: 28px; height: 28px; color: var(--blue-text); }

/* ------------------------------------------------------ blue (why) */
.section-blue { background: var(--blue); color: var(--on-blue); border-top: 0; }
.section-blue .label { color: var(--on-blue); }
.section-blue .label::before { background: var(--on-blue); }
.section-blue .lede,
.section-blue .col p { color: var(--on-blue); }
.section-blue .col { border-top-color: var(--on-blue); }
.section-blue .ticks li::before { background: var(--on-blue); }
/* Blue text vanishes on this ground: highlighted words and links keep the
   underline and take the section's white. */
.section-blue .hl,
.section-blue a { color: var(--on-blue); }
.section-blue .hl {
  text-decoration: underline;
  text-decoration-thickness: .06em;
  text-underline-offset: .12em;
}
/* The offer block lives in this section (swapped with the hero's, 2026-11-13),
   so everything it uses that assumed a white ground is redone for blue. */
.section-blue .hero-lede { color: var(--on-blue); }
@media (min-width: 900px) {
  /* Narrower column than the old hero had, so the offer box gets more room. */
  .section-blue .hero-lede { grid-column: 1 / 6; }
  .section-blue .guarantee { grid-column: 6 / 13; }
}
.section-blue .guarantee { background: var(--night); color: var(--night-text); }
.section-blue .stage-num { color: var(--on-blue); }
/* The blanket white-link rule above would turn this button's label white on
   white. */
.section-blue .btn-light { color: var(--blue-deep); }
.section-blue .btn-light:hover { color: #FFFFFF; }

/* -------------------------------------------------- night (contact) */
.section-night { background: var(--night); color: var(--night-text); border-top: 0; }
.dark .section-night { border-top: 1px solid var(--night-line); }
.section-night .label { color: var(--night-muted); }
.section-night .lede { color: var(--night-muted); }
.section-night a { color: var(--blue-light); }

.contact-grid { display: grid; gap: 48px var(--gap); }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* the mark the visitor finishes; nothing of their half shows until drawn */
#contact { padding-block: clamp(64px, 7vw, 104px); }
.together { display: block; width: 100%; max-width: 220px; height: auto; margin-top: 32px; overflow: visible; }
/* Wide screens: the mark sits in the empty column left of the copy, with
   a small gap before the heading. */
@media (min-width: 1000px) {
  .contact-copy { position: relative; }
  .contact-copy > :not(.together) { position: relative; z-index: 1; }
  .together {
    --w: clamp(240px, 22vw, 320px);
    position: absolute; top: 64px; right: calc(100% + var(--w) * .1);
    width: var(--w); max-width: none; margin: 0;
  }
}
.together .ln { fill: none; stroke: url(#together-glow); stroke-width: 13; stroke-linecap: round; }
.together .dot { fill: url(#together-glow); transform-box: fill-box; transform-origin: center; }
.together .ring { fill: none; stroke: #B9D8FF; stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.together .ring.go { animation: together-ring 1s ease-out .4s both; }
.together .c.ln { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .6s cubic-bezier(.3,.7,.3,1), opacity .12s; }
.together .c.ln.on { stroke-dashoffset: 0; opacity: 1; }
.together .c.ln.part.on { stroke-dashoffset: var(--stop); }
.together .c.dot { transform: scale(0); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.together .c.dot.on { transform: scale(1); }
/* the centre dot reaches towards the empty side once the mark scrolls into view */
.together .reach { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s cubic-bezier(.3,.7,.3,1); }
.together.in .reach,
.together:not(.armed) .reach { stroke-dashoffset: var(--far); animation: together-reach-in .9s cubic-bezier(.3,.7,.3,1) .5s backwards, together-reach 2.4s ease-in-out 1.4s infinite alternate; }
.together.joined .reach { animation: none; stroke-dashoffset: 0; }
.together.joined .c.ln.on { stroke-dashoffset: 0; }
@keyframes together-reach-in { from { stroke-dashoffset: 1; } }
@keyframes together-reach { from { stroke-dashoffset: var(--far); } to { stroke-dashoffset: var(--near); } }
@keyframes together-ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

.form { display: grid; gap: 20px; }
.field label { display: block; margin-bottom: 8px; color: var(--night-text); font-size: .9375rem; font-weight: 500; }
.req { color: var(--blue-light); }
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: 0;
  color: var(--night-text);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color var(--fast) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--night-line-hover); }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--blue-light); outline-offset: 0; border-color: var(--blue-light); }
.hint { margin-top: 8px; color: var(--night-muted); font-size: .875rem; }
.err { margin-top: 8px; color: var(--night-error); font-size: .875rem; }
.is-error input { border-color: var(--night-error); }
.form-note { min-height: 1.4em; color: var(--night-muted); font-size: .875rem; }

/* ----------------------------------------------------------- footer */
.footer {
  padding: 48px 0 40px;
  background: var(--night);
  border-top: 1px solid var(--night-line);
  color: var(--night-muted);
}
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 1000px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
}
.footer-brand img { height: 40px; width: auto; }
.footer-tagline {
  margin-top: 12px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a {
  padding: 10px 0;
  color: var(--night-text);
  font-size: .9375rem;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.footer-links a:hover { color: var(--blue-light); }
.footer-legal { font-size: .875rem; }

/* ---------------------------------------------------- inner pages */
.page-head { padding: clamp(56px, 9vw, 128px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 {
  margin-top: 24px;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.page-body { padding-bottom: var(--section-y); }

/* FAQ: native <details>, so it opens without JavaScript, works with the
   keyboard, and the answer stays in the page for the FAQPage block. */
.qa-list { border-top: 2px solid var(--line-strong); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 16px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa-num { color: var(--blue-text); font: 600 1rem/1.7 var(--font-head); }
.qa h2 {
  font-size: clamp(1.125rem, 2vw, 1.625rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
  transition: color var(--fast) var(--ease);
}
.qa summary:hover h2 { color: var(--blue-text); }
.qa-icon { width: 28px; height: 28px; transition: transform var(--med) var(--ease); }
.qa[open] .qa-icon { transform: rotate(45deg); }
.qa-a {
  max-width: calc(62ch + 56px);
  padding: 0 0 32px 56px;
  color: var(--text-muted);
}
@media (min-width: 760px) {
  .qa summary { grid-template-columns: 96px minmax(0, 1fr) 32px; }
  .qa-a { max-width: calc(62ch + 112px); padding-left: 112px; }
}

.member {
  display: grid;
  gap: 24px var(--gap);
  padding-top: 32px;
  border-top: 2px solid var(--line-strong);
}
@media (min-width: 760px) {
  .member { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.member-photo {
  display: grid;
  place-items: center;
  max-width: 360px;
  aspect-ratio: 1;
  background: var(--bg-alt);
  color: var(--text-muted);
}
.member-photo svg { width: 40%; height: 40%; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.member-role { margin-top: 12px; }
.member-bio { max-width: 48ch; margin-top: 20px; color: var(--text-muted); font-size: 1.25rem; line-height: 1.55; }

.empty {
  padding: clamp(32px, 5vw, 56px);
  border: 1px dashed var(--line);
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* -------------------------------------------------------- fit check */
/* One question at a time on a page-ground panel. Steps swap with a short
   fade and lift: transform and opacity only, like everything else. */
.check {
  max-width: 820px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 4vw, 48px);
  background: var(--bg);
  border-top: 2px solid var(--line-strong);
}
.check-count { margin-bottom: 16px; color: var(--blue-text); font: 600 .9375rem/1 var(--font-head); }
.check-step:not([hidden]) { animation: check-in var(--med) var(--ease); }
@keyframes check-in { from { opacity: 0; transform: translateY(8px); } }

.check-q {
  max-width: 30ch;
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.check-verdict {
  max-width: 24ch;
  color: var(--blue-text);
  font: 600 clamp(1.5rem, 2.8vw, 2.25rem)/1.1 var(--font-head);
  letter-spacing: -.025em;
}
.check [tabindex="-1"]:focus { outline: none; }

.check-answers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.check-answers .btn { min-width: 120px; }
.check-answers.is-list { display: grid; }
.check-answers.is-list .btn { justify-content: flex-start; padding-block: 14px; text-align: left; }

.check-text { max-width: 56ch; margin-top: 16px; color: var(--text-muted); }
.check-step .actions { margin-top: 28px; }
.check-small { margin-top: 16px; color: var(--text-muted); font-size: .875rem; }
.check-small a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }

.check-controls { display: flex; gap: 24px; margin-top: 28px; }
.check-controls:not(:has(:not([hidden]))) { display: none; }
.check-link {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: 500 .9375rem/1.4 var(--font-body);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}
.check-link:hover { color: var(--text); }

/* ----------------------------------------------------------- motion */
.reveal.armed { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--slow) var(--ease) calc(var(--i, 0) * 70ms),
    transform var(--slow) var(--ease) calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
}


/* ------------------------------------------------------------ photos */
/* Homepage header: the headline sits on the city photo. Inside it the text
   colours are redefined, so the crossing-out and typing rules above apply
   unchanged. The photo is dark, so it is the same in both themes. */
.hero { padding-top: 0; }
.hero-photo {
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, .62);
  --blue-text: var(--blue-light);
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 10vw, 144px) 0 clamp(64px, 9vw, 128px);
  background: var(--night) url(media/header-city.webp) center / cover no-repeat;
  color: var(--text);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--night) 82%, transparent), color-mix(in srgb, var(--night) 50%, transparent) 60%, color-mix(in srgb, var(--night) 30%, transparent));
}
.hero-row { margin-top: clamp(48px, 6vw, 88px); }
@media (max-width: 699px) {
  .hero-photo { background-image: url(media/header-city-phone.webp); }
  .hero-photo::before { background: color-mix(in srgb, var(--night) 66%, transparent); }
}

/* Fit check: the motorway photo behind the whole section, mirrored so the
   junction is on the right. The question card keeps its own ground. */
#check {
  position: relative;
  isolation: isolate;
  background: var(--night);
  border-top: 0;
}
#check::before,
#check::after { content: ""; position: absolute; inset: 0; z-index: -1; }
#check::before {
  z-index: -2;
  /* "cover" holds still because main.js keeps the section one height. */
  background: url(media/case-motorway.webp) center / cover no-repeat;
  transform: scaleX(-1);
}
#check::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--night) 86%, transparent), color-mix(in srgb, var(--night) 55%, transparent) 50%, color-mix(in srgb, var(--night) 20%, transparent));
}
#check .h2 { color: #FFFFFF; }
#check .lede { color: rgba(255, 255, 255, .72); }
@media (max-width: 699px) {
  #check::after { background: color-mix(in srgb, var(--night) 60%, transparent); }
}

/* Contact: lights on water behind the form. */
#contact {
  background:
    linear-gradient(color-mix(in srgb, var(--night) 50%, transparent), color-mix(in srgb, var(--night) 88%, transparent) 45%),
    var(--night) url(media/contact-water.webp) center top / cover no-repeat;
}

/* Inner pages: the title sits on a photo strip. */
.page-photo {
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(40px, 5vw, 64px);
  padding: clamp(72px, 11vw, 160px) 0 clamp(40px, 5vw, 64px);
  background: var(--night) center / cover no-repeat;
  color: #FFFFFF;
}
.page-photo h1 { margin-top: 0; }
.page-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.page-photo-faq { background-image: url(media/faq-glass.webp); }
.page-photo-faq::before { background: linear-gradient(90deg, color-mix(in srgb, var(--blue-deep) 72%, transparent), color-mix(in srgb, var(--blue-deep) 30%, transparent)); }
.page-photo-team { background-image: url(media/team-rooftop.webp); }
.page-photo-team::before { background: linear-gradient(90deg, color-mix(in srgb, var(--night) 50%, transparent), color-mix(in srgb, var(--night) 0%, transparent) 70%); }
.page-photo-mission { background-image: url(media/customer-conversation.webp); }
.page-photo-mission::before { background: linear-gradient(90deg, color-mix(in srgb, var(--night) 60%, transparent), color-mix(in srgb, var(--night) 0%, transparent) 70%); }
