@charset "UTF-8";

:root {
  --ink: #121011;
  --ink-soft: #1b1819;
  --paper: #f0e8dc;
  --paper-deep: #dfd2c0;
  --wine: #701f2c;
  --wine-dark: #4d111b;
  --gold: #d5ad68;
  --white: #fffaf3;
  --muted: #a99e92;
  --line: rgba(255, 250, 243, .18);
  --display: "Bodoni 72", Didot, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 1000; top: .75rem; left: .75rem; padding: .8rem 1rem;
  background: var(--white); color: var(--ink); transform: translateY(-150%); transition: .2s;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 30; inset: 0 0 auto 0; height: 96px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 5rem); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.16);
  background: rgba(18,16,17,.96); box-shadow: 0 .7rem 2rem rgba(0,0,0,.12);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; text-transform: uppercase; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold);
  border-radius: 50%; color: var(--gold); font-family: var(--display); font-size: 1.1rem; letter-spacing: -.04em;
}
.brand-copy { font-size: .8rem; font-weight: 700; line-height: 1.05; letter-spacing: .08em; }
.brand-copy small { font-size: .48rem; font-weight: 500; letter-spacing: .15em; opacity: .62; }
.main-menu { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2.5rem); }
.main-menu a { position: relative; text-decoration: none; text-transform: uppercase; font-size: .67rem; letter-spacing: .14em; }
.main-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.55rem; height: 1px; background: var(--gold); transition: right .25s; }
.main-menu a:hover::after, .main-menu a:focus-visible::after { right: 0; }
.main-menu .menu-contact { padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.36); }
.main-menu .menu-contact::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-toggle > span:not(.sr-only) { display: block; height: 1px; background: currentColor; margin: 6px 0; transition: .25s; }

