/* ============================================================
   FONTS: DM Serif Display (display/headings)
          Syne (UI labels, buttons, nav)
          Sora (body text)
   ============================================================ */

/* ============================================================
   DESIGN TOKENS — FOREST CANOPY PALETTE
   Light mode default (per brief v2.0)
   ============================================================ */

:root {
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   180ms;
  --dur-base:   320ms;
  --dur-slow:   600ms;
  --dur-xslow:  900ms;
}
/* Positioning the Ribbon */
.ribbon-asset {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  width: 120%;
  max-width: 1200px;
}

.ribbon-asset svg {
  width: 100%;
  height: auto;
  display: block;
  animation: ribbonLoop 10s ease-in-out infinite;
  animation-play-state: paused;
}

.ribbon-asset svg.is-playing {
  animation-play-state: running;
}

@keyframes ribbonLoop {
  0%   { transform: translateY(0px)   translateX(0px)   rotate(0deg)    scaleX(1); }
  20%  { transform: translateY(-14px) translateX(12px)  rotate(0.4deg)  scaleX(1.01); }
  40%  { transform: translateY(-24px) translateX(0px)   rotate(-0.3deg) scaleX(0.99); }
  60%  { transform: translateY(-18px) translateX(-10px) rotate(0.2deg)  scaleX(1.01); }
  80%  { transform: translateY(-8px)  translateX(6px)   rotate(-0.2deg) scaleX(1); }
  100% { transform: translateY(0px)   translateX(0px)   rotate(0deg)    scaleX(1); }
}

:root,
:root[data-theme="light"] {
  --bg:              #FFFBF1;
  --surface:         #FFF8E8;
  --surface-2:       #FAF0DC;
  --heading:         #233728;
  --hero-heading:    #233728;
  --body-text:       #4A5240;
  --body-muted:      #7A856E;
  --accent:          #4D6B4D;
  --accent-dim:      rgba(77, 139, 49, 0.10);
  --accent-glow:     rgba(77, 139, 49, 0.05);
  --accent-light:    #4A7C4A;
  --gold:            #9A7230;
  --border:          #C8C4BA;
  --border-subtle:   #D8D4CA;
  --nav-bg:          rgba(242, 238, 230, 0.92);
  --grain-opacity:   0.08;
  --card-shadow:     0 2px 16px rgba(24, 32, 20, 0.06);
  --card-shadow-up:  0 24px 64px rgba(24, 32, 20, 0.13);
  --marquee-bg:      #DDD8CE;
  --canopy-stroke:   #2D6B18;
  --canopy-fill:     #4D8B31;
  --leaf-shadow:     #1A4A10;
  --leaf-mid:        #3A8020;
  --leaf-bright:     #52A030;
  --leaf-tip:        #80C060;
  --cta-bg:          #233728;
  --cta-text:        #F0DCC8;
}


:root[data-theme="dark"] {
  --bg:              #0B180D;
  --surface:         #122016;
  --surface-2:       #192A1D;
  --heading:         #FFF6ED;
  --hero-heading:    #FFF6ED;
  --body-text:       #E8D9C8;
  --body-muted:      #D4BFAA;
  --accent:          #FFF6ED;
  --accent-dim:      rgba(77, 139, 49, 0.14);
  --accent-glow:     rgba(77, 139, 49, 0.07);
  --accent-light:    #3D7026;
  --gold:            #C8A86B;
  --border:          #1A2E1C;
  --border-subtle:   #223826;
  --nav-bg:          rgba(11, 24, 13, 0.92);
  --grain-opacity:   0.12;
  --card-shadow:     0 2px 12px rgba(0,0,0,0.38);
  --card-shadow-up:  0 24px 64px rgba(0,0,0,0.60);
  --marquee-bg:      #0E1A10;
  --canopy-stroke:   #2A5C2E;
  --canopy-fill:     #3A7840;
  --leaf-shadow:     #0D2810;
  --leaf-mid:        #1E5228;
  --leaf-bright:     #2A7035;
  --leaf-tip:        #48925A;
  --cta-bg:          #F0DCC8;
  --cta-text:        #2A5C2E;
}

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--body-text);
  font-family: 'Sora', system-ui, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--dur-base), color var(--dur-base);
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================================
   GRAIN TEXTURE OVERLAY
   ============================================================ */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain-shift 8s steps(2) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%,-1%); }
  50%  { transform: translate(1%,2%); }
  75%  { transform: translate(-1%,1%); }
  100% { transform: translate(0,0); }
}

