/* ==========================================================================
   mhm-design.com
   Direction: editorial-industrial. Near-black canvas, warm paper type,
   one signal accent. Thin rules, wide gutters, quiet motion.
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #121214;
  --ink-3: #1a1a1d;
  --line: #2a2a2e;
  --line-soft: #202024;
  --paper: #f4f2ee;
  --paper-dim: #a8a6a1;
  --paper-mute: #77757199;
  --muted: #8a8884;
  --accent: #e2542c;
  --accent-soft: #e2542c22;

  --measure: 68ch;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.6vw, 5rem);
  --step-5: clamp(3.2rem, 2rem + 5.6vw, 7rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  /* very quiet atmospheric wash so the black never reads as flat */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 620px at 78% -12%, #1e1e2333 0%, transparent 62%),
    radial-gradient(700px 500px at -8% 8%, #2a181233 0%, transparent 60%);
}
body > * { position: relative; z-index: 1; }

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

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

h1, h2, h3, h4 {
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

em, .serif {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); color: var(--ink);
  padding: 0.75rem 1.25rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------------------------------------------------------------- header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  flex: none;
}

.brand-name {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--paper);
  white-space: nowrap;
}

.site-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }

.site-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.25s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent);
  transition: right 0.35s var(--ease);
}
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after, .site-nav a.is-current::after { right: 0; }
.site-nav a.is-current { color: var(--paper); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span { display: block; height: 1px; background: var(--paper); transition: transform 0.3s var(--ease), opacity 0.3s; }

.mobile-nav { display: none; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .brand-name { display: none; }
  .mobile-nav {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease);
    border-top: 0 solid var(--line-soft);
  }
  .mobile-nav-inner { overflow: hidden; min-height: 0; }
  body.nav-open .mobile-nav { grid-template-rows: 1fr; border-top-width: 1px; }
  .mobile-nav a {
    display: block;
    padding: 1rem var(--gutter);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--paper);
  }
  body.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* ------------------------------------------------------------------ hero */

.hero { padding-block: clamp(4.5rem, 12vw, 10rem) clamp(3rem, 7vw, 5rem); }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.75rem;
}
.eyebrow a { color: var(--muted); }
.eyebrow a:hover { color: var(--paper); }

.hero-title {
  font-size: var(--step-5);
  max-width: 16ch;
  margin-bottom: 2rem;
}
.hero-title em { color: var(--paper-dim); }

.hero-lede {
  font-size: var(--step-1);
  font-weight: 300;
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 0 2.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-rule {
  margin-top: clamp(3rem, 8vw, 6rem);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--line) 22%, var(--line-soft) 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--paper); color: var(--paper); }

/* --------------------------------------------------------------- sections */

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line-soft); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-soft);
}

.section-title { font-size: var(--step-2); }

.section-link {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.section-link:hover { color: var(--accent); }

.section-lede {
  max-width: 58ch;
  color: var(--paper-dim);
  font-size: var(--step-1);
  margin: 0 0 2.5rem;
}

.note { margin-top: 2.5rem; color: var(--muted); font-size: 0.92rem; }
.note a { border-bottom: 1px solid var(--line); }
.note a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------- cards */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.project-grid-soon { margin-top: clamp(1rem, 2.5vw, 2rem); }

.card {
  display: block;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-3px); background: var(--ink-3); }

.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s;
}
.card:hover .card-media img { transform: scale(1.035); }

.card-body { padding: 1.5rem 1.5rem 1.75rem; }

.card-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.card-title { font-size: var(--step-2); margin-bottom: 0.4rem; }

.card-meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 1rem; }

.card-cue { font-size: 0.85rem; color: var(--paper-dim); letter-spacing: 0.02em; }
.card:hover .card-cue { color: var(--accent); }

.card-disabled { opacity: 0.66; }
.card-disabled .card-media img { filter: grayscale(1); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* -------------------------------------------------------------- essays */

.essay-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.essay-list li { border-bottom: 1px solid var(--line-soft); }
.essay-list a {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.4rem 0;
  transition: padding-inline 0.35s var(--ease);
}
.essay-list a:hover { padding-inline: 0.75rem 0; }
.essay-list time { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; }
.essay-title { font-size: var(--step-1); letter-spacing: -0.015em; }
.essay-list a:hover .essay-title { color: var(--accent); }
.essay-cue { color: var(--muted); transition: transform 0.35s var(--ease), color 0.35s; }
.essay-list a:hover .essay-cue { transform: translateX(5px); color: var(--accent); }

@media (max-width: 700px) {
  .essay-list a { grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
  .essay-list time { grid-column: 1 / -1; }
}

.essay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}

.essay-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}
.essay-card:hover { border-color: var(--line); transform: translateY(-3px); background: var(--ink-3); }

