:root {
  --bg: #F7F6F2;
  --ink: #254456;
  --accent: #ED6D4E;
  /* text-safe coral: 4.9:1 on the background (WCAG AA); #ED6D4E is for decoration only */
  --accent-text: #B8452A;
  --muted: #5C6F7B;
  --glass: rgba(247, 246, 242, 0.72);
  /* Apple-style: critically damped, no overshoot, for UI that just appears */
  --ease-settle: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px;
  background: var(--ink); color: #fff;
  padding: 8px 12px; z-index: 10;
}

/* Floating translucent chrome: content scrolls underneath it */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand img { display: block; height: 52px; width: auto; }
.slogan {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em; /* small text: slightly open for legibility */
}

main { display: block; }

.intro { padding: 72px 0 56px; }

/* Display type: tight leading and negative tracking as the size grows */
h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 32px;
}
.lead {
  max-width: 34em;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0;
}
.lead em { color: var(--accent-text); font-style: italic; }

/* Stripes draw in from their anchor point, like a material arriving */
.stripes { width: 110px; height: 40px; margin: 0 0 56px; }
.stripes svg {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 0 100%;
}

.carbon { max-width: 36em; padding-bottom: 96px; }
h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
}
h2 a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat;
  transition: background-size 320ms var(--ease-settle);
}
h2 a:hover,
h2 a:focus-visible { background-size: 100% 3px; }
.carbon p { margin: 0 0 16px; }

.carbon-page .more { font-size: 17px; color: var(--muted); margin-top: 28px; }

.site-footer { padding: 48px 0 0; }
.contact {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  font-size: 15px;
  color: var(--muted);
}
.wordmark { max-width: 1080px; margin: 32px auto 0; padding: 0 16px; }
.wordmark img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

/* Entrance: starts from the current (hidden) state and settles, no overshoot */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.intro h1 { animation: rise 640ms var(--ease-settle) both; }
.intro .lead { animation: rise 640ms var(--ease-settle) 90ms both; }
.stripes svg { animation: grow 700ms var(--ease-settle) 220ms both; }
.carbon-page h1 { animation: rise 640ms var(--ease-settle) both; }
.carbon-page .lead { animation: rise 640ms var(--ease-settle) 90ms both; }
.carbon-page .more { animation: rise 640ms var(--ease-settle) 160ms both; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .brand img { height: 44px; }
  .intro { padding: 48px 0 40px; }
  .stripes { margin-bottom: 40px; }
}

/* Reduced transparency: solid chrome, no blur */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Reduced motion: keep the content, drop the movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- v3: the sentence is the layout ---- */
.hero-sentence {
  font-size: clamp(44px, 10.5vw, 168px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 40px;
  max-width: 100%;
}
.hero-sentence .mark {
  display: inline-block;
  height: 0.62em;
  width: auto;
  vertical-align: baseline;
  margin: 0 0.06em 0 0.02em;
}
.intro { padding: 96px 0 72px; }
.intro .lead { margin-top: 0; }

/* colour chapter: the carbon section is a full field in the ink colour */
.chapter {
  background: var(--ink);
  color: var(--bg);
  margin: 0;
  padding: 96px 16px 120px;
}
.chapter .wrap { padding: 0; }
.chapter h2 { color: var(--bg); }
.chapter h2 a { background-image: linear-gradient(var(--accent), var(--accent)); }
.chapter p { color: var(--bg); max-width: 36em; margin: 0 0 16px; }
.chapter .inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.chapter .inner > * { max-width: 36em; }

@media (min-width: 1081px) {
  .chapter { margin: 0; }
}

@media (max-width: 600px) {
  .hero-sentence { font-size: 15vw; line-height: 1.16; margin-bottom: 28px; }
  .intro { padding: 56px 0 48px; }
  .chapter { padding: 64px 0 80px; }
}

@keyframes rise-inline { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-sentence { animation: rise 720ms var(--ease-settle) both; }

/* v3.3: the question mark is set in the text-safe coral, in the same face as the headline */
.q-accent { color: var(--accent); }
