/* ============================================================
   style.css — Astax Labs
   Full design system for the single-page site.
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Fonts */
  --ff-display: 'Cormorant Garamond', 'Georgia', serif;
  --ff-sans:    'Inter', 'Helvetica Neue', sans-serif;

  /* Dark mode palette (default) */
  --g1: #D0D0D0; --g2: #A8A8A8; --g3: #787878; --g4: #484848; --g5: #282828;
  --bg:       #0A0A0A;
  --bg2:      #111111;
  --bg3:      #1A1A1A;
  --card-bg:  rgba(255,255,255,0.04);
  --gold:     #FFFFFF;
  --gold-l:   #E8E8E8;
  --cream:    #F0F0F0;
  --muted:    #909090;
  --border:   rgba(255,255,255,0.10);
  --border-hi:rgba(255,255,255,0.28);
  --glow:     0 0 28px rgba(255,255,255,0.06), 0 0 70px rgba(255,255,255,0.02);
  --shadow:   0 4px 24px rgba(0,0,0,0.55), 0 1px 6px rgba(0,0,0,0.35);
  --shadow-lg:0 16px 56px rgba(0,0,0,0.75), 0 4px 18px rgba(0,0,0,0.45);
  --ease:     border-color .22s ease, box-shadow .22s ease, color .22s ease, background .22s ease, opacity .22s ease;
  --nav-h:    68px;
  --ease-out: cubic-bezier(.22,1,.36,1);
}

/* Light mode overrides */
:root[data-theme="light"] {
  --bg:       #FFFFFF;
  --bg2:      #F5F5F5;
  --bg3:      #EBEBEB;
  --card-bg:  rgba(0,0,0,0.03);
  --cream:    #0A0A0A;
  --muted:    #46464A;
  --gold:     #000000;
  --gold-l:   #222222;
  --g1: #3E3E42; --g2: #333336; --g3: #28282B; --g4: #1C1C1F; --g5: #0E0E10;
  --border:   rgba(0,0,0,0.10);
  --border-hi:rgba(0,0,0,0.28);
  --shadow:   0 4px 24px rgba(0,0,0,0.12), 0 1px 6px rgba(0,0,0,0.06);
  --shadow-lg:0 16px 56px rgba(0,0,0,0.12), 0 4px 18px rgba(0,0,0,0.08);
  --glow:     0 0 28px rgba(0,0,0,0.05), 0 0 70px rgba(0,0,0,0.02);
}

/* Light mode component overrides */
:root[data-theme="light"] .navbar.scrolled     { background: rgba(255,255,255,.96); }
:root[data-theme="light"] .mobile-menu         { background: rgba(255,255,255,.98); }
:root[data-theme="light"] .nav-link            { color: rgba(0,0,0,.80); }
:root[data-theme="light"] .nav-hamburger span  { background: var(--cream); }
:root[data-theme="light"] .social-float-btn    { background: rgba(0,0,0,0.05); color: var(--cream); }
:root[data-theme="light"] .hero-description    { color: rgba(0,0,0,0.84); }
:root[data-theme="light"] .hero-tagline        { color: rgba(0,0,0,0.55); text-shadow: none; }
:root[data-theme="light"] .hero-label          { color: rgba(0,0,0,0.45); text-shadow: none; }
:root[data-theme="light"] .hero-scroll         { color: rgba(0,0,0,0.35); }

/* Light mode — all gradient-text elements: strip background-clip so no black rectangle */
:root[data-theme="light"] .hero-title,
:root[data-theme="light"] .section-title,
:root[data-theme="light"] .nav-logo-text,
:root[data-theme="light"] .venture-name--gold,
:root[data-theme="light"] .venture-name--green,
:root[data-theme="light"] .footer-brand-name {
  background: none;
  -webkit-text-fill-color: #0A0A0A;
  color: #0A0A0A;
  filter: none;
}

:root[data-theme="light"] .stat-number {
  background: none;
  -webkit-text-fill-color: #0A0A0A;
  color: #0A0A0A;
}

:root[data-theme="light"] .atmo {
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(0,0,0,0.03) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 80%, rgba(0,0,0,0.02) 0%, transparent 60%);
}
:root[data-theme="light"] #lotusOverlay { background: rgba(255,255,255,0.96); }

/* Dark mode clarity boosts */
:root:not([data-theme="light"]) { --muted: #A8A8A8; }
:root:not([data-theme="light"]) body { font-weight: 475; }
:root:not([data-theme="light"]) .service-title,
:root:not([data-theme="light"]) .value-heading,
:root:not([data-theme="light"]) .contact-info-heading,
:root:not([data-theme="light"]) .ventures-structure-title { color: var(--gold-l); }
:root:not([data-theme="light"]) .footer-col ul li a,
:root:not([data-theme="light"]) .footer-brand-para { font-weight: 450; }

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

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

/* ============================================================
   3. SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }

/* ============================================================
   4. ANIMATIONS / KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes leaf3d {
  0%   { transform: rotateY(0deg) rotateX(0deg); }
  25%  { transform: rotateY(180deg) rotateX(12deg); }
  50%  { transform: rotateY(360deg) rotateX(0deg); }
  75%  { transform: rotateY(540deg) rotateX(-12deg); }
  100% { transform: rotateY(720deg) rotateX(0deg); }
}
@keyframes dragonFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes pd {
  0%,100% { transform: scale(1);   opacity: .9; }
  50%     { transform: scale(1.5); opacity: .4; }
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   5. LOTUS OVERLAY  (formation intro animation canvas)
   ============================================================ */
#lotusOverlay {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none; transition: opacity 1.4s ease;
}
#lotusCanvas { display: block; width: 100%; height: 100%; }

/* ============================================================
   6. DRAGON CORNER BUTTON
   ============================================================ */
