/* =========================
   SYNCHRONIA DESIGN SYSTEM
========================= */

:root {
  /* Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text-primary: rgba(255, 255, 255, 0.95);
  --color-text-secondary: rgba(255, 255, 255, 0.7);

  /* Layout */
  --frame-padding: 24px;
  --max-content-width: 1200px;

  /* Typography */
  --font-family-base: 'Inter', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-bold: 600;

  --font-size-h1: clamp(2.5rem, 5vw, 3.5rem); /* ~28pt visual */
  --font-size-body: 1rem;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 72px;


  /* Line accent */

  --line-accent-color: rgba(80, 60, 160, 0.8);
  --line-angle: -6deg;

  /* Frame */
  --frame-padding: 0px;

}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  text-decoration: none;
  cursor: pointer;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.25s ease;
}

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

/* Primary (filled) */
.btn--primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.btn--primary:hover {
  background: transparent;
  color: #ffffff;
}

/* Secondary (outline) */
.btn--secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.6);
}

.btn--secondary:hover {
  background: #ffffff;
  color: #000000;
}


/* =========================
   RESET
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-light);
}

html, body {
  height: 100%;
  overflow: hidden;
}

.site-scroll {
  position: fixed;
  inset: var(--frame-padding);

  overflow-y: auto;
  overflow-x: hidden;

  pointer-events: auto;
}

/* =========================
   FRAME
========================= */

body {
  background: var(--color-white);
}

.site-frame {
  display: none;
  position: fixed;
  inset: 0;

  border: var(--frame-padding) solid var(--color-white);
  background: transparent;

  pointer-events: none; /* frame itself is passive */
}

/* =========================
   NAVIGATION (BASE)
========================= */

.nav {
  /* Theme variables (default = light text) */
  --nav-text-color: var(--color-text-primary);
  --nav-border-color: rgba(255, 255, 255, 0.6);

  position: absolute;
  top: 0;
  left: 25px;
  right: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: var(--space-md);
  z-index: 10;

  color: var(--nav-text-color);
  pointer-events: auto;

text-transform: uppercase;
font-weight: 600;
}

/* =========================
   NAV LINK HOVER EFFECT
========================= */

.nav-right a {
  position: relative;
  padding-bottom: 4px;
}

/* underline */
.nav-right a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;
  background: #00f3ff;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* hover + keyboard */
.nav-right a:hover::after,
.nav-right a:focus-visible::after {
  transform: scaleX(1);
}

.nav-right a::after {
  opacity: 0;
  transform: scaleX(0);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}

.nav-right a:hover::after,
.nav-right a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}


/* =========================
   HAMBURGER MENU (CSS ONLY)
========================= */

/* Hide the checkbox logic from everyone */
.nav-toggle {
  display: none;
}

/* Hide hamburger icon on Desktop */
.nav-hamburger {
  display: none;
}

/* MOBILE STYLES */
@media (max-width: 768px) {

  
  /* --- 1. Hamburger Icon (Visible only on mobile) --- */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 20; 
  }
  
  .nav-hamburger .line {
    width: 100%;
    height: 2px;
    background-color: var(--nav-text-color);
    transition: opacity 0.3s;
  }

  /* --- 2. The Slide-out Menu --- */
  .nav-right {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 320px;
    
    background: #ffffff;
    padding: 80px 40px; 
    
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    
    /* Hidden state */
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 30; /* Very high z-index to sit on top of everything */
  }

  /* --- 3. FORCE BLACK TEXT --- */
  .nav-right a {
    color: #000000 !important;
    font-size: 1.25rem;
    font-weight: 400;
    text-decoration: none;
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
  }
  
  .nav-right .lang-switch {
    color: #000000 !important;
    border-color: #000000 !important;
    margin-top: 15px;
    font-size: 1rem;
    padding: 8px 16px;
  }

  /* --- 4. Close Button --- */
  .nav-close-btn {
    display: block; /* Visible */
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    color: #000000;
    padding: 10px;
  }
  
  /* Hover effect for close button */
  .nav-close-btn:hover {
    opacity: 0.6;
  }

  /* --- 5. Logic: Open/Close --- */
  
  /* Slide in when checked */
  #nav-toggle:checked ~ .nav-right {
    transform: translateX(0);
  }

  /* Optional: Fade out the hamburger icon when menu is open 
     so you only see the Close button inside */
  #nav-toggle:checked ~ .nav-hamburger {
    opacity: 0; 
    pointer-events: none;
  }
}

/* Ensure Close button is hidden on Desktop */
@media (min-width: 769px) {
  .nav-close-btn {
    display: none;
  }
}

/* =========================
   LOGO
========================= */

.logo {
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--nav-text-color);
}

.logo-sub {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  opacity: 0.7;
  color: var(--nav-text-color);
}


