/* Christie Gray — christiegray.com
   Type-led, bold-minimal. Inter Tight display / Inter text.
   Tokens carried over unchanged from the existing site. */

:root {
  --paper: #ffffff;
  --ink: #111110;
  --muted: #6f6e69;
  --faint: #9c9b94;
  --hair: #e7e6e1;
  --hair-strong: #111110;
  --wash: #f4f3ef;
  --accent: #1d1df5;
  --max: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --display: "Inter Tight", "Inter", -apple-system, "Helvetica Neue", sans-serif;
  --text: "Inter", -apple-system, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121211;
    --ink: #f1f0ec;
    --muted: #a3a29b;
    --faint: #7b7a74;
    --hair: #2b2a28;
    --hair-strong: #f1f0ec;
    --wash: #1b1a19;
    --accent: #8f8fff;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--text);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 69px; gap: 24px;
}
.nav-logo {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: -0.035em; color: var(--ink); white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--muted); padding: 8px 12px; border-radius: 999px;
  white-space: nowrap; transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a.nav-cta {
  background: var(--ink); color: var(--paper); font-weight: 600;
  padding: 9px 18px; margin-left: 8px;
}
.nav-links a.nav-cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 820px) {
  .nav-inner { height: 60px; gap: 8px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: 12.5px; }
  .nav-links a.nav-cta { padding: 8px 14px; margin-left: 4px; }
}
@media (max-width: 620px) {
  .nav-links a.js-hide-sm { display: none; }
  .nav-links a { padding: 8px 7px; font-size: 12px; }
  .nav-links a.nav-cta { padding: 8px 13px; }
  .nav-logo { font-size: 17px; }
}
@media (max-width: 430px) {
  .nav-links a.js-hide-xs { display: none; }
}
@media (max-width: 365px) {
  :root { --pad: 16px; }
  .nav-logo { font-size: 16px; }
  .nav-links a { padding: 8px 6px; font-size: 11.5px; }
  .nav-links a.nav-cta { padding: 8px 11px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 11vw, 150px) 0 clamp(40px, 6vw, 72px); }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 7.4vw, 96px); line-height: 1.02;
  letter-spacing: -0.035em; max-width: 19ch; text-wrap: balance;
}
.hero h1 .dim { color: var(--faint); }
.hero-sub {
  margin-top: clamp(28px, 3.5vw, 44px);
  font-size: clamp(17px, 1.55vw, 19px); line-height: 1.6;
  color: var(--muted); max-width: 62ch;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }

/* ---------- Fact strip ---------- */
.facts {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(32px, 4vw, 52px);
}
.fact {
  border: 1px solid var(--hair); border-radius: 999px;
  padding: 9px 18px; font-size: 13.5px; color: var(--muted);
  line-height: 1.4;
}
.fact b { color: var(--ink); font-weight: 600; }

/* ---------- Section furniture ---------- */
.section { padding: clamp(56px, 8vw, 108px) 0; border-top: 1px solid var(--hair); }
.section.flush { border-top: 0; padding-top: clamp(16px, 2.4vw, 36px); }
.section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: clamp(28px, 4vw, 56px); gap: 16px 32px; flex-wrap: wrap;
}
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.section-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1.05;
  margin-top: 10px; max-width: 20ch;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 18px); color: var(--muted);
  max-width: 66ch; margin-top: 18px; line-height: 1.65;
}
.section-lead strong { color: var(--ink); font-weight: 500; }
.section-link { font-size: 14px; margin-top: 2px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.section-link:hover { color: var(--accent); }

/* ---------- Ledger: the leadership evidence rows ---------- */
.ledger { border-top: 1px solid var(--hair-strong); }
.ledger-row {
  display: grid; grid-template-columns: minmax(180px, 22%) 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--hair);
}
@media (max-width: 760px) { .ledger-row { grid-template-columns: 1fr; gap: 10px; } }
.ledger-row h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(18px, 2vw, 23px); letter-spacing: -0.025em; line-height: 1.2;
}
.ledger-row .when {
  display: block; margin-top: 6px;
  font-family: var(--text); font-size: 13px; font-weight: 400;
  letter-spacing: 0; color: var(--faint);
}
.ledger-row p {
  font-size: clamp(15.5px, 1.35vw, 17px); color: var(--muted);
  max-width: 70ch; line-height: 1.7;
}
.ledger-row p + p { margin-top: 12px; }
.ledger-row strong { color: var(--ink); font-weight: 500; }
.ledger-row .outcome {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px;
}
.ledger-row .outcome span {
  font-size: 12.5px; color: var(--ink); font-weight: 500;
  background: var(--wash); border-radius: 999px; padding: 6px 14px;
}

