/* =========================================================
   HAPPY GROUP HUB — Design System
   Luxury / dark premium / black-gold / violet depth
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Surfaces */
  --black:        #050505;
  --graphite:     #0D0D0F;
  --charcoal:     #151316;
  --dark-card:    #111014;
  --dark-card-2:  #16141A;

  /* Gold */
  --gold:         #C6A15B;
  --gold-light:   #E7CE93;
  --gold-soft:    #8E6A35;
  --gold-deep:    #5A431F;
  --gold-grad:    linear-gradient(135deg, #E7CE93 0%, #C6A15B 45%, #8E6A35 100%);
  --gold-grad-soft: linear-gradient(135deg, rgba(231,206,147,0.18) 0%, rgba(198,161,91,0.08) 100%);

  /* Violet depth */
  --violet:        #2A102F;
  --violet-deep:   #16091D;
  --violet-glow:   rgba(120, 60, 180, 0.22);
  --wine:          #3A1835;

  /* Status colors */
  --status-live:     #6DAA45;
  --status-grow:     #C6A15B;
  --status-pre:      #5591C7;
  --status-pilot:    #A86FDF;
  --status-relaunch: #C97C3D;
  --status-vision:   #B8AEA0;

  /* Text */
  --text-main:   #F4EFE6;
  --text-muted:  #B8AEA0;
  --text-soft:   #8F867A;
  --text-faint:  #5A5550;

  /* Lines */
  --line:        rgba(198, 161, 91, 0.32);
  --line-strong: rgba(198, 161, 91, 0.55);
  --line-soft:   rgba(255, 255, 255, 0.07);
  --line-hair:   rgba(255, 255, 255, 0.04);

  /* Typography */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body:    "Manrope", "Inter", system-ui, -apple-system, sans-serif;

  /* Scale */
  --container:    1280px;
  --container-wide: 1440px;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    22px;

  /* Transitions */
  --t-fast: 180ms cubic-bezier(.2,.6,.2,1);
  --t:      280ms cubic-bezier(.2,.6,.2,1);
  --t-slow: 520ms cubic-bezier(.2,.6,.2,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--black);
  font-weight: 300;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- GLOBAL BACKGROUND ATMOSPHERE ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(120, 50, 170, 0.18), transparent 60%),
    radial-gradient(700px 500px at -5% 30%, rgba(198, 161, 91, 0.05), transparent 60%),
    radial-gradient(1200px 800px at 50% 110%, rgba(58, 24, 53, 0.4), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  /* subtle film grain */
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  margin: 0;
  color: var(--text-main);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); }
h4 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.01em; }

p { margin: 0 0 1em 0; color: var(--text-muted); }
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.5;
  color: var(--text-main);
  font-weight: 400;
  font-style: italic;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.gold-text {
  background: linear-gradient(135deg, #E7CE93 0%, #C6A15B 50%, #8E6A35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.container-wide { max-width: var(--container-wide); }

section {
  position: relative;
  padding: clamp(70px, 9vw, 140px) 0;
  z-index: 2;
}
.section-tight { padding: clamp(50px, 6vw, 90px) 0; }

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line-strong) 50%, transparent 100%);
  border: none;
  margin: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(36px, 4vw, 56px);
  flex-wrap: wrap;
}
.section-head .description {
  max-width: 480px;
  color: var(--text-soft);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--t), border-color var(--t);
}
.site-header.scrolled {
  background: rgba(5, 5, 5, 0.92);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-main);
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  opacity: 0.85;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-primary a {
  position: relative;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0;
  transition: color var(--t);
}
.nav-primary a:hover { color: var(--text-main); }
.nav-primary a.active { color: var(--gold); }
.nav-primary a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.nav-cta { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  transition: border-color var(--t), background var(--t);
}
.burger:hover { border-color: var(--gold); }
.burger span {
  display: block;
  width: 18px; height: 1px;
  background: var(--gold);
  position: relative;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transition: transform var(--t);
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }
.burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(6px) rotate(45deg); }
.burger.open span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #050505 0%, #0B0710 60%, #16091D 100%);
  z-index: 99;
  padding: 96px 32px 48px;
  display: flex; flex-direction: column; gap: 0;
  transform: translateY(-110%);
  transition: transform 480ms cubic-bezier(.4,.0,.2,1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text-main);
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: 0.02em;
  transition: color var(--t), padding-left var(--t);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); padding-left: 10px; }