/* =========================
   HEADER SVG LOGO
========================= */

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  line-height: 1;
}

.nav-logo {
  position: relative;
  display: inline-block;
}

.nav-logo {
  z-index: 1;
}

/* =========================
   C LETTER GLOW + FLASHING EFFECT (Instant Start & Apple Optimized)
========================= */

.logo-letter-c {
  /* 1. Base State - Visible immediately */
  fill: #ffffff; 
  position: relative;
  z-index: 2;

  /* 2. Safari/Apple stability 'hooks' */
  -webkit-transform: translateZ(0); /* Triggers GPU for smooth motion */
  -webkit-font-smoothing: antialiased;
  will-change: filter, fill; /* Tells Safari to pre-optimize the glow */

  /* 3. Animation - Instant start */
  animation:
    logo-fill-c 0.8s ease forwards,
    letterGlowPulse 4.5s ease-in-out infinite;
    
  animation-delay: 0s, 0s; 
}

/* Keeps the letter solid white */
@keyframes logo-fill-c {
  0% {
    fill: #ffffff;
  }
  100% {
    fill: #ffffff;
  }
}

/* Blue neon glow pulse with WebKit support */
@keyframes letterGlowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(0,191,255,0));
    -webkit-filter: drop-shadow(0 0 0px rgba(0,191,255,0));
  }

  25% {
    filter: drop-shadow(0 0 10px rgba(0,191,255,0.7)) drop-shadow(0 0 20px rgba(0,191,255,0.35));
    -webkit-filter: drop-shadow(0 0 10px rgba(0,191,255,0.7)) drop-shadow(0 0 20px rgba(0,191,255,0.35));
  }

  50% {
    filter: drop-shadow(0 0 14px rgba(0,191,255,1)) drop-shadow(0 0 28px rgba(0,191,255,0.7));
    -webkit-filter: drop-shadow(0 0 14px rgba(0,191,255,1)) drop-shadow(0 0 28px rgba(0,191,255,0.7));
  }

  75% {
    filter: drop-shadow(0 0 10px rgba(0,191,255,0.7)) drop-shadow(0 0 20px rgba(0,191,255,0.35));
    -webkit-filter: drop-shadow(0 0 10px rgba(0,191,255,0.7)) drop-shadow(0 0 20px rgba(0,191,255,0.35));
  }
}

.nav-logo-svg {
  height: 24px;   
  overflow: visible; 
}

/* Logo color follows nav theme */
.nav {
  --logo-color: #ffffff;
}

.nav--dark {
  --logo-color: #000000;
}

.nav-logo-svg .logo-mark path,
.nav-logo-svg .logo-mark polygon {
  fill: var(--logo-color);
}

@media (max-width: 768px) {
  .nav-logo-svg {
    height: 22px;
  }
}

/* =========================
   LANDING HEADER SVG LOGO REVEAL ANIMATION
========================= */

.home .nav-logo {
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: 0.1s;
}

.home .nav-logo.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   NAV LINKS
========================= */

.nav-right {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-right a {
  color: var(--nav-text-color);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch {
  background: transparent;
  border: 1px solid var(--nav-border-color);
  color: var(--nav-text-color);
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
}

/* =========================
   NAV VARIANTS
========================= */

/* Dark text for light backgrounds */
.nav--dark {
  --nav-text-color: #000000;
  --nav-border-color: rgba(0, 0, 0, 0.4);
}

/* =========================
   SCROLLBAR STYLING
========================= */

.site-scroll {
  inset: 0;
}

/* Firefox */
.site-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
}

/* WebKit (Chrome, Safari, Edge) */
.site-scroll::-webkit-scrollbar {
  width: 1px;
}

.site-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.site-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
}

.site-scroll::-webkit-scrollbar-thumb {
  transition: background-color 0.3s ease;
}

.site-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;

  display: flex;
  align-items: center;   /* vertical center */
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}


.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0) 100%
  );
}

.site-frame,
.hero-video,
.hero-overlay {
  pointer-events: none;
}

.hero-logo {
  pointer-events: none;
}

.hero-logo.is-visible {
  pointer-events: auto;
}

.hero-logo.is-fading-out {
  pointer-events: none;
}

.hero-content {
  opacity: 0;
  pointer-events: none;
}

.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}



/* =========================
   HERO CONTENT
========================= */

.hero-content {
  position: relative;
  z-index: 2;

  max-width: var(--max-content-width);
  padding: var(--space-xl) var(--space-lg);

  display: block;

  color: var(--color-text-primary);
}

.hero-content h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-light);
  margin: 0 0 var(--space-md) 0;
}

.hero-content p {
  max-width: 520px;
  font-size: var(--font-size-body);
  color: #fff;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
}

.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.hero-content.is-visible .btn {
  transition-delay: 0.1s;
}


