/* Alfie Richards — clean, editorial, black & white. */
:root {
  --bg: #f3f1ec;
  --ink: #0a0a0a;
  --ink-soft: #1f1f1f;
  --muted: #6f6b64;
  --line: #ddd9d0;
  --line-dark: #2a2a2a;
  --dark-bg: #0a0a0a;
  --dark-muted: #9a9a9a;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 12vw, 160px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.eyebrow {
  font-family: var(--sans-display);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.eyebrow--light { color: var(--dark-muted); }
.eyebrow--rule {
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.statement {
  font-family: var(--sans-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-title--light { color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.15em 1.7em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, opacity .25s ease;
}
.btn::before { content: "\21B3"; font-size: 1.1em; line-height: 0; }
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-soft); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { opacity: 0.9; }
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: #fff;
  transition: color .35s ease;
}
.nav { display: flex; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  transition: color .25s ease;
}
.nav a:hover { color: #fff; }
.site-header.scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}
.site-header.scrolled .brand { color: var(--ink); }
.site-header.scrolled .nav a { color: var(--muted); }
.site-header.scrolled .nav a:hover { color: var(--ink); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, background .35s ease;
}
.nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(120% 120% at 70% 20%, #2b2b2b 0%, #101010 45%, #050505 100%);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.6) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 900px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 46ch;
  margin-bottom: 2.4rem;
}
.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  animation: floaty 2.4s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,6px)} }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--dark { background: var(--dark-bg); color: #fff; }
.intro__body {
  margin-top: clamp(2rem, 5vw, 3.4rem);
  margin-left: auto;
  max-width: 52ch;
  display: grid;
  gap: 1.3rem;
  font-size: 1.06rem;
  color: var(--ink-soft);
}
.timeline { list-style: none; }
.timeline__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-top: 1px solid var(--line-dark);
  align-items: baseline;
}
.timeline__item:last-child { border-bottom: 1px solid var(--line-dark); }
.timeline__year {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  line-height: 1;
}
.timeline__body h3 {
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #fff;
}
.timeline__body p { color: var(--dark-muted); max-width: 52ch; }
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
}
.case { display: flex; flex-direction: column; }
.case__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(150deg, #eae7e0 0%, #d8d4cb 60%, #cbc6bc 100%);
  margin-bottom: 1.3rem;
  transition: filter .4s ease, transform .4s ease;
}
.case__media::after {
  content: attr(data-initial);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: rgba(10,10,10,0.28);
}
.case:hover .case__media { filter: grayscale(0.2) contrast(1.05); transform: translateY(-4px); }
.case__text h3 { font-weight: 500; font-size: 1.25rem; margin-bottom: 0.25rem; }
.case__role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.case__text p:last-child { color: var(--ink-soft); }
.newsletter__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.newsletter .eyebrow, .newsletter .section-title { text-align: center; }
.newsletter__sub { color: var(--dark-muted); font-size: 1.1rem; margin-bottom: 2.4rem; }
.embed { display: flex; justify-content: center; min-height: 56px; }
.embed iframe { width: 100%; max-width: 480px; border: 0; }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__intro p:last-child { color: var(--muted); max-width: 34ch; }
.contact-form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 0.7em 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.contact-form .btn { justify-self: start; margin-top: 0.6rem; }
.form-note { font-size: 0.9rem; margin-top: 1rem; min-height: 1.2em; }
.footer { background: var(--dark-bg); color: #fff; padding: clamp(48px, 8vw, 88px) 0 40px; }
.footer__inner { display: grid; gap: 2.4rem; }
.footer__name { font-weight: 600; letter-spacing: 0.16em; font-size: 0.95rem; }
.footer__tag { color: var(--dark-muted); font-size: 0.9rem; margin-top: 0.4rem; }
.socials { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.socials a { color: rgba(255,255,255,0.65); transition: color .25s ease, transform .25s ease; }
.socials a:hover { color: #fff; transform: translateY(-2px); }
.footer__copy { color: #6a6a6a; font-size: 0.82rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll { animation: none; }
}
.site-header--solid { background: var(--bg); border-bottom-color: var(--line); }
.site-header--solid .brand { color: var(--ink); }
.site-header--solid .nav a { color: var(--muted); }
.site-header--solid .nav a:hover { color: var(--ink); }
.site-header--solid .nav-toggle span { background: var(--ink); }
.interior { padding-top: clamp(112px, 15vw, 172px); padding-bottom: var(--section-y); }
.writing__head { margin-bottom: clamp(2.4rem, 6vw, 4rem); max-width: 60ch; }
.writing__head .statement { margin-top: 0.6rem; }
.post-list { list-style: none; }
.post-list__item { border-top: 1px solid var(--line); }
.post-list__item:last-child { border-bottom: 1px solid var(--line); }
.post-link {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.3rem) 0;
  align-items: baseline;
  transition: opacity .2s ease;
}
.post-link:hover { opacity: 0.55; }
.post-meta { font-family: var(--sans-display); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.post-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.post-excerpt { color: var(--ink-soft); max-width: 60ch; }
.article { max-width: 720px; margin: 0 auto; }
.back-link {
  display: inline-block;
  font-family: var(--sans-display);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color .2s ease;
}
.back-link:hover { color: var(--ink); }
.article__meta { font-family: var(--sans-display); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.article__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0.7rem 0 clamp(1.8rem, 5vw, 2.8rem);
  color: var(--ink);
}
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink-soft); }
.prose > * + * { margin-top: 1.3rem; }
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2.6rem;
}
.prose h3 { font-family: var(--sans-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin-top: 2rem; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 1.3rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1.3;
  color: var(--ink);
}
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.article__cta { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.article__cta p { color: var(--muted); margin-bottom: 1.2rem; }
@media (max-width: 900px) {
  .work__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    padding: 4px 0 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { color: var(--ink); font-size: 1rem; padding: 1rem var(--gutter); border-top: 1px solid var(--line); }
  .nav a:first-child { border-top: none; }
  .site-header.scrolled .nav a { color: var(--ink); }
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --section-y: clamp(64px, 15vw, 100px); }
  .hero__content { padding-top: 84px; padding-bottom: 84px; }
  .work__grid { grid-template-columns: 1fr; max-width: 420px; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline__year { font-size: 1.5rem; }
  .post-link { grid-template-columns: 1fr; gap: 0.5rem; }
  .subscribe { flex-direction: column; }
  .subscribe .btn, .contact-form .btn { width: 100%; justify-content: center; }
}
