/* ---------- Tokens ---------- */
:root {
  --bg: #f4efe6;          /* warm cream */
  --bg-elev: #efe9dd;     /* slightly deeper cream */
  --ink: #1f1b16;         /* warm near-black */
  --ink-soft: #4a423a;    /* warm charcoal */
  --ink-mute: #8a8073;    /* muted taupe */
  --rule: #d9d1c1;        /* hairline */
  --accent: #8a5a2b;      /* warm bronze */
  --accent-ink: #5b3a1a;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease, opacity 200ms ease;
}

a:hover {
  border-bottom-color: currentColor;
}

p {
  margin: 0 0 1em;
}

em {
  font-style: italic;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
  max-width: var(--maxw);
  margin-inline: auto;
  width: calc(100% - var(--gutter) * 2);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  border: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.brand-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.site-nav a {
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-right: -9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 56px;
}

.section-head--sub {
  margin-top: 96px;
  margin-bottom: 28px;
}

.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 22px;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 90px) var(--gutter) clamp(72px, 10vw, 140px);
}

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-mute);
  margin: 0 0 28px;
  letter-spacing: 0.02em;
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 9vw, 124px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 40px;
  max-width: 14ch;
}

.display em {
  font-weight: 400;
  font-style: italic;
  color: var(--accent-ink);
}

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  max-width: 56ch;
  color: var(--ink-soft);
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Prose / About ---------- */
.prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.prose .lead {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 32px;
  max-width: 28ch;
}

.prose p {
  max-width: 62ch;
}

.two-col {
  column-count: 1;
}

@media (min-width: 880px) {
  .two-col {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    column-gap: 80px;
    row-gap: 0;
    align-items: start;
  }

  .two-col .lead {
    grid-column: 1 / 2;
    grid-row: 1 / span 3;
  }
}

/* Capabilities list */
.capabilities {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.capabilities li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 20px;
}

.capabilities span {
  color: var(--ink);
}

.capabilities em {
  color: var(--ink-mute);
  font-size: 16px;
  text-align: right;
}

/* Tools — soft editorial chip row */
.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.tools li {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, white 0%);
  transition: border-color 200ms ease, color 200ms ease;
}

.tools li:hover {
  border-color: var(--ink-mute);
  color: var(--ink);
}

/* ---------- Selected Work / Collage ---------- */
.work-intro {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: -24px 0 48px;
}

.collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .collage {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
  }
  /* The flagship page reads full width as a closing feature */
  .work-card--wide {
    grid-column: 1 / -1;
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.work-shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
}

.work-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover .work-shot img {
  transform: scale(1.03);
}

.work-card--fit .work-shot {
  background: #221e15;
}

.work-card--fit .work-shot img {
  object-fit: contain;
  object-position: center;
}

.work-card--fit-light .work-shot {
  aspect-ratio: 3636 / 2164;
  background: #f5f5f5;
}

.work-card--fit-light .work-shot img {
  object-fit: contain;
  object-position: center;
}

/* Scroll-through feature: home.png is a stitched, full-length capture of the
   homepage (756x6635). The window is a real scroll container, so visitors can
   scroll it by hand; on hover, script.js gently auto-pans it down to the
   disclaimer section and back. */
.work-card--scroll .work-shot {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  cursor: ns-resize;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.work-card--scroll .work-shot::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.work-card--scroll .work-shot img,
.work-card--scroll:hover .work-shot img {
  height: auto; /* natural full-length height -> vertically scrollable */
  object-fit: fill;
  transform: none; /* panning is done via scrollTop, not transform */
}

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px 0;
}

.work-name {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}

.work-url {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: right;
}

.work-card:hover .work-name {
  color: var(--accent-ink);
}

.work-card--roi .work-meta {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.work-card--roi .work-name {
  white-space: nowrap;
}

.work-card--roi .work-url {
  width: 28ch;
  max-width: 100%;
  margin-left: auto;
  text-align: right;
  overflow-wrap: anywhere;
}

.work-desc {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding: 8px 2px 0;
  max-width: 52ch;
}


/* Education & Recognition grid */
.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 880px) {
  .education-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

.education-grid .section-subtitle {
  margin-bottom: 18px;
}

.education-grid .contact-list {
  border-top: 1px solid var(--rule);
}

.education-grid .contact-list li {
  align-items: flex-start;
  padding: 18px 0;
}

.education-grid .contact-list .label {
  padding-top: 4px;
  white-space: nowrap;
}

.education-grid .contact-list span:last-child {
  text-align: right;
  line-height: 1.4;
}

/* ---------- Experience / Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 44px 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 880px) {
  .timeline-item {
    grid-template-columns: 220px 1fr;
    gap: 56px;
  }
}

.timeline-meta {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 15px;
  letter-spacing: 0.04em;
  padding-top: 6px;
}

.role {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.company {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  margin: 0 0 18px;
  font-size: 16px;
}

.timeline-body p {
  max-width: 64ch;
  color: var(--ink-soft);
}

.dots {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.dots li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  color: var(--ink-soft);
  max-width: 64ch;
}

.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.dots strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.section--contact {
  padding-bottom: clamp(96px, 12vw, 160px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
  }
}

.contact-copy .lead {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 22ch;
}

.contact-copy p {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 44ch;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.contact-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 19px;
}

.contact-list .label {
  font-style: italic;
  color: var(--ink-mute);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.muted {
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--serif);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 200ms ease, transform 200ms ease;
  }
  .site-nav a {
    padding: 13px 2px;
    font-size: 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
  }
  .site-nav a:last-child {
    border-bottom: 0;
  }
  .brand-mark {
    display: none;
  }
  .hero {
    padding-top: 24px;
    padding-bottom: 36px;
  }
  .eyebrow {
    margin-bottom: 16px;
  }
  .display {
    margin-bottom: 24px;
  }
  .lede {
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    text-align: center;
  }
  .capabilities li {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
  .capabilities em {
    text-align: left;
    font-size: 15px;
  }
}
