@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../assets/fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3efe6;
  --paper-2: #e7e0d0;
  --cream: #fbf8f2;
  --ink: #1a1814;
  --ink-soft: #3c3832;
  --muted: #5a554c;
  --line: rgba(26, 24, 20, 0.14);
  --field: #122e29;
  --field-2: #1b433b;
  --foam: #e5efe8;
  --amber: #a65119;
  --amber-ink: #6d320c;
  --brass: #8a6830;
  --accent-ink: #146c43;
  --kicker-on-dark: #e2b07a;
  --accent-glow: rgba(184, 90, 28, 0.32);
  --shadow: 0 22px 50px rgba(18, 30, 26, 0.12);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --header: 4.1rem;
  --wrap: 1120px;
  --radius: 18px;
  color-scheme: light;
}

*, *::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.55;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.02em; line-height: 1.08; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--cream);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
  border-radius: 8px;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }
.wrap-wide { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1200px, calc(100% - 1.5rem));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--field);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.brand-name { font-family: var(--serif); font-weight: 560; font-size: 1.05rem; }
.brand-role { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); font-weight: 500; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.site-nav {
  display: none;
  position: absolute;
  inset: var(--header) 0 auto 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.75rem 1rem;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] { color: var(--amber-ink); font-weight: 700; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  border: 0;
  background: transparent;
  min-width: 2.6rem;
  min-height: 2.4rem;
  color: var(--muted);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--field); color: var(--paper); }

.header-resume { display: none; }

.hero {
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(184, 90, 28, 0.28), transparent 60%),
    linear-gradient(165deg, var(--field) 0%, #0d2420 70%, #18352f 100%);
  color: var(--paper);
  padding: 2.2rem 0 2.6rem;
}
.hero-grid {
  display: grid;
  gap: 1.6rem;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kicker-on-dark);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 12vw, 6.2rem);
  font-weight: 560;
  margin-bottom: 0.8rem;
  letter-spacing: -0.035em;
}
.hero-roles { font-size: 1.12rem; max-width: 38rem; color: #efe7da; }
.hero-roles strong { color: white; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.hero-note { margin-top: 1rem; color: #d9cbb8; font-size: 0.95rem; }
.hero-note a { color: #f3d7b4; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}
.btn-light { background: var(--paper); color: var(--field); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(243, 239, 230, 0.45); }
.btn-field { background: var(--field); color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }

.portrait-wrap { position: relative; max-width: 26rem; margin-inline: auto; }
.portrait-frame {
  position: relative;
  z-index: 1;
  border-radius: 22px 22px 80px 22px;
  overflow: hidden;
  background: #efe8dc;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: contain; object-position: center top; background: #f7f3ea; }
.rig-card {
  display: none;
}
.caption {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat { background: var(--cream); padding: 1rem 0.9rem 1.1rem; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 560;
  letter-spacing: -0.03em;
}
.stat span { color: var(--muted); font-size: 0.92rem; }

section { padding: 3.2rem 0; }
.section-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.45rem;
}
.section-kicker span { color: var(--amber); margin-right: 0.45rem; }
.section-head { max-width: 40rem; margin-bottom: 1.6rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 0.6rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); }

.about-grid, .split { display: grid; gap: 1.2rem; }
.panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
}
.quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--field);
}
.quote footer { margin-top: 0.8rem; font-family: var(--sans); font-style: normal; font-size: 0.9rem; color: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.job {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0 1.2rem 1rem;
  border-left: 2px solid var(--paper-2);
  position: relative;
}
.job::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--field);
  border: 2px solid var(--paper);
  position: absolute;
  left: -0.45rem;
  top: 1.35rem;
  box-shadow: 0 0 0 1px var(--field);
}
.job-current::before { background: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.job time, .meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--brass); }
.job h3 { font-size: 1.35rem; margin-bottom: 0.1rem; }
.org { font-weight: 650; margin: 0; }
.org img { display: inline-block; height: 1.15rem; width: auto; vertical-align: -0.2rem; margin-right: 0.35rem; background: white; }
.job p { margin-bottom: 0; color: var(--ink-soft); }
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  color: var(--muted);
  margin-left: 0.35rem;
  vertical-align: 0.15rem;
}

.venture-grid { display: grid; gap: 1rem; }
.venture {
  background: var(--field);
  color: var(--paper);
  border-radius: 22px;
  padding: 1.3rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.7rem;
  min-height: 16rem;
}
.venture.alt { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.venture h3 { font-size: 1.8rem; margin: 0; }
.venture p { margin: 0; color: inherit; }
.venture .btn { justify-self: start; }
.venture .btn-light { color: var(--field); }
.kicker-inv { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kicker-on-dark); }
.venture.alt .kicker-inv { color: var(--brass); }

