/* ==========================================================================
   Grant Haberstroh — culinary portfolio
   Black and gold throughout. White is used only for some text.
   ========================================================================== */

:root {
  /* colour: surfaces */
  --black:      #0B0B0A;   /* page background */
  --charcoal:   #131210;   /* alternate sections (Experience, Contact) */
  --surface:    #181715;   /* cards and tickets */
  --surface-hi: #211F1B;   /* top of tickets, hover */
  --line:       rgba(255, 255, 255, .1);
  --line-gold:  rgba(242, 194, 48, .3);

  /* colour: text */
  --text:       #F3F0EA;   /* names, titles, values */
  --text-soft:  #CFCAC0;   /* body copy */
  --muted:      #9C978D;   /* secondary details */

  /* colour: gold */
  --gold:       #F2C230;   /* headings, rules, fills */
  --gold-light: #F7D774;   /* small gold text and links */
  --gold-deep:  #B8841A;
  --gold-shine: linear-gradient(110deg, #D9A21B 0%, #F5C842 24%, #FFF1B8 42%, #F7CF4F 52%, #D9A21B 70%, #F9DC7A 86%, #E8B428 100%);
  --brass:      linear-gradient(180deg, #FFF4C8 0%, #F2C64A 30%, #B88418 74%, #E2AE33 100%);

  /* type */
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* rhythm */
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(5rem, 11vw, 9rem);
  --nav-h: 4.4rem;
  --radius: 6px;
  --speed: 380ms;
  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: dark;
}

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

html { background: var(--black); scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text-soft);
  font-family: var(--body);
  font-size: clamp(1rem, .97rem + .15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; }

p { margin: 0 0 1.1em; }

::selection { background: var(--gold); color: var(--black); }

/* visible, consistent keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--black);
  padding: .9rem 1.4rem;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

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

/* ── shared type ─────────────────────────────────────────── */

/* Bodoni's display cut has hairlines so fine that the H in "Haberstroh" can
   read as "I l" at large sizes. A smaller optical size keeps them sturdy. */
.h2, .hero__name, .gallery__title {
  font-variation-settings: "opsz" 30;
}

.h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 1.3rem + .5vw, 1.75rem);
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.rule {
  border: 0;
  height: 1px;
  background: currentColor;
  opacity: .28;
  margin: 0;
}
.rule--gold { background: var(--gold-shine); opacity: 1; width: 5.5rem; height: 3px; border-radius: 2px; transform-origin: left center; }

/* ── buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-size: .97rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .005em;
  text-decoration: none;
  padding: 1.05rem 1.8rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--speed) var(--ease),
              background-position var(--speed) var(--ease),
              color var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}

.btn--solid, .btn--gold {
  background: var(--gold-shine);
  background-size: 180% 100%;
  background-position: 0% 50%;
  color: var(--black);
  border-color: #E2AE33;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 28px -12px rgba(242, 194, 48, .75);
}
.btn--solid:hover, .btn--gold:hover {
  background-position: 100% 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 14px 36px -12px rgba(242, 194, 48, 1);
}

.btn--ghost {
  color: var(--text);
  border-color: rgba(242, 194, 48, .55);
  background: rgba(11, 11, 10, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* ── nav ─────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 10, .94);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(247, 215, 116, .18);
  color: var(--text);
}

.nav__inner {
  max-width: var(--wrap);
  min-height: var(--nav-h);
  margin-inline: auto;
  padding: .7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__mark {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: var(--text);
}
.nav__mark-initials {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--gold-light);
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.nav__mark:hover .nav__mark-initials { background: var(--gold); color: var(--black); }
.nav__mark-name { font-size: .97rem; font-weight: 600; letter-spacing: .005em; }

.nav__menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.1rem);
  margin: 0;
  padding: 0;
}
.nav__menu a {
  position: relative;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  padding: .4rem 0;
  transition: color var(--speed) var(--ease);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--speed) var(--ease);
}
.nav__menu a:hover { color: var(--text); }
.nav__menu a:hover::after,
.nav__menu a.is-current::after { transform: scaleX(1); transform-origin: left center; }
.nav__menu a.is-current { color: var(--gold-light); }

.nav__menu .nav__cta {
  display: inline-block;
  background: var(--gold-shine);
  background-size: 180% 100%;
  background-position: 0% 50%;
  color: var(--black);
  font-weight: 600;
  padding: .62rem 1.25rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: background-position var(--speed) var(--ease);
}
.nav__menu .nav__cta::after { display: none; }
.nav__menu .nav__cta:hover { background-position: 100% 50%; color: var(--black); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  background: none;
  border: 1.5px solid rgba(247, 215, 116, .5);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-family: var(--body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.nav__bars { display: grid; gap: 4px; width: 16px; }
.nav__bars span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--speed) var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars span:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

/* "Culinary Photos" with its two sections. On desktop they open in a small
   dropdown on hover or keyboard focus; in the phone menu they are listed below. */
.nav__group { position: relative; }
.nav__menu .nav__sub { display: block; list-style: none; margin: 0; padding: 0; }
.nav__menu .nav__sub a::after { display: none; }
.nav__caret {
  display: inline-block;
  width: .42em;
  height: .42em;
  margin-left: .5em;
  vertical-align: .2em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--speed) var(--ease);
}