.dragon-corner {
  display: none; opacity: 0;
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--card-bg); border: 1.5px solid var(--border-hi);
  box-shadow: var(--shadow-lg), 0 0 18px rgba(180,180,180,0.18);
  cursor: pointer;
  animation: dragonFloat 3s ease-in-out infinite;
  transition: opacity 0.6s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.dragon-corner.visible { display: flex; opacity: 1; }
.dragon-corner:hover { box-shadow: var(--shadow-lg), 0 0 32px rgba(180,180,180,0.34); }

.dragon-corner-icon { font-size: 26px; line-height: 1; user-select: none; }

.dragon-corner-bubble {
  position: absolute; bottom: calc(100% + 10px); right: 0;
  background: var(--card-bg); border: 1.5px solid var(--border-hi);
  border-radius: 10px; padding: 6px 14px;
  font-family: var(--ff-display); font-size: .78rem; font-weight: 600;
  color: var(--gold); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dragon-corner-bubble::after {
  content: ''; position: absolute; top: 100%; right: 18px;
  border: 6px solid transparent; border-top-color: var(--border-hi);
}
.dragon-corner:hover .dragon-corner-bubble { opacity: 1; transform: translateY(0); }

/* ============================================================
   7. ATMOSPHERE BACKGROUND
   ============================================================ */
.atmo {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 90% 80%, rgba(255,255,255,0.04) 0%, transparent 60%);
}

/* ============================================================
   8. THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  position: fixed; bottom: 100px; right: 28px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--card-bg); border: 1.5px solid var(--border-hi);
  box-shadow: var(--shadow); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1; color: var(--cream);
  transition: box-shadow .22s ease, transform .22s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.theme-toggle:hover {
  box-shadow: var(--shadow-lg), 0 0 18px rgba(255,255,255,0.26);
  transform: scale(1.08);
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 13px 30px; border-radius: 8px;
  cursor: pointer; transition: var(--ease);
  text-decoration: none; border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--cream); color: var(--bg);
  border-color: var(--cream);
}
.btn-primary:hover {
  background: var(--g1); color: var(--bg); border-color: var(--g1);
}

.btn-outline {
  background: transparent; color: var(--cream);
  border-color: var(--border-hi);
}
.btn-outline:hover {
  border-color: var(--cream); background: rgba(255,255,255,0.06);
}

.btn--sm  { padding: 9px 20px; font-size: .65rem; }
.btn--full { width: 100%; justify-content: center; }
.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: rgba(255,255,255,0.07); }

/* ============================================================
   10. PANELS / CARDS
   ============================================================ */
.panel {
  position: relative; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 14px;
  transition: var(--ease);
}
.panel:hover { border-color: var(--border-hi); }

.panel-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 14px 14px 0 0;
}
.panel-accent--gold  { background: linear-gradient(90deg, var(--gold-l), var(--gold)); }
.panel-accent--green { background: linear-gradient(90deg, var(--g2), var(--g4)); }
.panel-accent--dim   { background: var(--bg3); }
.panel-accent--mono  { background: linear-gradient(90deg, var(--gold-l), var(--gold)); }
/* Home page service card accent colours */
.panel-accent--jade  { background: linear-gradient(90deg, var(--g3), var(--g1)); }
.panel-accent--sage  { background: linear-gradient(90deg, var(--g4), var(--g2)); }
.panel-accent--mint  { background: linear-gradient(90deg, var(--g2), var(--g3)); }

.panel-body { padding: 34px 30px 32px; }
.panel-body--center { text-align: center; padding: 52px 40px; }
.panel-body--vcta   { text-align: center; padding: 40px; }
.panel-body--cs     { position: relative; z-index: 1; }

.panel-corner {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--border-hi); border-style: solid;
}
.panel-corner.tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-radius: 14px 0 0 0; }
.panel-corner.tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; border-radius: 0 14px 0 0; }
.panel-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; border-radius: 0 0 0 14px; }
.panel-corner.br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-radius: 0 0 14px 0; }

.panel--cta  { border-radius: 18px; }
.panel--cta-foot { margin-top: 46px; border-radius: 16px; }
.panel--dim  { opacity: .75; }

/* Diagonal hatch — used on coming-soon card */
.cs-hatch {
  position: absolute; inset: 0; z-index: 0; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.02) 0,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 10px
  );
}

/* Coming-soon card states */
.venture-badge--soon { background: var(--bg3); color: var(--muted); border-color: var(--border); }
.venture-icon--cs    { opacity: .35; filter: grayscale(1); }
.venture-name--cs    { color: var(--muted); opacity: .6; }
.venture-desc--cs    { opacity: .45; }
.venture-features--cs { opacity: .25; }
.cs-coming-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-size: .62rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px; padding: 8px 18px;
  margin-top: 4px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); animation: pd 2s ease-in-out infinite;
}

/* ============================================================
   11. NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h); display: flex; align-items: center;
  padding: 0 48px; gap: 32px;
  transition: background .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: rgba(10,10,10,.96);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex; align-items: center; gap: 11px; flex-shrink: 0; cursor: pointer;
}
.nav-logo-leaf-wrap { width: 28px; height: 28px; perspective: 200px; flex-shrink: 0; }
.nav-logo-leaf      { width: 28px; height: 28px; animation: leaf3d 2.5s linear infinite; }

.nav-logo-text {
  font-family: var(--ff-display); font-size: .98rem; font-weight: 600; letter-spacing: .12em;
  background: linear-gradient(135deg, var(--gold-l), var(--gold), var(--g4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-links { display: flex; gap: 2px; margin: 0 auto; }

.nav-link {
  font-family: var(--ff-display); font-size: .65rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); padding: 12px 17px; cursor: pointer;
  position: relative; transition: color .22s ease;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 6px; left: 17px;
  width: 0; height: 1px; background: var(--cream);
  transition: width .3s var(--ease-out);
}
.nav-link:hover,
.nav-link.active        { color: var(--cream); }
.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 34px); }

.nav-socials { display: flex; gap: 6px; }
.nav-soc {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .82rem;
  transition: color .22s ease;
}
.nav-soc:hover { color: var(--cream); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; background: none; border: none; cursor: pointer;
  margin-left: auto; /* pushes button to far right when nav-links/socials are hidden */
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   12. MOBILE MENU
   ============================================================ */
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 18px 28px 24px; flex-direction: column;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.mobile-menu.open { display: flex; }

