/* Ilario Studio — portfolio styles */

@font-face { font-family: "LM Display"; src: url("../fonts/display.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-light.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #141f39;
  --ink-2: #1a2747;
  --paper: #ffffff;
  --paper-2: #ffffff;
  --cream: #ffffff;
  --stone: #a19d95;
  --stone-dark: #66625b;
  --red: #b3262d;
  --red-soft: #d0454b;
  --wine: #24345e;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-paper: rgba(20, 24, 26, 0.14);

  --display: "LM Display", "Didot", "Bodoni 72", "Bodoni MT", Georgia, "Times New Roman", serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --max: 1360px;
  --header-h: 72px;
  --section: clamp(72px, 10vw, 148px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; font-size: 13px; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.96; }
.display-xl { font-size: clamp(46px, 8vw, 124px); }
.display-l { font-size: clamp(38px, 5.6vw, 84px); }
.display-m { font-size: clamp(30px, 3.6vw, 52px); line-height: 1; }
.display-s { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.1; }
.accent { color: var(--red); }
.label { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.5; }
.muted { color: var(--stone); }
.lead { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.75; max-width: 46ch; }
.prose { max-width: 62ch; }

.cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-soft); padding: 8px 0; border-bottom: 1px solid currentColor;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.cta:hover { gap: 20px; color: var(--cream); }
.on-paper .cta { color: var(--red); }
.on-paper .cta:hover { color: var(--ink); }
.arr { font-family: var(--display); font-size: 17px; letter-spacing: 0; line-height: 1; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.on-ink { background: var(--ink); color: var(--cream); }
.on-ink2 { background: var(--ink-2); color: var(--cream); }
.on-paper { background: var(--paper); color: #171c1e; }
.on-paper .muted { color: var(--stone-dark); }
.on-wine { background: var(--wine); color: var(--cream); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head .label { display: block; margin-bottom: 18px; }
.section-head p { margin-top: 16px; }
.section-num { color: var(--stone); }
.on-paper .section-num { color: var(--stone-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(20, 31, 57, 0.94); border-bottom-color: var(--line-dark); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-solid { background: rgba(20, 31, 57, 0.8); backdrop-filter: blur(12px); } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--display); text-transform: uppercase; font-size: 19px; letter-spacing: 0.06em; }
.nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav a { position: relative; padding: 6px 0; font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); transition: color 0.25s; }
.nav a:hover { color: var(--cream); }
.nav a[aria-current="page"] { color: var(--cream); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red-soft); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--cream); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ink);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px) var(--pad) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 11vw, 64px); line-height: 1.1; }
.mobile-menu nav a[aria-current="page"] { color: var(--red-soft); }
.mobile-menu .mm-foot { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #0e1528; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 21, 40, 0.92) 0%, rgba(14, 21, 40, 0.6) 42%, rgba(14, 21, 40, 0.15) 75%),
    linear-gradient(0deg, rgba(14, 21, 40, 0.9) 0%, rgba(14, 21, 40, 0) 45%);
}
.hero-content { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(48px, 9vh, 104px); }
.hero h1 { font-size: clamp(42px, 6.4vw, 104px); }
.hero h1 .line { display: block; }
@media (min-width: 700px) { .hero h1 .line { white-space: nowrap; } }
.hero .lead { margin-top: clamp(24px, 3vw, 36px); color: rgba(255, 255, 255, 0.86); max-width: 52ch; }
.hero-rule { width: 64px; height: 1px; background: var(--red-soft); margin: clamp(24px, 3vw, 32px) 0; }
.hero-foot { display: flex; align-items: center; gap: 28px 40px; flex-wrap: wrap; }
.hero-foot .label { color: var(--stone); }

