/* Oxbow — tokens from the brand kit (~/Desktop/oxbow-logo/README.md) */
:root {
  --graphite: #1F2022;
  --limestone: #F4F1EB;
  --stone: #D9D5CC;
  --oxide: #A4432C;
  --oxide-light: #D0765C;
  --white: #FFFFFF;

  --font: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --step-small: 0.9375rem;                                  /* 15px */
  --step-body: clamp(1rem, 0.96rem + 0.12vw, 1.0625rem);      /* 16–17px */
  --step-lead: clamp(1.1875rem, 1rem + 0.55vw, 1.5rem);       /* 19–24px */
  --step-head: clamp(1.875rem, 1.1rem + 2.4vw, 3.25rem);      /* 30–52px */
  --step-display: clamp(3rem, 0.4rem + 7.4vw, 7.5rem);        /* hero */

  --margin: clamp(1rem, 2.8vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --radius: 0px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--graphite); color: var(--limestone); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--oxide); color: var(--limestone); }
:focus-visible { outline: 3px solid var(--oxide-light); outline-offset: 3px; }
h1, h2, h3 { font-weight: inherit; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small { font-size: var(--step-small); line-height: 1.45; }
.lead { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.head { font-size: var(--step-head); line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.display { font-size: var(--step-display); line-height: 0.88; letter-spacing: -0.05em; font-weight: 800; }
.ink-oxide { color: var(--oxide); }
.split, .line { display: block; }
.sl-mask { padding-bottom: 0.14em; margin-bottom: -0.14em; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.875rem; padding: 0 1.25rem; border-radius: var(--radius); font-size: var(--step-small); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 220ms ease, color 220ms ease; will-change: transform; }
.button-light { background: var(--limestone); color: var(--graphite); }
.button-dark { background: var(--graphite); color: var(--limestone); }
.button-big { min-height: 3.75rem; padding: 0 2rem; font-size: var(--step-body); }
.button-small { min-height: 2.75rem; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em; transition: text-decoration-color 220ms ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .button-light:hover { background: var(--oxide-light); }
  .button-dark:hover { background: var(--oxide); }
}

/* ---------- the story: hero and statement over one live field ---------- */
.story { position: relative; }
.field { position: fixed; inset: 0; width: 100%; height: 100svh; z-index: 0; pointer-events: none; }
.areas, .deliver, .about, .foot { position: relative; z-index: 1; }
.story > header, .story > section { position: relative; z-index: 1; }

/* the opening: one sentence at a time, in the middle, while the field changes behind it */
.seq { position: relative; }
.seq-stage { min-height: 100svh; padding: 0 var(--margin); display: grid; grid-template-rows: auto 1fr; }
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; font-size: var(--step-small); }
.bar-logo img { width: 136px; height: auto; }
.bar-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.seq-lines { display: grid; gap: 3rem; place-content: center; justify-items: center; padding-block: 12vh; text-align: center; }
.seq-line { font-size: clamp(1.375rem, 1rem + 1.1vw, 2rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; max-width: 24ch; text-wrap: balance; }
.seq-brand { max-width: none; }
.seq-brand img { width: clamp(150px, 15vw, 220px); height: auto; }
.seq-under { max-width: 30ch; }
/* with the script running, the sentences share one place and take turns */
.js:not(.seq-static) .seq { height: 560svh; }
.js:not(.seq-static) .seq-stage { position: sticky; top: 0; height: 100svh; }
.js:not(.seq-static) .seq-lines { padding-block: 0; }
.js:not(.seq-static) .seq-lines > * { grid-area: 1 / 1; }
/* the sentences after the first wait hidden from the first paint; the script reveals them one at a time */
.js:not(.seq-static) .seq-line:not(.seq-brand) { visibility: hidden; }
/* while the particle mark is on screen, its words sit beneath it */
.js:not(.seq-static) .seq-brand { position: relative; top: 15vh; }
.js:not(.seq-static) .seq-under { position: relative; top: 15vh; }   /* the same place as the wordmark */
.seq .ink-oxide { color: var(--oxide-light); }


/* ---------- areas: two cards, each with its own drawing in points ---------- */
.areas { background: var(--graphite); padding: clamp(6rem, 14vh, 9rem) var(--margin); display: grid; gap: clamp(2.5rem, 6vh, 4rem); }
.areas-intro { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.areas-title { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; color: var(--limestone); }
.areas-sub { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; color: var(--stone); max-width: 34ch; }
.areas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); max-width: 72rem; width: 100%; margin-inline: auto; }
.area { border: 1px solid rgba(217, 213, 204, 0.22); padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 3rem) clamp(2rem, 4vw, 3rem); display: grid; align-content: start; justify-items: center; text-align: center; gap: 1.75rem; }
.area-art { width: 100%; max-width: 22rem; aspect-ratio: 4 / 3; }
.area-name { font-size: var(--step-lead); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(217, 213, 204, 0.22); width: 100%; }
.area-text { display: grid; gap: 1rem; max-width: 30rem; color: var(--stone); font-size: var(--step-body); line-height: 1.55; }
.area-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 30rem; }
.area-tags li { font-size: 0.8125rem; letter-spacing: 0.02em; color: var(--limestone); padding: 0.3rem 0.7rem; border: 1px solid rgba(208, 118, 92, 0.45); }

