/* ── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  --warm-white:    #F5FAF9;
  --surface:       #FFFFFF;
  --cream:         #EFF8F7;
  --accent:        #32938B;
  --accent-bright: #02E8D3;
  --accent-mid:    #356964;
  --accent-deep:   #2B3332;
  --teal-dark:     #2A3E3C;
  --amber:         #F59E0B;
  --text:          #111827;
  --text-mid:      #4B5563;
  --text-muted:    #9CA3AF;
  --border:        rgba(0,0,0,.07);
  --serif:         'Cormorant Garamond', Georgia, serif;
  --sans:          'Outfit', system-ui, sans-serif;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --card-h:        370px;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--warm-white);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .025;
}

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; inset-inline: 0;
  z-index: 200;
  background: rgba(245,250,249,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none;
}
.nav-logo-img {
  height: 22px; width: auto; display: block;
  animation: logoBreath 9s ease-in-out infinite;
}
@keyframes logoBreath {
  0%, 100% { filter: brightness(1) opacity(.85); }
  45%  { filter: brightness(.5) opacity(.5) drop-shadow(0 0 5px rgba(2,232,211,.55)); }
  55%  { filter: brightness(.5) opacity(.5) drop-shadow(0 0 5px rgba(2,232,211,.55)); }
}
.nav-logo-text {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text);
}
.lang-toggle {
  display: flex; align-items: center; gap: .3rem;
  background: none; border: 1px solid var(--border);
  border-radius: 999px; padding: .25em .85em;
  cursor: pointer; font-family: var(--sans);
  font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  color: var(--text-muted); transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-sep { opacity: .3; }
.lang-opt.active { color: var(--accent); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 58px;
  overflow: hidden;
  /*
    Light zone on the left for the text, dark zone on the right where the
    sculpture's own black background merges seamlessly with the gradient.
  */
  background: linear-gradient(
    108deg,
    #F5FAF9  0%,
    #EBF6F4 38%,
    #243b38 56%,
    #161e1d 70%,
    #0b1210 100%
  );
}

/* Key visual — absolutely positioned, bleeds into gradient, no box */
.hero-visual {
  position: absolute;
  inset: -24px;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.hero-text {
  will-change: transform;
}
/* Edge fades: left bleeds into hero gradient, right fades to dark */
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,  #161e1d 0%, rgba(22,30,29,0) 18%),
    linear-gradient(to left,   #0b1210 0%, rgba(11,18,16,0)  12%);
  z-index: 3;
  pointer-events: none;
}
.hero-frame {
  position: absolute;
  left: 0; top: 0;
  width: 62%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: saturate(0.45) brightness(0.88);
  -webkit-mask-image: linear-gradient(to right, black 38%, rgba(0,0,0,0.55) 60%, transparent 100%);
  mask-image:         linear-gradient(to right, black 38%, rgba(0,0,0,0.55) 60%, transparent 100%);
  z-index: 0;
}
.hero-frame-tint {
  position: absolute;
  left: 0; top: 0;
  width: 62%; height: 100%;
  background: rgba(50, 147, 139, 0.72);
  mix-blend-mode: color;
  -webkit-mask-image: linear-gradient(to right, black 38%, rgba(0,0,0,0.55) 60%, transparent 100%);
  mask-image:         linear-gradient(to right, black 38%, rgba(0,0,0,0.55) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
#entropy-canvas {
  position: absolute;
  right: 0; top: 0;
  width: 65%; height: 100%;
  z-index: 1;
}

/* Mobile: light hero, hide visual */
@media (max-width: 700px) {
  .hero { background: linear-gradient(150deg, rgba(2,232,211,.06) 0%, #F5FAF9 70%); }
  .hero-visual { display: none; }
  #particles { display: none; }
}

/* ── HERO CONTENT ────────────────────────────────────────────────────────── */
#particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse var(--pmask-rx, 44%) var(--pmask-ry, 38%) at var(--pmask-cx, 22%) var(--pmask-cy, 50%),
    black 20%, rgba(0,0,0,0.5) 58%, transparent 80%
  );
  mask-image: radial-gradient(
    ellipse var(--pmask-rx, 44%) var(--pmask-ry, 38%) at var(--pmask-cx, 22%) var(--pmask-cy, 50%),
    black 20%, rgba(0,0,0,0.5) 58%, transparent 80%
  );
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(2rem, 5vw, 4rem);
  padding-block: 5rem;
}
.hero-inner {
  display: flex;
  align-items: stretch;
  gap: 1.6rem;
}
/* Text column: sits in the left ~45% of the layout container */
.hero-text {
  max-width: 480px;
  background: linear-gradient(
    158deg,
    rgba(240, 250, 248, 0.52) 0%,
    rgba(218, 242, 238, 0.40) 100%
  );
  backdrop-filter: blur(28px) saturate(1.5) brightness(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(1.5) brightness(1.06);
  border-radius: 20px;
  padding: 2.6rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(50, 147, 139, 0.1),
    0 24px 64px rgba(0, 0, 0, 0.18),
    0 6px 20px rgba(0, 0, 0, 0.1),
    0 0 0 0.5px rgba(50, 147, 139, 0.22);
}

@media (max-width: 700px) {
  .hero-text { max-width: 100%; }
}

.hero-eyebrow {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-mid); margin-bottom: 1.6rem;
  opacity: 0; animation: fadeUp .6s var(--ease) .1s forwards;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300; line-height: 1.08; letter-spacing: -.01em;
  margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp .75s var(--ease) .22s forwards;
}
.hero-headline em {
  font-style: italic;
  background: linear-gradient(
    115deg,
    var(--accent-mid)   0%,
    var(--accent)      30%,
    var(--accent-mid)  60%,
    var(--accent-deep) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: heroEmShimmer 7s ease-in-out infinite alternate;
}
@keyframes heroEmShimmer {
  0%   { background-position: 0%   50%; }
  100% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-headline em { animation: none; }
}
.hero-sub {
  font-size: clamp(.88rem, 1.5vw, 1rem); font-weight: 400;
  color: rgba(18, 38, 36, 0.82); line-height: 1.8;
  margin-bottom: 2.8rem;
  opacity: 0; animation: fadeUp .75s var(--ease) .36s forwards;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: .85rem;
  opacity: 0; animation: fadeUp .75s var(--ease) .5s forwards;
}

/* ── ENTROPY SLIDER ──────────────────────────────────────────────────────── */
.eslider-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: 2.6rem 0;
  cursor: ns-resize;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  animation: fadeUp .75s var(--ease) .6s forwards;
}
@media (max-width: 700px) { .eslider-wrap { display: none; } }
.eslider-label {
  font-size: .48rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(2,232,211,.28);
  writing-mode: vertical-rl;
  transition: color .25s;
}
.eslider-wrap:hover .eslider-label,
.eslider-wrap.dragging .eslider-label { color: rgba(2,232,211,.6); }
.eslider-track {
  flex: 1;
  width: 32px; /* wide invisible hit area */
  background: transparent;
  position: relative;
  touch-action: none;
}
.eslider-track::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
  background: rgba(2,232,211,.12);
  border-radius: 1px;
  pointer-events: none;
}
.eslider-fill {
  position: absolute;
  left: 50%; top: 0;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(2,232,211,.55), rgba(2,232,211,.08));
  border-radius: 1px;
  height: 50%;
  pointer-events: none;
}
.eslider-thumb {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px rgba(2,232,211,.6), 0 0 3px rgba(2,232,211,.95);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: box-shadow .2s, width .15s, height .15s;
}
.eslider-wrap:hover .eslider-thumb,
.eslider-wrap.dragging .eslider-thumb {
  width: 12px; height: 12px;
  box-shadow: 0 0 14px rgba(2,232,211,.75), 0 0 4px rgba(2,232,211,1);
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: .83rem;
  font-weight: 500; letter-spacing: .02em;
  padding: .7em 1.7em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(50,147,139,.28); }
