
:root {
    --violet: #4B20A8;
    --violet-deep: #2D0F6E;
    --violet-mid: #6B3FCC;
    --violet-light: #8B63E8;
    --cyan: #00D4FF;
    --gold: #C9A84C;
    --gold-light: #E8C875;
    --bg: #070412;
    --bg2: #0D0820;
    --surface: rgba(255,255,255,0.04);
    --surface2: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --border2: rgba(255,255,255,0.14);
    --text: #F0ECF8;
    --text-muted: rgba(240,236,248,0.55);
    --text-subtle: rgba(240,236,248,0.28);
    --nav-w: 240px;
    --top-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}
body.inner-page {
  padding-left: 75px; /* try 10–20px */
}
/* ─── NOISE ─── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
}

/* ─── TOP NAV (home only) ─── */
#top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--top-h);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(7,4,18,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
}

#top-nav.hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }

.top-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.top-nav-brand img {
    width: 34px; height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(107,63,204,0.7));
    transition: filter 0.3s;
}

.top-nav-brand:hover img { filter: drop-shadow(0 0 14px rgba(0,212,255,0.6)); }

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
}

.brand-name span { color: var(--cyan); }

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;

}

.top-nav-links li a, .top-nav-links li button {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s;
}

.top-nav-links li a:hover,
.top-nav-links li button:hover { color: var(--cyan); }

.top-nav-links li a.active,
.top-nav-links li button.active { color: var(--text); }

.top-nav-cta {
    display: inline-block; /* Essential for padding and clip-path on an <a> tag */
    text-decoration: none; /* Removes the default link underline */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg) !important;
    background: var(--cyan) !important;
    padding: 9px 20px !important;
    /* This keeps your custom clipped corners shape */
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: background 0.2s !important;
}

.top-nav-cta:hover { background: var(--gold-light) !important; }

/* ─── LEFT SIDE NAV (inner pages) ─── */
#icon-rail {
    position: fixed;
    top: 0; left: 0;
    width: 60px;
    height: 100vh;
    z-index: 300;
    background: rgba(6,3,16,0.98);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(24px);
    display: none;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    transition: width 0.32s cubic-bezier(0.4,0,0.2,1);
}

#icon-rail.visible { display: flex; }
#icon-rail.expanded { width: 220px; }

/* Logo strip at top — always 60px tall, icon centered */
.rail-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 17px;
    height: 68px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    transition: background 0.2s;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
}

.rail-logo:hover { background: var(--surface); }

.rail-logo img {
    width: 26px; height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(107,63,204,0.8));
    flex-shrink: 0;
}

.rail-brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.25;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.22s 0.08s, transform 0.22s 0.08s;
    white-space: nowrap;
}

#icon-rail.expanded .rail-brand-text {
    opacity: 1;
    transform: translateX(0);
}

.rail-brand-text span { color: var(--cyan); }

/* Hamburger toggle button */
.rail-toggle {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;   /* anchor left */
    padding-left: 18px;            /* match rail inner spacing */
    height: 52px;
    flex-shrink: 0;
    color: var(--text-subtle);
    transition: color 0.2s, background 0.2s;
    border-bottom: 1px solid var(--border);
}

.rail-toggle:hover { color: var(--text); background: var(--surface); }
.rail-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hide the hamburger lines and show X when expanded */
.rail-toggle .icon-menu { display: block; }
.rail-toggle .icon-close { display: none; }
#icon-rail.expanded .rail-toggle .icon-menu { display: none; }
#icon-rail.expanded .rail-toggle .icon-close { display: block; }

.rail-links {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
    gap: 2px;
    width: 100%;
    overflow: hidden;
}

.rail-links li { width: 100%; }

.rail-btn {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 11px;
    border-radius: 6px;
    color: var(--text-subtle);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
    position: relative;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
}

.rail-btn:hover {
    color: var(--text-muted);
    background: var(--surface);
}

.rail-btn.active {
    color: var(--cyan);
    background: rgba(0,212,255,0.07);
}

.rail-btn.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 2px; height: 22px;
    background: var(--cyan);
    border-radius: 0 2px 2px 0;
}

.rail-btn svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.rail-btn.active svg { opacity: 1; }