.mobile-menu .nav-link {
  padding: 12px 0 12px 0;
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: var(--ease);
}
.mobile-menu .nav-link.active::after { display: none; }
.mobile-menu .nav-link.active {
  color: var(--cream);
  border-left-color: var(--gold);
  padding-left: 14px;
  font-weight: 600;
  letter-spacing: .16em;
}

/*
  Mobile "Our Ventures" collapsible group
  .mob-group          → container; NavModule toggles .open on chevron click
  .mob-group-hd       → header row (label text + chevron)
  .mob-caret          → chevron icon; rotates 180° when .mob-group.open
  .mob-group-items    → collapsible sub-list; max-height animates 0 → 200px
  .mob-sub            → indented sub-item with left-border accent
*/
.mob-group { border-bottom: 1px solid var(--border); }

.mob-group-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 0; cursor: pointer;
}
/* The "Our Ventures" nav-link inside the group header has no bottom border of its own */
.mob-group-hd .nav-link {
  border-bottom: none; padding: 12px 0; flex: 1;
}
/* Caret icon — rotates on open */
.mob-caret {
  font-size: .55rem; color: var(--muted);
  padding: 10px 4px 10px 12px; /* larger tap target */
  transition: transform .22s ease, color .22s ease;
}
.mob-group.open .mob-caret { transform: rotate(180deg); color: var(--cream); }

/* Collapsible sub-list — max-height transition creates the slide-down effect */
.mob-group-items {
  overflow: hidden; max-height: 0;
  transition: max-height .3s ease;
}
.mob-group.open .mob-group-items { max-height: 200px; }

/* Sub-items — indented, smaller, with left accent bar */
.mobile-menu .nav-link.mob-sub {
  padding: 10px 0 10px 20px;
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.04);
  border-left: 2px solid var(--border);
}
.mobile-menu .nav-link.mob-sub:hover,
.mobile-menu .nav-link.mob-sub.active {
  color: var(--cream);
  border-left-color: var(--gold);
  padding-left: 28px;
}
.mobile-menu .nav-link.mob-sub:last-child { border-bottom: none; margin-bottom: 12px; }
.mobile-menu .nav-link.mob-sub i { margin-right: 7px; font-size: .72rem; }

.mob-socials { display: flex; gap: 8px; margin-top: 14px; padding-top: 12px; }

/* ============================================================
   13. FLOATING SOCIAL SIDEBAR
   ============================================================ */
.social-float {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 100; display: flex; flex-direction: column; gap: 6px;
  padding-right: 14px;
}
.social-float-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-bg); border: 1px solid var(--border);
  color: var(--muted); font-size: .82rem;
  transition: var(--ease);
}
.social-float-btn:hover { border-color: var(--border-hi); color: var(--cream); }

/* ============================================================
   14. PAGES (SPA wrappers)
   ============================================================ */
.page { display: none; position: relative; z-index: 1; }
.page.active { display: block; }

/* Extra bottom breathing room before the footer */
.sec--deep-bottom { padding-bottom: 84px; }
.sec--flush-top   { padding-top: 0; }
.sec--slim-top    { padding-top: 28px; }

.sec {
  max-width: 1160px; margin: 0 auto;
  padding: 64px 48px;
}

/* ============================================================
   15. HERO SECTION
   ============================================================ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  padding: 140px 48px 64px;
  overflow: hidden;
  text-align: center;
}

.hero-label {
  font-family: var(--ff-display); font-size: .58rem; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3.4rem, 10vw, 8rem);
  font-weight: 700; line-height: 1.02; letter-spacing: .01em;
  background: linear-gradient(135deg,
    #FFFFFF 0%,
    #FFFFFF 52%,
    #888888 78%,
    #282828 100%
  );
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px; animation: fadeUp .8s ease .4s both;
  filter: drop-shadow(0 2px 20px rgba(255,255,255,0.30));
}

.hero-tagline {
  font-family: var(--ff-display); font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 400; color: var(--muted); letter-spacing: .06em;
  margin-bottom: 20px; animation: fadeUp .8s ease .55s both;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.hero-description {
  font-family: var(--ff-sans); font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: var(--muted); line-height: 1.7; max-width: 520px;
  margin: 0 auto 32px; animation: fadeUp .8s ease .7s both;
}

/* .hero-actions is used in the HTML; .hero-cta kept as alias */
.hero-cta,
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .8s ease .85s both;
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-family: var(--ff-display); font-size: .52rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 40px; background: var(--border-hi);
}

.hero-ornament {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  opacity: .12; pointer-events: none; user-select: none;
  width: min(560px, 70%);
}

/* Both decorative canvases must be taken out of normal flow.
   #dragoncanvas is reserved/unused, and without this rule it falls back to the
   HTML default (display:inline, 300x150) and pushes #page-root — and therefore
   every page on the site — down by ~158px. */
canvas#leafcanvas,
canvas#dragoncanvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* ============================================================
   16. SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 40px;
}

.service-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px 24px;
  transition: var(--ease);
}
.service-card:hover { border-color: var(--border-hi); box-shadow: var(--shadow); }

.service-icon  { font-size: 1.6rem; margin-bottom: 14px; }
.service-title {
  font-family: var(--ff-display); font-size: 1rem; font-weight: 600;
  color: var(--cream); margin-bottom: 10px; letter-spacing: .04em;
}
.service-text  { font-family: var(--ff-sans); font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   17. STATS BAR
   ============================================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}

.stat-item {
  position: relative; padding: 28px 24px; text-align: center;
}
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--border);
}

.stat-number {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-l), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label {
  font-family: var(--ff-display); font-size: .52rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); margin-top: 5px;
}

