:root {
  --paper: #f3eee7;
  --paper-deep: #e8e0d6;
  --card: #faf7f2;
  --ink: #1c1612;
  --ink-soft: #3a312a;
  --muted: #74685d;
  --line: rgba(28, 22, 18, 0.12);
  --copper: #a24b2d;
  --copper-deep: #6d3018;
  --shadow: 0 24px 60px rgba(28, 22, 18, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: min(1180px, calc(100% - 2.5rem));
  --header: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input {
  font: inherit;
}

::selection {
  background: #e7c3b2;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header);
  padding-inline: max(1.25rem, calc((100% - 1180px) / 2));
  background: rgba(243, 238, 231, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #1a1410;
}

.brand img {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex: none;
}

.brand-line {
  width: 0.7rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.brand-name {
  position: relative;
  margin: 0;
  padding: 0 0.02em 0 0;
  border: 0;
  font-family: "Libre Bodoni", Palatino, "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 0.85;
}

.brand-name::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.16em;
  bottom: -0.28rem;
  height: 1px;
  background: currentColor;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-nav a:hover,
.header-mail:hover {
  color: var(--copper);
}

.header-mail {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: end;
  width: min(1240px, calc(100% - 2.5rem));
  margin: 2.5rem auto 0;
  padding-bottom: 3.5rem;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 0 0 1.2rem;
  color: var(--copper-deep);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span + span::before {
  content: "·";
  margin-right: 1rem;
  color: var(--copper);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(4.2rem, 8.4vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

h1 span {
  display: block;
}

.lede {
  max-width: 38rem;
  margin: 1.6rem 0 0;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.lede em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 460;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.btn:hover {
  background: var(--copper);
  border-color: var(--copper);
  transform: translateY(-1px);
}

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

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

.portrait {
  position: relative;
  margin: 0 0.85rem 0.2rem 0;
  padding-bottom: 2.75rem;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 1.4rem;
  position: relative;
  z-index: 1;
}

.portrait::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  right: -0.85rem;
  bottom: 0;
  left: 1.2rem;
  border: 1px solid rgba(162, 75, 45, 0.55);
  border-radius: 1.5rem;
  pointer-events: none;
}

.portrait figcaption {
  position: absolute;
  z-index: 1;
  left: 1.2rem;
  right: -0.85rem;
  bottom: 0;
  height: 2.75rem;
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #efe8df;
}

.marquee-track {
  display: flex;
  gap: 2.2rem;
  width: max-content;
  padding: 0.85rem 0;
  animation: drift 32s linear infinite;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.marquee-track span::before {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 2.2rem;
  border-radius: 50%;
  background: var(--copper);
  vertical-align: 0.08rem;
}

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.4rem;
}

.kicker {
  margin: 0;
  color: var(--copper);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h2,
.case-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 480;
  letter-spacing: -0.035em;
  line-height: 1.14;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
}

.case-list {
  display: flex;
  flex-direction: column;
}

.case-card {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 2rem;
  align-items: center;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.case-card:last-child {
  border-bottom: 1px solid var(--line);
}

.case-card:hover .case-name {
  color: var(--copper-deep);
}

.case-card:hover .visual img {
  transform: scale(1.025);
}

.case-index {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-name {
  margin: 0.55rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  transition: color 0.3s ease;
}

.case-card p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36rem;
  line-height: 1.6;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 0.1rem;
}

.case-link::after {
  content: "\2192";
  transition: transform 0.35s ease;
}

.case-card:hover .case-link::after {
  transform: translateX(5px);
}

.visual {
  border-radius: 1.3rem;
  overflow: hidden;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  position: relative;
}

.visual img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
  border-radius: 0.8rem;
  transition: transform 0.7s ease;
}

.visual.fresh { background: #e5f5eb; }
.visual.study { background: #e7eefc; }
.visual.care { background: #e7f2fb; }
.visual.habit { background: #123524; }
.visual.shop { background: #e7f4f7; }

.visual.split {
  grid-template-columns: 1.35fr 0.65fr;
  gap: 0.8rem;
  align-items: center;
}

.visual.split img:last-child {
  height: 340px;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.about-grid,
.edu-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.process li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1.3rem;
}

.process span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--copper);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.process strong {
  display: block;
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.process p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.certificate {
  margin: 0.85rem 0 0;
}

.certificate img {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: white;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1rem 1.25rem;
}

.steps span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--copper);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.steps h3 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

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

.about-layout .prose > p {
  max-width: 44rem;
}

.prose h2 {
  margin-bottom: 1.15rem;
}

.prose p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
  line-height: 1.6;
}

.prose p + p {
  margin-top: 1rem;
}

.skill-block {
  margin-top: 2rem;
}

.skill-block + .skill-block {
  margin-top: 1.75rem;
}

.skill-block h3,
.panel h3 {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-deep);
  font-weight: 560;
  line-height: 1.35;
}

.panel p {
  margin: 0;
  line-height: 1.6;
}

.panel p + p {
  margin-top: 0.75rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.92rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.timeline article {
  padding: 1.15rem 1.2rem;
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.timeline h3 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.timeline .when {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.contact-grid {
  align-items: end;
}

.contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.contact-links a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
}

.contact-links a:hover {
  border-color: var(--copper);
}

.contact-links small {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.signoff {
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 2rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.case-hero {
  padding: 3.2rem 0 1rem;
}

.case-hero .kicker {
  margin-bottom: 0.65rem;
}

.case-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.case-hero .summary {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 2rem 0 0;
}

.facts div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
}

.facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.65rem 0 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.2rem 0 2rem;
}

.panel {
  background: var(--card);
  border-radius: 1.15rem;
  padding: 1.3rem 1.35rem 1.4rem;
  border: 1px solid var(--line);
}

.panel p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.board {
  margin: 0 0 1.4rem;
  background: var(--card);
  border-radius: 1.3rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.board img {
  width: 100%;
}

.board figcaption,
.phones figcaption {
  padding: 0.75rem 1rem 0.95rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.25rem 1.75rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.phone {
  width: min(100%, 320px);
  margin: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone img {
  width: 100%;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(28, 22, 18, 0.1);
}

.phones.aligned {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  align-items: start;
  gap: 1.5rem 1.25rem;
}

.phones.aligned .phone {
  width: 100%;
  max-width: none;
}

.phones.aligned .phone img {
  height: auto;
  aspect-ratio: 9 / 18.5;
  object-fit: cover;
  object-position: top center;
}

.stats {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.stat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}

.stat b {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 520;
  letter-spacing: -0.03em;
}

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

.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 3rem;
  border-top: 1px solid var(--line);
}

.pager a {
  text-decoration: none;
  max-width: 46%;
}

.pager small {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  line-height: 1.3;
}

.pager strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.pager a:hover strong {
  color: var(--copper-deep);
}

@media (max-width: 1100px) {
  .header-mail {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero,
  .section-head,
  .case-card,
  .about-grid,
  .edu-grid,
  .contact-grid,
  .story,
  .stats,
  .facts {
    grid-template-columns: 1fr;
  }

  .header-mail {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 1.25rem 1rem;
    background: #f3eee7;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(28, 22, 18, 0.08);
  }

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

  .site-nav a {
    padding: 0.8rem 0;
    border-top: 1px solid var(--line);
    font-size: 1.15rem;
  }

  h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .portrait {
    margin-right: 0.45rem;
  }

  .portrait::after,
  .portrait figcaption {
    right: -0.4rem;
  }

  .phones.aligned {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }

  .visual,
  .visual.split {
    grid-template-columns: 1fr;
  }

  .visual img,
  .visual.split img:last-child {
    height: 220px;
    width: 100%;
  }

  .contact-links,
  .process,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-head {
    gap: 0.55rem;
    margin-bottom: 1.6rem;
  }

  .lede {
    margin-top: 1.15rem;
  }

  .case-name {
    margin-top: 0.5rem;
    margin-bottom: 0.85rem;
  }

  .case-hero .summary {
    margin-top: 1rem;
  }

  .prose h2 {
    margin-bottom: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track,
  .visual img,
  .btn,
  .case-link::after,
  .brand img {
    animation: none;
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-nav a[aria-current="page"] {
  color: var(--copper);
}

.resume-band {
  padding: 0 0 4.5rem;
}

.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.7rem 1.8rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 1.5rem;
}

.resume-card .kicker {
  color: #e7c3b2;
}

.resume-card h2 {
  margin: 0.35rem 0 0.45rem;
  color: var(--paper);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.resume-card p {
  margin: 0;
  max-width: 34rem;
  color: rgba(243, 238, 231, 0.78);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  flex: none;
}

.resume-btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  min-height: 3.15rem;
  padding-inline: 1.25rem;
}

.resume-btn svg {
  flex: none;
}

.resume-btn:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.resume-card .btn-ghost {
  color: var(--paper);
  border-color: rgba(243, 238, 231, 0.38);
}

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

@media (max-width: 900px) {
  .resume-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.35rem 1.2rem 1.4rem;
  }

  .resume-actions,
  .resume-actions .btn {
    width: 100%;
  }
}
