/* ArcLayer — shared design system. Grid and motion measured from the template walkthrough at 1572px;
   type, colour, icons and controls follow brand system v2.2. */
/* Archivo (SIL OFL, Omnibus-Type), Latin, weight axis 100–900 at the brand's standard width 100. */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/Archivo-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  /* ArcLayer brand tokens (brand system v2.2, page 16). Light surfaces: */
  --bg: #F4F5F6;        /* Canvas, --color-surface */
  --paper: #FFFFFF;     /* --color-bg */
  --ink: #202224;       /* Graphite, --color-text and --color-action */
  --ink-2: #2E3134;
  --muted: #626870;     /* Secondary, --color-muted: 5.2:1 on Canvas */
  --faint: #858C94;     /* --color-border-strong: boundaries and decorative numerals only */
  --line: #D5D8DC;      /* Line, --color-border */
  --line-soft: #E6E8EB;
  --signal: #D72638;    /* Signal, --color-accent and --color-focus */
  --signal-on-dark: #FF8B96; /* accent on dark surfaces */
  --tint: #EED7D9;
  --tint-2: #F4E2E4;
  /* Dark surfaces: Graphite panel with its raised surface */
  --dark: #202224;      /* dark --color-bg */
  --dark-2: #26292C;
  --dark-3: #2A2D31;    /* dark --color-surface */
  --dark-line: #42474C; /* dark --color-border */
  --dark-muted: #B1B7BE; /* dark --color-muted: 7.9:1 on --dark */
  --wrap: 1120px;
  --pad: 32px;
  --sec-y: 128px;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace; /* code samples only */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--sans); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