.rail-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s 0.1s, transform 0.2s 0.1s;
    white-space: nowrap;
}

#icon-rail.expanded .rail-label {
    opacity: 1;
    transform: translateX(0);
}

.rail-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 8px;
    flex-shrink: 0;
}

.rail-section-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-subtle);
    padding: 4px 11px 6px;
    opacity: 0;
    transition: opacity 0.18s 0.1s;
    white-space: nowrap;
}

#icon-rail.expanded .rail-section-label { opacity: 0.5; }

.rail-cta {
    margin: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: none;
    border: 1px solid rgba(0,212,255,0.3);
    cursor: pointer;
    color: var(--cyan);
    transition: background 0.2s, border-color 0.2s;
    padding: 11px 11px;
    border-radius: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}

.rail-cta:hover { background: rgba(0,212,255,0.08); border-color: var(--cyan); }
.rail-cta svg { width: 14px; height: 14px; flex-shrink: 0; }

.rail-cta-label {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s 0.1s, transform 0.2s 0.1s;
    white-space: nowrap;
}

#icon-rail.expanded .rail-cta-label {
    opacity: 1;
    transform: translateX(0);
}

/* Overlay to close expanded nav on outside click */
#rail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 299;
    background: rgba(0,0,0,0.3);
}

#rail-overlay.visible { display: block; }

/* Shift app content when rail is visible — always 60px */
#app.rail-shifted { margin-left: 60px; }

/* ─── SIDE NAV (inner pages) ─── */
#side-nav {
    position: fixed;
    top: 0; left: 0;
    width: var(--nav-w);
    height: 100vh;
    z-index: 200;
    background: rgba(7,4,18,0.97);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 32px 0;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}

#side-nav.visible { transform: translateX(0); }

.side-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    cursor: pointer;
    text-decoration: none;
}

.side-nav-brand img {
    width: 30px; height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(107,63,204,0.6));
}

.side-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.2;
}

.side-brand-name span { color: var(--cyan); }

.side-nav-links {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 16px;
}

.side-nav-links li button {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
    border-radius: 2px;
    text-align: left;
}

.side-nav-links li button:hover { color: var(--text); background: var(--surface); }
.side-nav-links li button.active { color: var(--cyan); background: rgba(0,212,255,0.06); }

.side-nav-links li button .nav-icon {
    width: 16px; height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
}

.side-nav-links li button.active .nav-icon { opacity: 1; }

.side-nav-cta {
    margin: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--cyan);
    border: none;
    padding: 12px;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    transition: background 0.2s;
    width: calc(100% - 32px);
}

.side-nav-cta:hover { background: var(--gold-light); }

/* ─── PAGE SYSTEM ─── */
#app {
    transition: margin-left 0.45s cubic-bezier(0.4,0,0.2,1);
}

#app.shifted { margin-left: var(--nav-w); }

/* ─── NAV TAB (inner pages — logo + hamburger) ─── */
#nav-tab {
    position: fixed;
    top: 0; left: 0;
    z-index: 300;
    display: none;
    align-items: center;
    gap: 0;
    background: rgba(7,4,18,0.92);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(16px);
    height: 56px;
    padding: 0;
}

#nav-tab.visible { display: flex; }

#nav-tab-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 0 18px;
    cursor: pointer;
    text-decoration: none;
    border-right: 1px solid var(--border);
    height: 100%;
    transition: background 0.2s;
}

#nav-tab-logo:hover { background: var(--surface); }

#nav-tab-logo img {
    width: 26px; height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(107,63,204,0.6));
}

#nav-tab-logo .ntl-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.2;
}

#nav-tab-logo .ntl-name span { color: var(--cyan); }

#nav-tab-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

#nav-tab-menu:hover { color: var(--text); background: var(--surface); }

#nav-tab-menu svg { width: 18px; height: 18px; }

/* ─── MISSION STATEMENT ─── */
.about-mission {
    margin-bottom: 56px;
    padding: 40px 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.about-mission::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(to right, var(--violet-light), var(--cyan), var(--gold));
}

.about-mission-eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-mission-eyebrow::before {
    content: '';
    width: 20px; height: 1px;
    background: var(--gold);
}

