/* Layout concept: the existing ELW editorial system (forest bands, ivory pages, Cormorant headings
   with italic accents, terracotta eyebrows) re-cut as a personal portfolio: a short, decisive hero,
   narrow reading columns, and framed placeholders that hold the place of Erica's photographs. */
:root {
  --ivory: #F4F3F1;
  --paper: #FFFFFF;
  --sand: #EDE3D8;
  --sand-deep: #DECEBF;
  --forest: #3A4640;
  --forest-2: #4E5C53;
  --ink: #2D3830;
  --ink-soft: #55665B;
  --mist: #C4C9C2;
  --on-forest: #F4F3F1;
  --on-forest-soft: #C4C9C2;
  --clay: #D4967E;
  --clay-text: #9A5C47;
  --rule: rgba(45, 56, 48, 0.16);
  --rule-strong: rgba(45, 56, 48, 0.32);
  --ph-a: #E9E4DC;
  --ph-b: #F3EFE9;
  --ph-line: rgba(58, 70, 64, 0.28);
  --banner: #2D3830;
  --banner-fg: #EDE3D8;

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "Lora", Georgia, "Times New Roman", serif;

  --measure: 64ch;
  --wrap: 1120px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ivory: #1E2421; --paper: #252C28; --sand: #2B332E; --sand-deep: #343D37;
    --forest: #141917; --forest-2: #2A332E; --ink: #E7E5E0; --ink-soft: #AEB5AD;
    --mist: #8E978F; --on-forest: #EDEBE6; --on-forest-soft: #B9C0B7;
    --clay: #DDA28B; --clay-text: #E0A68F; --rule: rgba(231, 229, 224, 0.14); --rule-strong: rgba(231, 229, 224, 0.3);
    --ph-a: #29302C; --ph-b: #303833; --ph-line: rgba(231, 229, 224, 0.22);
    --banner: #0F1311; --banner-fg: #DECEBF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ivory: #1E2421; --paper: #252C28; --sand: #2B332E; --sand-deep: #343D37;
  --forest: #141917; --forest-2: #2A332E; --ink: #E7E5E0; --ink-soft: #AEB5AD;
  --mist: #8E978F; --on-forest: #EDEBE6; --on-forest-soft: #B9C0B7;
  --clay: #DDA28B; --clay-text: #E0A68F; --rule: rgba(231, 229, 224, 0.14); --rule-strong: rgba(231, 229, 224, 0.3);
  --ph-a: #29302C; --ph-b: #303833; --ph-line: rgba(231, 229, 224, 0.22);
  --banner: #0F1311; --banner-fg: #DECEBF;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--forest); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--clay); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--clay-text); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
h3 { font-size: 1.55rem; font-weight: 400; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--clay-text); }
.on-forest h1 em, .on-forest h2 em { color: var(--on-forest-soft); }
.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay-text);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.on-forest .eyebrow { color: var(--clay); }
.lede { font-size: 1.12rem; color: var(--ink-soft); }
.small { font-size: 0.88rem; }
.muted { color: var(--ink-soft); }