@media (min-width: 1021px) {
  .nav__menu .nav__sub {
    position: absolute;
    top: calc(100% + .8rem);
    left: 50%;
    min-width: 13rem;
    padding: .45rem;
    background: rgba(19, 18, 16, .98);
    border: 1px solid rgba(242, 194, 48, .3);
    border-radius: 14px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .9);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity var(--speed) var(--ease), transform var(--speed) var(--ease), visibility var(--speed);
  }
  /* an invisible bridge so the menu stays open while the mouse crosses the gap */
  .nav__menu .nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.9rem; height: .9rem; }
  .nav__group:hover .nav__sub,
  .nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav__group:hover .nav__caret,
  .nav__group:focus-within .nav__caret { transform: translateY(.18em) rotate(225deg); }
  .nav__menu .nav__sub a {
    display: block;
    padding: .65rem .9rem;
    border-radius: 9px;
    white-space: nowrap;
    color: var(--text-soft);
  }
  .nav__menu .nav__sub a:hover,
  .nav__menu .nav__sub a.is-current { background: rgba(242, 194, 48, .12); color: var(--gold-light); }
}

/* gold reading-progress line, added by motion.js */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--gold-shine);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ── hero: the GH seal, name, career line and buttons ───── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(110% 80% at 50% 38%, #17140F 0%, var(--black) 62%);
  color: var(--text);
}

/* a warm pool of light that trails the mouse */
.hero__glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 40%;
  width: 84vmin;
  height: 84vmin;
  margin: -42vmin 0 0 -42vmin;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 194, 48, .2), rgba(242, 194, 48, .07) 45%, transparent 75%);
  pointer-events: none;
}

/* gold sparks thrown off by the seal (created by motion.js) */
.hero__sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  background: var(--gold-shine);
  box-shadow: 0 0 12px rgba(242, 194, 48, .85);
}
/* the pointer becomes a hand over the GH, which spins when clicked */
.hero.is-logo-hover { cursor: pointer; }

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  min-height: calc(100svh - var(--nav-h));
  margin-inline: auto;
  padding: clamp(1.5rem, 4vh, 3.5rem) var(--gutter) clamp(2.5rem, 6vh, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: min(72vw, 640px);
  aspect-ratio: 288 / 168;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
  pointer-events: none;
  /* how thick the letters are */
  --depth: min(8vw, 72px);
}

/* The GH is a small 3D scene. .biglogo sets the perspective, __tilt turns to
   face the mouse, __body handles the opening and the click spin. The gold
   front sits at the top of the stack; motion.js adds about 28 darker copies
   behind it (.biglogo__slice) that form the solid sides of the letters. */
