/* =========================================================
   PASS 4b : Topbar, bento, tiles, floating header,
   unified CTA, BM fanning cards, footer wordmark, icons
   ========================================================= */

/* ============================================
   ANIMATED TOP BAR
   ============================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: var(--stone);
  z-index: var(--z-topbar);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.topbar-track {
  display: flex;
  white-space: nowrap;
  animation: topbar-scroll 30s linear infinite;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 40px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--signal);
  flex-shrink: 0;
}

.topbar-dot { display: none !important; }

@keyframes topbar-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   GRAIN OVERLAY
   ============================================ */

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--grain-opacity, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

/* ============================================
   FLOATING HEADER (offset for topbar)
   ============================================ */

.header {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--site-max);
  height: 64px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 24px;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 280ms var(--ease-out);
}

.header.scrolled {
  top: 44px;
  height: 56px;
  box-shadow: 0 10px 40px rgba(14,14,12,0.08), 0 2px 8px rgba(14,14,12,0.04);
  background: rgba(255, 255, 255, 0.88);
}

.header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header .logo img {
  height: 24px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a:not(.cta) {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: color var(--dur-fast) var(--ease-out);
}

.header-nav a:not(.cta):hover {
  color: var(--signal);
}

.header-nav .nav-dropdown {
  position: relative;
}

.header-nav .nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  padding: 0;
  cursor: pointer;
}

.header-nav .nav-dropdown-trigger .dd-arrow {
  width: 10px;
  height: 10px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.header-nav .nav-dropdown:hover .dd-arrow {
  transform: rotate(180deg);
}

.header-nav .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  box-shadow: 0 8px 32px rgba(14,14,12,0.08);
}

.header-nav .nav-dropdown:hover .nav-dropdown-menu,
.header-nav .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-nav .nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
}

.header-nav .nav-dropdown-menu a:hover {
  background: var(--surface);
}

.header-nav .nav-dropdown-menu a svg.dd-icon {
  width: 16px;
  height: 16px;
  color: var(--mist);
  flex-shrink: 0;
}

.burger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  position: relative;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 6px;
  transition: all var(--dur-mid) var(--ease-out);
}

.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { top: 15px; }
.burger span:nth-child(3) { top: 20px; }

.burger.is-open span:nth-child(1) { transform: rotate(45deg); top: 15px; }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg); top: 15px; }

@media (max-width: 768px) {
  .header {
    height: 56px;
    padding: 0 16px;
  }
  .header-nav { display: none; }
  .burger { display: block; }
}

/* Mobile overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--stone);
  z-index: calc(var(--z-header) - 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out);
}

.nav-mobile.is-open { opacity: 1; pointer-events: auto; }

.nav-mobile .mobile-logo { position: absolute; top: 20px; left: 24px; }
.nav-mobile .mobile-logo img { height: 32px; width: auto; }

.nav-mobile a {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bg);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-mobile a:hover { color: var(--signal); }

.nav-mobile .mobile-sub {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.nav-mobile .mobile-sub a {
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}

/* Main content offset (topbar 36px + header space) */
main { padding-top: 140px; }
@media (max-width: 768px) {
  main { padding-top: 120px; }
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr;"] { grid-template-columns: 1fr !important; }
}

/* ============================================
   GLOBAL SITE WIDTH (matches header exactly)
   ============================================ */

.container,
.bento,
.footer-inner,
.footer-bottom {
  width: calc(100% - 32px);
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .header,
  .container,
  .bento,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 24px);
  }
}

/* ============================================
   SECTION (non-tile sections)
   ============================================ */

.section { padding: var(--space-lg) 0; }
.section--tight { padding: var(--space-md) 0; }

/* ============================================
   BENTO GRID
   ============================================ */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--tile-gap);
  margin-bottom: var(--tile-gap);
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--tile-radius);
  padding: var(--tile-pad);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tile-sm   { grid-column: span 3;  min-height: 200px; }
.tile-md   { grid-column: span 4;  min-height: 260px; }
.tile-wide { grid-column: span 6;  min-height: 260px; }
.tile-lg   { grid-column: span 6;  min-height: 440px; }
.tile-hero { grid-column: span 8;  min-height: 440px; }
.tile-tall { grid-column: span 4;  min-height: 560px; }
.tile-full { grid-column: span 12; min-height: 200px; }

