/*
  PHS Culinary Portfolio
  Futuristic glass / neon refresh.
*/
:root {
  --bg: #050816;
  --bg-deep: #02040b;
  --panel: rgba(8, 16, 34, 0.72);
  --panel-strong: rgba(10, 22, 48, 0.86);
  --panel-soft: rgba(11, 24, 44, 0.54);
  --text: #eef7ff;
  --text-soft: rgba(222, 239, 255, 0.78);
  --muted: rgba(154, 182, 214, 0.7);
  --line: rgba(123, 217, 255, 0.18);
  --line-strong: rgba(123, 217, 255, 0.34);
  --cyan: #67e8f9;
  --aqua: #59f3ff;
  --blue: #5b8cff;
  --violet: #7a7dff;
  --glow: rgba(89, 243, 255, 0.2);
  --glow-strong: rgba(91, 140, 255, 0.28);
  --shadow-soft: 0 24px 80px rgba(2, 6, 20, 0.52);
  --shadow-card: 0 24px 60px rgba(2, 10, 28, 0.44);
  --shadow-image: 0 28px 80px rgba(3, 8, 24, 0.52);
  --radius-xl: 2rem;
  --radius-lg: 1.4rem;
  --radius-md: 1rem;
  --radius-sm: 0.72rem;
  --max-width: 1180px;
  --nav-height: 4.5rem;
  --floating-offset: 9.75rem;
  --spotlight-x: 50%;
  --spotlight-y: 18%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--floating-offset);
  background: #02040b;
}

body {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: #02040b;
  background:
    radial-gradient(circle at var(--spotlight-x) var(--spotlight-y), rgba(91, 243, 255, 0.12), transparent 0 18%, transparent 42%),
    radial-gradient(circle at 18% 18%, rgba(91, 140, 255, 0.16), transparent 0 22%, transparent 45%),
    radial-gradient(circle at 80% 14%, rgba(122, 125, 255, 0.16), transparent 0 18%, transparent 42%),
    linear-gradient(180deg, #081126 0%, #050816 42%, #02040b 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: none;
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(91, 140, 255, 0.08), transparent 24%, transparent 76%, rgba(91, 243, 255, 0.04)),
    linear-gradient(rgba(91, 140, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 243, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 120px 120px, 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.92));
  z-index: -4;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.bg-layer,
.bg-grid,
.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-layer {
  z-index: -3;
}

.bg-layer-top {
  background:
    radial-gradient(circle at 85% 10%, rgba(89, 243, 255, 0.18), transparent 34%),
    radial-gradient(circle at 55% 20%, rgba(122, 125, 255, 0.14), transparent 28%);
}

.bg-layer-bottom {
  background:
    radial-gradient(circle at 14% 88%, rgba(91, 140, 255, 0.18), transparent 32%),
    radial-gradient(circle at 76% 78%, rgba(89, 243, 255, 0.08), transparent 26%);
}

.bg-grid {
  z-index: -2;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.88), transparent 94%);
}

.bg-vignette {
  z-index: -1;
  background:
    radial-gradient(circle at center, transparent 34%, rgba(2, 4, 11, 0.24) 66%, rgba(2, 4, 11, 0.72) 100%),
    linear-gradient(180deg, rgba(2, 4, 11, 0), rgba(2, 4, 11, 0.15) 40%, rgba(2, 4, 11, 0.38));
}

.section {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
  padding: 4.5rem clamp(1.25rem, 3vw, 2.4rem);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius-xl) + 0.6rem);
  background: rgba(6, 15, 31, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(2, 8, 21, 0.34);
  z-index: -1;
}

.section + .section {
  margin-top: 1.2rem;
}

.section-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.section-label {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.92;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  color: var(--text);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-soft);
}

