/* Andrew Pritchard: homepage concept */

:root {
  --paper: #f6f4ef;
  --paper-2: #edeae3;
  --ink: #161514;
  --ink-soft: #3a3835;
  --muted: #74706a;
  --line: #d9d5cc;
  --accent: #df5016;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --gap: clamp(10px, 1.2vw, 18px);
  --section: clamp(72px, 10vw, 160px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label,
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h2 { font-size: clamp(34px, 4.6vw, 64px); }

em { font-style: italic; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand img { width: 28px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  font-size: 14px;
}

.nav a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--ink); }

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

/* Transparent over the hero photo */
.site-header { transition: background .3s, color .3s, backdrop-filter .3s; }
.site-header.is-over-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
}
.site-header.is-over-hero .nav a { color: rgba(255, 255, 255, .85); }
.site-header.is-over-hero .nav a:hover { color: #fff; }
.site-header.is-over-hero .nav-cta { border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.site-header.is-over-hero .nav-cta:hover { background: #fff; color: var(--ink) !important; }

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

.hero {
  position: relative;
  isolation: isolate;
  margin-top: -72px; /* sit under the transparent header */
  min-height: max(640px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: #1d1a24;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg { z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 50% 40%; }

/* Light gradients for legibility, strongest behind the text only. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 10, 20, .9) 0%, rgba(14, 10, 20, .62) 32%, rgba(14, 10, 20, .18) 60%, rgba(14, 10, 20, 0) 75%),
    linear-gradient(to right, rgba(14, 10, 20, .45) 0%, rgba(14, 10, 20, 0) 55%),
    linear-gradient(to bottom, rgba(14, 10, 20, .5) 0%, rgba(14, 10, 20, 0) 16%);
}

.hero-text {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 28px;
  align-items: end;
  padding-top: 140px;
}

.hero .eyebrow { grid-column: 1 / -1; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }

.hero h1 {
  grid-column: 1 / span 7;
  font-size: clamp(44px, 6.2vw, 100px);
  text-shadow: 0 1px 30px rgba(0, 0, 0, .25);
}

.hero h1 em { display: block; padding-left: 0.6em; }
.accent { color: var(--accent); }

.hero-meta {
  grid-column: 9 / -1;
  display: grid;
  gap: 26px;
  padding-bottom: 12px;
}

.hero-meta p { color: rgba(255, 255, 255, .92); max-width: 36ch; text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }

.btn-ghost { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.hero-caption {
  padding-block: 40px 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, .62);
  text-align: right;
}

/* ---------- Landmarks ---------- */

.landmarks {
  margin-top: 0;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.landmarks-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-items: center;
  padding-block: 32px;
}

.landmarks .label { grid-column: 1 / -1; font-family: var(--sans); margin-bottom: 20px; }

.landmark-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.2;
}

/* ---------- Facts ---------- */

.facts { padding-block: clamp(56px, 7vw, 96px); }

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.facts dl > div { border-left: 1px solid var(--line); padding-left: 20px; }

.facts dt {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
}

.facts dd {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  max-width: 22ch;
}

/* ---------- Work ---------- */

.work { padding-top: clamp(24px, 4vw, 48px); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.link-arrow {
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  white-space: nowrap;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(36px, 5vw, 72px);
}

.tile { --cap: 36px; position: relative; min-width: 0; }

.tile img {
  width: 100%;
  object-fit: cover;
  background: var(--paper-2);
}

/* The lead tile sets the row height, the others fill it. */
.tile.lead img { aspect-ratio: var(--ar, 3 / 2); }
.tile:not(.lead) img {
  position: absolute;
  inset: 0 0 var(--cap) 0;
  height: calc(100% - var(--cap));
}

.tile figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  height: var(--cap);
  padding-top: 12px;
  font-size: 13px;
}
.tile:not(.lead) figcaption { position: absolute; left: 0; right: 0; bottom: 0; }
.tile figcaption span:last-child { color: var(--muted); }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }

.tile img { transition: opacity .4s ease; }
.tile:hover img { opacity: .92; }

/* ---------- Approach ---------- */

.approach {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 24px;
  padding-bottom: clamp(72px, 9vw, 140px);
}

.approach .label { grid-column: 1 / span 3; padding-top: 14px; }

.approach-line {
  grid-column: 4 / -1;
  font-family: var(--serif);
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

.approach-body {
  grid-column: 4 / span 6;
  color: var(--ink-soft);
  max-width: 52ch;
}

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

.services { padding-top: clamp(40px, 6vw, 96px); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px) var(--gap);
}

.service-grid a {
  display: grid;
  gap: 10px;
  text-decoration: none;
}

.service-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 8px;
  background: var(--paper-2);
  transition: opacity .4s ease;
}

.service-grid h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
}

.service-grid h3::after {
  content: " \2192";
  font-family: var(--sans);
  font-size: 0.6em;
  vertical-align: 0.2em;
  color: var(--muted);
  transition: color .2s, margin .2s;
}

.service-grid p { font-size: 15px; color: var(--ink-soft); max-width: 40ch; }

.service-grid a:hover img { opacity: .92; }
.service-grid a:hover h3::after { color: var(--accent); margin-left: 4px; }

.also {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.also a { color: var(--ink); text-underline-offset: 3px; }
.also a:hover { color: var(--accent); }

/* ---------- Clients ---------- */

.clients {
  margin-top: calc(var(--section) - 40px);
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section);
}

.clients .label { color: #9a958c; }

.clients-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 56px;
}

.clients-intro { grid-column: 1 / span 5; display: grid; gap: 24px; align-content: start; }
.clients-intro > p:last-child { color: #bdb8ae; max-width: 42ch; }

.client-list {
  grid-column: 7 / -1;
  counter-reset: c;
  border-top: 1px solid #3a3835;
}

.client-list li {
  counter-increment: c;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-areas: "n h" "n p";
  column-gap: 16px;
  row-gap: 6px;
  padding-block: 26px;
  border-bottom: 1px solid #3a3835;
}

.client-list li::before {
  content: counter(c, decimal-leading-zero);
  grid-area: n;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 8px;
}

.client-list h3 {
  grid-area: h;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.1;
}

.client-list p { grid-area: p; color: #bdb8ae; font-size: 15px; max-width: 48ch; }

/* ---------- Process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 48px;
  padding-top: var(--section);
}

.process-head { grid-column: 1 / span 4; display: grid; gap: 20px; align-content: start; }

.steps {
  grid-column: 5 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.steps h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.1;
}

.steps p { font-size: 15px; color: var(--ink-soft); }

.step-quote {
  margin-top: 8px;
  padding: 16px 18px;
  background: var(--paper-2);
}
.step-quote p { font-size: 14px; font-style: italic; }
.step-quote footer { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- Quote ---------- */

.quote {
  padding-block: var(--section);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 64px;
}

.quote-feature { grid-column: 1 / span 10; }

.quote-feature p {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.quote-feature footer { margin-top: 24px; font-size: 14px; color: var(--muted); }

.quote-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.quote-list li {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.quote-list p { font-size: 16px; color: var(--ink-soft); }
.quote-list span { font-size: 13px; color: var(--muted); }

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

.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 40px;
  align-items: start;
  padding-bottom: var(--section);
}

.about-image { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.about-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.about-text { grid-column: 7 / span 6; display: grid; gap: 22px; padding-top: 8px; }
.about-text h2 { font-size: clamp(32px, 3.6vw, 52px); margin-bottom: 8px; }
.about-text p { color: var(--ink-soft); max-width: 54ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tags li {
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.about-press {
  grid-column: 7 / span 6;
  grid-row: 2;
  align-self: end;
  display: flex;
  align-items: end;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-press img { width: 128px; aspect-ratio: 3 / 4; object-fit: cover; flex: none; }
.about-press figcaption { font-size: 13px; color: var(--muted); max-width: 26ch; }

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

.contact {
  background: var(--paper-2);
  padding-block: var(--section);
  text-align: center;
}

.contact-inner { display: grid; justify-items: center; gap: 28px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3aa35b;
  box-shadow: 0 0 0 4px rgba(58, 163, 91, .15);
}

.contact h2 { font-size: clamp(40px, 6.2vw, 96px); max-width: 14ch; }

.contact-lede { color: var(--ink-soft); max-width: 50ch; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin-top: 8px;
}

.contact-big {
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 38px);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact-big:hover { color: var(--accent); border-color: var(--accent); }

.contact-note { font-size: 14px; color: var(--muted); }

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

.site-footer { padding-top: 64px; font-size: 14px; }

.footer-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 32px;
  padding-bottom: 48px;
}

.footer-inner > div { grid-column: 1 / span 4; }
.footer-small { margin-top: 10px; color: var(--muted); }

.footer-services {
  grid-column: 6 / span 5;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.footer-social { grid-column: 11 / -1; display: grid; gap: 8px; align-content: start; }

.site-footer nav a { text-decoration: none; color: var(--ink-soft); }
.site-footer nav a:hover { color: var(--accent); }

.footer-base {
  border-top: 1px solid var(--line);
  padding-block: 20px 28px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav a:not(.nav-cta):not(.nav-phone) { display: none; }

  .hero h1 { grid-column: 1 / -1; }
  .hero-meta { grid-column: 1 / span 9; }
  .hero-caption { text-align: left; }

  .landmarks .label,
  .landmark-list { grid-column: 1 / -1; }
  .landmarks-inner { row-gap: 18px; }
  .landmark-list { justify-content: flex-start; }

  .facts dl { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }

  .approach .label,
  .approach-line { grid-column: 1 / -1; }
  .approach-body { grid-column: 1 / span 9; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .process-head,
  .steps { grid-column: 1 / -1; }

  .clients-intro,
  .client-list { grid-column: 1 / -1; }

  .quote-list { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }

  .about-image { grid-column: 1 / span 6; }
  .about-text { grid-column: 7 / -1; }

}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .header-inner { height: 64px; }
  .nav-phone { display: none; }
  .nav-cta { padding: 8px 14px; }

  .hero-meta { grid-column: 1 / -1; }
  .hero { margin-top: -64px; min-height: max(600px, 100svh); }
  .hero-bg img { object-position: 50% 30%; }
  .hero::before {
    background:
      linear-gradient(to top, rgba(14, 10, 20, .92) 0%, rgba(14, 10, 20, .7) 45%, rgba(14, 10, 20, .2) 70%, rgba(14, 10, 20, 0) 82%),
      linear-gradient(to bottom, rgba(14, 10, 20, .5) 0%, rgba(14, 10, 20, 0) 14%);
  }
  .hero-text { padding-top: 120px; row-gap: 22px; }
  .hero-caption { padding-block: 28px 20px; }

  .landmark-list { flex-direction: column; gap: 6px; }

  .row { grid-template-columns: 1fr; row-gap: 36px; margin-bottom: 36px; }
  .row > .tile { grid-column: 1 / -1; }
  .tile img,
  .tile.lead img,
  .tile:not(.lead) img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .tile:not(.lead) figcaption { position: static; }

  .quote-feature { grid-column: 1 / -1; }
  .quote-list { grid-template-columns: 1fr; }

  .about-image,
  .about-text,
  .about-press { grid-column: 1 / -1; }
  .about-image { grid-row: auto; }
  .about-press { grid-row: auto; }

  .footer-inner > div,
  .footer-services,
  .footer-social { grid-column: 1 / -1; }
  .footer-social { display: flex; gap: 24px; }

  .hero h1 em { padding-left: 0; }
  .approach-body { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 32px; }
}