/* =========================
   ABOUT SECTION
========================= */

.about-section {
  position: relative;
  isolation: isolate;

  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);

  padding: var(--space-xl) var(--space-lg);
  min-height: 100vh;
  align-items: stretch;
}

/* Base video styling */
.about-section .video-background video {
  position: absolute;
  top: 50%;
  left: 50%;

  min-width: 100%;
  min-height: 100%;

  transform: translate(-50%, -50%);
  object-fit: cover;

  pointer-events: none;


}

/* Show desktop by default */
.video-mobile {
  display: none;
}

/* Switch on mobile */
@media (max-width: 768px) {
  .video-desktop {
    display: none;
  }

  .video-mobile {
    display: block;
  }
}

/* About gradient overlay */
.about-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(105, 109, 116, 0),
    rgba(105, 109, 116, 0.35)
  );

  z-index: 2;
  pointer-events: none;
}


/* Content above everything */
.about-content,
.about-visuals {
  position: relative;
  z-index: 4;
}


/* =========================
   CONTENT LAYERS
========================= */


.about-content {
  max-width: 940px;
}

.eyebrow {
  display: block;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: #ffffff;
  font-weight: 900;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 2.15rem);
  font-weight: var(--font-weight-light);
  margin-bottom: var(--space-md);
  color: #ffffff;
}

.about-content h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-sm);
  color: #ffffff;
}


.about-content p {
  line-height: 1.7;
  color: #ffffff;
}

/* =========================
   GLASS COLUMNS
========================= */

.about-columns-glass {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);

  margin-top: none;
  padding: var(--space-md);

  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.about-columns-glass::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  border-radius: 20px;

  border: 1px solid rgba(255,255,255,0.18);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.06);

  z-index: 0;
}

.about-col {
  position: relative;
  z-index: 1;
}

.about-columns-glass::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.15) 0%,
    rgba(255,255,255,0.03) 40%,
    rgba(255,255,255,0.08) 100%
  );

  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 768px) {

  .about-columns-glass {
    grid-template-columns: 1fr;   /* stack columns */
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

}
@media (max-width: 900px) {

  .about-section {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
    padding: var(--space-lg);
  }

  .about-content {
    max-width: 100%;
margin-top:1.2rem;
  }

}
@media (max-width: 768px) {

  .about-columns-glass::before {
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
  }

}


/* =========================
   VISUALS
========================= */



.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: none;
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: none;
}

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

/* =========================
   ANIMATIONS
========================= */

@keyframes imageReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

@keyframes diagonalDrift {
  0% { transform: rotate(-6deg) translateX(0); }
  50% { transform: rotate(-6deg) translateX(40px); }
  100% { transform: rotate(-6deg) translateX(0); }
}

/* =========================
   VISION SECTION
========================= */

.vision-section {
display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-lg);
    background: #696D74;
    min-height: 100vh;
    align-items: center;
}

/* =========================
   BACKGROUND
========================= */

.vision-bg {
  position: absolute;
  inset: 0;

  background: url("../assets/") center / cover no-repeat;
  z-index: 0;
}

.vision-overlay {
position: absolute;
    inset: 0;
    background:;
    z-index: 1;
}

/* =========================
   CONTENT
========================= */

.vision-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.vision-content .eyebrow {
  color: rgba(255,255,255,0.8);
}

.vision-content h1 {
font-size: clamp(2rem, 4vw, 2.15rem);
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-md);
color:#fff;
}

.vision-content p {
  line-height: 1.7;
  color: #fff;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */

@media (max-width: 768px) {
  /* Stack the grid columns */
  .about-section, 
  .vision-diagram {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Hide the horizontal line (breaks flow on mobile) */
  .vision-line {
    display: none;
  }
  
  /* Shrink the white frame */
  :root {
    --frame-padding: 12px; 
  }
  
  /* Safety: Wrap nav links if screen is very small */
  .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
}


/* =========================
   CAREERS PAGE STYLES
========================= */

.careers-section {
  position: relative; /* Necessary for absolute positioning of video */
  min-height: 100vh;
  padding: var(--space-xl) var(--space-lg);
  
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: var(--space-xl);
  
  /* Fallback color while video loads */
  background-color: #696D74; 
  overflow: hidden; /* Crops the video so it doesn't spill out */
}

/* =========================
   VIDEO BACKGROUND
========================= */
.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Bottom layer */
}

.video-background video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.video-background video {
  image-rendering: auto;
  -webkit-transform: translateZ(0);
}

/* The semi-transparent white sheet over the video */
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0) 100%
  );  z-index: 1; /* Sits on top of video */
}

/* --- CONTENT Z-INDEX FIX --- */
/* Important: Lift content above the video layers */
.careers-content,
.careers-visual {
  position: relative;
  z-index: 2; /* Sits on top of overlay */

}