.card {
  background: rgba(8, 18, 38, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.7rem;
}

.site-header {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.floating-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.7rem 0 0.2rem;
}

.floating-bar {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
  display: grid;
  gap: 0.4rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(11, 23, 46, 0.96), rgba(7, 14, 30, 0.96)),
    rgba(7, 14, 30, 0.92);
  box-shadow:
    0 18px 44px rgba(1, 6, 18, 0.46),
    inset 0 1px 0 rgba(89, 243, 255, 0.05),
    0 0 0 1px rgba(89, 243, 255, 0.06);
  transition: padding 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.floating-bar.is-condensed {
  padding: 0.45rem 0.75rem;
  transform: translateY(0.1rem);
  box-shadow:
    0 22px 52px rgba(1, 6, 18, 0.54),
    inset 0 1px 0 rgba(89, 243, 255, 0.05),
    0 0 24px rgba(89, 243, 255, 0.08);
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  font-size: 0.9rem;
}

.brand-text {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  width: 100%;
  padding: 0;
  scrollbar-width: none;
}

.methods-page .nav {
  align-items: flex-start;
}

.methods-page .floating-bar {
  padding: 0.22rem 0.45rem;
  gap: 0.18rem;
  border-radius: 0.2rem;
}

.methods-page .nav-list {
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  gap: 0.12rem;
  row-gap: 0;
}

.gallery-shortcuts {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  width: 100%;
  padding: 0 0 0.35rem;
  margin: 0 0 1.25rem;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar,
.gallery-shortcuts::-webkit-scrollbar {
  display: none;
}

.nav-list a,
.gallery-shortcuts a,
.hero-secondary,
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 1.9rem;
  border-radius: 0;
  font-weight: 700;
  line-height: 1.2;
  transition:
    color 0.3s ease,
    background 0.35s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.nav-list a,
.gallery-shortcuts a {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 0;
  white-space: nowrap;
  outline: none;
}

.nav-list a .nav-icon {
  display: none;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.gallery-shortcuts a:hover,
.gallery-shortcuts a:focus-visible {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  outline: none;
}

.nav-list a.active,
.gallery-shortcuts a.active {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  display: block;
  width: 1.55rem;
  height: 2px;
  background: var(--text);
  margin: 0.3rem 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

main section[id],
.gallery-subsection[id] {
  scroll-margin-top: calc(var(--floating-offset) + 1rem);
}

.hero {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(290px, 0.8fr);
  gap: 1.6rem;
  align-content: center;
  padding: 2rem 0 5.5rem;
}

.home-page .hero {
  grid-template-columns: 1fr;
  padding-top: 4.6rem;
  padding-bottom: 3rem;
}

.home-page .hero-copy {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.home-page .site-header {
  min-height: auto;
}

.home-page .bg-grid {
  opacity: 0.28;
}

.home-page .bg-layer-top,
.home-page .bg-layer-bottom {
  opacity: 0.55;
}

.home-page .floating-bar {
  background:
    linear-gradient(180deg, rgba(9, 22, 46, 0.95), rgba(6, 16, 34, 0.92)),
    rgba(6, 16, 34, 0.88);
}

.home-page .section::before {
  background: rgba(6, 15, 31, 0.94);
  box-shadow: 0 18px 38px rgba(2, 8, 21, 0.28);
}

.methods-page .hero {
  grid-template-columns: 1fr;
  padding-top: 1.1rem;
  padding-bottom: 0.7rem;
}

.methods-page .hero-copy {
  max-width: 54rem;
}

.methods-page .site-header {
  min-height: auto;
}

.random-page .hero {
  grid-template-columns: 1fr;
}

.random-page .hero-copy {
  max-width: 54rem;
}

.random-page .site-header {
  min-height: auto;
}

.hero-copy,
.hero-feature {
  position: relative;
}

.hero-copy {
  padding: 2rem 0.2rem 1.6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(89, 243, 255, 0.9), transparent);
}

.hero-nameplate {
  display: block;
}

#hero-title {
  margin: 0;
  display: grid;
  line-height: 0.92;
  text-wrap: balance;
  gap: 0.6rem;
}

.hero-first,
.hero-last {
  display: block;
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  letter-spacing: 0.08em;
}

.hero-last {
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  letter-spacing: 0.34em;
  margin-top: 0;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(89, 243, 255, 0.16);
  text-transform: uppercase;
}

.hero-first {
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  text-transform: uppercase;
  color: transparent;
  background:
    linear-gradient(180deg, rgba(142, 246, 255, 0.98), rgba(122, 198, 255, 0.9) 42%, rgba(103, 232, 249, 0.84) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(89, 243, 255, 0.15));
}

.tagline {
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 42ch;
  margin-top: 1.5rem;
}

.hero-intro {
  max-width: 44rem;
  margin-top: 1.4rem;
  padding: 1.25rem 1.35rem;
}

.hero-intro p {
  font-size: 1.03rem;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-cta {
  color: #03111f;
  background: linear-gradient(135deg, var(--aqua), #86d7ff);
  padding: 0.95rem 1.45rem;
  box-shadow: 0 16px 36px rgba(89, 243, 255, 0.22);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(89, 243, 255, 0.28);
}

.hero-secondary {
  color: var(--text);
  padding: 0.95rem 1.35rem;
  background: rgba(89, 243, 255, 0.06);
  border: 1px solid rgba(89, 243, 255, 0.18);
}

.hero-secondary:hover,
.hero-secondary:focus-visible {
  transform: translateY(-2px);
  background: rgba(89, 243, 255, 0.12);
  border-color: rgba(89, 243, 255, 0.28);
}

.hero-feature {
  align-self: end;
  padding: 1.6rem;
}

.hero-feature::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 1.2rem auto;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89, 243, 255, 0.12), transparent 66%);
  pointer-events: none;
}

.hero-feature-label {
  color: var(--cyan);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.hero-feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-feature-grid article {
  padding: 1rem 0 0.1rem;
  border-top: 1px solid rgba(89, 243, 255, 0.12);
}

.hero-feature-value {
  display: block;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  color: var(--text);
  font-size: 1.65rem;
  margin-bottom: 0.28rem;
}

.hero-feature-grid p {
  font-size: 0.95rem;
}

.about-layout,
.objective .card,
.education .card,
.contact-card {
  max-width: 78ch;
}

.about-layout p + p,
.objective p,
.education p {
  margin-top: 1.15rem;
}

.about .section-head {
  margin-bottom: 1rem;
}

.about .card {
  padding: 1.2rem 1.35rem;
}

.about-layout {
  max-width: 72ch;
}

.about-layout p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.about-layout p + p {
  margin-top: 0.7rem;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.panel {
  min-height: 100%;
}

.panel h3 {
  margin-bottom: 1rem;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.timeline li {
  padding: 0.45rem 0 0.45rem 1.35rem;
  border-left: 1px solid rgba(103, 232, 249, 0.26);
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.8rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  box-shadow:
    0 0 0 4px rgba(89, 243, 255, 0.08),
    0 0 18px rgba(89, 243, 255, 0.22);
}

.role {
  font-weight: 700;
  color: var(--text);
}

.place,
.year {
  color: var(--muted);
  font-size: 0.96rem;
}

.skill-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.skill-list li {
  background: linear-gradient(145deg, rgba(89, 243, 255, 0.12), rgba(91, 140, 255, 0.08));
  border: 1px solid rgba(89, 243, 255, 0.16);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  padding: 0.58rem 0.9rem;
  box-shadow:
    inset 0 1px 0 rgba(89, 243, 255, 0.05),
    0 0 0 1px rgba(89, 243, 255, 0.04);
}

.reference {
  font-size: 1.06rem;
}

.gallery-groups {
  display: grid;
  gap: 1.6rem;
}

.gallery-subsection {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(8, 18, 38, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.gallery-subsection-compact {
  max-width: 78ch;
}

#yeast-breads .gallery-grid {
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#baking-pastry > .gallery-grid,
#baking-pastry-main > .gallery-grid {
  max-width: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#quick-breads .gallery-grid {
  max-width: 60%;
}

.gallery-subsection h3 {
  color: var(--text);
}

.section-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(89, 243, 255, 0.06);
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.section-toggle-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  font-size: 1rem;
  line-height: 1;
}

.section-toggle:hover,
.section-toggle:focus-visible {
  background: rgba(89, 243, 255, 0.12);
  border-color: rgba(89, 243, 255, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(89, 243, 255, 0.1);
  outline: none;
}

.section-toggle-link {
  text-decoration: none;
}

.section-toggle-block {
  width: 100%;
  justify-content: space-between;
  padding: 1rem 1.15rem;
}

#dry-heat.gallery-subsection-compact {
  max-width: none;
}

#dry-heat .gallery-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
}

#dry-heat .method-card {
  padding: 0.65rem;
  width: 100%;
  max-width: 220px;
}

#dry-heat .gallery-card {
  min-height: 260px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.methods-page .gallery-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.gallery-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(89, 243, 255, 0.04);
  border: 1px solid rgba(89, 243, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(89, 243, 255, 0.04),
    0 0 0 1px rgba(89, 243, 255, 0.02);
}

.method-card h4 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.15rem;
  color: var(--text);
}

.nested-method-section {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(89, 243, 255, 0.12);
}

.nested-method-section h4 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.nested-gallery-compact {
  max-width: 100%;
}

.baking-secondary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.8rem 2.2rem;
}

.baking-secondary-grid .gallery-card {
  width: 100%;
  align-self: start;
}

.baking-secondary-grid .gallery-card img {
  aspect-ratio: 1 / 1;
  border-radius: 1.8rem;
  box-shadow: none;
}

.baking-secondary-grid .gallery-card-labeled figcaption {
  margin-top: 1rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.05;
}

.baking-secondary-grid .gallery-card-details {
  gap: 0.7rem;
}

.baking-secondary-grid .gallery-card-detail-line {
  font-size: 0.88rem;
  line-height: 1.65;
}

.quick-breads-subsection .gallery-grid {
  grid-template-columns: repeat(2, minmax(0, 100px));
  justify-content: start;
}

.quick-breads-subsection .gallery-card {
  min-height: 125px;
}

.quick-breads-subsection .gallery-card-labeled img {
  aspect-ratio: 0.78 / 1;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 260px;
  cursor: default;
  border: 1px solid rgba(89, 243, 255, 0.16);
  background: rgba(8, 18, 38, 0.52);
  box-shadow:
    var(--shadow-image),
    inset 0 1px 0 rgba(89, 243, 255, 0.04),
    0 0 0 1px rgba(89, 243, 255, 0.03);
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.35s ease;
  position: relative;
  z-index: 2;
}

.gallery-card-full-image {
  min-height: auto;
}

.gallery-card-full-image img {
  height: auto;
  object-fit: contain;
}

.gallery-card figcaption {
  display: none;
}

.gallery-card-labeled figcaption {
  display: block;
  position: static;
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  padding: 0;
  background: transparent;
  border: none;
  text-align: left;
}

.no-captions .gallery-card-labeled figcaption {
  display: none;
}

.gallery-card-labeled,
.gallery-card-with-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem;
  gap: 0.85rem;
  min-height: auto;
}

