/* Local economic prosperity: Studio Zao microsite.
   Colours, fonts and spacing follow the Create East Sussex site
   (create-east-sussex.studiozao.com): near-black and greys on white,
   Studio Zao red as the only colour. Archivo for headings, Satoshi for
   everything else. */

:root {
  --white: #ffffff;
  --paper: #ffffff;
  --paper-2: #f4f4f5;
  --ink: #111111;
  --ink-2: #3f3f46;
  --ink-3: #6b6b72;
  --line: rgba(17, 17, 17, 0.14);
  --line-strong: rgba(17, 17, 17, 0.28);
  --red: #e42544;
  --red-hover: #c51d38;
  --on-dark-dim: rgba(255, 255, 255, 0.72);

  --ph-bg: #fff1c2;
  --ph-line: #c98a00;

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap-max: 1280px;
  --wrap-pad: clamp(1.25rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 1200px) { :root { --wrap-max: 1400px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap-max); margin: 0 auto; padding-inline: var(--wrap-pad); }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

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

/* Placeholders: kept visible on purpose until real content arrives */
.ph {
  background: var(--ph-bg);
  border-bottom: 2px dashed var(--ph-line);
  padding: 0 3px;
  color: #5a3d00;
  font-weight: 500;
  font-style: normal;
}

/* Headings: the only place the display face appears */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-variation-settings: "wdth" 105;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 4.75rem; gap: 16px; }
.brand img { height: 35px; width: auto; }
nav { display: flex; align-items: center; gap: 32px; }
nav a {
  color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
nav a:hover { color: var(--red); }
@media (max-width: 860px) { nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 1.0625rem;
  background: var(--red); color: #fff; padding: 15px 32px; border-radius: 999px;
  border: 2px solid var(--red); transition: background .2s var(--ease-out), border-color .2s var(--ease-out), color .2s;
  letter-spacing: 0; text-transform: none;
}
.btn:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; }
nav .btn { font-size: 0.9rem; padding: 9px 20px; color: #fff; letter-spacing: 0; text-transform: none; }
nav .btn:hover { color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Hero */
.hero { padding: 112px 0 104px; border-bottom: 1px solid var(--line); }
.label {
  display: inline-block; margin: 0 0 28px;
  background: var(--red); color: #fff;
  font: 700 0.75rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 14px;
}
.label a { color: #fff; text-decoration: none; }
h1 { font-size: clamp(3rem, 9vw, 8rem); max-width: 13ch; font-weight: 700; }
.lede { font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); max-width: 56ch; color: var(--ink-2); margin: 32px 0 0; }
.hero-case { padding: 88px 0 56px; }
.hero-case h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); max-width: 18ch; }

/* Sections */
.section { padding: 112px 0; }
.section.tint { background: var(--paper-2); }
h2 { font-size: clamp(2rem, 4.8vw, 3.75rem); }
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 24px; } .section { padding: 72px 0; } .hero { padding: 72px 0; } }
.big { font-size: clamp(1.15rem, 1.5vw, 1.375rem); line-height: 1.55; color: var(--ink); margin: 0 0 20px; }
.split p { margin: 0 0 16px; max-width: 66ch; }
.small { font-size: .9375rem; }

.places { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.places li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 16px; font-weight: 500; font-size: .9375rem; color: var(--ink); }

/* How we work */
.how { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; counter-reset: how; }
.how li { counter-increment: how; border-top: 1px solid var(--line-strong); padding-top: 20px; position: relative; }
.how li::after { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; background: var(--red); }
.how li::before { content: "0" counter(how); font: 700 .8rem var(--body); color: var(--red); letter-spacing: .12em; }
.how h3 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); margin: 10px 0; }
.how p { margin: 0; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .how { grid-template-columns: 1fr; gap: 32px; } }

/* Strands connection list */
.links { list-style: none; padding: 0; margin: 8px 0 24px; }
.links li { display: grid; grid-template-columns: 7.5rem 1.5rem 1fr; gap: 8px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.links li:first-child { border-top: 1px solid var(--line); }
.from { font-weight: 700; color: var(--red); text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; }
.arrow { color: var(--ink-3); }
@media (max-width: 480px) { .links li { grid-template-columns: 1fr; gap: 2px; } .arrow { display: none; } }

/* Strands and cards */
.strand { margin-top: 72px; }
.strand-head { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 16px; max-width: 820px; }
.strand-head .num { grid-row: span 2; margin: 0; font: 700 1.75rem/1.1 var(--display); color: var(--red); }
.strand-head h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.strand-head p:last-child { margin: 10px 0 0; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .strand-head { grid-template-columns: 1fr; } .strand-head .num { grid-row: auto; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 32px; display: flex; flex-direction: column; gap: 14px; position: relative;
  transition: box-shadow .3s var(--ease-out);
}
.card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 110px; height: 4px; background: var(--red); transition: width .4s var(--ease-out); }
.card:hover { box-shadow: 0 18px 40px -28px rgba(17,17,17,.45); }
.card:hover::before { width: calc(100% + 2px); }
.card h4 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
.card h4 a { color: var(--ink); text-decoration: none; }
.card h4 a:hover { color: var(--red); }
.card dl { margin: 0; display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.card dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--red); margin-top: 10px; }
.card dd { margin: 0; }
.proof { margin: 0; padding: 14px 16px; border-left: 3px solid var(--red); background: var(--paper-2); font-style: italic; }
p.proof { font-style: normal; }
.k { display: block; font: 700 .72rem var(--body); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); font-style: normal; margin-bottom: 2px; }
.ext { font-weight: 700; color: var(--red); }
.more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--ink); padding-top: 8px; }
.more:hover { color: var(--red); }

/* Case page */
.case { max-width: 800px; }
.case h2 { font-size: clamp(1.4rem, 2.2vw, 1.875rem); margin-top: 48px; }
.case h2:first-child { margin-top: 0; }
.case p { font-size: 1.15rem; margin: 12px 0 0; }
.pull { margin: 16px 0 0; font: 500 1.4rem/1.45 var(--body); color: var(--ink); border-left: 4px solid var(--red); padding-left: 20px; }
.back { margin-top: 56px; }
.back a { font-weight: 700; color: var(--ink); }

/* CTA band */
.cta { background: var(--ink); color: #fff; padding: 112px 0; }
.cta h2 { color: #fff; }
.cta .lede { color: var(--on-dark-dim); }
.cta .small { margin-top: 20px; color: var(--on-dark-dim); }
.ph-note { margin: 16px 0 0; font-size: .9375rem; color: var(--on-dark-dim); }

/* Footer */
.site-footer { background: var(--white); color: var(--ink-2); padding: 40px 0; font-size: .9375rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); font-weight: 500; }
.site-footer strong { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.foot p { margin: 0; }

/* Reveal: content is visible without JS; only animates when JS is on */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card::before { transition: none; }
}