/* Staging banner */
.staging {
  background: var(--banner); color: var(--banner-fg); font-size: 0.78rem; letter-spacing: 0.04em;
  padding-block: 8px;
}
.staging .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.staging strong { font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; color: var(--clay); }
.staging a { color: var(--banner-fg); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--forest); color: var(--on-forest); border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { font-family: var(--display); font-size: 1.32rem; font-weight: 400; letter-spacing: 0.04em; text-decoration: none; color: var(--on-forest); white-space: nowrap; }
.brand span { color: var(--on-forest-soft); font-style: italic; font-weight: 300; }
.brand:hover { color: var(--on-forest); }
.nav-desktop { display: none; }
.nav-desktop ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav-desktop a {
  display: block; padding: 8px 10px; text-decoration: none; color: var(--on-forest-soft);
  font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase; border-bottom: 1px solid transparent;
}
.nav-desktop a:hover { color: var(--on-forest); }
.nav-desktop a[aria-current="page"] { color: var(--on-forest); border-bottom-color: var(--clay); }
.menu-btn {
  background: none; border: 1px solid rgba(244,243,241,0.28); color: var(--on-forest); font: inherit;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 10px 14px; cursor: pointer; min-height: 44px;
}
.nav-mobile { background: var(--forest); border-top: 1px solid rgba(255,255,255,0.08); }
.nav-mobile ul { list-style: none; margin: 0; padding: 8px 0 20px; }
.nav-mobile li > a { display: block; padding: 12px 0; text-decoration: none; color: var(--on-forest); font-family: var(--display); font-size: 1.45rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.nav-mobile a[aria-current="page"] { color: var(--clay); }
.nav-mobile .group { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.nav-mobile .group > span { font-family: var(--display); font-size: 1.45rem; color: var(--on-forest); }
.nav-mobile .group ul { padding: 4px 0 0 18px; }
.nav-mobile .group li > a { font-size: 1.15rem; border: 0; padding: 6px 0; color: var(--on-forest-soft); font-style: italic; }
@media (min-width: 1240px) {
  .nav-desktop { display: block; }
  .menu-btn, .nav-mobile { display: none !important; }
}

/* Sections */
.band { padding-block: clamp(64px, 8vw, 112px); }
.band--tight { padding-block: clamp(48px, 6vw, 80px); }
.band--sand { background: var(--sand); }
.band--paper { background: var(--paper); }
.on-forest { background: var(--forest); color: var(--on-forest); }
.on-forest .lede, .on-forest .muted { color: var(--on-forest-soft); }
.on-forest a { color: var(--on-forest); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Page hero (interior pages) */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 56ch; margin-top: 24px; }

/* Home hero */
.home-hero { padding-block: clamp(44px, 7vw, 96px) clamp(48px, 7vw, 96px); }
.home-hero .grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .home-hero .grid { grid-template-columns: 1.08fr 0.92fr; } }
.home-hero .masthead { font-family: var(--display); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.7rem); font-weight: 400; margin: 0 0 18px; color: var(--on-forest); letter-spacing: 0.01em; }
.home-hero .masthead span { font-style: italic; color: var(--on-forest-soft); font-weight: 300; }
.home-hero h1 { font-size: clamp(2.35rem, 1.5rem + 3.4vw, 4.1rem); }
.home-hero h1 span { display: block; }
.creds-line { margin: 26px 0 0; font-size: 0.92rem; color: var(--on-forest-soft); line-height: 1.7; }
.creds-line span + span::before { content: "·"; margin: 0 10px; color: var(--clay); }
.avail-line { margin: 18px 0 0; font-family: var(--display); font-style: italic; font-size: 1.35rem; color: var(--on-forest); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  font-family: var(--body); font-style: italic; font-size: 0.95rem; letter-spacing: 0.04em; text-decoration: none;
  border: 1px solid var(--clay); color: var(--ink); background: transparent; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: var(--clay); color: #2D3830; }
.btn--solid { background: var(--clay); color: #2D3830; }
.btn--solid:hover { background: transparent; color: var(--ink); }
.on-forest .btn { color: var(--on-forest); }
.on-forest .btn--solid { color: #2D3830; }
.on-forest .btn--solid:hover { color: var(--on-forest); }
.textlink { font-style: italic; text-decoration: none; border-bottom: 1px solid var(--clay); padding-bottom: 2px; }

/* Facts row */
.facts { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.fact { padding: 28px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.fact b { font-family: var(--display); font-weight: 300; font-size: 3rem; line-height: 1; color: var(--ink); }
.fact span { color: var(--ink-soft); font-size: 0.95rem; max-width: 30ch; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .fact { border-bottom: 0; padding: 36px 28px; }
  .fact + .fact { border-left: 1px solid var(--rule); }
  .fact:first-child { padding-left: 0; }
}

/* Two-column split */
.split { display: grid; gap: clamp(36px, 5vw, 72px); }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .split--rev { grid-template-columns: 1.1fr 0.9fr; }
  .split--rev > :first-child { order: 2; }
  .sticky-col { position: sticky; top: 112px; }
}
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 60ch; }

/* Photo placeholders */
.ph {
  position: relative; margin: 0; width: 100%; max-width: 100%;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, var(--ph-line) 14px 15px) center / 100% 100% no-repeat,
    linear-gradient(160deg, var(--ph-b), var(--ph-a));
  background-blend-mode: normal;
  border: 1px solid var(--ph-line); display: flex; align-items: flex-end; overflow: hidden;
}
.ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--ph-b) 0%, var(--ph-a) 100%); opacity: 0.86; }
.ph::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--ph-line); pointer-events: none; }
.ph .ph-in { position: relative; z-index: 1; padding: 26px 28px; display: grid; gap: 6px; font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); max-width: 46ch; }
.ph .ph-code { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay-text); }
.ph .ph-title { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; color: var(--ink); font-style: italic; }
.ph .ph-meta b { font-weight: 500; color: var(--ink); }
.ph--dark { --ph-a: #33403A; --ph-b: #46544B; --ph-line: rgba(244,243,241,0.22); }
.ph--dark .ph-in, .ph--dark .ph-title, .ph--dark .ph-meta b { color: #E7E9E4; }
.ph--dark .ph-code { color: #E2AE98; }
.r-3x2 { aspect-ratio: 3 / 2; } .r-4x5 { aspect-ratio: 4 / 5; } .r-5x4 { aspect-ratio: 5 / 4; } .r-16x9 { aspect-ratio: 16 / 9; } .r-21x9 { aspect-ratio: 21 / 9; } .r-1x1 { aspect-ratio: 1 / 1; } .r-3x4 { aspect-ratio: 3 / 4; }
@media (max-width: 560px) { .r-21x9 { aspect-ratio: 3 / 2; } .ph .ph-in { padding: 22px 22px; } }

/* Markers list */
.marks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.marks li { position: relative; padding-left: 26px; }
.marks li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--clay); font-size: 0.8rem; line-height: 2.1; }

/* Principles */
.principles { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.principle { display: grid; gap: 10px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.principle h3 { font-size: 1.7rem; }
.principle p { margin: 0; max-width: 62ch; }
@media (min-width: 860px) { .principle { grid-template-columns: 0.42fr 0.58fr; gap: 40px; padding: 38px 0; } }

/* Experience timeline */
.roles { display: grid; border-top: 1px solid var(--rule-strong); }
.role { display: grid; gap: 10px 48px; padding: 34px 0; border-bottom: 1px solid var(--rule); }
.role > * { min-width: 0; }
.role .when { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay-text); }
.role .where { font-family: var(--display); font-size: 1.6rem; line-height: 1.15; margin-top: 4px; }
.role .what { font-style: italic; color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }
.role p { margin: 0 0 1em; }
.role p:last-child { margin: 0; }
@media (min-width: 860px) { .role { grid-template-columns: 0.36fr 0.64fr; } }
.role--lead .where { font-size: 2rem; }

/* Training */
.train { display: grid; gap: 22px; }
@media (min-width: 760px) { .train { grid-template-columns: repeat(2, 1fr); } }
.train-group { background: var(--paper); border: 1px solid var(--rule); padding: 26px 26px 24px; }
.train-group h3 { font-size: 1.3rem; margin-bottom: 14px; }
.train-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.train-group li { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.status { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--rule-strong); color: var(--ink-soft); white-space: nowrap; }
.status--progress { border-color: var(--clay); color: var(--clay-text); }

/* Degree blocks */
.degree { display: grid; gap: 8px 48px; padding: 34px 0; border-bottom: 1px solid var(--rule); }
.degree:first-of-type { border-top: 1px solid var(--rule-strong); }
.degree .yr { font-family: var(--display); font-size: 2.6rem; font-weight: 300; line-height: 1; color: var(--clay-text); }
.degree h3 { font-size: 1.65rem; }
.degree .inst { font-style: italic; color: var(--ink-soft); margin: 4px 0 12px; }
.degree p { margin: 0 0 0.9em; max-width: 62ch; }
@media (min-width: 860px) { .degree { grid-template-columns: 160px 1fr; } }

/* Prefs definition list */
.prefs { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--rule-strong); }
.prefs > div { display: grid; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.prefs dt { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--clay-text); padding-top: 4px; }
.prefs dd { margin: 0; }
@media (min-width: 700px) { .prefs > div { grid-template-columns: 200px 1fr; } }

/* Work cards */
.work-cards { display: grid; gap: 28px; }
@media (min-width: 860px) { .work-cards { grid-template-columns: repeat(3, 1fr); } }
.work-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--rule); }
.work-card:hover { color: inherit; border-color: var(--clay); }
.work-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); border-bottom: 1px solid var(--rule); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-card .body { padding: 22px 24px 26px; display: grid; gap: 8px; align-content: start; }
.work-card .num { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay-text); }
.work-card h3 { font-size: 1.5rem; }
.work-card p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.label {
  display: inline-block; justify-self: start; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--clay); color: var(--clay-text); background: transparent; line-height: 1.4;
}

