@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/site/fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/site/fonts/source-sans-3-latin.woff2") format("woff2");
}

/* Carbon Relay brand palette (Harbour direction v1.1): the only colours on the site. */
:root {
  --graphite: #252C35;
  --chalk: #F6F5F0;
  --harbour: #58749A;
  --haze: #DCE4EE;
  --stone: #938374;
  --spark: #DE806A;
  --rule-light: rgba(147,131,116,.4);
  --rule-dark: rgba(220,228,238,.2);
  --display: "Manrope", Arial, sans-serif;
  --sans: "Source Sans 3", Arial, sans-serif;
  --radius: 0;
  --wrap: 1280px;
}

html { background: var(--graphite); }
body { margin: 0; background: var(--chalk); color: var(--graphite); }
#cr-root { font-family: var(--sans); font-weight: 400; color: var(--graphite); background: var(--chalk); overflow: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--graphite); text-decoration: none; }
a:hover { color: var(--harbour); }
footer a:hover, .on-dark a:hover { color: var(--chalk) !important; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.02em; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Surfaces: flat fills only. */
.tx-carbon { background: var(--graphite); }
.tx-harbour { background: var(--harbour); }
.tx-limestone { background: var(--haze); }
.bg-pale { background: var(--chalk); }
.bg-limestone { background: var(--haze); }
.on-dark { color: var(--haze); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--chalk); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sec { padding: 136px 0; }
.sec-rule { border-top: 1px solid var(--rule-light); }

/* Type: Source Sans 3 for labels and data, Manrope for headlines. */
.mono { font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.eb { margin: 0; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--graphite); }
.on-dark .eb, .eb.on-carbon { color: var(--haze); }
.h2 { margin: 20px 0 0; font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; color: var(--graphite); text-wrap: balance; }
.on-dark .h2 { color: var(--chalk); }
.lead { margin: 0; font-size: 18px; line-height: 27px; font-weight: 400; color: var(--graphite); }
.on-dark .lead { color: var(--haze); }
.body { font-size: 18px; line-height: 27px; font-weight: 400; color: var(--graphite); }
.card-t { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--graphite); }
.card-p { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 400; color: var(--graphite); }

/* Wordmark: Manrope Bold, sentence case, one line. */
.wordmark { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }

/* Motion */
@keyframes cr-rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes cr-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cr-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes cr-draw { to { stroke-dashoffset: 0; } }
.cr-rise { animation: cr-rise 1.6s .2s cubic-bezier(.16,.84,.3,1) both; }
.cr-up1 { animation: cr-up 1s .9s cubic-bezier(.2,.7,.2,1) both; }
.cr-up2 { animation: cr-up 1s 1.15s cubic-bezier(.2,.7,.2,1) both; }
.cr-bob { animation: cr-bob 2.4s ease-in-out infinite; }

/* Hero: connected frames, drawn one after another. */
.hero-grid { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 64px; padding-top: 140px; padding-bottom: 200px; box-sizing: border-box; }
.hero-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.hero-frames { flex: 0 1 380px; min-width: 0; width: 100%; max-width: 380px; overflow: visible; }
.hero-frames rect { fill: none; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cr-draw 1.4s cubic-bezier(.65,.05,.25,1) forwards; }
.hero-frames rect:nth-child(1) { stroke: var(--harbour); animation-delay: .4s; }
.hero-frames rect:nth-child(2) { stroke: var(--haze); animation-delay: .8s; }
.hero-frames rect:nth-child(3) { stroke: var(--stone); animation-delay: 1.2s; }
.spark-rule { width: 88px; height: 4px; background: var(--spark); }

/* Buttons and links */
.cr-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--harbour); color: var(--chalk); font-family: var(--sans); font-size: 18px; font-weight: 600; padding: 14px 22px; border-radius: var(--radius); border: 1px solid var(--harbour); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.cr-btn:hover { background: var(--graphite); border-color: var(--graphite); color: var(--chalk); }
.cr-btn-ghost { display: inline-flex; align-items: center; border: 1px solid var(--graphite); color: var(--graphite); font-size: 18px; font-weight: 600; padding: 14px 22px; border-radius: var(--radius); transition: background .25s, color .25s, border-color .25s; }
.cr-btn-ghost:hover { background: var(--graphite); color: var(--chalk); border-color: var(--graphite); }
.cr-link { background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s; }
.cr-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Cards */
.cr-card { background: var(--chalk); border: 1px solid var(--rule-light); border-radius: var(--radius); transition: border-color .3s, background .3s; }
.cr-card:hover { border-color: var(--harbour); }
.cr-card svg { stroke: var(--harbour); }
.gate-card, .gate-card:hover { border-top: 3px solid var(--harbour); }