.gallery-card-labeled img,
.gallery-card-with-details img {
  height: auto;
  border-radius: calc(var(--radius-md) - 0.1rem);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-card-details {
  display: grid;
  gap: 0.5rem;
  position: relative;
  z-index: 4;
}

.gallery-card-detail-line {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.gallery-card-detail-label {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-card-labeled figcaption {
  position: relative;
  z-index: 4;
}

.gallery-card::before {
  content: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(89, 243, 255, 0.08), transparent 22%),
    linear-gradient(120deg, rgba(89, 243, 255, 0.1), transparent 40%, transparent 60%, rgba(91, 140, 255, 0.08));
  z-index: 1;
}

.gallery-card::after {
  content: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 9, 22, 0.68), transparent 60%);
  pointer-events: none;
  z-index: 3;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: none;
  filter: none;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  border-color: rgba(89, 243, 255, 0.36);
  box-shadow: var(--shadow-image);
}

.methods-page .gallery-card,
.methods-page .gallery-card-labeled,
.methods-page .gallery-card-with-details {
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-height: 0;
  height: auto;
}

.methods-page .gallery-card img,
.methods-page .gallery-card-labeled img,
.methods-page .gallery-card-with-details img {
  width: 100%;
  height: auto;
  min-height: 0;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.methods-page .method-card .gallery-card {
  overflow: visible;
}

.methods-page .method-card .gallery-card img {
  aspect-ratio: 1 / 1;
}

.gallery-card:focus-visible {
  outline: 2px solid rgba(89, 243, 255, 0.9);
  outline-offset: 4px;
}

.gallery-card.fallback {
  display: grid;
  place-items: center;
  cursor: default;
}

.gallery-card.fallback img {
  display: none;
}

.gallery-card.fallback::before {
  content: attr(data-fallback);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: rgba(8, 18, 38, 0.92);
  border-radius: 999px;
  border: 1px solid rgba(89, 243, 255, 0.2);
  padding: 0.45rem 0.85rem;
  position: relative;
  z-index: 4;
}

.gallery-card.fallback::after {
  background: linear-gradient(145deg, rgba(89, 243, 255, 0.04), rgba(91, 140, 255, 0.01));
}

.gallery-card.fallback figcaption {
  color: var(--text);
  background: rgba(8, 18, 38, 0.74);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 1.2rem;
  background: rgba(2, 8, 20, 0.82);
}

.lightbox.open {
  display: grid;
  animation: lightbox-fade-in 0.4s ease-out;
}

.lightbox-content {
  display: grid;
  gap: 1.2rem;
  align-items: start;
  width: min(96vw, 1400px);
  animation: lightbox-content-in 0.55s cubic-bezier(0.18, 1, 0.32, 1);
  transform-origin: center center;
}

.lightbox-image-pair {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.lightbox-content.has-pair .lightbox-image-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lightbox-content.has-triplet .lightbox-image-pair {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lightbox-content.has-details {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 360px);
}

.lightbox-content.has-details.has-triplet .lightbox-image-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "primary secondary"
    "tertiary secondary";
  align-items: start;
}

.lightbox-content.has-details.has-triplet .lightbox-image {
  grid-area: primary;
}

.lightbox-content.has-details.has-triplet .lightbox-secondary-image {
  grid-area: secondary;
  height: min(72vh, 780px);
}

.lightbox-content.has-details.has-triplet .lightbox-tertiary-image {
  grid-area: tertiary;
  height: min(34vh, 360px);
}

.lightbox-image {
  max-width: none;
  max-height: 88vh;
  width: 100%;
  height: min(72vh, 780px);
  border-radius: 0.9rem;
  border: 1px solid rgba(89, 243, 255, 0.16);
  box-shadow: 0 24px 64px rgba(4, 7, 12, 0.45);
  object-fit: contain;
  background: rgba(8, 18, 38, 0.78);
}

.lightbox-secondary-image {
  max-width: none;
  max-height: 88vh;
  width: 100%;
  height: min(72vh, 780px);
  border-radius: 0.9rem;
  border: 1px solid rgba(89, 243, 255, 0.16);
  box-shadow: 0 24px 64px rgba(4, 7, 12, 0.45);
  object-fit: contain;
  background: rgba(8, 18, 38, 0.78);
}

.lightbox-tertiary-image {
  max-width: none;
  max-height: 88vh;
  width: 100%;
  height: min(72vh, 780px);
  border-radius: 0.9rem;
  border: 1px solid rgba(89, 243, 255, 0.16);
  box-shadow: 0 24px 64px rgba(4, 7, 12, 0.45);
  object-fit: contain;
  background: rgba(8, 18, 38, 0.78);
}

.lightbox-details {
  max-width: 360px;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(89, 243, 255, 0.06), rgba(91, 140, 255, 0.02)),
    rgba(8, 18, 38, 0.9);
  box-shadow: var(--shadow-card);
}

