/* =============== Kinetic Scroll Marquee =============== */
.scroll-marquee {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  perspective: 1200px;
  cursor: default;
}

/* Animated dividers */
.sm-divider {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(201, 168, 107, 0.1); /* Subtle static line */
  z-index: 4;
}
.sm-divider.top { top: 0; }
.sm-divider.bottom { bottom: 0; }

.sm-divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  animation: sweepLine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.8;
}
.sm-divider.bottom::after {
  animation-direction: reverse;
  animation-duration: 7s;
}

@keyframes sweepLine {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* Subtle background breathing glow */
.scroll-marquee::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 150%, rgba(201, 168, 107, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 50% -50%, rgba(201, 168, 107, 0.05) 0%, transparent 60%);
  background-size: 100% 200%;
  animation: breathingBg 8s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
@keyframes breathingBg {
  0% { background-position: 50% 100%; }
  100% { background-position: 50% 0%; }
}



/* Interactive Cursor Aura */
.sm-light {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 107, 0.12) 0%, transparent 50%);
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  mix-blend-mode: screen;
}
.scroll-marquee.is-hovered .sm-light {
  opacity: 1;
}

/* 3D Wrapper */
.sm-3d-wrapper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateZ(-2deg); /* Initial 3D tilt */
  will-change: transform;
}

.sm-track {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 500;
  line-height: 1.1;
  will-change: transform;
  transition: opacity 0.5s var(--ease);
}

/* Secondary Track */
.sm-track-2 {
  font-size: clamp(2.5rem, 6vw, 6rem);
  transform: translateZ(-60px);
  opacity: 0.75;
}

/* Solid text (Vibrant animated gradient) */
.sm-solid {
  color: transparent;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-gold) 60%, var(--accent-cream) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  font-style: italic;
  animation: shine 5s ease-in-out infinite alternate;
  filter: drop-shadow(0px 0px 10px rgba(201, 168, 107, 0.15));
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* Outline text (Skeleton) */
.sm-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 168, 107, 0.6);
  transition: -webkit-text-stroke 0.4s var(--ease);
}

/* Hover effects */
.scroll-marquee.is-hovered .sm-track {
  opacity: 0.95;
}
.scroll-marquee.is-hovered .sm-track-2 {
  opacity: 1;
}
.scroll-marquee.is-hovered .sm-outline {
  -webkit-text-stroke: 1.5px rgba(201, 168, 107, 1);
}

/* SVG Starburst */
.sm-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  filter: drop-shadow(0px 0px 8px rgba(201, 168, 107, 0.4));
}
.sm-star-svg {
  width: clamp(30px, 5vw, 60px);
  height: clamp(30px, 5vw, 60px);
  animation: spinStar 10s linear infinite;
  will-change: transform;
}
.sm-track-2 .sm-star {
  color: rgba(201, 168, 107, 0.6);
  filter: none;
}
.sm-track-2 .sm-star-svg {
  width: clamp(20px, 3.5vw, 40px);
  height: clamp(20px, 3.5vw, 40px);
  animation-direction: reverse;
}

@keyframes spinStar {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  to { transform: rotate(360deg) scale(1); }
}

/* =============== Philosophy =============== */
.philosophy {
  position: relative;
  padding: clamp(7rem, 16vh, 14rem) var(--pad-x);
  display: grid;
  place-items: center;
}
.philosophy-aura {
  position: absolute;
  width: 70vmin;
  height: 70vmin;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 168, 107, 0.18),
    transparent 70%
  );
  filter: blur(80px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.8;
}

.philosophy-label {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2.25rem;
  position: relative;
  z-index: 2;
}
.philosophy-label .num {
  color: var(--accent-gold);
  font-weight: 500;
}
.philosophy-label .sep {
  width: 32px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.6;
}
.philosophy-label.light {
  color: rgba(20, 28, 26, 0.66);
}
.philosophy-label.light .num {
  color: var(--bg-deep);
}
.philosophy-label.light .sep {
  background: var(--bg-deep);
}
.philosophy-label.warm {
  color: rgba(20, 28, 26, 0.66);
}
.philosophy-label.warm .num {
  color: var(--accent-rust);
}
.philosophy-label.warm .sep {
  background: var(--accent-rust);
}
.philosophy-label.light-mini {
  font-size: 0.65rem;
  margin-bottom: 0.75rem;
  color: rgba(20, 28, 26, 0.6);
}
.philosophy-label.light-mini .num {
  color: var(--bg-deep);
}
.philosophy-label.light-mini .sep {
  background: var(--bg-deep);
  width: 20px;
}