.about-mission-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.65rem;
    line-height: 1.4;
    color: var(--text);
    max-width: 780px;
}

.about-mission-text em {
    font-style: normal;
    background: linear-gradient(135deg, var(--cyan), var(--violet-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── PRINCIPLES SLIDER ─── */
/* ===== Desktop / Laptop (default accordion behavior) ===== */
.principles-slider {
  overflow: visible; /* desktop doesn't need horizontal scroll */
}

.ps-track {
  display: flex;
  gap: 6px;
  align-items: stretch;
  height: 300px;
}

.ps-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border);

  /* collapsed tabs */
  width: 60px;
}

.ps-card.active {
  /* expanded panel */
  flex: 1;
  cursor: default;
  background: var(--surface);
  border-color: rgba(107,63,204,0.3);
}

.ps-card:hover:not(.active) {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

/* ===== Mobile / Tablet (swipeable row cards) ===== */
@media (max-width: 900px) {
  .principles-slider {
    margin-bottom: 64px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .ps-track {
    flex-direction: row !important;
    width: max-content;
    height: 300px;
  }

  /* make every card a readable width; no skinny tabs on mobile */
  .ps-card,
  .ps-card.active {
    width: auto;        /* cancels the 60px collapsed width */
    flex: 0 0 260px;    /* fixed card width for swipe */
  }
}

/* Accent bar at top */
.ps-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 3;
    transition: opacity 0.4s;
}
.ps-card:nth-child(1)::before { background: var(--violet-light); }
.ps-card:nth-child(2)::before { background: var(--cyan); }
.ps-card:nth-child(3)::before { background: var(--gold); }
.ps-card:nth-child(4)::before { background: var(--violet-light); }

/* Gradient overlay */
.ps-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,3,16,0.96) 0%, rgba(6,3,16,0.1) 55%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Collapsed strip */
.ps-strip {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
    transition: opacity 0.3s;
    padding: 16px 0;
}

.ps-card.active .ps-strip { opacity: 0; pointer-events: none; }

.ps-strip-icon svg {
    width: 20px; height: 20px;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.ps-card:hover:not(.active) .ps-strip-icon svg { opacity: 0.7; }

.ps-strip-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    color: var(--text-subtle);
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: color 0.2s;
}

.ps-card:hover:not(.active) .ps-strip-title { color: var(--text-muted); }

/* Expanded icon */
.ps-icon-wrap {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 2;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s 0.1s, transform 0.4s 0.1s;
}

.ps-card.active .ps-icon-wrap {
    opacity: 1;
    transform: scale(1);
}

.ps-icon-wrap svg { width: 48px; height: 48px; }

/* Expanded content */
.ps-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 0 28px 28px;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.38s 0.18s, transform 0.38s 0.18s;
}

.ps-card.active .ps-content {
    opacity: 1;
    transform: translateY(0);
}

.ps-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 6px;
}

.ps-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.25;
}

.ps-body {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 460px;
}

/* legacy .principle-card kept for safety */

.about-text {
    max-width: 680px;
    margin-bottom: 52px;
}

.about-text p {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong { color: var(--text); font-weight: 500; }

.about-logo-callout {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    background: var(--surface);
    margin-top: 28px;
    position: relative;
    overflow: hidden;
}

.about-logo-callout::before { content: ''; position: absolute; top:0; left:0; width: 3px; height:100%; background: linear-gradient(to bottom, var(--violet-light), var(--cyan)); }

.about-logo-callout img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(107,63,204,0.5)); }

.alc-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 0.88rem; margin-bottom: 3px; }
.alc-sub { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
    margin-bottom: 64px;
}

.principle-card {
    background: var(--bg);
    padding: 32px 28px;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
}

.principle-card:hover { background: var(--bg2); }

.principle-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.principle-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-subtle);
    margin-bottom: 10px;
}

.principle-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--text);
}

.principle-body {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* legacy value-card kept for other pages */
.value-card {
    background: var(--bg);
    padding: 32px;
    transition: background 0.3s;
}

.value-card:hover { background: var(--bg2); }

.value-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-subtle);
    margin-bottom: 14px;
}