.methods-page .gallery-card-details {
  display: none;
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
    background: rgba(2, 8, 20, 0);
  }

  to {
    opacity: 1;
    background: rgba(2, 8, 20, 0.82);
  }
}

@keyframes lightbox-content-in {
  from {
    opacity: 0;
    transform: translateY(42px) scale(0.82);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lightbox-detail-block + .lightbox-detail-block {
  margin-top: 1rem;
}

.lightbox-detail-block h4 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.lightbox-detail-block p {
  color: var(--text-soft);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(89, 243, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 18, 38, 0.92);
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(240, 232, 219, 0.86);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
}

.gallery-mode-toggle:hover,
.gallery-mode-toggle:focus-visible {
  color: #ffffff;
  outline: none;
}

.gallery-mode {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: block;
  overflow: auto;
  background: #000000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s ease,
    visibility 0s linear 0.42s;
}

.gallery-mode.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.42s ease,
    visibility 0s linear 0s;
}

.gallery-mode-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.12), transparent 11%),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.1), transparent 12%),
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.12), transparent 11%),
    linear-gradient(180deg, #101010 0%, #060606 55%, #000000 100%);
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.55s ease,
    transform 0.62s ease;
}

.gallery-mode-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.08), transparent 13%),
    radial-gradient(circle at 50% 11%, rgba(255, 255, 255, 0.08), transparent 13%),
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.08), transparent 13%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.18));
}