.reveal-ready .hero .line, .reveal-ready .hero .lead, .reveal-ready .hero-rule, .reveal-ready .hero-foot { opacity: 0; transform: translateY(18px); }
.reveal-go .hero .line, .reveal-go .hero .lead, .reveal-go .hero-rule, .reveal-go .hero-foot { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal-go .hero .line:nth-child(2) { transition-delay: 0.12s; }
.reveal-go .hero .line:nth-child(3) { transition-delay: 0.24s; }
.reveal-go .hero .lead { transition-delay: 0.45s; }
.reveal-go .hero-rule, .reveal-go .hero-foot { transition-delay: 0.6s; }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.split--media { grid-template-columns: 6fr 5fr; align-items: center; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { display: block; }
.card-media { overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.92); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.035); filter: saturate(1.05); }
.card-body { padding-top: 16px; }
.card-body .display-s { margin-bottom: 6px; }
.card-body .label { color: var(--stone); }
.card-desc { margin-top: 10px; color: rgba(255, 255, 255, 0.78); font-size: 14px; line-height: 1.6; max-width: 40ch; }
.cards--work { row-gap: clamp(40px, 5vw, 64px); }
.cards--work .card-media { aspect-ratio: 5 / 4; }

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.collection { position: relative; display: block; overflow: hidden; min-height: clamp(280px, 34vw, 440px); background: var(--ink-2); }
.collection .strip { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.collection .strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collection:hover .strip img { transform: scale(1.04); }
.collection::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 21, 40, 0.9) 0%, rgba(14, 21, 40, 0.1) 60%); }
.collection-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.6vw, 36px); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.collection-body p { margin-top: 8px; color: rgba(255, 255, 255, 0.8); font-size: 14px; }

.film-roll { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.film-roll a { display: block; overflow: hidden; aspect-ratio: 3 / 4; background: var(--ink-2); }
.film-roll img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.film-roll a:hover img { transform: scale(1.05); }

/* ---------- Services ---------- */
.services-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); margin-top: clamp(40px, 5vw, 64px); }
.services-row > div { padding: 28px 24px 0 0; }
.services-row > div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.service-icon { width: 30px; height: 30px; margin-bottom: 18px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-paper); }
.service { padding: clamp(28px, 3.4vw, 48px) clamp(0px, 3vw, 44px) clamp(32px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line-paper); display: flex; flex-direction: column; gap: 14px; }
.service:nth-child(even) { padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line-paper); }
.service .label { color: var(--red); }
.service p { max-width: 46ch; color: #3b3f41; }
.service .cta { align-self: flex-start; margin-top: 6px; }

/* ---------- Contact blocks ---------- */
.wine-block { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.wine-block p { color: rgba(255, 255, 255, 0.86); }
.wine-block .cta { color: var(--cream); margin-top: 24px; }
.wine-block .cta:hover { color: #f3c7c9; }

.contact-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.contact-hero .bg { position: absolute; inset: 0; }
.contact-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.contact-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 21, 40, 0.94) 0%, rgba(14, 21, 40, 0.7) 50%, rgba(14, 21, 40, 0.35) 100%); }
.contact-hero .container { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 72px); padding-bottom: clamp(48px, 8vh, 96px); }
.contact-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.contact-list { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line-dark); }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); align-items: baseline; }
.contact-list li a:hover { color: var(--red-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px;
  font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.4); transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { border-color: var(--cream); }
.btn--solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-soft); border-color: var(--red-soft); }
.copy-status { min-height: 1.7em; margin-top: 12px; color: var(--stone); font-size: 13px; }