/* ============================================================
   CUSTOM CURSOR (hover-capable devices only)
   ============================================================ */

@media (hover: hover) {
  body, a, button { cursor: none; }

  .cursor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
  }

  .cursor__dot {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--heading);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: background var(--dur-fast);
  }

  .cursor__ring {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      width       var(--dur-base) var(--ease-out),
      height      var(--dur-base) var(--ease-out),
      border-color var(--dur-base),
      background  var(--dur-base);
  }

  .cursor__label {
    font-family: 'Syne', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bg);
    opacity: 0;
    transition: opacity var(--dur-base);
    white-space: nowrap;
    user-select: none;
  }

  /* Default hover — links/buttons */
  .cursor.is-hovering .cursor__ring {
    width: 48px;
    height: 48px;
    border-color: var(--accent);
  }

  .cursor.is-hovering .cursor__dot {
    background: var(--accent);
  }

  /* Card hover — ring expands, fills, label appears */
  .cursor.is-read .cursor__ring {
    width: 80px;
    height: 80px;
    background: #9bb53c;
    border-color: #9bb53c;
  }

  .cursor.is-read .cursor__dot {
    background: var(--bg);
  }

  .cursor.is-read .cursor__label {
    opacity: 1;
  }
}

@media (hover: none) {
  .cursor { display: none; }
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 108px 0; }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 9998;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ============================================================
   SCROLL REVEAL SYSTEM
   Pre-wired for IntersectionObserver + future GSAP ScrollTrigger.
   Elements carry data-scroll-reveal and data-scroll-delay attrs.
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.18s; }
.reveal--d3 { transition-delay: 0.28s; }
.reveal--d4 { transition-delay: 0.38s; }
.reveal--d5 { transition-delay: 0.48s; }

.reveal--clip {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path var(--dur-slow) var(--ease-out);
}
.reveal--clip.is-visible { clip-path: inset(0 0 0% 0); }

.reveal--scale {
  transform: scale(0.97) translateY(14px);
}
.reveal--scale.is-visible { transform: scale(1) translateY(0); }

.reveal--rotate {
  transform: translateY(22px) rotate(-1.2deg);
}
.reveal--rotate.is-visible { transform: translateY(0) rotate(0deg); }

/* ============================================================
   CANOPY SVG ILLUSTRATION SYSTEM
   Reused across hero and section decorators.
   Colors respond to theme toggle via CSS variables.
   ============================================================ */