/* ---------- deliver: three levels, a tree in points, and the work at the chosen level ---------- */
.deliver { background: var(--graphite); padding: clamp(5rem, 12vh, 8rem) var(--margin); display: grid; gap: clamp(2.5rem, 6vh, 4rem); }
.deliver-intro { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.deliver-title { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.deliver-sub { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; color: var(--stone); max-width: 34ch; }
.deliver-body { display: grid; grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--gutter); align-items: center; max-width: 76rem; width: 100%; margin-inline: auto; }
.deliver-levels { display: grid; gap: 0; position: relative; padding-left: 1.25rem; }
.deliver-levels::before { content: ""; position: absolute; left: 0.28rem; top: 1.1rem; bottom: 1.1rem; width: 1px; background: rgba(217, 213, 204, 0.22); }
.level { all: unset; cursor: pointer; display: grid; gap: 0.15rem; padding: clamp(1.5rem, 6vh, 3.25rem) 0; position: relative; color: var(--stone); }
.level::before { content: ""; position: absolute; left: -1.25rem; top: 50%; translate: 0 -50%; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1px solid rgba(217, 213, 204, 0.5); background: var(--graphite); transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease; }
.level-name { font-weight: 600; color: var(--limestone); transition: color 240ms ease; }
.level-focus { font-size: var(--step-small); }
.level[aria-selected="true"] .level-name { color: var(--oxide-light); }
.level[aria-selected="true"]::before { background: var(--oxide-light); border-color: var(--oxide-light); box-shadow: 0 0 0 4px rgba(208, 118, 92, 0.18); }
.level:focus-visible { outline: 1px solid var(--oxide-light); outline-offset: 4px; }
.deliver-tree { width: 100%; aspect-ratio: 1 / 1; max-height: 26rem; }
.deliver-panel { border: 1px solid rgba(217, 213, 204, 0.22); background: rgba(244, 241, 235, 0.025); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.25rem; }
.panel-title { font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.panel-text { color: var(--stone); max-width: 38ch; line-height: 1.55; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(217, 213, 204, 0.22); }
.panel-label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.panel-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.panel-topics li { font-size: var(--step-small); padding: 0.75rem 0.9rem; border: 1px solid rgba(217, 213, 204, 0.22); line-height: 1.3; }
.panel-topics li::before { content: ""; display: inline-block; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--oxide-light); margin-right: 0.6rem; vertical-align: 0.15em; }
.deliver-panels { display: grid; }
/* every panel shares one cell, so the block keeps the height of the tallest and never moves */
.deliver-panel { grid-area: 1 / 1; }
.deliver-panel[hidden] { display: grid; visibility: hidden; }
.deliver-panel:not([hidden]) { animation: panel-in 520ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .deliver-panel:not([hidden]) { animation: none; } }
.deliver-note { text-align: center; color: var(--stone); font-size: var(--step-small); max-width: 46rem; margin-inline: auto; }

/* ---------- book: the calendar, loaded only when the reader gets near it ---------- */
.book { background: var(--graphite); padding: clamp(5rem, 12vh, 8rem) var(--margin) clamp(4rem, 10vh, 6rem); display: grid; gap: clamp(2rem, 5vh, 3rem); position: relative; z-index: 1; }
.book-intro { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.book-title { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.book-sub { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; color: var(--stone); }
.book-frame { width: 100%; max-width: 64rem; margin-inline: auto; border: 1px solid rgba(217, 213, 204, 0.22); }
.calendly-inline-widget { min-width: 320px; height: 700px; }

/* ---------- about: Federico in points, and the page's one contact button ---------- */
.about { background: var(--graphite); color: var(--limestone); padding: clamp(6rem, 14vh, 9rem) var(--margin) clamp(3rem, 8vh, 5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: 100svh; }
.about-portrait { grid-column: 2 / 6; max-width: 420px; width: 100%; justify-self: center; }
.about-portrait img { width: 100%; height: auto; }
.about-text { grid-column: 7 / 12; display: grid; gap: 2.5rem; justify-items: start; }
.about-cols { display: grid; gap: 1.5rem; max-width: 34rem; }
.about-cols h3 { font-weight: 700; margin-bottom: 0.4rem; }
.about-cols p { color: var(--stone); }

/* ---------- footer: one quiet line on the same ground as the section above ---------- */
.foot { background: var(--graphite); color: var(--stone); padding: 1.75rem var(--margin) 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem clamp(1.5rem, 4vw, 3rem); font-size: var(--step-small); }
.foot-logo img { width: 112px; height: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-right: auto; }
.foot-mail { color: var(--limestone); }
.foot-copy { color: var(--stone); }

/* while the intro is set up, the headline waits (never longer than the inline timeout) */
.js.is-loading .seq-brand { visibility: hidden; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
  .areas-grid { grid-template-columns: 1fr; max-width: 36rem; }
  .deliver-body { grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr); max-width: 44rem; }
  .deliver-panels { grid-column: 1 / -1; }
  .about-portrait { grid-column: 2 / 6; justify-self: center; }
  .about-text { grid-column: 1 / -1; margin-top: 3rem; }
}
@media (max-width: 760px) {
  :root { --step-display: 12.4vw; }
  .hide-phone { display: none; }
  .deliver-body { grid-template-columns: 1fr; }
  .deliver-levels { display: flex; padding-left: 0; border-bottom: 1px solid rgba(217, 213, 204, 0.22); }
  .deliver-levels::before { display: none; }
  .level { flex: 1; padding: 0.75rem 0.25rem 0.9rem; text-align: center; justify-items: center; }
  .level::before { left: 50%; top: auto; bottom: -0.3rem; translate: -50% 0; }
  .deliver-tree { max-height: 16rem; aspect-ratio: 4 / 3; }
  .panel-topics { grid-template-columns: 1fr; }
  .bar .button { min-height: 2.75rem; padding: 0 0.9rem; }
  .bar-logo img { width: 122px; }
  .about-portrait { grid-column: 1 / -1; width: 70%; justify-self: center; }
  .about-cols { grid-template-columns: 1fr; gap: 2rem; }
}