.value-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.value-body {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.phases-track {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--border);
    margin-bottom: 64px;
}

.phase-item {
    background: var(--bg);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.2s;
}

.phase-item:hover { background: var(--bg2); }

.phase-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    user-select: none;
}

.phase-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.phase-n {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--text-subtle);
    white-space: nowrap;
    margin: 0;
}

.phase-t {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--cyan);
    margin: 0;
}

.phase-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-subtle);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.phase-item.open .phase-chevron {
    transform: rotate(180deg);
}

.phase-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
}

.phase-item.open .phase-body {
    max-height: 200px;
}

.phase-d {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 0 28px 24px 28px;
    padding-left: calc(28px + 16px + 4rem + 16px);
}

.phase-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    height: 2px; width: 0;
    background: linear-gradient(to right, var(--cyan), var(--violet-light));
    transition: width 0.4s;
}

.phase-item.open::after { width: 100%; }

/* ─── PORTFOLIO PAGE ─── */
.portfolio-section-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 48px 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portfolio-section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.portfolio-section-label:first-child { margin-top: 0; }

/* ─── GLOWING PORTFOLIO CARDS ─── */
.portfolio-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 12px;
}

.portfolio-card {
    /* position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    cursor: default;
    transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), box-shadow 0.35s; */
    /* Container for the 3D space */
    background-color: transparent;
    width: 100%;
    height: 400px; /* Adjust based on your screenshot height */
    perspective: 1000px; 
    cursor: pointer;
}
/* The element that actually rotates */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* The trigger class */
.portfolio-card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* Style both sides */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Front styling */
.card-front {
    background: var(--bg2);
}

/* Back styling - using your violet-deep color */
.card-back {
    background: linear-gradient(145deg, var(--bg2), var(--violet-deep));
    color: var(--text);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.back-content {
    text-align: left;
}

/* Per-card accent colors */
.pc-grace  { --card-accent: #E8761A; --card-glow: rgba(232,118,26,0.55); }
.pc-kfg    { --card-accent: #E8761A; --card-glow: rgba(232,118,26,0.55); }
.pc-detour { --card-accent: #5F7A8C; --card-glow: rgba(95,122,140,0.6); }
.pc-expo   { --card-accent: #A094B7; --card-glow: rgba(160,148,183,0.7); }

/* Glow on hover */
.portfolio-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
    0 0 0 1px var(--card-accent),
    0 0 28px 4px var(--card-glow),
    0 0 60px 10px var(--card-glow);
}

/* Resting glow — subtle */
.pc-grace  { box-shadow: 0 0 18px 2px rgba(232,118,26,0.2), inset 0 0 80px 0px rgba(232,118,26,0.06); }
.pc-kfg    { box-shadow: 0 0 18px 2px rgba(232,118,26,0.2), inset 0 0 80px 0px rgba(232,118,26,0.06); }
.pc-detour { box-shadow: 0 0 18px 2px rgba(95,122,140,0.25), inset 0 0 80px 0px rgba(95,122,140,0.07); }
.pc-expo   { box-shadow: 0 0 22px 3px rgba(160,148,183,0.35), inset 0 0 80px 0px rgba(160,148,183,0.1); }

/* Card background — textured noise + gradient */
.portfolio-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
    radial-gradient(ellipse at 30% 0%, var(--card-accent) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, var(--card-accent) 0%, transparent 50%);
    opacity: 0.18;
    z-index: 0;
    transition: opacity 0.35s;
}

.portfolio-card:hover::before { opacity: 0.28; }

/* Noise texture overlay */
.portfolio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

/* Dark base */
.pc-grace, .pc-kfg   { background: #0e0a04; border: 1px solid rgba(232,118,26,0.3); }
.pc-detour            { background: #060d12; border: 1px solid rgba(95,122,140,0.3); }
.pc-expo              { background: #0d0b12; border: 1px solid rgba(160,148,183,0.35); }

/* Inner card content wrapper — sits above pseudo-elements */
.pc-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 28px 24px;
}

.pc-meta { margin-bottom: 16px; }
.pc-index {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 4px;
}
.pc-domain {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--card-accent);
    margin-bottom: 10px;
    opacity: 0.9;
}
.pc-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}
.pc-meta-sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
    margin-top: 4px;
}

.pc-body { flex: 1; display: flex; flex-direction: column; }
.pc-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin-bottom: 20px;
    flex: 1;
}

/* Featured card — same flex layout, no special grid override needed */
.pc-featured { min-height: 460px; }

/* Visual banner / logo zone at top of card */
.pc-visual {
    width: 100%;
    aspect-ratio: 16/7;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pc-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
    pointer-events: none;
}

.pc-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease, opacity 0.3s;
    opacity: 0.88;
}

