/* seventy/seven — white page, black type, one signal orange.
   Layout: wide shared side margins; header = orange logo block + black nav whose items light up orange. */
:root {
  --paper: #ffffff;
  --ink: #141414;
  --ink-soft: #55504b;      /* warm grey, leans toward the orange */
  --orange: #ff5d24;        /* the logo's orange */
  --line: #ebe6e1;
  --tint: #fff4ef;          /* faint orange wash for table headers and chart panels */
  --font-body: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-logo: "Prata", Georgia, "Times New Roman", serif;
  --font-display: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --inset: clamp(16px, 7vw, 120px);
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--inset));
  margin: 0 auto;
  padding-left: max(var(--inset), env(safe-area-inset-left, 0px));
  padding-right: max(var(--inset), env(safe-area-inset-right, 0px));
}

/* ---------- header ---------- */
.site-header {
  /* Cloudflare-style band: flat orange, a fine dot grid, a warm glow rising from the lower right */
  background-color: var(--orange);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.3px),
    radial-gradient(90% 160% at 82% 130%, rgba(255, 214, 150, 0.75), rgba(255, 170, 90, 0.25) 45%, transparent 70%);
  background-size: 12px 12px, 100% 100%;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-block: 18px;
}
.logo {
  display: inline-block; text-decoration: none; color: #fff;
  font: 400 50px/1.1 var(--font-logo); letter-spacing: -0.06em; white-space: nowrap;
}
.logo .slash { display: inline-block; margin: 0 0.03em; color: #fff; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #fff; text-decoration: none; font-size: 16px;
  padding: 9px 14px; border: 1.5px solid transparent;
  transition: border-color 140ms ease, color 140ms ease;
}
.nav a:hover, .nav a:focus-visible { color: #fff; border-color: #fff; outline: none; }
.nav a[aria-current="page"] { color: var(--ink); }

/* ---------- shared type ---------- */
.eyebrow {
  margin: 0; color: var(--orange); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; text-wrap: balance; font-family: var(--font-display); font-weight: 400; }
h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; }
.accent { color: var(--orange); }
.lede { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; max-width: 34em; margin: 0; }
.body { max-width: 40em; margin: 0; }
/* justified body copy on the strategy page */
.lede, .body, .notes p, .caption, .footnote { text-align: justify; text-justify: inter-word; hyphens: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: transparent; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 16px; padding: 15px 22px;
  border: 1.5px solid var(--orange);
  transition: color 140ms ease, box-shadow 140ms ease;
}
.btn .arrow { color: var(--orange); }
.btn:hover { box-shadow: inset 0 0 0 1.5px var(--orange); }
.btn .arrow { transition: transform 140ms ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.solid { background: var(--orange); color: #fff; }
.btn.solid .arrow { color: #fff; }
.btn.solid:hover { box-shadow: none; }

main { display: block; }
section { padding-block: clamp(48px, 7vw, 96px); }

/* ---------- home ---------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero-copy { display: grid; gap: 28px; min-width: 0; }
.hero-figure { margin: 0; min-width: 0; }
/* the spiral builds itself once: golden rectangles outer to inner, then the curve grows from the pole */
.spiral { width: 100%; height: auto; display: block; overflow: visible; }
.spiral .sq { opacity: 1; animation: sq-in 500ms ease-out both; animation-delay: calc(var(--i) * 160ms); }
.spiral .pole { animation: sq-in 400ms ease-out 1.5s both; }
.spiral .sp { stroke-dasharray: 1; stroke-dashoffset: 0; animation: sp-draw 3.4s cubic-bezier(.45,0,.2,1) 1.7s both; }
@keyframes sq-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.hero-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }

/* ---------- strategy ---------- */
.page-head { display: grid; gap: 18px; padding-bottom: 0; }
.tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
  border-bottom: 1px solid var(--line);
}
.tab {
  appearance: none; background: none; cursor: pointer;
  font: 400 clamp(18px, 1.8vw, 22px) var(--font-display); color: var(--ink);
  padding: 14px 20px; border: 1.5px solid var(--line); border-bottom: 0; margin-bottom: -1px;
  transition: border-color 140ms ease, color 140ms ease;
}
.tab:hover { border-color: var(--orange); }
.tab[aria-selected="true"] { border-color: var(--orange); color: var(--orange); background: var(--paper); box-shadow: inset 0 3px 0 var(--orange); }

.overview { padding-top: 40px; padding-bottom: 8px; }

.kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0;
}
.kpi { background: var(--paper); padding: 20px 18px; display: grid; gap: 4px; min-width: 0; }
.kpi dt { font-size: 13px; color: var(--ink-soft); }
.kpi dd { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); color: var(--orange); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .vs { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.block { display: grid; gap: 18px; min-width: 0; }
.panel-stack { display: grid; gap: clamp(48px, 6vw, 80px); }
.chart-panel {
  background: var(--tint); border-top: 3px solid var(--orange);
  padding: clamp(16px, 3vw, 40px); display: grid; gap: 18px; min-width: 0;
}
.chart-panel .figure { margin: 0; background: #fff; padding: clamp(8px, 2vw, 24px); }
.chart-panel .figure img { width: 100%; }
.chart-panel .figure.tall { max-width: 1040px; }
.caption { font-size: 14px; color: var(--ink-soft); margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 18px; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--tint); font-weight: 700; font-size: inherit; border-bottom: 2px solid var(--orange); }
tbody th { font-weight: 400; font-size: inherit; }
td.wrap-cell { white-space: normal; text-align: right; min-width: 14em; }
td.pos { color: var(--orange); }
td.year, th.year { font-weight: 700; }
.monthly { font-size: 17px; }
.monthly th, .monthly td { padding: 11px 10px; }
.stats-table { max-width: 860px; }
.footnote { font-size: 13px; color: var(--ink-soft); margin: 0; }

.notes { display: grid; gap: 14px; max-width: 46em; }
.notes p { margin: 0; }
.italic-notes p { font-style: italic; }
.notes .strong { font-weight: 700; }

/* ---------- contact ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact h1 em { font-style: italic; color: var(--orange); }
form { display: grid; gap: 16px; min-width: 0; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
input, textarea {
  font: 15px/1.4 var(--font-body); color: var(--ink); background: #fff;
  border: 1px solid #cfc8c1; border-radius: 2px; padding: 12px 12px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
textarea { min-height: 150px; resize: vertical; }
form .btn { justify-self: start; border: 0; cursor: pointer; font-family: var(--font-body); }
.form-status { font-size: 14px; margin: 0; min-height: 1.4em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1.5px solid var(--orange); height: 48px; }

@media (max-width: 860px) {
  .hero .wrap, .two-col, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-figure { max-width: 520px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .logo { font-size: 34px; }
  table { font-size: 16px; }
  .monthly { font-size: 15px; }
  .site-header .wrap { gap: 12px; }
  .nav a { padding: 8px 10px; font-size: 15px; }
  .btn { width: 100%; justify-content: space-between; }
  form .btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .spiral .sq, .spiral .pole, .spiral .sp { animation: none !important; }
}

/* ---------- enquiries block (landing variant) ---------- */
.enquiries { display: grid; gap: 6px; margin-top: 24px; }
.enquiries h2 { color: var(--orange); }
.enquiries .email { font-size: 20px; user-select: all; }

/* ---------- black look, chosen on the landing ---------- */
/* strategy page header: same paper, dot grid and logo as the homepage */
:root[data-look="black"] .site-header {
  background-color: #fff;
  background-image: radial-gradient(rgba(20, 20, 20, .16) 1px, transparent 1.3px);
  background-size: 16px 16px;
  border-bottom: 1px solid var(--line);
}
:root[data-look="black"] .logo { color: var(--ink); }
:root[data-look="black"] .logo .slash { color: var(--orange); }
:root[data-look="black"] .nav a { color: var(--ink); }
:root[data-look="black"] .nav a:hover, :root[data-look="black"] .nav a:focus-visible { color: var(--orange); border-color: var(--orange); }