.btn-primary:hover { background: var(--accent-mid); box-shadow: 0 8px 28px rgba(50,147,139,.4); }
.btn-ghost { background: transparent; color: var(--text-mid); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-hans { background: transparent; color: rgba(2,232,211,.7); border-color: rgba(2,232,211,.22); font-size: .78rem; }
.btn-hans:hover { border-color: rgba(2,232,211,.55); color: var(--accent-bright); }

/* ── BRIDGE ──────────────────────────────────────────────────────────────── */
/* ── TIMELINE ────────────────────────────────────────────────────────────── */
.tl-section {
  position: relative;
  background: linear-gradient(180deg, #0b1210 0%, #161e1d 55%, #1d2b28 100%);
  padding-block: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.tl-header {
  padding-inline: clamp(2rem, 4vw, 5rem);
  margin-bottom: 3rem;
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.tl-range {
  font-size: .58rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(2,232,211,.45); flex-shrink: 0;
}
.tl-intro {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.8vw, 2rem); font-weight: 300;
  color: rgba(210,250,248,.55); line-height: 1.3; font-style: italic;
}

/* Scroll container */
.tl-scroll {
  overflow-x: auto; overflow-y: visible;
  cursor: grab; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-inline: clamp(2rem, 4vw, 5rem);
  padding-bottom: 2.5rem;
}
.tl-scroll::-webkit-scrollbar { display: none; }
.tl-scroll.is-dragging { cursor: grabbing; user-select: none; }

/* Track */
.tl-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  min-width: max-content;
  padding-top: 20px; /* height of dot + gap */
}

/* Horizontal line */
.tl-line {
  position: absolute;
  top: 9px; left: 0; right: 0;
  height: 1px;
  background: rgba(2,232,211,.1);
  pointer-events: none;
}
.tl-line-fill {
  height: 1px; width: 0%;
  background: linear-gradient(to right, rgba(2,232,211,.5), rgba(2,232,211,.15));
  transition: width 1.6s cubic-bezier(.4,0,.2,1) .2s;
}
.tl-section.tl-visible .tl-line-fill { width: 100%; }

/* Node */
.tl-node {
  display: flex; flex-direction: column;
  align-items: flex-start;
  width: clamp(300px, 28vw, 420px); flex-shrink: 0;
  padding-right: clamp(2rem, 4vw, 4rem);
  opacity: 0; transform: translateY(14px);
  transition:
    opacity .6s ease calc(var(--i, 0) * 110ms + 400ms),
    transform .6s ease calc(var(--i, 0) * 110ms + 400ms);
}
.tl-section.tl-visible .tl-node { opacity: 1; transform: none; }
.tl-node--last { padding-right: clamp(2rem, 4vw, 5rem); }

/* Impact bullet list */
.tl-impact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .73rem; font-weight: 300; line-height: 1.75;
  color: rgba(210,250,248,.32);
  transition: opacity .2s ease;
}
.tl-impact-list li {
  padding-left: .85rem; position: relative;
}
.tl-impact-list li::before {
  content: '·'; position: absolute; left: 0;
  color: rgba(2,232,211,.35); font-size: 1rem; line-height: 1.4;
}
.tl-node--last .tl-impact-list { color: rgba(210,250,248,.55); }

/* Dot */
.tl-dot-wrap { margin-bottom: 1.2rem; position: relative; }
.tl-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(2,232,211,.4);
  border: 1px solid rgba(2,232,211,.55);
  box-shadow: 0 0 6px rgba(2,232,211,.25);
  transition: background .3s, box-shadow .3s;
}
.tl-dot--now {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 12px rgba(2,232,211,.6), 0 0 4px rgba(2,232,211,.9);
}
.tl-dot--future {
  background: transparent;
  border: 1.5px dashed rgba(2,232,211,.45);
  box-shadow: none;
}
.tl-node:hover .tl-dot {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(2,232,211,.5);
}

/* Content */
.tl-year {
  font-family: var(--serif); font-weight: 300; letter-spacing: -.01em;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1;
  color: rgba(210,250,248,.28); display: block; margin-bottom: .6rem;
}
.tl-scope {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(2,232,211,.55); line-height: 1.3; margin-bottom: .65rem;
}
.tl-body {
  position: relative;
  min-height: 60px;
}
.tl-impact {
  font-size: .73rem; font-weight: 300; line-height: 1.8;
  color: rgba(210,250,248,.32);
  transition: opacity .2s ease;
}
.tl-node--last .tl-year { color: rgba(2,232,211,.7); }
.tl-node--last .tl-scope { color: var(--accent-bright); letter-spacing: .14em; }
.tl-node--last .tl-impact { color: rgba(210,250,248,.55); }