.essay-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.essay-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.essay-card:hover .essay-media img { transform: scale(1.04); }

.essay-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.essay-card-body time { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.essay-card-body h2 { font-size: var(--step-1); }
.essay-card:hover h2 { color: var(--accent); }
.essay-card-body p { margin: 0; color: var(--paper-dim); font-size: 0.93rem; }

/* ------------------------------------------------------------ page heads */

.page-head { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.page-lede { font-size: var(--step-1); color: var(--paper-dim); max-width: 52ch; margin: 1.75rem 0 0; }
.page-head.under { border-bottom: 0; min-height: 58vh; display: flex; align-items: center; }
.page-head.under .btn { margin-top: 2rem; }

/* ----------------------------------------------------------------- prose */

.prose-wrap { max-width: calc(var(--measure) + var(--gutter) * 2); margin-inline: auto; }
.prose-wrap > p { color: var(--paper-dim); margin: 0 0 1.4rem; }

.pull {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.2;
  color: var(--paper);
  margin: clamp(2.5rem, 6vw, 4rem) 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  letter-spacing: -0.015em;
}

.prose { font-size: 1.06rem; line-height: 1.75; }
.prose p { color: var(--paper-dim); margin: 0 0 1.5rem; }
.prose h2 { font-size: var(--step-2); margin: 2.75rem 0 1rem; color: var(--paper); }
.prose h3 { font-size: var(--step-1); margin: 2.25rem 0 0.85rem; color: var(--paper); }
.prose ul, .prose ol { color: var(--paper-dim); padding-left: 1.25rem; margin: 0 0 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--paper); border-bottom: 1px solid var(--accent); }
.prose a:hover { color: var(--accent); }
.prose blockquote {
  margin: 2rem 0; padding-left: 1.25rem;
  border-left: 2px solid var(--line);
  color: var(--paper-dim); font-style: italic;
}
.prose figure { margin: 2rem 0; }
.prose figure img { width: 100%; border: 1px solid var(--line-soft); }
.prose strong { font-weight: 500; color: var(--paper); }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 2.5rem 0; }

.about-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin: clamp(2rem, 5vw, 3rem) 0;
}
.about-media figure { margin: 0; }
.about-media img { width: 100%; border: 1px solid var(--line-soft); background: var(--ink-2); }

/* -------------------------------------------------------------- timeline */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line-soft);
}
.timeline li:first-child { border-top: 1px solid var(--line-soft); }
.tl-period { color: var(--accent); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.35rem; }
.tl-body h3 { font-size: var(--step-1); margin-bottom: 0.2rem; }
.tl-company { color: var(--paper-dim); font-size: 0.9rem; margin: 0 0 0.75rem; letter-spacing: 0.02em; }
.tl-body > p:last-child { color: var(--muted); margin: 0; max-width: 62ch; }

@media (max-width: 700px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.6rem; }
  .tl-period { padding-top: 0; }
}

