:root {
  --paper: #f1ece3;
  --paper-light: #f8f5ef;
  --paper-deep: #e5ded2;
  --ink: #17130f;
  --muted: #6e675f;
  --line: rgba(23, 19, 15, 0.18);
  --line-strong: rgba(23, 19, 15, 0.42);
  --accent: #7b392f;
  --accent-soft: #d6b9ad;
  --black: #11100e;
  --white: #fffdf8;
  --max: 1320px;
  --serif: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at 12% 0%, rgba(255,255,255,.55), transparent 34%);
}

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .055;
  pointer-events: none;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

::selection { background: var(--ink); color: var(--paper-light); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--paper-light);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.section-shell {
  width: min(calc(100% - 4rem), var(--max));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 0 max(2rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(241,236,227,.88);
  backdrop-filter: blur(20px) saturate(120%);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .8rem;
  width: max-content;
  text-decoration: none;
}
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.035em;
}
.wordmark__role {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.topbar nav { display: flex; gap: 2rem; }
.topbar nav a {
  position: relative;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.35rem;
  height: 1px;
  background: var(--ink);
  transition: right .25s ease;
}
.topbar nav a:hover::after,
.topbar nav a:focus-visible::after { right: 0; }

.mode-switch {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font: 700 .68rem/1 var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mode-switch__mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.mode-switch__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform .25s ease;
}
.mode-switch[aria-pressed="true"] .mode-switch__mark::after { transform: scale(1); }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-block: clamp(5rem, 8vw, 7rem);
}
.hero__copy {
  width: 100%;
  max-width: 1080px;
}
.hero h1 {
  max-width: 1050px;
  margin: 1.8rem 0 2rem;
  font-family: var(--sans);
  font-size: clamp(4rem, 8vw, 8.4rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.065em;
}
.hero h1 span { color: var(--accent); font-weight: 500; }
.hero__lede {
  max-width: 700px;
  margin: 0;
  color: #514a43;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
}
.hero__actions { margin-top: 2.3rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link span:last-child {
  font-size: 1rem;
  transition: transform .2s ease;
}
.text-link:hover span:last-child { transform: translate(.25rem, .25rem); }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 2rem;
  max-width: 920px;
  margin: 4rem 0 0;
  padding-top: 0;
}
.hero__facts div {
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
}
.hero__facts dt {
  margin-bottom: .55rem;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero__facts dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.25;
}


.expertise-strip {
  border-block: 1px solid var(--line-strong);
  background: var(--paper-light);
}
.expertise-strip__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .82rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
}
.expertise-strip i { color: var(--accent-soft); font-style: normal; }

.work-section,
.about-section { padding-block: clamp(7rem, 11vw, 11rem); }
.principles-section {
  padding-block: clamp(7rem, 11vw, 11rem);
  background: var(--black);
  color: var(--paper-light);
}
.section-heading {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: 4rem;
}
.section-heading__body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, .6fr);
  gap: 3rem;
  align-items: end;
}
.section-heading h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(3rem, 5.5vw, 6rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}
.section-heading h2 em { color: var(--accent); font-style: normal; font-weight: 500; }
.section-heading__body > p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.65;
}
.section-heading--compact .section-heading__body { grid-template-columns: 1fr; max-width: 970px; }
.principles-section .eyebrow { color: var(--accent-soft); }
.principles-section .section-heading h2 em { color: var(--paper-light); font-style: normal; }