/* Hover time reveal */
.tl-reveal {
  position: absolute; top: 0; left: 0;
  display: flex; flex-direction: column; gap: .7rem;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease .08s;
}
.tl-node:hover .tl-impact-list,
.tl-node.tl-touched .tl-impact-list { opacity: 0; }
.tl-node:hover .tl-reveal,
.tl-node.tl-touched .tl-reveal { opacity: 1; }

.tl-rv-row { display: flex; flex-direction: column; gap: .12rem; }
.tl-rv-n {
  font-family: 'Courier New', Courier, monospace;
  font-size: .8rem; font-weight: 400; letter-spacing: .02em;
  color: var(--accent-bright); line-height: 1;
}
.tl-rv-l {
  font-size: .5rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(2,232,211,.38);
}


/* Subtle edge softening — no content obfuscation */
.tl-section::before,
.tl-section::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: clamp(24px, 4vw, 60px);
  pointer-events: none;
  z-index: 10;
}
.tl-section::before {
  left: 0;
  background: linear-gradient(to right, rgba(11,18,16,.55) 0%, transparent 100%);
}
.tl-section::after {
  right: 0;
  background: linear-gradient(to left, rgba(29,43,40,.55) 0%, transparent 100%);
}

/* Mobile — vertical */
@media (max-width: 700px) {
  .tl-scroll { overflow-x: visible; cursor: default; padding-bottom: 0; }
  .tl-track { flex-direction: column; min-width: 0; padding-top: 0; padding-left: 1.4rem; gap: 0; }
  .tl-line { display: none; }
  .tl-node {
    width: 100%; padding-right: 0; padding-bottom: 2rem;
    border-left: 1px solid rgba(2,232,211,.15);
    padding-left: 1.5rem; position: relative;
  }
  .tl-dot-wrap { position: absolute; left: -5px; top: 0; margin-bottom: 0; }
  .tl-node--last { border-left-color: transparent; }
  .tl-impact { max-width: none; }
  .tl-section::before,
  .tl-section::after { display: none; }
}

/* ── BRIDGE ──────────────────────────────────────────────────────────────── */
.intro-bridge {
  text-align: center; padding: 3rem 1.5rem 1.75rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.cards-section {
  padding-inline: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
  max-width: 1100px; margin-inline: auto;
}
/* Clean 3 + 3 grid — no centering tricks */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}
.tri-card { grid-column: span 2; }