.biglogo, .biglogo__tilt, .biglogo__body, .biglogo__depth { position: relative; width: 100%; height: 100%; }
.biglogo { perspective: 1200px; }
.biglogo__tilt {
  transform-style: preserve-3d;
  will-change: transform;
  /* a three-quarter view at rest, so the depth shows even before the mouse moves */
  transform: rotateY(-22deg) rotateX(10deg);
}
/* --extrude is how thick the letters are (1 = normal) */
.biglogo__body { transform-style: preserve-3d; --extrude: 1; }
.biglogo__depth { position: absolute; inset: 0; transform-style: preserve-3d; }
.biglogo__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.biglogo__layer--front {
  transform: translateZ(calc(var(--depth) * var(--extrude) * .5));
  filter: drop-shadow(0 0 1px rgba(255, 236, 170, .35));
}
.biglogo__slice {
  transform: translateZ(calc(var(--depth) * var(--extrude) * (.5 - var(--k))));
}

.hero__name,
.hero__role,
.hero__actions { position: relative; z-index: 2; }

.hero__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.7rem, 1.1rem + 4.6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--text);
  margin: 0 0 .55rem;
  text-shadow: 0 2px 26px rgba(11, 11, 10, .95);
}

.hero__role {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 1rem + 1.3vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: .005em;
  color: var(--gold);
  text-shadow: 0 1px 18px rgba(11, 11, 10, 1);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: clamp(1.75rem, 4vh, 2.6rem);
}

/* ── dish ribbon ─────────────────────────────────────────── */

.ribbon {
  background: var(--gold-shine);
  color: var(--black);
  overflow: hidden;
  border-block: 1px solid #C99420;
  padding-block: 1rem;
}
.ribbon__track { display: flex; width: max-content; }
.ribbon__list {
  display: flex;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ribbon__list li {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.9rem);
  line-height: 1.2;
  white-space: nowrap;
}
.ribbon__list li::after {
  content: "";
  width: .38em;
  height: .38em;
  margin-inline: 1.4em;
  background: var(--black);
  transform: rotate(45deg);
}

/* ── sections ────────────────────────────────────────────── */

.section { padding-block: var(--section-y); }
.section--alt {
  background: var(--charcoal);
  border-block: 1px solid rgba(242, 194, 48, .14);
}
.section--black { background: var(--black); }

/* ── about ───────────────────────────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: start;
}
.about__title { margin: 0; }
.about__text { max-width: 62ch; }
.about__text p { color: var(--text-soft); }
.about__text p:first-child {
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.2rem + .9vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.about__text a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration-color: rgba(242, 194, 48, .6);
  text-decoration-thickness: 2px;
  text-underline-offset: .22em;
}
.about__text a:hover { color: var(--text); text-decoration-color: var(--gold); }

/* ── experience: order tickets on a brass rail ───────────── */

.experience { overflow: hidden; }
.experience__title { margin-bottom: clamp(3rem, 6vw, 4.75rem); }

.roles {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
/* the rail */
.roles::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: -1.5rem;
  right: -1.5rem;
  height: 18px;
  border-radius: 9px;
  background: var(--brass);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .9), inset 0 -1px 0 rgba(0, 0, 0, .25);
}

.role {
  position: relative;
  display: flex;
  transform-origin: 50% 0;
  filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .6)) drop-shadow(0 2px 2px rgba(0, 0, 0, .4));
}
.role:nth-child(4n + 1) { transform: rotate(-1.4deg); }
.role:nth-child(4n + 2) { transform: rotate(1deg); }
.role:nth-child(4n + 3) { transform: rotate(-.7deg); }
.role:nth-child(4n + 4) { transform: rotate(1.3deg); }

.role__paper {
  --zz: 9px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface) 40%);
  box-shadow: inset 0 0 0 1px rgba(242, 194, 48, .16);
  padding: 2.2rem 1.4rem calc(1.7rem + var(--zz));
  /* torn, zig-zag bottom edge */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) var(--zz) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) var(--zz) repeat-x;
}

.role__when {
  order: -1;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  margin: 0 0 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px dashed rgba(242, 194, 48, .3);
}
.role--current .role__when::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 194, 48, .25), 0 0 12px rgba(242, 194, 48, .8);
}

