/* ---------- Tokens ---------- */
:root {
  --bg: #f6f1e9;
  --bg-alt: #ede6d8;
  --ink: #1b1b17;
  --ink-soft: #55524a;
  --accent: #4b5320;
  --accent-2: #a3623c;
  --line: rgba(27, 27, 23, 0.12);
  --dark: #1b1b17;
  --dark-card: #26261f;
  --cream: #f6f1e9;
  --radius: 2px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

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

img, .role-media, .interest-photo, .hero-photo {
  background-size: cover;
  background-position: center;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

.display {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.kicker-light { color: #d8b892; }

.section-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.1;
  margin: 0 0 48px;
}
@media (min-width: 420px) {
  #work .section-title { white-space: nowrap; }
}
.section-title-light { color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 241, 233, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  transition: color .3s ease;
}
.site-header.scrolled .brand { color: var(--ink); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .2s ease;
}
.site-header.scrolled .primary-nav a { color: var(--ink); }
.primary-nav a:hover,
.primary-nav a.active { border-color: currentColor; }
.primary-nav a.nav-cta {
  border: 1px solid currentColor;
  padding: 8px 16px;
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  transition: background .3s ease, transform .3s ease, opacity .3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-content {
  padding: 0 32px 96px;
  max-width: 900px;
  color: var(--cream);
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e7dcc4;
  margin: 0 0 18px;
}
.hero h1.display {
  font-size: clamp(56px, 12vw, 132px);
  margin: 0 0 20px;
  color: var(--cream);
}
.hero-sub {
  font-style: italic;
  font-size: clamp(17px, 2vw, 21px);
  max-width: 46ch;
  color: #f1ead9;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--ink); }

.scroll-cue {
  position: absolute;
  right: 32px;
  bottom: 40px;
  color: var(--cream);
  font-size: 22px;
  text-decoration: none;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- About ---------- */
.about { padding: 120px 0; }
.about-text {
  margin: 0 0 56px;
}
.about-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.about-row img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 760px) {
  .about-row { grid-template-columns: repeat(2, 1fr); }
}
.about-text p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}
.lede {
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 24px;
}
.about-text .signoff { font-weight: 500; }

/* ---------- Work / timeline ---------- */
.work { padding: 100px 0 120px; }

.timeline { border-top: 1px solid var(--line); }

.role { border-bottom: 1px solid var(--line); }
.role summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 88px 1fr 20px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
}
.role summary::-webkit-details-marker { display: none; }

.role-media {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
}
.role-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.role-head { display: flex; flex-direction: column; gap: 4px; }
.role-org { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.role-org a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.role-title { font-family: 'Inter', sans-serif; font-weight: 600; font-size: clamp(17px, 1.8vw, 20px); margin: 0; }
.role-dates { font-size: 13px; color: var(--ink-soft); }

.chevron { position: relative; width: 20px; height: 20px; }
.chevron::before, .chevron::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform .25s ease;
}
.chevron::before { width: 12px; height: 2px; top: 9px; left: 4px; }
.chevron::after { width: 2px; height: 12px; top: 4px; left: 9px; }
.role[open] .chevron::after { transform: rotate(90deg); opacity: 0; }

.role-body { padding: 0 0 32px 112px; }
.role-body p { margin: 0; color: var(--ink-soft); max-width: 68ch; }

@media (max-width: 640px) {
  .role summary { grid-template-columns: 56px 1fr 18px; }
  .role-media { width: 56px; height: 56px; padding: 8px; }
  .role-body { padding-left: 0; margin-top: -8px; }
}

/* ---------- Creative ---------- */
.creative {
  background: var(--dark);
  color: var(--cream);
  padding: 110px 0 120px;
}
.creative-intro {
  font-size: 17px;
  color: #d9d2c2;
  max-width: 56ch;
  margin: -20px 0 48px;
}

.media-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.media-card {
  display: block;
  background: var(--dark-card);
  border: 1px solid rgba(246,241,233,.1);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: var(--cream);
  transition: border-color .2s ease, transform .2s ease;
}
.media-card:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.media-card-soon {
  border-style: dashed;
  opacity: .6;
}
.media-card-soon:hover { border-color: rgba(246,241,233,.1); transform: none; }
.media-card-soon .media-link { color: #cfc8b8; font-weight: 500; }
.media-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.media-card h3 { font-family: 'Caveat', cursive; font-weight: 700; margin: 0 0 10px; font-size: 30px; }
.media-card p { color: #cfc8b8; margin: 0 0 16px; font-size: 15px; }
.media-link { font-size: 14px; font-weight: 600; }

@media (max-width: 640px) {
  .media-cards { grid-template-columns: 1fr; }
}

/* ---------- Interests ---------- */
.interests { padding: 110px 0 120px; }
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.interest-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.interest-tile h3 { font-family: 'Caveat', cursive; font-weight: 700; font-size: 26px; margin: 0 0 8px; }
.interest-tile p { margin: 0; color: var(--ink-soft); font-size: 15px; }

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

/* ---------- Contact ---------- */
.contact {
  background: var(--accent);
  color: var(--cream);
  padding: 120px 0;
  text-align: center;
}
.contact-wrap { display: flex; flex-direction: column; align-items: center; }
.contact-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(52px, 9vw, 96px);
  margin: 0 0 16px;
}
.contact-sub {
  font-size: 17px;
  color: #eae2cc;
  margin: 0 0 40px;
}
.contact-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.contact-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(246,241,233,.5);
  transition: border-color .2s ease, opacity .2s ease;
}
.contact-links a:hover { border-color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0; }
.footer-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-wrap a { color: var(--ink-soft); text-decoration: none; }
.footer-wrap a:hover { color: var(--ink); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .primary-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav a { color: var(--cream); width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(246,241,233,.1); }
  .primary-nav a.nav-cta { border: 1px solid rgba(246,241,233,.4); margin-top: 12px; width: auto; }
}