/* ------------------------------------------------------------- education */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-top: 2.5rem;
}
.edu { background: var(--ink-2); border: 1px solid var(--line-soft); padding: 1.75rem 1.5rem; }
.edu-logo { height: 44px; margin-bottom: 1.25rem; }
.edu-logo img { height: 100%; width: auto; object-fit: contain; filter: grayscale(1) brightness(2.4); opacity: 0.85; }
.edu h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.edu-program { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.9rem; }
.edu > p:last-child { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ------------------------------------------------------------ case study */

.case-head { padding-block: clamp(3.5rem, 10vw, 6.5rem) clamp(2rem, 4vw, 3rem); }
.case-head h1 { font-size: var(--step-5); }
.case-kicker {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: var(--step-2);
  color: var(--paper-dim);
  margin: 1rem 0 0;
  max-width: 22ch;
}

.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}
.case-facts dt { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.case-facts dd { margin: 0; font-size: 1rem; color: var(--paper); }

.case-cover {
  background: #000;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  border-block: 1px solid var(--line-soft);
  padding-block: clamp(1rem, 3vw, 2.5rem);
}
.case-cover img {
  width: auto;
  max-width: min(100%, 860px);
  max-height: 68vh;
  object-fit: contain;
  margin-inline: auto;
}

.case-body { max-width: calc(var(--measure) + 12rem + var(--gutter) * 2); }

.case-section { margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.case-section h2 { font-size: var(--step-2); margin-bottom: 1.25rem; }
.case-section p { color: var(--paper-dim); max-width: var(--measure); margin: 0 0 1.25rem; }

/* Source images arrive with mixed aspect ratios and mixed (black / white)
   backgrounds. Uniform tiles + contain keeps a case study from looking ragged. */
.case-media { display: grid; gap: 1rem; margin-top: 2rem; }
.case-media-1 { grid-template-columns: 1fr; }
.case-media-2,
.case-media-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.case-media-4 { grid-template-columns: repeat(2, 1fr); }
.case-media-3,
.case-media-5 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (max-width: 620px) { .case-media-4 { grid-template-columns: 1fr; } }
.case-media figure {
  margin: 0;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  overflow: hidden;
}
.case-media-1 figure { aspect-ratio: 16 / 10; padding: 1.25rem; }
.case-media img { width: 100%; height: 100%; object-fit: contain; }

.case-credits p { color: var(--muted); font-size: 0.92rem; }

.case-section.soon { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.case-section.soon p { margin: 0; }
.case-section.soon a:not(.btn) { color: var(--paper); border-bottom: 1px solid var(--accent); }

.case-next { padding-bottom: clamp(3rem, 7vw, 5rem); }
.case-next a { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em; }
.case-next a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- essay */

.essay-head { border-bottom: 0; padding-bottom: 1.5rem; }
.essay-head h1 { font-size: var(--step-4); max-width: 24ch; }
.essay-date { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 1.25rem 0 0; }

.essay-hero {
  max-width: var(--wrap);
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  padding-inline: var(--gutter);
}
.essay-hero img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  border: 1px solid var(--line-soft);
}

.essay-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-block: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line-soft);
  margin-top: clamp(3rem, 7vw, 5rem);
}
.pn { display: flex; flex-direction: column; gap: 0.4rem; color: var(--paper-dim); font-size: 0.95rem; }
.pn span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pn:hover { color: var(--accent); }
.pn.next { text-align: right; }

@media (max-width: 620px) { .essay-nav { grid-template-columns: 1fr; } .pn.next { text-align: left; } }

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-card:hover { border-color: var(--accent); background: var(--ink-3); transform: translateY(-2px); }
.contact-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: var(--step-1); }

/* ------------------------------------------------------------------ cta */

.cta { border-top: 1px solid var(--line-soft); padding-block: clamp(4rem, 10vw, 7rem); }
.cta-inner h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.cta-inner p { color: var(--paper-dim); max-width: 46ch; margin: 0 0 2rem; }

/* --------------------------------------------------------------- footer */

.site-foot {
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.88rem;
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.foot-brand { display: flex; flex-direction: column; gap: 1rem; }
.foot-brand p { margin: 0; color: var(--muted); max-width: 26ch; }
.foot-links, .foot-social { display: flex; flex-direction: column; gap: 0.6rem; }
.foot-links a, .foot-social a { color: var(--muted); transition: color 0.25s var(--ease); }
.foot-links a:hover, .foot-social a:hover { color: var(--accent); }
.copy { grid-column: 1 / -1; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); color: var(--paper-mute); font-size: 0.8rem; }