/* ============================================================
   18. PAGE HERO  (inner pages — About / Ventures / Contact)
   ============================================================ */
.page-hero {
  display: flex; align-items: center;
  padding: 96px 48px 36px;
  text-align: center;
}
.page-hero-inner {
  max-width: 860px; width: 100%; margin: 0 auto;
}
.page-hero-inner .section-subtitle {
  margin-left: auto; margin-right: auto;
}

/* ============================================================
   19. SECTION HEADINGS & EYEBROWS
   ============================================================ */
.section-eyebrow {
  font-family: var(--ff-display); font-size: .56rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.section-eyebrow--center { text-align: center; }

.section-title {
  font-family: var(--ff-display); font-size: clamp(1.7rem,4vw,3rem); font-weight: 600;
  line-height: 1.15; letter-spacing: .02em;
  background: linear-gradient(140deg, var(--cream) 0%, var(--gold-l) 38%, var(--gold) 68%, var(--g3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}
.section-title--page   { font-size: clamp(1.9rem,5vw,3.6rem); }
.section-title--center { text-align: center; }

.section-subtitle {
  font-family: var(--ff-sans); font-size: clamp(.88rem,1.4vw,1rem);
  color: var(--muted); line-height: 1.75; max-width: 640px;
  margin-bottom: 8px;
}
.section-subtitle--center { text-align: center; margin: 0 auto 16px; }
.section-subtitle--cta    { max-width: 500px; margin: 0 auto 30px; text-align: center; }

/* Fade-in scroll animation */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   20. ABOUT PAGE
   ============================================================ */

/* Two-column grid — used for body text + sigil columns */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start; margin-top: 32px;
}

/* Body paragraphs */
.body-para {
  font-family: var(--ff-sans); font-size: .95rem;
  color: var(--muted); line-height: 1.8; margin-bottom: 18px;
}
.body-para strong { color: var(--cream); font-weight: 600; }

/* Decorative gold/green divider rule */
.divider {
  height: 1px; border: none; margin: 28px 0;
  background: linear-gradient(90deg, transparent, var(--border-hi) 25%, var(--border-hi) 75%, transparent);
}

/* Spinning botanical sigil */
.about-sigil-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 0;
}
.about-sigil {
  width: min(280px, 100%); height: auto;
  animation: slowSpin 90s linear infinite;
}

/* Legacy grid alias */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start; margin-top: 40px;
}
.about-values { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }

/* Values list — principles section */
.values-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }

/* Each value item: CJK numeral on left, heading + text on right */
.value-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 12px;
  transition: var(--ease);
}
.value-item:hover { border-color: var(--border-hi); }

/* CJK numeral decorator (一二三四) */
.value-number {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 700;
  color: var(--muted); flex-shrink: 0; min-width: 38px;
  line-height: 1.2; opacity: .55;
}

.value-icon    { font-size: 1.4rem; margin-bottom: 10px; }
.value-heading {
  font-family: var(--ff-display); font-size: .95rem; font-weight: 600;
  color: var(--cream); margin-bottom: 8px;
}
/* .value-para and .value-text are interchangeable */
.value-text,
.value-para { font-family: var(--ff-sans); font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  padding-bottom: 32px; padding-left: 28px; position: relative;
  border-left: 1px solid var(--border);
}
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before {
  content: ''; position: absolute; left: -5px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-hi); border: 2px solid var(--bg);
}
/* .timeline-year and .timeline-date are interchangeable */
.timeline-date,
.timeline-year {
  font-family: var(--ff-display); font-size: .56rem; letter-spacing: .2em;
  color: var(--gold); text-transform: uppercase; font-weight: 600; margin-bottom: 4px;
}
.timeline-title { font-family: var(--ff-display); font-size: 1rem; font-weight: 600; color: var(--cream); margin-bottom: 6px; }
/* .timeline-para and .timeline-text are interchangeable */
.timeline-text,
.timeline-para { font-family: var(--ff-sans); font-size: .85rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   21. VENTURES / OWNERSHIP PAGE
   ============================================================ */
.ventures-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 50px;
}