.gallery-mode-background::before {
  content: none;
}

.gallery-mode.open .gallery-mode-background {
  opacity: 1;
  transform: scale(1);
}

.gallery-mode-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 0.8rem 0.8rem 2rem;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.42s ease 0.05s,
    transform 0.55s cubic-bezier(0.18, 1, 0.32, 1) 0.05s;
}

.gallery-mode.open .gallery-mode-shell {
  opacity: 1;
  transform: translateY(0);
}

.gallery-mode-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.35rem 0.7rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18), transparent);
}

.gallery-mode-label {
  margin: 0;
  color: rgba(245, 244, 239, 0.84);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-mode-close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.gallery-mode-stage {
  position: relative;
  min-height: calc(100vh - 5rem);
  overflow: hidden;
}

.gallery-mode-grid {
  position: relative;
  min-height: 940px;
  width: min(1440px, calc(100vw - 2rem));
  margin: 0 auto;
}

.gallery-mode-grid::after {
  content: none;
}

.gallery-mode-tile {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transform-origin: top left;
  transition:
    box-shadow 0.7s ease,
    opacity 0.7s ease,
    transform 0.7s linear;
}

.gallery-mode-tile::after {
  content: none;
}

.gallery-mode-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  background: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.gallery-mode-tile.is-active {
  box-shadow: none;
}

.gallery-mode-tile.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.gallery-mode-tile.is-left,
.gallery-mode-tile.is-right {
  filter: none;
}

body.no-scroll {
  overflow: hidden;
}

.contact-card {
  display: grid;
  gap: 0.7rem;
}

.contact-line {
  font-size: 1.04rem;
}

.contact-line span {
  font-weight: 700;
  color: var(--cyan);
}

.site-footer {
  width: min(var(--max-width), 92%);
  margin: 1.6rem auto 0;
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  text-align: center;
  color: var(--muted);
}

/* Shared editorial refresh inspired by a cleaner chef portfolio layout */
html,
body {
  background: #f7f5f0;
}

body {
  color: #27241f;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

body::before,
.bg-layer,
.bg-grid,
.bg-vignette,
.logo-screen {
  display: none;
}

h1,
h2,
h3,
h4,
.hero-first,
.hero-last {
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  color: #26231e;
}

p,
.place,
.year,
.gallery-card-detail-line {
  color: #575147;
}

.floating-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 70;
  padding: 0;
}

.floating-bar,
.methods-page .floating-bar {
  width: 100%;
  border: none;
  border-radius: 0;
  margin: 0;
  padding: 0.95rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.nav {
  justify-content: center;
  align-items: center;
}

.nav-list {
  justify-content: center;
  gap: 0.5rem;
}

.nav-list a,
.gallery-shortcuts a {
  color: #2e2a24;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.55rem;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active,
.gallery-shortcuts a:hover,
.gallery-shortcuts a:focus-visible,
.gallery-shortcuts a.active {
  color: #000000;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.nav-list a .nav-icon {
  display: none;
}

.nav-toggle span {
  background: #1f1f1f;
}

.site-header {
  min-height: auto;
  background: #ffffff;
}

.hero {
  width: 100%;
  max-width: none;
  min-height: 480px;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: none;
  position: absolute;
  inset: 0;
}

.hero-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 1.02fr 0.9fr 1.08fr;
  overflow: hidden;
}

.hero-panel {
  position: relative;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: saturate(1.04) brightness(1.12) contrast(1.02);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.1)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.01));
}

.hero-panel + .hero-panel {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
}

.hero-panel-one {
  background-image: url("images/german-chocolate-cake-slice.png");
  background-position: 58% 8%;
  background-size: 168%;
}

.hero-panel-two {
  background-image: url("images/eggs-benedict.jpg");
  background-position: center 46%;
}

.hero-panel-three {
  background-image: url("images/IMG_0545.jpeg");
  background-position: center 42%;
}

.hero-panel-four {
  background-image: url("images/Chicken Caesar.jpg");
  background-position: center 44%;
}

.hero-panel-five {
  background-image: url("images/356486b9-c145-4e91-9e6d-0261a4cb475d.png");
  background-position: center 42%;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 10, 0.03), rgba(6, 8, 10, 0.12)),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.08));
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  margin: 0 auto;
  padding: 2rem;
}

