/* Apex Holding: one stylesheet for every page.
   Flat colour, real photographs, hairline rules. Motion is limited to opacity
   and short transforms, and switches off under prefers-reduced-motion. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f3ee;
  --paper-2: #ece7df;
  --ink: #1b1a18;
  --ink-2: #5a564f;
  --ink-3: #8a857c;
  --rule: #d9d3c9;
  --night: #15130f;
  --night-2: #221f1a;
  --on-night: #efe9df;
  --on-night-2: #a9a194;
  --accent: #1b1a18;
  --accent-ink: #f6f3ee;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body[data-theme="greppo"] { --accent: #6b1f2a; }
body[data-theme="arz"] { --accent: #2f4330; }
body[data-theme="zaarour"] { --accent: #3d4a55; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 300; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.label::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* ---------- icons ---------- */
.icon { width: 18px; height: 18px; flex: none; stroke-width: 1.6; }
.icon-lg { width: 24px; height: 24px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 500 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.on-night .btn { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.on-night .btn:hover { background: transparent; color: var(--on-night); }
.on-night .btn-ghost { background: transparent; color: var(--on-night); border-color: rgba(239, 233, 223, .4); }
.on-night .btn-ghost:hover { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease), color .2s;
}
.link:hover { background-size: 100% 1px; color: var(--accent); }
.on-night .link:hover { color: var(--on-night); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 238, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 26px; color: var(--ink); }
.brand span { font: 500 19px/1 var(--serif); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; text-decoration: none; color: var(--ink-2); padding: 6px 0; position: relative; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); }
.nav .nav-cta { border: 1px solid var(--ink); padding: 10px 16px; color: var(--ink); border-radius: var(--radius); }
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 0; cursor: pointer; font-size: 15px; }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 16px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { font: 400 28px/1.2 var(--serif); color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--accent); }
  .nav .nav-cta { border: 0; border-bottom: 1px solid var(--rule); padding: 18px 0; }
  .nav .nav-cta:hover { background: none; color: var(--accent); }
  body.menu-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.hero-top .label { margin-bottom: 28px; }
.hero-top .lead { margin: 0; }
.hero-media { margin-top: clamp(40px, 5vw, 64px); position: relative; }
.hero-media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--paper-2); }
.hero-media figcaption, figure figcaption { font-size: 13px; color: var(--ink-3); margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; }
@media (max-width: 820px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 4 / 3.4; }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section:not(.night):not(.tint):not(.ruled) + .section:not(.night):not(.tint):not(.ruled) { padding-top: 0; }
.section.ruled { border-top: 1px solid var(--rule); padding-top: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .label { margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--ink-2); max-width: 34em; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

.night { background: var(--night); color: var(--on-night); }
.night .label, .night .muted { color: var(--on-night-2); }
.night .section-head p { color: var(--on-night-2); }
.night.section, .section.night { padding-top: var(--section); }
.tint { background: var(--paper-2); }
.tint.section, .section.tint { padding-top: var(--section); }

/* two column text + image */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .prose { max-width: 32em; }
.split .prose h2 { margin: 20px 0 28px; }
.split .prose p { color: var(--ink-2); }
.night .split .prose p { color: var(--on-night-2); }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* ---------- photo grids ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); }
.mosaic figure { margin: 0; }
.mosaic button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.mosaic button:hover img { transform: scale(1.025); }
.mosaic .m-a { grid-column: span 7; } .mosaic .m-a button { aspect-ratio: 7 / 5; }
.mosaic .m-b { grid-column: span 5; } .mosaic .m-b button { aspect-ratio: 5 / 5; }
.mosaic .m-c { grid-column: span 4; } .mosaic .m-c button { aspect-ratio: 4 / 5; }
.mosaic .m-d { grid-column: span 8; } .mosaic .m-d button { aspect-ratio: 8 / 5; }
.mosaic .m-e { grid-column: span 6; } .mosaic .m-e button { aspect-ratio: 6 / 5; }
.mosaic .m-f { grid-column: span 3; } .mosaic .m-f button { aspect-ratio: 3 / 4; }
.mosaic .m-w { grid-column: span 12; } .mosaic .m-w button { aspect-ratio: 12 / 5; }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic > * { grid-column: span 1 !important; }
  .mosaic > * button { aspect-ratio: 4 / 5 !important; }
  .mosaic .m-a, .mosaic .m-d, .mosaic .m-w { grid-column: span 2 !important; }
  .mosaic .m-a button, .mosaic .m-d button, .mosaic .m-w button { aspect-ratio: 4 / 3 !important; }
}

