/* ============================================================
   Jayanta Shaw — personal site
   Plain CSS, no build step, no external dependencies.
   ============================================================ */

/* ---- Tokens: light is the base, dark overrides below ------- */
:root {
  --bg:            #fbf9f6;
  --bg-alt:        #f2eee8;
  --surface:       #ffffff;
  --surface-2:     #f7f4ef;
  --border:        #e3ddd3;
  --text:          #1c1a17;
  --text-soft:     #5d574e;
  --text-faint:    #8b8479;
  --accent:        #c2521f;
  --accent-soft:   #e8703a;
  --accent-wash:   rgba(194, 82, 31, .10);
  --shadow:        0 1px 2px rgba(28,26,23,.05), 0 12px 28px -12px rgba(28,26,23,.16);
  --shadow-lg:     0 2px 4px rgba(28,26,23,.06), 0 28px 60px -24px rgba(28,26,23,.28);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #14120f;
    --bg-alt:      #1a1714;
    --surface:     #1e1b17;
    --surface-2:   #262119;
    --border:      #35302a;
    --text:        #f3efe8;
    --text-soft:   #b9b1a5;
    --text-faint:  #8b8377;
    --accent:      #f08149;
    --accent-soft: #f5a179;
    --accent-wash: rgba(240, 129, 73, .13);
    --shadow:      0 1px 2px rgba(0,0,0,.4), 0 12px 28px -12px rgba(0,0,0,.6);
    --shadow-lg:   0 2px 4px rgba(0,0,0,.4), 0 28px 60px -24px rgba(0,0,0,.75);
  }
}

:root[data-theme="dark"] {
  --bg:          #14120f;
  --bg-alt:      #1a1714;
  --surface:     #1e1b17;
  --surface-2:   #262119;
  --border:      #35302a;
  --text:        #f3efe8;
  --text-soft:   #b9b1a5;
  --text-faint:  #8b8377;
  --accent:      #f08149;
  --accent-soft: #f5a179;
  --accent-wash: rgba(240, 129, 73, .13);
  --shadow:      0 1px 2px rgba(0,0,0,.4), 0 12px 28px -12px rgba(0,0,0,.6);
  --shadow-lg:   0 2px 4px rgba(0,0,0,.4), 0 28px 60px -24px rgba(0,0,0,.75);
}

/* ---- Reset-ish --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; color: var(--text-soft); }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 5px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 2.5rem, 760px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Header ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-family: var(--serif); font-size: .95rem; font-weight: 700; letter-spacing: .02em;
}
.brand-name { font-family: var(--serif); font-size: 1.06rem; font-weight: 600; }

.site-nav ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .45rem .62rem; border-radius: 999px;
  color: var(--text-soft); text-decoration: none; font-size: .9rem;
  white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.site-nav a.nav-cta { padding-inline: .9rem; }
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a.active { color: var(--accent); background: var(--accent-wash); }
.site-nav a.nav-cta { background: var(--accent); color: #fff; }
.site-nav a.nav-cta:hover { background: var(--accent-soft); }

.theme-toggle, .nav-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-soft); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun,
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 17px; height: 1.8px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* ---- Hero -------------------------------------------------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.eyebrow {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .7rem;
}
.accent { color: var(--accent); }
.lede { font-size: 1.12rem; max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .72rem 1.4rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.social { display: flex; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 12px; color: var(--text-soft);
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: currentColor; }

/* Portrait */
.hero-portrait { position: relative; justify-self: center; width: min(100%, 360px); }
.portrait-frame {
  position: relative; z-index: 1; margin: 0;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-ph {
  display: grid; place-content: center; justify-items: center; gap: .6rem;
  width: 100%; height: 100%; color: var(--text-faint);
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, var(--accent-wash) 12px 24px);
}
.portrait-ph svg { width: 58px; height: 58px; fill: currentColor; opacity: .5; }
.portrait-ph span { font-family: var(--mono); font-size: .8rem; }
.portrait-glow {
  position: absolute; inset: -14% -10% -10% -14%; z-index: 0;
  background: radial-gradient(60% 55% at 40% 35%, var(--accent-wash), transparent 70%);
  filter: blur(6px);
}

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.stats > div { background: var(--bg); padding: 1.3rem 1.2rem; }
.stats dt { font-size: .8rem; color: var(--text-faint); letter-spacing: .04em; }
.stats dd { margin: .15rem 0 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; }