.role__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.15rem);
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .55rem;
}
.role__where { margin: 0 0 .9rem; font-weight: 600; font-size: .95rem; line-height: 1.4; color: var(--text-soft); }
.role__note { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* ── training ────────────────────────────────────────────── */

.training {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
.training__col .h3:not(:first-child) { margin-top: 3rem; }

.facts, .stations { list-style: none; margin: 0; padding: 0; display: grid; }
.facts { gap: 1rem; }

.fact {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.4rem 1.75rem;
  overflow: hidden;
  transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}
.fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold-shine);
}
.fact:hover { border-color: var(--line-gold); background: var(--surface-hi); }

.fact__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  justify-content: space-between;
  margin-bottom: .45rem;
}

.fact__name { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; color: var(--text); }
.fact__meta { margin: 0 0 .3rem; font-size: .93rem; color: var(--text-soft); font-weight: 500; }
.fact__note { margin: .55rem 0 0; font-size: .93rem; color: var(--muted); }

.pill {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .3rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill--open { background: rgba(242, 194, 48, .1); color: var(--gold-light); border: 1px solid rgba(242, 194, 48, .45); }
.pill--done { background: var(--gold-shine); color: var(--black); }

.fact__dl { margin: .8rem 0 0; display: grid; gap: .4rem; font-size: .93rem; }
.fact__dl > div { display: flex; gap: .6rem; align-items: baseline; }
.fact__dl dt { color: var(--muted); min-width: 8.5rem; }
.fact__dl dd { margin: 0; font-weight: 600; color: var(--text); }

.station {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem 1.1rem;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 1.35rem 0;
}
.station:last-child { border-bottom: 1px solid var(--line); }
.station::before {
  content: "";
  grid-row: span 2;
  align-self: center;
  width: .6rem;
  height: .6rem;
  background: var(--gold);
  transform: rotate(45deg);
}
.station__name { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: var(--text); }
.station__src { margin: .1rem 0 0; font-size: .93rem; color: var(--muted); }

/* ── contact ─────────────────────────────────────────────── */

.contact__title {
  font-size: clamp(3.2rem, 1.2rem + 7.4vw, 8.5rem);
  line-height: .92;
  letter-spacing: -.045em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem 4rem;
  align-items: end;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
}
.contact__item--email { grid-column: 1 / -1; }

.contact__label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: .4rem;
}
.contact__value {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2.1rem);
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat;
  padding-bottom: .1em;
  transition: background-size var(--speed) var(--ease);
  overflow-wrap: anywhere;
}
.contact__item--email .contact__value { font-size: clamp(1.55rem, .9rem + 2.8vw, 3.4rem); letter-spacing: -.02em; }
a.contact__value:hover { background-size: 100% 2px; }

.contact__refs { margin-top: clamp(3rem, 6vw, 4.5rem); }
.reference__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem clamp(1.5rem, 3vw, 3rem);
}
.reference { border-top: 1px solid rgba(247, 215, 116, .4); padding-top: 1.15rem; }
.reference__name { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1.2; color: var(--text); }
.reference__where { margin: .45rem 0 .2rem; font-size: .93rem; color: var(--muted); }
.reference__phone { display: inline-block; color: var(--gold-light); font-weight: 600; text-underline-offset: .25em; font-size: .97rem; }
.reference__phone:hover { color: var(--text); }

/* ── footer ──────────────────────────────────────────────── */

.foot {
  background: var(--black);
  color: var(--muted);
  padding-block: 1.9rem;
  border-top: 1px solid rgba(242, 194, 48, .18);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
}
.foot p { margin: 0; display: flex; align-items: center; gap: .8rem; }
.foot__mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 600;
  font-size: .8rem;
  color: var(--gold-light);
}
.foot a { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ── gallery pages ───────────────────────────────────────── */

.gallery__header {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--text);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.75rem, 5vw, 3.75rem);
  border-bottom: 1px solid rgba(242, 194, 48, .14);
}
.gallery__header::before {
  content: "";
  position: absolute;
  inset: -40% -20% -40% 45%;
  background: radial-gradient(closest-side, rgba(242, 194, 48, .14), transparent);
  pointer-events: none;
}
.gallery__header .wrap { position: relative; }