.glass {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(14, 21, 19, 0.9);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    inset 0 2px 20px rgba(255, 255, 255, 0.05);
}
.glass * {
  text-shadow: 0px 2px 8px rgba(0,0,0,0.8);
}
.glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(201, 168, 107, 0.5),
    transparent 40%,
    transparent 60%,
    rgba(201, 168, 107, 0.3)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-light);
  position: relative;
  z-index: 2;
  -webkit-text-stroke: 1px #000;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}
.theme-light .section-title {
  color: var(--bg-deep);
}
.section-title em {
  color: var(--accent-cream);
}
.theme-light .section-title em {
  color: var(--accent-rust);
}
.section-title.right {
  text-align: right;
}
.section-title.warm {
  color: var(--bg-deep);
}
.section-title.warm em {
  color: var(--accent-rust);
}

.philosophy-body {
  margin-top: 2.5rem;
  max-width: 70ch;
  font-size: 1.07rem;
  line-height: 1.85;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.philosophy-body strong {
  color: var(--text-light);
  font-weight: 600;
}
.philosophy-body .drop::first-letter {
  font-family: var(--font-serif);
  font-size: 3.4em;
  font-weight: 500;
  float: left;
  line-height: 0.85;
  margin: 0.12em 0.12em 0 0;
  color: var(--accent-gold);
}
.philosophy-body .accent {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--text-light);
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.philosophy-body .accent em {
  color: var(--accent-cream);
  font-style: italic;
}

.signature {
  margin-top: 2.5rem;
  display: inline-block;
  color: var(--accent-gold);
  position: relative;
}
.signature-handwritten {
  font-family: 'Mr De Haviland', cursive;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--accent-gold);
  display: inline-block;
  line-height: 1;
  position: relative;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  opacity: 0;
  transform: translateY(5px);
  will-change: clip-path, opacity, transform;
}

#philosophy .section-title {
  perspective: 1000px;
}

/* =============== Pillars =============== */
.pillars {
  background: transparent;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}
.pillars-gold-wipe {
  display: none;
}
.pillars-inner {
  position: relative;
  width: 100%;
  z-index: 12;
  background: var(--bg-warm);
  padding: clamp(5rem, 12vh, 10rem) var(--pad-x) clamp(4rem, 8vh, 8rem);
  perspective: 1800px;
  transform-style: preserve-3d;
  will-change: clip-path;
}
.theme-light .pillars-head {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}
.pillars-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.6s var(--ease);
}

.theme-light .pillars-grid {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: visible; /* Prevents 3D elements from being clipped on entry */
  background: rgba(255, 255, 255, 0.015);
  transform-style: preserve-3d;
  transition:
    border-color 0.6s var(--ease),
    background 0.6s var(--ease);
}

.theme-light .pillar {
  border-right-color: rgba(0, 0, 0, 0.1);
}
.pillar {
  position: relative;
  padding: clamp(2rem, 3.5vw, 3.25rem);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 480px;
  overflow: visible; /* Allows 3D elements to float outside card boundaries during entry */
  transform-style: preserve-3d;
  perspective: 1000px;
  transition:
    background 0.5s var(--ease),
    border-color 0.6s var(--ease);
}
.pillar:last-child {
  border-right: none;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center top,
    rgba(201, 168, 107, 0.1),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.pillar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 168, 107, 0.55) 50%,
    transparent
  );
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1);
  pointer-events: none;
}
.theme-light .pillar:hover {
  background: rgba(0, 0, 0, 0.04);
}
.pillar:hover::before {
  opacity: 1;
}
.pillar:hover::after {
  transform: scaleX(1);
}
.pillar:hover {
  background: rgba(255, 255, 255, 0.02);
}

.theme-light .pillar-num {
  color: var(--accent-rust);
}
.pillar-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  transition: color 0.6s var(--ease);
}

