/* ============================================================
   POTOMAC BANK · Concept site — KM Digital
   Warm editorial light theme · cream + teal + ink
   ============================================================ */

/* ----- Tokens ----- */
:root {
  /* Surface — paper hierarchy */
  --paper:        #F5EFE2;     /* base parchment */
  --paper-2:      #EFE7D6;     /* sections */
  --paper-3:      #E8DCC4;     /* cards / accents */
  --paper-line:   #D6CBB3;     /* hairlines */
  --paper-deep:   #C9BB9F;     /* dividers */

  /* Ink — text + dark accents */
  --ink:          #14181A;
  --ink-2:        #1F2526;
  --ink-soft:     #2C3437;
  --t-hi:         #14181A;     /* primary text on light */
  --t-mid:        #4A4F4F;
  --t-low:        #777771;
  --t-faint:      #9E9A8E;

  /* Brand teal */
  --teal:         #2A8B92;     /* deeper teal — works on light */
  --teal-bright:  #5BB5BC;     /* brand teal */
  --teal-deep:    #1F4E52;
  --teal-paper:   #D8EAEA;     /* tinted teal background */

  /* Earth — subtle organic accent */
  --forest:       #3A5246;
  --forest-deep:  #243228;

  /* Warm gold */
  --gold:         #B58A3F;
  --gold-soft:    #D9BB7A;

  /* Type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1340px;
  --gutter: clamp(20px, 4vw, 60px);
  --section-py: clamp(80px, 10vw, 160px);

  /* Easing */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--t-hi);
  font-family: var(--sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;

  /* Subtle paper texture */
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(216, 234, 234, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(245, 226, 184, 0.25) 0%, transparent 50%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* ----- Type primitives ----- */
.section-index {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 32px;
}
.section-index--light { color: var(--gold-soft); }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--t-hi);
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}
.section-title--small {
  font-size: clamp(34px, 4.4vw, 56px);
}
.section-title--alt em { color: var(--forest); }
.section-title--light {
  color: var(--paper);
}
.section-title--light em { color: var(--gold-soft); }

.section-lede {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--t-mid);
  max-width: 56ch;
  margin: 0;
}

.eyebrow-bar {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ----- Container ----- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 100px;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}
.btn--primary:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--t-hi);
  border-color: var(--paper-deep);
}
.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.btn--ghost-light {
  background: transparent;
  color: #FFF;
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #FFF;
}

/* ----- Link arrow ----- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  transition: gap 0.3s var(--ease-out), color 0.3s var(--ease-out);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.link-arrow:hover {
  gap: 14px;
  color: var(--teal-deep);
  border-bottom-color: var(--teal);
}

/* ============================================================
   UTILITY BAR
   ============================================================ */
.utility {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  padding: 12px var(--gutter);
}
.utility__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.utility__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.utility__links a {
  color: var(--paper-3);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.utility__links a:hover { color: var(--teal-bright); }

.utility__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 9px 16px;
  border: 1px solid rgba(245,239,226,0.25);
  border-radius: 100px;
  transition: border-color 0.3s, background 0.3s;
}
.utility__login:hover {
  border-color: var(--teal-bright);
  background: rgba(91,181,188,0.1);
}

@media (max-width: 960px) {
  .utility__links { display: none; }
}