.venture-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-display); font-size: .52rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px; border: 1px solid;
  margin-bottom: 14px;
}
.venture-badge--live { color: var(--cream); border-color: var(--border-hi); }
.venture-badge--live .fa-circle { font-size: .4rem; color: #4ade80; }
.venture-badge--app  { color: var(--g2); border-color: var(--border); }
.venture-badge--app .fa-circle  { font-size: .4rem; color: var(--g2); }
.venture-badge--soon { color: var(--muted); border-color: var(--border); }
.venture-badge--soon .fa-circle { font-size: .4rem; color: var(--muted); }

.venture-icon {
  font-size: 2rem; display: block; margin-bottom: 12px;
}

.venture-name {
  font-family: var(--ff-display); font-size: 1.3rem; font-weight: 700;
  margin-bottom: 5px; line-height: 1.2;
}
.venture-name--gold  { background: linear-gradient(135deg,var(--gold-l),var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.venture-name--green { background: linear-gradient(135deg,var(--g1),var(--g4)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.venture-name--mono  { color: var(--cream); }
.venture-name--cs    { color: var(--muted); opacity: .6; }

.venture-tag {
  font-family: var(--ff-sans); font-size: .78rem; color: var(--muted);
  margin-bottom: 14px; font-style: italic;
}

.venture-desc { font-family: var(--ff-sans); font-size: .88rem; color: var(--muted); line-height: 1.68; margin-bottom: 18px; }

.venture-features {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px;
}
.venture-feature {
  font-family: var(--ff-sans); font-size: .84rem; color: var(--cream);
  display: flex; align-items: center;
}
.venture-feature--gold::before  { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 10px; flex-shrink: 0; }
.venture-feature--green::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--g3); margin-right: 10px; flex-shrink: 0; }
.venture-feature--mono::before  { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 10px; flex-shrink: 0; }
.venture-feature--cs { color: var(--muted); }

.ventures-structure-title {
  font-family: var(--ff-display); font-size: 1.4rem; font-weight: 600;
  color: var(--cream); margin: 10px 0 12px;
}
.ventures-structure-text {
  font-family: var(--ff-sans); font-size: .9rem; color: var(--muted); line-height: 1.7;
  max-width: 540px; margin: 0 auto;
}

/* ============================================================
   22. CONTACT PAGE
   ============================================================ */
.contact-split {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px;
  align-items: start;
}

.contact-info-heading {
  font-family: var(--ff-display); font-size: 1.35rem; font-weight: 600;
  color: var(--cream); margin-bottom: 10px;
}
.contact-info-heading--spaced { margin-top: 28px; }
.contact-info-para { font-family: var(--ff-sans); font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }

.contact-rows { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }
.contact-row  { display: flex; align-items: flex-start; gap: 14px; }
.contact-row-icon  { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contact-row-label { font-family: var(--ff-display); font-size: .54rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-row-value { font-family: var(--ff-sans); font-size: .9rem; color: var(--cream); margin-top: 2px; }

.social-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.contact-social {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--ff-sans); font-size: .84rem; color: var(--muted);
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  transition: var(--ease);
}
.contact-social:hover { border-color: var(--border-hi); color: var(--cream); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-family: var(--ff-display); font-size: .54rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold);
}
.form-input,
.form-select,
.form-textarea {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 9px;
  color: var(--cream); font-family: var(--ff-sans); font-size: .92rem; font-weight: 400;
  padding: 12px 15px; outline: none; transition: var(--ease); width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-hi); background: var(--bg2); box-shadow: 0 0 0 3px rgba(128,128,128,.12);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); opacity: 0.55; }
.form-select option { background: var(--bg2); color: var(--cream); }
.form-textarea      { resize: vertical; min-height: 126px; }

.form-success {
  text-align: center; padding: 40px 24px;
  font-family: var(--ff-sans); color: var(--muted);
  display: none;
}
.form-success h3 { font-family: var(--ff-display); font-size: 1.4rem; color: var(--cream); margin-bottom: 10px; }
.form-error {
  font-family: var(--ff-sans); font-size: .86rem; color: #f87171;
  background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.2);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 8px;
  display: none;
}

/* ============================================================
   23. FOOTER
   ============================================================ */
footer {
  position: relative; z-index: 1;
  padding: 52px 48px max(26px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: linear-gradient(0deg, rgba(0,0,0,0.06) 0%, transparent 100%);
}

.footer-inner { max-width: 1160px; margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 34px; border-bottom: 1px solid var(--border); margin-bottom: 22px;
}

.footer-brand-row  { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.footer-leaf-wrap  { width: 26px; height: 26px; perspective: 180px; flex-shrink: 0; }
.footer-leaf       { width: 26px; height: 26px; animation: leaf3d 2.5s linear infinite; }

.footer-brand-name {
  font-family: var(--ff-display); font-size: .9rem;
  background: linear-gradient(135deg, var(--gold-l), var(--g4));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-brand-para { font-family: var(--ff-sans); color: var(--muted); font-size: .84rem; line-height: 1.82; margin: 13px 0 20px; font-weight: 400; }

.footer-socials { display: flex; gap: 7px; }
.footer-social  {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--muted); font-size: .8rem;
  transition: var(--ease);
}
.footer-social:hover { border-color: var(--border-hi); color: var(--cream); background: rgba(255,255,255,.08); }

.footer-col h5 { font-family: var(--ff-display); font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a       { font-family: var(--ff-sans); color: var(--muted); font-size: .84rem; transition: var(--ease); font-weight: 400; cursor: pointer; }
.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.footer-copy   { font-family: var(--ff-sans); font-size: .74rem; color: var(--muted); font-weight: 400; }
.footer-mark   { font-family: var(--ff-display); font-size: .56rem; color: rgba(180,180,180,.55); letter-spacing: .1em; }

/* ============================================================
   24. DUAL CTA BUTTON ROW
   ============================================================ */
.cta-btn-row {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}

/* ============================================================
   25. WEB DEVELOPMENT CARD
   ============================================================ */
.panel-accent--mono { background: linear-gradient(90deg, var(--gold-l), var(--gold)); }
.venture-name--mono { color: var(--cream); }
.venture-feature--mono::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); margin-right: 10px; flex-shrink: 0;
}

/* ============================================================
   26. PRICING CARDS  (Web Development packages)
   ============================================================ */
.pricing-header { text-align: center; margin-top: 60px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 50px;
}
.pricing-card {
  position: relative;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: var(--ease);
}
.pricing-card:hover { border-color: var(--border-hi); box-shadow: var(--shadow); }
.pricing-card--featured {
  border-color: var(--border-hi); box-shadow: var(--shadow); background: var(--bg2);
}
.pricing-pill {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--cream); color: var(--bg);
  font-family: var(--ff-display); font-size: .55rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.pricing-badge {
  font-family: var(--ff-display); font-size: .58rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.pricing-price {
  font-family: var(--ff-display); font-size: 1.8rem; font-weight: 700;
  color: var(--cream); line-height: 1.1;
}
.pricing-suffix { font-size: 1rem; color: var(--muted); font-weight: 400; }
.pricing-desc {
  font-family: var(--ff-sans); font-size: .88rem; color: var(--muted);
  line-height: 1.65; margin: 0;
}
.pricing-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 9px; flex: 1;
}
.pricing-features li {
  font-family: var(--ff-sans); font-size: .86rem; color: var(--cream);
  display: flex; align-items: center; gap: 10px;
}
.pricing-features .fa-check { color: var(--gold); font-size: .7rem; flex-shrink: 0; }

/* ============================================================
   27. PORTFOLIO PAGE
   ============================================================ */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  margin-bottom: 50px;
}
.portfolio-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  transition: var(--ease);
}
.portfolio-card:hover { border-color: var(--border-hi); box-shadow: var(--shadow); }
.portfolio-card-visual {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--muted);
}
.portfolio-card-visual--app  { background: var(--bg2); }
.portfolio-card-visual--shop { background: var(--bg3); }
.portfolio-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.portfolio-tag {
  font-family: var(--ff-display); font-size: .52rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
}
.portfolio-tag--shop { color: var(--muted); }
.portfolio-card-title {
  font-family: var(--ff-display); font-size: 1.15rem; font-weight: 600;
  color: var(--cream); margin: 0;
}
.portfolio-card-desc {
  font-family: var(--ff-sans); font-size: .88rem; color: var(--muted);
  line-height: 1.65; margin: 0;
}
.portfolio-card-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.portfolio-card-tech span {
  font-family: var(--ff-sans); font-size: .72rem; color: var(--muted);
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 11px;
}