.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.8rem; }
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 2.6rem;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--field); color: var(--paper); border-color: var(--field); }
.cert-status { color: var(--muted); margin-bottom: 1rem; }
.cert-grid { display: grid; gap: 1rem; }
.cert-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cert-open {
  border: 0;
  padding: 0;
  background: #ebe4d6;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--field);
}
.cert-open img { width: 100%; height: 100%; object-fit: contain; }
.doc-icon { width: 4.5rem; height: auto; }
.cert-body { padding: 0.9rem 0.95rem 1rem; display: grid; gap: 0.35rem; }
.cert-kicker { margin: 0; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--foam);
  color: var(--field);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.tag[data-cat="award"] { background: #f6e4d4; color: var(--amber-ink); }
.tag[data-cat="degree"] { background: #ece7dc; color: var(--ink); }
.tag[data-cat="paper"] { background: #e4ebf0; color: #1d3d52; }
.tag[data-cat="event"] { background: #f3ead2; color: #6a5018; }
.tag[data-cat="letter"] { background: #e5efe8; color: #0e3d32; }
.cert-card h3 { font-size: 1.12rem; margin: 0; }
.cert-original { margin: 0; color: var(--muted); font-size: 0.92rem; }
.cert-issuer, .cert-details { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.cert-files { list-style: none; margin: 0.3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cert-files a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  background: var(--paper);
}
.cert-files a:hover { border-color: var(--field); }
.file-size { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; }

.card-grid, .edu-grid, .project-grid { display: grid; gap: 1rem; }
.edu-card, .project-card, .pub {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.edu-card h3, .project-card h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.project-card img { border-radius: 12px; margin-bottom: 0.8rem; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.7rem 0 0; padding: 0; list-style: none; }
.tags li {
  font-size: 0.82rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
details.abstract { margin-top: 0.7rem; }
details.abstract summary { cursor: pointer; font-weight: 650; }
.findings { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }

.skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.skills li {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font-size: 0.92rem;
}
.skill-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin: 1rem 0 0.4rem; }

.pubs { display: grid; gap: 0.8rem; }
.pub { display: flex; gap: 0.8rem; align-items: center; }
.pub img { width: 4.2rem; height: 3rem; object-fit: contain; background: white; border-radius: 8px; }

.community { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; color: var(--ink-soft); }

.cta-band {
  background: var(--field);
  color: var(--paper);
  border-radius: 24px;
  padding: 1.5rem 1.2rem;
}
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: white; }
.cta-band .section-kicker,
.cta-band .section-kicker span { color: var(--kicker-on-dark); }
.contact-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; justify-content: space-between; }
.site-footer a { color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

dialog.lightbox {
  width: min(920px, calc(100vw - 1.25rem));
  max-height: calc(100vh - 1.25rem);
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog.lightbox::backdrop { background: rgba(16, 24, 22, 0.72); }
.lb-body { padding: 0.9rem 0.9rem 1.1rem; overflow: auto; max-height: calc(100vh - 1.25rem); }
.lb-toolbar { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.lb-toolbar button, .icon-btn {
  min-height: 2.6rem;
  min-width: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.lb-figure {
  background: #ebe4d6;
  border-radius: 12px;
  display: grid;
  place-items: center;
  min-height: 12rem;
  margin-bottom: 0.8rem;
}
.lb-figure img { max-height: 62vh; width: auto; max-width: 100%; object-fit: contain; }
.lb-nav { display: flex; gap: 0.4rem; }
#lb-title { font-size: 1.4rem; margin-bottom: 0.3rem; }
#lb-files { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
#lb-files a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: var(--paper);
}

.page-404 { padding: 4rem 0 5rem; }
.page-404 h1 { font-size: clamp(2.4rem, 8vw, 4.5rem); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: #ead7b4; }

@media (max-width: 700px) {
  .brand-role { display: none; }
  :root { --header: 3.5rem; }
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .edu-grid, .venture-grid, .project-grid, .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .span-2 { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .site-nav ul { display: flex; gap: 0.15rem; align-items: center; }
  .site-nav a { border: 0; padding: 0.4rem 0.55rem; font-size: 0.95rem; }
  .header-resume { display: inline-flex; }
  .hero { padding: 3.2rem 0 3.4rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 2rem; }
  .portrait-wrap { margin-inline: 0 0 auto; }
  .rig-card {
    display: block;
    position: absolute;
    right: -1.2rem;
    bottom: -1.1rem;
    width: 42%;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--paper);
    box-shadow: var(--shadow);
    z-index: 2;
  }
  .rig-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: 1.3fr 0.7fr; }
  .project-card.feature { grid-row: span 2; }
  section { padding: 4.2rem 0; }
}
.entry-grid { display: grid; gap: 0.75rem; }
.entry-card {
  position: relative;
  display: flex;
  min-height: 22rem;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: var(--paper);
  background: var(--field);
  isolation: isolate;
}
.entry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 22, 20, 0.05) 10%, rgba(10, 22, 20, 0.88) 78%);
}
.entry-oil { box-shadow: inset 0 4px 0 #1f6b4a; }
.entry-biz { background: #144dbb; }
.entry-biz::after { background: linear-gradient(165deg, rgba(20, 77, 187, 0.15) 0%, rgba(8, 36, 92, 0.18) 42%, rgba(6, 24, 64, 0.84)); }
.entry-biz .entry-kicker { color: #e7f0ff; }
.entry-biz .entry-go { color: #e7f0ff; }
.entry-social { background: #b13c0a; }
.entry-social::after { background: linear-gradient(165deg, rgba(255, 176, 90, 0.22), rgba(90, 28, 6, 0.08) 42%, rgba(48, 16, 4, 0.86)); }
.entry-social .entry-kicker { color: #ffe1c2; }
.entry-social .entry-go { color: #ffe8d0; }
.entry-body { margin-top: auto; padding: 1.2rem 1.15rem 1.25rem; display: grid; gap: 0.45rem; }
.entry-kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e2b07a;
}
.entry-card h2 { font-size: clamp(2rem, 4vw, 2.6rem); color: white; margin: 0; }
.entry-card p { margin: 0; color: #f3efe6; max-width: 36ch; }
.entry-go {
  margin-top: 0.35rem;
  font-weight: 650;
  color: #f3d7b4;
}

.page-hero {
  position: relative;
  min-height: 22rem;
  color: var(--paper);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--field);
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-hero-img.field-face { object-position: center 42%; }
.entry-card img.field-face { object-position: center 32%; }
.field-strip { display: grid; gap: 0.85rem; }
.field-strip figure { margin: 0; }
.field-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  background: #d9d0c0;
}
.field-strip figcaption {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.6rem 0 1.5rem;
  background: linear-gradient(to top, rgba(8, 18, 16, 0.92) 0%, rgba(8, 18, 16, 0.5) 58%, rgba(8, 18, 16, 0.12) 100%);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  color: white;
  max-width: 18ch;
  margin-bottom: 0.55rem;
}
.page-hero .hero-roles { max-width: 40rem; }
.page-hero-plain { min-height: 0; background: radial-gradient(720px 280px at 100% 0%, var(--accent-glow), transparent 55%), var(--field); }
.page-hero-plain .page-hero-copy { background: none; padding: 2.5rem 0 2rem; }

.subnav { background: var(--cream); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; padding: 0.7rem 0; }
.subnav a { text-decoration: none; font-weight: 650; min-height: 2.4rem; display: inline-flex; align-items: center; }

.photo-grid { display: grid; gap: 0.85rem; }
.photo-grid figure { margin: 0; }
.photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 14px;
  background: #d9d0c0;
}
.photo-grid figcaption, .bleed-photo figcaption, .illustration-card figcaption {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.bleed-photo { margin: 0; }
.bleed-photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 26rem;
  object-fit: cover;
  display: block;
}
.bleed-photo figcaption { width: min(var(--wrap), calc(100% - 2rem)); margin: 0.4rem auto 0; }
.illustration-card {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
}
.illustration-card img { width: 100%; border-radius: 12px; aspect-ratio: 1; object-fit: cover; }

.credits { color: var(--ink-soft); font-size: 0.95rem; }
.credits ul { margin: 0.6rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.credits a { overflow-wrap: anywhere; }

.sw-grid { display: grid; gap: 0.85rem; }
.sw-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sw-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 22%; }
.sw-placeholder {
  margin: 0;
  min-height: 7.5rem;
  display: grid;
  place-items: center;
  background: var(--field);
  color: #e2b07a;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
}
.sw-card h3 { font-size: 1.3rem; margin: 0; padding: 1rem 1rem 0.3rem; }
.sw-card p { margin: 0; padding: 0 1rem 1rem; color: var(--ink-soft); }
.studio { display: grid; gap: 1.15rem; }
.studio-shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(243, 239, 230, 0.28);
  background: #0d2420;
}
.studio-shot img,
.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #efe8dc;
}
.studio-copy { display: grid; gap: 0.7rem; align-content: center; }
.studio-copy h1 { margin: 0; }
.studio-copy .hero-roles { margin: 0; }
.studio-facts { margin: 0; color: #d9cbb8; font-size: 0.98rem; }
.project-grid { display: grid; gap: 0.85rem; }
.project-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.project-card h3 { font-size: 1.35rem; margin: 0; padding: 0.9rem 1rem 0.2rem; }
.project-card p { margin: 0; padding: 0 1rem 0.35rem; color: var(--ink-soft); }
.project-go { margin-top: auto; padding: 0.35rem 1rem 1rem; font-weight: 700; color: var(--amber-ink); }
.project-more {
  border-style: dashed;
  border-color: rgba(138, 104, 48, 0.5);
  background: transparent;
  min-height: 8rem;
  justify-content: flex-end;
}
.project-more p {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--field);
  padding: 1.15rem;
}

.coming-soon {
  margin: 0;
  border: 1px dashed rgba(138, 104, 48, 0.55);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--cream);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--field);
}

@media (min-width: 800px) {
  .field-strip { grid-template-columns: 1fr 1fr; }
  .studio { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 1.6rem; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: 1.35fr 1fr 1fr; }
  .photo-grid .wide { grid-column: 1 / -1; }
  .photo-grid .tall img { aspect-ratio: 3 / 4; object-position: center top; }
  .sw-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .entry-grid { grid-template-columns: repeat(3, 1fr); }
  .entry-card { min-height: 28rem; }
  .page-hero { min-height: 30rem; }
  .page-hero-plain { min-height: 0; }
}
@media (min-width: 980px) {
  .site-nav a { white-space: nowrap; font-size: 0.92rem; padding: 0.4rem 0.45rem; }
}

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

/* Category accents. Oil & Gas keeps the deep green; text uses a clearer green that still clears WCAG AA. */
body.theme-oil {
  --accent-ink: #146c43;
}
body.theme-oil .site-nav a[aria-current="page"],
body.theme-oil .site-nav a[aria-current="true"],
body.theme-biz .site-nav a[aria-current="page"],
body.theme-biz .site-nav a[aria-current="true"],
body.theme-social .site-nav a[aria-current="page"],
body.theme-social .site-nav a[aria-current="true"] {
  color: var(--accent-ink);
}
body.theme-biz {
  --field: #144dbb;
  --field-2: #0e3a86;
  --amber: #0e3a86;
  --amber-ink: #0c3478;
  --brass: #0e3a86;
  --accent-ink: #144dbb;
  --kicker-on-dark: #e7f0ff;
  --accent-glow: rgba(186, 214, 255, 0.38);
}
body.theme-social {
  --field: #b13c0a;
  --field-2: #8a320c;
  --amber: #9a3412;
  --amber-ink: #7c2d12;
  --brass: #7c2d12;
  --accent-ink: #9a3412;
  --kicker-on-dark: #ffe1c2;
  --accent-glow: rgba(255, 196, 140, 0.42);
}
body.theme-oil main h2,
body.theme-oil main h3,
body.theme-biz main h2,
body.theme-biz main h3,
body.theme-social main h2,
body.theme-social main h3 {
  color: var(--accent-ink);
}
body.theme-oil main a:not(.btn):not(.project-card),
body.theme-biz main a:not(.btn):not(.project-card),
body.theme-social main a:not(.btn):not(.project-card),
body.theme-oil .site-footer a,
body.theme-biz .site-footer a,
body.theme-social .site-footer a {
  color: var(--accent-ink);
}
body.theme-biz .project-card h3,
body.theme-biz .project-go,
body.theme-social .project-card h3,
body.theme-social .project-go,
body.theme-oil .project-card h3,
body.theme-oil .project-go {
  color: var(--accent-ink);
}

.article-feature { background: var(--cream); border-bottom: 1px solid var(--line); }
.article-feature h2 { font-size: clamp(1.7rem, 3.4vw, 2.45rem); margin-bottom: 0.4rem; }
.article-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  padding-top: 1.6rem;
  padding-bottom: 1.8rem;
}
.article-cover { margin: 0; }
.article-cover img {
  width: 100%;
  max-width: 16rem;
  height: auto;
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
}
.article-en {
  margin: 0.15rem 0 0.7rem;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--accent-ink);
}
.article-pub { color: var(--ink-soft); }
.article-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
button.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 650;
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: underline;
}
dialog.article-viewer {
  width: min(960px, calc(100vw - 1rem));
  height: min(92vh, 920px);
  max-height: calc(100vh - 1rem);
  margin: auto;
  border: 0;
  border-radius: 16px;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog.article-viewer::backdrop { background: rgba(16, 24, 22, 0.72); }
.article-viewer-shell { display: flex; flex-direction: column; height: 100%; }
.article-viewer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.article-viewer-title { margin: 0; font-size: 1rem; color: var(--ink); }
.article-viewer-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.article-frame { display: block; width: 100%; flex: 1 1 auto; min-height: 0; height: auto; border: 0; background: #ebe4d6; }
@media (min-width: 800px) {
  .article-layout { grid-template-columns: minmax(200px, 280px) 1fr; gap: 1.8rem; align-items: center; }
  .article-cover img { max-width: none; }
}