.canopy-branch {
  fill: none;
  stroke: var(--canopy-stroke);
  stroke-dasharray: 1200;
  stroke-dashoffset: 0;
}
.canopy-branch--primary {
  stroke-width: 1.3; opacity: 0.42;
  animation: branch-draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.canopy-branch--secondary {
  stroke-width: 0.88; opacity: 0.30;
  animation: branch-draw 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}
.canopy-branch--twig {
  stroke-width: 0.60; opacity: 0.20;
  animation: branch-draw 0.9s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}

@keyframes branch-draw {
  from { stroke-dashoffset: 1200; }
  to   { stroke-dashoffset: 0; }
}

.canopy-leaf    { opacity: 0.58; }
.canopy-leaf--sm { opacity: 0.42; }
.canopy-leaf--xs { opacity: 0.28; }

.canopy-dot { fill: var(--canopy-fill); opacity: 0.38; }

/* Leaf cluster sway — transform-box keeps origin relative to each cluster */
.canopy-cluster {
  transform-box: fill-box;
  transform-origin: 50% 0%;
}
.canopy-cluster--a { animation: leaf-sway     6.4s ease-in-out 0.2s infinite; }
.canopy-cluster--b { animation: leaf-sway-alt 7.8s ease-in-out 1.1s infinite; }
.canopy-cluster--c { animation: leaf-sway     5.6s ease-in-out 0.7s infinite; }
.canopy-cluster--d { animation: leaf-sway-alt 8.2s ease-in-out 1.8s infinite; }
.canopy-cluster--e { animation: leaf-sway     6.0s ease-in-out 0.4s infinite; }
.canopy-cluster--f { animation: leaf-sway-alt 7.2s ease-in-out 2.1s infinite; }
.canopy-cluster--g { animation: leaf-sway     5.4s ease-in-out 0.9s infinite; }
.canopy-cluster--h { animation: leaf-sway-alt 6.8s ease-in-out 1.5s infinite; }

@keyframes leaf-sway {
  0%, 100% { transform: rotate(0deg); }
  33%       { transform: rotate(2.5deg); }
  66%       { transform: rotate(-1.2deg); }
}
@keyframes leaf-sway-alt {
  0%, 100% { transform: rotate(0deg); }
  33%       { transform: rotate(-2.8deg); }
  66%       { transform: rotate(1.5deg); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(11, 24, 13, 0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(77, 107, 77, 0.18);
  transition: background var(--dur-base), border-color var(--dur-base), backdrop-filter var(--dur-base);
}

.nav.is-scrolled {
  background: rgba(11, 24, 13, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 0.5px solid rgba(77, 107, 77, 0.35);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  flex: 1;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 400;
  color: #FFF6ED;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color var(--dur-fast);
}
.nav__logo:hover { color: rgba(255, 246, 237, 0.6); }

.nav__center {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__center a {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 246, 237, 0.62);
  transition: color var(--dur-fast);
}
.nav__center a:hover { color: #FFF6ED; }

.nav__right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav__available {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9bb53c;
}

.nav__available-dot {
  width: 6px;
  height: 6px;
  background: #9bb53c;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.nav__available-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: #9bb53c;
  border-radius: 50%;
  opacity: 0.35;
  animation: pulse-ring 2s ease-out infinite;
}

.theme-toggle {
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-text);
  transition:
    border-color var(--dur-base),
    color var(--dur-base),
    transform var(--dur-base) var(--ease-out);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--heading);
  transform: rotate(22deg);
}
.theme-toggle svg { width: 15px; height: 15px; }

.icon-sun,
.icon-moon { display: none; }

[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #FFF6ED;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(11, 24, 13, 0.97);
  border-top: 0.5px solid rgba(77, 107, 77, 0.3);
  padding: 8px 0 24px;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-family: 'Syne', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 246, 237, 0.62);
  padding: 14px 28px;
  border-bottom: 0.5px solid rgba(77, 107, 77, 0.15);
  transition: color var(--dur-fast);
}
.nav__mobile a:hover { color: #FFF6ED; }

/* ============================================================
   HERO — Single full-width grid
   Forest canopy SVG frames from above; text centered below.
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

/* Atmospheric light — layered radial gradients, deepens in dark mode */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%,    rgba(77, 139, 49, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 38% 32% at 8% 78%,    rgba(77, 139, 49, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 38% 32% at 92% 72%,   rgba(77, 139, 49, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 55% 42% at 50% 52%,   rgba(42, 92, 46, 0.03) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 75% 60% at 50% 0%,    rgba(42, 92, 46, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 45% 38% at 8% 80%,    rgba(30, 82, 40, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse 45% 38% at 92% 74%,   rgba(30, 82, 40, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse 60% 48% at 50% 55%,   rgba(11, 24, 13, 0.40) 0%, transparent 70%);
}

/* Mouse-reactive glow — position driven by JS CSS custom props */
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 55% at var(--glow-x, 50%) var(--glow-y, 35%),
    rgba(42, 92, 46, 0.22) 0%,
    rgba(77, 139, 49, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero__glow {
  background: radial-gradient(
    ellipse 60% 60% at var(--glow-x, 50%) var(--glow-y, 35%),
    rgba(42, 92, 46, 0.38) 0%,
    rgba(26, 74, 34, 0.16) 45%,
    transparent 72%
  );
}

[data-theme="light"] .hero__glow {
  background: radial-gradient(
    ellipse 55% 55% at var(--glow-x, 50%) var(--glow-y, 35%),
    rgba(77, 139, 49, 0.10) 0%,
    rgba(77, 139, 49, 0.04) 45%,
    transparent 70%
  );
}

/* Canopy SVG container — occupies upper portion, absolute so it doesn't push text */
.hero__canopy {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  height: 58%;
  pointer-events: none;
  z-index: 0;
}

.canopy-svg {
  width: 100%;
  height: 100%;
}

/* Hero two-column grid */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100svh - 68px);
}

.hero__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 48px;
  min-height: calc(100svh - 220px);
  padding-bottom: 24px;
}

/* Flow line ribbon — animation handled via SMIL in the SVG element */

/* "I'm Ttanusha" — sits between greeting and display heading */
.hero__name-line {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.hero__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7a65;
  margin-bottom: 18px;
}

/* Italic olive "intelligent" */
.hero__em {
  font-style: italic;
  color: #9bb53c;
}

/* Metadata stacks — bottom of right column */
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-end;
}

.hero__meta-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.hero__meta-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7a65;
}

.hero__meta-value {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 246, 237, 0.48);
}

[data-theme="light"] .hero__meta-value {
  color: rgba(35, 55, 40, 0.52);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.3; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Greeting typewriter */
.hero__greeting {
  display: inline-flex;
  align-items: baseline;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 20px;
  min-height: 1.2em;
}
.hero__greeting-text { white-space: nowrap; }
.hero__greeting-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 5px;
  transform: translateY(0.06em);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}

/* Name — the largest typographic moment */
.hero__name {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 100;
  font-size: clamp(3rem, 10vw, 9rem);
  color: var(--hero-heading);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 4px 0 36px;
}

/* Main heading — ultra-light weight */
.hero__heading {
  font-family: 'DM Serif Display', serif;
  font-weight: 100;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  color: var(--hero-heading);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  text-align: left;
  max-width: 640px;
}

/* Tagline */
.hero__tagline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  font-weight: 300;
  line-height: 1.85;
  color: var(--body-text);
  max-width: 640px;
  margin-bottom: 42px;
  text-align: center;
}
.hero__tagline-break { display: none; }

/* "humans and machines" italic green underline accent */
.hero-accent {
  color: var(--accent);
  font-style: italic;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 0.05em;
}

/* CTA row */
.hero__cta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__location {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__location svg { width: 12px; height: 12px; }

/* Rotating botanical badge */
.rotating-badge {
  width: 120px;
  height: 120px;
  position: relative;
}
.hero__badge {
  margin-top: 0;
  align-self: flex-end;
  opacity: 0.72;
  transition: opacity var(--dur-base);
}
.hero__badge:hover { opacity: 1; }

.rotating-badge__svg {
  width: 100%;
  height: 100%;
  animation: spin-slow 18s linear infinite;
}
.rotating-badge__svg text {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  fill: var(--body-muted);
  text-transform: uppercase;
}
.rotating-badge__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: none;
  transition:
    transform    var(--dur-base) var(--ease-out),
    box-shadow   var(--dur-base) var(--ease-out),
    filter       var(--dur-base);
  will-change: transform;
}

.btn--primary {
  background: var(--cta-bg);
  color: var(--cta-text);
}
.btn--primary:hover {
  filter: brightness(0.96);
  box-shadow:
    0 0 0 1px rgba(155, 181, 60, 0.28),
    0 0 22px rgba(155, 181, 60, 0.32),
    0 0 60px rgba(155, 181, 60, 0.14),
    0 8px 28px rgba(0, 0, 0, 0.22);
}

.btn--secondary {
  background: transparent;
  color: rgba(255, 246, 237, 0.72);
  border: 0.5px solid rgba(155, 181, 60, 0.28);
}
.btn--secondary:hover {
  color: #FFF6ED;
  border-color: rgba(155, 181, 60, 0.6);
  box-shadow:
    0 0 0 1px rgba(155, 181, 60, 0.18),
    0 0 18px rgba(155, 181, 60, 0.14);
}

[data-theme="light"] .btn--secondary {
  color: rgba(35, 55, 40, 0.72);
  border-color: rgba(107, 122, 101, 0.35);
}
[data-theme="light"] .btn--secondary:hover {
  color: #233728;
  border-color: rgba(155, 181, 60, 0.55);
}

.btn svg { width: 14px; height: 14px; }

/* ============================================================
   STATS STRIP — Chapter 2
   ============================================================ */

.stats {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 52px 0 36px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 32px;
}

.stat {
  padding: 0 32px;
  border-left: 0.5px solid var(--border);
  text-align: center;
}
.stat:first-child { border-left: none; }

.stat__number {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  color: var(--heading);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
  display: block;
}

.stat__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-muted);
}

