/* Helios design system — editorial (doe.so language) */

@font-face { font-family: 'Merriweather'; src: url('Merriweather/Merriweather-Regular.woff2') format('woff2'), url('Merriweather/Merriweather-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('Merriweather/Merriweather-Bold.woff2') format('woff2'), url('Merriweather/Merriweather-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Merriweather'; src: url('Merriweather/Merriweather-Italic.woff2') format('woff2'), url('Merriweather/Merriweather-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }

/* Inter for display type, with its vertical metrics rebalanced (ascent 0.854em, descent 0.126em; the stock face is 0.969 / 0.241).
   The box a line of text owns is then centred on the capitals and no taller than the headings' tight line height, so a selection
   or a highlighter sits evenly above and below the words instead of losing its top to the line above. Baselines do not move. */
@font-face { font-family: 'Inter Display'; src: url('Inter/InterDisplay-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --gx: clamp(20px, 4.45vw, 96px);     /* horizontal page gutter: fluid, 64px at 1440 */
    --sec-y: 115px;  /* section vertical rhythm */
    --grad: #111111;
    --grad-soft: rgba(17,17,17,0.08);
    --page: #FCFBF5;
    --ink: #111111;
    --gray: #6f6f6f;
    --gray-light: #a3a3a3;
    --rule: #E6DDCF;
    --rule-dark: #D8CCBA;
    --card: #FBF8F2;
    --line: rgba(17,17,17,0.06);
    --serif: var(--ui);
    --mono: var(--ui);   /* labels are set in spaced serif capitals; the site uses no monospace */
    --orange: #111111;
    --orange-soft: rgba(17,17,17,0.08);
    --gray-dark: #6f6f6f;
    --ui: 'Merriweather', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --display: 'Inter Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: auto; background: var(--page); }

body {
    font-family: var(--sans);
    background: var(--page);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'ss01', 'cv11';
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--gx);
    background: rgba(252,251,245,0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { width: 52px; height: auto; }

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
}

.nav-center a, .nav-link {
    font-family: var(--ui);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: opacity 0.2s ease;
}

.nav-center a:hover, .nav-link:hover { opacity: 0.55; }
.nav-center a.on { opacity: 1; }

.nav-right { display: flex; align-items: center; gap: 22px; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ui);
    font-size: clamp(14px, 0.97vw, 18px);
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: clamp(12px, 0.83vw, 16px) clamp(20px, 1.4vw, 28px);
    border-radius: 2px;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { opacity: 0.8; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-dark); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { font-size: 15px; }
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }

/* ============ PAGE HEADER ============ */
.page-head {
    position: relative;
    padding: 180px var(--gx) 84px;
}


.page-head .eyebrow, .page-head .label { position: relative; }

.page-head h1 {
    position: relative;
    font-size: 108px;
    line-height: 1.0;
    letter-spacing: -0.05em;
    font-weight: 500;
    color: var(--ink);
    max-width: 12ch;
}

.page-head .lede {
    position: relative;
    margin-top: 26px;
    font-size: 17px;
    line-height: 1.55;
    color: var(--gray);
    max-width: 52ch;
}

.eyebrow, .label {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 26px;
}

/* ============ SECTIONS ============ */
section { border-top: 1px solid var(--rule); }

.sec { padding: var(--sec-y) var(--gx); }

.sec h2 {
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 500;
    max-width: 20ch;
    margin-bottom: 18px;
}

.sec .sub {
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--gray);
    max-width: 54ch;
}

.em { font-style: normal; color: var(--ink); }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--rule); padding: 64px var(--gx) 56px; background: var(--page); }

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px 32px;
}

.foot-copy p { font-size: 13px; line-height: 1.6; color: var(--gray); }

.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; color: var(--gray); margin-bottom: 16px; }

.foot-col a {
    display: block;
    font-family: var(--ui);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
    width: fit-content;
    transition: opacity 0.2s ease;
}

.foot-col a:hover { opacity: 0.55; }