@media (max-width: 768px) {
  .tile-sm, .tile-md, .tile-wide, .tile-lg,
  .tile-hero, .tile-tall, .tile-full {
    grid-column: span 12;
    min-height: auto;
  }
}

/* Tile variants */
.tile--inverted { background: var(--stone); border-color: var(--stone); color: var(--bg); }
.tile--inverted .eyebrow, .tile--inverted .tile-mist { color: #A8A8A5; }
.tile--accent { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.tile--accent .eyebrow { color: rgba(14,14,12,0.6); }
.tile--moss { background: var(--moss); border-color: var(--moss); color: var(--bg); }
.tile--moss .eyebrow, .tile--moss .tile-mist { color: #A8A8A5; }
.tile--bordered { background: var(--bg); border: 2px solid var(--signal); }
.tile--textured { background: var(--surface-2); }
.tile--textured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.04;
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: var(--tile-radius);
}

.tile .eyebrow { margin-bottom: 16px; }
.tile h2 { margin-bottom: 12px; }
.tile h3 { margin-bottom: 8px; }
.tile-mist { color: var(--mist); }

.tile-link {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--dur-fast) var(--ease-out);
}
.tile-link:hover { gap: 10px; }
.tile-link svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }

.tile-stat {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tile-stamp {
  position: absolute;
  bottom: var(--tile-pad);
  right: var(--tile-pad);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ============================================
   UNIFIED CTA BUTTON
   ============================================ */

.cta {
  height: 52px;
  min-width: 180px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1A1A17 0%, #0E0E0C 100%);
  color: #FAFAF8;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  border: 1px solid #000;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 2px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 1px 2px rgba(14,14,12,0.2),
    0 4px 12px rgba(14,14,12,0.12),
    0 12px 40px rgba(14,14,12,0.08);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    background 220ms var(--ease-out);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,90,31,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #222220 0%, #0E0E0C 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 -1px 2px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,90,31,0.2),
    0 2px 4px rgba(14,14,12,0.2),
    0 8px 20px rgba(14,14,12,0.16),
    0 20px 60px rgba(255,90,31,0.18);
}
.cta:hover::before { opacity: 1; }

.cta:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,90,31,0.3),
    0 1px 2px rgba(14,14,12,0.3);
}

.cta:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.cta svg.arrow {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  transition: transform 280ms var(--ease-out);
}
.cta:hover svg.arrow { transform: translateX(4px); }

/* Small header variant */
.header .cta {
  height: 40px;
  min-width: auto;
  padding: 0 20px;
  font-size: 13px;
  gap: 8px;
}
.header .cta svg.arrow { width: 14px; height: 14px; }

/* ============================================
   BM FANNING CARDS
   ============================================ */

.bm-cards-wrap {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 40px 0 60px;
  perspective: 800px;
}

.bm-card {
  width: 260px;
  min-height: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: transform 400ms var(--ease-out),
              box-shadow 400ms var(--ease-out);
  display: flex;
  flex-direction: column;
}

.bm-card:nth-child(1) { transform: rotate(-6deg) translateY(8px); z-index: 1; }
.bm-card:nth-child(2) { transform: rotate(-2deg); z-index: 2; margin-left: -40px; }
.bm-card:nth-child(3) { transform: rotate(2deg); z-index: 3; margin-left: -40px; }
.bm-card:nth-child(4) { transform: rotate(6deg) translateY(8px); z-index: 4; margin-left: -40px; }

.bm-card:hover {
  transform: rotate(0) translateY(-12px) !important;
  z-index: 10;
  box-shadow: 0 20px 60px rgba(14,14,12,0.12), 0 4px 16px rgba(14,14,12,0.08);
}

.bm-card .eyebrow { margin-bottom: 12px; }
.bm-card h3 { font-size: var(--fs-h3); margin-bottom: 4px; }
.bm-card .bm-cap { font-family: var(--font-serif); font-size: 1.5rem; color: var(--signal); margin-bottom: 12px; }
.bm-card p { font-size: var(--fs-small); color: var(--mist); line-height: var(--lh-body); }
.bm-card svg.bm-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  color: var(--mist);
  opacity: 0.5;
}