.hero { position: relative; min-height: min(900px, 100svh); color: var(--white); background: var(--ink); overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: 0; inset: 96px 0 0; pointer-events: none; background: url("../images/cinema-pattern.svg") center / cover no-repeat; opacity: .62; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}
.hero-photo { position: absolute; z-index: 1; top: 120px; right: clamp(1.5rem, 5vw, 5rem); bottom: 55px; width: auto; aspect-ratio: 2 / 3; background: #1d1919; border: 1px solid rgba(213,173,104,.32); box-shadow: 0 2rem 5rem rgba(0,0,0,.34); overflow: hidden; }
.hero-photo img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0; transition: opacity .6s; }
.hero-photo img.loaded { opacity: 1; }
.hero-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 60% 35%, #393131, #171415 70%); color: rgba(255,255,255,.45); }
.hero-placeholder::before { content: ""; position: absolute; width: min(35vw, 430px); aspect-ratio: .72; border-radius: 52% 52% 12% 12%; background: linear-gradient(140deg, #42393a, #211d1e); filter: blur(1px); }
.hero-placeholder p { position: relative; z-index: 2; padding: 1.2rem 1.7rem; border: 1px solid rgba(255,255,255,.3); text-align: center; text-transform: uppercase; font-size: .7rem; letter-spacing: .2em; line-height: 1.9; }
.hero-placeholder small { font-size: .5rem; letter-spacing: .08em; color: var(--gold); }
.placeholder-number { position: absolute; top: 15%; right: 10%; font: italic clamp(7rem, 15vw, 14rem)/1 var(--display); color: rgba(255,255,255,.025); }
.frame-corners { position: absolute; inset: 3rem; border: 1px solid rgba(255,255,255,.08); }
.hero-gradient { position: absolute; z-index: 3; inset: 0; background: linear-gradient(0deg, rgba(18,16,17,.14), transparent 32%); }
.hero-content { position: relative; z-index: 5; width: min(58%, 850px); padding: clamp(10rem, 20vh, 13.5rem) 0 7rem clamp(1.5rem, 8vw, 8rem); }
.eyebrow, .section-number { margin: 0 0 1.6rem; text-transform: uppercase; font-size: .65rem; font-weight: 600; letter-spacing: .24em; color: var(--gold); }
.eyebrow { display: flex; align-items: center; gap: 1rem; }
.eyebrow span { width: 38px; height: 1px; background: var(--gold); }
.hero h1, .section-heading h2, .contacts h2 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -.05em; }
.hero h1 { font-size: clamp(4.7rem, 10vw, 10.7rem); line-height: .7; text-shadow: 0 8px 35px rgba(0,0,0,.28); }
.hero h1 em, .section-heading em, .contacts h2 em { color: var(--gold); text-transform: none; font-weight: 400; }
.hero h1 em { display: block; margin: .28em 0 0 .4em; font-size: .48em; line-height: 1; letter-spacing: -.03em; }
.hero-lead { width: min(100%, 520px); margin: 2.7rem 0 2rem; color: #d6cfc7; font-family: var(--display); font-size: clamp(1.08rem, 1.6vw, 1.45rem); line-height: 1.45; }
.hero-actions { display: flex; align-items: center; gap: 1rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 54px; padding: 0 1.5rem; text-decoration: none; text-transform: uppercase; font-size: .62rem; font-weight: 700; letter-spacing: .14em; transition: .25s; }
.button-primary { background: var(--wine); color: var(--white); }
.button-primary:hover { background: #8a2a39; transform: translateY(-2px); }
.button-ghost { border: 1px solid rgba(255,255,255,.25); }
.button-ghost:hover { border-color: var(--gold); color: var(--gold); }
.play-dot { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; font-size: .52rem; padding-left: 2px; }
.hero-facts { display: flex; gap: clamp(2rem, 5vw, 5rem); margin: 3rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid rgba(255,255,255,.2); width: min(100%, 580px); }
.hero-facts div { display: grid; gap: .35rem; }
.hero-facts dt { text-transform: uppercase; font-size: .55rem; letter-spacing: .14em; color: #958d87; }
.hero-facts dd { margin: 0; font-family: var(--display); font-size: 1.05rem; }
.hero-side-note { position: absolute; z-index: 5; top: 50%; right: 1.8rem; transform: rotate(90deg) translateX(50%); transform-origin: right center; color: rgba(255,255,255,.5); font-size: .55rem; letter-spacing: .25em; }
.scroll-cue { position: absolute; z-index: 5; bottom: 2rem; right: clamp(2rem, 8vw, 8rem); display: flex; align-items: center; gap: 1rem; color: #aaa19a; text-decoration: none; text-transform: uppercase; font-size: .5rem; letter-spacing: .2em; }
.scroll-cue i { display: block; width: 68px; height: 1px; background: linear-gradient(90deg, var(--gold) 50%, rgba(255,255,255,.2) 50%); background-size: 200% 100%; animation: scrollLine 2s ease infinite; }
@keyframes scrollLine { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.section { padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 8vw, 8rem); }
.about { display: grid; grid-template-columns: .9fr 1fr .72fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.section-heading h2 { font-size: clamp(3rem, 6vw, 6.6rem); line-height: .86; }
.section-heading h2 em { display: inline-block; margin-left: .5em; font-size: .72em; }
.about-copy { padding-top: 3.4rem; }
.about-copy p { color: #554e48; line-height: 1.8; font-size: .95rem; }
.about-copy .intro { margin-top: 0; color: var(--ink); font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.42; }
.status-line { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; text-transform: uppercase; font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.status-line span { width: 8px; height: 8px; border-radius: 50%; background: #5c923f; box-shadow: 0 0 0 5px rgba(92,146,63,.12); }
.quote-card { position: relative; margin-top: 3rem; padding: 4rem 2rem 2rem; background: var(--wine); color: var(--white); }
.quote-card::before { content: ""; position: absolute; inset: .65rem; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.quote-mark { position: absolute; top: .2rem; left: 1.4rem; color: var(--gold); font: 5rem/1 var(--display); }
.quote-card blockquote { position: relative; margin: 0; font: italic 1.25rem/1.5 var(--display); }
.quote-card p { position: relative; margin: 1.5rem 0 0; color: var(--gold); text-transform: uppercase; font-size: .55rem; letter-spacing: .18em; }
.profile-strip { padding: 1.25rem 0; color: var(--paper); background: var(--wine-dark); overflow: hidden; }
.profile-ticker { display: flex; width: max-content; gap: 2.4rem; align-items: center; padding-left: 4vw; text-transform: uppercase; font-size: .64rem; letter-spacing: .13em; animation: ticker 28s linear infinite alternate; }
.profile-ticker i { color: var(--gold); font-style: normal; }
@keyframes ticker { to { transform: translateX(-15vw); } }

.section-dark { color: var(--white); background: var(--ink); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.section-note { width: min(100%, 390px); margin: 0 0 .6rem; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .65rem; margin: 3.5rem 0 2rem; }
.filter-button { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: #a9a09a; text-transform: uppercase; font-size: .55rem; letter-spacing: .12em; cursor: pointer; transition: .2s; }
.filter-button:hover, .filter-button.active { border-color: var(--gold); color: var(--gold); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: clamp(.55rem, 1.2vw, 1rem); }
.gallery-item { position: relative; grid-column: span 3; aspect-ratio: .76; overflow: hidden; background: #252122; border: 0; padding: 0; cursor: zoom-in; color: var(--white); }
.gallery-item:nth-child(5n + 1) { grid-column: span 5; grid-row: span 2; aspect-ratio: .88; }
.gallery-item:nth-child(5n + 2) { grid-column: span 4; aspect-ratio: 1.08; }
.gallery-item:nth-child(5n + 3) { grid-column: span 3; }
.gallery-item::before { content: ""; position: absolute; z-index: 3; top: 50%; left: 50%; width: 32px; height: 32px; margin: -18px 0 0 -18px; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--gold); border-radius: 50%; animation: imageLoaderSpin .8s linear infinite; transition: opacity .25s; }
.gallery-item.image-loaded::before { opacity: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.78); transition: opacity .35s, transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.gallery-item.image-loaded img { opacity: 1; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.045); filter: saturate(1); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent 45%); opacity: .7; transition: opacity .25s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-caption { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: 1rem; display: flex; align-items: end; justify-content: space-between; text-align: left; text-transform: uppercase; font-size: .55rem; letter-spacing: .14em; }
.gallery-caption i { color: var(--gold); font: 1.2rem/1 var(--sans); }
.gallery-item[hidden] { display: none; }
.gallery-hint { margin: 1.5rem 0 0; color: #746d68; font-size: .66rem; }
.gallery-hint code { color: var(--gold); }

.video { background: var(--paper-deep); }
#self-tapes { color: var(--white); background-color: #202328; border-top: 1px solid rgba(213,173,104,.2); border-bottom: 1px solid rgba(213,173,104,.2); }
#self-tapes .section-note, #self-tapes .video-meta p, #self-tapes .video-empty { color: #bcb5ad; }
#self-tapes .video-meta time { color: var(--gold); border-color: rgba(213,173,104,.42); }
#self-tapes .video-empty code { color: var(--gold); }
#self-tapes .video-format-warning { color: var(--gold); border-color: var(--gold); background: rgba(213,173,104,.08); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; margin-top: 4rem; }
.video-card { margin: 0; }
.video-frame { position: relative; background: #171415; box-shadow: 0 1.5rem 4rem rgba(56,37,31,.17); }
.video-frame video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.video-card:not(.video-card-main) .video-frame video { aspect-ratio: 16 / 10; }
.video-number { position: absolute; top: .8rem; left: .8rem; padding: .42rem .55rem; color: var(--gold); background: rgba(18,16,17,.8); font: .65rem var(--sans); letter-spacing: .1em; pointer-events: none; }
.video-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; }
.video-meta-heading { display: flex; align-items: center; gap: .8rem; }
.video-meta h3 { margin: 0; font: 1.4rem var(--display); }
.video-meta time { padding: .35rem .55rem; border: 1px solid rgba(112,31,44,.35); border-radius: 99px; color: var(--wine); font-size: .55rem; font-weight: 700; letter-spacing: .12em; }
.video-meta p { margin: 0; color: #71665e; text-transform: uppercase; font-size: .52rem; letter-spacing: .13em; }
.video-empty { margin: 2rem 0 0; color: #71665e; font-size: .68rem; }
.video-empty code { color: var(--wine); }
.video-empty[hidden] { display: none; }
.video-format-warning { margin: .8rem 0 0; padding: .7rem .85rem; border-left: 2px solid var(--wine); color: var(--wine); background: rgba(112,31,44,.07); font-size: .65rem; line-height: 1.45; }
.video-format-warning[hidden] { display: none; }

.section-wine { position: relative; display: grid; grid-template-columns: .9fr 1.05fr .8fr; gap: clamp(2rem, 5vw, 6rem); color: var(--white); background: var(--wine-dark); overflow: hidden; }
.section-wine::before { content: "04"; position: absolute; right: -1vw; bottom: -7vw; color: rgba(255,255,255,.025); font: 34vw/1 var(--display); }
.skill-list, .profile-card { position: relative; z-index: 1; }
.skill-list { padding-top: 2.5rem; }
.skill-list article { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.skill-list article > span { color: var(--gold); font-size: .55rem; }
.skill-list h3 { margin: 0 0 .35rem; font: 1.35rem var(--display); }
.skill-list p { margin: 0; color: #b8a9a9; font-size: .76rem; line-height: 1.55; }
.skill-list i { color: var(--gold); font-style: normal; }
.education-list { display: grid; gap: .5rem; margin: .75rem 0 0; padding: 0; list-style: none; }
.education-list li { display: grid; grid-template-columns: 38px 1fr; gap: .75rem; color: #c9bbbb; font-size: .74rem; line-height: 1.6; }
.education-list time { color: var(--gold); font-weight: 700; letter-spacing: .05em; }
.profile-card { align-self: start; padding: 2rem; background: var(--paper); color: var(--ink); box-shadow: 0 2rem 6rem rgba(0,0,0,.2); }
.card-label { margin: 0 0 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid #d4c8b8; color: var(--wine); text-transform: uppercase; font-size: .58rem; font-weight: 700; letter-spacing: .18em; }
.profile-card dl { margin: 0; }
.profile-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .78rem 0; border-bottom: 1px solid #ddd2c4; }
.profile-card dt { color: var(--wine); font-size: .74rem; font-weight: 600; }
.profile-card dd { margin: 0; text-align: right; font: .9rem var(--display); }
.text-button { display: flex; width: 100%; justify-content: space-between; margin-top: 1.5rem; padding: 0 0 .65rem; border: 0; border-bottom: 1px solid var(--wine); background: none; color: var(--wine); text-transform: uppercase; font-size: .58rem; font-weight: 700; letter-spacing: .12em; cursor: pointer; }

.contacts { text-align: center; background: var(--paper); }
.contact-kicker { margin-bottom: 1.4rem; color: var(--wine); text-transform: uppercase; font-size: .6rem; font-weight: 700; letter-spacing: .24em; }
.contacts h2 { font-size: clamp(3.6rem, 8vw, 8.6rem); line-height: .86; }
.contacts h2 em { color: var(--wine); }
.contact-note { width: min(100%, 540px); margin: 2rem auto 3rem; color: #615a54; line-height: 1.7; }
.contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(1.5rem, 4vw, 4rem); width: min(100%, 1080px); margin: 0 auto 3rem; }
.contact-item { display: grid; justify-items: center; gap: .55rem; min-width: 0; }
.contact-item > small { color: #847a70; text-transform: uppercase; font-size: .5rem; letter-spacing: .15em; }
.contact-value-row { display: flex; align-items: center; justify-content: center; gap: .65rem; min-width: 0; }
.contact-value { color: inherit; font: clamp(1.05rem, 1.7vw, 1.55rem) var(--display); text-decoration: none; overflow-wrap: anywhere; border-bottom: 1px solid #c8bbaa; }
.messenger-mark { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.messenger-mark:hover { transform: translateY(-2px); box-shadow: 0 .45rem 1rem rgba(36,25,27,.16); }
.messenger-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.messenger-mark-static { cursor: default; }
.messenger-mark-static:hover { transform: none; box-shadow: none; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: -1rem auto 2.5rem; }
.social-links a { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .85rem; min-width: min(100%, 270px); padding: .8rem 1rem; border: 1px solid rgba(112,31,44,.25); background: rgba(240,232,220,.66); color: var(--ink); text-align: left; text-decoration: none; transition: border-color .2s, transform .2s, background .2s; }
.social-links a:hover { border-color: var(--wine); background: rgba(255,250,243,.88); transform: translateY(-2px); }
.social-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white); background: #3478b8; font-size: .68rem; font-weight: 800; letter-spacing: -.03em; }
.social-mark-instagram { background: linear-gradient(135deg, #7f3fb4, #d64274 58%, #e0a33f); font-size: 1.25rem; }
.social-mark-yandex { overflow: hidden; background: #fff; }
.social-mark-filmtoolz { overflow: hidden; background: #3b2344; }
.social-mark-allcastings { overflow: hidden; background: #000; }
.social-mark-telegram { overflow: hidden; background: #2aabee; }
.social-mark-yandex img, .social-mark-filmtoolz img, .social-mark-allcastings img, .social-mark-telegram img { display: block; width: 100%; height: 100%; object-fit: cover; }
.social-mark-allcastings img { width: 80%; height: 80%; object-fit: contain; }
.social-links a > span:nth-child(2) { display: grid; gap: .25rem; }
.social-links small { color: #847a70; text-transform: uppercase; font-size: .48rem; letter-spacing: .15em; }
.social-links strong { font: 1rem var(--display); }
.social-links i { color: var(--wine); font-style: normal; }
.contact-button { display: inline-flex; align-items: center; gap: 3rem; padding: 1.2rem 1.5rem; background: var(--wine); color: var(--white); text-decoration: none; text-transform: uppercase; font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.contact-button:hover span { transform: translate(3px, -3px); }
.contact-button span { color: var(--gold); transition: .2s; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 2.5rem clamp(1.5rem, 8vw, 8rem); color: #aea4a0; background: var(--ink); font-size: .58rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-brand { color: var(--white); }
.site-footer > a { text-decoration: none; }

/* Единый полупрозрачный кино-паттерн во всех секциях сайта. */
.about,
.profile-strip,
.photos,
.video,
.skills,
.contacts,
.site-footer {
  background-image: url("../images/cinema-pattern.svg");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 1400px auto;
}

.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,7,8,.96); color: var(--white); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; }
.lightbox::backdrop { background: rgba(8,7,8,.96); }
.lightbox figure { position: relative; margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.lightbox figure::before { content: ""; position: absolute; z-index: 2; top: calc(50% - 38px); left: 50%; width: 38px; height: 38px; margin: -21px 0 0 -21px; border: 2px solid rgba(255,255,255,.16); border-top-color: var(--gold); border-radius: 50%; opacity: 0; animation: imageLoaderSpin .8s linear infinite; transition: opacity .2s; pointer-events: none; }
.lightbox.image-loading figure::before { opacity: 1; }
.lightbox figure img { width: 100%; height: calc(100dvh - 75px); object-fit: contain; padding: 2rem; opacity: 1; transition: opacity .2s; }
.lightbox.image-loading figure img { opacity: .15; }
@keyframes imageLoaderSpin { to { transform: rotate(360deg); } }
.lightbox figcaption { display: flex; justify-content: space-between; padding: 1rem 2rem 1.5rem; color: #aaa19b; text-transform: uppercase; font-size: .58rem; letter-spacing: .14em; border-top: 1px solid var(--line); }
.lightbox-arrow, .lightbox-close { border: 0; background: none; color: var(--white); cursor: pointer; }
.lightbox-arrow { height: 100%; color: var(--gold); font-size: 2rem; transition: background .2s; }
.lightbox-arrow:hover { background: rgba(255,255,255,.04); }
.lightbox-close { position: fixed; z-index: 2; top: 1.2rem; right: 1.5rem; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; font-size: 1.6rem; }

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

@media (max-width: 1050px) {
  .site-header { padding-inline: 1.5rem; }
  .main-menu { gap: .65rem; }
  .main-menu a { font-size: .55rem; letter-spacing: .07em; }
  .main-menu .menu-contact { padding: .65rem .75rem; }
  .hero-photo { left: auto; right: 2rem; }
  .hero-content { width: 52%; }
  .hero-actions { flex-wrap: wrap; }
  .about { grid-template-columns: 1fr 1fr; }
  .quote-card { grid-column: 2; margin-top: 0; }
  .section-wine { grid-template-columns: 1fr 1fr; }
  .profile-card { grid-column: 2; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 4; grid-row: auto; aspect-ratio: .8; }
  .gallery-item:nth-child(4n + 1) { grid-column: span 8; aspect-ratio: 1.25; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 76px; }
  .site-header { height: 76px; }
  .menu-toggle { display: block; position: relative; z-index: 2; cursor: pointer; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-menu { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; height: 100dvh; padding: 5rem 1.5rem 2rem; overflow-y: auto; background: rgba(18,16,17,.99); transform: translateX(100%); transition: transform .35s; }
  .main-menu.open { transform: none; }
  .main-menu a { font: 2rem var(--display); text-transform: none; letter-spacing: 0; }
  .main-menu .menu-contact { border: 0; padding: 0; color: var(--gold); }
  .hero { display: flex; flex-direction: column; min-height: auto; padding-top: 76px; }
  .hero::before { inset: 76px 0 0; background-size: auto 100%; background-position: center top; opacity: .48; }
  .hero-photo { position: relative; inset: auto; width: min(calc(100% - 3rem), 430px); height: auto; aspect-ratio: 2 / 3; margin: 1.25rem auto 0; flex: none; }
  .hero-gradient { background: linear-gradient(0deg, rgba(18,16,17,.12), transparent 28%); }
  .hero-content { position: relative; inset: auto; width: 100%; padding: 3.2rem 1.5rem 4.5rem; }
  .hero h1 { font-size: clamp(4rem, 19vw, 7rem); }
  .hero-lead { margin: 1.8rem 0 1.4rem; }
  .hero-side-note, .scroll-cue { display: none; }
  .hero-facts { gap: 1.6rem; margin-top: 1.8rem; }
  .section { padding: 5.5rem 1.5rem; }
  .about, .section-wine { grid-template-columns: 1fr; }
  .about-copy { padding-top: 0; }
  .quote-card, .profile-card { grid-column: auto; }
  .section-top { display: grid; }
  .section-note { margin: 0; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: span 6; aspect-ratio: .78; }
  .gallery-item:nth-child(5n + 1) { grid-column: span 12; aspect-ratio: 1.05; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card:not(.video-card-main) { width: 100%; margin-left: 0; }
  .contact-links { grid-template-columns: 1fr; gap: 1.6rem; }
  .social-links { flex-direction: column; align-items: stretch; max-width: 330px; }
  .social-links a { width: 100%; }
  .site-footer { flex-wrap: wrap; gap: 2rem; }
  .lightbox[open] { grid-template-columns: 52px 1fr 52px; }
  .lightbox figure img { padding: 1rem 0; }
  .lightbox figcaption { padding: 1rem .5rem 1.5rem; }
  .about, .profile-strip, .photos, .video, .skills, .contacts, .site-footer { background-size: 900px auto; }
}

@media (max-width: 480px) {
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 330px); }
  .hero-facts { justify-content: space-between; }
  .hero-facts dd { font-size: .9rem; }
  .gallery { gap: .45rem; }
  .gallery-caption { left: .7rem; right: .7rem; bottom: .7rem; }
  .video-meta { display: grid; }
  .video-card:not(.video-card-main) { width: 100%; }
  .profile-card { padding: 1.4rem; }
  .contacts h2 { font-size: 3.25rem; }
  .site-footer > p { order: 3; flex-basis: 100%; }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lightbox-arrow { font-size: 1.4rem; }
}

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

@media print {
  .site-header, .hero-actions, .scroll-cue, .profile-strip, .photos, .video, .contacts, .site-footer, .quote-card { display: none !important; }
  body, .hero, .section-wine { color: #111; background: #fff; }
  .hero { min-height: auto; padding: 2rem; }
  .hero-photo, .hero-side-note { display: none; }
  .hero-content { width: 100%; padding: 0; }
  .hero h1 { font-size: 4rem; color: #111; text-shadow: none; }
  .hero h1 em, .section-heading em { color: #701f2c; }
  .hero-lead, .hero-facts dt { color: #555; }
  .about, .section-wine { display: grid; grid-template-columns: 1fr 1fr; padding: 2rem; break-inside: avoid; }
  .reveal { opacity: 1; transform: none; }
  .profile-card { grid-column: 2; box-shadow: none; border: 1px solid #aaa; }
}
