/* ============================================================
   STYLE.CSS  —  Glass Break  —  standalone
   ============================================================ */

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

html { scroll-behavior: auto; }

body {
  background: #FCFDFE;
  background: linear-gradient(135deg, rgba(252, 253, 254, 1) 0%, rgba(192, 222, 240, 1) 100%);
  color: #112d49;
  font-family: 'BrandonGrotesque', 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── intro section (previous page) ──────────────────────────── */
#intro-section {
  position: relative;
  z-index: 5;          /* sits above the bg-aurora fixed layer */
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--intro-bg, #060c24);
}

.intro-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.5vh, 30px);
}

.intro-eyebrow {
  font-family: 'BrandonGrotesque', 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  font-size: clamp(0.60rem, 0.85vw, 0.76rem);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  display:none !important;
}

.intro-heading {
  font-family: 'BrandonGrotesque', 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.88);
  white-space: pre-line;   /* respects \n in the config string */
}

.intro-sub {
  font-family: 'BrandonGrotesque', 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 200;
  font-size: clamp(0.62rem, 0.9vw, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-top: clamp(8px, 1.5vh, 20px);
}

/* ── ambient background lights ──────────────────────────────── */
#bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}

.bg-bubble {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, border-radius, width, height;
  pointer-events: none;
  transform-origin: center center;
}

/* ── pinned section ──────────────────────────────────────────── */
#glass-section {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 10;         /* above intro (5) once GSAP pins it as fixed */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;   /* bg-aurora lights show through */
}

/* ── glass stage (centred viewport container) ────────────────── */
#glass-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: visible;
}

/* ── Three.js canvas (shard rendering) ───────────────────────── */
/* Covers the full stage; JS injects this as #glass-stage's       */
/* first child. Shards are WebGL meshes with MeshPhysicalMaterial. */
#three-canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  z-index: 1;
}

/* ── shard container (crack SVG only — no shard divs) ────────── */
#glass-wrap {
  position: relative;
  /* sizing keeps 500:360 aspect ratio; JS reads these for scaling */
  width:  clamp(260px, 40vw, 500px);
  height: clamp(188px, 28.8vw, 360px);
  flex-shrink: 0;
  z-index: 2;       /* above Three.js canvas, crack lines on top of shards */
  pointer-events: none;
}

/* ── SVG crack overlay ───────────────────────────────────────── */
#crack-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  will-change: opacity;
}

#crack-svg .crack-line {
  fill: none;
  stroke-width: 0.6;
  filter: url(#crack-glow);
}

/* ── assembled glass panel ───────────────────────────────────── */
#glass-complete {
  position: absolute;
  /* JS sizes & positions to match #glass-wrap */
  pointer-events: none;
  opacity: 0;
  will-change: opacity, filter, transform;
  transform-origin: center center;
  z-index: 3;
}

#glass-shine {
  width: 100%;
  height: 100%;

  /* pale sky-blue frosted face — matches fullglass.jpg */
  background:
    /* top-left specular reflection streak */
    linear-gradient(
      148deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(210, 238, 252, 0.18) 8%,
      transparent 22%
    ),
    /* main face — pale teal blue */
    linear-gradient(
      132deg,
      rgba(185, 225, 248, 0.58) 0%,
      rgba(155, 208, 235, 0.68) 38%,
      rgba(145, 200, 230, 0.64) 65%,
      rgba(165, 215, 242, 0.58) 100%
    );

  /* asymmetric borders show glass thickness (thick left/bottom = depth edge) */
  border-top:    1.5px solid rgba(215, 238, 255, 0.82);
  border-right:  1.5px solid rgba(195, 225, 248, 0.58);
  border-bottom: 1.5px   solid rgba(115, 172, 215, 0.72);
  border-left:   1.5px   solid rgba(105, 162, 208, 0.80);

  border-radius: 3px;

  /* frosted-glass blur of whatever is behind */
  backdrop-filter:         blur(22px) saturate(1.25) brightness(2.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.25) brightness(2.2);

  box-shadow:
    /* outer soft glow */
    0 0 90px  rgba(140, 200, 240, 0.28),
    0 0 200px rgba(100, 170, 220, 0.12),
    /* inner top-left bevel highlight */
    inset  3px  3px 0   rgba(255, 255, 255, 0.30),
    /* inner depth shadow on right/bottom */
    inset -2px -2px 12px rgba(80,  140, 195, 0.15),
    /* subtle inner ambient */
    inset 0 0 40px rgba(160, 215, 245, 0.08);
}

/* ── glass-panel text ────────────────────────────────────────── */
#glass-text-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 20px);
  pointer-events: none;
  z-index: 4;
}

.glass-text-line {
  font-family: 'BrandonGrotesque', 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(22, 58, 102, 0.88);
  white-space: nowrap;
  opacity: 0;
  text-align: center;
  will-change: opacity, transform, filter;
}

/* ── paragraph layer ─────────────────────────────────────────── */
#para-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.para {
  position: absolute;
  text-align: center;
  max-width: clamp(300px, 65vw, 1200px);
  font-family: 'BrandonGrotesque', 'Cormorant Garamond', Georgia, serif;
  color: #112d49;
  line-height: 1.48;
  opacity: 0;
  will-change: transform, opacity, filter;
  letter-spacing:4px;
}

/* generic inline span inside a .para — override per-instance with a class */
.para span {
  display: block;
  font-style: normal;
  color: #4c545c;
  font-size: 0.7em;
  letter-spacing:2px;
  padding-top:20px;
  padding-bottom:40px;
}

/* generic block inside a .para — override per-instance with a class */
.para div {
  display: block;
  font-style: normal;
  margin-top: 0.6em;
}

/* example 4-column layout block, used by #fourcolglass in config.js */
.para #fourcolglass {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  text-align: left;
}

.para #fourcolglass p {
  flex: 1 1 0;
  min-width: 120px;
  font-size: 0.6em;
  font-style: normal;
  line-height: 1.4;
}

/* ── eyebrow & label ─────────────────────────────────────────── */
#section-eyebrow,
#section-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.6rem, 0.9vw, 0.78rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
  z-index: 5;
}

#section-eyebrow { top:    7vh; 
  display:none !important;}
#section-label   { bottom: 7vh; }