/* ---------- Page heads ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(40px, 5vw, 72px); }
.page-head .split { align-items: end; }
.back-link { display: inline-flex; gap: 10px; align-items: center; margin-bottom: clamp(28px, 4vw, 48px); color: var(--stone); }
.back-link:hover { color: var(--cream); }

/* ---------- Project page ---------- */
.proj-hero { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.proj-hero h1 { margin-bottom: 14px; }
.proj-hero .label.cat { color: var(--stone); display: block; margin-bottom: clamp(24px, 3vw, 36px); }
.proj-sub { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin-bottom: 24px; }
.proj-hero-media { background: var(--ink-2); }
.proj-hero-media img { width: 100%; max-height: 82vh; object-fit: cover; }
.proj-block { display: grid; grid-template-columns: 160px 1fr; gap: 16px 32px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.proj-block .label { color: var(--stone); padding-top: 5px; }
.proj-block p { max-width: 62ch; }
.proj-closing { font-family: var(--display); font-size: clamp(26px, 3vw, 42px); line-height: 1.12; max-width: 24ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; padding: 0; }
.tags li { border: 1px solid var(--line-dark); padding: 6px 12px; font-size: 12px; color: rgba(255, 255, 255, 0.8); }
.proj-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.proj-nav a { padding: clamp(28px, 4vw, 52px) 0; display: flex; flex-direction: column; gap: 10px; }
.proj-nav a + a { text-align: right; align-items: flex-end; border-left: 1px solid var(--line-dark); padding-left: 24px; }
.proj-nav a:hover .display-m { color: var(--red-soft); }
.proj-nav .display-m { transition: color 0.3s; }

/* ---------- Galleries ---------- */
.masonry { columns: 3 300px; column-gap: clamp(12px, 1.4vw, 20px); }
.masonry > * { break-inside: avoid; margin-bottom: clamp(12px, 1.4vw, 20px); }
.masonry button { display: block; width: 100%; overflow: hidden; background: var(--ink-2); cursor: zoom-in; }
.masonry img { width: 100%; transition: transform 1s var(--ease), opacity 0.6s; }
.masonry button:hover img { transform: scale(1.025); }
img.lazy-fade { opacity: 0; }
img.lazy-fade.is-loaded { opacity: 1; }

/* ---------- Video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.video-item { background: #000; }
.video-item video { width: 100%; height: auto; max-height: 80vh; background: #000; }
.video-item figcaption { padding-top: 12px; color: var(--stone); }
.video-item.is-vertical video { max-height: 80vh; width: auto; margin-inline: auto; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-paper); margin-top: clamp(40px, 5vw, 64px); }
.process > div { padding: 28px 28px 8px 0; }
.process > div + div { padding-left: 28px; border-left: 1px solid var(--line-paper); }
.process .num { color: var(--red); margin-bottom: 14px; display: block; }
.process .display-s { margin-bottom: 12px; }
.process p { color: #3b3f41; max-width: 34ch; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12, 18, 34, 0.97); display: grid; grid-template-rows: auto 1fr auto; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease); }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--pad); gap: 16px; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 var(--pad); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-btn { min-height: 44px; padding: 0 6px; font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.lb-btn:hover { color: var(--cream); }
.lb-counter { color: var(--stone); }
body.no-scroll { overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: #0f182c; color: var(--cream); padding-top: clamp(56px, 7vw, 96px); padding-bottom: 28px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid .brand { display: inline-block; margin-bottom: 16px; }
.footer-grid p { color: rgba(255, 255, 255, 0.7); font-size: 14px; max-width: 36ch; }
.footer-col .label { color: var(--stone); display: block; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-col a { color: rgba(255, 255, 255, 0.85); overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--red-soft); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line-dark); color: var(--stone); font-size: 13px; }
.footer-bottom button:hover { color: var(--cream); }

.closing-line { margin-top: clamp(40px, 5vw, 64px); color: var(--stone); }
.loading { padding: 40vh 0; text-align: center; color: var(--stone); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .services-row { grid-template-columns: repeat(2, 1fr); }
  .services-row > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .services-row > div { padding-bottom: 28px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .split, .split--media, .proj-hero, .wine-block, .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards--home > :last-child { grid-column: 1 / -1; }
  .collections { grid-template-columns: 1fr; }
  .film-roll { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .service:nth-child(even) { padding-left: 0; border-left: 0; }
  .video-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-paper); }
  .proj-block { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .cards { grid-template-columns: 1fr; }
  .cards--home > :last-child { grid-column: auto; }
  .services-row { grid-template-columns: 1fr; }
  .services-row > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .proj-nav a + a { padding-left: 16px; }
  .hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal-ready .hero .line, .reveal-ready .hero .lead, .reveal-ready .hero-rule, .reveal-ready .hero-foot { opacity: 1; transform: none; }
}
.footer-grid p.label { font-size: 11px; color: var(--stone); }
.services-row h3 { margin-bottom: 6px; }
.video-item { margin: 0; background: none; }
.video-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .video-grid--3 { grid-template-columns: 1fr; } }
.proj-hero-media { display: block; width: 100%; cursor: zoom-in; }
.split-media--natural img { aspect-ratio: auto; }

/* ---------- NOFEX headlines ---------- */
@font-face { font-family: "Nofex"; src: url("../fonts/nofex.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --headline: "Nofex", "LM Display", "Helvetica Neue", Arial, sans-serif; }
.display { font-family: var(--headline); letter-spacing: 0; line-height: 1.02; }
.display-xl { font-size: clamp(34px, 5.6vw, 88px); }
.display-l { font-size: clamp(28px, 3.9vw, 58px); }
.display-m { font-size: clamp(22px, 2.5vw, 36px); line-height: 1.08; }
.display-s { font-size: clamp(14px, 1.15vw, 17px); line-height: 1.25; }
.hero h1 { font-size: clamp(30px, 4.6vw, 76px); }
.mobile-menu nav a { font-family: var(--headline); font-size: clamp(30px, 8.4vw, 48px); }
.arr { font-family: "LM Display", Georgia, serif; }

/* Hero still image + business card block */
.hero-media img { object-position: center; }
.wine-block--card { grid-template-columns: 5fr 4fr 3.4fr; align-items: center; }
.card-visual img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(6, 10, 22, 0.55)); transform: rotate(-3deg); }
.wine-block--card .display-xl { font-size: clamp(30px, 4.4vw, 70px); }
@media (max-width: 860px) {
  .wine-block--card { grid-template-columns: 1fr; }
  .card-visual { max-width: 460px; }
}
.contact-hero::after { background: linear-gradient(90deg, rgba(14, 21, 40, 0.94) 0%, rgba(14, 21, 40, 0.78) 50%, rgba(14, 21, 40, 0.72) 100%), linear-gradient(0deg, rgba(14, 21, 40, 0.6) 0%, rgba(14, 21, 40, 0) 50%); }

/* Contact page only: inverted footer (white background, navy text) */
.is-contact .site-footer { background: #ffffff; color: var(--ink); border-top-color: rgba(20, 31, 57, 0.15); }
.is-contact .site-footer p,
.is-contact .footer-col a,
.is-contact .footer-col .label,
.is-contact .footer-grid p.label,
.is-contact .footer-bottom { color: var(--ink); }
.is-contact .footer-grid p { color: rgba(20, 31, 57, 0.8); }
.is-contact .footer-col .label, .is-contact .footer-grid p.label { color: rgba(20, 31, 57, 0.6); }
.is-contact .footer-col a:hover { color: var(--red); }
.is-contact .footer-bottom { border-top-color: rgba(20, 31, 57, 0.15); color: rgba(20, 31, 57, 0.7); }

/* About me page: inverted intro (white background, navy text) */
.on-white { background: #ffffff; color: var(--ink); }
.on-white .proj-sub { color: var(--ink); }
.on-white .proj-block { border-top-color: rgba(20, 31, 57, 0.15); }
.on-white .proj-block .label { color: rgba(20, 31, 57, 0.6); }
.on-white .proj-block p { color: rgba(20, 31, 57, 0.88); }
.is-about .site-header:not(.is-solid) .brand,
.is-about .site-header:not(.is-solid) .nav a { color: var(--ink); }
.is-about .site-header:not(.is-solid) .menu-btn span { background: var(--ink); }
body.is-about::before { background: #ffffff; }
/* About me: solid, non-transparent navy header when scrolling */
.is-about .site-header.is-solid { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Solid, non-transparent navy header on every page when scrolling */
.site-header.is-solid { background: var(--ink) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