/* Industry tags row */
.stats__tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 2px;
  padding: 24px 0 4px;
  border-top: 0.5px solid var(--border-subtle);
}

.stats__tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--body-muted);
}

.stats__sep {
  font-size: 0.75rem;
  color: var(--border);
  padding: 0 6px;
  user-select: none;
}

/* ============================================================
   MARQUEE TICKER
   ============================================================ */

.marquee {
  background: var(--marquee-bg);
  border-top: 1px solid #2a4a2e;
  border-bottom: 1px solid #2a4a2e;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8e3d3;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
}
.marquee__item::after {
  content: '✦';
  font-size: 0.45rem;
  color: #e8e3d3;
  display: inline-block;
}

/* ============================================================
   SECTION HEADER SYSTEM (shared)
   ============================================================ */

.section__eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 0.5px;
  background: var(--accent);
  opacity: 0.55;
}

.section__title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.hero-section {
  position: relative; /* Container for absolute elements */
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;    /* Horizontal Center */
  justify-content: center; /* Vertical Center */
  text-align: center;
  overflow: hidden;
  background-color: #1A2416; /* Your Forest Green */
  color: #F9F7F2;            /* Your Ivory */
}

.hero-text {
  z-index: 2; /* Ensures text is always on top of the ribbon */
  max-width: 800px;
}

