/* Zach Cobbs Photography — styles */
:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --bg-3: #1c1916;
  --line: rgba(236, 230, 220, 0.12);
  --line-2: rgba(236, 230, 220, 0.22);
  --text: #ece6dc;
  --muted: #a69e92;
  --accent: #e0a85c;
  --accent-ink: #1a1206;
  --danger: #f08a7a;
  --ok: #9fd0a0;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
  --row: 340px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }

/* ---------- type ---------- */
.eyebrow { font: 600 11.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.display { font: 400 clamp(34px, 4.6vw, 64px)/1.02 var(--serif); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.display-xl { font-size: clamp(48px, 8vw, 112px); }
.display a:hover { color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); max-width: 58ch; margin: 18px 0 0; text-wrap: pretty; }
.link { color: var(--text); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color .2s, background-size .3s var(--ease); }
.link:hover { color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--text); white-space: nowrap; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s; white-space: nowrap;
}
.btn:hover { background: #ecb876; box-shadow: 0 10px 30px -12px rgba(224, 168, 92, .7); }
.btn:active { transform: translateY(1px); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-small { min-height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--text); }
.btn-light { background: #f4efe7; color: #14110d; }
.btn-light:hover { background: #fff; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.btn-ghost-light { background: rgba(10,10,10,.2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; transition: background .2s; }
.icon-btn:hover { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(12, 11, 10, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background .4s, border-color .4s, transform .4s var(--ease);
}
.has-hero .site-header { position: fixed; left: 0; right: 0; }
.has-hero .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; flex-direction: column; line-height: 1; color: #fff; }
.brand-name { font: 400 26px/1 var(--serif); letter-spacing: .01em; }
.brand-sub { font: 600 9.5px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; margin-top: 6px; opacity: .75; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 10px 14px; font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,.82); border-radius: 999px; transition: color .2s, background .2s; }
.nav-list > li > a:hover, .nav-list > li > a[aria-current] { color: #fff; }
.nav-list > li > a[aria-current]::after { content: ""; display: block; height: 1px; background: var(--accent); margin-top: 3px; }
.sub {
  position: absolute; top: 100%; left: 50%; min-width: 200px; list-style: none; margin: 0; padding: 8px;
  background: rgba(20, 18, 16, .96); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sub a { display: block; padding: 9px 14px; border-radius: 6px; font-size: 14.5px; color: var(--muted); }
.sub a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; margin-right: -10px; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.6px; background: #fff; transition: transform .3s var(--ease), background .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: grid; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 36px;
    padding: var(--header-h) var(--gutter) 40px; background: rgba(12, 11, 10, .97); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: transparent !important; border-color: transparent !important; }
  .nav-list { flex-direction: column; gap: 4px; }
  .nav-list > li > a { font: 400 44px/1.1 var(--serif); padding: 6px 0; color: #fff; }
  .nav-list > li > a[aria-current]::after { display: none; }
  .nav-list > li > a[aria-current] { color: var(--accent); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 4px 0 10px; display: flex; flex-wrap: wrap; gap: 4px 6px; backdrop-filter: none; }
  .sub a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
  .btn-small { min-height: 48px; padding: 0 24px; font-size: 15px; }
}

/* ---------- layout ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section-tight { padding-top: clamp(40px, 5vw, 72px); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 820px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }
.page-head { max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + clamp(32px, 6vw, 96px)) var(--gutter) 0; }
.page-head .lede { font-size: clamp(17px, 1.4vw, 20px); }
.has-hero .page-head { padding-top: calc(var(--header-h) + 80px); }
.page-404 { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; background: var(--bg); opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-slide.is-active .hero-img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-slide figcaption {
  position: absolute; right: var(--gutter); bottom: 34px; z-index: 3; max-width: 40ch; text-align: right;
  font-size: 12.5px; color: rgba(255,255,255,.75); opacity: 0; transition: opacity .8s .6s;
}
.hero-slide.is-active figcaption { opacity: 1; }
.hero-slide figcaption a { color: #fff; font-weight: 600; }
.hero-slide figcaption a:hover { color: var(--accent); }
.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%),
              linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%); }
.hero-content { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(96px, 14vh, 150px); max-width: 760px; }
.hero-eyebrow { color: rgba(255,255,255,.8); }
.hero-title { margin: 0; font: 400 clamp(58px, 11vw, 168px)/.86 var(--serif); letter-spacing: -.02em; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.hero-title span { display: block; }
.hero-title em { display: block; font-size: .42em; letter-spacing: .01em; margin-top: .25em; color: rgba(255,255,255,.88); }
.hero-intro { font-size: clamp(16px, 1.4vw, 19px); max-width: 46ch; color: rgba(255,255,255,.86); margin: 22px 0 0; }
.hero-dots { position: absolute; z-index: 3; left: var(--gutter); bottom: 38px; display: flex; gap: 8px; }
.hero-dot { width: 44px; height: 24px; display: grid; align-items: center; }
.hero-dot span { display: block; height: 2px; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.hero-dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span::after { animation: dot var(--hero-dur, 7s) linear forwards; }
.hero.is-paused .hero-dot.is-active span::after { animation-play-state: paused; }
@keyframes dot { to { transform: scaleX(1); } }
.hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrolly 1.8s ease-in-out infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 700px) {
  .hero-slide figcaption, .hero-scroll { display: none; }
  .hero-content { bottom: 88px; }
}

/* ---------- collection cards (home) ---------- */
.col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.col-card { position: relative; display: block; aspect-ratio: 3 / 4.4; overflow: hidden; border-radius: var(--radius); background: var(--bg); color: #fff; isolation: isolate; }
.col-card-media, .col-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.col-card-media img { transition: transform 1.2s var(--ease), filter .6s; }
.col-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.85) 100%); transition: opacity .5s; }
.col-card-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px; }
.col-card-count { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.col-card h3 { font: 400 clamp(34px, 3vw, 46px)/1 var(--serif); margin: 8px 0 6px; }
.col-card p { margin: 0; color: rgba(255,255,255,.78); font-size: 14.5px; }
.col-card-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--accent);
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.col-card:hover .col-card-media img, .col-card:focus-visible .col-card-media img { transform: scale(1.06); }
.col-card:hover .col-card-go, .col-card:focus-visible .col-card-go { opacity: 1; transform: none; }
@media (hover: none) { .col-card-go { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .col-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .col-grid { grid-template-columns: 1fr; } .col-card { aspect-ratio: 4 / 4.2; } }

/* ---------- justified gallery (pure CSS, no layout shift) ---------- */
.justified { display: flex; flex-wrap: wrap; gap: clamp(6px, .8vw, 12px); }
.justified::after { content: ""; flex-grow: 999999; }
.justified.is-laid .g-item { flex: none; }
.justified.is-laid::after { display: none; }
.g-item {
  position: relative; display: block; overflow: hidden; border-radius: 2px; background: var(--bg);
  flex-grow: calc(var(--ar) * 100); width: calc(var(--ar) * var(--row)); cursor: zoom-in;
}
.g-item::before { content: ""; display: block; padding-bottom: calc(100% / var(--ar)); }
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .6s; }
.js .g-item img:not(.is-loaded) { opacity: 0; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55)); opacity: 0; transition: opacity .4s; }
.g-item:hover img { transform: scale(1.035); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
.g-tag { position: absolute; z-index: 1; left: 14px; bottom: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.g-item:hover .g-tag, .g-item:focus-visible .g-tag { opacity: 1; transform: none; }
@media (max-width: 1000px) { :root { --row: 260px; } }
@media (max-width: 640px) {
  :root { --row: 180px; }
  .justified { gap: 6px; }
}

/* ---------- print CTA ---------- */
.print-cta { padding: 0 var(--gutter); margin: clamp(40px, 6vw, 80px) auto clamp(80px, 10vw, 140px); max-width: var(--max); }
.print-cta-inner {
  position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px); border-radius: 8px;
  border: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(224,168,92,.16), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(90,120,160,.14), transparent 60%),
    var(--bg-2);
}
.print-cta-inner .display { max-width: 16ch; }