@media (max-width: 900px) {
  .bm-cards-wrap {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .bm-card {
    width: 100%;
    max-width: 340px;
    margin-left: 0 !important;
    transform: none !important;
  }
  .bm-card:hover { transform: translateY(-4px) !important; }
}

/* ============================================
   TREATED IMAGE
   ============================================ */

.img-treated {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: saturate(0.8);
}

.img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(244,243,239,0.12);
  mix-blend-mode: multiply;
  pointer-events: none;
  border-radius: 16px;
}

/* ============================================
   ICON UTILITIES (Phosphor inline SVG)
   ============================================ */

.ph { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.ph-24 { width: 28px; height: 28px; }
.ph-28 { width: 32px; height: 32px; }

.icon-label { display: inline-flex; align-items: center; gap: 8px; }

/* Eyebrows with SVG — forced flex alignment */
.eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}
.eyebrow svg.ph { width: 16px; height: 16px; margin: 0; }

/* Block-display eyebrows (section labels) still need flex */
.eyebrow[style*="display:block"] { display: flex !important; }

/* Headings that contain an SVG icon: align as flex */
h1:has(> svg.ph),
h2:has(> svg.ph),
h3:has(> svg.ph) {
  display: flex;
  align-items: center;
  gap: 12px;
}
h3 > svg.ph { width: 22px; height: 22px; margin: 0; color: var(--signal); flex-shrink: 0; }
h2 > svg.ph { width: 26px; height: 26px; margin: 0; color: var(--signal); flex-shrink: 0; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--stone);
  color: var(--bg);
  padding: 64px 0 32px;
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: var(--fs-small); color: #A8A8A5; max-width: 320px; line-height: var(--lh-body); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A8A8A5;
  margin-bottom: 16px;
}

.footer a {
  display: block;
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer a:hover { color: var(--bg); }

.footer-legal {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  color: #A8A8A5;
  line-height: 1.8;
}

/* Footer wordmark */
.footer-wordmark {
  position: absolute;
  bottom: -0.15em;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(6rem, 14vw, 16rem);
  font-weight: 400;
  line-height: 0.85;
  color: rgba(255,255,255,0.03);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #A8A8A5;
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer-credit .heart-icon { width: 12px; height: 12px; fill: var(--signal); }
.footer-credit a { display: inline; margin: 0; color: #A8A8A5; text-decoration: underline; text-decoration-color: rgba(168,168,165,0.3); }

.footer-copy { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.2); }
.footer-domains { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.15); text-align: center; width: calc(100% - 32px); max-width: var(--site-max); margin: 8px auto 0; position: relative; z-index: 2; }

/* ============================================
   LEDGER TABLE
   ============================================ */

.ledger-table { width: 100%; overflow-x: auto; }
.ledger-table table { width: 100%; min-width: 500px; border-collapse: collapse; font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; line-height: 1.7; }
.ledger-table thead th { text-align: left; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mist); padding: 8px 12px 8px 0; border-bottom: 2px solid var(--ink); font-size: 10px; }
.ledger-table tbody td { padding: 8px 12px 8px 0; border-bottom: 1px dotted var(--border); vertical-align: top; }
.ledger-table tbody td:last-child { color: var(--signal); font-weight: 600; }

/* ============================================
   PACKING SLIP
   ============================================ */

.packing-slip-item {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 2.2;
  color: var(--ink);
}

/* ============================================
   PAIN QUOTE
   ============================================ */

.pain-quote { font-style: italic; font-size: var(--fs-body); color: var(--ink); margin-bottom: 16px; }
.pain-quote cite { display: block; font-style: normal; font-size: var(--fs-micro); font-weight: 500; color: var(--mist); margin-top: 6px; }

/* ============================================
   FLIGHT LOG
   ============================================ */

.flight-log { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; line-height: 1.7; overflow-x: auto; }
.flight-log table { width: 100%; min-width: 600px; border-collapse: collapse; }
.flight-log thead th { text-align: left; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 600; padding: 6px 16px 6px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 10px; }
.flight-log tbody td { padding: 8px 16px 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; color: rgba(255,255,255,0.8); }
.flight-log tbody td:first-child { color: var(--signal); font-weight: 600; white-space: nowrap; width: 72px; }