/* ============================================================
   28. CONTACT ACTION BUTTONS  (Send a Message / Schedule a Call)
   ============================================================ */
.contact-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 28px;
}
.contact-action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 8px; cursor: pointer;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--muted); text-decoration: none; transition: var(--ease);
}
.contact-action-btn:hover { border-color: var(--border-hi); color: var(--cream); }
.contact-action-btn--active {
  border-color: var(--border-hi); color: var(--cream); background: var(--card-bg);
}

/* ============================================================
   29. NAV DROPDOWN
   ============================================================ */
.nav-dropdown-wrap {
  position: relative; display: flex; align-items: center;
}
.nav-link--dropdown { display: flex; align-items: center; gap: 5px; }
.nav-caret { font-size: .5rem; transition: transform .22s ease; }
.nav-dropdown-wrap:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px;
  min-width: 210px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 600;
}
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; cursor: pointer;
  font-family: var(--ff-display); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: var(--ease);
}
.nav-dropdown-item:hover { background: var(--card-bg); color: var(--cream); }
.nav-dropdown-item i { width: 14px; text-align: center; font-size: .75rem; }

/* ============================================================
   30. VENTURE DETAIL PAGES (ecommerce / appdev / webdev)
   ============================================================ */
.venture-detail-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 52px;
  align-items: start; margin-bottom: 50px;
}
.venture-detail-main {}
.venture-detail-sidebar { display: flex; flex-direction: column; gap: 16px; }

.venture-detail-list {
  display: flex; flex-direction: column; gap: 12px;
  list-style: none; padding: 0; margin: 0;
}
.venture-detail-list li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--ff-sans); font-size: .92rem; color: var(--cream); line-height: 1.5;
}
.venture-detail-list .fa-check-circle { color: var(--gold); font-size: .85rem; flex-shrink: 0; }