.theme-light .pillar-icon {
  color: var(--text-dark);
}
.theme-light .pillar:hover .pillar-icon {
  color: var(--accent-rust);
}
.pillar-icon {
  color: var(--accent-cream);
  transition:
    transform 0.6s var(--ease),
    color 0.6s var(--ease);
  margin: 1rem 0;
}
.pillar:hover .pillar-icon {
  transform: translateY(-6px);
  color: var(--accent-gold);
}

.theme-light .pillar-title {
  color: var(--text-dark);
}
.theme-light .pillar-title em {
  color: var(--accent-rust);
}
.pillar-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-light);
  transition: color 0.6s var(--ease);
}
.pillar-title em {
  color: var(--accent-cream);
  transition: color 0.6s var(--ease);
}

.theme-light .pillar-body {
  color: rgba(20, 28, 26, 0.7);
}
.pillar-body {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 36ch;
  transition: color 0.6s var(--ease);
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
}
.theme-light .pillar-tags span {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(20, 28, 26, 0.6);
}
.pillar-tags span {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  transition:
    border-color 0.6s var(--ease),
    color 0.6s var(--ease);
}

.theme-light .pillar-arrow {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-dark);
}
.theme-light .pillar:hover .pillar-arrow {
  background: var(--text-dark);
  color: var(--text-light);
  border-color: var(--text-dark);
}
.pillar-arrow {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition:
    transform 0.4s var(--ease),
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.pillar:hover .pillar-arrow {
  background: var(--accent-gold);
  color: var(--bg-deep);
  border-color: var(--accent-gold);
  transform: rotate(-45deg);
}

/* =============== Stats =============== */
.stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 5rem var(--pad-x);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(14, 21, 19, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.stat-top {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  line-height: 1;
  white-space: nowrap;
}
.stat-num {
  color: var(--text-light);
  display: inline-block;
}
.stat-unit {
  color: var(--accent-gold);
  display: inline-block;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  white-space: nowrap;
}
.stat-sep {
  width: 1px;
  height: 56px;
  background: var(--line);
}

/* =============== Strategy Intro =============== */
.strategy-intro {
  position: relative;
  min-height: 60vh;
  padding: 12vh var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: rgba(14, 21, 19, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.strategy-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.8;
}
.topo-grid {
  width: 100%;
  height: 100%;
  transform-origin: center;
  will-change: transform;
}
.strategy-title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.strategy-heading {
  font-family: var(--font-sans);
  font-size: clamp(4.5rem, 9vw, 9rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text-light);
  margin: 0;
  text-transform: uppercase;
  perspective: 1200px;
}
.s-line {
  display: block;
  overflow: hidden;
  position: relative;
  padding-bottom: 0.1em; /* Prevent clipping descenders */
  margin-bottom: -0.1em;
}
.s-word {
  display: inline-block;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}
.s-word.italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--accent-gold);
}
.spinning-badge {
  position: relative;
  z-index: 2;
  animation: spinSlow 25s linear infinite;
}
.spin-text {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.badge-core circle {
  transform-origin: 70px 70px;
}

/* =============== Project Blocks =============== */
.blocks-container {
  position: relative;
  isolation: isolate;
  background: rgba(14, 21, 19, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mobile: Vertical Stack */
.blocks-track {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.brutal-block {
  width: 100%;
  min-height: 92vh;
  padding: clamp(3rem, 7vh, 7rem) var(--pad-x);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Desktop: Horizontal Scroll Panel */
@media (min-width: 769px) {
  .blocks-container {
    height: 100vh;
    overflow: hidden; /* Safe now since track is 100vw, not max-content */
  }
  .blocks-track {
    position: relative;
    width: 100vw;
    height: 100vh;
  }
  .brutal-block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    border-top: none;
    border-right: none;
    filter: drop-shadow(0 -5px 15px rgba(0, 0, 0, 0.3));
    padding-top: calc(8vh + clamp(2rem, 4vh, 4rem));
    padding-left: var(--pad-x);
    clip-path: var(--folder-clip);
  }
  
  /* The Card Tab */
  .card-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    position: absolute;
    top: 0;
    left: calc(var(--tab-idx) * (100vw / var(--total-tabs)));
    width: calc(100vw / var(--total-tabs));
    height: 8vh;
    padding: 0 1vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: none;
    background: inherit;
    z-index: 10;
    cursor: pointer;
  }
  .light-block .card-tab {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-right: none;
  }
  .tab-number {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
  }
  .tab-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: clamp(0.6rem, 0.8vw, 0.95rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.6;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Mobile vertical card-tab */
@media (max-width: 768px) {
  .brutal-block {
    padding-left: 4.5rem;
  }
  .card-tab {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    background: inherit;
    z-index: 10;
  }
  .light-block .card-tab {
    border-left: 1px solid rgba(0, 0, 0, 0.15);
  }
  .tab-number {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
  }
  .tab-title {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.6;
  }
}
.light-block {
  background: var(--bg-paper);
  color: var(--text-dark);
}
.light-block .block-tag {
  color: rgba(20, 28, 26, 0.6);
}
.light-block .block-sub {
  color: rgba(20, 28, 26, 0.7);
}
.green-block {
  background: var(--bg-green);
  color: var(--text-light);
  background-image: radial-gradient(
    ellipse at top right,
    rgba(201, 168, 107, 0.12),
    transparent 60%
  );
}

.block-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  width: 100%;
  position: relative;
  z-index: 2;
  align-items: end;
}
.full-width-content {
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: center;
}
.block-header-wrap.center {
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}
.block-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}
.block-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 7.5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.block-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent-gold);
}
.light-block .block-title em {
  color: var(--accent-rust);
}
.block-sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
}
.block-logo {
  max-width: 160px;
  max-height: 52px;
  object-fit: contain;
  margin-top: 1.5rem;
  opacity: 0.9;
}
.block-text {
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}
.light-block .block-text {
  color: rgba(20, 28, 26, 0.78);
}
.block-text p {
  margin-bottom: 1.3rem;
}
.block-text strong {
  color: var(--text-light);
  font-weight: 600;
}
.light-block .block-text strong {
  color: var(--bg-deep);
}

.feature-list {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.light-block .feature-list li {
  border-color: rgba(20, 28, 26, 0.08);
}
.feature-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.light-block .feature-list li:last-child {
  border-bottom-color: rgba(20, 28, 26, 0.08);
}
.fl-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  padding-top: 0.1em;
}
.feature-list p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.impact-pill {
  display: block;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--accent-gold);
  background: rgba(201, 168, 107, 0.06);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
}
.light-block .impact-pill {
  background: rgba(201, 168, 107, 0.14);
  color: var(--text-dark);
}
.impact-pill strong {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.74rem;
  margin-right: 0.3rem;
}
.light-block .impact-pill strong {
  color: var(--accent-rust);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition:
    gap 0.4s var(--ease),
    color 0.4s var(--ease);
}
.link-arrow:hover {
  gap: 1.1rem;
  color: var(--accent-gold);
}
.light-block .link-arrow:hover {
  color: var(--accent-rust);
}

