/* WMD Customs V2 */

/* ==========================================================================
   LOGO STYLE SWITCH (V1, kept): keep exactly ONE line active.
   A = white logo (current). B/C = neon or black artwork.
   ========================================================================== */
:root { --logo: url("../img/logo/wmd-logo-white.svg"); } /* A */
/* :root { --logo: url("../img/logo/wmd-logo-neon.svg"); } */ /* B */
/* :root { --logo: url("../img/logo/wmd-logo-black.svg"); } */ /* C */

:root {
  /* header: measured from allvegashousing.com (height, alpha, blur, saturate, border, shadow); tint hue neutral */
  --header-h: 64px;
  --glass-tint: rgba(12, 17, 23, .72);
  --glass-fallback: rgba(12, 17, 23, .94);
  --glass-filter: blur(20px) saturate(1.1);
  --glass-border: 1px solid rgba(255, 255, 255, .18);
  --glass-shadow: 0 8px 24px rgba(12, 17, 23, .16);
  --menu-surface: rgba(12, 17, 23, .984);

  --gutter: 16px;
  --ink: #171c23;
  --hero-base: #11161b;
  --blue: #1557d5;
  --blue-hover: #1047b3;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-ui: 160ms ease-out;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: #0b0b0c; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: #fff; }
.header-glass { position: absolute; inset: 0; background: var(--glass-fallback); border: var(--glass-border); box-shadow: var(--glass-shadow); pointer-events: none; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-glass { background: var(--glass-tint); -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
}
.header-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: 20px; }
@media (min-width: 640px) { .header-inner { padding-inline: max(28px, calc((100vw - 1376px) / 2)); } }
.brand { display: block; line-height: 0; border-radius: 4px; }
/* header logo: unchanged from V1 */
.brand-logo { display: block; width: min(calc(100vw - 96px), 300px); aspect-ratio: 162.04 / 23.55; background: var(--logo) no-repeat left center / contain; }

.nav-toggle { flex: none; display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 10px; margin-right: -2px; background: none; border: 0; border-radius: 6px; color: #fff; cursor: pointer; transition: background-color var(--ease-ui); }
.nav-toggle:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle-bar { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform 180ms ease-out, opacity 180ms ease-out; }
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--menu-surface); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity 180ms ease-out, visibility 0s linear 180ms; }
.nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity 180ms ease-out, visibility 0s; }
.site-nav a { display: flex; align-items: center; justify-content: center; min-height: 52px; min-width: 44px; padding: 4px 16px;
  font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #fff; border-radius: 6px; transition: color var(--ease-ui); }
.site-nav a[aria-current="page"] { color: #c2e013; }
.header-inner > .brand, .header-inner > .nav-toggle { position: relative; z-index: 2; }

@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; flex-direction: row; gap: 4px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; visibility: visible; }
  .site-nav a { min-height: 44px; padding: 0 12px; font-size: 17px; letter-spacing: .16em;
    background: linear-gradient(currentColor, currentColor) no-repeat center calc(100% - 8px) / 0 2px; transition: background-size var(--ease-ui); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background-size: calc(100% - 24px) 2px; }
}

/* ---------- Section 01 heroes ---------- */
.hero { position: relative; display: flex; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--hero-base); color: #fff; isolation: isolate; }
@media (min-width: 768px) { .hero { min-height: 560px; } }
@media (min-width: 1024px) { .hero { min-height: 640px; } }
@media (orientation: landscape) and (max-height: 499px) { .hero { min-height: 420px; } }
.hero-media { position: absolute; inset: 0; z-index: 0; opacity: .96; filter: saturate(88%) contrast(104%) brightness(100%); }
.hero-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fd, 50% 50%); opacity: 0; transform-origin: 50% 50%; backface-visibility: hidden; }
.hero-layer.is-on { opacity: 1; }
@media (max-width: 767px) { .hero-layer { object-position: var(--fm, var(--fd, 50% 50%)); } }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, var(--overlay, .56)); }
.hero-content { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px; }
.hero-title { margin: 0; max-width: 960px; font-family: var(--display); font-weight: 600; color: #fff;
  font-size: 40px; line-height: 1.08; letter-spacing: -.015em;
  -webkit-text-stroke: .6px rgba(0, 0, 0, .65); paint-order: stroke fill;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .65), 0 8px 24px rgba(0, 0, 0, .35); }