/* ── TRI-CARD ────────────────────────────────────────────────────────────── */
.tri-card {
  position: relative; height: var(--card-h);
  border-radius: 18px; cursor: pointer;
  outline: none; overflow: hidden;
  transition: box-shadow .35s var(--ease), transform .2s;
}
.tri-card:hover         { transform: translateY(-3px); }
.tri-card:active        { transform: translateY(0); }
.tri-card:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.tri-card[data-state="0"] { box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.tri-card[data-state="1"] { box-shadow: 0 6px 24px rgba(50,147,139,.18); }
.tri-card[data-state="2"] { box-shadow: 0 6px 24px rgba(2,232,211,.14); }

/* ── DEPTH DOTS ──────────────────────────────────────────────────────────── */
.card-dots {
  position: absolute; top: 1.3rem; right: 1.3rem;
  z-index: 10; display: flex; gap: 5px; pointer-events: none;
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(0,0,0,.12); transition: background .3s, transform .3s; }
[data-state="0"] .d0 { background: var(--accent); transform: scale(1.25); }
[data-state="1"] .d1 { background: var(--accent);  transform: scale(1.25); }
[data-state="2"] .d2 { background: rgba(2,232,211,.9); transform: scale(1.25); }
[data-state="2"] .d0, [data-state="2"] .d1 { background: rgba(255,255,255,.2); }

/* ── LAYERS ──────────────────────────────────────────────────────────────── */
.layer {
  position: absolute; inset: 0; border-radius: 18px;
  display: flex; flex-direction: column;
  padding: 1.55rem 1.5rem;
  transition: transform .42s var(--ease), opacity .38s var(--ease);
  overflow: hidden;
}
.l0 { background: var(--cream); border: 1.5px solid rgba(50,147,139,.1); z-index: 3; }
[data-state="0"] .l0 { transform: translateY(0);    opacity: 1; pointer-events: auto; }
[data-state="1"] .l0 { transform: translateY(-28px); opacity: 0; pointer-events: none; transition-delay: 0s; }
[data-state="2"] .l0 { transform: translateY(-28px); opacity: 0; pointer-events: none; }

.l1 {
  background: var(--cream);
  border-left: 2.5px solid var(--accent);
  border-top: 1.5px solid rgba(50,147,139,.14);
  border-right: 1.5px solid rgba(50,147,139,.14);
  border-bottom: 1.5px solid rgba(50,147,139,.14);
  z-index: 2;
}
[data-state="0"] .l1 { transform: translateY(28px);  opacity: 0; pointer-events: none; }
[data-state="1"] .l1 { transform: translateY(0);     opacity: 1; pointer-events: auto; }
[data-state="2"] .l1 { transform: translateY(-28px); opacity: 0; pointer-events: none; transition-delay: 0s; }

.l2 { background: linear-gradient(148deg, #2B3332 0%, #2A3E3C 55%, #1a2b29 100%); z-index: 1; }
[data-state="0"] .l2 { transform: translateY(28px); opacity: 0; pointer-events: none; }
[data-state="1"] .l2 { transform: translateY(28px); opacity: 0; pointer-events: none; }
[data-state="2"] .l2 { transform: translateY(0);    opacity: 1; pointer-events: auto; }

/* ── CARD TEXT ───────────────────────────────────────────────────────────── */
.card-idx {
  font-size: .62rem; font-weight: 600; letter-spacing: .16em;
  color: var(--text-muted); flex-shrink: 0; margin-bottom: auto; padding-bottom: .6rem;
}
.card-idx.muted { color: rgba(2,232,211,.3); }
.front-text {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.2vw, 1.62rem);
  font-weight: 300; line-height: 1.25; color: var(--text);
  flex: 1; display: flex; align-items: center;
}
.front-text em { font-style: italic; color: var(--accent); }
.mid-text {
  font-family: var(--sans); font-size: .9rem; font-weight: 300;
  line-height: 1.75; color: var(--text-mid);
  flex: 1; display: flex; align-items: center;
}
.tech-tags {
  font-size: .6rem; font-weight: 500; letter-spacing: .06em; line-height: 2;
  color: rgba(2,232,211,.5); flex-shrink: 0; padding-bottom: .4rem;
  word-spacing: .1em;
}
.tech-body {
  font-size: .82rem; font-weight: 300; line-height: 1.75;
  color: rgba(210,250,248,.75); flex: 1;
  font-style: italic;
}
.approach-block {
  padding: .75rem 1rem;
  background: rgba(255,255,255,.04);
  border-left: 1.5px solid rgba(2,232,211,.28);
  border-radius: 0 6px 6px 0;
  display: flex; flex-direction: column; gap: .1rem;
  flex-shrink: 0; margin-top: auto;
}
.approach-label {
  font-size: .55rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(2,232,211,.5);
  margin-bottom: .4rem;
}
.approach-block span:last-child {
  font-size: .8rem; font-weight: 300; line-height: 1.9;
  color: rgba(210,250,248,.88);
}
.layer-hint {
  font-size: .62rem; font-weight: 500; letter-spacing: .1em;
  flex-shrink: 0; align-self: flex-end; margin-top: .6rem;
  color: var(--text-muted); opacity: .55;
  transition: opacity .2s, color .2s;
}
.tri-card:hover .layer-hint    { opacity: 1; color: var(--accent); }
.layer-hint.amber              { color: var(--accent); opacity: .7; }
.tri-card:hover .layer-hint.amber { opacity: 1; }
.layer-hint.dim                { color: rgba(2,232,211,.3); opacity: .7; }
.tri-card:hover .layer-hint.dim { opacity: 1; color: rgba(2,232,211,.65); }

/* ── WORK ────────────────────────────────────────────────────────────────── */
/* ── HANS ────────────────────────────────────────────────────────────────── */
.hans-section {
  background: linear-gradient(180deg, #161e1d 0%, #0b1210 100%);
  padding-block: clamp(5rem, 10vw, 8rem);
}
.hans-inner {
  max-width: 560px;
  margin-inline: auto;
  padding-inline: clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.hans-eyebrow {
  font-size: .6rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--accent-bright);
  opacity: .55; margin-bottom: 1.4rem; display: block;
}
.hans-headline {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300; color: rgba(210,250,248,.88);
  line-height: 1.1; margin-bottom: .9rem;
}
.hans-sub {
  font-size: .9rem; font-weight: 300; line-height: 1.75;
  color: rgba(210,250,248,.38); margin-bottom: 2.8rem;
}
.hans-form {
  display: flex; gap: .75rem; justify-content: center;
}
.hans-input {
  font-family: var(--sans); font-size: .85rem; font-weight: 300;
  background: rgba(2,232,211,.06);
  border: 1px solid rgba(2,232,211,.18);
  border-radius: 999px;
  color: rgba(210,250,248,.85);
  padding: .7em 1.4em;
  outline: none; flex: 1; max-width: 260px;
  transition: border-color .2s;
  letter-spacing: .06em;
}
.hans-input::placeholder { color: rgba(2,232,211,.22); }
.hans-input:focus { border-color: rgba(2,232,211,.5); }
.hans-btn {
  font-family: var(--sans); font-size: .83rem; font-weight: 500;
  background: var(--accent); color: #fff;
  border: none; border-radius: 999px;
  padding: .7em 1.6em; cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.hans-btn:hover { background: var(--accent-mid); transform: translateX(2px); }
.hans-error {
  font-size: .75rem; color: rgba(255,80,80,.6);
  margin-top: 1rem; min-height: 1.2em;
  letter-spacing: .04em;
}
.hans-cta-zone {
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.hans-call-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
  margin-bottom: .4rem;
}
.hans-pulse-a, .hans-pulse-b {
  position: absolute; border-radius: 50%;
  border: 1.5px solid var(--accent); pointer-events: none; opacity: 0;
}
.hans-pulse-a { width: 110%; height: 110%; animation: hansPulse 2.4s ease-out infinite; }
.hans-pulse-b { width: 130%; height: 130%; animation: hansPulse 2.4s ease-out infinite .75s; }
@keyframes hansPulse {
  0%   { opacity: .4; transform: scale(.9); }
  100% { opacity: 0;  transform: scale(1.2); }
}
.hans-call-btn {
  width: 120px; height: 120px; border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), var(--accent-mid));
  border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  box-shadow: 0 4px 24px rgba(50,147,139,.45), 0 0 0 4px rgba(50,147,139,.12), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .15s, box-shadow .2s;
  color: #fff; position: relative; z-index: 1;
}
.hans-call-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 8px 36px rgba(50,147,139,.55), 0 0 0 6px rgba(50,147,139,.16);
}
.hans-call-btn:active:not(:disabled) { transform: scale(.97); }
.hans-call-btn:disabled { cursor: not-allowed; opacity: .65; }
.hans-call-btn.active { background: linear-gradient(145deg, var(--accent-mid), var(--accent-deep)); cursor: default; }
.hans-mic { flex-shrink: 0; }
.hans-btn-label {
  font-family: var(--sans); font-size: .65rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.hans-wave {
  display: none; align-items: center; gap: 3px; height: 24px;
}
.hans-wave.show { display: flex; }
.hans-wave span {
  display: block; width: 3px; background: rgba(255,255,255,.75);
  border-radius: 2px; animation: hansWave .75s ease-in-out infinite; transform-origin: bottom;
}
.hans-wave span:nth-child(1) { animation-delay: .00s; height: 40%; }
.hans-wave span:nth-child(2) { animation-delay: .10s; height: 70%; }
.hans-wave span:nth-child(3) { animation-delay: .20s; height: 100%; }
.hans-wave span:nth-child(4) { animation-delay: .10s; height: 70%; }
.hans-wave span:nth-child(5) { animation-delay: .00s; height: 40%; }
@keyframes hansWave {
  0%, 100% { transform: scaleY(.35); }
  50%       { transform: scaleY(1); }
}
.hans-status-line {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: rgba(210,250,248,.38); font-weight: 300; min-height: 1.3em;
}
.hans-status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; transition: background .3s;
  background: rgba(2,232,211,.25);
}
.hans-status-dot.idle       { background: rgba(2,232,211,.25); }
.hans-status-dot.connecting { background: var(--accent); animation: hansBlink .7s ease infinite; }
.hans-status-dot.listening  { background: var(--accent-bright); animation: hansBlink 1.1s ease infinite; }
.hans-status-dot.speaking   { background: var(--accent-bright); animation: hansBlink .45s ease infinite alternate; }
.hans-status-dot.ended      { background: rgba(255,80,80,.55); }
@keyframes hansBlink {
  0%, 100% { opacity: 1; } 50% { opacity: .2; }
}
.hans-error-msg {
  font-size: .75rem; color: rgba(255,90,90,.65); min-height: 1.1em;
  text-align: center; display: none;
}
.hans-end-btn {
  display: none; align-items: center; gap: .4rem;
  background: rgba(255,80,80,.06); border: 1px solid rgba(255,80,80,.25);
  color: rgba(255,100,100,.7); border-radius: 999px;
  padding: .35rem .9rem .35rem .7rem;
  font-family: var(--sans); font-size: .72rem; letter-spacing: .05em;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.hans-end-btn:hover { background: rgba(255,80,80,.12); border-color: rgba(255,100,100,.5); }
.hans-stop-sq { width: 8px; height: 8px; background: rgba(255,100,100,.7); border-radius: 2px; flex-shrink: 0; }
.hans-transcript-wrap {
  display: none; width: 100%; max-width: 440px; margin-top: .4rem;
}
.hans-transcript {
  max-height: 200px; overflow-y: auto;
  display: flex; flex-direction: column; gap: .55rem;
  padding: .75rem 0 .25rem;
  border-top: 1px solid rgba(2,232,211,.1);
  scrollbar-width: thin; scrollbar-color: rgba(2,232,211,.2) transparent;
}
.hans-msg { display: flex; flex-direction: column; gap: .12rem; animation: fadeUp .22s ease; }
.hans-msg-who {
  font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
}
.hans-msg.agent .hans-msg-who { color: var(--accent); }
.hans-msg.user  .hans-msg-who { color: rgba(210,250,248,.28); text-align: right; }
.hans-msg-text {
  font-size: .82rem; font-weight: 300; line-height: 1.6;
  color: rgba(210,250,248,.72);
  background: rgba(2,232,211,.05); border-radius: 6px; padding: .5rem .8rem;
}
.hans-msg.user .hans-msg-text { background: rgba(255,255,255,.04); text-align: right; }

/* Override for white card context */
/* Voice UI — centered vertical layout inside the card */
.contact-card .hans-cta-zone {
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: .6rem;
  width: 100%;
}
.contact-card .hans-call-btn {
  width: 88px; height: 88px;
  box-shadow: 0 4px 20px rgba(50,147,139,.28), 0 0 0 6px rgba(50,147,139,.07);
}
.contact-card .hans-btn-label {
  font-size: .6rem; letter-spacing: .16em;
}
.contact-card .hans-status-line { color: var(--text-mid); font-size: .78rem; }
.contact-card .hans-error-msg { font-size: .72rem; color: rgba(200,60,60,.75); }
.contact-card .hans-transcript-wrap { max-width: 480px; width: 100%; margin-top: .25rem; }
.contact-card .hans-transcript {
  border-top-color: rgba(50,147,139,.12);
  text-align: left;
}
.contact-card .hans-msg.user  .hans-msg-who { color: var(--text-muted); }
.contact-card .hans-msg-text { color: var(--text); background: #f0f8f7; }
.contact-card .hans-msg.agent .hans-msg-text { border-left: 2px solid var(--accent); }
.contact-card .hans-msg.user  .hans-msg-text { background: #e8f4f2; }

/* ── PROCESS ─────────────────────────────────────────────────────────────── */
.process {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, rgba(2,232,211,.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--accent-deep) 0%, #1d2b28 100%);
  color: rgba(245,250,249,.92);
  overflow: hidden;
}
.process::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, var(--warm-white) 100%);
  pointer-events: none;
}
.process-inner {
  max-width: 1100px; margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
  position: relative;
}
.process-header {
  max-width: 720px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.process-eyebrow {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(2,232,211,.55); margin-bottom: 1.4rem;
}
.process-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300; line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: 1.4rem;
  color: rgba(245,250,249,.95);
}
.process-headline em {
  font-style: italic;
  background: linear-gradient(125deg, var(--accent-bright) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.process-sub {
  font-size: clamp(.92rem, 1.4vw, 1.05rem);
  line-height: 1.75; color: rgba(245,250,249,.55);
  max-width: 540px;
}

.process-steps {
  list-style: none;
  display: flex; flex-direction: column;
  gap: clamp(3rem, 6vw, 6rem);
  counter-reset: step;
}
.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  position: relative;
}
.process-step:nth-child(even) .process-step-visual { order: 2; }
.process-step:nth-child(even) .process-step-body   { order: 1; }

.process-step-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1344 / 768;
  background: #0b1210;
  box-shadow:
    0 30px 60px rgba(0,0,0,.35),
    0 0 0 1px rgba(2,232,211,.06);
}
.process-step-visual img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .8s var(--ease), filter .4s;
}
.process-step:hover .process-step-visual img {
  transform: scale(1.02);
}

.process-step-body { display: flex; flex-direction: column; }
.process-step-idx {
  font-family: var(--sans);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .8rem;
}
.process-step-idx::after {
  content: ''; flex: 0 0 36px; height: 1px;
  background: rgba(2,232,211,.35);
}
.process-step-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 300; line-height: 1.15; letter-spacing: -.005em;
  margin-bottom: 1.1rem;
  color: rgba(245,250,249,.96);
}
.process-step-text {
  font-size: clamp(.92rem, 1.3vw, 1rem);
  line-height: 1.85; color: rgba(245,250,249,.62);
  font-weight: 300;
}