.portfolio-card:hover .pc-visual-img { transform: scale(1.04); opacity: 1; }

.pc-visual-icon {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pc-visual-icon svg { width: 80px; height: 80px; filter: drop-shadow(0 0 20px var(--card-accent)); }

/* When a card has a visual banner, reduce inner padding top */
.pc-has-visual .pc-inner { padding-top: 20px; }

.pc-modules {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.pc-module {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
}

.pc-module:last-child { border-bottom: none; }
.pc-module:hover { background: rgba(255,255,255,0.04); }

.pc-module-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-module-label::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--card-accent);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--card-accent);
}

.pc-module-desc {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.72;
}

.pc-wip {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 700;
    margin-left: 4px;
    opacity: 0.85;
}

.pc-wip-legend {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pc-wip-legend span {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.75rem;
}

/* Digital Expositor logo visual */
.pc-visual-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pc-expo-logo {
    width: 60%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(160,148,183,0.8)) drop-shadow(0 0 60px rgba(160,148,183,0.4));
    transition: transform 0.4s ease, filter 0.4s ease;
}
.pc-expo:hover .pc-expo-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(160,148,183,1)) drop-shadow(0 0 80px rgba(160,148,183,0.7));
}

/* Detour App card */
.pc-name-link {
    text-decoration: none;
    display: block;
}

.pc-detour-logo-wrap {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    aspect-ratio: 16/7;
    background: #000;
}

.pc-detour-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s;
    opacity: 0.85;
}

.pc-name-link:hover .pc-detour-logo { transform: scale(1.03); opacity: 1; }

.pc-ext-link {
    font-size: 0.85rem;
    color: var(--cyan);
    margin-left: 4px;
    transition: color 0.2s;
}

.pc-name-link:hover .pc-ext-link { color: #00f0ff; }

.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 16px; }

.pc-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--card-accent);
    border: 1px solid var(--card-accent);
    padding: 4px 10px;
    border-radius: 2px;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.portfolio-card:hover .pc-tag { opacity: 1; }

/* Detour App card */
.pc-name-link {
    text-decoration: none;
    display: block;
}

.pc-detour-logo-wrap {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(95,122,140,0.25);
    aspect-ratio: 16/7;
    background: #000;
}

.pc-detour-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s;
    opacity: 0.85;
}

.pc-name-link:hover .pc-detour-logo { transform: scale(1.03); opacity: 1; }

.pc-ext-link {
    font-size: 0.85rem;
    color: var(--card-accent);
    margin-left: 4px;
    transition: color 0.2s;
}

/* Tech grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
}

.tech-item {
    background: var(--bg);
    padding: 22px 20px;
    transition: background 0.2s;
}

.tech-item:hover { background: var(--bg2); }

.tech-category {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tech-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 7px;
}

.tech-list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--violet-light); flex-shrink: 0; }

/* ─── SERVICES PAGE ─── */
.services-tiers {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--border);
}

.tier-card {
    background: var(--bg);
    padding: 48px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}

.tier-card:hover { background: var(--bg2); }

.tier-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
}

.tier-card.t1::before { background: linear-gradient(to bottom, rgba(139,99,232,0.6), rgba(139,99,232,0.1)); }
.tier-card.t2::before { background: linear-gradient(to bottom, rgba(0,212,255,0.8), rgba(0,212,255,0.2)); }
.tier-card.t3::before { background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.3)); }

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 0;
    margin-bottom: 20px;
}