.ribbon_asset {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1; 
  pointer-events: none; /* Allows users to click buttons 'through' the ribbon */
}

.ribbon-path {
  /* This number needs to be longer than your actual path */
  stroke-dasharray: 2500; 
  stroke-dashoffset: 2500;
  animation: drawLine 4s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

.section__sub {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  color: var(--body-text);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 440px;
}

/* ============================================================
   BUILDING WITH AI — Chapter 3
   Primary differentiator. Forest-surface background.
   One leaf cluster accent, top-right only.
   ============================================================ */

/* ============================================================
   BUILDING / EXPLORING AI — Chapter 3 (reworked)
   ============================================================ */

.building {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 120px 0;
}

.building__grid {
  display: grid;
  grid-template-columns: 38fr 62fr;
  gap: 80px;
  align-items: start;
}

/* Left column */
.building__left {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 100px;
}

.building__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9bb53c;
  margin-bottom: 24px;
}

.building__headline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin-bottom: 20px;
}

.building__body {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--body-muted);
}

/* Right column — inner two-column layout */
.building__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Principles list */
.building__principles {
  display: flex;
  flex-direction: column;
}

.building__principle {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 12px;
  border-top: 0.5px solid var(--border-subtle);
  transition: background var(--dur-fast);
  border-radius: 6px;
}
.building__principle:last-child { border-bottom: 0.5px solid var(--border-subtle); }
.building__principle:hover { background: var(--accent-dim); }

.building__principle-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--body-muted);
  margin-top: 2px;
}