.sec--dark :focus-visible, .foot :focus-visible { outline-color: var(--signal-on-dark); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 12px 16px; background: var(--ink); color: #fff; font-weight: 500; }
.skip:focus { top: 12px; }

.ic { flex: none; width: 24px; height: 24px; }
/* Numerals that used to be set in a pixel face: Archivo bold with tabular figures */
.pixel { font-family: var(--sans); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.accent { color: var(--signal); }
/* The brand's 12px label: the one place uppercase is used, for short metadata. */
.mono-xs { font: 500 12px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Page grid: full-width rows, a 1120px framed column, numbered gutter ---------- */
.sec { position: relative; border-top: 1px solid var(--line); overflow-x: clip; }
.sec > .wrap { max-width: var(--wrap); margin: 0 auto; border-inline: 1px solid var(--line); position: relative; }
.gnum {
  position: absolute; left: 24px; top: 28px; z-index: 2;
  font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--faint);
}
/* a short red segment runs along a section's top border when it first comes into view */
.sec > .sec__run { position: absolute; left: 0; top: -1px; width: 140px; height: 1px; background: linear-gradient(90deg, transparent, var(--signal) 30%, var(--signal)); transform: translateX(-140px); pointer-events: none; z-index: 3; opacity: 0; }
.sec.is-lit > .sec__run { animation: run 1.6s var(--ease) forwards; }
@keyframes run { 0% { opacity: 1; transform: translateX(-140px); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(100vw); } }
.sec--dark { background: var(--dark); color: #fff; border-top-color: var(--dark-line); }
.sec--dark > .wrap { border-color: var(--dark-line); }
.sec--dark .gnum { color: #6A7078; }
.sec--dark .mono-xs.accent { color: var(--signal-on-dark); }
.sec--paper > .wrap { background: var(--paper); }
.sec__pad { padding: var(--sec-y) var(--pad); }
.sec__head { padding: var(--sec-y) var(--pad) 72px; }

/* ---------- Type (brand system v2.2, page 19) ---------- */
.h1 { font: 700 80px/1 var(--sans); letter-spacing: -0.035em; } /* the brand's 80px campaign exception, home only */
.h2 { font: 600 48px/1.05 var(--sans); letter-spacing: -0.025em; }
.h3 { font: 600 56px/1 var(--sans); letter-spacing: -0.03em; }
.h4 { font: 600 22px/1.2 var(--sans); letter-spacing: -0.015em; }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); }
.body { font-size: 16px; line-height: 1.55; color: var(--muted); }
.sec--dark .lede, .sec--dark .body { color: var(--dark-muted); }

/* Label chip: ■ HOW IT WORKS */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.35);
  font: 500 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.chip::before { content: ''; width: 6px; height: 6px; background: var(--signal); flex: none; }
.chip--plain::before { display: none; }
.sec--dark .chip { border-color: #3A3E43; background: var(--dark); color: #fff; }
.chip--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 24px;
  font: 500 16px/1 var(--sans); white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn .arr { flex: none; }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #33373B; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #E8EAEC; }
.btn--block { width: 100%; }

.link {
  display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px;
  font: 500 16px/1.2 var(--sans); color: var(--ink);
  background-image: repeating-linear-gradient(90deg, rgba(16,18,19,.45) 0 3px, transparent 3px 6px);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
}
.link--light { color: #fff; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 3px, transparent 3px 6px); }
.arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .35s var(--ease), color .2s; }
.arr--lg { width: 30px; height: 30px; stroke-width: 1.2; }
.link { position: relative; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--signal) 0 3px, transparent 3px 6px); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.link:hover { color: var(--signal); }
.link--light:hover { color: var(--signal-on-dark); }
.link--light::after { background: repeating-linear-gradient(90deg, var(--signal-on-dark) 0 3px, transparent 3px 6px); }
.link:hover::after { transform: scaleX(1); }
.link:hover .arr { transform: translate(2px, -2px); }

/* Email address shown beside the primary action, with a copy button (mailto does nothing without a mail app) */
.mailcopy { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; font: 400 15px/1 var(--sans); color: var(--muted); }
.mailcopy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.mailcopy:hover { color: var(--ink); }
.mailcopy__done { position: absolute; left: 100%; margin-left: 10px; font: 500 12px var(--sans); color: var(--signal); font-style: normal; white-space: nowrap; }
.sec--dark .mailcopy { color: var(--dark-muted); }
.sec--dark .mailcopy:hover { color: #fff; }
.sec--dark .mailcopy__done { color: var(--signal-on-dark); }

/* Corner brackets ⌜ ⌝ ⌞ ⌟ drawn around a panel */
.brk { position: relative; }
.brk > .brk__c { position: absolute; width: 10px; height: 10px; border: 0 solid #979DA5; pointer-events: none; z-index: 2; }
.brk__c:nth-of-type(1) { top: 16px; left: 16px; border-top-width: 1px; border-left-width: 1px; }
.brk__c:nth-of-type(2) { top: 16px; right: 16px; border-top-width: 1px; border-right-width: 1px; }
.brk__c:nth-of-type(3) { bottom: 16px; left: 16px; border-bottom-width: 1px; border-left-width: 1px; }
.brk__c:nth-of-type(4) { bottom: 16px; right: 16px; border-bottom-width: 1px; border-right-width: 1px; }

/* Signal dots on the four corners of an active card */
.dots4 { position: relative; }
.dots4::after {
  content: ''; position: absolute; inset: -3px; pointer-events: none;
  background:
    linear-gradient(var(--signal), var(--signal)) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--signal), var(--signal)) 100% 0 / 6px 6px no-repeat,
    linear-gradient(var(--signal), var(--signal)) 0 100% / 6px 6px no-repeat,
    linear-gradient(var(--signal), var(--signal)) 100% 100% / 6px 6px no-repeat;
}

/* Grids used as backdrops */
.bg-dots { background-image: radial-gradient(#C6CACF 1px, transparent 1.2px); background-size: 16px 16px; background-position: 8px 8px; }
.bg-iso {
  background-color: var(--bg);
  background-image:
    repeating-linear-gradient(30deg, transparent 0 27px, rgba(16,18,19,.075) 27px 28px),
    repeating-linear-gradient(-30deg, transparent 0 27px, rgba(16,18,19,.075) 27px 28px);
}
.bg-grid { background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 20px 20px; }

/* ---------- Nav (in flow, not sticky — matches the recording) ---------- */
.nav { position: relative; z-index: 30; border-bottom: 1px solid var(--line); background: var(--bg); }
.nav__in { max-width: var(--wrap); margin: 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 23px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand__mark { display: block; width: 176px; height: auto; }
.nav__links { position: absolute; left: 50%; top: 14px; transform: translateX(-46%); display: flex; height: 44px; border: 1px solid var(--line); }
.nav__links a { display: flex; align-items: center; padding: 0 14px; font: 500 15px/1 var(--sans); color: var(--ink); white-space: nowrap; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--signal); background: rgba(255,255,255,.6); }
.nav__cta { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; background: var(--ink); color: #fff; font: 500 15px/1 var(--sans); white-space: nowrap; transition: background-color .2s; }
.nav__cta:hover { background: #33373B; }
.nav__burger { display: none; width: 44px; height: 44px; border: 1px solid var(--ink); position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { border-top: 1px solid var(--line); padding: 8px 16px 24px; background: var(--bg); }
.mnav a:not(.btn) { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 24px/1.1 var(--sans); letter-spacing: -0.02em; }
.mnav a i { font: 500 12px var(--sans); color: var(--muted); font-style: normal; }
.mnav .btn { margin-top: 24px; width: 100%; }
.mnav__mail { margin-top: 12px; font-size: 15px; color: var(--muted); }
.mnav .mnav__mail a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mnav__copy { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta__wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.cta__copy { padding: var(--sec-y) var(--pad); align-self: center; position: relative; z-index: 1; }
.cta__h { font: 700 80px/0.95 var(--sans); letter-spacing: -0.035em; }
.cta__sub { margin-top: 48px; max-width: 460px; color: var(--dark-muted); font-size: 16px; }
.cta__mail { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.45); }
.cta__mail:hover { color: var(--signal-on-dark); }
.cta__actions { margin-top: 40px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta__copy .mailcopy { margin-top: 16px; }
.founders { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--dark-line); }
.founders li { display: flex; align-items: center; gap: 12px; }
.founders__i { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--dark-line); background: var(--dark-2); font: 600 15px/1 var(--sans); color: #fff; }
.founders span { font: 600 16px/1.2 var(--sans); }
.founders small { display: block; margin-top: 2px; font: 400 14px/1.3 var(--sans); color: var(--dark-muted); }
.cta__art { position: relative; overflow: hidden; }
/* the nested squares, a generated clip centred where the squares sat and scaled like them */
.nest__vid { position: absolute; left: 50%; top: 42%; width: 558px; height: 852px; max-width: none; transform: translate(-50%, -42%) scale(var(--k, 1)); transform-origin: 50% 42%;
  -webkit-mask-image: linear-gradient(#000 74%, transparent 82%); mask-image: linear-gradient(#000 74%, transparent 82%); }

/* ---------- Footer ---------- */
.foot { border-top-color: var(--dark-line); }
.foot__grid { display: grid; grid-template-columns: 494px 1fr; border-bottom: 1px solid var(--dark-line); }
.foot__n { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--sans); font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--dark-muted); transition: color .2s; }
.foot__demo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 56px 32px 32px; min-height: 160px; position: relative; font: 600 40px/1 var(--sans); letter-spacing: -0.025em; transition: background-color .25s; }
.foot__addr { display: block; margin-top: 12px; font: 400 15px/1.3 var(--sans); letter-spacing: 0; color: var(--dark-muted); }
.foot__demo .foot__n { position: absolute; left: 32px; top: 28px; }
.foot__demo .arr { color: #8A9098; flex: none; }
.foot__tiles { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--dark-line); }
.foot__tiles a { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 96px; padding: 44px 28px 18px 20px; font: 500 20px/1.15 var(--sans); letter-spacing: -0.01em; border-right: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); transition: background-color .25s; }
.foot__tiles a:nth-child(3n) { border-right: 0; }
.foot__tiles a:nth-child(n+4) { border-bottom: 0; }
.foot__tiles .foot__n { position: absolute; left: 20px; top: 16px; }
.foot__tiles .arr { color: #8A9098; flex: none; }
.foot__demo:hover, .foot__tiles a:hover { background: var(--dark-3); }
.foot__demo:hover .foot__n, .foot__tiles a:hover .foot__n, .foot__demo:hover .arr, .foot__tiles a:hover .arr { color: var(--signal-on-dark); }
.foot__demo:hover .foot__n::before, .foot__tiles a:hover .foot__n::before { content: ''; width: 6px; height: 6px; background: var(--signal); }
.foot__demo:hover .arr, .foot__tiles a:hover .arr { transform: translate(2px, -2px); }
.foot__brand { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; min-height: 107px; padding: 24px 32px; border-bottom: 1px solid var(--dark-line); }
.foot__brand .mono-xs { color: var(--dark-muted); }
.brand--light { color: #fff; }
.foot__mark { overflow: hidden; padding: 56px 32px 64px; }
/* the outlined wordmark exported in one solid colour (#2A2D31), sitting quietly in the dark band */
.foot__mark img { display: block; width: 100%; height: auto; }
.foot__legal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 24px; min-height: 46px; padding: 0 32px; border-top: 1px solid var(--dark-line); color: var(--dark-muted); }
.foot__small { font-size: 13px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__links a:hover { color: #fff; }

/* ---------- Motion primitives ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .gnum { display: none; }
  .sec > .wrap { margin: 0 24px; }
  .nav__in { padding: 0 24px; }
}
@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 900px) {
  :root { --pad: 20px; --sec-y: 88px; }
  .sec > .wrap { margin: 0 16px; }
  .nav__in { padding: 0 16px; height: 64px; }
  .brand__mark { width: 148px; }
  .h1 { font-size: 48px; line-height: 52px; }
  .h2 { font-size: 32px; line-height: 38px; }
  .h3 { font-size: 38px; }
  .cta__wrap { grid-template-columns: 1fr; }
  .cta__h { font-size: 56px; }
  .cta__art { height: 360px; }
  .nest__vid { --k: .7; top: 50%; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__demo { min-height: 120px; font-size: 30px; padding: 52px 20px 24px; }
  .foot__demo .foot__n { left: 20px; }
  .foot__tiles { border-left: 0; border-top: 1px solid var(--dark-line); grid-template-columns: repeat(2, 1fr); }
  .foot__tiles a { padding: 44px 16px 16px; font-size: 18px; }
  .foot__tiles .foot__n { left: 16px; }
  .foot__tiles a:nth-child(3n) { border-right: 1px solid var(--dark-line); }
  .foot__tiles a:nth-child(2n) { border-right: 0; }
  .foot__tiles a:nth-child(n+4) { border-bottom: 1px solid var(--dark-line); }
  .foot__tiles a:nth-child(n+5) { border-bottom: 0; }
  .foot__brand { padding: 20px; }
  .foot__mark { padding: 32px 20px 40px; }
  .foot__legal { padding: 0 20px; }
}
@media (max-width: 600px) {
  .cta__art { height: 200px; }
  .nest__vid { --k: .42; }
}
@media (max-width: 480px) {
  .btn--block { white-space: normal; text-align: center; height: auto; min-height: 56px; padding-block: 14px; line-height: 1.25; }
}

/* ---------- 404 ---------- */
.nf__h { margin-top: 24px; font: 700 56px/62px var(--sans); letter-spacing: -0.03em; }
.nf__p { margin-top: 20px; max-width: 520px; }
.nf__links { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 40px; }
@media (max-width: 900px) { .nf__h { font-size: 40px; line-height: 46px; } }
