/* Artisian's Warehouse — v2, editorial/contact-sheet system */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo+Black&family=Work+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0b;
  --bg-alt: #131315;
  --bg-card: #17171a;
  --ink: #f5f2ec;
  --ink-dim: #aeaaa0;
  --ink-faint: #6b675e;
  --line: #29292c;
  --accent: #FF102B;
  --accent-ink: #fff8f0;
  --faq-tan: rgba(255, 255, 255, 0.05);
  --faq-tan-ink: var(--ink);
  --faq-tan-ink-dim: var(--ink-dim);
  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.78) 45%, var(--bg) 90%),
    url('../img/portfolio/still-01.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: center, center 18%;
  background-size: cover, cover;
  background-attachment: scroll, fixed;
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 760px) {
  body { background-attachment: scroll, scroll; }
}

h1, h2, h3, .display {
  font-family: 'Anton', 'Arial Narrow', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.96;
  margin: 0;
  text-wrap: balance;
}

.mono {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Preview banner ---------- */

.site-banner {
  background: var(--bg-alt);
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 10px clamp(20px, 5vw, 64px);
}

.site-banner strong { color: var(--accent); }

/* ---------- Watermark (portfolio + product media) ---------- */

.watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.watermark span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  opacity: 0.32;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand img { height: 22px; width: auto; display: block; }
html.theme-light .brand img { filter: invert(1); }

.nav { display: flex; gap: clamp(18px, 3vw, 40px); align-items: center; }

.nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.nav a:hover, .nav a.active { color: var(--ink); }

.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 78px 0 0 0;
    top: 78px;
    left: 24px;
    right: 24px;
    bottom: auto;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 8px;
    background: rgba(10, 10, 11, 0.86);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid var(--line);
    border-radius: 10px;
    gap: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav a {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    text-align: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: none; }
  .nav a.active { color: var(--accent); }
  .nav a.active::after { display: none; }
  .nav-toggle { display: flex; }
}

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

.hero {
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero .wrap { padding-top: 60px; padding-bottom: 60px; position: relative; z-index: 1; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,10,11,.97) 0%, rgba(10,10,11,.88) 30%, rgba(10,10,11,.58) 56%, rgba(10,10,11,.3) 76%, rgba(10,10,11,.6) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10,10,11,0) 34%);
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 7.2rem);
  max-width: 14ch;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.btn-ghost { color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Panels (photo-backed nav) ---------- */

.panels { padding-bottom: 0; }

.panels-head { padding-bottom: 40px; }
.panels-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-top: 10px; }

.panel-list { display: flex; flex-direction: column; }

.panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: brightness(0.6) saturate(1.05);
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
}

.panel:hover img { transform: scale(1.07); filter: brightness(0.48) saturate(1.1); }

.panel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,10,11,.95) 0%, rgba(10,10,11,.4) 48%, rgba(10,10,11,.1) 100%);
}

.panel-num {
  position: absolute;
  top: 24px;
  left: clamp(20px, 5vw, 64px);
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  background: rgba(10,10,11,.55);
  border: 1px solid rgba(255,255,255,.14);
  padding: 5px 10px;
}

.panel-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px clamp(20px, 5vw, 64px) 56px;
}

.panel-content .eyebrow { display: block; margin-bottom: 10px; }
.panel-content h3 { color: var(--accent-ink); font-size: clamp(2.6rem, 8vw, 5.6rem); }
.panel-content p { color: rgba(245,242,236,.78); max-width: 46ch; margin-top: 14px; font-size: 1rem; }

.panel-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.2s ease, color 0.2s ease;
}

.panel:hover .panel-arrow { gap: 14px; color: var(--accent-ink); }

@media (max-width: 760px) {
  .panel { min-height: 56vh; }
}

/* ---------- Section scaffolding ---------- */

section { padding: clamp(64px, 10vw, 120px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 20px;
}

.section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head .count { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Portfolio grid ---------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.portfolio-item {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  cursor: pointer;
}

.portfolio-item img,
.portfolio-item canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}

.portfolio-item:hover img,
.portfolio-item:hover canvas { transform: scale(1.04); }

.portfolio-item .tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  background: rgba(10, 10, 11, 0.58);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 5px 9px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .tag { opacity: 1; }

.portfolio-note {
  margin-top: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--ink-faint);
}

