:root {
  --bg: #f8f8f5;
  --surface: #ffffff;
  --surface-soft: #eef3f1;
  --ink: #151515;
  --muted: #5f625f;
  --line: #deded8;
  --accent: #14745f;
  --accent-dark: #0d4e42;
  --warm: #b9503d;
  --shadow: 0 18px 60px rgba(21, 21, 21, 0.08);
  --radius: 8px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p {
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

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

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(222, 222, 216, 0.8);
  background: rgba(248, 248, 245, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
}

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

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 76px;
  line-height: 0.98;
  font-weight: 780;
}

h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.08;
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 720;
}

.hero-role {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.28;
}

.hero-summary {
  max-width: 700px;
  margin-bottom: 34px;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: transparent;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--surface-soft);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.social-row a,
.text-link,
.content-card a {
  color: var(--accent-dark);
  font-weight: 700;
}

.social-row a:hover,
.social-row a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.content-card a:hover,
.content-card a:focus-visible {
  color: var(--warm);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.hero-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-section {
  background: var(--surface);
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 64px;
  align-items: start;
}

.stacked-copy p {
  margin-bottom: 18px;
  font-size: 18px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.focus-item,
.timeline-item,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.focus-item {
  padding: 24px;
}

.focus-item span {
  display: block;
  margin-bottom: 28px;
  color: var(--warm);
  font-weight: 800;
}

.focus-item p,
.timeline-item p,
.content-card p,
.project-copy p {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading.with-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.experience-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.experience-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.experience-card.current {
  grid-column: span 2;
  background: var(--ink);
  color: #fff;
}

.experience-card.wide {
  grid-column: span 2;
}

.experience-card.current p,
.experience-card.current .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.experience-card.current h3,
.experience-card.current .meta {
  color: #fff;
}

.experience-card .meta {
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 26px;
}

.timeline-item time {
  color: var(--warm);
  font-weight: 800;
}

.timeline-item .meta {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 700;
}

.work-section,
.newsletter-section {
  background: var(--surface-soft);
}

.feature-list {
  display: grid;
  gap: 20px;
}

.feature-project {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-project.reverse .project-media {
  order: 2;
}

.project-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.project-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wordplay-media {
  border: 1px solid var(--line);
  background: #f6f3ec;
}

.wordplay-media img {
  aspect-ratio: 802 / 761;
  object-fit: contain;
}

.project-copy {
  max-width: 560px;
}

.project-copy p {
  margin-bottom: 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  overflow: hidden;
}

.content-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-soft);
}

.content-card div {
  padding: 22px;
}

.content-card h3 {
  font-size: 20px;
}

.content-card p {
  margin-bottom: 18px;
}

.muted-section {
  background: var(--surface);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.logo-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 800;
}

.logo-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.logo-grid span {
  display: block;
  padding: 18px 20px;
}

.newsletter-frame {
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.newsletter-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p:first-child {
  color: #fff;
  font-weight: 800;
}

.site-footer .social-row {
  justify-content: flex-end;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .section {
    padding: 72px 0;
  }

  .hero-grid,
  .split-section,
  .feature-project,
  .feature-project.reverse {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 44px;
  }

  .hero-visual {
    max-width: 460px;
  }

  .feature-project.reverse .project-media {
    order: 0;
  }

  .focus-grid,
  .experience-board,
  .card-grid,
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-card.current,
  .experience-card.wide {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .social-row {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-role {
    font-size: 22px;
  }

  .hero-summary,
  .stacked-copy p {
    font-size: 16px;
  }

  .hero-visual::before {
    inset: 14px -14px -14px 14px;
  }

  .focus-grid,
  .experience-board,
  .card-grid,
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px;
  }

  .feature-project {
    padding: 18px;
  }

  .section-heading.with-link {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