.eyebrow {
  justify-content: center;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.eyebrow::before {
  display: none;
}

#hero-title {
  justify-items: center;
  gap: 0.75rem;
}

.hero-first {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8vw, 6.2rem);
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  filter: none;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 700;
  line-height: 0.95;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.hero-last {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.9rem, 1.7vw, 1.15rem);
  letter-spacing: 0.18em;
  text-transform: none;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.hero-subtitle {
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.section {
  width: min(1100px, 92%);
  padding: 3.8rem 0;
}

.section::before {
  display: none;
}

.section-head {
  margin-bottom: 2rem;
  justify-items: center;
  text-align: center;
}

.section-head h2,
#gallery-title {
  color: #2a2722;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-head::after {
  content: "";
  width: 220px;
  height: 2px;
  background: #7e7460;
  margin-top: 0.5rem;
}

.card,
.gallery-subsection,
.method-card {
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.card {
  padding: 1.8rem;
}

.resume-grid {
  gap: 1.5rem;
}

.timeline li {
  border-left: 2px solid #c8bea6;
}

.timeline li::before {
  background: #8f7c47;
  box-shadow: none;
}

.skill-list li {
  background: #f1ece2;
  border: 1px solid #ded5c2;
  color: #2a2722;
  box-shadow: none;
}

.gallery-groups {
  gap: 2.4rem;
}

.methods-page .gallery {
  position: relative;
  padding: 2rem 1.5rem 2.4rem;
  border-radius: 1.4rem;
  background: #000000;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(194, 154, 90, 0.14);
  overflow: hidden;
}

.methods-page .gallery::before {
  content: none;
}

.methods-page .gallery > * {
  position: relative;
  z-index: 1;
}

.gallery-subsection {
  padding: 0;
}

.gallery-subsection h3,
.method-card h4 {
  color: #39342c;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 2.75rem;
}

.methods-page .gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

#baking-pastry > .gallery-grid,
#baking-pastry-main > .gallery-grid,
#baking-pastry .nested-method-section:not(.quick-breads-subsection) .gallery-grid,
#baking-pastry-main .nested-method-section:not(.quick-breads-subsection) .gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#baking-pastry > .gallery-grid,
#baking-pastry-main > .gallery-grid {
  width: 100%;
  gap: 1.8rem 2.2rem;
}

#baking-pastry > .gallery-grid > .gallery-card,
#baking-pastry-main > .gallery-grid > .gallery-card {
  width: 100%;
  align-self: start;
}

#baking-pastry > .gallery-grid > .gallery-card img,
#baking-pastry-main > .gallery-grid > .gallery-card img {
  aspect-ratio: 1 / 1;
  border-radius: 1.8rem;
  box-shadow: none;
}

#baking-pastry > .gallery-grid > .gallery-card figcaption,
#baking-pastry-main > .gallery-grid > .gallery-card figcaption {
  margin-top: 1rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.05;
}

#baking-pastry > .gallery-grid > .gallery-card .gallery-card-details,
#baking-pastry-main > .gallery-grid > .gallery-card .gallery-card-details {
  gap: 0.7rem;
}

#baking-pastry > .gallery-grid > .gallery-card .gallery-card-detail-line,
#baking-pastry-main > .gallery-grid > .gallery-card .gallery-card-detail-line {
  font-size: 0.88rem;
  line-height: 1.65;
}

.gallery-card,
.gallery-card-labeled,
.gallery-card-with-details {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.gallery-card::before,
.gallery-card::after {
  display: none;
}

.gallery-card img,
.gallery-card-labeled img,
.gallery-card-with-details img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 8px 18px rgba(35, 29, 20, 0.12);
}

.quick-breads-subsection .gallery-grid,
.methods-page .quick-breads-subsection .gallery-grid {
  grid-template-columns: repeat(2, 132px);
  gap: 0.9rem;
  justify-content: start;
}

.quick-breads-subsection .gallery-card,
.methods-page .quick-breads-subsection .gallery-card,
.quick-breads-subsection .gallery-card-labeled,
.methods-page .quick-breads-subsection .gallery-card-labeled {
  width: 132px;
  min-height: 0;
}

.quick-breads-subsection .gallery-card img,
.methods-page .quick-breads-subsection .gallery-card img,
.quick-breads-subsection .gallery-card-labeled img,
.methods-page .quick-breads-subsection .gallery-card-labeled img {
  width: 132px;
  aspect-ratio: 0.76 / 1;
}

.gallery-card-labeled figcaption {
  color: #38342d;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.85rem;
  line-height: 1.12;
}

.gallery-card-details {
  margin-top: 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
}

.gallery-card-detail-line {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  line-height: 1.65;
  letter-spacing: 0;
}

.gallery-card-detail-label {
  color: #8e7a45;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.04em;
}

.gallery-card-detail-value {
  color: rgba(244, 239, 231, 0.92);
}

.gallery-card img[src="images/german-chocolate-cake-slice.png"] {
  object-position: center 18%;
  transform: scale(1.14);
}