.mobile-nav .btn-primary { margin-top: 28px; align-self: flex-start; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-grad);
  color: #15110A;
  box-shadow: 0 8px 24px rgba(142, 106, 53, 0.28),
              inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(142, 106, 53, 0.4),
              inset 0 1px 0 rgba(255,255,255,0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  background: rgba(198, 161, 91, 0.07);
  border-color: var(--gold);
  color: var(--gold-light);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 12px 0;
  letter-spacing: 0.22em;
}
.btn-ghost:hover { color: var(--gold); }
.btn .arrow {
  display: inline-block;
  transition: transform var(--t);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 880px);
  display: flex;
  align-items: center;
  padding: 80px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,0.88) 0%, rgba(5,5,5,0.55) 40%, rgba(5,5,5,0.25) 70%, rgba(5,5,5,0.75) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.0) 40%, rgba(5,5,5,0.6) 100%),
    url('../img/main_bg_1.png') center / cover no-repeat;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198,161,91,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198,161,91,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(800px 500px at 50% 60%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(800px 500px at 50% 60%, black 0%, transparent 80%);
  z-index: 1;
}

.hero-content { position: relative; z-index: 3; max-width: 760px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .accent { color: var(--gold-light); font-style: italic; }
.hero .lead { color: var(--text-muted); max-width: 600px; margin-bottom: 44px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero stats strip */
.hero-stats {
  position: relative;
  z-index: 3;
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  padding: 26px clamp(24px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(17,16,20,0.7), rgba(11,9,16,0.5));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  max-width: 760px;
}
.hero-stat { display: flex; align-items: center; gap: 14px; }
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold-light);
  font-weight: 500;
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  line-height: 1.3;
}

/* Hero decorative monogram */
.hero-monogram {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(340px, 38vw, 560px);
  opacity: 0.55;
  z-index: 2;
  pointer-events: none;
}