@media (max-width: 359px) { .hero-title { font-size: 36px; } }
@media (min-width: 768px) { .hero-title { font-size: 56px; line-height: 1.06; letter-spacing: -.02em; } }
@media (min-width: 1024px) { .hero-title { font-size: 72px; line-height: 1.04; letter-spacing: -.025em; } }
.hero-line { margin: 12px 0 0; max-width: 560px; font-size: 16px; line-height: 1.5; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
@media (min-width: 768px) { .hero-line { margin-top: 16px; font-size: 18px; } }


/* ---------- Shared headings / buttons ---------- */
.section-title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.2; text-align: center; color: var(--ink); }
@media (min-width: 768px) { .section-title { font-size: 36px; line-height: 1.15; } }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border: 0; border-radius: 10px;
  background: var(--blue); color: #fff; font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--ease-ui); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:focus-visible { outline: 3px solid rgba(21, 87, 213, .45); outline-offset: 2px; }


/* ---------- Grids (Custom Rods 03, Wahoo 02, About 02) ---------- */
.grid { list-style: none; margin: 0 auto; padding: 0; max-width: 1280px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 360px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid { gap: 12px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid-cell { display: block; position: relative; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; cursor: zoom-in; transition: box-shadow var(--ease-ui), border-color var(--ease-ui); }
html:not(.js) .grid-cell picture { display: none; }
.grid-cell img:not([src]) { visibility: hidden; }
.grid-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; }
@media (min-width: 768px) { .grid-cell img { padding: 6px; } }

.gallery-section { position: relative; padding: 40px var(--gutter); }
.gallery-section--rods { background: #fff; isolation: isolate; }
@media (min-width: 1024px) {
  .gallery-section--rods { padding-block: 32px; }
  /* five full rows per screen: floor((V - H - 2*32 - 4*12) / 5), min 64px */
  .gallery-section--rods .grid { grid-auto-rows: max(64px, calc((100vh - var(--header-h) - 112px) / 5 - .5px)); }
  @supports (height: round(down, 10.5px, 1px)) {
    .gallery-section--rods .grid { grid-auto-rows: max(64px, round(down, (100vh - var(--header-h) - 112px) / 5, 1px)); }
  }
  .gallery-section--rods .grid-cell { aspect-ratio: auto; height: 100%; }
}
.gallery-section--rods .grid-cell { background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }

.gallery-section--wahoo { background: #000; padding-block: 40px; }
@media (min-width: 768px) { .gallery-section--wahoo { padding-block: 64px; } }
.gallery-section--wahoo .grid-cell { background: #0a0a0a; border: 1px solid rgba(255, 255, 255, .12); }
.grid-cell:hover { border-color: rgba(255, 255, 255, .32); }

/* ---------- About 03: inquiry ---------- */
.inquiry { background: #e6e8eb; padding: 64px var(--gutter); scroll-margin-top: calc(var(--header-h) + 24px); }
@media (min-width: 768px) { .inquiry { padding-block: 96px; } }
.inquiry-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.inquiry-form { margin-top: 32px; text-align: center; }
.field { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 20px; }
.field:first-child { margin-top: 0; }
.field label { font-size: 14px; font-weight: 500; color: #303640; text-align: center; }
.field input, .field textarea { width: 100%; min-height: 56px; padding: 16px; border: 1px solid #737b86; border-radius: 10px; background: #f8f9fa; color: #171c23;
  font: 400 16px/1.4 var(--sans); text-align: center; transition: border-color var(--ease-ui); }
.field textarea { min-height: 160px; resize: vertical; text-align: left; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(21, 87, 213, .35); outline-offset: 2px; border-color: #1557d5; }
.field input:disabled, .field textarea:disabled { cursor: not-allowed; }
.field-error { margin: 0; font-size: 14px; color: #b3261e; }
.inquiry-submit { width: 100%; height: 56px; margin-top: 24px; border-radius: 10px; }
.inquiry-submit[aria-busy="true"] { cursor: progress; opacity: .85; }
.form-status { margin: 16px 0 0; font-size: 15px; color: #8a1c14; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-success:focus { outline: none; }
.inquiry-success p { margin: 8px 0 0; color: #303640; }
.inquiry-fallback { margin: 24px 0 0; color: #303640; font-size: 16px; }
.contact-block { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.contact-block p { margin: 0; color: #303640; }
.contact-block a { color: #174ea6; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; min-height: 24px; }
.contact-block a:hover { color: #0f3a80; }
.contact-block a:focus-visible, .inquiry a:focus-visible { outline: 3px solid rgba(21, 87, 213, .45); }

/* ---------- Footer (V1) ---------- */
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px var(--gutter) max(36px, env(safe-area-inset-bottom));
  border-top: 1px solid #222226; background: #0b0b0c; color: #d6d6da; text-align: center; font-family: var(--display); font-weight: 500; }
.footer-logo { line-height: 0; }
.footer-logo img { width: 150px; height: auto; opacity: .9; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; font-size: 18px; letter-spacing: .06em; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: #d6d6da; }
.footer-contact li, .footer-contact a { max-width: 100%; min-width: 0; overflow-wrap: anywhere; } /* V3 §13.2: no overflow at 200% zoom (only wraps when it cannot fit) */
.footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) { .site-footer { flex-direction: row; justify-content: space-between; } }
/* V4 final: Instagram + YouTube. Mobile: logo, contact (phone, website), then the icons in a row below the website line.
   Desktop: icons immediately left of the phone link. 44px hit areas, footer link colours. */
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #d6d6da; border-radius: 8px; }
.footer-social a:hover { color: #fff; }
.footer-social svg { display: block; width: 24px; height: 24px; }
@media (max-width: 1023px) { .footer-logo { order: 1; } .footer-contact { order: 2; } .footer-social { order: 3; } }
@media (min-width: 1024px) { .footer-social { margin-left: auto; } }

/* ---------- Fullscreen viewer ---------- */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; opacity: 0; transition: opacity 180ms ease-out; }
.viewer[open] { display: block; }
.viewer.is-visible { opacity: 1; }
.viewer::backdrop { background: rgba(0, 0, 0, .96); }
.viewer-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(72px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(0, 0, 0, .96); }
@media (min-width: 768px) { .viewer-stage { padding: 48px 88px; } }
.viewer-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.viewer-btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(32, 34, 38, .72); color: #fff; cursor: pointer; transition: background-color var(--ease-ui); }
.viewer-btn:hover { background: rgba(60, 63, 68, .9); }
.viewer-btn svg { width: 22px; height: 22px; }
.viewer-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.viewer-prev { left: max(16px, env(safe-area-inset-left)); top: 50%; transform: translateY(-50%); }
.viewer-next { right: max(16px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) { .viewer-prev, .viewer-next { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); transform: none; } }
.viewer-error { position: absolute; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 15px; color: #e3e3e6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* =====================================================================
   V3 — scoped additions (blueprint V3 final, 2026-10-21). Values marked ESTIMATE in the record until measured.
   ===================================================================== */

/* ---------- Native fallback menu (V3 §13.3): only an initialized custom menu hides it ---------- */
.nav-fallback { position: relative; z-index: 2; }
.nav-fallback > summary { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -2px; list-style: none; cursor: pointer; color: #fff; border-radius: 6px; }
.nav-fallback > summary::-webkit-details-marker { display: none; }
.nav-fallback > summary svg { width: 24px; height: 24px; }
.nav-fallback-menu { position: fixed; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 8px 0 16px;
  background: var(--menu-surface); display: flex; flex-direction: column; align-items: center; }
.nav-fallback-menu a { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 4px 16px; font-family: var(--display); font-size: 26px;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #fff; }
.nav-fallback-menu a[aria-current="page"] { color: #c2e013; }
.site-header[data-nav-ready] .nav-fallback { display: none; }
@media (min-width: 1280px) { .nav-fallback { display: none; } }

/* ---------- Glass photo frame (montage + About foreground): stroke, frosted rim, layered shadow, no backdrop blur ---------- */
.gframe { position: relative; display: block; height: 100%; padding: 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(12, 17, 23, .72); color: #fff; text-decoration: none; cursor: zoom-in;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -8px 18px rgba(0, 0, 0, .18), 0 8px 24px rgba(12, 17, 23, .16), 0 22px 52px rgba(0, 0, 0, .32);
  transition: box-shadow 180ms ease-out, border-color 180ms ease-out; -webkit-tap-highlight-color: transparent; }
@media (min-width: 768px) { .gframe { padding: 10px; border-radius: 16px; } }
.gframe::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.gframe:hover { border-color: rgba(255, 255, 255, .32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -8px 18px rgba(0, 0, 0, .18), 0 12px 28px rgba(12, 17, 23, .22), 0 28px 64px rgba(0, 0, 0, .42); }
.gframe:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-color: rgba(255, 255, 255, .32); transform: translateY(-6px); }
.gwell { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 6px; background: #0c1117; }
@media (min-width: 768px) { .gwell { border-radius: 8px; } }
.gwell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .gframe:focus-visible { transform: none; } }

/* ---------- Thin title heroes (Custom Rods 01, Wahoo Bombs 01): height = 0.60 × complete Section 02 ---------- */
.hero--thin { --h1: 36px; --lh: 1.08; --gap: 8px; --line: 16px; --clear: 8px;
  --B: calc(var(--h1) * var(--lh) + var(--gap) + var(--line) * 1.5);
  display: block; height: calc(.6 * (clamp(280px, 52svh, 480px) + 168px));
  min-height: calc(var(--header-h) + var(--clear) + var(--B) + 16px); }
@media (min-width: 768px) { .hero--thin { --h1: 48px; --lh: 1.06; --gap: 12px; --line: 18px; --clear: 16px; height: calc(.6 * (clamp(320px, 55svh, 520px) + 200px)); } }
@media (min-width: 1024px) { .hero--thin { --h1: 64px; --lh: 1.04; height: calc(.6 * (clamp(340px, 62svh, 620px) + 200px)); } }
@media (min-width: 1024px) and (max-height: 860px) { .hero--thin { --h1: 48px; --gap: 6px; } }
.hero--thin .hero-content { position: absolute; left: 0; right: 0; display: block; padding: 0 var(--gutter);
  top: max(calc(25% - var(--B) / 2), calc(var(--header-h) + var(--clear))); }
.hero--thin .hero-title { margin: 0 auto; font-size: var(--h1); line-height: var(--lh); }
.hero--thin .hero-line { margin: var(--gap) auto 0; font-size: var(--line); line-height: 1.5; }

/* ---------- Shared photo-to-glass fade (V3; still used by the Photos inquiry section) ---------- */
.fade-blur, .fade-tint { position: absolute; left: 0; right: 0; pointer-events: none; }
.fade-blur { z-index: 1; -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.06) calc(var(--L) * .18), rgba(0,0,0,.24) calc(var(--L) * .42), rgba(0,0,0,.58) calc(var(--L) * .66), rgba(0,0,0,.86) calc(var(--L) * .84), #000 var(--L));
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.06) calc(var(--L) * .18), rgba(0,0,0,.24) calc(var(--L) * .42), rgba(0,0,0,.58) calc(var(--L) * .66), rgba(0,0,0,.86) calc(var(--L) * .84), #000 var(--L)); }
.fade-tint { z-index: 1; bottom: 0;
  background: linear-gradient(180deg, rgba(12,17,23,0) 0, rgba(12,17,23,.0432) calc(var(--L) * .18), rgba(12,17,23,.1728) calc(var(--L) * .42), rgba(12,17,23,.4176) calc(var(--L) * .66), rgba(12,17,23,.6192) calc(var(--L) * .84), rgba(12,17,23,.72) var(--L), rgba(12,17,23,.72) 100%); }
/* no backdrop-filter, or coarse-pointer devices (iPhone default per §4.3): no blur, solid fallback tint stops */
@media (pointer: coarse) {
  .fade-blur { display: none; }
  .fade-tint { background: linear-gradient(180deg, rgba(12,17,23,0) 0, rgba(12,17,23,.0564) calc(var(--L) * .18), rgba(12,17,23,.2256) calc(var(--L) * .42), rgba(12,17,23,.5452) calc(var(--L) * .66), rgba(12,17,23,.8084) calc(var(--L) * .84), rgba(12,17,23,.94) var(--L), rgba(12,17,23,.94) 100%); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .fade-blur { display: none; }
  .fade-tint { background: linear-gradient(180deg, rgba(12,17,23,0) 0, rgba(12,17,23,.0564) calc(var(--L) * .18), rgba(12,17,23,.2256) calc(var(--L) * .42), rgba(12,17,23,.5452) calc(var(--L) * .66), rgba(12,17,23,.8084) calc(var(--L) * .84), rgba(12,17,23,.94) var(--L), rgba(12,17,23,.94) 100%); }
}
/* ---------- Product grid section (V3 Section 03 background recipe; V4: grid only, no rails/frames) ---------- */
.s3 { background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 78%, rgba(0,0,0,.28) 100%),
    radial-gradient(85% 60% at 50% 10%, rgba(255,255,255,.055) 0%, rgba(255,255,255,0) 68%),
    linear-gradient(180deg, #1c2026 0%, #12161b 28%, #0b0e12 62%, #06080b 100%), #080a0d;
  padding-block: 40px; container-type: inline-size; }
.s3 .grid-cell:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- About 01: rotating background + title + seven glass photos ---------- */
.hero--about { --h1: 40px; --lh: 1.08; --gap: 12px; --line: 16px;
  --B: calc(var(--h1) * var(--lh) + var(--gap) + var(--line) * 1.5);
  --cw: calc((100vw - 44px) / 2); --G: calc(4 * var(--cw) * 1.25 + 36px);
  --aH: max(100svh, 1400px, calc((var(--B) / 2 + 80px + var(--G)) / .75));
  display: block; height: auto; min-height: var(--aH); padding: 0 var(--gutter) 48px; }
@media (max-width: 359px) { .hero--about { --h1: 36px; } }
@media (min-width: 768px) { .hero--about { --h1: 56px; --lh: 1.06; --gap: 16px; --line: 18px; --G: 692px; --aH: max(100svh, 1200px, calc((var(--B) / 2 + 80px + var(--G)) / .75)); } }
@media (min-width: 1024px) { .hero--about { --h1: 72px; --lh: 1.04; --G: 456px; --aH: max(100svh, 820px, calc((var(--B) / 2 + 80px + var(--G)) / .75)); } }
@media (min-width: 1024px) and (max-height: 860px) { .hero--about { --G: 416px; } }
.hero--about .hero-content { position: absolute; left: 0; right: 0; top: calc(.25 * var(--aH) - var(--B) / 2); display: block; padding: 0 var(--gutter); }
.hero--about .hero-title { margin: 0 auto; font-size: var(--h1); line-height: var(--lh); }
.hero--about .hero-line { margin: var(--gap) auto 0; font-size: var(--line); }
.about-photos { position: relative; z-index: 3; list-style: none; margin: 0 auto; padding: calc(.25 * var(--aH) + var(--B) / 2 + 32px) 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1120px; }
.about-photos li { flex: 0 0 calc((100% - 12px) / 2); aspect-ratio: 4 / 5; }
@media (min-width: 768px) { .about-photos { gap: 16px; max-width: 720px; } .about-photos li { flex: 0 0 229px; aspect-ratio: auto; height: 220px; } }
@media (min-width: 1024px) { .about-photos { max-width: 1120px; } .about-photos li { flex-basis: 268px; } }
@media (min-width: 1024px) and (max-height: 860px) { .about-photos li { height: 200px; } }
.about-photos .gwell img { inset: 0; }
.about-photos .gframe { will-change: auto; }

/* ---------- About 02: inquiry over static N1 with the Home photo-to-glass fade ---------- */
.inquiry { position: relative; isolation: isolate; overflow: hidden; background: #0c1117; padding: 0 var(--gutter) max(64px, env(safe-area-inset-bottom)); --L: 120px; --S: 0px; }
@media (min-width: 768px) { .inquiry { --L: 160px; padding-bottom: 96px; } }
.inquiry-bg { position: absolute; inset: 0; z-index: 0; }
.inquiry-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fd, 50% 60%); }
.inquiry .fade-blur, .inquiry .fade-tint { top: 0; bottom: 0; }
.inquiry-inner { position: relative; z-index: 2; padding-top: 152px; }
@media (min-width: 768px) { .inquiry-inner { padding-top: 192px; } }
.inquiry .section-title, .inquiry .field label, .inquiry-fallback, .inquiry-success .section-title, .inquiry-success p, .contact-block p { color: #fff; }
.inquiry .contact-block a { color: #fff; }
.inquiry .contact-block a:hover { color: #dfe7ff; }
.inquiry .contact-block a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.inquiry .form-status { color: #ffc1ba; }
.inquiry .field-error { color: #ffc1ba; }
.inquiry-submit:disabled { cursor: not-allowed; }
.inquiry-submit:disabled:not([aria-busy="true"]) { background: #3b5d9e; color: #fff; }

/* =====================================================================
   V4 — scoped changes (WMD_V4_Blueprint_FINAL.md). Each rule names its revision ID.
   ===================================================================== */

/* R6/R7: title only (no subtitle) — the title block is the H1 alone, so the positioning height excludes the line */
.hero--thin, .hero--about { --B: calc(var(--h1) * var(--lh)); }

/* R1/R2: Home = header, one image region, footer. The region starts under the fixed 64px header so no rod is hidden behind it.
   Art-directed (picture sources in build.py): <=767px newhomepagebackground_MODIFIED, >=768px newhomepagebackground.png. */
.hero--home4 { display: block; height: max(100svh, 520px); min-height: 0; padding-top: var(--header-h); background: #11161b; }
.home4-media { display: block; width: 100%; height: 100%; }
/* Final revisions (Jason): desktop = original photo full frame (cover, centred, edge to edge, no side bars);
   mobile = the whole MODIFIED photo (contain) with #11161b bars top/bottom, as on the 3xomog preview */
.home4-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 767px) { .home4-photo { object-fit: contain; } }
/* Mobile hero tighten (Jason red X, 2026-11-03): the stage hugs the whole MODIFIED photo, so no #11161b bands above/below it.
   Header clearance (padding-top) stays; the footer follows directly. aspect-ratio = MODIFIED master 3639x3024 (no load jump). */
@media (max-width: 767px) {
  .hero--home4 { height: auto; min-height: 0; }
  .home4-media { height: auto; width: 100%; }
  .home4-photo { height: auto; width: 100%; aspect-ratio: 3639 / 3024; }
}

/* R8/R10: product heroes show their photo at original brightness — no overlay (not emitted), no opacity, no filter */
.hero--product .hero-media { opacity: 1; filter: none; }
.hero--product .hero-layer { opacity: 1; }
/* R8/R9: Custom Rods hero — one static image on the gallery's dark base. Cover where it keeps the whole rod; when the hero is
   narrower than the 16:9 photo (portrait/phone) the full image is shown (contain) on the matching background. */
.hero--rods { background: #fefefe; container-type: size; }   /* V4 r2 #3: the white photo's measured edge colour */
.hero--rods .hero-layer { object-position: 50% 36%; }        /* V4 r2 #3: desktop/cover — rod lowered and centred below the header */
@container (max-aspect-ratio: 16/9) { .hero--rods .hero-layer { object-fit: contain; object-position: 50% 50%; } }   /* mobile box unchanged */

/* R11/R12: grid section (former Section 03 is Section 02): full grid, no catalog, no corner frames */
.s4 { padding-left: var(--gutter); padding-right: var(--gutter); }
.s4 .grid { width: 100%; }

/* R3: mobile/tablet footer (below the existing 1024px footer breakpoint) stacks Logo, Phone, Website, centered */
@media (max-width: 1023px) {
  .footer-contact { flex-direction: column; align-items: center; gap: 0; }
}

/* R15: the Photos gallery is much longer than V3's seven photos; keep the rotating background to the opening area
   (V3 Section 01 minimum height) and let the dark base continue below, instead of stretching one photo over the whole list. */
.hero--about .hero-media { bottom: auto; height: var(--aH); }
/* R10/OC9: legibility at original image brightness comes only from the title's own text shadow (a tight dark outline + soft halo).
   No overlay, panel, gradient or image change. */
.hero--product .hero-title { text-shadow: 0 0 1px #000, 0 0 2px #000, 0 0 3px rgba(0, 0, 0, .9), 0 1px 5px rgba(0, 0, 0, .85), 0 0 16px rgba(0, 0, 0, .6); }

/* R5/OC3 (Owen: Audiowide, SIL OFL 1.1, Google Fonts): navigation labels only. Audiowide ships one weight (400), so no synthesized bold.
   Scoped to the two nav link rules; the shared --display token (titles, footer) is unchanged. */
.site-nav a, .nav-fallback-menu a { font-family: "Audiowide", var(--display); font-weight: 400; }
@media (max-width: 1279px) { .site-nav a { font-size: 24px; letter-spacing: .08em; } .nav-fallback-menu a { font-size: 22px; letter-spacing: .08em; } }
@media (min-width: 1280px) { .site-nav a { font-size: 15px; letter-spacing: .1em; } }

/* R9/OC7 (Owen: option a): Custom Rods hero and grid share one solid colour, #080A0D (the V3 grid's base token).
   The V3 gradient layers are removed on Custom Rods only; Wahoo Bombs keeps its V3 grid background. */
.s4--rods { --rods-bg: #080a0d; background: #080a0d; }

/* =====================================================================
   V4 round 2 (owner revisions)
   ===================================================================== */
/* #3: Custom Rods title on the white photo — dark text (no black halo); position unchanged */
.hero--rods .hero-title { color: #0c1117; text-shadow: none; -webkit-text-stroke: 0 transparent; }
/* #3: white hero → dark grid transition: a clean, straight edge (no grey wash over the white photo), with a soft shadow
   cast down onto the dark grid so the light hero reads as sitting above it. Grid colour itself stays #080A0D. */
.s4--rods { box-shadow: inset 0 18px 22px -18px rgba(0, 0, 0, .9); }

/* #4: inquiry continues the Photos gallery's solid colour (computed #11161B = --hero-base) */
.inquiry--solid { background: var(--hero-base); }

/* #5: Photos hero, mobile only. Title at the same top offset as Custom Rods / Wahoo Bombs (header + 8px);
   rotating photos shown whole as a full-width landscape band (3940×2990 is the narrower aspect, so both fit),
   blended into the gallery colour like desktop; the gallery starts right after the band. */
@media (max-width: 767px) {
  .hero--about { --band: calc(100vw * 2990 / 3940); min-height: 0; padding-top: 0; }
  .hero--about .hero-content { top: calc(var(--header-h) + (var(--band) - var(--B)) / 2); }   /* V4 r4 (owner, mobile): title centred in the photo band, both axes */
  .hero--about .hero-media { top: var(--header-h); height: var(--band); bottom: auto; }   /* band frame unchanged (V4 r2); hard bottom edge */
  .hero--about .about-photos { padding-top: calc(var(--header-h) + var(--band) + 12px); }
}

/* ---------- V4 round 4: Photos hero = ONE still photo (Tuna Catch on the Open Sea, 1672×941) ----------
   No rotation, overlay, tint, gradient/mask, filter, blend, transform or animation on the image or anything above it.
   Readability comes only from the title's own text shadow. */
.hero--still .hero-media { opacity: 1; filter: none; -webkit-mask-image: none; mask-image: none; overflow: hidden; background: none; }
.hero--still .hero-still { position: absolute; top: 0; left: 0; display: block; height: 100%; max-width: none; object-fit: cover;
  opacity: 1; filter: none; transform: none; animation: none; transition: none; mix-blend-mode: normal; }
.hero--about .hero-title { text-shadow: 0 0 1px #000, 0 0 2px #000, 0 0 3px rgba(0, 0, 0, .9), 0 1px 5px rgba(0, 0, 0, .85), 0 0 16px rgba(0, 0, 0, .6); }   /* readability on the text only */
@media (max-width: 767px) {   /* fills the locked band, height-fit; group centred (equal margins left/right) */
  .hero--still .hero-still { width: 100%; object-position: 36.34% 50%; }
}
@media (min-width: 768px) {
  /* Full width, below the header (no glass over it). The box is 1672/1554 of the width so the group (source x 372–1182, centre 777) is
     centred; rows 18–558 of 941 show (31px headroom over the caps; the middle man's chin sits above the title). The gallery starts
     after the photo (never higher than before), moved by a whole number of px so it renders on the same sub-pixel grid. */
  .hero--still { --bandD: calc(100vw * 540 / 1554); --galOld: calc(.25 * var(--aH) + var(--B) / 2 + 32px); }
  .hero--still .hero-media { top: var(--header-h); height: var(--bandD); }
  .hero--still .hero-content { top: calc(var(--header-h) + (var(--bandD) - var(--B)) / 2); }   /* V4 r4 (owner, desktop): title centred in the photo band, both axes */
  .hero--still .hero-still { width: calc(100% * 1672 / 1554); object-position: 0% 4.489%; }
  .hero--still .about-photos { padding-top: calc(var(--galOld) + max(0px, round(up, var(--header-h) + var(--bandD) + 32px - var(--galOld), 1px))); }
}
