/* ============================================
   Alexander Sheppard — Portfolio
   Minimal, modern, editorial.
   ============================================ */

:root {
  --bg: #faf9f6;
  --ink: #131311;
  --muted: #6f6d66;
  --hairline: #e6e3da;
  --accent: #e8501f;
  --tile: #f0eee8;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

img, video { display: block; max-width: 100%; height: auto; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

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

.nav-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a { transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }

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

.hero { padding: clamp(56px, 9vh, 120px) 0 clamp(44px, 7vh, 92px); }

.hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.032em;
  max-width: 22ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--muted);
}

.hero p {
  margin-top: 20px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Section labels ---------- */

.section-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-label .num {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.section-label h2 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.work { padding-bottom: clamp(48px, 8vw, 96px); }

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px);
}

.card { display: block; }

.card-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--tile);
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 10;
}

.card-media img,
.card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.card:hover .card-media img,
.card:hover .card-media video { transform: scale(1.025); }

.card-media.contain img {
  object-fit: contain;
  padding: clamp(24px, 5vw, 64px);
}

.card-media.dark { background: #16212b; }
.card-media.teal { background: #12555c; }
.card-media.spark-blue { background: #094e90; }
.card-media.hir-blue { background: #06486b; }
.card-media.hhh-coral { background: #eb8170; }
.card-media.contain.hir-blue img { padding: clamp(32px, 9vw, 96px); }

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.card-meta h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card-meta span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.card.wide { grid-column: 1 / -1; }
.card.wide .card-media { aspect-ratio: 21 / 9; }

@media (max-width: 720px) {
  .work-grid { grid-template-columns: 1fr; }
  .card.wide .card-media { aspect-ratio: 16 / 10; }
}

/* ---------- Archive strip ---------- */

.archive { padding-bottom: clamp(64px, 10vw, 128px); }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.archive-grid .card-media { aspect-ratio: 4 / 3; }

.archive-grid .card-meta h3 { font-size: 14px; }
.archive-grid .card-meta { margin-top: 10px; }

@media (max-width: 900px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }

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

.about { padding-bottom: clamp(64px, 10vw, 128px); }

.about-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}

.about-cols .lede {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.about-cols .fine { color: var(--muted); font-size: 15px; }
.about-cols .fine p + p { margin-top: 14px; }

.text-link {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.text-link:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 720px) { .about-cols { grid-template-columns: 1fr; } }

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

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(56px, 8vw, 112px);
}

.headshot {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--tile);
}

.headshot img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }

.about-intro .lede {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.about-intro .fine { margin-top: 24px; color: var(--muted); font-size: 15px; max-width: 58ch; }
.about-intro .fine p + p { margin-top: 14px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
  max-width: 900px;
}

.service h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.service p { font-size: 15px; color: var(--muted); max-width: 40ch; }

.client-list {
  list-style: none;
  columns: 2;
  column-gap: 40px;
  max-width: 640px;
  font-size: 16px;
}

.client-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  break-inside: avoid;
}

@media (max-width: 720px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .headshot { max-width: 340px; }
  .services-grid { grid-template-columns: 1fr; }
  .client-list { columns: 1; }
}

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

.footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(56px, 9vw, 120px) 0 40px;
}

.footer h2 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.footer .email {
  display: inline-block;
  margin-top: 24px;
  font-size: clamp(18px, 2vw, 24px);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer .email:hover { color: var(--accent); border-color: var(--accent); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(48px, 7vw, 96px);
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   Case study pages
   ============================================ */

.case-hero { padding: clamp(56px, 9vh, 120px) 0 clamp(36px, 5vw, 64px); }

.case-hero .kicker {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
}

.case-hero h1 {
  font-size: clamp(34px, 5.5vw, 72px);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.case-hero .standfirst {
  margin-top: 24px;
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--muted);
  max-width: 56ch;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(36px, 5vw, 64px);
}

.case-meta div h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.case-meta div p { font-size: 14px; }

@media (max-width: 720px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }

/* Case story sections */

.case-section { margin-bottom: clamp(48px, 7vw, 96px); }

.case-section .section-label { margin-bottom: 24px; }

.case-section .prose {
  max-width: 68ch;
  font-size: clamp(16px, 1.5vw, 18px);
  color: #33322e;
}

.case-section .prose p + p { margin-top: 18px; }

.case-section .prose .placeholder {
  color: var(--muted);
  background: var(--tile);
  border-radius: 3px;
  padding: 0 4px;
}

/* Case imagery */

.case-img {
  margin: clamp(28px, 4vw, 48px) 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--tile);
}

.case-img img, .case-img video { width: 100%; }

.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(28px, 4vw, 48px) 0;
}

.img-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(28px, 4vw, 48px) 0;
}

.img-grid-2 .case-img, .img-grid-3 .case-img { margin: 0; }

.case-img.pad { padding: clamp(28px, 5vw, 72px); display: flex; align-items: center; justify-content: center; }
.case-img.pad img { width: auto; max-width: 100%; max-height: 440px; margin: 0 auto; }
.case-img.dark { background: #16212b; }
.case-img.teal { background: #12555c; }
.case-img.spark-blue { background: #094e90; }
.case-img.hir-blue { background: #06486b; }
.case-img.pad.hir-cover { padding: clamp(56px, 11vw, 150px) clamp(28px, 8vw, 110px); }
.case-img.pad.hir-cover img { max-width: min(100%, 720px); }
.case-img.white { background: #fff; }
.case-img.portrait { max-width: 560px; margin-left: auto; margin-right: auto; }
.case-img.hhh-coral { background: #eb8170; }
.case-img.hhh-teal { background: #1f8f96; }
.case-img.pad.cover { aspect-ratio: 16 / 9; }
.case-img.pad.cover img { max-width: min(62%, 640px); }
.case-img.pad.hhh-tile { aspect-ratio: 4 / 3; }
.case-img.pad.hhh-tile img { max-width: 62%; max-height: 60%; }
.case-img.pad.logo-tile { aspect-ratio: 4 / 3; }
.case-img.pad.logo-tile img { max-width: 72%; max-height: 62%; }
.case-img.pad.hir-final img { max-width: min(100%, 640px); }
.case-img.pad.hir-symbol img { max-height: 200px; }
.case-img.coral { background: #f2695c; }
.case-img.navy { background: #1b2a4a; }

.case-img figcaption {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}

@media (max-width: 640px) {
  .img-grid-2, .img-grid-3 { grid-template-columns: 1fr; }
}

/* Pull stat / quote */

.pull {
  margin: clamp(36px, 5vw, 64px) 0;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: #fff;
}

.pull p {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 30ch;
}

.pull cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}

/* Next project */

.case-next {
  border-top: 1px solid var(--hairline);
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.case-next .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.case-next a.next-title {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  transition: color 0.15s ease;
}

.case-next a.next-title:hover { color: var(--accent); }

.case-next a.next-title .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.case-next a.next-title:hover .arrow { transform: translateX(8px); }