/* ---------- CARDS ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(22,20,26,0.85) 0%, rgba(15,13,18,0.85) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  overflow: hidden;
}
.card::before {
  /* hairline gold corner accent */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(198,161,91,0.35) 0%, transparent 30%, transparent 70%, rgba(198,161,91,0.25) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--t);
}
.card:hover {
  border-color: rgba(198,161,91,0.45);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.6),
              0 0 0 1px rgba(198,161,91,0.08);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(198, 161, 91, 0.04);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.card .card-title-sm {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.card p { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 0; }

/* Project card variant */
.project-card {
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card .status-dot {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 12px currentColor;
}
.project-card .status-dot.live     { background: var(--status-live); color: var(--status-live); }
.project-card .status-dot.grow     { background: var(--status-grow); color: var(--status-grow); }
.project-card .status-dot.pre      { background: var(--status-pre); color: var(--status-pre); }
.project-card .status-dot.pilot    { background: var(--status-pilot); color: var(--status-pilot); }
.project-card .status-dot.relaunch { background: var(--status-relaunch); color: var(--status-relaunch); }
.project-card .status-dot.vision   { background: var(--status-vision); color: var(--status-vision); }

.project-card .icon-mark {
  width: 56px; height: 56px;
  color: var(--gold);
  margin-bottom: 24px;
}
.project-card h3 { font-size: 1.6rem; margin-bottom: 8px; color: var(--text-main); }
.project-card .pcat {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.project-card .pdesc { font-size: 0.92rem; color: var(--text-soft); flex: 1; }
.project-card .pcta {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  transition: gap var(--t);
}
.project-card:hover .pcta { gap: 14px; }

/* Status badge (rectangular) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: rgba(198, 161, 91, 0.06);
  color: var(--gold);
}
.badge.live     { color: var(--status-live);     border-color: rgba(109, 170, 69, 0.4); background: rgba(109, 170, 69, 0.06); }
.badge.grow     { color: var(--status-grow);     border-color: rgba(198, 161, 91, 0.4); }
.badge.pre      { color: var(--status-pre);      border-color: rgba(85, 145, 199, 0.4); background: rgba(85, 145, 199, 0.06); }
.badge.pilot    { color: var(--status-pilot);    border-color: rgba(168, 111, 223, 0.4); background: rgba(168, 111, 223, 0.06); }
.badge.relaunch { color: var(--status-relaunch); border-color: rgba(201, 124, 61, 0.4); background: rgba(201, 124, 61, 0.06); }
.badge.vision   { color: var(--status-vision);   border-color: rgba(184, 174, 160, 0.35); background: rgba(184, 174, 160, 0.04); }

/* ---------- GRID PATTERNS ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-7 { grid-template-columns: repeat(7, 1fr); }

.directions-grid { grid-template-columns: repeat(7, 1fr); gap: 0; }
.directions-grid .card { border-radius: 0; padding: 26px 22px; min-height: 200px; border-right: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.directions-grid .card:first-child { border-left: 1px solid var(--line); }
.directions-grid .card:last-child  { border-right: 1px solid var(--line); }
.directions-grid .card + .card { border-left: 1px solid var(--line-soft); }

/* ---------- ECOSYSTEM ORBIT (SVG decorative) ---------- */
.orbit-bg {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px;
  height: 720px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

/* ---------- FOUNDER VISION BAND ---------- */
.founder-band {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0;
  background:
    linear-gradient(180deg, rgba(42, 16, 47, 0.4) 0%, rgba(22, 9, 29, 0.85) 100%),
    radial-gradient(1000px 400px at 30% 50%, rgba(120, 50, 170, 0.32), transparent 65%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.founder-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(231, 206, 147, 0.6), transparent 60%),
    radial-gradient(1px 1px at 60% 70%, rgba(231, 206, 147, 0.4), transparent 60%),
    radial-gradient(1px 1px at 85% 25%, rgba(231, 206, 147, 0.4), transparent 60%);
  opacity: 0.7;
}
.founder-band .inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.founder-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.35;
  color: var(--text-main);
  font-style: italic;
  margin: 0 0 24px;
  position: relative;
  padding-left: 28px;
}
.founder-band blockquote::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--gold-grad);
}
.founder-band .author {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.founder-portrait {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.founder-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ---------- JOURNAL CARDS ---------- */
.journal-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--dark-card);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
}
.journal-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.journal-card .cover {
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 30% 40%, rgba(198,161,91,0.18), transparent 70%),
    linear-gradient(135deg, #0F0B14 0%, #0A0410 100%);
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.journal-card .cover svg {
  position: absolute;
  inset: 0; margin: auto;
  width: 70%; height: 70%;
  opacity: 0.4;
}
.journal-card .body { padding: 24px 26px 26px; }
.journal-card .cat {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.journal-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text-main);
}
.journal-card .date {
  font-size: 0.76rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

/* ---------- OPEN ROLES / TABLE ---------- */
.roles-list {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--dark-card);
  overflow: hidden;
}
.role-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--t);
}
.role-row:last-child { border-bottom: none; }
.role-row:hover { background: rgba(198, 161, 91, 0.04); }
.role-name { color: var(--text-main); font-size: 1rem; }
.role-meta { color: var(--text-soft); font-size: 0.82rem; letter-spacing: 0.04em; }

/* ---------- PARTNERSHIP STRIP ---------- */
.partners-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(48px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 100% 50%, rgba(198,161,91,0.08), transparent 60%),
    linear-gradient(180deg, rgba(20,15,25,0.6), rgba(10,8,14,0.6));
  position: relative;
  overflow: hidden;
}
.partners-strip h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  margin-bottom: 20px;
}
.partners-strip p { color: var(--text-muted); margin-bottom: 28px; }

/* Partners strip — with image in right column */
.partners-strip--img .partners-strip__img {
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
  position: relative;
}
.partners-strip--img .partners-strip__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: linear-gradient(180deg, #060309 0%, #020203 100%);
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
  position: relative;
  z-index: 2;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-grid h5 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-grid a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-soft);
  padding: 6px 0;
  transition: color var(--t);
}
.footer-grid a:hover { color: var(--gold); }
.footer-grid p {
  color: var(--text-soft);
  font-size: 0.92rem;
  max-width: 320px;
  margin-bottom: 24px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--text-soft);
  padding: 0;
  transition: border-color var(--t), color var(--t);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--text-soft); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- FORMS ---------- */