.building__principle-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.building__principle-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--heading);
  line-height: 1.3;
}

.building__principle-desc {
  font-family: 'Sora', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--body-muted);
}

/* Currently exploring card */
.building__explore-card {
  background: #131e11;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.building__explore-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7a65;
  margin-bottom: 14px;
}

.building__explore-divider {
  width: 100%;
  height: 0.5px;
  background: rgba(155, 181, 60, 0.18);
  margin-bottom: 20px;
}

.building__explore-text {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #e8e3d3;
  flex: 1;
}

.building__rotate {
  font-size: 0.75rem;
  font-style: italic;
  color: #6b7a65;
  line-height: 1.5;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
  min-height: 2.5em;
}

.building__explore-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  opacity: 0.18;
}

/* Legacy week-card styles — kept in case reused elsewhere */
.week-card__tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.5875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 9px;
}
.week-card__tag--live {
  background: var(--accent-dim);
  color: var(--accent);
  border: 0.5px solid rgba(77, 139, 49, 0.3);
}
.week-card__tag--coming {
  background: var(--surface-2);
  color: var(--body-muted);
  border: 0.5px solid var(--border);
}

.week-card__week {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body-muted);
}

.week-card__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.week-card__desc {
  font-size: 0.8125rem;
  color: var(--body-muted);
  line-height: 1.6;
}

.week-card__arrow {
  width: 32px;
  height: 32px;
  border: 0.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-muted);
  flex-shrink: 0;
  transition: border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.week-card__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(2px, -2px);
}
.week-card__arrow svg { width: 13px; height: 13px; }

/* ============================================================
   WORK SECTION — Chapter 4
   Four flat case study cards, 2×2 grid.
   ============================================================ */

.work { background: var(--bg); }

.work__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 32px;
  flex-wrap: wrap;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Card base */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition:
    box-shadow   var(--dur-base) var(--ease-out),
    transform    var(--dur-base) var(--ease-out),
    border-color var(--dur-base);
  will-change: transform;
}
.card:hover {
  box-shadow: var(--card-shadow-up);
}

/* Card thumbnail band */
.card__thumb {
  position: relative;
  height: 130px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px 22px;
}