@media (max-width: 700px) { .foot-inner { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* --------------------------------------------------------------- motion */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .cta, .nav-toggle { display: none; }
}

/* ==========================================================================
   About — Elementor-era treatment
   The WordPress About page was the one page with its own palette: a teal
   canvas, a photographic hero dissolving into it, justified white copy and
   oversized section titles behind the entries. Kept verbatim here, scoped to
   body.about-wp so the rest of the site stays on the dark system.
   ========================================================================== */

body.about-wp {
  --teal: #83c5bb;
  --wp-copy: #1e293b;
  background: var(--teal);
  color: #fff;
  font-weight: 400;
}
body.about-wp::before { display: none; }          /* kill the dark atmospheric wash */
body.about-wp .wrap { max-width: 1140px; }

/* Header sits transparently over the hero, as it did on the original. */
body.about-wp .site-head {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}
body.about-wp .site-head .brand-name { color: #fff; font-weight: 600; }
body.about-wp .site-nav a { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
body.about-wp .site-nav a:hover,
body.about-wp .site-nav a.is-current { color: #fff; }
body.about-wp .site-nav a::after { background: #fff; }
body.about-wp .nav-toggle span { background: #fff; }
body.about-wp .mobile-nav { background: rgba(0, 0, 0, 0.9); border-color: rgba(255, 255, 255, 0.25); }
body.about-wp :focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------- hero */

.wp-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 58vw, 725px);
  background: #000 url('/assets/2023/12/family.png') center / cover no-repeat;
  isolation: isolate;
}
.wp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background: linear-gradient(180deg, rgba(131, 197, 187, 0) 0%, #83c5bb 100%);
}
.wp-hero-inner { padding-block: clamp(2rem, 5vw, 3.5rem); }
.wp-hero h1 {
  font-size: clamp(3.4rem, 10.7vw, 9.625rem);   /* 154px at the original 1440 */
  line-height: 0.97;
  font-weight: 600;
  letter-spacing: -0.065em;
  color: #fff;
  margin: 0;
}

/* --------------------------------------------------------------- copy */

.wp-measure { max-width: 1044px; margin-inline: auto; }

.wp-intro { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.wp-intro p {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);  /* 18px */
  line-height: 1.5;
  font-weight: 400;
  color: #fff;
  text-align: justify;
  hyphens: auto;
  margin: 0 0 1.75rem;
}
.wp-intro .wp-quote {
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);      /* 32px */
  line-height: 1.25;
  font-weight: 500;
  text-align: justify;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

/* Collage runs full bleed; the map sits just inside it, upscaled past its
   natural 1024px the way the original did. */
.wp-collage { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.wp-collage figure { margin: 0; }
.wp-collage img { width: 100%; }

.wp-origin { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }
.wp-map { margin: 0 auto; width: 85%; max-width: 1220px; }
.wp-map img { width: 100%; }

.wp-origin-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1410px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-top: clamp(1rem, 3vw, 2rem);
}
.wp-origin-text p {
  grid-column: 2;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.5;
  text-align: justify;
  hyphens: auto;
  color: #fff;
  margin: 0;
}
@media (max-width: 860px) {
  .wp-map { width: 100%; }
  .wp-origin-text { grid-template-columns: 1fr; }
  .wp-origin-text p { grid-column: 1; }
}

.wp-actions { display: flex; justify-content: center; margin-top: clamp(2rem, 5vw, 3.5rem); }
.wp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: #000;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1;
  padding: 20px 40px;
  border-radius: 5px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.wp-btn:hover { background: #16181c; transform: translateY(-1px); }

/* ------------------------------------------------- experience / education */

/* Two oversized titles, mirrored: Experience light and flush left, Education
   dark and flush right. Both bleed past the viewport edge. */
.wp-band { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.wp-band-title { overflow: hidden; line-height: 0; }
.wp-band-title span {
  display: block;
  font-size: clamp(3.25rem, 17.4vw, 15.625rem);    /* 250px at 1440 */
  line-height: 1.3;                                /* 325px at 1440 */
  font-weight: 600;
  letter-spacing: -0.044em;
  white-space: nowrap;
}
.wp-band-light span { color: rgba(255, 255, 255, 0.4); text-align: left; margin-left: -0.035em; }
.wp-band-dark  span { color: rgba(0, 0, 0, 0.4);       text-align: right; margin-right: -0.02em; }

.wp-entries {
  max-width: calc(820px + var(--gutter) * 2);   /* 820px of content at 1440 */
  margin-inline: auto;
  margin-top: 20px;
  padding-inline: var(--gutter);
}
.wp-entries-edu { max-width: calc(1220px + var(--gutter) * 2); }
.wp-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.wp-entry { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.wp-entry h3 {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);  /* 24px */
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.wp-entry h3 strong { font-weight: 700; color: #000; }
.wp-entry h3 span { font-weight: 700; color: rgba(255, 255, 255, 0.95); }
.wp-entry-body {
  color: var(--wp-copy);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}
.wp-entry-date {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}

.wp-entry-edu {
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: clamp(1.5rem, 5vw, 75px);
  align-items: start;
}
.wp-edu-logo { display: flex; align-items: center; min-height: 88px; }
.wp-edu-logo img { max-width: 205px; max-height: 90px; width: auto; object-fit: contain; }
@media (max-width: 760px) {
  .wp-entry-edu { grid-template-columns: 1fr; gap: 1rem; }
  .wp-edu-logo { min-height: 0; }
}