.cr-fade { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 1.4s cubic-bezier(.2,.7,.2,1); }
.cr-arrow { width: 48px; height: 48px; border-radius: var(--radius); border: 1px solid var(--graphite); background: transparent; color: var(--graphite); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.cr-arrow:hover { background: var(--graphite); color: var(--chalk); }
.cr-in { font: 400 18px var(--sans); color: var(--graphite); background: var(--chalk); border: 1px solid var(--stone); border-radius: var(--radius); padding: 12px 14px; min-height: 44px; box-sizing: border-box; transition: border-color .25s; }
.cr-in:focus { outline: none; border-color: var(--harbour); box-shadow: inset 0 0 0 1px var(--harbour); }
:focus-visible { outline: 2px solid var(--harbour); outline-offset: 2px; }
.on-dark :focus-visible, footer :focus-visible { outline-color: var(--haze); }

/* Header */
.cr-hdr { transition: background .4s, border-color .4s; background: transparent; border-bottom: 1px solid var(--rule-dark); }
.cr-hdr .hdr-ink { color: var(--chalk); }
.cr-hdr .hdr-btn { background: transparent; color: var(--chalk); border: 1px solid rgba(246,245,240,.5); }
.cr-hdr.is-scrolled { background: rgba(246,245,240,.95); border-bottom: 1px solid var(--rule-light); backdrop-filter: blur(12px); }
.cr-hdr.is-scrolled .hdr-ink { color: var(--graphite); }
.cr-hdr.is-scrolled .hdr-btn { background: var(--harbour); color: var(--chalk); border: 1px solid var(--harbour); }
.cr-hdr .hdr-btn:hover { background: var(--chalk); color: var(--graphite); }
.cr-hdr.is-scrolled .hdr-btn:hover { background: var(--graphite); border-color: var(--graphite); color: var(--chalk); }
.cr-hdr .hdr-signin:hover { opacity: .75; }

/* Stage tabs and progress panel */
.cr-tab { color: var(--graphite); }
.cr-tab .cr-tab-bar { width: 0; }
.cr-tab.is-active .cr-tab-bar { width: 100%; }
.strata-panel { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 4vw, 44px); box-sizing: border-box; }
.strata-cap { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); color: var(--chalk); letter-spacing: -.01em; text-transform: none; font-weight: 700; line-height: 1.2; }
.strata { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.stratum { display: grid; grid-template-columns: 1fr minmax(96px, 30%); align-items: center; gap: 16px; }
.stratum b { display: block; height: 28px; background: var(--haze); transform-origin: left center; transform: scaleX(0); transition: transform 1s cubic-bezier(.65,.05,.25,1), background .4s; }
.stratum span { font-size: 13px; color: var(--haze); opacity: .4; transition: opacity .4s; }
.stratum.is-laid b { transform: scaleX(1); }
.stratum.is-laid span { opacity: 1; }
.stratum[data-step="0"] b { background: var(--stone); }
.stratum[data-step="1"] b { background: var(--haze); opacity: .5; }
.stratum[data-step="2"] b { background: var(--haze); opacity: .7; }
.stratum[data-step="3"] b { background: var(--haze); opacity: .85; }
.stratum[data-step="4"] b { background: var(--haze); }
.stratum.is-current b { background: var(--harbour); opacity: 1; }
.stratum.is-current span { color: var(--chalk); }

/* Record stack (The challenge) */
.rec { display: flex; flex-direction: column-reverse; gap: 6px; }
.rec-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--haze); color: var(--graphite); font-size: 13px; }
.rec-row:nth-child(2n) { background: transparent; color: var(--haze); border: 1px solid var(--rule-dark); }
.rec-row.is-top { border-top: 3px solid var(--spark); }

/* Accelerate section */
.acc-row { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: stretch; margin-top: 64px; }
.acc-card { border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; }
.acc-card .mono { font-size: 14px; }
.acc-num { font-family: var(--display) !important; font-size: 32px !important; font-weight: 700 !important; letter-spacing: -.02em !important; }
.acc-card p { margin: 0; font-size: 17px; line-height: 1.6; font-weight: 400; }
.acc-lt { background: var(--haze); color: var(--graphite); }
.acc-lt .mono { color: var(--graphite); }
.acc-lt .acc-num { color: var(--harbour); }
.acc-dk { color: var(--chalk); border-top: 3px solid var(--harbour); }
.acc-dk .mono, .acc-dk p { color: var(--chalk); }
.acc-arrow { display: flex; align-items: center; justify-content: center; }
.acc-arrow svg { stroke: var(--harbour); }
@media (max-width: 900px) {
  .acc-row { grid-template-columns: 1fr; grid-template-rows: auto; }
  .acc-arrow { height: 44px; }
  .acc-arrow svg { transform: rotate(90deg); }
}

/* Chain (data room) */
.chain-i { padding: 18px 16px; border: 1px solid var(--rule-light); border-radius: var(--radius); font-size: 16px; font-weight: 600; color: var(--graphite); background: var(--chalk); }
.chain-end { padding: 18px 16px; border-radius: var(--radius); font-size: 16px; font-weight: 600; color: var(--chalk); background: var(--graphite); border-top: 3px solid var(--harbour); }

.chip { font-size: 13px; padding: 9px 14px; border: 1px solid var(--rule-dark); border-radius: var(--radius); color: var(--haze); }
.photo-cool { filter: saturate(.45) contrast(1.02); }

@media (max-width: 960px) { .hdr-nav { display: none !important; } }
@media (max-width: 720px) {
  .hero-grid { padding-top: 120px; padding-bottom: 180px; gap: 48px; }
  .hero-frames { max-width: 240px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 96px 0; }
  .hdr-signin { display: none; }
  .cap { border-right: 0 !important; padding: 14px 0 !important; }
  .stratum b { height: 18px; }
  .strata-panel { aspect-ratio: auto; min-height: 380px; }
  .stratum { grid-template-columns: 1fr 118px; gap: 12px; }
  .stratum span { font-size: 12px; letter-spacing: .03em; }
  .hdr-wm { font-size: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero-frames rect { stroke-dashoffset: 0; }
}