.ai-logos-strip {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 1.4rem 0;
  padding: 1.1rem 1.3rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.ai-logos-strip img {
  height: 20px;
  object-fit: contain;
  filter: grayscale(100%) brightness(220%) opacity(0.85);
  transition:
    filter 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.ai-logos-strip img:hover {
  filter: none;
  transform: scale(1.15);
}

.aws-certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2.5vw 2vw;
  margin-top: 3.5rem;
  width: 100%;
}
.aws-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  transition:
    background 0.4s var(--ease),
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease);
  background: rgba(255, 255, 255, 0.015);
}
.aws-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
}
.aws-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.3));
  transition: transform 0.5s var(--ease);
}
.aws-item:hover img {
  transform: rotate(-4deg) scale(1.05);
}
.aws-item p {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  max-width: 180px;
  line-height: 1.5;
}
.aws-item p em {
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0;
}

.block-number {
  position: absolute;
  right: -1.5vw;
  bottom: -12vh;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 40vw;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.1);
  z-index: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.light-block .block-number {
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.08);
  color: transparent;
}
.green-block .block-number {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.08);
  color: transparent;
}

.philosophy-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 107, 0.08) 0%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}
.philo-bg-text {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.8;
}
.philo-marquee {
  font-family: var(--font-serif);
  font-size: clamp(8rem, 18vw, 18rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(201, 168, 107, 0.16);
  display: inline-block;
  will-change: transform;
}

/* =============== Origin Story / Timeline =============== */
.origin-story {
  padding: clamp(7rem, 15vh, 14rem) var(--pad-x);
  border-top: 1px solid var(--line);
}
.story-head {
  max-width: 720px;
  margin-bottom: clamp(4rem, 8vh, 7rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.story-quote {
  margin-top: 2rem;
  display: inline-flex;
  gap: 0.85rem;
  align-items: center;
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
}


/* =============== Human Element =============== */
.human {
  position: relative;
  background: var(--bg-warm);
  padding: clamp(6rem, 14vh, 12rem) var(--pad-x);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: border-color 0.6s var(--ease);
}
.theme-light.human {
  border-top-color: rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}
.human-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}
.human-copy {
  position: relative;
}
.human-lede {
  margin: 1.5rem 0 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-style: italic;
  line-height: 1.5;
  max-width: 540px;
}
.human-body {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 540px;
  transition: color 0.6s var(--ease);
}
.theme-light .human-body {
  color: rgba(20, 28, 26, 0.78);
}
.human-body em {
  color: var(--accent-cream);
  font-weight: 600;
  transition: color 0.6s var(--ease);
}
.theme-light .human-body em {
  color: var(--accent-rust);
}
.human-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 28, 26, 0.08);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-rust);
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.chip:hover {
  background: #fff;
  transform: translateY(-2px);
}
.chip svg {
  color: var(--accent-rust);
}