/* horizontal strip, scroll-snapped */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 30vw, 380px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; margin: 0; }
.strip button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.strip button:hover img { transform: scale(1.025); }
.strip figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* ---------- ventures (home) ---------- */
.ventures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.venture { display: flex; flex-direction: column; text-decoration: none; }
.venture .v-img { overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; }
.venture img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.venture:hover img { transform: scale(1.03); }
.venture .v-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 0 10px; border-bottom: 1px solid var(--rule); }
.venture h3 { font-size: 28px; }
.venture .v-place { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.venture p { color: var(--ink-2); margin: 14px 0 16px; }
.venture .link { margin-top: auto; align-self: flex-start; }
.venture:hover .link { color: var(--accent); background-size: 100% 1px; }
@media (max-width: 900px) { .ventures { grid-template-columns: 1fr; } .venture .v-img { aspect-ratio: 4 / 3; } }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.facts > div { padding: 28px 24px 4px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts .icon { display: block; color: var(--accent); margin-bottom: 18px; }
.facts dt { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font: 400 22px/1.25 var(--serif); }
.night .facts, .night .facts > div + div { border-color: rgba(239, 233, 223, .16); }
.night .facts dt { color: var(--on-night-2); }
.night .facts .icon { color: var(--on-night); }
@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(239, 233, 223, .16); }
.numbers > div { padding: 32px 24px 0 0; }
.numbers > div + div { padding-left: 24px; border-left: 1px solid rgba(239, 233, 223, .16); }
.numbers b { display: block; font: 300 clamp(30px, 3.6vw, 52px)/1 var(--serif); letter-spacing: -0.02em; margin-bottom: 14px; white-space: nowrap; }
.numbers span { font-size: 14px; color: var(--on-night-2); }
@media (max-width: 820px) {
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .numbers > div:nth-child(n+3) { margin-top: 32px; }
}

/* ---------- list rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.rows .n { font: 400 15px/1 var(--serif); color: var(--ink-3); }
.rows h3 { font-size: 24px; }
.rows p { margin: 0; color: var(--ink-2); }
@media (max-width: 720px) { .rows li { grid-template-columns: 40px 1fr; } .rows p { grid-column: 2; } }

/* ---------- wines ---------- */
.wines { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.wine { display: flex; flex-direction: column; }
.wine .w-img { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--night-2); aspect-ratio: 3 / 4; }
.wine .w-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.wine .w-img img + img { position: absolute; inset: 0; opacity: 0; }
.wine .w-img:hover img + img { opacity: 1; }
.wine .w-img:hover img { transform: scale(1.02); }
.wine .w-count { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(21, 19, 15, .72); color: var(--on-night); font-size: 12px; padding: 6px 9px; border-radius: var(--radius); }
.wine .w-count .icon { width: 14px; height: 14px; }
.wine .w-type { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); margin: 18px 0 6px; }
.wine h3 { font-size: 23px; }
.wine .w-desc { flex: 1; margin: 8px 0 16px; }
.wine .w-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(239, 233, 223, .16); }
.wine .w-price { font: 400 22px/1 var(--serif); }
.wine .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
@media (max-width: 1100px) { .wines { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 640px) { .wines { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wine h3 { font-size: 19px; } .wine .w-foot { flex-direction: column; align-items: flex-start; } }
.fine { font-size: 13px; color: var(--on-night-2); margin-top: 40px; max-width: 46em; }

/* ---------- steps (status timeline) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { position: relative; padding: 28px 20px 0 0; border-top: 2px solid var(--rule); }
.steps li.done { border-top-color: var(--ink); }
.steps li.now { border-top-color: var(--accent); }
.steps li.now::before { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.steps b { display: block; font: 400 22px/1.2 var(--serif); margin-bottom: 6px; }
.steps span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contact-list li { border-bottom: 1px solid var(--rule); }
.contact-list a, .contact-list .row { display: flex; align-items: center; gap: 16px; padding: 20px 0; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-list .k { font-size: 13px; color: var(--ink-3); width: 110px; flex: none; }
.contact-list .v { font: 400 21px/1.3 var(--serif); }
.contact-list .icon { margin-left: auto; color: var(--ink-3); transition: transform .25s var(--ease), color .2s; }
.contact-list a:hover .icon { transform: translate(2px, -2px); color: var(--accent); }
.night .contact-list, .night .contact-list li { border-color: rgba(239, 233, 223, .16); }
.night .contact-list .k { color: var(--on-night-2); }
.night .contact-list a:hover { color: var(--on-night); opacity: .75; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } .contact-list .k { width: 84px; } .contact-list .v { font-size: 18px; } }

/* subject chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; font-size: 14px; transition: border-color .2s, background-color .2s; }
.chips a:hover { border-color: var(--ink); background: var(--paper); }
.chips .icon { width: 15px; height: 15px; color: var(--ink-3); }

/* form */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.form input, .form textarea {
  font: 400 17px/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink-3);
  padding: 10px 0; border-radius: 0; transition: border-color .2s;
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form .note { font-size: 13px; color: var(--ink-3); margin: 0; }

/* faq */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font: 400 22px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--ink-3); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .a { padding: 0 0 26px; color: var(--ink-2); max-width: 44em; }

/* founder */
.founder { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.founder img { width: 200px; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } .founder img { width: 160px; } }
.companies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--rule); }
.companies li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.companies b { font: 400 20px/1.3 var(--serif); }
.companies span { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.companies a { text-decoration: none; }
.companies a:hover b { color: var(--accent); }
@media (max-width: 720px) { .companies { grid-template-columns: 1fr; } }

/* ---------- closing band ---------- */
.band { position: relative; overflow: hidden; }
.band img { width: 100%; height: clamp(320px, 52vw, 620px); object-fit: cover; }
.band .band-copy { position: absolute; inset: auto 0 0 0; padding: clamp(24px, 5vw, 56px) 0; background: linear-gradient(transparent, rgba(15, 13, 10, .62)); color: #fff; }
.band h2 { max-width: 16em; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding: clamp(56px, 8vw, 96px) 0 32px; }
.site-footer .f-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(239, 233, 223, .16); }
.site-footer .brand svg { color: var(--on-night); }
.site-footer h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--on-night); opacity: .86; transition: opacity .2s; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .f-note { color: var(--on-night-2); font-size: 15px; max-width: 22em; margin-top: 20px; }
.site-footer .f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: var(--on-night-2); }
@media (max-width: 900px) { .site-footer .f-top { grid-template-columns: 1fr 1fr; } .site-footer .f-top > :first-child { grid-column: 1 / -1; } }

