@charset "UTF-8";

/* ===========================================================================
   elliotdennis.com

   ZONES — the page is one continuous gradient from formal to informal:

     hero / work / systems / track   restrained. Cool paper, hairline rules,
                                     a faint drawing grid, tight Inter, numbers
                                     set like a schedule.
     fold                            the hinge. The diagonal safety stripe from
                                     the old construction page, reused as a
                                     transition device.
     book / contact                  warm kraft paper, photographs in white
                                     frames, tape, a script face, things sitting
                                     slightly askew.

   Colour, type scale and spacing are shared throughout; what changes between
   zones is the paper, the rules and how straight things are hung.
   ======================================================================== */

/* --- tokens ------------------------------------------------------------- */

:root {
  color-scheme: light;

  --paper:        #f7f6f2;
  --paper-2:      #ffffff;
  --paper-warm:   #f2ebde;
  --paper-warm-2: #fbf7ef;

  --ink:    #17191d;
  --ink-2:  #545861;
  --ink-3:  #83868e;

  --gold:        #a9741a;
  --gold-bright: #e8a317;
  --steel:       #2b4257;

  --line:   rgba(23, 25, 29, 0.14);
  --line-2: rgba(23, 25, 29, 0.07);
  --shadow: rgba(23, 25, 29, 0.13);

  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:  "Fraunces", Georgia, "Times New Roman", serif;
  --script: "Yellowtail", "Segoe Script", cursive;

  --wrap: 1160px;
  --gut:  clamp(1rem, 4vw, 2.5rem);

  --r-sm: 3px;
  --r-md: 6px;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Dark palette is declared twice: once behind the OS preference for the
   "auto" default, and once for an explicit toggle. */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;

    --paper:        #121317;
    --paper-2:      #191b20;
    --paper-warm:   #17140f;
    --paper-warm-2: #211c15;

    --ink:    #eceae4;
    --ink-2:  #a2a4ac;
    --ink-3:  #7b7e87;

    --gold:        #e8b44a;
    --gold-bright: #f0ae2a;
    --steel:       #8fb4d4;

    --line:   rgba(236, 234, 228, 0.16);
    --line-2: rgba(236, 234, 228, 0.08);
    --shadow: rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper:        #121317;
  --paper-2:      #191b20;
  --paper-warm:   #17140f;
  --paper-warm-2: #211c15;

  --ink:    #eceae4;
  --ink-2:  #a2a4ac;
  --ink-3:  #7b7e87;

  --gold:        #e8b44a;
  --gold-bright: #f0ae2a;
  --steel:       #8fb4d4;

  --line:   rgba(236, 234, 228, 0.16);
  --line-2: rgba(236, 234, 228, 0.08);
  --shadow: rgba(0, 0, 0, 0.55);
}

/* --- base --------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* the sticky topbar must not cover anchored headings */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* scrapbook tilts must not create a scrollbar */
}

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

a { color: inherit; }

:where(a, button):focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
p, ul { margin: 0; }
ul { list-style: none; padding: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* --- the safety stripe -------------------------------------------------
   Carried over from the site's under-construction page: a 45° hazard stripe
   in gold and ink. It is the one motif that appears in every zone.          */

.mark__rule,
.fold__stripe,
.foot__stripe {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--gold-bright) 0 10px,
    var(--ink) 10px 20px
  );
}

/* --- topbar ------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--line); }

.topbar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem var(--gut);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.mark__rule {
  width: 26px;
  height: 7px;
  border-radius: 4px;
  flex: none;
}
.mark__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.mark__cred {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0.05rem 0.3rem;
  flex: none;
}

.nav ul { display: flex; gap: 1.6rem; }
.nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 0.3rem;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gold-bright);
  transition: right 0.28s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a.is-current::after { right: 0; }
.nav a.is-current { color: var(--ink); }

@media (max-width: 820px) { .nav { display: none; } }

.themebtn {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.themebtn:hover { border-color: var(--ink-3); transform: rotate(18deg); }
.themebtn__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  /* half-moon: the "unlit" side is cut by an inset shadow of the paper */
  box-shadow: inset -4px -1px 0 0 var(--paper);
}

/* ===================================================== ZONE 1 — HERO ===== */

.hero {
  position: relative;
  padding-top: clamp(3rem, 9vw, 6.5rem);
  overflow: hidden;
}