.t1 .tier-badge { color: var(--violet-light); border: 1px solid rgba(139,99,232,0.3); background: rgba(139,99,232,0.08); }
.t2 .tier-badge { color: var(--cyan); border: 1px solid rgba(0,212,255,0.3); background: rgba(0,212,255,0.06); }
.t3 .tier-badge { color: var(--gold); border: 1px solid rgba(201,168,76,0.3); background: rgba(201,168,76,0.06); }

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 32px;
}

.tier-title-block {}

.tier-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.tier-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tier-pricing {
    text-align: right;
    flex-shrink: 0;
}

.tier-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.t1 .tier-price { color: var(--violet-light); }
.t2 .tier-price { color: var(--cyan); }
.t3 .tier-price { color: var(--gold); }

.tier-price-note {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
}

.tier-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.tier-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.tier-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.tier-includes {}

.tier-includes-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 14px;
}

.tier-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.tier-item-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

.t1 .tier-item-dot { background: var(--violet-light); }
.t2 .tier-item-dot { background: var(--cyan); }
.t3 .tier-item-dot { background: var(--gold); }

.tier-team {
    margin-top: 24px;
    padding: 20px;
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.2);
}

.tier-team-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.tier-team-members {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.team-member {
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 8px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--gold-light);
}

.team-member.tbd { color: var(--text-subtle); border-style: dashed; }

.page-cta-block {
    margin-top: 80px;
    padding: 56px 48px;
    background: linear-gradient(135deg, rgba(99,55,255,0.08) 0%, rgba(0,220,220,0.05) 100%);
    border: 1px solid var(--border);
    border-left: 3px solid var(--violet-light);
}
.page-cta-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
}
.page-cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}
.page-cta-body {
    font-size: 0.95rem;
    color: var(--text-subtle);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.tier-cta-wrap {
    margin-top: 28px;
}

/* ─── HOME PAGE ─── */
#page-home {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.home-hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 68px);
}

.home-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.h-grid {
    position: absolute;
    inset: 0;
    background-image:
    linear-gradient(rgba(107,63,204,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,63,204,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.h-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
}

.h-orb-1 { width: 500px; height: 500px; background: var(--violet); top: -100px; left: -80px; }
.h-orb-2 { width: 400px; height: 400px; background: var(--cyan); bottom: -80px; right: 100px; opacity: 0.12; }
.h-orb-3 { width: 300px; height: 300px; background: var(--gold); top: 50%; left: 45%; opacity: 0.07; }

.home-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 80px 80px;
    max-width: 640px;
}

.home-eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 20px;
}

.home-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.home-title .t1 { color: var(--text); }
.home-title .t2 { color: var(--violet-light); }
.home-title .t3 {
    background: linear-gradient(90deg, var(--cyan), var(--violet-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-sub {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 460px;
    margin-bottom: 36px;
}

.home-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--cyan);
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.btn-primary:hover { background: #00f0ff; transform: translateY(-1px); }

.btn-ghost {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border);
    padding: 14px 28px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none; 
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); transform: translateY(-1px); }

.btn-purple {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: #6B3FCC;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-purple:hover {
    background: #7C4FE0;
    transform: translateY(-1px);
}
.btn-gold {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1a1a1a; /* darker text for contrast */
    background: #B99B5A;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-gold:hover {
    background: #D4B773;
    transform: translateY(-1px);
}
.home-logo-panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(107,63,204,0.2);
}

.lr1 { width: 240px; height: 240px; animation: spin 20s linear infinite; border-top-color: rgba(107,63,204,0.5); }
.lr2 { width: 200px; height: 200px; animation: spin 14s linear infinite reverse; border-top-color: rgba(0,212,255,0.4); }
.lr3 { width: 160px; height: 160px; animation: spin 9s linear infinite; border-top-color: rgba(201,168,76,0.3); }

.logo-glow {
    position: absolute;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(107,63,204,0.3), transparent 70%);
    border-radius: 50%;
}

.logo-img-hero {
    width: 80px; height: 80px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(107,63,204,0.8));
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--border);
    gap: 1px;
}

.stat-item {
    background: var(--bg2);
    padding: 28px 32px;
    text-align: center;
    transition: background 0.2s;
}
.stat-item:hover { background: var(--surface); }

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-num span { color: var(--cyan); }

.stat-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

/* ─── TRANSITIONS ─── */
.page { animation: none; }
.page.active { animation: pageIn 0.35s ease forwards; }