.card__thumb--amex  { background: linear-gradient(140deg, #061a35 0%, #0d3565 60%, #1a4d80 100%); }
.card__thumb--amex2 { background: linear-gradient(140deg, #071525 0%, #0a2840 60%, #12406A 100%); }
.card__thumb--hypd  { background: linear-gradient(140deg, #150824 0%, #2d1055 60%, #471A8A 100%); }
.card__thumb--hypd2 { background: linear-gradient(140deg, #1a0620 0%, #380A4E 60%, #541570 100%); }

.card__thumb-number {
  font-family: 'DM Serif Display', serif;
  font-size: 6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  position: absolute;
  top: -6px;
  right: 14px;
  letter-spacing: -0.04em;
  user-select: none;
}

.card__thumb-tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 10px;
  position: relative;
  z-index: 1;
}

.card__body { padding: 22px 24px 26px; }

/* Company + year row */
.card__company-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.card__company {
  font-family: 'Syne', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__year {
  font-family: 'Syne', sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--body-muted);
}

.card__title {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card__desc {
  font-size: 0.875rem;
  color: var(--body-text);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Metric row */
.card__metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-family: 'Syne', sans-serif;
  font-size: 0.6375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 16px;
}
.card__metric-dot {
  color: var(--border);
  padding: 0 4px;
  user-select: none;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card__pill {
  font-family: 'Syne', sans-serif;
  font-size: 0.575rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px;
  padding: 4px 10px;
}

.card__arrow {
  width: 30px;
  height: 30px;
  border: 0.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-muted);
  transition:
    border-color var(--dur-fast),
    color        var(--dur-fast),
    transform    var(--dur-fast);
}


.card:hover .card__arrow,
.card__arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(2px,-2px);
}
.card__arrow svg { width: 12px; height: 12px; }

/* ============================================================
   RECENT SECTION — Chapter 5
   Wide horizontal card. Different from work grid.
   ============================================================ */

.recent { background: var(--surface); }

.recent__card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 44px 52px;
  margin-top: 52px;
  transition:
    box-shadow   var(--dur-base) var(--ease-out),
    border-color var(--dur-base);
  will-change: transform;
}
.recent__card:hover {
  box-shadow: var(--card-shadow-up);
  border-color: var(--accent);
}

.recent__badge {
  display: inline-flex;
  font-family: 'Syne', sans-serif;
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 0.5px solid rgba(77,139,49,0.25);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.recent__title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.recent__desc {
  font-size: 0.9375rem;
  color: var(--body-text);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 20px;
}

.recent__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recent__card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  flex-shrink: 0;
}

.recent__number {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--heading);
  line-height: 1;
  letter-spacing: -0.03em;
  opacity: 0.18;
  user-select: none;
}

.recent__arrow {
  width: 44px;
  height: 44px;
}
.recent__arrow svg { width: 16px; height: 16px; }

/* ============================================================
   TESTIMONIALS — Chapter 6
   Branch accent left edge only.
   ============================================================ */

.testimonials {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Single branch element — left edge, behind everything, not overlapping cards */
.testimonials__branch-accent {
  position: absolute;
  top: 80px;
  left: 0;
  width: 80px;
  height: 240px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}
.testimonials__branch-accent svg { width: 100%; height: 100%; }

.testimonials .section__eyebrow,
.testimonials .section__title {
  position: relative;
  z-index: 1;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.testimonial {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.testimonial:hover { box-shadow: var(--card-shadow-up); }

.testimonial__mark {
  font-family: 'DM Serif Display', serif;
  font-size: 5.5rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.15;
  margin-bottom: 18px;
  display: block;
  user-select: none;
}

.testimonial__quote {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--body-text);
  font-style: italic;
  margin-bottom: 26px;
}

.testimonial__divider {
  width: 24px;
  height: 0.5px;
  background: var(--accent);
  opacity: 0.4;
  margin-bottom: 14px;
}

.testimonial__name {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 4px;
  font-style: normal;
  display: block;
}

.testimonial__role {
  font-family: 'Syne', sans-serif;
  font-size: 0.6375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--body-muted);
}

/* ============================================================
   CONTACT / FOOTER — Chapter 7
   ============================================================ */

.contact {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 96px;
}

.contact__title {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--heading);
  line-height: 1.0;
  letter-spacing: -0.025em;
}

.contact__body {
  font-size: 0.9375rem;
  line-height: 1.85;
  margin-bottom: 36px;
  color: var(--body-text);
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-text);
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  transition:
    border-color var(--dur-base),
    color        var(--dur-base),
    background   var(--dur-base);
}
.contact__link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.contact__link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Footer bottom */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  border-top: 0.5px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.footer__name {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 2rem;
  font-weight: 400;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.footer__copy {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--body-muted);
  opacity: 0.6;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body-muted);
  transition: color var(--dur-fast);
  opacity: 0.65;
}
.footer__links a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE — TABLET (max 1023px)
   ============================================================ */

@media (max-width: 1023px) {
  .nav__center  { display: none; }
  .nav__hamburger { display: flex; }
  .nav__available { display: none; }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 80px 0 48px;
    gap: 40px;
  }
  .hero__right {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    min-height: auto;
    gap: 24px;
    padding-bottom: 0;
  }
  .hero__meta { align-items: flex-end; }

  .building__grid { grid-template-columns: 1fr; gap: 48px; }
  .building__left  { position: static; }
  .building__right { grid-template-columns: 1fr; }

  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .testimonials__grid .testimonial:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
  }

  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 767px)
   ============================================================ */

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .section   { padding: 72px 0; }
  .hero__heading{
    text-align: center;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 80px 0 48px;
    gap: 40px;
    justify-items: center;
    text-align: center;
  }
  .hero__left {
    align-items: center;
  }
  .hero__cta-row {
    justify-content: center;
  }
  .hero__right {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    min-height: auto;
    gap: 20px;
    padding-bottom: 0;
  }
  .hero__badge { align-self: auto; }
  .hero__ribbon-line { top: 28% !important; }

  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 0 12px; }

  .stats__tags { gap: 4px; }

  .work__grid { grid-template-columns: 1fr; }

  .recent__card {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    gap: 28px;
  }
  .recent__card-right { flex-direction: row; align-items: center; }

  .testimonials__grid { grid-template-columns: 1fr; }
  .testimonials__grid .testimonial:last-child {
    grid-column: auto;
    max-width: none;
  }
  .testimonials__branch-accent { display: none; }

  .footer__name { display: none; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 10px; padding: 24px 0; }
  .footer__copy { text-align: center; }
  .footer__links { gap: 16px; justify-content: center; }
}