@media (max-width: 760px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .process-step:nth-child(even) .process-step-visual,
  .process-step:nth-child(even) .process-step-body { order: initial; }
  .process-step-visual { aspect-ratio: 1344 / 768; }
}

/* ── WORK ────────────────────────────────────────────────────────────────── */
.work { padding-block: clamp(5rem, 10vw, 8rem); background: var(--warm-white); }
.work-inner { max-width: 1100px; margin-inline: auto; padding-inline: clamp(1.5rem, 5vw, 3rem); }
.work-eyebrow {
  font-size: .68rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2.5rem;
}
.work-project { border-top: 1px solid var(--border); padding-top: 2.5rem; }
.work-project + .work-project { margin-top: 3rem; }
.work-project-top { margin-bottom: 2rem; }
.work-img-wrap {
  position: relative; overflow: hidden;
  border-radius: 10px; background: #0b1210;
  aspect-ratio: 16 / 7; margin-bottom: 2rem;
}
.work-img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%; display: block;
  filter: saturate(0.88) brightness(0.9);
  transition: transform .7s var(--ease), filter .4s;
}
.work-project:hover .work-img { transform: scale(1.02); filter: saturate(1) brightness(0.96); }
.work-img-credit {
  position: absolute; bottom: .5rem; right: .7rem;
  font-size: .56rem; font-weight: 400; letter-spacing: .05em;
  color: rgba(255,255,255,.35); pointer-events: none;
}
.work-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: .35rem;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16 / 14;
  background: #0b1210;
}
.work-img-grid-item { overflow: hidden; }
.work-img-grid-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: saturate(0.82) brightness(0.88);
  transition: transform .7s var(--ease), filter .4s;
}
.work-project:hover .work-img-grid-item img {
  transform: scale(1.04);
  filter: saturate(1) brightness(0.95);
}
.work-project-id {
  display: flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .08em;
  color: var(--text-muted); margin-bottom: .8rem;
}
.work-sep { opacity: .4; }
.work-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1.1; margin-bottom: .4rem;
}
.work-subtitle { font-size: .82rem; font-weight: 300; color: var(--text-muted); }
.work-stats {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  margin-bottom: 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.work-stat { display: flex; flex-direction: column; position: relative; }
.work-stat-n { font-size: 1.8rem; font-weight: 300; line-height: 1; color: var(--accent); margin-bottom: .2rem; }
.work-stat-l { font-size: .68rem; font-weight: 500; letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; }

.work-stat--agent .work-stat-n {
  background: linear-gradient(125deg, var(--accent-bright) 0%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 400;
}
.work-stat--agent .work-stat-l { color: var(--accent); }
.work-stat--agent::before {
  content: '';
  position: absolute; left: -10px; top: 2px; bottom: 2px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-bright), transparent);
  border-radius: 2px;
}
.work-body { display: flex; gap: 3rem; align-items: flex-start; flex-wrap: wrap; }
.work-role-block { flex: 1; min-width: 260px; }
.work-role-label {
  font-size: .62rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .6rem;
}
.work-role-text { font-size: .88rem; font-weight: 300; line-height: 1.8; color: var(--text-mid); }
.work-link {
  display: inline-flex; align-items: center; align-self: flex-end;
  font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  color: var(--accent); border-bottom: 1px solid rgba(50,147,139,.3);
  padding-bottom: .15rem; white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.work-link:hover { color: var(--accent-mid); border-color: var(--accent-mid); }

/* ── PHILOSOPHY ──────────────────────────────────────────────────────────── */
.philosophy { background: var(--accent-deep); padding-block: clamp(6rem, 11vw, 9rem); text-align: center; }
.philosophy-inner { max-width: 680px; margin-inline: auto; padding-inline: 1.5rem; }
.phil-line { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; line-height: 1.2; color: #E0FAFA; margin-bottom: .4rem; }
.phil-em { font-style: italic; color: rgba(2,232,211,.7); }
.phil-sub { margin-top: 1.4rem; font-size: .93rem; font-weight: 300; color: rgba(2,232,211,.45); line-height: 1.9; }

/* ── CONTACT ─────────────────────────────────────────────────────────────── */
.contact {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: linear-gradient(180deg, var(--warm-white) 0%, #f0f8f7 100%);
}
.contact-inner { max-width: 1000px; margin-inline: auto; padding-inline: clamp(1.5rem, 5vw, 3rem); text-align: center; }
.contact-headline { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 1.1rem; }
.contact-headline em { font-style: italic; color: var(--accent); }
.contact-sub { font-size: .97rem; font-weight: 300; color: var(--text-mid); max-width: 520px; margin-inline: auto; margin-bottom: 2rem; line-height: 1.8; }

.contact-linkedin {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 500;
  letter-spacing: .02em;
  color: var(--accent);
  text-decoration: none;
  padding: .65em 1.2em;
  border: 1px solid rgba(50,147,139,.32);
  border-radius: 999px;
  background: rgba(50,147,139,.04);
  margin-bottom: 2.4rem;
  transition: color .18s, border-color .18s, background .18s, gap .18s;
}
.contact-linkedin svg { width: 16px; height: 16px; display: block; }
.contact-linkedin-arrow { font-size: .82rem; opacity: .55; transition: transform .18s; }
.contact-linkedin:hover {
  color: var(--accent-mid);
  border-color: rgba(50,147,139,.6);
  background: rgba(50,147,139,.08);
  gap: .8rem;
}
.contact-linkedin:hover .contact-linkedin-arrow { transform: translate(2px, -2px); opacity: .85; }

/* ── 3-card flex collapse/expand ── */
.contact-grid {
  display: flex;
  gap: 1.2rem;
  align-items: stretch;
}

.contact-card {
  flex: 1 1 0;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(50,147,139,.1);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition:
    flex-grow .5s cubic-bezier(.4,0,.2,1),
    opacity .35s ease,
    border-color .2s;
}
.contact-card:not(.active):hover {
  border-color: rgba(50,147,139,.22);
  box-shadow: 0 4px 18px rgba(50,147,139,.06);
}
/* Desktop: collapse inactive, expand active */
.contact-grid.has-active .contact-card:not(.active) {
  flex-grow: 0;
  flex-shrink: 1;
  flex-basis: 0;
  opacity: 0;
  pointer-events: none;
}
.contact-grid.has-active .contact-card.active {
  flex-grow: 3;
  cursor: default;
}

/* Head — always visible */
.contact-card-head {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.6rem 1.8rem;
  user-select: none;
}
.contact-card-idx {
  font-size: .55rem; font-weight: 700; letter-spacing: .18em;
  color: var(--accent); opacity: .5; flex-shrink: 0;
}
.contact-card-title {
  font-family: var(--sans); font-size: .95rem; font-weight: 500;
  color: var(--text); line-height: 1.2; flex: 1; text-align: center;
}
.contact-card-toggle {
  font-size: 1.1rem; font-weight: 300; color: rgba(50,147,139,.4);
  flex-shrink: 0; transition: transform .35s ease, color .2s;
  line-height: 1;
}
.contact-card.active .contact-card-toggle { transform: rotate(45deg); color: var(--accent); }

/* Body — hidden until active */
.contact-card-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 2rem;
  transition:
    max-height .45s cubic-bezier(.4,0,.2,1) .05s,
    opacity .3s ease .1s,
    padding .3s ease;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
.contact-card.active .contact-card-body {
  max-height: 640px;
  opacity: 1;
  padding: 0.5rem 2rem 2rem;
}

/* Mobile — vertical accordion, cards size to content */
@media (max-width: 720px) {
  .contact-grid {
    flex-direction: column;
    gap: .75rem;
  }
  .contact-card {
    flex: 0 0 auto;   /* ignore flex-basis: 0, size to content */
    width: 100%;
  }
  /* keep all cards visible regardless of active state */
  .contact-grid.has-active .contact-card:not(.active) {
    flex-grow: 0;
    flex-basis: auto;
    opacity: 1;
    pointer-events: auto;
  }
  .contact-grid.has-active .contact-card.active {
    flex-grow: 0;
    flex-basis: auto;
  }
  .contact-card-title { text-align: left; }
  .contact-card-body { align-items: flex-start; text-align: left; padding: 0 1.4rem; }
  .contact-card.active .contact-card-body { padding: 0 1.4rem 1.4rem; }
  .contact-card .hans-call-btn { width: 76px; height: 76px; }
}

.contact-card-desc {
  font-size: .85rem; font-weight: 300; color: var(--text-mid); line-height: 1.75;
}
.contact-card-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .83rem; font-weight: 500; color: var(--accent);
  text-decoration: none; transition: gap .15s, color .2s;
  margin-top: .5rem;
}
.contact-card-link:hover { gap: .75rem; color: var(--accent-mid); }

/* ── Write-to-AI chat ── */
.cwrite-transcript {
  display: flex; flex-direction: column; gap: .45rem;
  max-height: 180px; overflow-y: auto; padding-bottom: .25rem;
  scrollbar-width: thin; scrollbar-color: rgba(50,147,139,.15) transparent;
}
.cwrite-msg { display: flex; flex-direction: column; gap: .08rem; animation: fadeUp .2s ease; }
.cwrite-msg-who { font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; }
.cwrite-msg.agent .cwrite-msg-who { color: var(--accent); }
.cwrite-msg.user  .cwrite-msg-who { color: var(--text-muted); text-align: right; }
.cwrite-msg-text {
  font-size: .82rem; font-weight: 400; line-height: 1.65; color: var(--text);
  background: #f0f8f7; border-radius: 8px; padding: .5rem .8rem;
}
.cwrite-msg.agent .cwrite-msg-text { border-left: 2px solid var(--accent); }
.cwrite-msg.user  .cwrite-msg-text { background: #e8f4f2; text-align: right; }

.cwrite-status-line {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; color: var(--text-mid); font-style: italic;
}
.cwrite-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: hansBlink .9s ease infinite;
}

.cwrite-form {
  display: flex; gap: .5rem; align-items: flex-end; margin-top: auto;
}
.cwrite-input {
  flex: 1; font-family: var(--sans); font-size: .82rem; font-weight: 300;
  background: #fff; border: 1.5px solid rgba(50,147,139,.28);
  border-radius: 10px; padding: .65em .9em; resize: none; color: var(--text);
  outline: none; transition: border-color .2s; line-height: 1.5;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.04);
}
.cwrite-input::placeholder { color: var(--text-muted); }
.cwrite-input:focus { border-color: var(--accent); box-shadow: inset 0 1px 3px rgba(0,0,0,.04), 0 0 0 3px rgba(50,147,139,.08); }
.cwrite-btn {
  font-family: var(--sans); font-size: .9rem; font-weight: 600;
  background: var(--accent); color: #fff;
  border: none; border-radius: 10px; padding: .6em .95em;
  cursor: pointer; transition: background .2s; flex-shrink: 0; align-self: flex-end;
}
.cwrite-btn:hover { background: var(--accent-mid); }
.cwrite-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── WHATSAPP FAB ────────────────────────────────────────────────────────── */
.wa-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
  box-shadow:
    0 6px 22px rgba(50,147,139,.35),
    0 2px 6px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .22s var(--ease), box-shadow .22s, background .22s;
  text-decoration: none;
}
.wa-fab:hover {
  transform: translateY(-2px);
  background: var(--accent-mid);
  box-shadow:
    0 10px 30px rgba(50,147,139,.4),
    0 3px 10px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.22);
}
.wa-fab:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}
.wa-fab-icon {
  width: 28px;
  height: 28px;
  display: block;
}
.wa-fab-label {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  margin-right: 10px;
  background: rgba(11,18,16,.92);
  color: rgba(245,250,249,.95);
  padding: .5em .8em;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.wa-fab:hover .wa-fab-label,
.wa-fab:focus-visible .wa-fab-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 700px) {
  .wa-fab { bottom: 16px; right: 16px; width: 48px; height: 48px; }
  .wa-fab-icon { width: 24px; height: 24px; }
  .wa-fab-label { display: none; }
}