.human-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  aspect-ratio: 1 / 1.05;
}
.hg-img {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bg-warm-2);
}
.hg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 1s var(--ease),
    filter 0.8s var(--ease);
  will-change: transform;
  filter: contrast(1.02) saturate(0.95);
}
.hg-img:hover img {
  transform: scale(1.05);
  filter: contrast(1.05) saturate(1.1);
}
.hg-img figcaption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-deep);
}
.hg-a {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.hg-b {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}
.hg-c {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

/* =============== Architectural Mastery Profile =============== */
.architect-profile {
  position: relative;
  min-height: 100vh;
  padding: 12vh var(--pad-x) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  background: transparent;
  z-index: 5;
}

/* The overlay lets the Torus Knot WebGL background show through while darkening the edges */
.profile-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 10, 9, 0.4) 0%, rgba(7, 10, 9, 0.95) 80%);
  z-index: -1;
  pointer-events: none;
}

.profile-content {
  width: 100%;
  max-width: 1400px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-title-container {
  text-align: center;
  margin-bottom: 3vh;
  perspective: 1200px;
  position: relative;
  z-index: 20; /* Keep the title at the forefront */
}

/* Intro Heading ("Hi, I'm Soumya!") */
.intro-heading {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff; /* Changed to stark white for visibility */
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  cursor: default;
  position: relative;
  z-index: 50;
  opacity: 1 !important;
}

.intro-heading .char {
  transition: color 0.4s cubic-bezier(0.215, 0.610, 0.355, 1), 
              text-shadow 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
}
.architect-profile.entry-complete .intro-heading .char {
  transition: transform 0.4s cubic-bezier(0.215, 0.610, 0.355, 1), 
              color 0.4s cubic-bezier(0.215, 0.610, 0.355, 1), 
              text-shadow 0.4s cubic-bezier(0.215, 0.610, 0.355, 1);
  transition-delay: calc(var(--char-index) * 0.015s);
}
.hover-intro:hover .char {
  color: var(--text-gold);
  text-shadow: 0 0 12px rgba(201, 168, 107, 0.8);
  transform: translateY(-3px) scale(1.05);
}

.profile-title {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text-light);
  margin: 0;
  cursor: default;
}

.profile-title .line {
  display: block;
  overflow: hidden;
  will-change: transform;
}

.profile-title .word-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  background: linear-gradient(to right, var(--text-light) 0%, var(--accent-gold) 50%, var(--text-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-gold 5s linear infinite;
}
@keyframes shine-gold {
  to { background-position: 200% center; }
}

/* Typography Hover Animation */
.profile-title .char {
  transition: color 0.6s cubic-bezier(0.215, 0.610, 0.355, 1), 
              text-shadow 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
}
.architect-profile.entry-complete .profile-title .char {
  transition: transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1), 
              color 0.6s cubic-bezier(0.215, 0.610, 0.355, 1), 
              text-shadow 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
  transition-delay: calc(var(--char-index) * 0.012s);
}