@media (max-width: 820px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ---------- Full gallery (feed + filters) ---------- */

.gallery-intro {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.gallery-title {
  font-family: 'Archivo Black', 'Arial', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  color: var(--accent);
}

.gallery-footnote { padding: 32px clamp(20px, 5vw, 64px) 8px; }

.focus-toggle {
  position: sticky;
  top: 92px;
  z-index: 45;
  width: fit-content;
  margin: 12px auto 0;
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.focus-toggle:hover { color: var(--ink); }

.focus-toggle .focus-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-faint);
  transition: background 0.2s ease;
}

.focus-toggle.active { border-color: var(--accent); color: var(--ink); }
.focus-toggle.active .focus-dot { background: var(--accent); }

.feed-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: rgba(10, 10, 11, 0.88);
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(20px, 5vw, 64px);
  scrollbar-width: none;
}
.feed-filter::-webkit-scrollbar { display: none; }

.filter-chip {
  flex: none;
  appearance: none;
  background: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.filter-chip .count { color: var(--ink-faint); margin-left: 6px; }

.filter-chip:hover { color: var(--ink); }

.filter-chip.active { border-color: var(--accent); color: var(--ink); }
.filter-chip.active .count { color: var(--accent); }

.feed-grid {
  columns: 4 240px;
  column-gap: 3px;
  padding: 3px clamp(20px, 5vw, 64px) 0;
}

@media (max-width: 1100px) { .feed-grid { columns: 3 220px; } }
@media (max-width: 720px) { .feed-grid { columns: 2 200px; } }
@media (max-width: 480px) { .feed-grid { columns: 2; } }

.feed-item {
  break-inside: avoid;
  margin-bottom: 3px;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  z-index: 1;
}

.feed-item:hover { z-index: 2; }

.feed-item img,
.feed-item canvas {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1), filter 0.45s ease;
}

.feed-item:hover img,
.feed-item:hover canvas { transform: scale(1.04); }

/* Focus mode: opt-in, toggled via #focus-toggle. Off by default -- photos
   show sharp. On: every tile blurs/dims except the active one. On pointer
   devices "active" is whatever the mouse hovers; on touch devices there is
   no hover, so .in-focus is driven by scroll position instead (see
   setupFocusScroll in main.js -- a tile gets .in-focus once 60% of it is
   in the viewport, and loses it again as it scrolls past). */
.focus-mode .feed-item img,
.focus-mode .feed-item canvas { filter: blur(5px) brightness(0.82) saturate(0.9); }

.focus-mode .feed-item:hover img,
.focus-mode .feed-item:hover canvas,
.focus-mode .feed-item.in-focus img,
.focus-mode .feed-item.in-focus canvas { filter: blur(0) brightness(1) saturate(1); }

.feed-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 21, 0.2);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.focus-mode .feed-item::after { opacity: 1; }
.focus-mode .feed-item:hover::after,
.focus-mode .feed-item.in-focus::after { opacity: 0; }

.feed-item .tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  background: rgba(10, 10, 11, 0.58);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  padding: 3px 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feed-item:hover .tag { opacity: 1; }

.feed-empty {
  padding: 60px clamp(20px, 5vw, 64px);
  color: var(--ink-faint);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22, 20, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: var(--ink);
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Small, bounded tap target around the arrow itself -- not a full-height
   edge strip. A full-height strip used to cover the top corners too, so
   tapping near the close (x) button on mobile actually hit prev/next
   instead of closing. */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(245, 242, 236, 0.55);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-nav:hover { color: var(--ink); }

.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }

@media (max-width: 760px) {
  .lightbox-nav { width: 64px; height: 64px; }
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ---------- Product cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* Packs: real gaps (page background shows through) and centered rows, so
   5 cards taper 3-then-2 instead of sitting flush in a grid built for 6. */
.pack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  background: none;
  border: none;
}

.pack-grid .card {
  flex: 0 1 340px;
  border: 1px solid var(--line);
}

.card {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}

