/* ==========================================================================
   WAVEWELL PRODUCTION DESIGN SYSTEM (wavewell.co)
   Bricolage Grotesque + IBM Plex Sans + IBM Plex Mono
   B2 Chamfered Instrument Actions | Zero Eyebrows | Zero Tailwind Defaults
   ========================================================================== */

:root {
  --salt: #f6f8f9;
  --white: #ffffff;
  --mineral: #e8eef2;
  --ink: #071928;
  --ink-soft: #375062;
  --ink-muted: #627a8c;
  --rule: rgba(7, 25, 40, 0.14);

  --surface: #0a2d54;
  --kelp: #062b2e;
  --kelp-bright: #0e8a72;
  --abyss: #041325;
  --buoy: #f05524;
  --bio: #34e8c1;
  --gold: #f4c152;

  --f-disp: 'Bricolage Grotesque', sans-serif;
  --f-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--salt);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.brico { font-family: var(--f-disp); font-optical-sizing: auto; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 44px; }
@media (max-width: 760px) { .wrap { padding: 0 20px; } }

/* --- B2 CHAMFERED INSTRUMENT BUTTONS (45-degree machined bevels) --- */
.btn-chamfer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 22px;
  background: #ffffff;
  color: var(--ink);
  border: none;
  cursor: pointer;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}
.btn-chamfer:hover {
  background: #e6eff5;
  transform: translateY(-1px);
}
.btn-chamfer--nav {
  padding: 10px 18px;
  font-size: 10.5px;
}
.btn-chamfer--ink {
  background: var(--ink);
  color: #ffffff;
}
.btn-chamfer--ink:hover {
  background: #10324e;
  color: #ffffff;
}
.btn-chamfer--buoy {
  background: var(--buoy);
  color: #ffffff;
}
.btn-chamfer--buoy:hover {
  background: #d94618;
}

/* Secondary minimal hairline text link */
.link-rule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1.5px solid currentColor;
  transition: opacity 0.15s ease;
}
.link-rule:hover { opacity: 0.72; }

/* --- MINIMAL TOP NAVIGATION --- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 24px 0;
}
.nav--solid {
  position: sticky;
  background: rgba(4, 19, 37, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
}
.brand svg { width: 38px; height: 25.3px; display: block; }
.brand-name {
  font-family: var(--f-disp);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.nav-links a:hover, .nav-links a.active { color: #ffffff; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.menu-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 15px;
}
.menu-bars i {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.menu-btn.open .menu-bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn.open .menu-bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  z-index: 40;
  background: rgba(4, 19, 37, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px 20px 36px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.mobile-drawer.open { display: block; }
body.nav-open { overflow: hidden; }
body.nav-open .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(4, 19, 37, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.mobile-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--f-disp);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.mobile-drawer-links a span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(194, 214, 228, 0.72);
  font-weight: 500;
}
.mobile-drawer-cta {
  width: 100%;
  justify-content: center;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .nav { padding: 14px 0; }
  .nav--solid { padding: 13px 0; }
  .mobile-drawer { top: 59px; }
  .brand svg { width: 32px; height: 21.3px; }
  .brand-name { font-size: 19px; }
  .nav-right .btn-chamfer--nav {
    height: 34px;
    padding: 0 13px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .wave-seam, .wave-seam-top { height: 30px; }
}

/* --- CETI 1+1+3 ACOUSTIC CODA DIVIDER --- */
.coda-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.coda-line { flex: 1; height: 1px; background: currentColor; opacity: 0.22; }
.coda-dots { display: inline-flex; align-items: center; gap: 9px; opacity: 0.55; }
.coda-dots i { width: 2.5px; height: 2.5px; border-radius: 999px; background: currentColor; display: inline-block; }
.coda-dots i.gap { margin-right: 10px; }

/* --- ORGANIC WAVE SEAMS --- */
.wave-seam {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 54px;
  display: block;
  pointer-events: none;
}
.wave-seam-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 54px;
  display: block;
  pointer-events: none;
}

/* --- CONTINUOUS 3-STEP PANORAMA + BOLD BRICOLAGE NUMERALS --- */
.pano-wrap {
  width: 100%;
  margin: 20px 0 8px;
}
.pano-img {
  width: 100%;
  height: auto;
  display: block;
}
.pano-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
@media (max-width: 780px) { .pano-steps { grid-template-columns: 1fr; gap: 22px; } }
.pano-step-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}
.pano-num {
  font-family: var(--f-disp);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--kelp-bright);
}
.pano-title {
  font-family: var(--f-disp);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.pano-cap {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.48;
  padding-left: 54px;
}
@media (max-width: 780px) { .pano-cap { padding-left: 0; } }

/* --- FOOTER --- */
.footer {
  background:
    linear-gradient(96deg, rgba(3, 14, 28, 0.92), rgba(3, 14, 28, 0.78)),
    url('../img/sf-bay-footer-cool.jpg') center/cover no-repeat;
  background-color: #030e1c;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 0;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-links {
  display: flex;
  gap: 26px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  flex-wrap: wrap;
}
.foot-links a:hover { color: #ffffff; }

@media (max-width: 640px) {
  .footer { padding: 34px 0 38px; }
  .foot-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .foot-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    width: 100%;
  }
  .footer .btn-chamfer--nav {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }
}