/* ---- Sections ---------------------------------------------- */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-sub { color: var(--text-faint); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.facts { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .55rem; }
.facts li { display: flex; gap: .8rem; font-size: .95rem; color: var(--text-soft); }
.facts span {
  flex: 0 0 92px; color: var(--text-faint);
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  padding-top: .28rem;
}

/* Skills */
.skills {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.skills h3 { margin-bottom: 1.3rem; }
.skill { margin-bottom: 1.05rem; }
.skill span { display: block; font-size: .92rem; margin-bottom: .4rem; color: var(--text-soft); }
.skill i {
  display: block; height: 6px; border-radius: 999px;
  background: var(--accent); width: 0;
  transition: width 1.1s var(--ease);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

/* Newsrooms & desks list */
.orgs { list-style: none; margin: 0; padding: 0; }
.orgs li {
  display: flex; flex-direction: column;
  padding: .7rem 0 .7rem 1rem;
  border-left: 2px solid var(--border);
  transition: border-color .22s var(--ease), padding-left .22s var(--ease);
}
.orgs li:hover { border-left-color: var(--accent); padding-left: 1.25rem; }
.orgs strong { font-size: .98rem; font-weight: 600; }
.orgs span { font-size: .82rem; color: var(--text-faint); }

/* ---- Personal details -------------------------------------- */
.details-head {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.3rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--border);
}
.detail-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: .9rem;
}
.detail {
  display: flex; align-items: center; gap: .9rem;
  padding: .95rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.detail:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow);
}
.detail-icon {
  flex: 0 0 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface-2); border-radius: 50%;
  color: var(--accent);
}
.detail-icon svg { width: 21px; height: 21px; fill: currentColor; }
/* punch-out for the map pin, matched to the chip background */
.detail-icon svg .hole { fill: var(--surface-2); }
.detail-text { display: flex; flex-direction: column; min-width: 0; }
.detail-text strong { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.detail-text span { font-size: .8rem; color: var(--text-faint); }

/* ---- Cards ------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.card-thumb {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.6rem; color: #fff; opacity: .95;
  background: linear-gradient(140deg,
    hsl(var(--h, 14) 62% 52%),
    hsl(calc(var(--h, 14) + 28) 58% 42%));
}
.card-thumb span { mix-blend-mode: overlay; font-weight: 700; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-tag {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: .4rem;
}
.card-body p:not(.card-tag) { font-size: .95rem; flex: 1; }
.card-link { font-size: .93rem; font-weight: 600; text-decoration: none; align-self: flex-start; }
.card-link span { display: inline-block; transition: transform .2s var(--ease); }
.card-link:hover span { transform: translateX(4px); }

/* ---- Coverage: major assignments --------------------------- */
.events {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .85rem;
}
.event {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1.05rem 1.15rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* a thin accent rule that draws itself in on hover */
.event::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.event:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow);
}
.event:hover::before { transform: scaleY(1); }
.event strong { font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.event > span { font-size: .82rem; color: var(--text-faint); }

/* Published in */
.press { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.press h3 {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.press-strip {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.press-strip li {
  flex: 1 1 190px;
  padding: 1rem .9rem; text-align: center;
  background: var(--bg-alt);
  font-family: var(--serif); font-size: 1rem; letter-spacing: .01em;
  color: var(--text-soft);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.press-strip li:hover { color: var(--text); background: var(--surface); }
.press-note { margin: 1rem 0 0; font-size: .88rem; color: var(--text-faint); max-width: 68ch; }

/* ---- Film, exhibitions ------------------------------------- */
.col-head {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.work {
  padding: 1.1rem 1.25rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.work:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.work-year {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em;
  color: var(--accent); margin-bottom: .25rem;
}
.work h4 {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600;
  margin: 0 0 .35rem; line-height: 1.25;
}
.work p:last-child { margin: 0; font-size: .9rem; }

/* ---- Awards ------------------------------------------------ */
.awards { list-style: none; margin: 0; padding: 0; }
.award {
  display: flex; gap: 1.2rem; align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.award:first-child { border-top: 1px solid var(--border); }
.award-year {
  flex: 0 0 96px;
  font-family: var(--mono); font-size: .82rem; color: var(--accent);
  padding-top: .1rem;
}
.award div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.award strong { font-size: 1rem; font-weight: 600; }
.award div > span { font-size: .88rem; color: var(--text-soft); }

/* ---- Gallery ----------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.tile {
  position: relative; aspect-ratio: 1; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg,
    hsl(var(--h, 14) 55% 55%),
    hsl(calc(var(--h, 14) + 34) 52% 40%));
  color: #fff; font-family: var(--serif); font-size: 1.6rem; font-weight: 600;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.tile span { opacity: .55; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.18); opacity: 0; transition: opacity .25s var(--ease);
}
.tile:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.tile:hover::after { opacity: 1; }

/* ---- Timeline ---------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.9rem; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: .5rem; bottom: .5rem;
  width: 2px; background: linear-gradient(var(--accent), transparent);
}
.timeline li { position: relative; padding-bottom: 2.2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.9rem; top: .55rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--accent);
}
.tl-year {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .04em;
  color: var(--accent); margin-bottom: .3rem;
}
.timeline h3 { margin-bottom: .2rem; }
.timeline p { font-size: .95rem; }
.timeline p:last-child { margin: 0; }
.tl-org {
  font-size: .88rem; font-weight: 600;
  color: var(--text); margin-bottom: .45rem;
}
.tl-also {
  margin-top: .5rem; font-size: .84rem; color: var(--text-faint);
  padding-left: .8rem; border-left: 2px solid var(--border);
}

/* Education entries sit on the same spine, marked apart */
.timeline li.tl-edu::before {
  background: var(--bg-alt);
  border-color: var(--text-faint);
}
.tl-edu .tl-year { color: var(--text-faint); }
.tl-chip {
  display: inline-block; margin-left: .5rem;
  padding: .1rem .5rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); vertical-align: 1px;
}

/* ---- Contact ----------------------------------------------- */
.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.contact-list li { display: flex; gap: .9rem; align-items: baseline; font-size: .96rem; color: var(--text-soft); }
.contact-list span {
  flex: 0 0 92px; color: var(--text-faint);
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
}

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .82rem; letter-spacing: .05em; color: var(--text-faint); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .72rem .9rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font: inherit; font-size: .96rem; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field select {
  width: 100%; padding: .72rem .9rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  font: inherit; font-size: .96rem; cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) center, calc(100% - 13px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d64545; }

/* Honeypot — off-screen rather than display:none, which some bots skip */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Anti-spam question */
.captcha { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.captcha-q {
  flex: 1 1 auto; margin: 0; min-width: 140px;
  padding: .72rem .9rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  font-size: .93rem; color: var(--text); user-select: none;
}
.captcha input { flex: 0 0 92px; width: 92px; text-align: center; }
.captcha-refresh {
  flex: 0 0 auto;
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-soft); cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease);
}
.captcha-refresh:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-90deg); }
.captcha-refresh svg { width: 17px; height: 17px; }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.form-note { margin: .9rem 0 0; font-size: .9rem; min-height: 1.3em; }
.form-note.ok { color: var(--accent); }
.form-note.err { color: #d64545; }

/* ---- Footer ------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); padding: 1.8rem 0; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; font-size: .9rem; color: var(--text-faint); }
.to-top { font-size: .9rem; text-decoration: none; font-weight: 600; }

/* ---- Lightbox ---------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 2rem;
  background: rgba(10,8,6,.85); backdrop-filter: blur(6px);
  animation: fade .2s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(90vw, 720px); text-align: center; }
.lb-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-size: 4rem;
  background: linear-gradient(150deg, hsl(var(--h,14) 55% 52%), hsl(calc(var(--h,14) + 34) 52% 38%));
}
.lightbox figcaption { color: #f3efe8; margin-top: .9rem; font-size: .95rem; }
.lb-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 42px; height: 42px; font-size: 1.7rem; line-height: 1;
  background: rgba(255,255,255,.12); color: #fff;
  border: 0; border-radius: 50%; cursor: pointer;
}
.lb-close:hover { background: rgba(255,255,255,.22); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* ---- Reveal on scroll -------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }

/* ---- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; width: min(100%, 280px); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .award { flex-direction: column; gap: .25rem; }
  .award-year { flex-basis: auto; }
  .press-strip li { flex-basis: 100%; }
}

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .6rem 1.25rem 1.1rem;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .site-nav a { padding: .7rem .8rem; border-radius: 10px; }
  .site-nav a.nav-cta { text-align: center; margin-top: .4rem; }
  .header-inner { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