.card-media img,
.card-media canvas {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img,
.card:hover .card-media canvas { transform: scale(1.04); }

#presets .card-media { cursor: pointer; }

.pack-preview {
  display: flex;
}

/* Flex items paint above position:absolute, z-index:auto siblings —
   lift the watermark and PACK tag back on top of the tri-image strip. */
.pack-preview .watermark,
.pack-preview .frame-tag {
  z-index: 1;
}

.pack-preview .pack-tri,
.pack-preview canvas.pack-tri {
  width: 33.334%;
  height: 100%;
  flex: none;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.card-media .frame-tag {
  position: absolute;
  left: 10px; top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  background: rgba(10, 10, 11, 0.58);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 4px 8px;
}

.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.card .price {
  margin-top: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  color: var(--accent);
  padding-top: 6px;
}

.card p { color: var(--ink-dim); font-size: 0.9rem; }
.card h3 { font-size: 1.5rem; }

.badge {
  align-self: flex-start;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 4px 9px;
}

/* ---------- Callout / banner ---------- */

.callout {
  border: 1.5px solid var(--ink);
  background: var(--bg-card);
  padding: 48px clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.callout h3 { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.4rem); max-width: 26ch; line-height: 1.05; }

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 13px 14px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-info dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 24px;
}

.contact-info dt:first-child { margin-top: 0; }

.contact-info dd {
  margin: 6px 0 0;
  color: var(--ink-dim);
}

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }

.faq-item {
  width: 33.33%;
  min-width: 260px;
  background: var(--faq-tan);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 22px 26px;
}

@media (max-width: 720px) { .faq-item { width: 100%; } }

.faq-question { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--faq-tan-ink); }

.faq-answer { margin: 4px 0 0; font-size: 0.94rem; color: var(--faq-tan-ink); }

.faq-meta { margin-top: 14px; }

.faq-asked-name { margin: 0; color: var(--faq-tan-ink); font-weight: 700; font-size: 0.88rem; }

.faq-asked-handle { margin: 0; color: var(--faq-tan-ink-dim); font-size: 0.72rem; }

.faq-asked-handle a { color: inherit; text-decoration: none; }

.faq-asked-handle a:hover { text-decoration: underline; }

.faq-extra { color: var(--accent); font-weight: 500; }

.faq-empty { color: var(--ink-faint); font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; padding: 22px 0; }

.faq-ask { border-top: 1.5px solid var(--ink); padding-top: 40px; }

.faq-ask h3 { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 1.9rem); }

.faq-ask-note { color: var(--ink-dim); font-size: 0.88rem; margin: 12px 0 24px; max-width: 52ch; }

.field-checkbox label { display: flex; align-items: center; gap: 10px; font-family: 'Work Sans', sans-serif; text-transform: none; letter-spacing: normal; font-size: 0.92rem; color: var(--ink); }

.field-checkbox input { width: auto; }

.faq-identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

@media (max-width: 560px) { .faq-identity-fields { grid-template-columns: 1fr; } }

.faq-form-status { margin-top: 16px; font-size: 0.78rem; min-height: 1.2em; }

.faq-form-status-ok { color: var(--ink); }

.faq-form-status-error { color: var(--accent); }

/* ---------- Landing (splash) ---------- */

body.landing { background-image: none; }

.landing-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.08) brightness(0.9);
  z-index: 0;
}

.landing-scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.6);
  z-index: 1;
}

.landing-main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.landing-logo { width: 84px; height: auto; opacity: 0.96; }

.landing-enter {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(245, 242, 236, 0.4);
  padding: 12px 28px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.landing-enter:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Coming soon ---------- */

.coming-soon {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.coming-soon h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-top: 14px; }
.coming-soon p { color: var(--ink-dim); max-width: 50ch; margin-top: 18px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-grid img { height: 16px; width: auto; margin-bottom: 10px; filter: invert(1); }
html.theme-light .footer-grid img { filter: none; }

.footer-grid a {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.footer-grid a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 20px; }

.footer-fine { font-family: 'IBM Plex Mono', monospace; color: var(--ink-faint); font-size: 0.72rem; margin-top: 24px; }

/* ---------- Grain (site-wide, analog/Dehancer-style texture) ---------- */

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  animation: grain-shift 0.7s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-14px, 9px); }
  50%  { transform: translate(11px, -13px); }
  75%  { transform: translate(-6px, -5px); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}