/* ---------- viewer (lightbox) ---------- */
.viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0f0e0c; color: var(--on-night);
}
.viewer::backdrop { background: #0f0e0c; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: v-in .28s var(--ease); }
@keyframes v-in { from { opacity: 0; } to { opacity: 1; } }
.v-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(12px, 3vw, 28px); }
.v-title { font: 400 20px/1.2 var(--serif); }
.v-sub { font-size: 13px; color: var(--on-night-2); }
.v-tools { display: flex; align-items: center; gap: 6px; }
.v-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(239, 233, 223, .2); background: transparent; color: var(--on-night); border-radius: 50%; cursor: pointer; transition: background-color .2s, border-color .2s; }
.v-btn:hover { background: rgba(239, 233, 223, .1); border-color: rgba(239, 233, 223, .5); }
.v-btn[disabled] { opacity: .35; cursor: default; }
.v-stage { position: relative; overflow: hidden; touch-action: none; user-select: none; }
.v-frame { position: absolute; inset: 0; cursor: zoom-in; }
.v-frame.is-zoomed { cursor: grab; }
.v-frame.is-dragging { cursor: grabbing; }
.v-frame img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 32px); max-height: calc(100% - 16px); width: auto; height: auto; transform-origin: 0 0; transition: opacity .3s var(--ease); will-change: transform; }
.v-frame img.is-loading { opacity: 0; }
.v-prev, .v-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.v-prev { left: clamp(8px, 2vw, 24px); }
.v-next { right: clamp(8px, 2vw, 24px); }
.v-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(12px, 3vw, 28px) 18px; }
.v-caption { font-size: 14px; color: var(--on-night-2); min-height: 1.4em; }
.v-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.v-thumbs button { flex: none; width: 56px; height: 70px; padding: 0; border: 1px solid transparent; background: #000; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s; }
.v-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--on-night); }
.v-thumbs button:hover { opacity: 1; }
.v-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.v-buy { display: none; align-items: center; gap: 18px; }
.viewer.has-buy .v-buy { display: flex; }
.v-buy .v-price { font: 400 22px/1 var(--serif); }
@media (max-width: 720px) {
  .v-foot { flex-direction: column; align-items: stretch; }
  .v-prev, .v-next { display: none; }
  .v-buy { justify-content: space-between; }
}

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
img.fade { opacity: 0; transition: opacity .6s var(--ease); }
img.fade.is-loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  img.fade { opacity: 1; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.night .companies, .night .companies li, .night .rows, .night .rows li { border-color: rgba(239, 233, 223, .16); }
.night .companies span { color: var(--on-night-2); }
.night .companies a:hover b { color: var(--on-night); opacity: .75; }
.rows .n .icon { width: 22px; height: 22px; color: var(--accent); }

/* compact founder block (home) */
.person { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 40px; align-items: center; max-width: 880px; }
.person img { width: 168px; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); }
.person h2 { margin: 18px 0 16px; }
.person p { color: var(--ink-2); }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; gap: 24px; } .person img { width: 128px; } }

/* full-bleed photograph between sections */
.bleed { margin: 0; }
.bleed img { width: 100%; height: clamp(300px, 46vw, 640px); object-fit: cover; }
.bleed figcaption { padding: 12px var(--gutter) 0; max-width: var(--wrap); margin: 0 auto; }

.dept { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.dept li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); font: 400 20px/1.3 var(--serif); }
.dept .icon { color: var(--accent); width: 20px; height: 20px; }