.case-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
}
.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: rgba(248,245,239,.55);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(23,19,15,.08);
}
.case-card--featured {
  grid-row: span 2;
  min-height: 760px;
  background: var(--paper-light);
}
.case-card--dark {
  background: var(--black);
  color: var(--paper-light);
}
.case-card--dark p { color: #c1bbb2; }
.case-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.case-card--dark .case-card__topline { color: #9b948b; }
.case-card h3 {
  margin: 2rem 0 1rem;
  font-family: var(--sans);
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.045em;
}
.case-card p { color: var(--muted); }
.case-card__feature-copy p { max-width: 680px; font-size: 1rem; }

.case-breakdown {
  list-style: none;
  margin: 3rem 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.case-breakdown li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.case-breakdown strong {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
}
.case-breakdown span { color: var(--muted); font-size: .9rem; }
.case-card__note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  color: var(--accent) !important;
  font-family: var(--sans);
  font-size: .95rem;
  font-style: normal;
}
.case-card__impact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2.5rem;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 18px;
}
.case-card__impact div {
  min-height: 150px;
  padding: 1.2rem;
  border-right: 1px solid currentColor;
}
.case-card__impact div:last-child { border-right: 0; }
.case-card__impact strong {
  display: block;
  margin-bottom: .8rem;
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  font-weight: 500;
  line-height: .85;
  letter-spacing: -.055em;
}
.case-card__impact span {
  color: var(--muted);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.case-card--dark .case-card__impact span { color: #aaa299; }
.case-card__impact--single { grid-template-columns: 1fr; }
.signal-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.5rem 0 0;
  padding: 0;
}
.signal-list li {
  padding: .55rem .8rem;
  border: 1px solid #6b655e;
  border-radius: 999px;
  color: #c9c3ba;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #4a4640;
}
.principles li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 2.6rem 0;
  border-bottom: 1px solid #4a4640;
}
.principles__number {
  color: var(--accent-soft);
  font-family: var(--sans);
  font-size: .8rem;
  font-style: normal;
  font-weight: 600;
}
.principles h3 {
  margin: 0 0 .7rem;
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}
.principles p { max-width: 720px; margin: 0; color: #aaa39a; }

.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(3rem, 7vw, 7rem);
  border-radius: 34px;
  background: var(--accent);
  color: var(--paper-light);
}
.about-card .eyebrow { color: var(--accent-soft); }
.about-card h2 {
  margin: 1.4rem 0 0;
  font-family: var(--sans);
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}
.about-card h2 em { font-style: normal; font-weight: 500; }
.about-card__body {
  align-self: end;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}
.about-card__body p { color: #eee3da; }
.about-card__body p:last-child {
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.35);
  font-family: var(--sans);
  font-size: 1.15rem;
  font-style: normal;
}

.cv-panel {
  margin-top: 1.25rem;
  padding: clamp(2rem, 5vw, 5rem);
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: var(--paper-light);
}
.cv-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-strong);
}
.cv-panel h2 {
  margin: 1.3rem 0 0;
  font-family: var(--sans);
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.055em;
}
.cv-panel h2 em { color: var(--accent); font-style: normal; font-weight: 500; }
.stamp {
  padding: .7rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cv-layout {
  display: grid;
  grid-template-columns: minmax(200px, .32fr) 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  padding-top: 3rem;
}
.cv-sidebar { font-size: .82rem; }
.cv-sidebar section { margin-bottom: 2.4rem; }
.cv-sidebar h3,
.cv-entry__meta {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cv-sidebar h3 { margin-bottom: .85rem; color: var(--accent); }
.cv-sidebar p { margin: 0 0 .35rem; color: var(--muted); }
.cv-entry {
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.cv-entry:last-child { margin-bottom: 0; border-bottom: 0; }
.cv-entry__meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.cv-entry h3 {
  margin: .9rem 0 1rem;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 2.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.cv-entry ul { margin: 0; padding-left: 1.2rem; color: #514a43; }
.cv-entry li + li { margin-top: .65rem; }

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer p { margin: 0; }
.footer p:nth-child(2) { text-align: center; }
.footer p:last-child { text-align: right; }

body.cv-mode .paper-grain,
body.cv-mode .expertise-strip,
body.cv-mode .work-section,
body.cv-mode .principles-section,
body.cv-mode .about-card,
body.cv-mode .footer p:nth-child(2) { display: none; }
body.cv-mode .hero {
  min-height: auto;
  grid-template-columns: 1fr;
  padding-block: 4rem 2rem;
}
body.cv-mode .hero__copy { max-width: none; }
body.cv-mode .hero h1 { font-size: clamp(4rem, 8vw, 7rem); }
body.cv-mode .hero__lede { max-width: 900px; }
body.cv-mode .hero__facts { padding-top: 2.5rem; }
body.cv-mode .about-section { padding-top: 2rem; }
body.cv-mode .cv-panel { margin-top: 0; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .hero { min-height: auto; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading__body { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card--featured { grid-row: auto; min-height: auto; }
  .about-card { grid-template-columns: 1fr; }
  .cv-layout { grid-template-columns: 1fr; }
  .cv-sidebar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

@media (max-width: 680px) {
  .section-shell { width: min(calc(100% - 1.5rem), var(--max)); }
  .topbar { min-height: 64px; padding-inline: .8rem; }
  .wordmark__role { display: none; }
  .mode-switch__label { display: none; }
  .hero { padding-block: 4.5rem 5rem; }
  .hero h1 { font-size: clamp(3.7rem, 16vw, 6rem); }
  .hero__facts { grid-template-columns: 1fr; }
  .expertise-strip__inner { justify-content: flex-start; overflow-x: auto; }
  .section-heading h2,
  .about-card h2,
  .cv-panel h2 { font-size: clamp(3.2rem, 15vw, 5.3rem); }
  .case-card { min-height: auto; }
  .case-card h3 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .case-breakdown li { grid-template-columns: 1fr; gap: .45rem; }
  .case-card__impact { grid-template-columns: 1fr; }
  .case-card__impact div { border-right: 0; border-bottom: 1px solid currentColor; }
  .case-card__impact div:last-child { border-bottom: 0; }
  .principles li { grid-template-columns: 42px 1fr; gap: .7rem; }
  .about-card,
  .cv-panel { padding: 2rem 1.25rem; }
  .cv-panel__header { flex-direction: column; }
  .cv-sidebar { grid-template-columns: 1fr; }
  .cv-entry__meta { flex-direction: column; gap: .35rem; }
  .footer { grid-template-columns: 1fr auto; }
  .footer p:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  body { background: white; }
  .topbar,
  .paper-grain,
  .expertise-strip,
  .work-section,
  .principles-section,
  .about-card,
  .footer { display: none !important; }
  .hero { min-height: auto; display: block; padding: 0 0 2rem; }
  .hero h1 { font-size: 44pt; }
  .hero__actions { display: none; }
  .about-section { width: 100%; padding: 0; }
  .cv-panel { border: 0; margin: 0; padding: 0; }
  .stamp { display: none; }
  .cv-layout { grid-template-columns: 1fr 3fr; }
}