/* ============================================================
   MAIN NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  padding: 18px var(--gutter);
  transition: box-shadow 0.4s var(--ease-soft);
}
.nav.is-scrolled {
  box-shadow: 0 6px 24px -16px rgba(20,24,26,0.12);
}

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
}
.nav__brand img {
  height: 64px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav__item {
  position: relative;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--t-hi);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.25s;
  cursor: pointer;
}
.nav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav__item > a:hover, .nav__item:hover { color: var(--teal); }

.nav__item--has-menu > a svg {
  transition: transform 0.3s var(--ease-out);
}
.nav__item--has-menu:hover > a svg {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  min-width: 290px;
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  box-shadow: 0 24px 56px -16px rgba(20,24,26,0.18);
  padding: 10px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}
.nav__item--has-menu:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 15px;
  color: var(--t-mid);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.nav__dropdown a:hover {
  background: var(--paper-3);
  color: var(--t-hi);
}
.nav__dropdown-cta {
  margin-top: 8px;
  padding-top: 14px !important;
  border-top: 1px solid var(--paper-line);
  color: var(--teal) !important;
  font-weight: 500 !important;
  font-family: var(--mono);
  font-size: 13px !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav__search {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t-hi);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.nav__search:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-paper);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.nav__hamburger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--paper-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  background: none;
  transition: border-color 0.3s, background 0.3s;
  z-index: 101;
  position: relative;
}
.nav__hamburger:hover {
  border-color: var(--teal);
  background: var(--teal-paper);
}
.nav__hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--t-hi);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.3s;
}

/* Hamburger → X when open */
.nav__hamburger.is-active {
  border-color: rgba(245,239,226,0.3);
  background: transparent;
}
.nav__hamburger.is-active .nav__hamburger-line {
  background: var(--paper);
}
.nav__hamburger.is-active .nav__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger.is-active .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.is-active .nav__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   FULL-SCREEN MENU OVERLAY
   ============================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
  overflow-y: auto;
  padding: 120px var(--gutter) 40px;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.menu-overlay__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 60px;
}

.menu-overlay__group {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu-overlay.is-open .menu-overlay__group {
  opacity: 1;
  transform: translateY(0);
}
.menu-overlay.is-open .menu-overlay__group:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.is-open .menu-overlay__group:nth-child(2) { transition-delay: 0.15s; }
.menu-overlay.is-open .menu-overlay__group:nth-child(3) { transition-delay: 0.2s; }
.menu-overlay.is-open .menu-overlay__group:nth-child(4) { transition-delay: 0.25s; }

.menu-overlay__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  display: block;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.menu-overlay__heading:hover {
  color: var(--teal-bright);
}

.menu-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-overlay__links a {
  font-family: var(--sans);
  font-size: 15px;
  color: rgba(245,239,226,0.6);
  transition: color 0.25s, padding-left 0.3s var(--ease-out);
}
.menu-overlay__links a:hover {
  color: var(--teal-bright);
  padding-left: 8px;
}

.menu-overlay__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,239,226,0.15);
}
.menu-overlay__utility a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.5);
  transition: color 0.25s;
}
.menu-overlay__utility a:hover {
  color: var(--teal-bright);
}

.menu-overlay__right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-out) 0.2s, transform 0.6s var(--ease-out) 0.2s;
}
.menu-overlay.is-open .menu-overlay__right {
  opacity: 1;
  transform: translateX(0);
}

.menu-overlay__image {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.menu-overlay__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.85);
}

.menu-overlay__footer {
  max-width: var(--container);
  margin: 40px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,239,226,0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out) 0.3s, transform 0.5s var(--ease-out) 0.3s;
}
.menu-overlay.is-open .menu-overlay__footer {
  opacity: 1;
  transform: translateY(0);
}

.utility__login--overlay {
  border-color: rgba(245,239,226,0.3);
}

/* Lock body scroll when menu is open */
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .menu-overlay__inner { grid-template-columns: 1fr; }
  .menu-overlay__right { display: none; }
  .menu-overlay__nav { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 1080px) {
  .nav__menu { display: none; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) 0;
  overflow: hidden;
  color: #FFF;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
}

/* Poster image — shows immediately while video loads, fallback for reduced motion */
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(1.05) contrast(1.05);
  z-index: 0;
}

/* Vimeo iframe — fills the entire hero, cropped to cover like a background video.
   Uses min-width/min-height + viewport-relative sizing so the 16:9 iframe
   always exceeds the container in at least one axis, then gets cropped. */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Size the iframe so it always covers: use the larger of
     viewport-width-based height or viewport-height-based width */
  width: 177.78vh;   /* 100vh * 16/9 — wide enough if container is taller */
  height: 56.25vw;   /* 100vw * 9/16 — tall enough if container is wider */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  display: block;
}

/* Hide video for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__video-wrap { display: none; }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(20,24,26,0.5)  0%,
      rgba(20,24,26,0.35) 30%,
      rgba(20,24,26,0.6)  70%,
      rgba(20,24,26,0.92) 100%
    );
}

/* Vignette to ensure text legibility against any frame */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 25% 55%, rgba(20,24,26,0.45) 0%, transparent 70%);
}

/* Transparent click shield — sits above the iframe stacking context,
   prevents Vimeo from stealing focus on click */
.hero__shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  padding-bottom: clamp(80px, 10vw, 140px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 32px;
}
.hero__eyebrow .eyebrow-bar { background: var(--teal-bright); }

.hero__title {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(64px, 11vw, 188px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 36px;
  color: #FFF;
  max-width: 14ch;
  text-shadow: 0 2px 32px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(40px);
  animation: heroLine 1.1s var(--ease-out) 0.1s forwards;
}
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--teal-bright);
}
@keyframes heroLine {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.5;
  max-width: 52ch;
  color: rgba(245,239,226,0.92);
  margin: 0 0 40px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
  opacity: 0;
  animation: heroLine 1s var(--ease-out) 0.55s forwards;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroLine 1s var(--ease-out) 0.7s forwards;
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(245,239,226,0.2);
  background: rgba(20,24,26,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter);
  opacity: 0;
  animation: heroLine 1s var(--ease-out) 0.9s forwards;
}
.hero__stat {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid rgba(245,239,226,0.2);
}
.hero__stat:last-child { border-right: none; }
.hero__stat-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
}
.hero__stat-sup {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--teal-bright);
  letter-spacing: 0.08em;
  margin-left: 4px;
  font-weight: 400;
}
.hero__stat-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.78);
}

@media (max-width: 860px) {
  .hero { padding-top: 80px; min-height: 80vh; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stat { border-right: 1px solid rgba(245,239,226,0.2); border-bottom: 1px solid rgba(245,239,226,0.2); }
  .hero__stat:nth-child(2n) { border-right: none; }
  .hero__stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* ============================================================
   SERVICE PILLARS
   ============================================================ */
.pillars {
  padding: var(--section-py) 0;
  background: var(--paper);
}

.section-head {
  margin-bottom: clamp(60px, 8vw, 100px);
  max-width: 920px;
}
.section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  max-width: none;
}
.section-lede--right { margin-left: auto; }
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; gap: 24px; }
  .section-lede--right { margin-left: 0; }
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 1080px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillar-grid { grid-template-columns: 1fr; } }

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFF;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--paper-line);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -24px rgba(20,24,26,0.2);
}

.pillar__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pillar__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}
.pillar__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,24,26,0) 50%, rgba(20,24,26,0.4) 100%);
}
.pillar:hover .pillar__media img { transform: scale(1.06); }

.pillar__index {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: rgba(20,24,26,0.7);
  padding: 7px 12px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  z-index: 1;
}

.pillar__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 28px 28px 12px;
  color: var(--t-hi);
}

.pillar__desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--t-mid);
  margin: 0 28px 28px;
  flex: 1;
}

.pillar__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 28px 28px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
  transition: color 0.3s var(--ease-out);
}
.pillar__cta svg { transition: transform 0.4s var(--ease-out); }
.pillar:hover .pillar__cta svg { transform: translateX(4px); }
.pillar:hover .pillar__cta { color: var(--teal-deep); }

/* ============================================================
   IMAGE STRIP
   ============================================================ */
.img-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.img-strip__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.img-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(0.9);
}
.img-strip__item:hover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

@media (max-width: 860px) {
  .img-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .img-strip { grid-template-columns: 1fr; }
  .img-strip__item:nth-child(n+3) { display: none; }
}

/* ============================================================
   HERITAGE
   ============================================================ */
.heritage {
  padding: var(--section-py) 0;
  background: var(--paper-2);
  position: relative;
}
.heritage::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--paper-deep) 30%, var(--paper-deep) 70%, transparent 100%);
}

.heritage__container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 960px) {
  .heritage__container { grid-template-columns: 1fr; gap: 40px; }
}

.heritage__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}
.heritage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}

.heritage__since {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: var(--paper);
  padding: 24px 32px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  box-shadow: 0 18px 40px -20px rgba(20,24,26,0.4);
}
.heritage__since-line {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.heritage__since-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 64px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--t-hi);
}

.heritage__body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.65;
  color: var(--t-mid);
  margin: 0 0 22px;
  max-width: 50ch;
}

.heritage__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 36px 0;
  margin: 36px 0;
  border-top: 1px solid var(--paper-deep);
  border-bottom: 1px solid var(--paper-deep);
}
.heritage__stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 3.6vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--forest);
  margin-bottom: 12px;
}
.heritage__stat-label {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  color: var(--t-mid);
}
@media (max-width: 600px) {
  .heritage__stats { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   BRAND VIDEO
   ============================================================ */
.brand-video {
  padding: var(--section-py) 0;
  background: var(--paper);
  position: relative;
}
.brand-video::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--paper-deep) 30%, var(--paper-deep) 70%, transparent 100%);
}

.brand-video__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(40px, 5vw, 64px);
}

.brand-video__player {
  max-width: 1060px;
  margin: 0 auto;
}

.brand-video__embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--paper-line);
  box-shadow: 0 32px 80px -24px rgba(20,24,26,0.18);
}
.brand-video__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   FEATURED OFFERS
   ============================================================ */
.featured {
  padding: var(--section-py) 0;
  background: var(--paper);
  position: relative;
}
.featured::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--paper-deep) 30%, var(--paper-deep) 70%, transparent 100%);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 960px) { .offer-grid { grid-template-columns: 1fr; } }

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 3.5vw, 48px);
  background: #FFF;
  border: 1px solid var(--paper-line);
  border-radius: 4px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.offer:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px -24px rgba(20,24,26,0.18);
}
.offer--feature {
  background: linear-gradient(180deg, var(--paper-2) 0%, #FFF 100%);
  border-color: var(--paper-deep);
}
.offer--accent {
  background: linear-gradient(180deg, var(--teal-paper) 0%, #FFF 60%);
  border-color: var(--teal);
}

.offer__tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-paper);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.offer__tag--alt {
  background: var(--gold-soft);
  color: var(--ink);
}

.offer__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--t-hi);
}
.offer__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--teal);
}

.offer__desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--t-mid);
  margin: 0 0 24px;
}

.offer__points {
  margin-bottom: 28px;
}
.offer__points li {
  font-size: 15px;
  color: var(--t-mid);
  padding: 11px 0 11px 24px;
  position: relative;
  border-bottom: 1px dashed var(--paper-line);
}
.offer__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 14px;
  height: 1px;
  background: var(--teal);
}

.offer__rate {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.offer__rate-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t-mid);
}
.offer__rate-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--t-hi);
}
.offer__rate-pct {
  color: var(--teal);
  font-size: 0.6em;
  margin-left: 4px;
}
.offer__rate-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--t-mid);
  letter-spacing: 0.06em;
}

.offer .link-arrow { margin-top: auto; }

/* ============================================================
   STORY / TESTIMONIAL
   ============================================================ */
.story {
  padding: var(--section-py) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.story__container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 860px) {
  .story__container { grid-template-columns: 1fr; gap: 40px; }
}

.story__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  margin: 0;
}
.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.story__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(180deg, transparent 0%, rgba(20,24,26,0.85) 100%);
}

.story__quote {
  margin: 0;
  position: relative;
  padding-left: 60px;
}
.story__mark {
  position: absolute;
  top: -40px;
  left: 0;
  font-family: var(--serif);
  font-size: 200px;
  font-weight: 300;
  font-style: italic;
  color: var(--teal-bright);
  opacity: 0.6;
  line-height: 1;
}
.story__quote p {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0 0 32px;
}
.story__quote p em {
  color: var(--teal-bright);
  font-style: italic;
}
.story__quote footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid var(--teal);
}
.story__quote cite {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 19px;
  color: var(--paper);
}
.story__quote footer span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-3);
}

@media (max-width: 600px) {
  .story__quote { padding-left: 40px; }
  .story__mark { font-size: 140px; top: -28px; }
}

/* ============================================================
   TOOLS / CALCULATORS
   ============================================================ */
.tools {
  padding: var(--section-py) 0;
  background: var(--paper);
}

.tools__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.tools__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--t-mid);
  max-width: 50ch;
  margin: 0 0 8px auto;
}
@media (max-width: 860px) {
  .tools__head { grid-template-columns: 1fr; gap: 24px; }
  .tools__lede { margin-left: 0; }
}

.tools__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--paper-deep);
}
@media (max-width: 960px) { .tools__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tools__list { grid-template-columns: 1fr; } }

.tools__list li { border-bottom: 1px solid var(--paper-deep); border-right: 1px solid var(--paper-deep); }
.tools__list li:nth-child(3n) { border-right: none; }
@media (max-width: 960px) {
  .tools__list li { border-right: 1px solid var(--paper-deep); }
  .tools__list li:nth-child(3n) { border-right: 1px solid var(--paper-deep); }
  .tools__list li:nth-child(2n) { border-right: none; }
}
@media (max-width: 600px) {
  .tools__list li { border-right: none; }
  .tools__list li:nth-child(2n), .tools__list li:nth-child(3n) { border-right: none; }
}

.tools__list li a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 32px 28px;
  transition: background 0.3s, padding 0.3s;
  height: 100%;
}
.tools__list li a:hover {
  background: var(--paper-2);
  padding-left: 36px;
}
.tools__list li a:hover .tools__num { color: var(--teal); }
.tools__list li a:hover svg { transform: translateX(4px); color: var(--teal); }

.tools__num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--t-low);
  transition: color 0.3s;
}

.tools__list li h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--t-hi);
  grid-column: 2;
}
.tools__list li p {
  font-size: 15px;
  color: var(--t-mid);
  margin: 0;
  grid-column: 2;
  line-height: 1.5;
}

.tools__list svg {
  color: var(--t-low);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}

/* ============================================================
   BCTCares (Community)
   ============================================================ */
.cares {
  padding: var(--section-py) 0;
  background: var(--forest-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cares::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(91,181,188,0.18) 0%, transparent 50%);
}

.cares__container {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 960px) {
  .cares__container { grid-template-columns: 1fr; gap: 40px; }
}

.cares__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: rgba(245,239,226,0.85);
  max-width: 50ch;
  margin: 0 0 36px;
}

.cares__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid rgba(245,239,226,0.2);
  border-bottom: 1px solid rgba(245,239,226,0.2);
  margin-bottom: 36px;
}
.cares__stat-num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gold-soft);
  margin-bottom: 8px;
}
.cares__stat-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.78);
  line-height: 1.45;
  display: block;
}

.cares__media {
  aspect-ratio: 5 / 6;
  border-radius: 4px;
  overflow: hidden;
}
.cares__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

/* ============================================================
   LOCATIONS
   ============================================================ */
.locations {
  padding: var(--section-py) 0;
  background: var(--paper);
}

.locations__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.locations__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: var(--t-mid);
  max-width: 48ch;
  margin: 0 0 8px auto;
}
@media (max-width: 860px) {
  .locations__head { grid-template-columns: 1fr; gap: 24px; }
  .locations__lede { margin-left: 0; }
}