/* ============================================
   CREATOR GRID
   ============================================ */

.creator-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--mist);
  margin-top: 8px;
}
.creator-meta strong { color: var(--ink); font-weight: 600; display: block; }

/* ============================================
   SERVICE LIMITS
   ============================================ */

.limit-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.limit-item:first-child { border-top: 1px solid var(--border); }
.limit-item h3 { font-size: var(--fs-body); font-weight: 600; margin-bottom: 4px; }
.limit-item p { font-size: var(--fs-small); color: var(--mist); }

/* ============================================
   FAQ (flat)
   ============================================ */

.faq-flat .faq-entry { padding: 20px 0; border-bottom: 1px solid var(--border); }
.faq-flat .faq-entry:first-child { padding-top: 0; }
.faq-flat .faq-q { font-size: var(--fs-body); font-weight: 600; margin-bottom: 8px; }
.faq-flat .faq-a { font-size: var(--fs-small); color: var(--mist); line-height: var(--lh-body); }
.tile--inverted .faq-entry { border-bottom-color: rgba(255,255,255,0.08); }

/* ============================================
   TICKET CONFIRMATION
   ============================================ */

.ticket-confirm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--tile-pad);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 2;
  color: var(--ink);
  position: relative;
}
.ticket-stamp {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  border: 2px solid var(--signal);
  padding: 2px 8px;
  transform: rotate(4deg);
  opacity: 0.7;
}

/* ============================================
   FORM
   ============================================ */

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: var(--fs-body);
  font-family: var(--font-sans);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-bottom-color: var(--signal); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B68' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
  cursor: pointer;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  z-index: var(--z-cursor);
  opacity: 0;
  transition: width var(--dur-mid) var(--ease-out),
              height var(--dur-mid) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.custom-cursor.is-active { opacity: 1; }
.custom-cursor.is-hover { width: 40px; height: 40px; background: var(--signal); mix-blend-mode: difference; }

/* ============================================
   INFRA STACK
   ============================================ */

.infra-stack svg { width: 100%; max-width: 260px; height: auto; }

/* ============================================
   DATA-REVEAL (no animation — always visible)
   ============================================ */

[data-reveal] { opacity: 1; transform: none; }

/* ============================================
   HERO TITLE HIGHLIGHT (instant, no scroll trigger)
   ============================================ */

.hero-highlight {
  display: inline;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-size: 100% 0.08em;
  background-repeat: no-repeat;
  background-position: 0% 100%;
}

/* ============================================
   TILE HOVER LIFT
   ============================================ */

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(14,14,12,0.06), 0 2px 8px rgba(14,14,12,0.03);
}
.tile--bordered:hover {
  box-shadow: 0 12px 40px rgba(255,90,31,0.1), 0 2px 8px rgba(255,90,31,0.06);
}

/* ============================================
   STAT HOVER
   ============================================ */

.tile-stat { transition: transform 0.3s var(--ease-out); }
.tile-stat:hover { transform: scale(1.04); }

/* ============================================
   FOOTER LINK UNDERLINE
   ============================================ */

.footer a { position: relative; }
.footer a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bg);
  transition: width 0.3s var(--ease-out);
}
.footer a:hover::after { width: 100%; }

/* ============================================
   IMAGE HOVER ZOOM (hover only, no scroll)
   ============================================ */

.img-wrap img { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.img-wrap:hover img { transform: scale(1.03); }

/* ============================================
   FAQ ENTRY HOVER
   ============================================ */

.faq-flat .faq-entry { transition: padding-left 0.3s var(--ease-out); }
.faq-flat .faq-entry:hover { padding-left: 12px; }

/* ============================================
   PROTECTED (no selection on special elements)
   ============================================ */

.tile-stat,
.footer-wordmark,
.topbar {
  user-select: none;
  -webkit-user-select: none;
}

/* ============================================
   TEAM GRID
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(14,14,12,0.06), 0 2px 8px rgba(14,14,12,0.03);
}
.team-card .team-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  display: block;
}
.team-card .team-body { padding: 20px; }
.team-card .team-role {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
}
.team-card .team-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.team-card .team-meta {
  font-size: var(--fs-small);
  color: var(--mist);
  line-height: var(--lh-body);
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }
