/* ============================================
   COLEMAN & CO. — GLOBAL STYLES
   Design System: Dark luxury + biotech sophistication
   Fonts: Marcellus (headings) + DM Sans (body/UI) + Sagetsock (founder signature)
   Background: #090d18
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #090d18;
  --bg-card: rgba(12, 18, 30, 0.85);
  --bg-glass: rgba(15, 22, 38, 0.55);

  --teal: #5a9e90;
  --teal-dim: rgba(80, 160, 145, 0.6);
  --teal-glow: rgba(80, 160, 145, 0.12);
  --teal-border: rgba(80, 160, 145, 0.2);
  --teal-border-hover: rgba(80, 160, 145, 0.45);

  --amber: #b8983f;
  --amber-dim: rgba(184, 152, 63, 0.6);
  --amber-glow: rgba(184, 152, 63, 0.12);
  --amber-border: rgba(184, 152, 63, 0.25);
  --amber-border-hover: rgba(184, 152, 63, 0.5);

  --text-primary: #e8f0ef;
  --text-secondary: rgba(232, 240, 239, 0.55);
  --text-hint: rgba(232, 240, 239, 0.3);

  --font-heading: 'Marcellus', serif;
  --font-body: 'DM Sans', sans-serif;
  /*
   * Hero “Coleman” / “Co.” logotype (ampersand stays Italiana — .hero-title .amp).
   * Default: Cormorant Garamond. Swap --font-hero-logotype + load font in index.html.
   */
  --font-hero-logotype: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Founder name in welcome letter — DB-Free Sagetsock (self-hosted, see @font-face below) */
  --font-signature: 'Sagetsock', 'Segoe Script', 'Brush Script MT', cursive;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  --transition: 0.3s ease;

  /* Organic linen weave texture for pill buttons */
  --linen:
    repeating-linear-gradient(
      0deg,
      rgba(139, 119, 86, 0.09) 0px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(139, 119, 86, 0.09) 0px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(101, 85, 60, 0.07) 0px,
      transparent 1px,
      transparent 5px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(101, 85, 60, 0.07) 0px,
      transparent 1px,
      transparent 5px
    );
}

@font-face {
  font-family: 'Sagetsock';
  src:
    url('../fonts/sagetsock/Sagetsock.woff') format('woff'),
    url('../fonts/sagetsock/Sagetsock.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sagetsock';
  src:
    url('../fonts/sagetsock/Sagetsock%20Italic.woff') format('woff'),
    url('../fonts/sagetsock/Sagetsock%20Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 1;
}

/* Edge fades — keep tree crown and roots visible; fade only near viewport edges */
.hero-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(to top, var(--bg) 0%, rgba(9, 13, 24, 0.55) 35%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-fade-left {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100px;
  background: linear-gradient(to right, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}

.hero-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100px;
  background: linear-gradient(to left, var(--bg), transparent);
  z-index: 2;
  pointer-events: none;
}

/* --- Hero Top Bar --- */
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 32px;
}

.hero-topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.btn-intake-under-login {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232, 240, 239, 0.92);
  padding: 9px 20px;
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-pill);
  background: rgba(15, 22, 38, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  transition: all var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-intake-under-login:hover {
  border-color: var(--teal-border-hover);
  color: var(--text-primary);
  background: rgba(80, 160, 145, 0.12);
  box-shadow: 0 0 24px rgba(80, 160, 145, 0.15);
}

/* --- Menu Button (Helix Waves) --- */
.menu-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
}

.menu-btn:hover {
  border-color: var(--teal-border-hover);
  background: rgba(80, 160, 145, 0.08);
}

.menu-btn svg {
  width: 24px;
  height: 24px;
}

/* --- Floating Nav Card --- */
.nav-card {
  position: absolute;
  top: 80px;
  left: 32px;
  z-index: 20;
  background: rgba(10, 16, 28, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}

.nav-card.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-card a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  background: var(--linen);
  transition: all var(--transition);
}

.nav-card a:hover {
  color: var(--teal);
  background:
    var(--linen),
    var(--teal-glow);
}

/* ============================================
   LUXURY BUTTONS — teal / amber metallic + matte
   (Reference: branded CC pill controls — depth, rim, gradient)
   Utilities: .btn-cc / .btn-cc-primary / .btn-cc-matte / .btn-cc-amber
   ============================================ */

.btn-cc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.5rem;
  transition:
    transform 0.14s ease,
    box-shadow 0.22s ease,
    filter 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn-cc:focus-visible {
  outline: 2px solid var(--teal-border-hover);
  outline-offset: 3px;
}

/* Metallic teal → gold (primary actions) */
.btn-cc-primary {
  color: #f2faf8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    linear-gradient(
      105deg,
      #062e2c 0%,
      #0d4a42 18%,
      #1f6b5c 38%,
      #3d7d6a 52%,
      #5a6e4a 68%,
      #8a7638 82%,
      #b8983f 92%,
      #c9a84a 100%
    );
  border: 2px solid rgba(212, 185, 110, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -3px 12px rgba(0, 0, 0, 0.4) inset,
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(5, 10, 18, 0.9),
    0 0 32px rgba(90, 158, 144, 0.12);
}

.btn-cc-primary:hover {
  filter: brightness(1.07) saturate(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -3px 10px rgba(0, 0, 0, 0.35) inset,
    0 12px 36px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(5, 10, 18, 0.9),
    0 0 40px rgba(90, 158, 144, 0.22),
    0 0 56px rgba(184, 152, 63, 0.1);
}

.btn-cc-primary:active {
  transform: translateY(2px);
  filter: brightness(0.94);
}

/* Warm gold-dominant metallic */
.btn-cc-amber {
  color: #1a1510;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%),
    linear-gradient(
      115deg,
      #6a5228 0%,
      #8a6a30 25%,
      #b8983f 50%,
      #c9a84a 72%,
      #a8843a 100%
    );
  border: 2px solid rgba(45, 38, 22, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 -3px 10px rgba(0, 0, 0, 0.35) inset,
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(20, 16, 10, 0.6);
}

.btn-cc-amber:hover {
  filter: brightness(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -3px 8px rgba(0, 0, 0, 0.3) inset,
    0 10px 32px rgba(0, 0, 0, 0.55),
    0 0 36px rgba(184, 152, 63, 0.25);
}

.btn-cc-amber:active {
  transform: translateY(2px);
}

/* Matte black + white type (LOGIN / secondary bar actions) */
.btn-cc-matte {
  color: #e8f0ef;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  background: linear-gradient(180deg, #1e2533 0%, #12161f 42%, #0a0d14 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 6px 22px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.65);
}

.btn-cc-matte:hover {
  border-color: rgba(90, 158, 144, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 8px 28px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(90, 158, 144, 0.12);
  color: #fff;
}

.btn-cc-matte:active {
  transform: translateY(1px);
}

/* --- Member Login Button (matte luxury) --- */
.btn-login {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  color: #e8f0ef;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  background: linear-gradient(180deg, #1e2533 0%, #12161f 42%, #0a0d14 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 6px 22px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.65);
}

.btn-login:hover {
  border-color: rgba(90, 158, 144, 0.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 8px 28px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(90, 158, 144, 0.14);
  color: #fff;
}

.btn-login:active {
  transform: translateY(1px);
}

.btn-login:focus-visible {
  outline: 2px solid var(--teal-border-hover);
  outline-offset: 3px;
}

/* Hero only — golden amber Member Login (public home) */
.hero-topbar .btn-login {
  color: #f6ead0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 38%),
    linear-gradient(
      105deg,
      #3d2f14 0%,
      #5c4518 14%,
      #8a6a28 32%,
      #b8983f 52%,
      #c9a84a 68%,
      #a88432 86%,
      #6b5220 100%
    );
  border: 2px solid rgba(212, 185, 110, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -2px 10px rgba(0, 0, 0, 0.35) inset,
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(20, 14, 6, 0.85),
    0 0 36px rgba(184, 152, 63, 0.35);
}

.hero-topbar .btn-login:hover {
  color: #fffdf8;
  border-color: rgba(232, 201, 128, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 -2px 8px rgba(0, 0, 0, 0.3) inset,
    0 10px 36px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(20, 14, 6, 0.9),
    0 0 48px rgba(232, 201, 128, 0.28);
}

.hero-topbar .btn-login:focus-visible {
  outline: 2px solid rgba(232, 201, 128, 0.75);
  outline-offset: 3px;
}

/* Intake — same footprint as Member Login, teal (distinct from gold login) */
.hero-topbar .btn-login,
.hero-topbar .btn-intake-under-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 158px;
}

.hero-topbar .btn-intake-under-login {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  color: #e8faf6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 38%),
    linear-gradient(
      105deg,
      #062a26 0%,
      #0c3d36 14%,
      #135a4e 32%,
      #1f7a6a 52%,
      #2a8f7c 68%,
      #1a6b5e 86%,
      #0c3a32 100%
    );
  border: 2px solid rgba(90, 158, 144, 0.78);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -2px 10px rgba(0, 0, 0, 0.35) inset,
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(6, 24, 22, 0.85),
    0 0 36px rgba(80, 160, 145, 0.32);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-topbar .btn-intake-under-login:hover {
  color: #f5fffc;
  border-color: rgba(120, 200, 185, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, transparent 36%),
    linear-gradient(
      105deg,
      #07322c 0%,
      #0e4a42 14%,
      #186858 32%,
      #249078 52%,
      #2fa08a 68%,
      #1f7568 86%,
      #0e423a 100%
    );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.26) inset,
    0 -2px 8px rgba(0, 0, 0, 0.3) inset,
    0 10px 36px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(6, 24, 22, 0.9),
    0 0 48px rgba(90, 158, 144, 0.38);
}

.hero-topbar .btn-intake-under-login:active {
  transform: translateY(1px);
}

.hero-topbar .btn-intake-under-login:focus-visible {
  outline: 2px solid rgba(90, 158, 144, 0.85);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn-cc-primary:active,
  .btn-cc-amber:active,
  .btn-cc-matte:active,
  .btn-login:active,
  .hero-topbar .btn-intake-under-login:active,
  .intake-quick-btn:active {
    transform: none;
  }
}

/* --- Hero Title --- */
.hero-title-wrap {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 1),
    0 0 24px rgba(0, 0, 0, 0.9),
    0 0 48px rgba(0, 0, 0, 0.7),
    0 2px 4px rgba(0, 0, 0, 1),
    0 0 80px rgba(184, 152, 63, 0.15);
}

.hero-title .title-name {
  font-family: var(--font-hero-logotype);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums;
}

.hero-title .amp {
  font-family: 'Italiana', serif;
  color: #ffffff;
  font-weight: 400;
  font-style: normal;
}

.hero-subtitle-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.hero-subtitle-line {
  flex: 0 0 80px;
  height: 2px;
  pointer-events: none;
}

.hero-subtitle-line--left {
  background: linear-gradient(to right, transparent, rgba(184, 152, 63, 0.75));
}

.hero-subtitle-line--right {
  background: linear-gradient(to left, transparent, rgba(184, 152, 63, 0.75));
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 700;
  color: rgba(232, 240, 239, 0.9);
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 1),
    0 0 24px rgba(0, 0, 0, 0.9),
    0 0 48px rgba(0, 0, 0, 0.7),
    0 2px 4px rgba(0, 0, 0, 1);
}

/* --- Quick Access Intake Button (metallic teal → gold) --- */
.intake-quick-btn {
  position: absolute;
  z-index: 5;
  right: 32px;
  bottom: 12%;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  color: #f2faf8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    linear-gradient(
      105deg,
      #062e2c 0%,
      #0d4a42 18%,
      #1f6b5c 38%,
      #3d7d6a 52%,
      #5a6e4a 68%,
      #8a7638 82%,
      #b8983f 92%,
      #c9a84a 100%
    );
  border: 2px solid rgba(212, 185, 110, 0.55);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 -3px 12px rgba(0, 0, 0, 0.4) inset,
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(5, 10, 18, 0.9),
    0 0 32px rgba(90, 158, 144, 0.12);
  cursor: pointer;
  transition:
    transform 0.14s ease,
    box-shadow 0.22s ease,
    filter 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.intake-quick-btn:hover {
  filter: brightness(1.07) saturate(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 -3px 10px rgba(0, 0, 0, 0.35) inset,
    0 12px 36px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(5, 10, 18, 0.9),
    0 0 40px rgba(90, 158, 144, 0.22),
    0 0 56px rgba(184, 152, 63, 0.1);
  color: #fff;
}

.intake-quick-btn:active {
  transform: translateY(2px);
  filter: brightness(0.94);
}

.intake-quick-btn:focus-visible {
  outline: 2px solid var(--teal-border-hover);
  outline-offset: 3px;
}

/* ============================================
   SECTION SHARED
   ============================================ */
.watermark-wrap {
  position: relative;
}

.watermark-wrap::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background: url('../images/monogram.svg') center / contain no-repeat;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}

.section {
  position: relative;
  padding: 100px 8%;
  z-index: 1;
}

.section-divider {
  position: relative;
  z-index: 1;
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--teal-border),
    transparent
  );
  margin: 0 8%;
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-section {
  padding: 120px 8%;
}

.welcome-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 72px;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
}

.founder-photo-wrap {
  position: relative;
  padding: 28px;
}

.founder-photo {
  width: 100%;
  border-radius: 0;
  border: 1px solid rgba(184, 152, 63, 0.3);
  object-fit: cover;
  object-position: center 24%;
  aspect-ratio: 3 / 4;
  position: relative;
}

/* Inner inset border */
.founder-photo-wrap::after {
  content: '';
  position: absolute;
  top: 34px;
  left: 34px;
  right: 34px;
  bottom: 34px;
  border: 1px solid rgba(184, 152, 63, 0.15);
  pointer-events: none;
  z-index: 2;
}

/* Corner brackets */
.founder-photo-wrap .corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 3;
}

.founder-photo-wrap .corner--tl {
  top: 16px;
  left: 16px;
  border-top: 2px solid rgba(184, 152, 63, 0.6);
  border-left: 2px solid rgba(184, 152, 63, 0.6);
}

.founder-photo-wrap .corner--tr {
  top: 16px;
  right: 16px;
  border-top: 2px solid rgba(184, 152, 63, 0.6);
  border-right: 2px solid rgba(184, 152, 63, 0.6);
}

.founder-photo-wrap .corner--bl {
  bottom: 16px;
  left: 16px;
  border-bottom: 2px solid rgba(184, 152, 63, 0.6);
  border-left: 2px solid rgba(184, 152, 63, 0.6);
}

.founder-photo-wrap .corner--br {
  bottom: 16px;
  right: 16px;
  border-bottom: 2px solid rgba(184, 152, 63, 0.6);
  border-right: 2px solid rgba(184, 152, 63, 0.6);
}

.founder-photo-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--amber-glow), transparent 70%);
  z-index: -1;
}

.welcome-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.5vw, 44px);
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: 1px;
}

.welcome-heading-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, rgba(184, 152, 63, 0.7), transparent);
  margin-bottom: 32px;
}

.welcome-quote {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: var(--amber);
  margin-bottom: 36px;
  padding-left: 24px;
  border-left: 2px solid var(--amber-border);
  line-height: 1.9;
  letter-spacing: 0.3px;
}

.welcome-bio {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 24px;
}

.welcome-bio em {
  color: var(--text-primary);
  font-style: italic;
}

.founder-sig {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--amber-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.founder-sig-script {
  font-family: var(--font-signature);
  font-size: clamp(36px, 4.8vw, 54px);
  font-weight: 400;
  font-style: normal;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.founder-sig-role {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.founder-sig-loc,
.founder-sig-est {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.founder-sig-est {
  margin-top: 2px;
}

/* ============================================
   BLOG PREVIEW SECTION
   ============================================ */
.blog-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.blog-section-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--teal-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.blog-card:hover {
  border-color: var(--teal-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.blog-card:focus-visible {
  outline: 2px solid var(--teal-border-hover);
  outline-offset: 3px;
}

.blog-card-date {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--teal-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.blog-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px 8% 32px;
  text-align: center;
  border-top: 1px solid var(--teal-border);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--teal-border);
  background: rgba(8, 14, 22, 0.8);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--teal-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(80, 160, 145, 0.1);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--teal);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-hint);
  letter-spacing: 0.5px;
}

.footer-email {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-email:hover {
  color: var(--teal);
}

/* ============================================
   LOGIN MODAL — art banner + glass body (no woven linen)
   ============================================ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.login-overlay.open {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 20px;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(14, 22, 38, 0.98), rgba(8, 12, 22, 0.99));
  border: 1px solid rgba(80, 160, 145, 0.28);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 234, 255, 0.06),
    0 0 60px rgba(15, 181, 160, 0.08);
  transform: translateY(16px);
  transition: transform 0.35s ease;
}

.login-overlay.open .login-modal {
  transform: translateY(0);
}

.login-modal-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  height: 132px;
  flex-shrink: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(80, 160, 145, 0.22);
}

.login-modal-banner-textplate {
  grid-column: 1;
  grid-row: 1;
  z-index: 0;
  min-width: 0;
  background: linear-gradient(168deg, #0d1520 0%, #0a1018 48%, #080e16 100%);
  box-shadow: inset 0 -1px 0 rgba(15, 181, 160, 0.06);
}

.login-modal-banner-art {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 0;
  min-width: 0;
  overflow: hidden;
  background: #060a10;
}

.login-modal-banner--fallback .login-modal-banner-img {
  display: none;
}

.login-modal-banner--fallback .login-modal-banner-art {
  background:
    radial-gradient(ellipse 95% 110% at 78% 42%, rgba(32, 120, 112, 0.65) 0%, rgba(18, 62, 68, 0.4) 42%, transparent 68%),
    radial-gradient(ellipse 70% 90% at 92% 58%, rgba(220, 165, 72, 0.35) 0%, rgba(120, 80, 30, 0.12) 48%, transparent 62%),
    linear-gradient(125deg, #0a1620 0%, #0c2030 40%, #142a32 100%);
}

.login-modal-banner-img {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  object-fit: cover;
  /* Wide banners usually carry the motif on the left; this column is the right half — anchor the left of the asset here */
  object-position: left 42%;
  filter: brightness(1.14) saturate(1.58) contrast(1.1);
}

.login-modal-banner-art-edge {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 12, 20, 0.97) 0%,
    rgba(8, 14, 22, 0.45) 18%,
    transparent 42%
  );
}

.login-modal-banner-inner {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 14px 16px 22px;
  text-align: left;
}

.login-modal-eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(45, 212, 160, 0.88);
  margin: 0 0 6px;
  text-shadow: 0 0 20px rgba(15, 181, 160, 0.35);
}

.login-modal-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4.5vw, 28px);
  font-weight: 400;
  color: #f2f7f5;
  margin: 0;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-shadow:
    0 0 24px rgba(0, 0, 0, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.6);
}

.login-modal-body {
  padding: 32px 36px 38px;
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.4) 0%, rgba(8, 12, 22, 0.95) 100%);
}

.login-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 38px;
  height: 38px;
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(232, 240, 239, 0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-close:hover {
  color: #fff;
  border-color: rgba(232, 201, 128, 0.45);
  background: rgba(12, 20, 32, 0.75);
  box-shadow: 0 0 24px rgba(15, 181, 160, 0.2);
}

.login-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.login-heading-line {
  width: 44px;
  height: 2px;
  background: linear-gradient(to right, rgba(184, 152, 63, 0.85), rgba(15, 181, 160, 0.35), transparent);
  margin-bottom: 24px;
}

.login-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.login-field {
  margin-bottom: 18px;
}

.login-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: rgba(6, 10, 20, 0.75);
  border: 1px solid rgba(80, 160, 145, 0.28);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}

.login-field input::placeholder {
  color: var(--text-hint);
}

.login-field input:focus {
  border-color: var(--teal-border-hover);
  box-shadow: 0 0 0 2px rgba(80, 160, 145, 0.08);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.login-remember {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.login-remember input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--teal);
  cursor: pointer;
}