/* faint drawing grid, fading out downward */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 360px; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.4rem;
}
.eyebrow__tick {
  width: 18px;
  height: 1.5px;
  background: var(--gold-bright);
  flex: none;
}

.hero__name {
  font-family: var(--serif);
  /* the floor has to leave room for ", FMP" on a 390px screen */
  font-size: clamp(2.15rem, 9vw, 5.1rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
.hero__cred {
  font-family: var(--sans);
  font-size: 0.26em;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  vertical-align: 0.9em;
  margin-left: 0.1em;
  white-space: nowrap;
}

.hero__role {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.32rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  padding-left: 1rem;
  border-left: 2px solid var(--gold-bright);
}

.hero__lede {
  margin-top: 1.6rem;
  max-width: 56ch;
  color: var(--ink-2);
}

.hero__cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--ink-3);
  box-shadow: 0 6px 18px -10px var(--shadow);
}
.btn__meta {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover { border-color: var(--ink); }
.btn--quiet { background: transparent; }

/* hero portrait — crop marks, not tape: this end of the page is formal */
.hero__portrait {
  position: relative;
  margin: 0;
  justify-self: center;
  width: min(360px, 74vw);
}
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  box-shadow: 0 24px 50px -30px var(--shadow);
}
.portrait__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the studio frame is 3:2 with him centre-left of middle */
  object-position: 48% 50%;
}
.portrait__tape {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--gold-bright);
  pointer-events: none;
}
.portrait__tape--a {
  top: -9px; left: -9px;
  border-right: 0;
  border-bottom: 0;
}
.portrait__tape--b {
  bottom: -9px; right: -9px;
  border-left: 0;
  border-top: 0;
}

/* stats strip */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  padding-top: 0;
}
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stat {
  padding: 1.5rem 1.1rem 1.7rem 0;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
@media (min-width: 760px) {
  .stat { border-bottom: 0; }
  .stat:last-child { border-right: 0; }
}
@media (max-width: 759px) {
  .stat:nth-child(2n) { border-right: 0; padding-left: 1.1rem; }
  .stat:nth-last-child(-n + 2) { border-bottom: 0; }
}

.stat__value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__unit {
  font-family: var(--sans);
  font-size: 0.36em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-left: 0.22em;
}
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
}
.stat__note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

/* ================================================== ZONES — SHARED ====== */

.zone { padding-block: clamp(3.5rem, 9vw, 7rem); }

.sechead { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); max-width: 62ch; }
.sechead__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.sechead__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 2.1vw, 2.9rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.sechead__sub {
  margin-top: 0.9rem;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ===================================================== ZONE 2 — WORK ===== */

.zone--work { border-top: 1px solid var(--line); }

.work {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.card {
  display: grid;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
  padding-top: clamp(1.6rem, 4vw, 2.4rem);
  border-top: 1px solid var(--line-2);
}
.card:first-child { border-top: 0; padding-top: 0; }

@media (min-width: 880px) {
  .card { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); }
  /* alternate which side the photograph hangs on */
  .card:nth-of-type(even) .card__body   { order: 2; }
  .card:nth-of-type(even) .card__figure { order: 1; }
  .card--nophoto { grid-template-columns: minmax(0, 1fr); }
  .card--nophoto .card__body { max-width: 68ch; }
}

.card__index {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.7rem;
}

.card__venue {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  letter-spacing: -0.028em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem;
}
.card__kicker {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 0.12rem 0.45rem;
  white-space: nowrap;
}

.card__roles {
  margin-top: 1rem;
  display: grid;
  gap: 0.3rem;
}
.card__roles li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dotted var(--line);
}
.card__title { font-size: 0.93rem; font-weight: 600; }
.card__dates {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card__blurb {
  margin-top: 1.2rem;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--ink);
}

.card__points {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.7rem;
}
.card__points li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.card__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1.5px;
  background: var(--gold-bright);
}