@media (max-width: 479px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat__number { font-size: 2rem; }
  .stat__label  { font-size: 0.5625rem; }

  .hero__name { font-size: 3.25rem; }

  .week-card {
    grid-template-columns: 40px 1fr;
  }
  .week-card__arrow { display: none; }
}

/* ============================================================
   LIGHT MODE — Gradient section flow
   Replaces hard surface strips with smooth colour washes
   that fade in and out of the background.
   ============================================================ */

:root[data-theme="light"] .stats {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--surface) 25%,
    var(--surface) 75%,
    var(--bg) 100%
  );
  border-top: none;
  border-bottom: none;
}

:root[data-theme="light"] .stats__tags {
  border-top: none;
}

:root[data-theme="light"] .marquee {
  background: linear-gradient(
    to right,
    var(--bg) 0%,
    var(--surface) 18%,
    var(--surface) 82%,
    var(--bg) 100%
  );
  border-top: none;
  border-bottom: none;
}

:root[data-theme="light"] .building {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--surface-2) 20%,
    var(--surface-2) 80%,
    var(--bg) 100%
  );
  border-top: none;
  border-bottom: none;
}

:root[data-theme="light"] .recent {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--surface) 25%,
    var(--surface) 75%,
    var(--bg) 100%
  );
}

:root[data-theme="light"] .testimonials {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--surface-2) 20%,
    var(--surface-2) 80%,
    var(--bg) 100%
  );
}

/* ============================================================
   HYBRID FIXED THEME
   Hero + footer stay dark. Middle sections locked to cream.
   Toggle button hidden site-wide.
   ============================================================ */

.theme-toggle { display: none; }

.scroll-progress { background: #4D6B4D; }

.section--light {
  --bg:             #FFFBF1;
  --surface:        #FFF8E8;
  --surface-2:      #FAF0DC;
  --heading:        #233728;
  --hero-heading:   #233728;
  --body-text:      #4A5240;
  --body-muted:     #7A856E;
  --accent:         #4D6B4D;
  --accent-dim:     rgba(77,139,49,0.10);
  --accent-glow:    rgba(77,139,49,0.05);
  --accent-light:   #4A7C4A;
  --border:         #C8C4BA;
  --border-subtle:  #D8D4CA;
  --card-shadow:    0 2px 16px rgba(24,32,20,0.06);
  --card-shadow-up: 0 24px 64px rgba(24,32,20,0.13);
  --marquee-bg:     #DDD8CE;
  --cta-bg:         #233728;
  --cta-text:       #F0DCC8;
  background: var(--bg);
  color: var(--body-text);
}

.marquee.section--light {
  background: linear-gradient( to right,    
                    var(--heading) 0%,    
                    var(--heading) 18%,    
                    var(--heading) 82%,    
                    var(--heading) 100%  );
  border-top: none;
  border-bottom: none;
}

.building.section--light {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--surface-2) 20%,
    var(--surface-2) 80%,
    var(--bg) 100%
  );
  border-top: none;
  border-bottom: none;
}

.testimonials.section--light {
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    var(--surface-2) 20%,
    var(--surface-2) 80%,
    var(--bg) 100%
  );
}