.foot-bottom { margin: 56px 0 0; font-size: 13px; color: var(--gray); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-bottom .mono { font-size: 13px; }


/* ============ TOP BAR (dawn-style) ============
   Transparent bar; a taller, masked backdrop blur beneath it turns whatever scrolls under it into progressive glass. */
.top { position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 90; pointer-events: none; }
/* the header is a pane of glass: whatever scrolls beneath it is blurred, and the blur thins out toward its lower edge.
   No saturation boost: on the flat page colour that showed as a faint box behind the links. */
.top-blur { position: absolute; left: 0; right: 0; top: 0; height: 104px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 58%, transparent 100%); }
.top-in { position: relative; height: 100%; margin: 0 var(--gx); display: flex; align-items: center; justify-content: space-between; pointer-events: auto; }
.top-logo { display: flex; align-items: center; transform: translate(-34px, 28px); }
.top-logo img { width: clamp(112px, 9vw, 166px); height: auto; }
.top-links { display: flex; align-items: center; gap: 46px; transform: translateY(28px); }
.top-links a { font-family: var(--sans); font-size: clamp(18px, 1.5vw, 27px); font-weight: 500; letter-spacing: -0.015em; color: var(--ink); transition: opacity 0.2s ease; }
.top-links a:hover { opacity: 0.55; }
@media (max-width: 767px) {
    .top { height: 60px; } .top-logo { transform: translate(-10px, 16px); } .top-logo img { width: 90px; }
    .top-links { gap: 26px; transform: translateY(16px); } .top-links a { font-size: 17px; }
}
/* Phones: liquid glass under the logo and the links. It is solid page colour at its very top, so it runs straight on into the
   browser's own banner above the page, then turns to frosted glass (blurred, lightly tinted) behind the logo and links, and thins
   to nothing below them. .top-edge (added by helios.js) is a solid page-coloured strip pinned to the top edge: Safari 26 colours its
   banner from a fixed element there, so the banner takes exactly the page colour instead of a blur of whatever is scrolling under. */
