/* ==========================================================
   Goran Veljkovic — Culinary Portfolio
   Tokens are shared with portfolio.html (print version).
   ========================================================== */

:root {
  --bg: #0f1113;
  --bg-rgb: 15, 17, 19;
  --bg-raised: #15191d;
  --text: #f2ede4;
  --text-muted: rgba(242, 237, 228, 0.62);
  --text-faint: rgba(242, 237, 228, 0.38);
  --gold: #a8875a;
  --gold-line: rgba(168, 135, 90, 0.55);
  --gold-hair: rgba(168, 135, 90, 0.22);

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1240px;
  --section-space: clamp(5.5rem, 12vw, 10rem);

  --frame-gap: 10px;
  --shadow-deep:
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 18px 40px -12px rgba(0, 0, 0, 0.6);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums;
  font-weight: 400;
  line-height: 1.1;
}

ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.92), rgba(var(--bg-rgb), 0.75));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-hair);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__mark {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--gold-line);
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--gold-hair);
  display: none;
}
.site-nav.is-open { display: block; }
html:not(.js) .nav-toggle { display: none; }

.site-nav ul {
  padding: 1rem var(--gutter) 1.5rem;
}

.site-nav a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}
.site-nav a:hover { color: var(--text); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
  }
  .site-nav ul {
    display: flex;
    gap: 2.2rem;
    padding: 0;
  }
  .site-nav a { padding: 0; font-size: 0.7rem; }
}

/* ---------- Layout ---------- */

main { display: block; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-space) var(--gutter) 0;
}

.section--narrow { max-width: 860px; }

.section__head {
  margin-bottom: clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.section__title {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: 0.01em;
}

.section__head::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 1.8rem auto 0;
  background: var(--gold);
}

.section__intro {
  max-width: 34rem;
  margin: 1.4rem auto 0;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */

/*
  goran-galley-blur.jpeg (1280×792): Goran sharp, galley lightly blurred behind him.
  The photo is always shown whole (natural ratio, never cropped) and never wider than 1280px.
  A vignette on all sides melts its edges into the page, as on the dish frames.
  Goran stands at ~40–63% of the width (face ~47–55%).
  Mobile: whole photo on top, text below. Desktop: text over the photo's left side.
*/
.hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 4rem; /* clear of the fixed header */
}

.hero__media {
  position: relative;
}

.hero__media img {
  display: block;
  width: 100%;
  height: auto;
  /* Mobile: crop the sides only, so Goran is larger; full height keeps the counter in front of him */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 51% 50%;
  filter: brightness(0.88) saturate(0.9);
  /* Edges fade to transparent on all sides, so no edge ever shows against the page */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

/* Vignette: edges darken into the page colour on all sides */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 72% 72% at 50% 50%,
    rgba(var(--bg-rgb), 0) 50%,
    rgba(var(--bg-rgb), 0.4) 78%,
    rgba(var(--bg-rgb), 0.92) 100%
  );
}

.hero__inner {
  position: relative;
  margin: 1.5rem auto 0;
  padding: 0 var(--gutter);
}

.hero__title {
  margin: 1.2rem 0 1.6rem;
  font-size: clamp(3.4rem, 14vw, 7.2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.005em;
}

.hero__lead {
  max-width: 28rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.button {
  display: inline-block;
  margin-top: 2.4rem;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.button:hover {
  background: var(--gold);
  color: var(--bg);
}

@media (min-width: 860px) {
  /* Extra darkening behind the text, on the left only (Goran is in the centre) */
  .hero__media::after {
    background:
      linear-gradient(
        to right,
        rgba(var(--bg-rgb), 0.85) 0%,
        rgba(var(--bg-rgb), 0.6) 22%,
        rgba(var(--bg-rgb), 0) 38%
      ),
      radial-gradient(
        ellipse 72% 72% at 50% 50%,
        rgba(var(--bg-rgb), 0) 50%,
        rgba(var(--bg-rgb), 0.4) 78%,
        rgba(var(--bg-rgb), 0.92) 100%
      );
  }
  /* Desktop: the whole photo, uncropped */
  .hero__media img { aspect-ratio: auto; object-fit: fill; }
  /* Text sits over the photo's left side, bottom-aligned, clear of Goran's face */
  .hero__inner {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    padding: 0 0 clamp(2.5rem, 6vw, 5rem) clamp(2rem, 6.5vw, 5.5rem);
  }
  .hero__text { max-width: min(24rem, 30vw); }
  .hero__title { font-size: clamp(3rem, 5vw, 5.6rem); }
  .hero__lead { font-size: 0.95rem; }
  .button { margin-top: 1.8rem; }
}

/* ---------- Frame (passe-partout) ---------- */

.frame {
  position: relative;
  display: block;
  width: 100%;
  padding: var(--frame-gap);
  background: none;
  border: 0;
  text-align: inherit;
}

/* Thin gold line set slightly away from the image */
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-line);
  pointer-events: none;
  transition: border-color 0.6s var(--ease);
}

button.frame { cursor: zoom-in; }
button.frame:hover::before { border-color: var(--gold); }

.frame__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--shadow-deep);
}

.frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--focus, 50% 50%);
  transition: transform 1.4s var(--ease);
}

button.frame:hover .frame__media img {
  transform: scale(calc(var(--zoom, 1) * 1.035));
}

/* Inner vignette: edges melt into the page colour */
.frame__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 75% at 50% 50%,
    rgba(var(--bg-rgb), 0) 55%,
    rgba(var(--bg-rgb), 0.35) 80%,
    rgba(var(--bg-rgb), 0.85) 100%
  );
  box-shadow: inset 0 0 36px 8px rgba(var(--bg-rgb), 0.7);
}

.frame--portrait .frame__media img { filter: grayscale(1) contrast(1.04); }

.frame--doc .frame__media { aspect-ratio: 210 / 297; } /* A4 scans */
.frame--doc .frame__media img { filter: brightness(0.92); }
.frame--doc .frame__media::after {
  background: none;
  box-shadow: inset 0 0 24px 4px rgba(var(--bg-rgb), 0.55);
}

/* ---------- Signature dishes ---------- */

.dish-grid {
  display: grid;
  gap: 4.5rem 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .dish-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem 2.5rem;
  }
  .dish:nth-child(even) { margin-top: 5rem; }
}

@media (min-width: 1100px) {
  .dish-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem 3.5rem;
  }
  .dish:nth-child(even) { margin-top: 0; }
  .dish:nth-child(3n + 2) { margin-top: 6rem; }
}

.dish figcaption {
  padding: 1.6rem var(--frame-gap) 0;
}

.dish__index {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
}

.dish__name {
  margin-top: 0.35rem;
  font-size: clamp(1.6rem, 4.5vw, 1.95rem);
  line-height: 1.15;
}

.dish__desc {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.dish__training {
  display: inline-block;
  margin-top: 0.9rem;
  padding-bottom: 0.15rem;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-hair);
  transition: border-color 0.4s var(--ease);
}
.dish__training:hover { border-color: var(--gold); }

/* ---------- Philosophy ---------- */

.philosophy {
  display: grid;
  gap: 3.5rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

.philosophy__portrait {
  width: min(100%, 340px);
  justify-self: center;
}

.philosophy__text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3.6vw, 1.55rem);
  font-style: italic;
  line-height: 1.6;
}

.philosophy__text p + p { margin-top: 1.3em; }

@media (min-width: 860px) {
  .philosophy {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }
  .philosophy__portrait { justify-self: end; }
  .philosophy__text { text-align: left; }
}

.placeholder {
  padding: 2rem 1.5rem;
  border: 1px dashed var(--gold-hair);
  color: var(--text-faint);
  font-size: 1.1rem;
}

/* ---------- Career ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  margin-bottom: clamp(3.5rem, 8vw, 5.5rem);
  padding: 2.5rem 0;
  border-top: 1px solid var(--gold-hair);
  border-bottom: 1px solid var(--gold-hair);
  text-align: center;
}

.facts__item--wide { grid-column: 1 / -1; }

.facts dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.facts dd {
  margin-top: 0.4rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.1;
  color: var(--text);
}

.facts dd.facts__places { font-size: clamp(1.35rem, 4.5vw, 2rem); }

@media (min-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr 2fr; }
  .facts__item--wide { grid-column: auto; }
}

.career {
  display: grid;
  gap: 4rem;
}

@media (min-width: 860px) {
  .career { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

.career__heading {
  margin-bottom: 2rem;
  font-size: 1.9rem;
}

.timeline {
  position: relative;
  border-left: 1px solid var(--gold-hair);
}

.timeline__item {
  position: relative;
  padding: 0 0 2.2rem 1.8rem;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0.65rem;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  background: var(--bg);
  transform: rotate(45deg);
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.3;
}

.timeline__meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline__note {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

/* ---------- Education ---------- */

.subsection__title {
  max-width: 760px;
  margin: 0 auto 1.6rem;
  font-size: 1.9rem;
}

.subsection--small {
  max-width: 760px;
  margin: clamp(4.5rem, 10vw, 7rem) auto 0;
}
.subsection--small .subsection__title { font-size: 1.5rem; }

.credentials {
  max-width: 760px;
  margin: 0 auto clamp(3.5rem, 8vw, 5rem);
}

.credentials a {
  text-decoration: none;
  border-bottom: 1px solid var(--gold-hair);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.credentials a:hover { border-color: var(--gold); color: var(--text); }

.credentials__courses {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.credentials__courses li { padding: 0.25rem 0; }
.credentials__courses span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.certifications li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gold-hair);
  font-size: 0.95rem;
}
.certifications li:first-child { border-top: 1px solid var(--gold-hair); }

.certifications__year {
  font-family: var(--font-serif);
  font-style: italic;
  font-variant-numeric: lining-nums;
  font-size: 1.1rem;
  color: var(--gold);
}