/* ---------- Work grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.card { display: block; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); border-radius: 4px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-media img { transform: scale(1.025); }
.card-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-top: 16px;
}
.card-title {
  font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.7vw, 20px);
  letter-spacing: -0.025em; line-height: 1.25;
}
.card:hover .card-title { color: var(--accent); }
.card-tag { font-size: 13px; color: var(--faint); white-space: nowrap; }
.card-client { font-size: 14px; color: var(--muted); margin-top: 3px; }
.card-role {
  font-size: 13px; color: var(--faint); margin-top: 8px;
  padding-top: 8px; border-top: 1px solid var(--hair);
}
.card-role b { color: var(--muted); font-weight: 500; }

/* ---------- Brand strip ---------- */
.strip { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--hair); }
.strip-brands {
  display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: baseline;
  font-family: var(--display); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(16px, 2vw, 22px); color: var(--faint);
}

/* ---------- Awards ---------- */
.award-group { border-top: 1px solid var(--hair-strong); }
.award-group + .award-group { border-top: 1px solid var(--hair); margin-top: 0; }
.award-head {
  display: grid; grid-template-columns: minmax(180px, 26%) 1fr;
  gap: clamp(16px, 3vw, 48px); padding: clamp(20px, 2.6vw, 30px) 0 10px;
}
@media (max-width: 760px) { .award-head { grid-template-columns: 1fr; gap: 8px; } }
.award-head h3 {
  font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: -0.025em;
}
.award-head p { font-size: 14.5px; color: var(--muted); max-width: 62ch; }
.award-list { padding-bottom: clamp(16px, 2vw, 24px); }
.award-line {
  display: grid; grid-template-columns: minmax(180px, 26%) 1fr auto;
  gap: clamp(12px, 3vw, 48px); padding: 12px 0;
  border-top: 1px solid var(--hair); font-size: 14.5px;
}
@media (max-width: 760px) {
  .award-line { grid-template-columns: 1fr; gap: 2px; }
  .award-line .award-cat { color: var(--faint); }
}
.award-line .award-name { color: var(--ink); font-weight: 500; }
.award-line .award-cat { color: var(--muted); }

/* ---------- CV ---------- */
.cv { border-top: 1px solid var(--hair-strong); }
.cv-row {
  display: grid; grid-template-columns: minmax(150px, 18%) minmax(160px, 24%) 1fr;
  gap: clamp(12px, 2.5vw, 40px);
  padding: clamp(22px, 3vw, 32px) 0; border-bottom: 1px solid var(--hair);
}
@media (max-width: 860px) { .cv-row { grid-template-columns: 1fr; gap: 8px; } }
.cv-when { font-size: 13.5px; color: var(--faint); }
.cv-who h3 {
  font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: -0.025em; line-height: 1.2;
}
.cv-who .role { font-size: 14px; color: var(--muted); margin-top: 4px; }
.cv-what { font-size: 15.5px; color: var(--muted); line-height: 1.7; max-width: 68ch; }
.cv-what strong { color: var(--ink); font-weight: 500; }
.cv-what ul { list-style: none; margin-top: 12px; }
.cv-what li { position: relative; padding-left: 18px; margin-top: 6px; font-size: 15px; }
.cv-what li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 6px; height: 1px; background: var(--faint);
}

/* ---------- Essays ---------- */
.essays { border-top: 1px solid var(--hair-strong); }
.essay {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--hair);
}
.essay h3 { font-family: var(--display); font-weight: 600; font-size: clamp(17px, 2vw, 22px); letter-spacing: -0.02em; line-height: 1.3; }
.essay p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.essay .arrow { color: var(--faint); font-size: 18px; transition: transform .2s, color .2s; }
.essay:hover h3 { color: var(--accent); }
.essay:hover .arrow { transform: translateX(4px); color: var(--accent); }
.subscribe-line { margin-top: 24px; font-size: 15px; color: var(--muted); }
.subscribe-line a { border-bottom: 1px solid var(--ink); color: var(--ink); font-weight: 500; }
.subscribe-line a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Split (two column text block) ---------- */
.split { display: grid; grid-template-columns: minmax(260px, 34%) 1fr; gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.split h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1.05;
}
.prose p { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); line-height: 1.72; max-width: 66ch; }
.prose p + p { margin-top: 18px; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose .lead { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink); line-height: 1.55; font-weight: 400; }