.card__figure { margin: 0; }
.card__img {
  width: 100%;
  border-radius: var(--r-sm);
  box-shadow: 0 20px 44px -28px var(--shadow);
  cursor: zoom-in;
  transition: transform 0.35s var(--ease);
}
.card__img:hover { transform: scale(1.012); }
.card__cap {
  margin-top: 0.8rem;
  padding-left: 0.85rem;
  border-left: 1.5px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* earlier KSU roles */
.early {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--paper-2) 60%, transparent);
}
.early__head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.early__list { display: grid; gap: 0.45rem; }
.early__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dotted var(--line);
}
.early__title { font-size: 0.9rem; font-weight: 600; }
.early__note {
  font-size: 0.7rem;
  color: var(--ink-3);
  font-style: italic;
}
.early__dates {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.early__blurb {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ================================================== ZONE 3 — SYSTEMS ==== */

.zone--systems {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 45%, transparent);
}

.spec { display: grid; }

.spec__row {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line-2);
  align-items: baseline;
}
.spec__row:first-child { border-top: 1px solid var(--line); }
.spec__row:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 760px) {
  .spec__row { grid-template-columns: 15rem minmax(0, 1fr); }
}

.spec__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.spec__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.spec__items li {
  font-size: 0.8rem;
  color: var(--ink-2);
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.spec__items li:hover { color: var(--ink); border-color: var(--ink-3); }

/* ==================================================== ZONE 4 — TRACK ==== */

.zone--track { border-top: 1px solid var(--line); }

.track {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 760px) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.track__head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.track__list { display: grid; gap: 1.6rem; }
.track__kind {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.track__what {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 0.15rem;
}
.track__where {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
}
.track__when {
  margin-left: auto;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ===================================================== FOLD — the hinge = */

.fold {
  position: relative;
  height: clamp(3.5rem, 9vw, 5.5rem);
  background: linear-gradient(to bottom, var(--paper) 0%, var(--paper-warm) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fold::before,
.fold::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: var(--line);
}
.fold::before { top: 0; }
.fold::after  { bottom: 0; opacity: 0.5; }

.fold__stripe {
  width: min(140px, 40vw);
  height: 9px;
  border-radius: 5px;
  opacity: 0.85;
}

/* ================================================= ZONE 5 — SCRAPBOOK === */

.zone--book,
.zone--contact {
  background: var(--paper-warm);
  position: relative;
}
/* a faint paper tooth, so the warm zones do not read as flat fills */
.zone--book::before,
.zone--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--gold-bright) 8%, transparent) 0, transparent 38%),
    radial-gradient(circle at 78% 68%, color-mix(in srgb, var(--steel) 7%, transparent) 0, transparent 42%);
}
.zone--book > *,
.zone--contact > * { position: relative; }

.book__head { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.book__script {
  font-family: var(--script);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  line-height: 1;
  color: var(--gold);
  transform: rotate(-2.5deg);
  transform-origin: left center;
  margin-bottom: 0.9rem;
}
.book__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 2.1vw, 2.9rem);
  letter-spacing: -0.03em;
}
.book__sub {
  margin-top: 0.9rem;
  color: var(--ink-2);
  max-width: 54ch;
}

/* masonry via columns: photographs keep their own aspect ratios */
.book {
  columns: 1;
  column-gap: clamp(1.5rem, 4vw, 2.75rem);
}
@media (min-width: 640px)  { .book { columns: 2; } }
@media (min-width: 1040px) { .book { columns: 3; } }

.snap {
  position: relative;
  break-inside: avoid;
  margin: 0 0 clamp(2rem, 5vw, 3.25rem);
  padding: 0.7rem 0.7rem 0.2rem;
  background: var(--paper-warm-2);
  border-radius: 2px;
  box-shadow: 0 14px 34px -20px var(--shadow), 0 1px 0 var(--line-2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* hang each one slightly differently, the way a real board looks */
.snap:nth-child(3n + 1) { transform: rotate(-1.4deg); }
.snap:nth-child(3n + 2) { transform: rotate(1.1deg); }
.snap:nth-child(3n + 3) { transform: rotate(-0.5deg); }
.snap:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 26px 52px -24px var(--shadow), 0 1px 0 var(--line-2);
  z-index: 2;
}

.snap__frame {
  overflow: hidden;
  border-radius: 1px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.snap__img { width: 100%; cursor: zoom-in; }

.snap__cap {
  padding: 0.85rem 0.3rem 0.7rem;
  display: grid;
  gap: 0.15rem;
}
.snap__where {
  font-family: var(--script);
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--ink);
}
.snap__when {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.snap__note {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* a strip of tape over one corner — matte, not glossy gold */
.snap__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 86px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--gold-bright) 15%, color-mix(in srgb, var(--paper-warm-2) 70%, transparent));
  border-left: 1px solid color-mix(in srgb, var(--gold-bright) 20%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--gold-bright) 20%, transparent);
  opacity: 0.85;
  pointer-events: none;
}
.snap:nth-child(2n) .snap__tape {
  left: 16px;
  transform: rotate(-32deg);
  width: 70px;
}
.snap:nth-child(3n) .snap__tape {
  left: auto;
  right: 10px;
  transform: rotate(28deg);
  width: 70px;
}