.hover-typography:hover .word-sans .char {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  transform: translateY(-4px) scale(1.05);
}

.hover-typography:hover .word-serif .char {
  color: #fff;
  text-shadow: 0 0 35px rgba(201, 168, 107, 0.95);
  transform: translateY(-3px) rotate(-2deg) scale(1.06);
}

.profile-core-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: -10vh; /* Shift the portrait lower to remove bottom gap */
  perspective: 1000px;
  z-index: 10;
}

/* Central Anchoring Aura */
.profile-core-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 168, 107, 0.08) 0%, rgba(201, 168, 107, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: pulse-aura 8s ease-in-out infinite alternate;
}

@keyframes pulse-aura {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.profile-image-wrapper {
  position: relative;
  width: clamp(280px, 35vw, 500px);
  z-index: 15; /* Keep the image at the forefront */
  transform-style: preserve-3d;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(201, 168, 107, 0.15));
  will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 72%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 72%, rgba(0,0,0,0) 100%);
}

.profile-hero-img {
  width: 100%;
  height: auto;
  display: block;
  animation: slow-profile-float 8s ease-in-out infinite; /* Smooth floating bobbing */
}

@keyframes slow-profile-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Orbit System */
.orbit-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vw;
  max-width: 1000px;
  max-height: 1000px;
  pointer-events: none;
  z-index: 5; /* Behind the profile image */
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
}

/* Premium Telemetry Rings */
.ring-scale {
  width: 80%;
  height: 80%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 3deg, rgba(201, 168, 107, 0.15) 3deg 4deg);
  -webkit-mask-image: radial-gradient(transparent 68%, black 70%);
  mask-image: radial-gradient(transparent 68%, black 70%);
  animation: orbit-ring-spin-clockwise 180s linear infinite;
  opacity: 0.6;
}

.ring-1 { 
  width: 45%; 
  height: 45%; 
  border: 1px solid rgba(201, 168, 107, 0.05);
  background: conic-gradient(from 0deg, transparent 0%, rgba(201, 168, 107, 0.2) 20%, transparent 40%);
  -webkit-mask-image: radial-gradient(transparent 68%, black 70%);
  mask-image: radial-gradient(transparent 68%, black 70%);
  animation: orbit-ring-spin-clockwise 50s linear infinite;
}

.ring-2 { 
  width: 65%; 
  height: 65%; 
  border: 1px solid rgba(201, 168, 107, 0.05);
  background: conic-gradient(from 180deg, transparent 0%, rgba(201, 168, 107, 0.15) 15%, transparent 30%);
  -webkit-mask-image: radial-gradient(transparent 68%, black 70%);
  mask-image: radial-gradient(transparent 68%, black 70%);
  animation: orbit-ring-spin-counter 70s linear infinite;
}

@keyframes orbit-ring-spin-clockwise {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-ring-spin-counter {
  0% { transform: translate(-50%, -50%) rotate(360deg); }
  100% { transform: translate(-50%, -50%) rotate(0deg); }
}

.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-left: -28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 12px rgba(201, 168, 107, 0.1), 0 10px 30px rgba(0,0,0,0.8);
  pointer-events: auto;
  will-change: transform, box-shadow, border-color;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 6;
}

.orbit-node img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

/* Floating Telemetry Data Tags */
.orbit-telemetry {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(201, 168, 107, 0.6);
  pointer-events: none;
  white-space: nowrap;
  will-change: transform, opacity;
  z-index: 4;
}

@media (max-width: 768px) {
  .architect-profile {
    min-height: auto;
    padding: 6rem var(--pad-x) 0rem;
    justify-content: center;
  }
  .profile-core-container {
    margin-bottom: -4rem;
    margin-top: 2rem;
  }
  .orbit-system {
    width: 120vw;
    height: 120vw;
  }
  .orbit-node {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
  }
  .orbit-node img {
    width: 20px;
    height: 20px;
  }
}

