/* georgebeecroft.com */

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

:root {
  --bg: #F7F6F2;
  --ink: #151515;
  --muted: #5E5D58;
  --rule: rgba(21, 21, 21, 0.14);
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --gap: clamp(16px, 2.4vw, 32px);
  --section: clamp(96px, 12vw, 160px);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
p, li, dt, blockquote { text-wrap: pretty; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--gap);
}

@media (min-width: 48rem) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ---------- Type ---------- */

h1 {
  /* Height-aware so the hero CTA stays above the fold on short laptop screens. */
  font-size: clamp(2.75rem, min(1.35rem + 5.8vw, 10.5vh), 6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 520;
  max-width: 12ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.eyebrow,
.section-num,
.proof-label,
.case-index {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lead {
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 34rem;
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  min-height: 3.5rem;
  padding: 0 1.75rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 2px;
}
.button:hover { background: #333331; }
.button:focus-visible { outline-offset: 4px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Header ---------- */

.site-header { padding-block: 20px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: clamp(18px, 3vw, 32px);
  font-size: 0.9375rem;
}
.nav-list a,
.header-inner .wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.nav-list a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(32px, min(7.5vw, 8vh), 108px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

.hero .eyebrow { margin-bottom: clamp(12px, min(2.5vw, 2.5vh), 28px); }

.hero-foot {
  margin-top: clamp(28px, min(5vw, 5vh), 72px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  row-gap: 32px;
}

/* Scope list repeats the Services section, so it only appears where there is room beside the copy. */
.hero-scope { display: none; }

@media (min-width: 48rem) {
  .hero-scope {
    display: block;
    grid-column: 1 / 5;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--muted);
  }
  .hero-copy  { grid-column: 6 / 13; }
}

/* ---------- Social proof ---------- */

.proof-row {
  padding-block: 32px;
  border-top: 1px solid var(--rule);
  row-gap: 20px;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px var(--gap);
}

.cred-name {
  display: block;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.cred-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Client logos: pre-processed to a single ink colour; heights set per logo for optical balance. */
.logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px var(--gap);
  align-items: center;
}
.logos li {
  display: flex;
  align-items: center;
  min-height: 52px;
}
.logos img {
  height: var(--logo-h, 32px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  opacity: 0.85;
}

.reviews {
  display: grid;
  gap: 32px var(--gap);
}
.review { margin: 0; }
.review blockquote {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.005em;
  max-width: 34rem;
}
.review figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .proof-label { grid-column: 1 / 4; padding-top: 2px; }
  .credentials,
  .logos,
  .reviews { grid-column: 4 / 13; }
}

@media (min-width: 64rem) {
  .credentials,
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Sections ---------- */

/* Rules sit on the container so every hairline on the page shares the same 1120px measure. */
.section > .container {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}

.section-num { margin-bottom: 16px; }

.section-intro {
  margin-top: 20px;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .section-num  { grid-column: 1 / 4; margin-bottom: 0; padding-top: 0.75em; }
  .section-head { grid-column: 4 / 13; }
}

/* ---------- Selected work ---------- */

.cases {
  grid-column: 1 / -1;
  margin-top: clamp(48px, 6vw, 80px);
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--gap);
  row-gap: 20px;
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule);
}

.case-index { margin-bottom: 8px; }

.case-meta h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.case-tags {
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 47.99rem) {
  .case-tags { display: flex; flex-wrap: wrap; }
  .case-tags li + li::before { content: "·"; margin-inline: 0.45em; }
}

.case-summary {
  max-width: 40rem;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* Key figures: number on top, label underneath (dt stays first in the markup for screen readers). */
.figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px var(--gap);
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.figures > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 8px;
}
.figures dd {
  margin: 0;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.figures dt {
  max-width: 15rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted);
}

.case-details {
  display: grid;
  gap: 10px;
  max-width: 40rem;
  margin-top: 32px;
  color: var(--muted);
}
.case-details li {
  position: relative;
  padding-left: 1.25em;
}
.case-details li::before {
  content: "–";
  position: absolute;
  left: 0;
}

.pull-quote {
  max-width: 40rem;
  margin: 40px 0 0;
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 1px solid var(--ink);
}
.pull-quote blockquote {
  margin: 0;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.pull-quote figcaption {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (min-width: 48rem) {
  .case { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .case-meta { grid-column: 1 / 4; }
  .case-body { grid-column: 4 / 13; }
}

@media (min-width: 64rem) {
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .figures-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Services ---------- */

.services {
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--rule);
}

.service {
  display: grid;
  gap: 12px var(--gap);
  padding-block: 32px;
  border-bottom: 1px solid var(--rule);
}

.service p {
  color: var(--muted);
  max-width: 34rem;
}

@media (min-width: 48rem) {
  .services { grid-column: 4 / 13; }
}

@media (min-width: 64rem) {
  .service { grid-template-columns: 4fr 5fr; padding-block: 36px; }
}

/* ---------- About ---------- */

.about {
  display: grid;
  gap: 32px var(--gap);
  margin-top: clamp(40px, 5vw, 64px);
}

.portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}

.about-text { max-width: 36rem; }
.about-text p + p { margin-top: 1em; }
.about-text p:not(.about-lead) { color: var(--muted); }
.about-text p:last-child { margin-top: 1.25em; color: var(--ink); }
.about-text .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.about-lead {
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

@media (min-width: 48rem) {
  .about { grid-column: 4 / 13; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
  .portrait { width: 240px; height: 240px; }
}

/* ---------- Contact ---------- */

.contact-title {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.042em;
  max-width: 14ch;
}

/* TidyCal inline embed. The iframe sizes itself; min-height only reserves space while it loads. */
.booking {
  min-height: 500px;
  margin-top: clamp(40px, 5vw, 64px);
}
.booking-fallback {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.booking-fallback .text-link { color: var(--ink); }

@media (min-width: 48rem) {
  .booking { grid-column: 4 / 13; }
}

/* ---------- Footer ---------- */

.site-footer {
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer .grid {
  row-gap: 28px;
  padding-block: 48px 40px;
  border-top: 1px solid var(--rule);
}

.newsletter { align-items: end; }
.newsletter-title {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
}
.newsletter-copy p {
  margin-top: 8px;
  max-width: 26rem;
}
.newsletter-form { min-height: 56px; }
.newsletter-note {
  margin-top: 10px;
  font-size: 0.875rem;
}
.newsletter-note .text-link {
  margin-left: 0.35em;
  color: var(--ink);
}

@media (min-width: 48rem) {
  .newsletter-copy { grid-column: 1 / 7; }
  .newsletter-signup { grid-column: 7 / 13; }
}

.footer-id .wordmark {
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-links { display: grid; justify-items: start; gap: 8px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.copyright { font-variant-numeric: tabular-nums; }

@media (min-width: 48rem) {
  .footer-id { grid-column: 1 / 7; }
  .footer-links:nth-of-type(1) { grid-column: 7 / 10; }
  .footer-links:nth-of-type(2) { grid-column: 10 / 13; }
  .copyright { grid-column: 1 / -1; margin-top: 24px; }
}

/* ---------- Missing content (preview only) ----------
   Every element marked data-missing is something George still has to supply.
   Before deploy: grep -c data-missing public/index.html must return 0. */

.missing {
  border: 1px dashed rgba(21, 21, 21, 0.38);
  background: rgba(21, 21, 21, 0.025);
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--muted);
}
.missing::before {
  content: "Missing";
  display: block;
  margin-bottom: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

a[data-missing] {
  outline: 1px dashed rgba(21, 21, 21, 0.5);
  outline-offset: 4px;
}
.button[data-missing] { outline-offset: 5px; }

.missing-banner {
  padding: 8px var(--gutter);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}