/* ==================================================== ZONE 6 — CONTACT == */

.zone--contact { border-top: 1px solid var(--line-2); }

.contact {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .contact { grid-template-columns: minmax(0, 1fr) 300px; }
}

.contact__title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.7rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.contact__sub {
  margin-top: 0.9rem;
  color: var(--ink-2);
  max-width: 48ch;
}

.contact__list {
  margin-top: 2rem;
  display: grid;
  gap: 0.1rem;
  max-width: 34rem;
}
.contact__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.contact__k {
  flex: none;
  width: 5.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact__v {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
  background-image: linear-gradient(var(--gold-bright), var(--gold-bright));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.3s var(--ease);
}
.contact__v:hover { background-size: 100% 1.5px; }

.contact__portrait {
  margin: 0;
  justify-self: center;
  width: min(300px, 72vw);
  position: relative;
  padding: 0.7rem 0.7rem 0.2rem;
  background: var(--paper-warm-2);
  border-radius: 2px;
  box-shadow: 0 16px 38px -22px var(--shadow);
  transform: rotate(1.6deg);
  transition: transform 0.4s var(--ease);
}
.contact__portrait:hover { transform: rotate(0deg); }
/* the studio frame is 3:2 and he sits small in it — crop to a portrait */
.contact__portrait .snap__frame { aspect-ratio: 4 / 5; }
.contact__portrait .snap__img {
  cursor: default;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* ==================================================================== FOOT */

.foot {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.foot__stripe {
  width: 54px;
  height: 7px;
  border-radius: 4px;
  flex: none;
  opacity: 0.8;
}
.foot__line { font-size: 0.82rem; color: var(--ink-2); }
.foot__line--quiet { margin-left: auto; }
.foot__line a { color: var(--ink-3); text-decoration: none; }
.foot__line a:hover { color: var(--ink); }

/* ================================================================ LIGHTBOX */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, #0b0c0e 92%, transparent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }

.lb__figure {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.lb__img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  margin-inline: auto;
  border-radius: 2px;
  box-shadow: 0 30px 80px -30px #000;
}
.lb__cap {
  color: #d9d7d1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.88rem;
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}

.lb__close,
.lb__nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  line-height: 1;
}
.lb__close:hover,
.lb__nav:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }

.lb__close {
  top: clamp(0.75rem, 3vw, 1.5rem);
  right: clamp(0.75rem, 3vw, 1.5rem);
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
  padding-bottom: 4px;
}
.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 1.9rem;
  padding-bottom: 4px;
}
.lb__nav--prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lb__nav--next { right: clamp(0.5rem, 2vw, 1.5rem); }

body.lb-open { overflow: hidden; }

/* ============================================================ 404 =========
   Served by the web server for any unknown path (see nginx.conf). Static,
   so it still renders if PHP is unavailable.                                */

.e404-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.e404 {
  width: 100%;
  max-width: var(--wrap);
  padding: clamp(2rem, 8vw, 5rem) var(--gut);
}
.e404__inner { max-width: 54ch; }

.e404__stripe {
  display: block;
  width: 120px;
  height: 10px;
  border-radius: 5px;
  margin-bottom: 2.5rem;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--gold-bright) 0 12px,
    var(--ink) 12px 24px
  );
}

.e404__code {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.e404__title {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.7rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.e404__text {
  margin-top: 1.1rem;
  color: var(--ink-2);
}
.e404__cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.e404__sig {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ================================================================= REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
/* if JS never runs, nothing should stay invisible */
.no-js .reveal { opacity: 1; transform: none; }

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

/* =================================================================== PRINT */

@media print {
  /* scroll-reveal never fires on a printed page — force everything visible */
  .reveal { opacity: 1 !important; transform: none !important; }
  .topbar, .hero__grid, .lb, .skip, .snap__tape,
  .portrait__tape, .foot__line--quiet { display: none !important; }
  body { background: #fff; color: #000; }
  .zone { padding-block: 1.5rem; break-inside: avoid; }
  .card, .snap { break-inside: avoid; }
  .snap { transform: none !important; box-shadow: none; }
}
