/* grey-umbrella.com
   Layout language: Apple, from the Refero style reference (~/Downloads/applewebsite code): a light room,
   centred and stacked, led by type, pill buttons, hairline rules, no shadows, sections taking turns between
   white and frost, one dark band.
   Identity: the GREYUMBRELLA brand book (projects/Branding 101/greyumbrella): the wordmark, the umbrella mark,
   Geist for words and Geist Mono for data, the nodes & struts lattice, and one red. Apple's single blue switch
   becomes the brand's single red node: red marks where something acts, it never fills a surface or colours
   text (on white it is too light to read). */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --frost: #f5f5f7;
  --carbon: #1d1d1f;
  --ash: #6e6e73;
  --hairline: #d2d2d7;
  --onyx: #000000;
  --bone: #f5f5f7;
  --silver: #a1a1a6;
  --red: #f2513f;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 48px);
  --text: 980px;
  --wide: 1200px;
  --nav: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--carbon);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: var(--nav); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px;
  background: var(--carbon); color: var(--white); text-decoration: none;
  padding: 12px 18px; border-radius: 980px; font-size: 14px;
}
.skip:focus { top: 8px; }

/* ---- global nav: translucent bar, wordmark left, links right, hairline under ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-in {
  max-width: var(--wide); height: var(--nav); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 13px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 12px; letter-spacing: -0.01em; }
.nav-links a { text-decoration: none; opacity: 0.8; padding: 15px 0; min-width: 44px; text-align: center; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
@media (max-width: 734px) { .nav-links .wide-only { display: none; } }

/* ---- sections ---- */
.section { padding: clamp(80px, 10vw, 136px) var(--gutter); text-align: center; }
.frost { background: var(--frost); }
.white { background: var(--white); }
.inner { max-width: var(--text); margin: 0 auto; }
.wide { max-width: var(--wide); margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 18px;
}
.node { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }

.display { font-size: clamp(34px, 9vw, 88px); line-height: 1.04; letter-spacing: -0.038em; text-wrap: balance; }
.headline { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.032em; text-wrap: balance; }
.lede {
  font-size: clamp(21px, 2.2vw, 28px); line-height: 1.25; font-weight: 300; letter-spacing: -0.016em;
  max-width: 780px; margin: 22px auto 0; text-wrap: balance;
}
.body-lg { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--ash); max-width: 640px; margin: 22px auto 0; text-wrap: pretty; }
.nw, a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }

/* ---- pill buttons: one filled (the action, with the red node), one outlined ---- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px;
  font-size: 17px; line-height: 1.18; letter-spacing: -0.016em; text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.pill-solid { background: var(--carbon); color: var(--white); border: 1px solid var(--carbon); }
.pill-solid:hover { background: var(--onyx); }
.pill-line { background: transparent; color: var(--carbon); border: 1px solid var(--carbon); }
.pill-line:hover { background: var(--carbon); color: var(--white); }
.pill .node { width: 7px; height: 7px; }

/* ---- hero: headline, whisper line, two pills, then the mark shown like a product ---- */
.hero { padding-bottom: clamp(64px, 8vw, 104px); }
.hero-art { width: min(540px, 80vw); margin: clamp(56px, 8vw, 96px) auto 0; }

/* ---- who we are ---- */
.who .headline { max-width: 860px; margin: 0 auto; }

/* ---- the statement band: the book's statement page, on black, with the lattice rising ---- */
.statement {
  background: var(--onyx) url("/assets/img/lattice-statement.svg") no-repeat right bottom / cover;
  color: var(--bone);
  min-height: clamp(560px, 60vw, 820px);
  padding: clamp(96px, 12vw, 168px) var(--gutter) 0;
  text-align: center;
}
.statement h2 { font-size: clamp(44px, 7.6vw, 104px); line-height: 1.02; letter-spacing: -0.042em; text-wrap: balance; }

/* ---- what we do: a flat grid on the frost canvas, hairline struts, no cards ---- */
.groups { margin-top: clamp(48px, 6vw, 72px); text-align: left; }
.group + .group { margin-top: 56px; }
.group-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.grid { display: grid; grid-template-columns: 1fr; column-gap: 32px; }
.svc { border-top: 1px solid var(--hairline); padding: 24px 0 28px; }
.svc img { width: 32px; height: 32px; margin-bottom: 18px; }
.svc h4 { margin: 0; font-weight: 600; font-size: 19px; line-height: 1.26; letter-spacing: -0.02em; }
.svc p { margin-top: 8px; font-size: 15px; line-height: 1.47; color: var(--ash); text-wrap: pretty; }
@media (min-width: 735px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1069px) {
  .g4 { grid-template-columns: repeat(4, 1fr); }
  .g5 { grid-template-columns: repeat(5, 1fr); }
}

/* ---- how we work ---- */
.cols { display: grid; gap: 48px; margin-top: clamp(48px, 6vw, 72px); }
.col img { width: 36px; height: 36px; margin: 0 auto 18px; }
.col h3 { font-size: 21px; line-height: 1.24; letter-spacing: -0.02em; }
.col p { margin: 10px auto 0; max-width: 330px; color: var(--ash); text-wrap: pretty; }
@media (min-width: 735px) { .cols { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---- contact ---- */
.company { margin-top: 44px; font-family: var(--mono); font-size: 13px; line-height: 1.75; letter-spacing: 0; color: var(--ash); }

/* ---- footer: flat, typographic, hairline ---- */
.footer { background: var(--frost); color: var(--ash); font-size: 12px; line-height: 1.5; padding: 0 var(--gutter) 36px; }
.footer-in { max-width: var(--wide); margin: 0 auto; border-top: 1px solid var(--hairline); padding-top: 20px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-id { display: flex; align-items: center; gap: 10px; color: var(--carbon); font-weight: 600; }
.footer-id img { width: 24px; height: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer-links a { color: var(--carbon); text-decoration: none; padding: 13px 0; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer p { margin-top: 10px; }
.footer .mono { font-family: var(--mono); letter-spacing: 0; }

/* ---- legal pages: a readable column, Apple legal style ---- */
.legal { padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(72px, 9vw, 120px); }
.doc { max-width: 692px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.03em; }
.doc .updated { margin-top: 12px; font-size: 14px; color: var(--ash); }
.doc .intro { margin-top: 28px; font-size: 21px; line-height: 1.38; font-weight: 300; letter-spacing: -0.016em; }
.doc h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.doc p, .doc li { font-size: 17px; line-height: 1.53; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc address { margin-top: 14px; font-style: normal; font-family: var(--mono); font-size: 14px; line-height: 1.75; letter-spacing: 0; }
.text-link { text-decoration: underline; text-decoration-color: var(--ash); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color 0.2s; }
.text-link:hover { text-decoration-color: var(--red); }

/* ---- not found ---- */
.missing { min-height: calc(100vh - var(--nav) - 160px); display: flex; align-items: center; justify-content: center; }