.gallery__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3.4rem, 1.2rem + 7.6vw, 8.25rem);
  line-height: .92;
  letter-spacing: -.045em;
  color: var(--gold);
  margin: 0 0 1.75rem;
}

.gallery__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding: .3rem;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
}
.gallery__links a {
  padding: .65rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255, 255, 255, .8);
  font-size: .93rem;
  font-weight: 500;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}
.gallery__links a:hover { background: rgba(242, 194, 48, .12); color: var(--text); }
.gallery__links a.is-current { background: var(--gold-shine); color: var(--black); font-weight: 600; }

.gallery__section { padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); background: var(--black); }

/* Culinary Photos: tabs that stay under the menu, then one section per gallery */
.photo-tabs {
  position: sticky;
  top: calc(var(--nav-h) + 1px);
  z-index: 50;
  padding-block: .75rem;
  background: rgba(11, 11, 10, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 194, 48, .14);
}
.gallery__section.photo-section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  scroll-margin-top: 9rem;
}
.gallery__section.photo-section:last-of-type { padding-bottom: var(--section-y); }
.photo-section + .photo-section { border-top: 1px solid rgba(242, 194, 48, .14); }
.photo-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.photo-section__head .h2 { margin: 0; }
.photo-section__count { margin: 0; color: var(--muted); font-size: 1.02rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.5rem, 2.6vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile { margin: 0; }

.tile__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(242, 194, 48, .12);
  transition: box-shadow var(--speed) var(--ease);
}
.tile__btn:hover { box-shadow: 0 0 0 1px rgba(242, 194, 48, .6), 0 18px 40px -18px rgba(242, 194, 48, .45); }
.tile__btn picture { display: block; width: 100%; height: 100%; }
.tile__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease);
}
/* hover: soft shade and a gold zoom badge */
.tile__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55));
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
}
.tile__btn::before {
  content: "";
  position: absolute;
  z-index: 1;
  right: .9rem;
  bottom: .9rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0B0A' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20M10.5 7.8v5.4M7.8 10.5h5.4'/%3E%3C/svg%3E") center / 1.2rem no-repeat;
  opacity: 0;
  transform: scale(.5);
  transition: opacity var(--speed) var(--ease), transform var(--speed) cubic-bezier(.34, 1.56, .64, 1);
}
.tile__btn:hover img { transform: scale(1.06); }
.tile__btn:hover::after, .tile__btn:focus-visible::after { opacity: 1; }
.tile__btn:hover::before, .tile__btn:focus-visible::before { opacity: 1; transform: scale(1); }

.tile__cap { padding-top: .95rem; }
.tile__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.22;
  color: var(--text);
  margin: 0;
}

/* ── projects and competitions (third section of the Culinary Photos page) ── */

.projects__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.projects__head .h3 { margin: 0; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); }
.projects__hint { margin: 0; color: var(--muted); font-size: .95rem; }
.projects .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects .tile__btn { aspect-ratio: 3 / 4; }
.projects .tile__btn img { object-fit: contain; }
.projects .tile__btn:hover img { transform: none; }

@media (max-width: 640px) {
  .projects .projects__grid { grid-template-columns: 1fr; }
}

/* ── lightbox ────────────────────────────────────────────── */

.lb {
  padding: 0;
  border: 0;
  inset: 0;
  margin: 0;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  /* the dialog carries the scrim itself so it never depends on ::backdrop support */
  background: rgba(8, 8, 8, .97);
}
.lb::backdrop { background: rgba(8, 8, 8, .97); }

.lb__fig {
  margin: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  gap: 1rem;
}

.lb__img {
  max-width: min(100%, 1100px);
  max-height: 74vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.lb__cap { text-align: center; max-width: 56ch; color: var(--text); }
.lb__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--gold); margin-bottom: .3rem; }

.lb__close, .lb__nav {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(247, 215, 116, .5);
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
  font-family: var(--body);
}
.lb__close:hover, .lb__nav:hover { background: var(--gold); color: var(--black); }