.login-forgot {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--teal);
}

.login-forgot:hover {
  color: var(--teal-border-hover);
}

.login-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: #c47a4e;
  min-height: 18px;
  margin-bottom: 8px;
}

.login-submit {
  width: 100%;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: #f8f2e4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    linear-gradient(
      105deg,
      #2a2210 0%,
      #5c4518 22%,
      #9a7828 42%,
      #b8983f 58%,
      #c9a84a 72%,
      #8a6a28 100%
    );
  border: 1px solid rgba(212, 185, 110, 0.55);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, filter 0.2s;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(184, 152, 63, 0.12);
}

.login-submit:hover {
  filter: brightness(1.06);
  border-color: rgba(232, 201, 128, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 10px 36px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(232, 201, 128, 0.18);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--teal-border);
}

.login-divider span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-switch {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.login-switch a {
  color: var(--teal);
  font-weight: 500;
}

.login-switch a:hover {
  color: var(--amber);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-topbar {
    padding: 16px 20px;
  }

  .intake-quick-btn {
    right: 20px;
    bottom: 10%;
    font-size: 12px;
    padding: 10px 24px;
  }

  .welcome-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .founder-photo-wrap {
    max-width: 240px;
    margin: 0 auto;
  }

  .welcome-heading-line {
    margin: 0 auto 32px;
  }

  .welcome-quote {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--amber-border);
    padding-top: 24px;
  }

  .founder-sig {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .section {
    padding: 70px 6%;
  }

  .nav-card {
    left: 20px;
    top: 72px;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .intake-quick-btn {
    right: 16px;
    bottom: 8%;
    font-size: 11px;
    padding: 8px 18px;
  }

  .btn-login {
    font-size: 11px;
    padding: 8px 16px;
  }

  .hero-topbar .btn-login,
  .hero-topbar .btn-intake-under-login {
    font-size: 11px;
    padding: 8px 16px;
    min-width: 132px;
  }
}

/* Member login — phones: stacked banner, larger type, safe-area (replaces prior cramped 560px login tweaks) */
@media (max-width: 560px) {
  .login-overlay {
    align-items: flex-start;
    justify-content: center;
    padding: max(10px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .login-modal {
    max-width: min(440px, 100%);
    width: 100%;
    margin: 0 auto 16px;
    border-radius: 16px;
    max-height: none;
  }

  .login-modal-banner {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(56px, 80px);
    height: auto;
    min-height: 0;
  }

  .login-modal-banner-textplate {
    grid-column: 1;
    grid-row: 1;
    min-height: 88px;
  }

  .login-modal-banner-art {
    grid-column: 1;
    grid-row: 2;
    min-height: 56px;
    max-height: 80px;
  }

  .login-modal-banner-inner {
    grid-column: 1;
    grid-row: 1;
    padding: 16px 18px 14px;
    justify-content: center;
  }

  .login-modal-banner-title {
    font-size: clamp(21px, 5.4vw, 26px);
    line-height: 1.2;
  }

  .login-modal-banner-img {
    object-position: center 34%;
  }

  .login-modal-body {
    padding: 22px 18px 28px;
  }

  .login-heading {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .login-desc {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 18px;
  }

  .login-field label {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .login-field input {
    padding: 14px 14px;
    font-size: 16px;
    min-height: 48px;
  }

  .login-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }

  .login-submit {
    min-height: 48px;
    padding: 14px 18px;
    font-size: 12px;
  }

  .login-switch {
    font-size: 15px;
    line-height: 1.45;
  }

  .login-close {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }
}