.form {
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
}
.form-field label .req { color: var(--gold); margin-left: 4px; }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--t), background var(--t);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(198, 161, 91, 0.03);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-input.error, .form-select.error, .form-textarea.error { border-color: #C0506E; }

.form-check {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.84rem;
  color: var(--text-soft);
  cursor: pointer;
}
.form-check input { margin-top: 4px; accent-color: var(--gold); }

.form-success {
  padding: 22px 24px;
  border: 1px solid rgba(109, 170, 69, 0.4);
  background: rgba(109, 170, 69, 0.05);
  border-radius: var(--radius);
  color: var(--text-main);
  display: none;
}
.form-success.show { display: block; }

/* ---------- FAQ ACCORDION ---------- */
.faq { border-top: 1px solid var(--line-soft); }
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  text-align: left;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}
.faq-q .plus {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute;
  background: var(--gold);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.faq-q .plus::before { width: 12px; height: 1px; }
.faq-q .plus::after  { width: 1px; height: 12px; transition: transform var(--t); }
.faq-item.open .faq-q .plus { border-color: var(--gold); background: rgba(198,161,91,0.06); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
  color: var(--text-muted);
}
.faq-a-inner { padding: 0 0 24px; max-width: 720px; font-size: 0.96rem; }

/* ---------- CHIPS / FILTERS ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  align-items: center;
}
.filters-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-right: 12px;
}
.chip {
  padding: 10px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--t);
  font-weight: 500;
}
.chip:hover { border-color: var(--line-strong); color: var(--text-main); }
.chip.active {
  background: var(--gold-grad);
  border-color: transparent;
  color: #15110A;
}

/* Status legend */
.status-legend {
  display: flex;
  gap: clamp(18px, 2.5vw, 36px);
  flex-wrap: wrap;
  align-items: stretch;
  padding: 24px 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(15,13,18,0.6);
  margin-bottom: 36px;
}
.status-legend .legend-label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  align-self: center;
  font-weight: 500;
  border-right: 1px solid var(--line-soft);
  padding-right: clamp(16px, 2vw, 32px);
}
.status-legend .leg-item { display: flex; flex-direction: column; gap: 4px; }
.status-legend .leg-item .top {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 600;
}
.status-legend .leg-item .top .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-live);
  box-shadow: 0 0 8px currentColor;
}
.status-legend .leg-item.live .top .dot     { background: var(--status-live);     color: var(--status-live); }
.status-legend .leg-item.grow .top .dot     { background: var(--status-grow);     color: var(--status-grow); }
.status-legend .leg-item.pre .top .dot      { background: var(--status-pre);      color: var(--status-pre); }
.status-legend .leg-item.pilot .top .dot    { background: var(--status-pilot);    color: var(--status-pilot); }
.status-legend .leg-item.relaunch .top .dot { background: var(--status-relaunch); color: var(--status-relaunch); }
.status-legend .leg-item.vision .top .dot   { background: var(--status-vision);   color: var(--status-vision); }
.status-legend .leg-item .desc {
  font-size: 0.72rem;
  color: var(--text-soft);
  max-width: 160px;
  line-height: 1.4;
}