.locations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--paper-deep);
  border-left: 1px solid var(--paper-deep);
}
@media (max-width: 860px) { .locations__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .locations__grid { grid-template-columns: 1fr; } }

.loc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 36px 32px;
  border-bottom: 1px solid var(--paper-deep);
  border-right: 1px solid var(--paper-deep);
  transition: background 0.3s, padding 0.3s;
}
.loc:hover {
  background: var(--paper-2);
  padding-left: 40px;
}
.loc__region {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}
.loc h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--t-hi);
}
.loc__addr {
  font-size: 14px;
  color: var(--t-mid);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.loc--cta {
  background: var(--ink);
  color: var(--paper);
}
.loc--cta .loc__region { color: var(--gold-soft); }
.loc--cta h4 { color: var(--paper); }
.loc--cta .loc__addr { color: var(--paper-3); }
.loc--cta:hover { background: var(--ink-2); }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--paper-2);
  text-align: center;
  border-top: 1px solid var(--paper-deep);
  border-bottom: 1px solid var(--paper-deep);
}
.cta-strip__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-strip__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--t-hi);
}
.cta-strip__title em {
  font-style: italic;
  color: var(--teal);
  font-weight: 400;
}
.cta-strip__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--t-mid);
  max-width: 56ch;
  margin: 0;
}
.cta-strip__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper-3);
  padding: clamp(60px, 8vw, 100px) 0 28px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,239,226,0.15);
}
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr; gap: 40px; } }

.footer__logo {
  height: 60px;
  width: auto;
  filter: brightness(1.05);
  margin-bottom: 24px;
}
.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
  margin: 0 0 32px;
}

.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245,239,226,0.2);
  color: var(--paper-3);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.footer__social a:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
  background: rgba(91,181,188,0.08);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .footer__cols { grid-template-columns: 1fr 1fr; } }

.footer__col h5 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal-bright);
  margin: 0 0 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a {
  font-size: 15px;
  color: var(--paper-3);
  transition: color 0.25s;
}
.footer__col a:hover { color: var(--paper); }

.footer__legal {
  padding: 32px 0;
  border-bottom: 1px solid rgba(245,239,226,0.15);
}
.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.footer__legal-links a {
  font-size: 13px;
  color: rgba(245,239,226,0.7);
  transition: color 0.25s;
}
.footer__legal-links a:hover { color: var(--paper); }

.footer__compliance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(245,239,226,0.6);
}
.footer__compliance-divider { color: rgba(245,239,226,0.25); }

.footer__base {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(245,239,226,0.55);
}
.footer__base p { margin: 0; }
.footer__demo a {
  color: var(--teal-bright);
  border-bottom: 1px solid rgba(91,181,188,0.4);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}
.footer__demo a:hover {
  color: var(--paper);
  border-color: var(--paper);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__title, .hero__lede, .hero__actions, .hero__stats { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   PASSWORD GATE
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.gate.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.gate__card {
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.gate__logo {
  height: 72px;
  width: auto;
  margin: 0 auto 40px;
  filter: brightness(1.05);
}

.gate__label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,239,226,0.6);
  margin: 0 0 24px;
}

.gate__form {
  display: flex;
  gap: 0;
  border: 1px solid rgba(245,239,226,0.2);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.gate__form:focus-within {
  border-color: var(--teal-bright);
}

.gate__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--paper);
  letter-spacing: 0.08em;
}
.gate__input::placeholder {
  color: rgba(245,239,226,0.35);
}

.gate__btn {
  background: var(--teal);
  color: var(--paper);
  border: none;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
.gate__btn:hover {
  background: var(--teal-deep);
}

.gate__error {
  font-family: var(--sans);
  font-size: 14px;
  color: #E24B4A;
  margin: 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}
.gate__error.is-visible {
  opacity: 1;
}

.gate__note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245,239,226,0.3);
  margin: 40px 0 0;
}

/* ----- Selection ----- */
::selection {
  background: var(--teal);
  color: var(--paper);
}