/* Case studies */
.case { display: grid; gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--rule-strong); }
.case > * { min-width: 0; }
@media (min-width: 960px) { .case { grid-template-columns: 0.85fr 1.15fr; } .case .sticky-col { position: sticky; top: 112px; align-self: start; } }
.case .num { font-family: var(--display); font-size: 3.6rem; font-weight: 300; line-height: 1; color: var(--clay-text); }
.case h2 { margin-top: 10px; }
.case .sub { font-style: italic; color: var(--ink-soft); margin: 10px 0 22px; font-size: 1.05rem; }
.case .prose { margin-bottom: 26px; }
.case h3.caps { font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay-text); margin: 0 0 14px; font-weight: 400; }
.notice { margin-top: 26px; padding: 16px 18px; border: 1px dashed var(--clay); font-size: 0.85rem; color: var(--ink-soft); background: var(--paper); }
.notice b { color: var(--ink); font-weight: 500; }

.gallery { display: grid; gap: 16px; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery .shot { margin: 0; display: grid; gap: 8px; }
.gallery .shot button { all: unset; cursor: zoom-in; display: block; border: 1px solid var(--rule); background: var(--paper); }
.gallery .shot button:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.gallery .shot img { width: 100%; }
.gallery figcaption { font-size: 0.8rem; color: var(--ink-soft); font-style: italic; }
.shot--wide { grid-column: 1 / -1; }
.ribbon { position: relative; }
.ribbon::after {
  content: attr(data-ribbon); position: absolute; left: 10px; top: 10px; background: var(--forest); color: #F4F3F1;
  font-family: var(--body); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 9px; pointer-events: none;
}

dialog.viewer { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
dialog.viewer::backdrop { background: rgba(20, 25, 23, 0.86); }
dialog.viewer img { max-height: 84vh; width: auto; margin: 0 auto; background: #fff; }
dialog.viewer .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #EDE3D8; font-size: 0.82rem; padding: 10px 2px; }
dialog.viewer button { background: none; border: 1px solid rgba(237,227,216,0.4); color: #EDE3D8; font: inherit; padding: 8px 14px; cursor: pointer; }

/* Synthetic demo (project 01) */
.demo { background: #FAF8F4; color: #2D3830; border: 1px solid var(--rule); padding: clamp(16px, 3vw, 28px); font-family: var(--body); }
.demo-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; border-bottom: 1px solid #D9D2C7; padding-bottom: 12px; }
.demo-top h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.demo-top span { font-size: 0.75rem; font-style: italic; color: #6B776F; }
.demo h5 { margin: 18px 0 8px; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: #5F7A64; font-weight: 500; }
.demo-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-size: 0.72rem; }
@media (min-width: 560px) { .demo-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.demo-tiles span { padding: 7px 9px; background: #E7EBE3; border: 1px solid #D6DDD2; }
.demo-tiles span.r { background: #F3E1D8; border-color: #E6C8BA; color: #8A4E3B; }
.demo-glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .demo-glance { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.demo-glance div { background: #fff; border: 1px solid #E1DBD1; padding: 10px; text-align: center; }
.demo-glance b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 400; line-height: 1; }
.demo-glance small { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: #6B776F; }
.demo-glance .warn { background: #F6EDE2; } .demo-glance .alert { background: #F3E1D8; }
.demo-table-wrap { overflow-x: auto; border: 1px solid #E1DBD1; background: #fff; }
.demo table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.74rem; }
.demo th { text-align: left; background: #8C9A84; color: #fff; font-weight: 500; padding: 7px 9px; }
.demo td { padding: 7px 9px; border-top: 1px solid #ECE7DF; vertical-align: top; }
.pill { display: inline-block; padding: 1px 7px; font-size: 0.66rem; border-radius: 2px; }
.pill.hi { background: #F3E1D8; color: #8A4E3B; } .pill.md { background: #F6EDE2; color: #7A5F2E; } .pill.lo { background: #E7EBE3; color: #4F6152; }
.demo-foot { margin-top: 12px; font-size: 0.7rem; color: #6B776F; font-style: italic; }

/* Contact */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong);
  padding: 12px 14px; border-radius: 0; min-height: 48px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--clay); outline-offset: 0; border-color: var(--clay); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-msg { padding: 14px 16px; border: 1px solid var(--clay); background: var(--sand); font-size: 0.9rem; }

/* Closing CTA */
.closing { text-align: left; }
.closing .wrap { display: grid; gap: 22px; }
.closing h2 { max-width: 20ch; }

/* Footer */
.site-footer { background: var(--forest); color: var(--on-forest-soft); padding-block: 56px 40px; font-size: 0.88rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.site-footer .sig { font-family: var(--display); font-size: 1.5rem; color: var(--on-forest); }
.site-footer .sig span { font-style: italic; color: var(--on-forest-soft); font-weight: 300; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--on-forest-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-forest); }
.site-footer .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; }
.site-footer .meta span + span::before { content: "|"; margin-right: 14px; color: var(--clay); }

/* Notes page */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper); }
.tbl { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.88rem; line-height: 1.5; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font-weight: 500; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-text); background: var(--sand); }
.tbl code { font-size: 0.85em; background: var(--sand); padding: 1px 5px; }
.notes-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; }
.notes h2 { margin: 0 0 20px; }
.notes section { padding-block: 48px; border-top: 1px solid var(--rule); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border: 1px solid var(--rule-strong); }
.checklist li.done::before { background: var(--forest-2); border-color: var(--forest-2); }
.checklist li.done::after { content: "✓"; position: absolute; left: 3px; top: 0; color: #F4F3F1; font-size: 0.75rem; }
.q { background: var(--paper); border-left: 2px solid var(--clay); padding: 14px 18px; }
.q-list { display: grid; gap: 12px; counter-reset: q; list-style: none; padding: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 520px) {
  .brand { white-space: normal; font-size: 1.12rem; line-height: 1.2; min-width: 0; }
  .brand span { display: block; font-size: 0.95rem; }
  .menu-btn { flex: none; }
}
.nav-desktop a { white-space: nowrap; padding: 8px 8px; font-size: 0.7rem; letter-spacing: 0.12em; }
.creds-line { display: flex; flex-wrap: wrap; gap: 2px 0; }
@media (max-width: 640px) {
  .creds-line { flex-direction: column; gap: 4px; }
  .creds-line span + span::before { content: none; }
  .fact { padding: 20px 0; }
  .fact b { font-size: 2.4rem; }
  .home-hero .masthead { display: none; }
}
.gallery .shot button.ribbon { position: relative; display: block; }

/* Audit fixes, Oct 23 */
.brand span::before, .site-footer .sig span::before, .home-hero .masthead span::before { content: "· "; }
.site-footer .sig span { white-space: nowrap; }
.ph { overflow: visible; min-height: 0; }
.ph::before { overflow: hidden; }
.site-footer .meta { gap: 6px 0; }
.site-footer .meta span { white-space: nowrap; }
.site-footer .meta span + span::before { content: "|"; margin: 0 14px; }
@media (max-width: 640px) {
  .site-footer .meta { flex-direction: column; gap: 4px; }
  .site-footer .meta span + span::before { content: none; }
}
.train-group li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.train-group li .status { margin-top: 3px; }
@media (max-width: 520px) {
  .brand span::before { content: none; }
  .demo table { min-width: 0; font-size: 0.7rem; }
  .demo th, .demo td { padding: 6px 6px; }
  .demo th:nth-child(2), .demo td:nth-child(2) { width: 22%; }
}
.ph { min-height: auto; }
.ribbon::after { top: auto; bottom: 10px; }
@media (max-width: 560px) {
  .gallery--2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .site-footer .sig span { display: block; }
  .site-footer .sig span::before { content: none; }
}
.gallery { align-content: start; }
.creds-line { flex-direction: column; gap: 4px; }
.creds-line span + span::before { content: none; }
.avail-note { margin: 8px 0 0; font-size: 0.92rem; color: var(--on-forest-soft); max-width: 48ch; line-height: 1.6; }

/* Built for ROTA */
.rota-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.rota-grid > * { min-width: 0; }
@media (min-width: 900px) { .rota-grid { grid-template-columns: 1.15fr 0.85fr; } }
.caps-head { font-family: var(--body); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay-text); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.rota-list { gap: 16px; font-size: 0.97rem; }
.rota-list b { font-weight: 500; color: var(--ink); }
.rota-close { margin: clamp(36px, 4vw, 52px) 0 0; max-width: 60ch; font-family: var(--display); font-style: italic; font-size: 1.4rem; line-height: 1.45; color: var(--ink); }

/* Four Selected Work cards: two by two, then one row on wide screens */
@media (min-width: 860px) { .work-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .work-cards { grid-template-columns: repeat(4, 1fr); } .work-card h3 { font-size: 1.35rem; } }

/* Interim photos and hidden photo slots (October 30). A slot marked slot-pending stays in the code,
   ready for its January photo, and its layout closes up while it waits. */
.slot-pending { display: none !important; }
.split:has(> .slot-pending), .split--rev:has(> .slot-pending) { grid-template-columns: minmax(0, 1fr); }
.home-hero .grid:has(> .slot-pending) { grid-template-columns: minmax(0, 1fr); }
.photo { margin: 0; overflow: hidden; background: var(--sand); border: 1px solid var(--rule); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo--hero { width: 100%; max-width: 440px; justify-self: center; border-color: rgba(244,243,241,0.22); }
.photo--grad img { object-position: center 30%; }
.split--photo > :last-child { max-width: 360px; }
.photo-cap { font-style: italic; font-size: 0.88rem; color: var(--ink-soft); margin: 10px 0 0; }
@media (min-width: 900px) { .split--photo { align-items: end; } .split--photo > :last-child { justify-self: end; width: 100%; } }
@media (max-width: 899px) { .photo--hero { max-width: 320px; justify-self: start; } .split--photo > :last-child { max-width: 300px; } }
/* Keep reading width comfortable where a photo column is waiting */
.split:has(> .slot-pending) > :not(.slot-pending) { max-width: 68ch; }

/* Round headshots (November 2): circular portrait inside a thin terracotta ring */
.photo--hero, .photo--round { border-radius: 50%; aspect-ratio: 1 / 1; padding: 8px; background: transparent; border: 1px solid var(--clay); }
.photo--hero img, .photo--round img { border-radius: 50%; }
.photo--hero { max-width: 400px; }
.photo--about { max-width: 280px; }
.photo--about img { object-position: center 35%; }
@media (max-width: 899px) {
  .photo--hero { max-width: 260px; padding: 6px; }
  .photo--about { max-width: 220px; padding: 6px; }
}
.photo--cider { max-width: 320px; margin-inline: auto; }
@media (max-width: 899px) { .photo--cider { max-width: 260px; margin-inline: 0; } }