/* ── WHATSAPP QR MODAL ───────────────────────────────────────────────────── */
.wa-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.wa-modal[hidden] { display: none; }
.wa-modal.open { opacity: 1; pointer-events: auto; }
.wa-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 18, 16, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.wa-modal-card {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  padding: 2.1rem 2rem 1.7rem;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 32px 80px rgba(0,0,0,.45),
    0 0 0 1px rgba(50,147,139,.18);
  transform: translateY(8px) scale(.985);
  transition: transform .28s var(--ease);
}
.wa-modal.open .wa-modal-card { transform: translateY(0) scale(1); }
.wa-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 30px; height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.wa-modal-close:hover { color: var(--text); background: rgba(0,0,0,.04); }
.wa-modal-eyebrow {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.wa-modal-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.wa-modal-qr {
  width: 200px; height: 200px;
  margin: 0 auto 1.2rem;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.wa-modal-qr img { width: 100%; height: 100%; display: block; }
.wa-modal-number {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .05em;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.wa-modal-hint {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: .55rem;
  line-height: 1.5;
}
.wa-modal-link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .82rem;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, gap .15s;
}
.wa-modal-link:hover { color: var(--accent-mid); gap: .5rem; }
body.wa-modal-locked { overflow: hidden; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer { background: var(--accent-deep); }

/* ── FOOTER LEGAL — horizontal bar + panels ──────────────────────────────── */
.footer-legal { border-bottom: 1px solid rgba(2,232,211,.08); }

.footer-legal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1rem clamp(1.5rem, 5vw, 3rem);
}
.footer-legal-sep {
  font-size: .9rem; line-height: 1;
  color: rgba(2,232,211,.2);
}

/* Triggers: inline, not full-width */
.accord-trigger {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans);
  font-size: .65rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(2,232,211,.35);
  padding: .3rem .5rem;
  transition: color .2s;
}
.accord-trigger:hover { color: rgba(2,232,211,.65); }
.accord-trigger[aria-expanded="true"] { color: rgba(2,232,211,.75); }
.accord-icon {
  font-size: 1rem; font-weight: 300; line-height: 1;
  transition: transform .3s var(--ease); flex-shrink: 0;
}
.accord-trigger[aria-expanded="true"] .accord-icon { transform: rotate(45deg); }

/* Panels: full width, below the bar */
.accord-body {
  overflow: hidden; max-height: 0;
  transition: max-height .4s var(--ease);
  border-top: 0 solid rgba(2,232,211,.06);
}
.accord-body.open {
  max-height: 700px;
  border-top-width: 1px;
}
.accord-inner { padding: .5rem clamp(1.5rem, 5vw, 3rem) 1.8rem; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem 3rem;
}
.legal-grid--single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-inline: auto;
}
.legal-grid address { font-style: normal; }
.legal-grid p, .legal-grid address p {
  font-size: .78rem; font-weight: 300; line-height: 1.95;
  color: rgba(210,250,248,.5); margin-bottom: .25rem;
}
.legal-name { font-size: .85rem !important; font-weight: 500 !important; color: rgba(210,250,248,.78) !important; margin-bottom: .3rem !important; }
.legal-grid a { color: rgba(2,232,211,.6); text-decoration: underline; text-underline-offset: 3px; }
.legal-grid a:hover { color: var(--accent-bright); }
#panel-impressum .accord-inner,
#panel-dsgvo .accord-inner {
  max-width: 640px;
  margin-inline: auto;
}
#panel-dsgvo .accord-inner {
  text-align: center;
}
.dsgvo-head {
  display: block; font-size: .58rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: rgba(2,232,211,.38); margin-top: 1.1rem; margin-bottom: .3rem;
}
.dsgvo-head:first-child { margin-top: 0; }