/* ---------- Talks list ---------- */
.talks { border-top: 1px solid var(--hair-strong); }
.talk {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--hair);
}
.talk h3 { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.8vw, 20px); letter-spacing: -0.02em; }
.talk p { font-size: 14px; color: var(--muted); margin-top: 4px; max-width: 70ch; }
.talk .when { font-size: 13px; color: var(--faint); white-space: nowrap; }

/* ---------- Case study ---------- */
.case-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.case-hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 6vw, 76px); line-height: 1.03; letter-spacing: -0.035em;
  margin-top: 12px; max-width: 18ch;
}
.case-standfirst {
  margin-top: clamp(20px, 2.6vw, 32px);
  font-size: clamp(17px, 1.7vw, 21px); color: var(--muted);
  line-height: 1.6; max-width: 60ch;
}
.case-figure { margin: clamp(28px, 4vw, 56px) 0; }
.case-figure img, .case-figure video { width: 100%; border-radius: 4px; background: var(--wash); }
.case-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px 32px; padding: clamp(24px, 3vw, 36px) 0;
  border-top: 1px solid var(--hair-strong); border-bottom: 1px solid var(--hair);
}
.case-meta dt { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.case-meta dd { font-size: 15px; margin-top: 6px; line-height: 1.55; }
.case-block { padding: clamp(40px, 6vw, 80px) 0 0; }
.case-block h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 2.8vw, 34px); letter-spacing: -0.03em; line-height: 1.1;
  max-width: 26ch;
}
.case-block .kicker + h2 { margin-top: 10px; }
.case-block p {
  font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); line-height: 1.72;
  max-width: 68ch; margin-top: 18px;
}
.case-block strong { color: var(--ink); font-weight: 500; }
.results {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(20px, 3vw, 40px); margin-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--hair-strong); padding-top: 28px;
}
.result b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 54px); letter-spacing: -0.04em; line-height: 1;
}
.result span { display: block; margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.5; max-width: 30ch; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.gallery img, .gallery video { width: 100%; border-radius: 4px; background: var(--wash); }
.gallery .full { grid-column: 1 / -1; }
.credits { font-size: 14px; color: var(--muted); line-height: 1.8; }
.credits p + p { margin-top: 2px; }
.next-project {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--hair-strong); flex-wrap: wrap;
}
.next-project a {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(22px, 3vw, 36px); line-height: 1.1;
}
.next-project a:hover { color: var(--accent); }

/* ---------- Contact / footer ---------- */
.contact { padding: clamp(56px, 8vw, 108px) 0 clamp(32px, 4vw, 56px); border-top: 1px solid var(--hair); }
.contact h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 5.6vw, 72px); letter-spacing: -0.035em; line-height: 1.05;
  max-width: 16ch;
}
.contact a.mail {
  display: inline-block; margin-top: 6px;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 4.4vw, 58px); letter-spacing: -0.035em;
  border-bottom: 2px solid var(--ink); line-height: 1.15;
}
.contact a.mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-note { margin-top: clamp(24px, 3vw, 36px); font-size: 15px; color: var(--muted); max-width: 58ch; }

.footer { padding: 0 0 clamp(28px, 4vw, 48px); }
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--hair);
  font-size: 13.5px; color: var(--muted);
}
.footer-row .links { display: flex; gap: 22px; }
.footer-row a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
}

/* ---------- Form ---------- */
.form { max-width: 560px; }
.form label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 8px;
}
.form .field + .field { margin-top: 24px; }
.form input, .form textarea {
  width: 100%; font-family: var(--text); font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--hair-strong);
  padding: 10px 0; line-height: 1.5;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form button {
  margin-top: 32px; font-family: var(--text); font-size: 14px; font-weight: 600;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  padding: 13px 28px; cursor: pointer; transition: background .18s ease;
}
.form button:hover { background: var(--accent); color: #fff; }
.form .hp { position: absolute; left: -9999px; }

/* ---------- Hero band ---------- */
.hero-band { width: 100%; margin: 0 0 clamp(8px, 2vw, 24px); }
.hero-band img {
  width: 100%; height: clamp(220px, 34vw, 460px); object-fit: cover;
  background: var(--wash); display: block;
}

/* ---------- Inline link ---------- */
.inline-link { color: var(--ink); border-bottom: 1px solid var(--ink); font-weight: 500; }
.inline-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Gallery video ---------- */
.gallery video { width: 100%; border-radius: 4px; background: var(--wash); }