.venture-stat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.venture-stat-num {
  font-family: var(--ff-display); font-size: 2.2rem; font-weight: 700; color: var(--cream);
}
.venture-stat-label {
  font-family: var(--ff-display); font-size: .54rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

/* Centre the cta-btn-row inside centred panels */
.panel-body--center .cta-btn-row { justify-content: center; }

/* ============================================================
   29. RESPONSIVE
   ============================================================ */

/* ── Large tablet */
@media (max-width: 1100px) {
  .sec { padding-left: 32px; padding-right: 32px; }
  footer { padding-left: 32px; padding-right: 32px; }
  .hero  { padding-left: 32px; padding-right: 32px; }
  .page-hero { padding-left: 32px; padding-right: 32px; }
}

/* ── Tablet */
@media (max-width: 960px) {
  .nav-links, .nav-socials { display: none; }
  .nav-hamburger { display: flex; }
  .social-float  { display: none; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-top > div:first-child { grid-column: 1 / -1; }

  .ventures-grid { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; }
  .two-col       { grid-template-columns: 1fr; gap: 32px; }
  .about-sigil-wrap { display: none; } /* hide sigil on tablet/mobile */
  .contact-split { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Mobile */
@media (max-width: 640px) {
  .navbar  { padding: 0 18px; }
  .sec     { padding: 52px 18px; }
  .hero    { padding: 100px 18px 72px; }
  .page-hero { padding: 100px 18px 36px; }
  footer   { padding: 28px 18px 18px; }

  .services-grid,
  .ventures-grid,
  .stats-grid,
  .social-grid,
  .form-row { grid-template-columns: 1fr; }

  /* Footer mobile: hide brand block, show Company + Divisions side by side */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
  .footer-top > div:first-child { display: none; }
  .footer-top .footer-col:last-child { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Stats stay 2-col on mobile */
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .stat-item + .stat-item::before { display: none; }

  .portfolio-grid        { grid-template-columns: 1fr; }
  .venture-detail-grid   { grid-template-columns: 1fr; }
  .cta-btn-row           { flex-direction: column; align-items: stretch; }

  .form-input, .form-select,
  .form-textarea { padding: 14px 15px; font-size: 16px; }

  .mobile-menu { padding: 16px 18px 22px; }
  .mobile-menu .nav-link { font-size: .72rem; }
}


/* ============================================================
   32. TRACKIX LANDING PAGE  (.tx-*)
   Red-accent glassmorphic theme echoing the Trackix app.
   All rules are scoped with the .tx- prefix so they cannot
   leak into the rest of the site.
   ============================================================ */
:root {
  --tx-red:      #E63946;
  --tx-red-deep: #C1121F;
  --tx-red-soft: rgba(230,57,70,0.12);
  --tx-red-glow: 0 0 24px rgba(230,57,70,0.28);
}

/* ── Hero ─────────────────────────────────────────────────── */
.tx-hero { padding: calc(var(--nav-h) + 64px) 24px 40px; }
.tx-hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.tx-title {
  font-family: var(--ff-display);
  font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 700; line-height: 1.05;
  color: var(--cream); letter-spacing: -0.01em;
  margin: 10px 0 4px;
}
.tx-accent { color: var(--tx-red); }
.tx-tagline {
  font-family: var(--ff-display); font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--muted); margin-bottom: 18px;
}
.tx-desc { max-width: 520px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; margin-bottom: 22px; }

.tx-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 100px;
  background: var(--tx-red-soft);
  border: 1px solid rgba(230,57,70,0.35);
  color: var(--cream); font-size: .86rem; font-weight: 500;
  margin-bottom: 26px;
}
.tx-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tx-red); box-shadow: 0 0 10px rgba(230,57,70,0.9);
  animation: pd 2.2s ease-in-out infinite;
}

.tx-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tx-hero-note { font-size: .8rem; color: var(--muted); opacity: .85; }

.btn.tx-btn-red {
  background: linear-gradient(135deg, var(--tx-red), var(--tx-red-deep));
  color: #fff; border: 1px solid rgba(230,57,70,0.6);
  box-shadow: var(--tx-red-glow);
}
.btn.tx-btn-red:hover {
  box-shadow: 0 0 34px rgba(230,57,70,0.45);
  transform: translateY(-1px);
}
.btn.tx-btn-red:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Hero app-window mock ─────────────────────────────────── */
.tx-hero-visual { position: relative; }
.tx-window {
  background: var(--card-bg);
  border: 1px solid var(--border-hi);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(230,57,70,0.07);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tx-window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(127,127,127,0.06);
}
.tx-dot { width: 11px; height: 11px; border-radius: 50%; }
.tx-dot--r { background: #FF5F57; } .tx-dot--y { background: #FEBC2E; } .tx-dot--g { background: #28C840; }
.tx-window-title { margin-left: 10px; font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.tx-window-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.tx-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(127,127,127,0.06); border: 1px solid var(--border);
}
.tx-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tx-row-name { font-weight: 600; font-size: .9rem; color: var(--cream); }
.tx-row-meta { font-size: .72rem; color: var(--muted); }
.tx-pill {
  flex-shrink: 0; padding: 4px 12px; border-radius: 100px;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
}
.tx-pill--ship { background: rgba(40,200,64,0.14);  color: #3fbf5f; border: 1px solid rgba(40,200,64,0.35); }
.tx-pill--prog { background: rgba(254,188,46,0.14); color: #d99e18; border: 1px solid rgba(254,188,46,0.35); }
.tx-pill--drop { background: var(--tx-red-soft);    color: var(--tx-red); border: 1px solid rgba(230,57,70,0.35); }
.tx-shipcard {
  display: flex; flex-direction: column; gap: 3px;
  margin-top: 2px; padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(230,57,70,0.10), rgba(230,57,70,0.03));
  border: 1px solid rgba(230,57,70,0.30);
}
.tx-shipcard-label { font-size: .72rem; font-weight: 700; color: var(--tx-red); letter-spacing: .08em; text-transform: uppercase; }
.tx-shipcard-text { font-size: .78rem; color: var(--muted); }
.tx-mascot {
  position: absolute; bottom: -26px; right: -18px;
  width: 108px; transform: rotate(-6deg);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
  animation: dragonFloat 3.4s ease-in-out infinite;
  pointer-events: none;
}

/* ── Stats bar ────────────────────────────────────────────── */
.tx-stats {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.tx-stat {
  text-align: center; padding: 22px 12px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px;
}
.tx-stat-num {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 700;
  color: var(--tx-red); line-height: 1.1;
}
.tx-stat-label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* ── Feature cards ────────────────────────────────────────── */
.tx-grid {
  max-width: 1120px; margin: 36px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.tx-card {
  padding: 28px 26px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  transition: var(--ease), transform .22s ease;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tx-card:hover { border-color: rgba(230,57,70,0.45); transform: translateY(-3px); box-shadow: var(--shadow), 0 0 28px rgba(230,57,70,0.10); }
.tx-card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tx-red-soft); color: var(--tx-red);
  font-size: 1.15rem; margin-bottom: 16px;
}
.tx-card-title { font-size: 1.05rem; font-weight: 600; color: var(--cream); margin-bottom: 8px; }
.tx-card-text { font-size: .9rem; line-height: 1.7; color: var(--muted); }

/* ── Steps ────────────────────────────────────────────────── */
.tx-steps {
  max-width: 900px; margin: 36px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.tx-step { text-align: center; padding: 28px 20px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--border); }
.tx-step-num {
  width: 44px; height: 44px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-family: var(--ff-display); font-weight: 700; font-size: 1.25rem;
  background: linear-gradient(135deg, var(--tx-red), var(--tx-red-deep)); color: #fff;
  box-shadow: var(--tx-red-glow);
}
.tx-step-title { font-size: 1rem; font-weight: 600; color: var(--cream); margin-bottom: 6px; }
.tx-step-text { font-size: .88rem; color: var(--muted); line-height: 1.65; }

/* ── Waitlist card ────────────────────────────────────────── */
.tx-wait-card {
  max-width: 640px; margin: 0 auto;
  padding: 44px 40px 36px; border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid rgba(230,57,70,0.35);
  box-shadow: var(--shadow-lg), 0 0 48px rgba(230,57,70,0.10);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tx-wait-sub { margin-bottom: 26px; }

.tx-progress { margin-bottom: 22px; }
.tx-progress-labels {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .82rem; color: var(--muted); margin-bottom: 8px;
}
.tx-progress-labels strong { color: var(--cream); font-size: 1rem; }
.tx-progress-left strong { color: var(--tx-red); }
.tx-bar {
  height: 10px; border-radius: 100px; overflow: hidden;
  background: rgba(127,127,127,0.14); border: 1px solid var(--border);
}
.tx-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--tx-red-deep), var(--tx-red));
  border-radius: 100px;
  box-shadow: 0 0 12px rgba(230,57,70,0.55);
  transition: width 1.1s var(--ease-out);
}

.tx-form-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 12px; margin-bottom: 12px; }
.tx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tx-fineprint { margin-top: 14px; font-size: .74rem; color: var(--muted); opacity: .8; text-align: center; }

.tx-success { text-align: center; }
.tx-success-emoji { font-size: 2rem; margin-bottom: 8px; }

/* ── Perks ────────────────────────────────────────────────── */
.tx-perks {
  max-width: 900px; margin: 36px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.tx-perk {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
}
.tx-perk-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tx-red-soft); color: var(--tx-red); font-size: 1rem;
}
.tx-perk-title { font-size: .98rem; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.tx-perk-text { font-size: .86rem; color: var(--muted); line-height: 1.65; }

/* ── FAQ ──────────────────────────────────────────────────── */
.tx-faq { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
.tx-faq-item {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--card-bg); overflow: hidden;
  transition: var(--ease);
}
.tx-faq-item[open] { border-color: rgba(230,57,70,0.4); }
.tx-faq-item summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; font-weight: 600; font-size: .95rem; color: var(--cream);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.tx-faq-item summary::-webkit-details-marker { display: none; }
.tx-faq-item summary::after {
  content: '+'; font-size: 1.3rem; color: var(--tx-red);
  transition: transform .22s ease; line-height: 1;
}
.tx-faq-item[open] summary::after { transform: rotate(45deg); }
.tx-faq-item p { padding: 0 22px 20px; font-size: .89rem; line-height: 1.7; color: var(--muted); }

/* ── Nav pill for the Trackix link ────────────────────────── */
.tx-nav-pill {
  display: inline-block; margin-left: 6px; padding: 2px 8px;
  border-radius: 100px; font-size: .58rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--tx-red); color: #fff; vertical-align: middle;
}