.credentials__item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--gold-hair);
}
.credentials__item:first-child { border-top: 1px solid var(--gold-hair); }

.credentials__year {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1.5;
}

.credentials__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.3;
}

.credentials__detail {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.diploma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.25rem;
}

@media (min-width: 860px) {
  .diploma-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

/* Highlight the certificate reached from a dish card */
.diploma:target .frame::before {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.diploma figcaption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Languages ---------- */

.languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 5.5vw, 2.4rem);
  white-space: nowrap;
}

.languages li + li::before {
  content: "·";
  margin: 0 0.8em;
  color: var(--gold);
}

/* ---------- Contact ---------- */

.contact { text-align: center; }

.contact__email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 6vw, 2.6rem);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 0.2rem;
  overflow-wrap: anywhere;
  transition: border-color 0.4s var(--ease);
}
.contact__email:hover { border-color: var(--gold); }

.contact__note {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: var(--section-space);
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--gold-hair);
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in 0.5s var(--ease);
}

.lightbox::backdrop {
  background: rgba(var(--bg-rgb), 0.94);
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1rem 1.5rem;
  max-width: 100%;
}

.lightbox__media {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  outline: 1px solid var(--gold-line);
  outline-offset: 10px;
}

/* Dish view: same tight crop as on the page, just larger */
.lightbox__media--crop {
  height: min(78vh, calc((100vw - 3rem) * 1.25));
  aspect-ratio: 4 / 5;
}
.lightbox__media--crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--focus, 50% 50%);
}
.lightbox__media--crop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 75% at 50% 50%,
    rgba(var(--bg-rgb), 0) 55%,
    rgba(var(--bg-rgb), 0.35) 80%,
    rgba(var(--bg-rgb), 0.85) 100%
  );
  box-shadow: inset 0 0 50px 10px rgba(var(--bg-rgb), 0.7);
}

/* Document view: the whole scan */
.lightbox__media--full img {
  max-width: calc(100vw - 3rem);
  max-height: 78vh;
  width: auto;
  height: auto;
}

.lightbox__caption {
  margin-top: 1.8rem;
  max-width: 36rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  background: none;
  border: 1px solid var(--gold-line);
  padding: 0.4rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--gold); }

@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body.has-lightbox { overflow: hidden; }

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .frame__media img, .button, .frame::before { transition: none; }
  button.frame:hover .frame__media img { transform: scale(var(--zoom, 1)); }
  .lightbox[open] { animation: none; }
}

/* ---------- Print (A4) ---------- */

@media print {
  @page { size: A4 portrait; margin: 16mm 14mm; }

  :root {
    --bg: #ffffff;
    --bg-rgb: 255, 255, 255;
    --bg-raised: #ffffff;
    --text: #1a1a1a;
    --text-muted: #555049;
    --text-faint: #7a746b;
    --gold-line: rgba(168, 135, 90, 0.7);
    --gold-hair: rgba(168, 135, 90, 0.4);
    --section-space: 10mm;
  }

  html { scroll-behavior: auto; }
  body { font-size: 10pt; line-height: 1.55; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .site-header, .skip-link, .lightbox, .button, .placeholder { display: none !important; }

  .js .reveal { opacity: 1 !important; transform: none !important; }

  .hero { max-width: none; padding: 0 0 6mm; }
  .hero__media::after { background: none; }
  .hero__media img { aspect-ratio: auto; object-fit: fill; }
  .hero__inner { position: static; padding: 0; margin: 6mm 0 0; }
  .hero__text { max-width: none; }
  .hero__title { font-size: 40pt; }

  .philosophy { grid-template-columns: 0.6fr 1.4fr; gap: 10mm; }
  .philosophy__portrait { width: 50mm; }

  .section { padding: var(--section-space) 0 0; max-width: none; }
  .section__head { margin-bottom: 8mm; }
  .section__title { font-size: 24pt; }

  #dishes { break-before: page; }

  .dish-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8mm 10mm;
  }
  .dish, .dish:nth-child(even), .dish:nth-child(3n + 2) { margin-top: 0; }
  .dish { break-inside: avoid; }
  .dish figcaption { padding-top: 3mm; }
  .dish__name { font-size: 14pt; }
  .dish__desc { font-size: 9pt; }

  .frame__media { box-shadow: none; }
  .frame__media::after { box-shadow: inset 0 0 18px 4px rgba(var(--bg-rgb), 0.6); }
  .frame__media img { transition: none; }

  #career, #education { break-before: page; }
  .career { grid-template-columns: 1fr 1fr; gap: 10mm; }
  .facts { grid-template-columns: 1fr 1fr 2fr; }
  .facts__item--wide { grid-column: auto; }

  .diploma-grid { grid-template-columns: repeat(4, 1fr); gap: 6mm; }
  .credentials__item, .timeline__item, .diploma { break-inside: avoid; }

  .site-footer { margin-top: 10mm; }
}