/* ---------- portfolio ---------- */
.pf-list { display: grid; gap: clamp(72px, 10vw, 140px); }
.pf-row { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.pf-row-flip { grid-template-columns: 1fr 1.45fr; }
.pf-row-flip .pf-media { order: 2; }
.pf-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg); aspect-ratio: 3 / 2; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pf-media:hover img { transform: scale(1.04); }
.pf-body .display { font-size: clamp(44px, 5.4vw, 80px); }
.pf-body .btn { margin-top: 28px; }
.pf-thumbs { display: flex; gap: 8px; margin-top: 28px; }
.pf-thumb { width: 84px; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--bg); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .pf-row, .pf-row-flip { grid-template-columns: 1fr; }
  .pf-row-flip .pf-media { order: 0; }
}

/* ---------- collection page ---------- */
.col-hero { position: relative; min-height: min(78vh, 780px); display: flex; align-items: flex-end; overflow: hidden; background: var(--bg); color: #fff; isolation: isolate; }
.col-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 14s ease-out forwards; }
.col-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.05) 30%, rgba(12,11,10,.4) 60%, var(--bg) 100%); }
.col-hero-content { width: 100%; max-width: var(--max); margin: 0 auto; padding: calc(var(--header-h) + 60px) var(--gutter) clamp(28px, 4vw, 48px); }
.col-hero .lede { color: rgba(255,255,255,.85); }
.col-meta { margin: 22px 0 0; font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.65); }
.crumbs { display: flex; gap: 10px; font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent); }
.neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nb { position: relative; display: flex; align-items: flex-end; min-height: clamp(220px, 30vw, 380px); overflow: hidden; background: var(--bg); color: #fff; isolation: isolate; }
.nb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); filter: brightness(.7); }
.nb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7)); }
.nb:hover img { transform: scale(1.05); filter: brightness(.85); }
.nb-body { padding: clamp(24px, 4vw, 48px) var(--gutter); }
.nb-next { justify-content: flex-end; text-align: right; }
.nb-title { display: block; font: 400 clamp(36px, 4.4vw, 64px)/1 var(--serif); }
@media (max-width: 640px) { .neighbors { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-portrait { border-radius: var(--radius); overflow: hidden; background: var(--bg); aspect-ratio: 3 / 4.6; max-width: 320px; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.about-lede { font: 400 clamp(26px, 2.6vw, 38px)/1.25 var(--serif); margin: 0; max-width: 30ch; text-wrap: pretty; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.facts svg { width: 20px; height: 20px; color: var(--accent); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-portrait { max-width: 240px; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; border-top: 1px solid var(--line); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: 400 18px/1 var(--serif); color: var(--accent); }
.steps strong { color: var(--text); font-weight: 600; display: block; }
.contact-form { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 3.5vw, 44px); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13.5px; font-weight: 500; }
.req { color: var(--accent); }
.opt { color: var(--muted); font-weight: 400; }
input, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: #6f685e; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224,168,92,.2); }
.field.is-invalid input { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; margin: 0; justify-self: start; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--text); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.print-pick { display: grid; gap: 16px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 8px; }
.picked { display: flex; align-items: center; gap: 16px; }
.picked img { width: 96px; height: 64px; object-fit: cover; border-radius: 3px; background: var(--bg-3); }
.picked > div { flex: 1; min-width: 0; }
.picked p { margin: 0; }
.picked-title { font: 400 22px/1.2 var(--serif); }
.picked .muted { font-size: 13.5px; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 14.5px; color: var(--muted); }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--danger); }
.contact-form.is-sent { text-align: center; padding-block: 72px; }
.contact-form.is-sent .display { font-size: 44px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 6, 5, .97); color: #fff; overflow: hidden;
}
.lightbox[open] { animation: lb-in .35s var(--ease); }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
@keyframes lb-in { from { opacity: 0; } }
.lb-stage:focus { outline: none; }
.lb-stage { position: absolute; inset: 72px 80px 96px; display: grid; place-items: center; touch-action: pan-y pinch-zoom; }
.lb-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); transition: opacity .35s, transform .35s var(--ease); }
.lb-img.is-loading { opacity: .25; }
.lb-img.is-dragging { transition: none; }
.lb-spinner { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; pointer-events: none; }
.lb-stage.is-loading .lb-spinner { opacity: 1; transition-delay: .25s; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-top { position: absolute; top: 0; left: 0; right: 0; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 24px; }
.lb-count { font-size: 13px; letter-spacing: .12em; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.lb-actions { display: flex; gap: 4px; }
.lb-nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s; }
.lb-nav:hover { background: rgba(255,255,255,.1); }
.lb-nav svg { width: 28px; height: 28px; stroke-width: 1.3; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-bottom { position: absolute; left: 0; right: 0; bottom: 0; min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); }
.lb-caption { min-width: 0; }
.lb-title { margin: 0; font: 400 24px/1.15 var(--serif); }
.lb-alt { margin: 2px 0 0; font-size: 14px; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-toast { position: absolute; left: 50%; top: 84px; transform: translate(-50%, -10px); margin: 0; padding: 10px 18px; border-radius: 999px; background: #f4efe7; color: #111; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.lb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.lightbox.is-idle .lb-top, .lightbox.is-idle .lb-bottom, .lightbox.is-idle .lb-nav { opacity: 0; }
.lb-top, .lb-bottom, .lb-nav { transition: opacity .4s, background .2s; }
@media (max-width: 700px) {
  .lb-stage { inset: 60px 0 128px; }
  .lb-top { height: 60px; padding-left: 16px; }
  .lb-nav { display: none; }
  .lb-bottom { flex-direction: column; align-items: stretch; gap: 12px; }
  .lb-bottom .btn { width: 100%; }
  .lb-title { font-size: 20px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 7vw, 96px) var(--gutter) 32px; }
.footer-top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-intro { max-width: 40ch; margin: 20px 0 0; font-size: 14.5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { color: var(--muted); font-size: 14.5px; }
.site-footer nav a:hover { color: var(--text); }
.footer-bottom { max-width: var(--max); margin: 64px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