.method-card {
  padding: 0;
}

.method-card .gallery-card img {
  aspect-ratio: 1.2 / 1;
}

.hero-secondary,
.hero-cta,
.section-toggle {
  background: #ece8df;
  color: #2c2924;
  border: 1px solid #d8cfbb;
  box-shadow: none;
}

.hero-secondary:hover,
.hero-secondary:focus-visible,
.hero-cta:hover,
.hero-cta:focus-visible,
.section-toggle:hover,
.section-toggle:focus-visible {
  background: #e3dccd;
  border-color: #c9bd9b;
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid #d8cfbb;
  color: #6a645a;
}

/* Professional dark theme override */
html,
body {
  background: #0a0d12;
}

body {
  background-color: #0a0d12;
  color: #f4f1ea;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

body::before,
.logo-screen {
  display: none;
}

.bg-layer,
.bg-grid,
.bg-vignette {
  display: block;
}

.bg-layer-top {
  background:
    radial-gradient(circle at 18% 12%, rgba(173, 123, 55, 0.22), transparent 24%),
    radial-gradient(circle at 80% 8%, rgba(113, 69, 29, 0.2), transparent 28%);
}

.bg-layer-bottom {
  background:
    radial-gradient(circle at 20% 88%, rgba(91, 53, 24, 0.18), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(148, 110, 52, 0.12), transparent 22%);
}

.bg-grid {
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.bg-vignette {
  background:
    radial-gradient(circle at center, transparent 30%, rgba(5, 6, 8, 0.38) 68%, rgba(5, 6, 8, 0.82) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.1), rgba(5, 6, 8, 0.32));
}

h1,
h2,
h3,
h4,
.hero-first,
.hero-last,
.section-head h2,
#gallery-title,
.gallery-subsection h3,
.method-card h4 {
  color: #f7f4ef;
}

p,
.place,
.year,
.gallery-card-detail-line,
.site-footer,
.contact-line,
.reference {
  color: rgba(236, 229, 218, 0.82);
}

.floating-bar,
.methods-page .floating-bar {
  background: rgba(10, 12, 16, 0.92);
  border-bottom: 1px solid rgba(182, 141, 75, 0.22);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.nav-list a,
.gallery-shortcuts a {
  color: rgba(240, 232, 219, 0.86);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active,
.gallery-shortcuts a:hover,
.gallery-shortcuts a:focus-visible,
.gallery-shortcuts a.active {
  color: #ffffff;
}

.nav-toggle span {
  background: #f3ede3;
}

.site-header {
  background: transparent;
}

.hero {
  min-height: 560px;
}

.hero-video-overlay {
  background:
    linear-gradient(180deg, rgba(4, 5, 7, 0.38), rgba(4, 5, 7, 0.64)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.18));
}

.hero-copy {
  max-width: 62rem;
}

.eyebrow {
  color: rgba(222, 196, 151, 0.9);
}

.hero-first {
  color: #ffffff;
  font-size: clamp(3.2rem, 7.4vw, 5.4rem);
  letter-spacing: 0.06em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-last {
  color: rgba(244, 236, 227, 0.94);
  font-size: clamp(1rem, 2vw, 1.45rem);
  letter-spacing: 0.2em;
}

.section {
  width: min(1120px, 92%);
  padding: 2.35rem 0;
}

.section::before {
  display: none;
  background:
    linear-gradient(180deg, rgba(22, 24, 29, 0.96), rgba(14, 16, 20, 0.96)),
    linear-gradient(145deg, rgba(188, 147, 85, 0.06), rgba(255, 255, 255, 0.02));
  border: none;
  border-radius: 1.5rem;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.section-head::after {
  background: linear-gradient(90deg, transparent, rgba(193, 150, 83, 0.9), transparent);
  height: 1px;
}

.card,
.gallery-subsection,
.method-card {
  background:
    linear-gradient(180deg, rgba(24, 26, 31, 0.92), rgba(18, 20, 24, 0.92));
  border: none;
  border-radius: 0.7rem;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18);
}

.card {
  padding: 1.15rem 1.25rem;
}

.timeline li {
  border-left: 2px solid rgba(194, 154, 90, 0.36);
}

.timeline li::before {
  background: #c29754;
}

.skill-list li {
  background: rgba(193, 150, 83, 0.08);
  border: 1px solid rgba(193, 150, 83, 0.18);
  color: #f7f1e7;
}

.gallery-subsection {
  padding: 1.5rem;
}

.home-page main {
  padding-top: 0.4rem;
}

.home-page .site-header {
  margin-bottom: 0.15rem;
}

.home-page .hero {
  min-height: 500px;
}

.home-page .section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.home-page .section-head {
  margin-bottom: 0.55rem;
}

.home-page .section + .section {
  margin-top: 0;
}

.home-page .section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.home-page .section-head::after {
  display: none;
}

.methods-page #gallery .section-head::after {
  content: none;
  display: none;
}

.methods-page .eyebrow::before {
  content: none;
  display: none;
}

.home-page .about-layout,
.home-page .objective .card,
.home-page .education .card,
.home-page .contact-card {
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

.home-page .about-layout,
.home-page .objective .card,
.home-page .education .card {
  max-width: min(1180px, 96%);
  width: 100%;
}

.home-page .about-layout p,
.home-page .objective p,
.home-page .education p,
.home-page .contact-line,
.home-page .reference,
.home-page .timeline p,
.home-page .skill-list li {
  font-size: 1.18rem;
  line-height: 1.62;
}

.home-page .about-layout p + p,
.home-page .objective p + p,
.home-page .education p + p {
  margin-top: 0.7rem;
}

.home-page .resume-grid {
  gap: 1rem;
  grid-template-columns: 1.35fr 1fr;
  justify-items: stretch;
}

.home-page .resume {
  width: min(1220px, 96%);
}

.home-page .resume .panel {
  width: 100%;
}

.gallery-grid,
.methods-page .gallery-grid {
  gap: 2rem;
}

.gallery-card,
.gallery-card-labeled,
.gallery-card-with-details {
  background: transparent;
  border: none;
  box-shadow: none;
}

.gallery-card img,
.gallery-card-labeled img,
.gallery-card-with-details img {
  border-radius: 0.8rem;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.26);
}

.gallery-card-labeled figcaption {
  color: #f7f1e6;
  font-weight: 600;
}

.gallery-card-detail-label,
.contact-line span {
  color: #d0a86c;
}

.hero-secondary,
.hero-cta,
.section-toggle {
  background: rgba(194, 154, 90, 0.1);
  color: #f4eee5;
  border: 1px solid rgba(194, 154, 90, 0.24);
}

.hero-secondary:hover,
.hero-secondary:focus-visible,
.hero-cta:hover,
.hero-cta:focus-visible,
.section-toggle:hover,
.section-toggle:focus-visible {
  background: rgba(194, 154, 90, 0.18);
  border-color: rgba(194, 154, 90, 0.34);
}

.site-footer {
  border-top: 1px solid rgba(193, 150, 83, 0.18);
  color: rgba(228, 220, 208, 0.72);
}

@media (max-width: 760px) {
  .hero {
    min-height: 420px;
  }

  .hero-collage {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
  }

  .hero-panel-four,
  .hero-panel-five {
    display: none;
  }

  .hero-first {
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }

  .hero-last {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    letter-spacing: 0.12em;
  }

  .nav-list {
    background: rgba(10, 12, 16, 0.96);
    border-top: 1px solid rgba(193, 150, 83, 0.18);
  }
}


.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    max-width: 44rem;
  }

  .resume-grid {
    grid-template-columns: 1fr;
  }

  .gallery-mode-grid {
    min-height: calc(100vh - 8rem);
  }
}