/* ── ROBOT CHECK ─────────────────────────────────────────────────────────── */
#robotOverlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(11,18,16,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .28s ease;
  pointer-events: none;
}
#robotOverlay.robot-show { opacity: 1; pointer-events: auto; }
.robot-box {
  position: relative;
  background: linear-gradient(158deg, rgba(22,30,29,.98) 0%, rgba(11,18,16,.99) 100%);
  border: 1px solid rgba(2,232,211,.18);
  border-radius: 20px;
  padding: 2.6rem 3rem;
  max-width: 340px; width: 90%;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(2,232,211,.08), 0 32px 80px rgba(0,0,0,.5);
}
.robot-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 30px; height: 30px;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  color: rgba(245,250,249,.4);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.robot-close:hover { color: rgba(245,250,249,.9); background: rgba(2,232,211,.08); }
.robot-eyebrow {
  font-size: .52rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(2,232,211,.4); margin-bottom: 1.4rem; display: block;
}
.robot-q {
  font-family: var(--serif); font-size: 1.6rem; font-weight: 300;
  color: rgba(210,250,248,.88); margin-bottom: 1.8rem; line-height: 1.3;
}
.robot-q strong { color: var(--accent-bright); font-weight: 400; }
.robot-form { display: flex; gap: .6rem; justify-content: center; }
.robot-input {
  width: 80px; text-align: center;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 300;
  background: rgba(2,232,211,.06); border: 1px solid rgba(2,232,211,.2);
  border-radius: 10px; color: rgba(210,250,248,.9);
  padding: .5em .4em; outline: none;
  transition: border-color .2s;
  -moz-appearance: textfield;
}
.robot-input::-webkit-outer-spin-button,
.robot-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.robot-input:focus { border-color: rgba(2,232,211,.5); }
.robot-btn {
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  background: var(--accent); color: #fff;
  border: none; border-radius: 10px; padding: .5em .9em;
  cursor: pointer; transition: background .2s;
}
.robot-btn:hover { background: var(--accent-mid); }
.robot-err {
  font-size: .72rem; color: rgba(255,90,90,.65); margin-top: .9rem;
  min-height: 1em; letter-spacing: .04em;
}

/* ── FOOTER BAR ──────────────────────────────────────────────────────────── */
.footer-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  padding: 1.2rem clamp(1.5rem, 5vw, 3rem);
  font-size: .68rem; color: rgba(2,232,211,.25);
}
.footer-logo { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(2,232,211,.45); }

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

/* Tablet: 2 cards per row (3 rows of 2) */
@media (max-width: 720px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }
  .tri-card { grid-column: span 1; }
}
/* Mobile: 1 card per row */
@media (max-width: 480px) {
  :root { --card-h: 340px; }
  .cards-grid { grid-template-columns: 1fr; gap: .85rem; }
  .tri-card { grid-column: 1; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .contact-options { flex-direction: column; gap: 1.8rem; }
  .footer-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .contact-options { flex-direction: column; gap: 1.8rem; }
  .footer-bar { flex-direction: column; text-align: center; }
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