/* ---------- PROJECT GROUPS ---------- */
.project-group { margin-bottom: 56px; }
.project-group-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; margin-bottom: 22px; flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.project-group-head h2 {
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.project-group-head .note { color: var(--text-soft); font-size: 0.86rem; }

/* ---------- PROCESS STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 24px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
  z-index: 0;
}
.step {
  padding: 0 16px;
  text-align: left;
  position: relative;
  z-index: 1;
}
.step .num {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--graphite);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
  position: relative;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-main);
}
.step p { font-size: 0.88rem; color: var(--text-soft); margin: 0; }

/* ---------- DISCLAIMER / IMPORTANT BLOCK ---------- */
.note-box {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(198,161,91,0.04), transparent 50%),
    rgba(17,16,20,0.6);
  margin: 32px 0;
}
.note-box .label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.note-box p { color: var(--text-main); margin: 0; font-size: 0.98rem; line-height: 1.65; }
.note-box.warn { border-left-color: #C97C3D; }
.note-box.warn .label { color: #E59E5B; }

/* Two-column list */
.value-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.value-cols .col {
  padding: 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--dark-card);
}
.value-cols .col h3 {
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.value-cols .col.no h3 { color: #C97C3D; }
.value-list { display: flex; flex-direction: column; gap: 12px; }
.value-list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.5;
}
.value-list li .check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--gold);
  margin-top: 2px;
}
.value-cols .col.no .value-list li .check { color: #C97C3D; }

/* ---------- AI CONCIERGE ---------- */
.concierge {
  position: relative;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(120, 50, 170, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(20,15,28,0.85), rgba(10,8,14,0.85));
  overflow: hidden;
}
.concierge::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(231,206,147,0.4), transparent 60%),
    radial-gradient(1px 1px at 80% 70%, rgba(231,206,147,0.3), transparent 60%);
  pointer-events: none;
}
.concierge .ai-head {
  display: flex; gap: 16px; align-items: center; margin-bottom: 28px;
  position: relative; z-index: 1;
}
.ai-orb {
  width: 52px; height: 52px;
  position: relative;
  flex-shrink: 0;
}
.ai-orb::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light) 0%, var(--gold-soft) 50%, transparent 70%);
  box-shadow: 0 0 20px rgba(198, 161, 91, 0.4), inset 0 0 12px rgba(255,255,255,0.2);
  animation: pulse 3s ease-in-out infinite;
}
.ai-orb::after {
  content: ""; position: absolute;
  inset: -6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: rotate 12s linear infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@keyframes rotate { to { transform: rotate(360deg); } }

.concierge h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
}
.concierge .ai-sub {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.concierge-step { display: none; position: relative; z-index: 1; }
.concierge-step.active { display: block; animation: fade-up .35s ease; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.concierge-step .prompt {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 22px;
  font-style: italic;
}
.concierge-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.concierge-opt {
  text-align: left;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
  color: var(--text-main);
  transition: all var(--t);
  cursor: pointer;
  font-size: 0.94rem;
}
.concierge-opt:hover {
  border-color: var(--gold);
  background: rgba(198, 161, 91, 0.04);
  transform: translateY(-2px);
}
.concierge-opt.selected {
  border-color: var(--gold);
  background: rgba(198, 161, 91, 0.08);
}
.concierge-opt .opt-title {
  display: block;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 4px;
  font-size: 0.92rem;
}
.concierge-opt .opt-desc { display: block; font-size: 0.82rem; color: var(--text-soft); }
.concierge-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.concierge-progress {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-soft);
}
.concierge-progress .dots { display: flex; gap: 6px; }
.concierge-progress .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-soft);
}
.concierge-progress .dot.done { background: var(--gold); }
.concierge-progress .dot.active { background: var(--gold); box-shadow: 0 0 8px rgba(198,161,91,0.6); }

.concierge-result {
  display: none;
  padding: 28px;
  border: 1px solid rgba(109, 170, 69, 0.35);
  border-radius: var(--radius);
  background: rgba(109, 170, 69, 0.04);
  margin-top: 16px;
}
.concierge-result.show { display: block; }
.concierge-result h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-main);
  margin-bottom: 12px;
}
.cc-summary-path {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.breadcrumbs a { color: var(--text-soft); transition: color var(--t); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: var(--gold); }

/* ---------- PAGE HEAD ---------- */
.page-head {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 5vw, 70px);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 80% 30%, rgba(120, 50, 170, 0.2), transparent 65%),
    radial-gradient(500px 300px at 10% 80%, rgba(198, 161, 91, 0.06), transparent 65%);
  z-index: 0;
}
.page-head .inner { position: relative; z-index: 1; }
.page-head h1 { margin-bottom: 22px; max-width: 850px;}
.page-head .lead { max-width: 720px; }

/* Page head — with background image */
.page-head--img::before { display: none; }
.page-head--img {
  background:
    linear-gradient(90deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.6) 45%, rgba(5,5,5,0.4) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.25) 0%, rgba(5,5,5,0.0) 40%, rgba(5,5,5,0.55) 100%),
    var(--ph-bg-img, none) right / cover no-repeat;
}
.page-head--projects { --ph-bg-img: url('../img/main_bg_2.png'); }
.page-head--clients  { --ph-bg-img: url('../img/main_bg_3.png'); }
.page-head--team     { --ph-bg-img: url('../img/main_bg_4.png'); }
.page-head--contact  { --ph-bg-img: url('../img/main_bg_5.png'); }

/* ---------- FADE-IN ---------- */
/* Default = visible. JS adds .has-reveal to <html> when ready, then animates. */
.reveal { opacity: 1; transform: none; transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.6,.2,1); }
.has-reveal .reveal { opacity: 0; transform: translateY(24px); }
.has-reveal .reveal.visible { opacity: 1; transform: none; }

/* ---------- UTILS ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-soft  { color: var(--text-soft); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 32px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }
.mw-720 { max-width: 720px; }

/* Tag pills (categories etc.) */
.tag {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
}