@media (max-width: 760px) {
  :root {
    --floating-offset: 10.5rem;
  }

  .floating-bar-wrap {
    padding-top: 0.65rem;
  }

  .floating-bar {
    padding: 0.7rem;
    gap: 0.45rem;
  }

  .nav {
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
    margin-top: 0.15rem;
  }

  .nav-list {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.25rem 0 0.1rem;
    overflow: visible;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    width: 100%;
  }

  .gallery-mode-shell {
    padding: 1rem 0.8rem 1.4rem;
  }

  .gallery-mode-stage {
    min-height: calc(100vh - 5.5rem);
  }

  .gallery-mode-grid {
    min-height: calc(100vh - 6.5rem);
  }

  .gallery-mode-tile {
    width: clamp(220px, 64vw, 360px);
  }

  .hero {
    padding-top: 1.6rem;
    padding-bottom: 3.8rem;
  }

  .hero-copy {
    padding: 1rem 0 0.5rem;
  }

  .hero-nameplate {
    display: block;
  }

  .hero-first {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
  }

  .hero-last {
    font-size: clamp(0.95rem, 4vw, 1.35rem);
    margin-top: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta,
  .hero-secondary {
    width: 100%;
  }

  .section {
    padding: 3.4rem 1rem;
  }

  .section::before {
    border-radius: 1.5rem;
  }

  .gallery-subsection {
    padding: 1.15rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .methods-page .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid-compact {
    grid-template-columns: 1fr;
  }

  .lightbox-content.has-pair .lightbox-image-pair {
    grid-template-columns: 1fr;
  }

  .lightbox-content.has-triplet .lightbox-image-pair {
    grid-template-columns: 1fr;
  }

  .lightbox-content.has-details.has-triplet .lightbox-image-pair {
    grid-template-columns: 1fr;
    grid-template-areas:
      "primary"
      "secondary"
      "tertiary";
  }

  .lightbox-content {
    width: 100%;
  }

  .lightbox-image,
  .lightbox-secondary-image,
  .lightbox-tertiary-image {
    height: auto;
    max-height: 70vh;
  }

  .nested-gallery-compact,
  #yeast-breads .gallery-grid {
    max-width: 100%;
  }

  .lightbox-content.has-details {
    grid-template-columns: 1fr;
  }

  .lightbox-details {
    max-width: none;
  }

  .skill-list {
    grid-template-columns: 1fr;
  }
}