/* ── Light mode tweaks ────────────────────────────────────── */
:root[data-theme="light"] .tx-title { color: #0A0A0A; }
:root[data-theme="light"] .tx-mascot { filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18)); }
:root[data-theme="light"] .tx-window { background: rgba(255,255,255,0.75); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .tx-hero { padding-top: calc(var(--nav-h) + 40px); }
  .tx-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .tx-grid  { grid-template-columns: 1fr 1fr; }
  .tx-steps { grid-template-columns: 1fr; }
  .tx-perks { grid-template-columns: 1fr; }
  .tx-stats { grid-template-columns: repeat(2, 1fr); }
  .tx-mascot { width: 88px; bottom: -20px; right: -8px; }
}
@media (max-width: 600px) {
  .tx-grid { grid-template-columns: 1fr; }
  .tx-form-row { grid-template-columns: 1fr; }
  .tx-wait-card { padding: 32px 22px 28px; }
  .tx-hero-actions { flex-direction: column; align-items: stretch; }
}

/* ════════════════════════════════════════════════════════════
   33  PLACEHOLDER SOCIAL LINKS — hidden until real profiles exist
   ════════════════════════════════════════════════════════════
   index.html and the page templates ship 24 social links pointing at bare
   platform homepages (https://instagram.com etc). They are not profiles —
   clicking one lands the visitor on Instagram's front page, which reads as a
   broken site. Hidden rather than deleted so restoring them is a find-and-
   replace on the href plus removing this block.

   TO RESTORE: replace the placeholder hrefs with real profile URLs, add the
   same URLs to the "sameAs" array in the JSON-LD in index.html, then delete
   this rule. */
a[href="https://instagram.com"],
a[href="https://x.com"],
a[href="https://twitter.com"],
a[href="https://tiktok.com"],
a[href="https://facebook.com"] { display: none !important; }

/* Sections that exist only to hold the placeholder social links above.
   An empty "Follow Us" heading with nothing under it reads as a broken page,
   so the whole block is hidden until real profiles exist. Remove this rule at
   the same time as the placeholder-link rule above. */
.social-placeholder { display: none !important; }

/* ════════════════════════════════════════════════════════════
   34  PORTFOLIO SCREENSHOTS
   ════════════════════════════════════════════════════════════
   Cards previously showed a small icon centred in a large empty panel, which
   read as a placeholder. .has-shot swaps that for a real screenshot of the
   product, cropped from the top so the app's header and primary UI stay
   visible at card size. */
.portfolio-card-visual.has-shot {
  /* The base rule is height:180px + display:flex, which fought aspect-ratio and
     let the flex column stretch the image over the card body. Fixed height,
     block display, and flex:0 0 auto keeps it a contained band at the top. */
  display: block;
  height: 200px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  background: var(--bg2);
}
.portfolio-card-visual.has-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;   /* keep the app header, not the empty middle */
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.portfolio-card:hover .portfolio-card-visual.has-shot img { transform: scale(1.03); }

/* ════════════════════════════════════════════════════════════
   35  HIDDEN FOR NOW
   ════════════════════════════════════════════════════════════
   The floating Trackix star. Delete this rule to bring it back. */
.dragon-corner { display: none !important; }

/* ════════════════════════════════════════════════════════════
   36  AI COMPLIANCE — TYPOGRAPHY & MOBILE
   ════════════════════════════════════════════════════════════
   The parent site's Cormorant Garamond reads as a luxury brand, which is the
   wrong signal on the page where a DPO or head of engineering decides whether
   to trust us with a regulatory opinion. Inter is already declared in --ff-sans
   (it just was not being fetched) and is the right register for this page.
   Scoped to #page-article50 so the rest of the site keeps its identity. */

/* Calendly embed — the vendor markup hard-codes min-width:320px and
   height:700px inline, which overflows narrow phones and leaves a tall empty
   box while the iframe loads. */
.calendly-inline-widget {
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .calendly-inline-widget { height: 620px !important; }
  /* stack the contact tabs instead of squeezing them onto one line */
  .contact-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .contact-action-btn { width: 100%; justify-content: center; }
}

/* Brand marks in the studio cards. Previously a diamond glyph, a triangle glyph
   and a colour emoji — three different visual languages in one row. These are
   the actual Fresco and Northbound marks from brand/. */
.service-icon--brand {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; margin-bottom: 4px;
}
.service-icon--brand img { width: 100%; height: 100%; object-fit: contain; display: block; }
:root[data-theme="light"] .service-icon--brand img { filter: none; }