/* Typography overrides for light background */
.careers-content h1 {
font-size: clamp(2rem, 4vw, 2.15rem);
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-md);
max-width: 620px;
  color: #fff;

}

.careers-content p {
  font-size: 1rem;
  color: #fff;
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

/* Primary Button Style */
.btn-primary {
  display: inline-block;
  background-color: #2A2A2A;
  color: #ffffff;
  text-decoration: none;
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #444;
}


/* =========================
   CONTACT PAGE STYLES
========================= */

.contact-section {
  padding: var(--space-xl) var(--space-lg);
  min-height: 100vh;
  background-color: #696D74; /* Clean light background */
  color: #fff	;
  display: flex;
  flex-direction: column;
}

.page-title {
font-size: clamp(2rem, 4vw, 2.15rem);
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-md);
z-index:2;
}

/* --- THE GRID LAYOUT --- */
.contact-grid {
  display: grid;
  /* Creates exactly 3 columns */
  grid-template-columns: repeat(3, 1fr);
  /* Rows will fill automatically */
  row-gap: var(--space-lg);
  column-gap: var(--space-lg);
  width: 100%;
  max-width: 1100px;
  z-index:2;
}

/* --- INDIVIDUAL CARDS --- */
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Small spacing between lines */
  font-size: 1rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700; /* Bold Name */
  margin: 0 0 4px 0;
}

.contact-card .role {
  font-weight: 400;
  margin-bottom: 8px;
  display: block;
}

.contact-card a {
  text-decoration: none;
  color: #fff;
  opacity: 0.9;
  transition: opacity 0.2s;
  line-height: 1.5;
}

.contact-card a:hover {
  opacity: 0.6;
}

.contact-card p {
  margin: 0;
  line-height: 1.6;
}

.info-card h3 {
  margin-bottom: 8px;
}

/* --- THE SEPARATOR LINE --- */
.grid-separator {
  /* Span across all 3 columns */
  grid-column: 1 / -1; 
  width: 100%;
  height: 1px;
  
background-image: linear-gradient(to right, #ccc 0%, #ccc 50%, transparent 100%);  
  background-repeat: repeat-x;
}

/* =========================
   MOBILE STYLES: CONTACT SECTION
========================= */

@media (max-width: 768px) {

  .contact-grid {
    grid-template-columns: 1fr; /* Force single column */
    column-gap: 0;
    row-gap: 32px; /* Add breathing room between people */
    width: 100%;
  }

  /* 2. Adjust Title for Mobile */
  .page-title {
    font-size: 2rem; /* Smaller than desktop 3rem */
    margin-top: 40px; /* Space from the header */
    margin-bottom: 32px;
  }

  /* 3. Hide the empty desktop placeholder slot */
  .contact-card.empty {
    display: none;
  }

  /* 4. Fix the Separator Line */
  .grid-separator {
    margin: 24px 0; /* Less vertical space */
    background-size: 12px 1px; /* Smaller dashes looks better on small screens */
  }

  /* 5. Ensure Container Padding is right */
  .contact-section {
    padding-top: 64px; /* Clear the fixed header */
    padding-left: 46px;
    padding-right: 20px;
    min-height: auto;
  }
}

/* =========================
   HERO LOGO CONTAINER
========================= */

.hero-logo {
  position: absolute;
  inset: 0;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s ease, transform 0.8s ease;

  color: #000; /* 🔑 THIS FIXES EVERYTHING */
}

.hero-logo.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* =========================
   SVG LOGO
========================= */

.logo-svg {
  width: 420px;
  max-width: 80vw;
}

/* All logo shapes */
.logo-paths path,
.logo-paths polygon {
  fill: transparent;
  stroke: #000;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

/* Animate when logo becomes visible */
.hero-logo.is-visible .logo-paths path,
.hero-logo.is-visible .logo-paths polygon {
  animation:
    logo-draw 4s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    logo-fill 0.8s ease forwards;
  animation-delay:
    0s,
    1.6s;
}

/* Logo fade-out state */
.hero-logo.is-fading-out {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* =========================
   KEYFRAMES
========================= */

@keyframes logo-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes logo-fill {
  to {
    fill: #000;
    stroke-width: 0;
  }
}

/* =========================
   MOTION SAFETY
========================= */

@media (prefers-reduced-motion: reduce) {
  .logo-paths path,
  .logo-paths polygon {
    animation: none;
    fill: #000;
    stroke: none;
  }
}

/* =========================
   HERO TIMELINE OVERRIDES
========================= */

.hero-content {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}


.hero-content.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

main {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

main.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FRAME DISABLED
========================= */

:root {
  --frame-padding: 0px;
}

.site-frame {
  display: none;
}

.site-scroll {
  inset: 0;
}