@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--violet-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet-light); }

/* ─── SUCCESS STATE ─── */
.form-success {
    display: none;
    text-align: center;
    padding: 48px;
    border: 1px solid rgba(0,212,255,0.2);
    background: rgba(0,212,255,0.04);
}

.form-success.show { display: block; }
.form-success-icon { font-size: 2.5rem; margin-bottom: 16px; }
.form-success-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.4rem; margin-bottom: 10px; color: var(--cyan); }
.form-success-body { font-size: 0.9rem; color: var(--text-muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
    .home-hero { grid-template-columns: 1fr; }
    .home-logo-panel { display: none; }
}

@media (max-width: 820px) {
    :root { --nav-w: 200px; }
    #top-nav { padding: 0 24px; }
    .top-nav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none; /* Firefox */
    }
    .top-nav-links::-webkit-scrollbar { display: none; } /* Chrome/Safari */
    .inner-page { padding: 40px 24px 80px; }

    /* ── How We Work: phase accordion fixes ── */
    .phase-item.open .phase-body { max-height: 400px; }
    .phase-d { padding-left: 28px; }
    .phase-header { padding: 18px 20px; }

    .tier-header { flex-direction: column; gap: 16px; }
    .tier-pricing { text-align: left; }
    .tier-body { grid-template-columns: 1fr; gap: 24px; }
    .ps-track { height: 480px; flex-direction: column; }
    .values-grid { grid-template-columns: 1fr 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .project-form-wrap { grid-template-columns: 1fr; }
    .portfolio-cards { grid-template-columns: 1fr; }
    .pc-featured { min-height: auto; }
    .home-stats { grid-template-columns: repeat(2, 1fr); }
    
    /* ── Portfolio card mobile fixes ── */
    /* Fixed height causes content clipping — let cards size to content */
    .portfolio-card { height: auto; min-height: 320px; transition: min-height 0.35s ease; }
    .card-inner { height: auto; min-height: 320px; }
    .card-front, .card-back {
        position: relative;
        min-height: 320px;
        height: auto;
        opacity: 1;
        transition: opacity 0.25s ease;
    }
    /* Hide back by default — fade out */
    .card-back { display: flex; opacity: 0; max-height: 0; overflow: hidden; pointer-events: none; transition: opacity 0.25s ease, max-height 0s ease 0.25s; }
    /* On flip — fade front out, fade back in */
    .portfolio-card.flipped .card-back { opacity: 1; max-height: 9999px; pointer-events: auto; transition: opacity 0.25s ease 0.1s, max-height 0s ease; }
    .portfolio-card.flipped .card-front { opacity: 0; max-height: 0; overflow: hidden; pointer-events: none; transition: opacity 0.25s ease, max-height 0s ease 0.25s; }
    /* Kill hover lift, hover glow & resting glow — all cause visual glitches on auto-height */
    .portfolio-card:hover { transform: none; box-shadow: none; }
    .portfolio-card:hover::before { opacity: 0.18; }
    .pc-grace, .pc-kfg, .pc-detour, .pc-expo { box-shadow: none; }
    .pc-inner { height: auto; }
    .pc-desc { flex: none; }
}

css/* ─── START A PROJECT PAGE ─── */

.start-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 48px 100px;
}

.start-eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.start-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 12px;
}

.start-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 48px;
}

/* ── Form sections ── */

.form-section {
    margin-bottom: 40px;
}

.form-section-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Field rows & groups ── */

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.field-row.single {
    grid-template-columns: 1fr;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.field-label .req {
    color: var(--cyan);
    margin-left: 2px;
}

.field-input,
.field-textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    line-height: 1.5;
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: var(--text-subtle);
}

.field-input:focus,
.field-textarea:focus {
    border-color: var(--violet-light);
    background: var(--surface2);
}

.field-textarea {
    resize: vertical;
    min-height: 110px;
}

/* ── Hide native radio/checkbox inputs ── */

.tile-input,
.check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ── Budget tiles (radio) ── */

.budget-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.budget-label {
    display: block;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 14px 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.budget-label:hover {
    border-color: var(--border2);
    background: var(--surface2);
}

.tile-input:checked + .budget-label {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.06);
}