.lb__close { top: 1rem; right: 1rem; width: 3rem; height: 3rem; font-size: 1.7rem; line-height: 1; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 3.2rem; height: 3.2rem; font-size: 2rem; line-height: 1; }
.lb__nav--prev { left: 1rem; }
.lb__nav--next { right: 1rem; }

/* animation on open — user-triggered, so it survives reduced-motion as a fade only */
.lb[open] .lb__fig { animation: lbIn 320ms var(--ease) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* ── motion hooks ────────────────────────────────────────── */

/* Elements in the opening animation wait for motion.js (see the <head> script). */
.intro-pending [data-intro] { visibility: hidden; }

/* SplitText pieces: words never break apart, letters can move */
.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; }

/* ── responsive ──────────────────────────────────────────── */

@media (max-width: 1100px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; padding-top: 0; }
  /* one short rail per ticket once they wrap */
  .roles::before { display: none; }
  .role::before {
    content: "";
    position: absolute;
    z-index: 3;
    top: -8px;
    left: -.75rem;
    right: -.75rem;
    height: 16px;
    border-radius: 8px;
    background: var(--brass);
    box-shadow: 0 6px 12px -5px rgba(0, 0, 0, .9);
  }
}

@media (max-width: 1020px) {
  .nav__toggle { display: inline-flex; }
  .nav__mark-name { display: none; }

  .nav__menu {
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--black);
    border-bottom: 1px solid rgba(247, 215, 116, .3);
    display: none;
  }
  .nav__menu.is-open { display: block; }
  .nav__menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
  }
  .nav__menu li { border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav__menu li:last-child { border-top: 0; }
  .nav__menu a { display: block; padding: .95rem 0; font-size: 1.05rem; }
  .nav__menu a::after { display: none; }
  .nav__menu .nav__cta { display: block; text-align: center; margin-top: .9rem; padding: .95rem 1.1rem; }
  .nav__caret { display: none; }
  .nav__menu .nav__sub { padding: 0 0 .5rem 1.1rem; }
  .nav__menu .nav__sub li { border-top: 0; }
  .nav__menu .nav__sub a { padding: .5rem 0; font-size: .98rem; color: var(--muted); }
  .nav__menu .nav__sub a:hover { color: var(--gold-light); }
}

@media (max-width: 920px) {
  .about__grid, .training { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; align-items: start; }
  .reference__list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero__logo { width: min(86vw, 360px); --depth: min(10vw, 40px); }
  .hero__inner { padding-top: 2.5rem; }
  .roles { grid-template-columns: 1fr; row-gap: 2.75rem; }
  .role__paper { padding-inline: 1.5rem; }
  .contact__list { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .lb__nav { width: 2.6rem; height: 2.6rem; font-size: 1.6rem; }
  .lb__nav--prev { left: .4rem; }
  .lb__nav--next { right: .4rem; }
  .lb__img { max-height: 62vh; }
}

@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
}

/* the three photo tabs share one row on a phone */
@media (max-width: 480px) {
  .gallery__links a { padding: .6rem .85rem; font-size: .88rem; }
}

/* ── reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .tile__btn:hover img { transform: none; }
}

/* ── print: black ink on white paper ─────────────────────── */

@media print {
  .nav, .ribbon, .hero__glow, .hero__sparks, .hero__logo, .gallery__links, .photo-tabs, .hero__actions, .lb, .foot a, .scroll-progress { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .hero, .section, .section--alt, .section--black, .gallery__header, .gallery__section, .foot,
  .fact, .role__paper { background: #fff !important; color: #000 !important; }
  .hero__inner { min-height: 0; }
  .h2, .h3, .hero__name, .hero__role, .gallery__title, .contact__value, .reference__name, .reference__phone,
  .reference__where, .fact__name, .station__name, .role__title, .tile__title, .about__text p {
    color: #000 !important; text-shadow: none !important; -webkit-text-fill-color: #000;
  }
  .role, .role__paper { transform: none !important; filter: none !important; -webkit-mask: none !important; mask: none !important; }
  .roles::before, .role::before { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}