.top-edge { display: none; }
@media (max-width: 767px) {
    .top-edge { display: block; position: fixed; top: 0; left: 0; right: 0; height: 8px; z-index: 91; background-color: #FCFBF5; pointer-events: none; }
    /* the frost under the logo and links (after wajo.ai): the page colour, solid at the top edge so it is one with the browser's
       banner, easing out (not in a straight line, which leaves dark type faintly showing right under the banner as a seam) to clear
       below the links; an 8px blur, faded out over its last part. At rest it is invisible; whatever scrolls up under the logo blurs,
       then dissolves completely before it reaches the banner. */
    .top-blur { height: 100px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
        background: linear-gradient(to bottom, rgba(252,251,245,1) 0%, rgba(252,251,245,1) 12%, rgba(252,251,245,0.97) 20%, rgba(252,251,245,0.9) 29%,
            rgba(252,251,245,0.79) 38%, rgba(252,251,245,0.64) 47%, rgba(252,251,245,0.48) 56%, rgba(252,251,245,0.33) 65%, rgba(252,251,245,0.2) 74%,
            rgba(252,251,245,0.1) 83%, rgba(252,251,245,0.03) 92%, rgba(252,251,245,0) 100%);
        -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
}

/* ============ TRANSITIONS ============ */
.reveal {
    opacity: 0.001;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.fade { opacity: 0.001; transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s; }
.fade.in { opacity: 1; }

.pop {
    opacity: 0.001;
    transform: translateY(10px);
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}
.pop.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .fade, .pop { opacity: 1; transform: none; transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 767px) {
    :root { --sec-y: 56px; }
    .page-head { padding: 116px var(--gx) 40px; }
    .page-head h1 { font-size: 44px; }
    footer { padding: 40px var(--gx) 36px; }
    .nav-center { display: none; }
    .nav-link { display: none; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}


/* ============ TECHNO PRIMITIVES ============ */
.corners { position: relative; }
.corners::before, .corners::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    border-color: rgba(17,17,17,0.45);
    border-style: solid;
    pointer-events: none;
}
.corners::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.corners::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.meta {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
}

.tick { display: inline-block; width: 6px; height: 6px; background: var(--ink); margin-right: 10px; vertical-align: 1px; }

::selection { background: var(--ink); color: var(--page); }
/* large type is set in the display cut (see the @font-face above); its own line heights are always given */
h1, h2, .phr, .say p, .done p { font-family: var(--display); }
/* The highlighter: a band from just above the capitals to just below the baseline, running exactly from the first letter's
   ink to the last letter's ink. helios.js measures each word's side bearings and tracking and sets --hl-x (where the ink
   starts inside the box) and --hl-w (how wide the ink is); --hl-p pads the box only where the last letter overhangs it. */
.hl { padding-right: var(--hl-p, 0); margin-right: calc(-1 * var(--hl-p, 0)); background-position: var(--hl-x, 0) 0 !important; }
.hl.lit { background-size: var(--hl-w, 100%) 100% !important; }

/* ============ SHEET + FOOTER FLAP ============
   Every page is a sheet with rounded bottom corners; the footer is pinned beneath it and revealed as the sheet lifts away. */
html { background: var(--page); }
.n-foot { font-family: var(--sans); color: var(--ink); }
body { background: #F1EEE3; }
.sheet { position: relative; z-index: 1; background: var(--page); border-radius: 0 0 120px 120px; box-shadow: 0 18px 48px rgba(17,17,17,0.08); }
.n-foot { position: sticky; bottom: 0; z-index: 0; background: #F1EEE3; border-top: none; padding: min(44px, 5vh) var(--gx) min(36px, 4vh); }
.foot-in { margin: 0 auto; }
.foot-mark { display: block; width: 100%; height: auto; max-height: 26vh; color: #EAE6D9; margin-bottom: -2%; }
/* the H has a little air inside its box: the wordmark moves out by that much, so its ink stands on the same left edge as the page */
@media (min-width: 768px) { .foot-mark { margin-left: -0.9vh; } }
/* the link columns sit at the right; the copyright and the socials sit under them, in the bottom-right corner */
.foot-row { position: relative; display: grid; grid-template-columns: max-content; justify-content: end; gap: 30px; margin-bottom: 72px; }
.foot-brand { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right; order: 2; justify-self: end; }
/* on wide screens the copyright and the socials sit in the footer's bottom-right corner */
@media (min-width: 768px) { .foot-brand { position: absolute; right: var(--gx); bottom: min(36px, 4vh); } .n-foot .foot-in { position: static; } .foot-row { position: static; } }
/* the links and the copyright under them stand out towards the right edge, past the page margin */
@media (min-width: 768px) { .foot-row { margin-right: calc(var(--gx) * -0.55); } .foot-brand { right: calc(var(--gx) * 0.45); } }
.foot-brand img { width: 30px; }
/* the copyright sits on the left of the two socials, on one line with them */
.foot-brand > div { display: flex; flex-direction: row; align-items: center; gap: 18px; } .soc { justify-content: center; }
.foot-brand .copy { font-size: clamp(14px, 0.97vw, 17px); font-weight: 500; color: #222; margin-bottom: 0; }
.soc { display: flex; gap: 16px; }
.soc a { color: #6B6B6B; transition: color 0.2s ease; } .soc a:hover { color: #111; }
.soc svg { width: 20px; height: 20px; display: block; } .soc svg path { fill: currentColor; }
.foot-links { display: grid; grid-template-columns: repeat(5, max-content); gap: 0 clamp(20px, 3vw, 48px); }
.foot-links a, .foot-links button { display: block; font-size: clamp(14px, 0.97vw, 17px); font-weight: 500; color: #222; padding: 9px 0; transition: opacity 0.2s ease; }
.foot-links button { width: 100%; font-family: inherit; letter-spacing: inherit; text-align: inherit; background: none; border: 0; cursor: pointer; }
.foot-links a:hover, .foot-links button:hover, .foot-links button[aria-expanded="true"] { opacity: 0.55; }
/* The small panel those two buttons open (helios.js): the page's paper and hairlines, a row per way to reach us */
.reach { position: fixed; z-index: 95; width: min(372px, calc(100vw - 32px)); padding: 22px; font-family: var(--sans); color: var(--ink); text-align: left; background: var(--page); border: 1px solid var(--rule-dark); border-radius: 4px; box-shadow: 0 18px 48px rgba(17,17,17,0.12);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.22s; }
.reach.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.reach-h { display: flex; align-items: center; gap: 10px; }
.reach-h img { width: 34px; height: auto; margin-left: -4px; }
.reach-h b { flex: 1; font-family: var(--ui); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.reach-x { display: flex; width: 28px; height: 28px; margin-right: -6px; align-items: center; justify-content: center; color: var(--gray); background: none; border: 0; cursor: pointer; transition: color 0.2s ease; } .reach-x:hover { color: var(--ink); }
.reach-x svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.reach p { margin: 10px 0 16px; font-size: 14.5px; line-height: 1.4; letter-spacing: -0.01em; color: var(--gray); }
.reach-r { display: flex; width: 100%; align-items: center; gap: 12px; height: 50px; padding: 0 14px; margin-top: 8px; font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: -0.012em; color: var(--ink); text-align: left; background: transparent; border: 1px solid var(--rule-dark); border-radius: 2px; cursor: pointer; transition: border-color 0.2s ease; }
.reach-r:hover { border-color: var(--ink); }
.reach-i { display: flex; flex: none; width: 18px; color: var(--gray); } .reach-i svg { display: block; width: 18px; height: 18px; } .reach-i svg path { fill: currentColor; } .reach-i svg[fill="none"] path { fill: none; }
.reach-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reach-do { display: flex; flex: none; align-items: center; gap: 6px; color: var(--gray); } .reach-do svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.reach-do em { font-size: 11px; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }
.n-foot .note { max-width: 66ch; font-size: 13px; line-height: 1.55; color: #8A8A8A; margin: 48px 0 0; }
@media (max-width: 767px) {
    .sheet { border-radius: 0 0 56px 56px; }
    /* Safari tints its bottom toolbar with any sticky element at the bottom edge, so on phones the footer simply follows the page
       (tucked up behind the sheet's rounded corners) and the body is page colour: the toolbar then matches the site */
    body { background: var(--page); }
    .n-foot { position: relative; margin-top: -56px; padding: 84px var(--gx) 22px; }
    .foot-mark { margin-bottom: 4px; }
    .foot-row { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 18px; margin-bottom: 0; }
    .foot-brand { align-items: flex-start; text-align: left; justify-self: start; }
    .foot-brand { min-height: 0; gap: 26px; transform: none; order: 2; }
    /* phones: every link, the copyright and the socials centred under the Buttons toggle */
    .foot-brand { align-items: center; text-align: center; justify-self: center; } .foot-links { text-align: center; }
    .foot-links { grid-template-columns: 1fr 1fr; gap: 0 24px; width: 100%; }
    .foot-links a, .foot-links button { padding: 6px 0; }
    .foot-links div:last-child { grid-column: 1 / -1; display: flex; justify-content: center; gap: 24px; } .foot-links div:last-child button { width: auto; }
    /* the links, copyright and socials fold away behind one "Buttons" toggle, centred near the bottom (helios.js adds it) */
    .foot-tog { display: flex; align-items: center; gap: 8px; margin: 44px auto 6px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(17,17,17,0.22); background: transparent; font: 500 15px/1 var(--sans); letter-spacing: -0.01em; color: #222; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .foot-tog svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s ease; }
    .n-foot.open .foot-tog svg { transform: rotate(180deg); }
    .n-foot.fold .foot-row { max-height: 0; opacity: 0; visibility: hidden; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0s linear 0.45s; }
    .n-foot.fold.open .foot-row { max-height: 420px; opacity: 1; visibility: visible; padding-top: 18px; transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease 0.08s, visibility 0s; }
}
.foot-tog { display: none; }
@media (max-width: 767px) { .n-foot.fold .foot-tog { display: flex; } }

/* Phones: long statement paragraphs read smaller, centred like the rest of the page */
@media (max-width: 599px) {
    body .say { text-align: center; padding-left: 22px; padding-right: 22px; }
    body .say p { font-size: 21px; line-height: 1.28; letter-spacing: -0.03em; }
    body .closing h2 { font-size: 34px; }
}