.budget-tile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text);
    margin-bottom: 3px;
}

.tile-input:checked + .budget-label .budget-tile-name {
    color: var(--cyan);
}

.budget-tile-sub {
    font-size: 0.65rem;
    color: var(--text-subtle);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Timeline tiles (radio) ── */

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.timeline-label {
    display: block;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 14px 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.timeline-label:hover {
    border-color: var(--border2);
    background: var(--surface2);
}

.tile-input:checked + .timeline-label {
    border-color: var(--violet-light);
    background: rgba(139, 99, 232, 0.06);
}

.timeline-tile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text);
    margin-bottom: 3px;
}

.tile-input:checked + .timeline-label .timeline-tile-name {
    color: var(--violet-light);
}

.timeline-tile-sub {
    font-size: 0.65rem;
    color: var(--text-subtle);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Service checkboxes ── */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.service-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 11px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.service-label:hover {
    border-color: var(--border2);
    background: var(--surface2);
}

.check-input:checked + .service-label {
    border-color: var(--violet-mid);
    background: rgba(107, 63, 204, 0.07);
}

.check-box {
    width: 15px;
    height: 15px;
    border: 1px solid var(--border2);
    flex-shrink: 0;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}

.check-input:checked + .service-label .check-box {
    background: var(--violet-mid);
    border-color: var(--violet-mid);
}

.check-box::after {
    content: '';
    display: none;
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: 1.5px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.check-input:checked + .service-label .check-box::after {
    display: block;
}

.service-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.check-input:checked + .service-label .service-name {
    color: var(--text);
}

/* ── Referral pills (radio) ── */

.referral-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.referral-label {
    display: block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-subtle);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    user-select: none;
}

.referral-label:hover {
    color: var(--text-muted);
    border-color: var(--border2);
}

.tile-input:checked + .referral-label {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.06);
}

/* ── Submit row ── */

.submit-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.submit-note {
    font-size: 0.75rem;
    color: var(--text-subtle);
    line-height: 1.5;
}

.submit-note strong {
    color: var(--text-muted);
    font-weight: 400;
}

/* ── Responsive ── */

@media (max-width: 820px) {
    .start-wrap { padding: 40px 24px 80px; }
    .field-row { grid-template-columns: 1fr; }
    .budget-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .submit-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .service-grid { grid-template-columns: 1fr; }
}

.service-tier-sub {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    margin-top: 2px;
    text-transform: none;
}

/* This targets the radio button when checked and styles the label border/bg */
.tile-input:checked + .service-label {
    border-color: var(--cyan) !important;
    background: rgba(0, 212, 255, 0.08) !important;
    color: var(--text);
}

/* This fills in the little square 'check-box' when selected */
.tile-input:checked + .service-label .check-box {
    background: var(--cyan);
    border-color: var(--cyan);
}

/* This adds a white checkmark inside that box using a pseudo-element */
.tile-input:checked + .service-label .check-box::after {
    content: '';
    display: block;
    position: absolute;
    
    /* Centering logic */
    top: 45%; /* 45% looks visually more centered than 50% for checkmarks */
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    
    /* Checkmark shape */
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    
    /* Reset the previous margin */
    margin: 0;
}

.form-disclaimer {
    margin: 40px 0 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--border);
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--text-subtle);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .start-wrap {
        padding-top: 80px; /* Slightly less on mobile, but still plenty of room */
    }
}

.pc-detour {
    --card-accent: var(--cyan); /* Or whatever color matches Detour */
}

/* Ensure the logo wrapper doesn't hide the image */
.pc-visual-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Coming Soon Banner System */
.tier-card.coming-soon {
    position: relative;
    overflow: hidden; /* Clips the banner */
    opacity: 0.8;    /* Slight dimming to indicate unavailable status */
    pointer-events: none; /* Disables clicks on the card */
}

.coming-soon-banner {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--bg);
    padding: 6px 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    border-bottom-left-radius: 4px; /* Optional: rounds the inner corner slightly */
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-response-note {
    font-size: 0.65rem;
    color: var(--text-subtle);
    margin-top: 12px;
    font-style: italic;
}