/* ─────────────────────────────────────────────────────────────
   Chạm AI Agency — Design Tokens
   Phygital aesthetic: warm bone paper × architectural slate
   × precision tech-mint. Light-mode first.
   ───────────────────────────────────────────────────────────── */

:root {
  /* Palette ─ Architectural earth */
  --bone:        #F4F1EA;
  --paper:      #FAF8F3;
  --white:      #FFFFFF;
  --hairline:   #E5E1D6;
  --hairline-2: #D8D3C3;

  --ink:        #0E141B;       /* deep slate, near-black */
  --slate:      #2B3441;
  --slate-soft: #4A5566;
  --concrete:   #64686F;       /* muted label — AA-legible on bone */
  --concrete-2: #B4B6B9;

  /* Palette ─ Tech accents */
  --mint:       #00C9A7;       /* signature tech-mint */
  --mint-deep:  #0A8A75;
  --mint-soft:  #D5F3EC;
  --cyan:       #00B8D9;

  /* Palette ─ Warm accents */
  --terracotta: #C36B45;
  --terracotta-soft: #F4E3D8;
  --ochre:      #C9A24B;

  /* Semantic */
  --bg:         var(--paper);
  --bg-alt:     var(--bone);
  --fg:         var(--ink);
  --fg-soft:    var(--slate);
  --fg-muted:   var(--concrete);
  --rule:       var(--hairline);
  --accent:     var(--mint);
  --accent-warm: var(--terracotta);

  /* Type */
  --f-serif:   "Fraunces", Georgia, "Times New Roman", serif;  /* editorial display */
  --f-display: "Be Vietnam Pro", system-ui, sans-serif;        /* UI / functional headings */
  --f-body:    "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --fs-hero: clamp(2.75rem, 8.2vw, 7rem);
  --fs-h1:   clamp(2.25rem, 5.2vw, 4rem);
  --fs-h2:   clamp(1.6rem, 3vw, 2.5rem);
  --fs-h3:   1.25rem;
  --fs-body: 1.0625rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  /* Layout */
  --max:        1440px;
  --pad-x:      clamp(20px, 5vw, 96px);
  --section-py: clamp(72px, 11vw, 144px);
  --radius:     14px;
  --radius-lg:  22px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ──────────────────────────────────────────────
   Reset
   ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }

::selection { background: var(--ink); color: var(--mint); }

/* ──────────────────────────────────────────────
   Utilities
   ────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.eyebrow {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--fg-muted);
}
.eyebrow.dark::before { background: var(--mint); }
.eyebrow.dark { color: var(--mint); }

.section-title {
  font-family: var(--f-serif);
  font-optical-sizing: auto;
  font-size: var(--fs-h1);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  max-width: 20ch;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-warm);
}

/* CTA button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  isolation: isolate;
}
.btn .arrow {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--mint);
  transition: transform .35s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px) rotate(-8deg); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary .arrow { background: var(--mint); color: var(--ink); }
.btn-primary:hover { background: #1B2330; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline-2);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ──────────────────────────────────────────────
   Scroll-triggered reveal
   ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ──────────────────────────────────────────────
   Header
   ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(250, 248, 243, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(250, 248, 243, 0.92);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(120% 100% at 30% 20%, var(--mint) 0%, transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--slate) 100%);
  position: relative;
  overflow: hidden;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 50%;
  border: 1px solid var(--paper);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}
.brand-name { color: var(--ink); }
.brand-name span { color: var(--mint-deep); }
.brand-tag {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-left: 12px;
  border-left: 1px solid var(--hairline-2);
  margin-left: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg-soft);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover { background: var(--bone); color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  padding: 8px 12px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: transparent;
}
.lang-toggle b { color: var(--ink); }
.nav-cta {
  padding: 10px 20px 10px 22px;
  font-size: 0.88rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .25s var(--ease);
}
.nav-cta::after {
  content: "→";
  color: var(--mint);
  transition: transform .25s var(--ease);
}
.nav-cta:hover { background: var(--slate); }
.nav-cta:hover::after { transform: translateX(4px); }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--hairline-2);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  width: 18px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 80px 0 0 0;
  background: var(--paper);
  z-index: 70;
  padding: 32px var(--pad-x) 48px;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0 0 32px; }
.mobile-menu li { border-bottom: 1px solid var(--hairline); }
.mobile-menu ul a {
  display: block;
  padding: 22px 4px;
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-menu .btn { width: 100%; justify-content: center; padding-block: 18px; }

/* ──────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  position: relative;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.hero-label .dot {
  width: 8px; height: 8px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 201, 167, .18), 0 0 16px var(--mint);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 201, 167, .18), 0 0 16px var(--mint); }
  50%      { box-shadow: 0 0 0 10px rgba(0, 201, 167, 0), 0 0 24px var(--mint); }
}
.hero-label span:last-child {
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: 600;
}
.hero-title {
  font-family: var(--f-serif);
  font-optical-sizing: auto;
  font-size: var(--fs-hero);
  letter-spacing: -0.025em;
  line-height: 0.98;
  font-weight: 500;
  color: var(--ink);
  max-width: 15ch;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title .accent {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(110deg, var(--terracotta) 0%, var(--ochre) 60%, var(--mint-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title sup {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 0.18em;
  font-weight: 600;
  letter-spacing: 0.16em;
  vertical-align: 0.9em;
  color: var(--mint-deep);
  text-transform: uppercase;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: end;
  gap: 48px;
  margin-top: 56px;
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 38ch;
}
.hero-stats {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  border-left: 1px solid var(--hairline-2);
  padding-left: 32px;
}
.hero-stat .num {
  font-family: var(--f-serif);
  font-optical-sizing: auto;
  font-size: 2.4rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.hero-stat .num small { font-size: 0.55em; color: var(--mint-deep); margin-left: 2px; }
.hero-stat .label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 8px;
  line-height: 1.35;
  max-width: 14ch;
}
.hero-ctas {
  display: flex; gap: 12px; flex-direction: column;
}

/* Hero blueprint visual */
.hero-visual {
  position: absolute;
  right: calc(var(--pad-x) * -0.2);
  top: 60px;
  width: clamp(220px, 28vw, 380px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.85;
}
.hero-visual svg { width: 100%; height: 100%; }

/* Marquee */
.marquee {
  border-block: 1px solid var(--hairline);
  background: var(--bone);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: scroll 38s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--slate);
  display: inline-flex;
  align-items: center;
  gap: 64px;
  white-space: nowrap;
}
.marquee-item::after {
  content: "✦";
  color: var(--mint-deep);
  font-size: 0.7em;
}
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────
   Manifesto
   ────────────────────────────────────────────── */
.manifesto {
  padding: var(--section-py) 0;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.manifesto-label {
  position: sticky;
  top: 100px;
}
.manifesto-body {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
}
.manifesto-body p + p { margin-top: 1.2em; }
.manifesto-body .hl {
  background: linear-gradient(180deg, transparent 60%, var(--mint-soft) 60%);
  padding: 0 2px;
}
.manifesto-body em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}
.manifesto-pillars {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.pillar {
  background: var(--paper);
  padding: 32px 28px;
}
.pillar .num {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--mint-deep);
  margin-bottom: 24px;
  display: block;
}
.pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--ink);
}
.pillar p {
  font-size: 0.95rem;
  color: var(--fg-soft);
  line-height: 1.55;
}

/* ──────────────────────────────────────────────
   Services
   ────────────────────────────────────────────── */
.services {
  padding: var(--section-py) 0;
  background: var(--bone);
  border-block: 1px solid var(--hairline);
}
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.services-head p {
  max-width: 44ch;
  color: var(--fg-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

.cluster {
  margin-top: 48px;
}
.cluster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--hairline-2);
}
.cluster-head .title-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.cluster-head h3 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}
.cluster-head .code {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--mint-deep);
  padding: 4px 10px;
  background: var(--mint-soft);
  border-radius: 999px;
}
.cluster.physical .cluster-head .code { background: var(--terracotta-soft); color: var(--terracotta); }
.cluster.cross .cluster-head .code { background: rgba(201,162,75,.18); color: #8C6F1F; }

.cluster-head p {
  max-width: 44ch;
  color: var(--fg-soft);
  font-size: 0.95rem;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.svc {
  background: var(--paper);
  padding: 36px 32px 32px;
  position: relative;
  transition: background .35s var(--ease);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
}
.svc:hover { background: var(--white); }
.svc::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.cluster.physical .svc::after { background: var(--terracotta); }
.cluster.cross .svc::after { background: var(--ochre); }
.svc:hover::after { transform: scaleX(1); }

.svc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.svc-num {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}
.svc-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--ink);
}
.svc-icon svg { width: 100%; height: 100%; }
.svc h4 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--ink);
}
.svc .vi-name {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mint-deep);
  margin-bottom: 6px;
  display: block;
}
.cluster.physical .svc .vi-name { color: var(--terracotta); }
.cluster.cross .svc .vi-name { color: #8C6F1F; }
.svc p {
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--fg-soft);
  margin-top: auto;
}
.svc .reveal-line {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--hairline-2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.svc:hover .reveal-line { opacity: 1; transform: none; }

/* Cluster.cross — single full-width card */
.cluster.cross .svc-grid {
  grid-template-columns: 1fr;
}
.cluster.cross .svc {
  min-height: auto;
  padding: 40px 40px 40px 0;
  display: grid;
  grid-template-columns: 0.5fr 1fr 1fr auto;
  gap: 32px;
  align-items: center;
}
.cluster.cross .svc-meta {
  margin-bottom: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-left: 40px;
}
.cluster.cross .svc h4 { margin-bottom: 0; }
.cluster.cross .svc p { margin-top: 0; }
.cluster.cross .svc .reveal-line {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  opacity: 1;
  transform: none;
  text-align: right;
  color: var(--fg-soft);
}

/* ──────────────────────────────────────────────
   Team
   ────────────────────────────────────────────── */
.team {
  padding: var(--section-py) 0;
  background: var(--paper);
}
.team-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 72px;
}
.team-head p {
  max-width: 46ch;
  color: var(--fg-soft);
  line-height: 1.6;
}
.team-meta {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  align-items: center;
}
.team-meta .count {
  font-family: var(--f-serif);
  font-optical-sizing: auto;
  font-size: 3.2rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.team-meta .count sup {
  font-size: 0.4em;
  color: var(--mint-deep);
  margin-left: 2px;
}
.team-meta .count-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 16ch;
}

.pod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.pod {
  background: var(--paper);
  padding: 28px 28px 32px;
  position: relative;
  overflow: hidden;
  transition: background .4s var(--ease);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}
.pod:hover { background: var(--ink); color: var(--paper); }
.pod-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
  flex: none;
  background: var(--bone);
  border: 1px solid var(--hairline-2);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.pod:hover .pod-avatar {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}
.pod-avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed var(--hairline-2);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .6s var(--ease);
  transform: scale(0.85) rotate(0);
}
.pod:hover .pod-avatar::after {
  opacity: 1; transform: scale(1) rotate(45deg);
  border-color: rgba(0,201,167,.5);
}
.pod-tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--mint-deep);
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: color .4s var(--ease);
}
.pod:hover .pod-tag { color: var(--mint); }
.pod-name {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
  color: inherit;
}
.pod-role {
  font-size: 0.92rem;
  color: var(--fg-soft);
  margin-bottom: 20px;
  transition: color .4s var(--ease);
}
.pod:hover .pod-role { color: var(--concrete-2); }

.pod-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--fg-soft);
  margin-top: auto;
  transition: opacity .35s var(--ease), transform .35s var(--ease), color .4s var(--ease);
}
.pod:hover .pod-desc { opacity: 0; transform: translateY(-6px); }

.pod-value {
  position: absolute;
  inset: auto 28px 32px 28px;
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--mint);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease) .05s, transform .4s var(--ease) .05s;
}
.pod:hover .pod-value { opacity: 1; transform: translateY(0); }
.pod-value::before {
  content: "“";
  display: block;
  font-size: 2rem;
  line-height: 0.4;
  color: var(--mint);
  margin-bottom: 8px;
  opacity: 0.5;
}

.pod-corner {
  position: absolute;
  top: 20px; right: 20px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  transition: color .4s var(--ease);
}
.pod:hover .pod-corner { color: var(--mint); }

/* Open slot — invites scalability */
.pod.slot {
  background: transparent;
  border: 1px dashed var(--hairline-2);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  min-height: 360px;
  color: var(--fg-muted);
}
.pod.slot:hover { background: var(--bone); color: var(--ink); }
.pod.slot:hover .pod-avatar { background: var(--bone); }
.pod.slot .plus {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem;
  border: 1px solid var(--hairline-2);
  margin: 0 auto 18px;
  font-family: var(--f-display);
  font-weight: 300;
  color: var(--fg-muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.pod.slot:hover .plus { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.pod.slot p {
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 22ch;
  margin: 0 auto;
}

/* ──────────────────────────────────────────────
   FAQ
   ────────────────────────────────────────────── */
.faq {
  padding: var(--section-py) 0;
  background: var(--bone);
  border-top: 1px solid var(--hairline);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-aside { position: sticky; top: 100px; }
.faq-aside p {
  margin-top: 24px;
  color: var(--fg-soft);
  max-width: 32ch;
  line-height: 1.55;
}
.faq-list { display: flex; flex-direction: column; }
.faq-list details {
  border-top: 1px solid var(--hairline-2);
  padding: 28px 0;
}
.faq-list details:last-of-type { border-bottom: 1px solid var(--hairline-2); }
.faq-list summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
  transition: color .25s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--mint-deep); }
.faq-list .q-num {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--mint-deep);
  margin-right: 16px;
  position: relative;
  top: 0.4em;
}
.faq-list .toggle {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--hairline-2);
  display: grid; place-items: center;
  position: relative;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.faq-list .toggle::before,
.faq-list .toggle::after {
  content: ""; position: absolute;
  background: var(--ink);
  transition: transform .35s var(--ease), background .25s var(--ease);
}
.faq-list .toggle::before { width: 12px; height: 1.5px; }
.faq-list .toggle::after  { width: 1.5px; height: 12px; }
.faq-list details[open] .toggle { background: var(--ink); border-color: var(--ink); }
.faq-list details[open] .toggle::before,
.faq-list details[open] .toggle::after { background: var(--mint); }
.faq-list details[open] .toggle::after { transform: rotate(90deg); }

.faq-list .answer {
  margin-top: 18px;
  padding-left: 56px;
  max-width: 62ch;
  color: var(--fg-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}
.faq-list details[open] .answer {
  animation: fade-in .5s var(--ease);
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ──────────────────────────────────────────────
   CTA Strip
   ────────────────────────────────────────────── */
.cta {
  padding: var(--section-py) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(0,201,167,.18) 0%, transparent 60%),
    radial-gradient(40% 60% at 0% 100%, rgba(195,107,69,.14) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.cta h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.cta h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--mint);
}
.cta-right p {
  color: var(--concrete-2);
  margin-bottom: 28px;
  max-width: 36ch;
  line-height: 1.55;
}
.cta .btn-primary {
  background: var(--mint);
  color: var(--ink);
}
.cta .btn-primary .arrow { background: var(--ink); color: var(--mint); }
.cta .btn-primary:hover { background: #00E0BB; }

/* ──────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid h5 {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 24px;
}
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p {
  color: var(--concrete-2);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-top: 20px;
  max-width: 36ch;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 12px; }
.footer-grid a { color: var(--concrete-2); font-size: 0.95rem; transition: color .25s var(--ease); }
.footer-grid a:hover { color: var(--mint); }

.newsletter {
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  margin-bottom: 16px;
  transition: border-color .25s var(--ease);
}
.newsletter:focus-within { border-color: var(--mint); }
.newsletter input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--paper);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}
.newsletter input::placeholder { color: var(--concrete); }
.newsletter button {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: inline-grid; place-items: center;
  transition: transform .25s var(--ease);
}
.newsletter button:hover { transform: translateX(2px); }
.footer-note { font-size: 0.78rem; color: var(--concrete); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.82rem;
  color: var(--concrete);
}
.footer-bottom .legal { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--mint); }

/* ──────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-right .lang-toggle { display: none; }
  .hamburger { display: inline-flex; }

  .hero-meta { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-ctas { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .hero-stats { padding-left: 0; border-left: none; border-top: 1px solid var(--hairline-2); padding-top: 24px; }

  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-label { position: static; }
  .manifesto-pillars { grid-template-columns: 1fr; }

  .services-head, .team-head { grid-template-columns: 1fr; gap: 24px; }
  .cluster-head { flex-direction: column; align-items: flex-start; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }

  .cta-inner { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }

  .cluster.cross .svc {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 18px;
  }
  .cluster.cross .svc-meta { padding-left: 0; }
  .cluster.cross .svc .reveal-line { text-align: left; }
}

@media (max-width: 640px) {
  .nav { height: 68px; }
  .mobile-menu { inset-block-start: 68px; }
  .brand-tag { display: none; }

  .hero { padding-top: 40px; }
  .hero-visual { top: 20px; opacity: 0.5; width: 60vw; }
  .hero-meta { grid-template-columns: 1fr; }

  .pod-grid { grid-template-columns: 1fr 1fr; }
  .pod { padding: 22px; min-height: 320px; }
  .pod-value { inset-inline: 22px; }

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

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

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

/* ──────────────────────────────────────────────
   Apply Modal
   ────────────────────────────────────────────── */
#open-apply { cursor: pointer; }

.apply-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(14,20,27,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: overlay-in .2s ease;
}
.apply-overlay[hidden] { display: none; }
@keyframes overlay-in { from { opacity:0 } to { opacity:1 } }

.apply-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: card-in .25s cubic-bezier(.22,1,.36,1);
}
@keyframes card-in { from { opacity:0; transform:translateY(18px) scale(.97) } to { opacity:1; transform:none } }

.apply-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--concrete);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.apply-close:hover { color: var(--ink); background: var(--bone); }

.apply-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

.apply-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}

.apply-input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .95rem;
  font-family: var(--f-sans);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.apply-input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-soft);
}
.apply-input::placeholder { color: var(--concrete-2); }

.apply-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B8F97' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }

.apply-textarea { resize: vertical; min-height: 100px; }

.apply-status {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: 18px;
  font-weight: 500;
}
.apply-status.success { background: var(--mint-soft); color: var(--mint-deep); border: 1px solid var(--mint); }
.apply-status.error   { background: var(--terracotta-soft); color: var(--terracotta); border: 1px solid var(--terracotta); }

.apply-submit {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: var(--f-sans);
}
.apply-submit:hover  { background: var(--slate); }
.apply-submit:active { transform: scale(.98); }
.apply-submit:disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 560px) {
  .apply-card { padding: 32px 20px 24px; }
}

/* ──────────────────────────────────────────────
   Polish pass — grain, focus, anchor offset
   (taste-skill redesign upgrade)
   ────────────────────────────────────────────── */

/* Film-grain overlay — breaks digital flatness, suits the paper/concrete Phygital concept */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
@media (prefers-reduced-motion: reduce) {
  body::after { opacity: 0.03; }
}

/* Keyboard focus ring — accessibility requirement, not optional */
:focus-visible {
  outline: 2px solid var(--mint-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Mouse users don't get the ring; keyboard users do */
:focus:not(:focus-visible) { outline: none; }

/* Sticky header is 80px — keep anchored sections from hiding under it */
section[id], [id^="lien-he"], #doi-ngu, #dich-vu, #hoi-dap, #triet-ly {
  scroll-margin-top: 96px;
}

/* ──────────────────────────────────────────────
   Hero topline + Cinematic toggle
   ────────────────────────────────────────────── */
.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-topline .hero-label { margin-bottom: 0; }

.cine-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--mint-deep);
  font-family: var(--f-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mint-deep);
  background: var(--mint-soft);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
  animation: cine-attract 2.6s var(--ease) 3;
}
.cine-toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.cine-toggle:hover .cine-ico { color: var(--mint); }
.cine-toggle:active { transform: translateY(0) scale(.98); }
@keyframes cine-attract {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,201,167,0); }
  50%      { box-shadow: 0 0 0 6px rgba(0,201,167,.16); }
}
.cine-ico {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset -4px -2px 0 0 currentColor;   /* crescent moon (light → dark) */
  transition: box-shadow .4s var(--ease), background .3s var(--ease), color .3s var(--ease);
  flex: none;
}
body.dark .cine-ico {                               /* sun (dark → light) */
  box-shadow: 0 0 0 1.6px currentColor;
  background: currentColor;
}

/* ══════════════════════════════════════════════
   DARK MODE — full-page theme
   Token remap (surfaces↔text) + targeted overrides
   ══════════════════════════════════════════════ */
body.dark {
  color-scheme: dark;
  /* Surfaces (were light) → dark scale */
  --paper:  #0F151C;
  --bone:   #131B23;
  --white:  #1A232D;
  --hairline:   #232D38;
  --hairline-2: #2D3742;
  /* Text (was dark) → light scale */
  --ink:        #F2EFE8;
  --slate:      #C9CFD6;
  --slate-soft: #AEB6BF;
  --concrete:   #8C949D;
  --concrete-2: #727A83;
  /* Soft accent tints */
  --mint-soft:       rgba(0,201,167,.16);
  --terracotta-soft: rgba(195,107,69,.18);
  /* Semantic tokens are pre-resolved at :root — must re-point them here */
  --bg:       #0F151C;
  --bg-alt:   #131B23;
  --fg:       #F2EFE8;
  --fg-soft:  #C9CFD6;
  --fg-muted: #8C949D;
  --rule:     #232D38;
}
/* Grain reads as light specks on dark */
body.dark::after { mix-blend-mode: soft-light; opacity: 0.06; }

/* Header glass → dark */
body.dark .site-header { background: rgba(15,21,28,.78); }
body.dark .site-header.scrolled { background: rgba(15,21,28,.92); border-bottom-color: var(--hairline); }

/* Brand mark keeps its dark identity (don't let token flip pale it) */
body.dark .brand-mark { background:
    radial-gradient(120% 100% at 30% 20%, var(--mint) 0%, transparent 60%),
    linear-gradient(135deg, #0A0F14 0%, #1A232D 100%); }
body.dark .brand-mark::after { border-color: var(--ink); border-left-color: transparent; border-bottom-color: transparent; }

/* Accent dark sections (used --ink as bg) must STAY dark, not flip to light */
body.dark .cta { background: #0A0F14; color: var(--ink); }
body.dark .cta .btn-primary { background: var(--mint); color: #04241D; }
body.dark .site-footer { background: #0A0F14; color: var(--ink); }
body.dark .footer-brand .brand-name { color: var(--ink); }

/* Pod hover: lift to elevated dark (not a jarring light flip) */
body.dark .pod:hover { background: var(--white); color: var(--ink); }
body.dark .pod:hover .pod-avatar { background: var(--paper); }

/* Cross-cluster ochre text lifts on dark */
body.dark .cluster.cross .cluster-head .code,
body.dark .cluster.cross .svc .vi-name { color: var(--ochre); }

/* Blueprint SVG strokes were near-black */
body.dark .hero-visual path { stroke: rgba(255,255,255,.24) !important; }
body.dark .hero-visual { opacity: 1; }

/* Toggle styling in dark */
body.dark .cine-toggle { color: var(--mint); border-color: rgba(0,201,167,.45); background: rgba(0,201,167,.12); animation: none; }
body.dark .cine-toggle:hover { color: #04241D; background: var(--mint); border-color: var(--mint); }
body.dark .cine-toggle:hover .cine-ico { color: #04241D; }

/* Hero ambient glow in dark */
.hero { transition: background .6s var(--ease); }
body.dark .hero {
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(0,201,167,.15), transparent 55%),
    radial-gradient(90% 80% at -5% 110%, rgba(195,107,69,.12), transparent 52%),
    linear-gradient(180deg, #0B1118 0%, var(--paper) 62%, var(--paper) 100%);
}
body.dark .hero .hero-sub b { color: #fff; }
body.dark .hero .hero-stats { border-left-color: rgba(255,255,255,.16); }

/* ──────────────────────────────────────────────
   AI Agent section
   ────────────────────────────────────────────── */
.agent {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.agent-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.agent-lead {
  margin-top: 22px;
  max-width: 46ch;
  color: var(--fg-soft);
  font-size: 1.08rem;
  line-height: 1.62;
}
.agent-lead b { color: var(--ink); font-weight: 600; }
.agent-caps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.cap { background: var(--bg-alt); padding: 24px 22px; transition: background .3s var(--ease); }
.cap:hover { background: var(--white); }
.cap-k { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--mint-deep); }
.cap h3 { font-family: var(--f-display); font-size: 1.02rem; font-weight: 600; margin: 10px 0 6px; letter-spacing: -0.01em; }
.cap p { font-size: 0.88rem; line-height: 1.5; color: var(--fg-soft); }

/* Chat window — a contained product mockup (device), not a page section */
.agent-demo { position: relative; }
.agent-window {
  border-radius: 18px;
  overflow: hidden;
  background: #0E141B;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 36px 70px -24px rgba(14,20,27,.5),
    0 2px 0 0 rgba(255,255,255,.04) inset;
}
.aw-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: #11181F;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.aw-dots { display: flex; gap: 7px; }
.aw-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.16); }
.aw-dots i:nth-child(1) { background: #E8675C; }
.aw-dots i:nth-child(2) { background: #E0A93E; }
.aw-dots i:nth-child(3) { background: #4FB06A; }
.aw-title { font-family: var(--f-mono); font-size: 0.74rem; color: var(--concrete-2); letter-spacing: 0.03em; }
.aw-status {
  margin-left: auto;
  font-family: var(--f-mono); font-size: 0.72rem; color: #5FD68A;
  display: inline-flex; align-items: center; gap: 7px;
}
.aw-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #5FD68A;
  animation: awpulse 1.8s var(--ease) infinite;
}
@keyframes awpulse {
  0%   { box-shadow: 0 0 0 0 rgba(95,214,138,.45); }
  70%  { box-shadow: 0 0 0 7px rgba(95,214,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,214,138,0); }
}
.aw-body {
  padding: 22px 18px;
  min-height: 340px;
  max-height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  scroll-behavior: smooth;
}
.aw-body::-webkit-scrollbar { width: 0; }
.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 15px;
  line-height: 1.45;
  animation: msgin .35s var(--ease) both;
  word-wrap: break-word;
}
@keyframes msgin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.user {
  align-self: flex-end;
  background: var(--mint);
  color: #04241D;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.msg.bot {
  align-self: flex-start;
  background: #1A222B;
  color: #E7ECEF;
  border-bottom-left-radius: 4px;
}
.msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--concrete); animation: awdot 1.2s var(--ease) infinite; }
.msg.typing i:nth-child(2) { animation-delay: .18s; }
.msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes awdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.agent-demo-note {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
  text-align: center;
}

@media (max-width: 900px) {
  .agent-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .agent-caps { grid-template-columns: 1fr; }
  .hero-topline { margin-bottom: 28px; }
}

/* ══════════════════════════════════════════════
   PASS 3 — Diagrams
   ══════════════════════════════════════════════ */

/* Phygital convergence (Venn) */
.phygital-venn { margin: 8px 0 0; }
.phygital-venn svg { width: 100%; height: auto; overflow: visible; display: block; }
.vc { fill: none; stroke-width: 1.6;
  stroke-dasharray: 942; stroke-dashoffset: 942;
  transition: stroke-dashoffset 1.3s var(--ease) .1s; }
.phygital-venn.in .vc { stroke-dashoffset: 0; }
.vc-d { stroke: var(--mint-deep); fill: url(#vgd); }
.vc-p { stroke: var(--terracotta); fill: url(#vgp); }
.vg-d0 { stop-color: rgba(0,201,167,.18); }
.vg-p0 { stop-color: rgba(195,107,69,.16); }
.vg-t  { stop-color: transparent; }
.venn-nodes circle { fill: var(--mint); }
.vn-core { fill: var(--mint-deep); transform-box: fill-box; transform-origin: center;
  animation: vcore 2.8s var(--ease) infinite; }
.vn-halo { fill: var(--mint); transform-box: fill-box; transform-origin: center;
  animation: vhalo 2.8s var(--ease) infinite; }
@keyframes vcore { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
@keyframes vhalo { 0% { transform: scale(1); opacity: .35; } 70%,100% { transform: scale(3.4); opacity: 0; } }
.vt-title { font-family: var(--f-display); font-weight: 600; font-size: 16px; fill: var(--ink); letter-spacing: -0.01em; }
.vt-sub   { font-family: var(--f-mono); font-size: 9px; fill: var(--fg-muted); letter-spacing: .02em; }
.vt-core  { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: 26px; fill: var(--mint-deep); }
.vt-core-sub { font-family: var(--f-body); font-size: 12.5px; fill: var(--fg-soft); }
@media (prefers-reduced-motion: reduce) {
  .vc { transition: none; stroke-dashoffset: 0; }
  .vn-core, .vn-halo { animation: none; }
  .vn-halo { opacity: 0; }
}
@media (max-width: 560px) {
  .vt-sub { display: none; }
  .vt-title { font-size: 20px; }
  .vt-core { font-size: 32px; }
  .vt-core-sub { font-size: 16px; }
}

/* Manifesto compact points (was 3 verbose pillars) */
.manifesto-points {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule); border: 1px solid var(--rule);
}
.manifesto-points li {
  background: var(--bg); padding: 24px 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.mp-k { font-family: var(--f-mono); font-size: 0.8rem; color: var(--mint-deep); flex: none; padding-top: 3px; }
.manifesto-points b { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; display: block; margin-bottom: 6px; letter-spacing: -0.01em; color: var(--ink); }
.manifesto-points p { font-size: 0.9rem; color: var(--fg-soft); line-height: 1.5; }
@media (max-width: 760px) { .manifesto-points { grid-template-columns: 1fr; } }

/* Process / journey flow */
.process { padding: var(--section-py) 0; }
.flow {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.flow::before {   /* base connector line */
  content: ""; position: absolute; top: 28px; left: 7%; right: 7%;
  height: 1px; background: var(--rule); z-index: 0;
}
.flow::after {    /* mint progress line, draws on reveal */
  content: ""; position: absolute; top: 28px; left: 7%; width: 0;
  height: 1px; background: var(--mint); z-index: 0;
  transition: width 1.4s var(--ease) .25s;
}
.flow.in::after { width: 86%; }
.flow-step { position: relative; padding: 0 22px 0 0; }
.flow-node {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--hairline-2); background: var(--bg);
  display: grid; place-items: center; position: relative; z-index: 1;
  margin-bottom: 22px; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.flow-step:hover .flow-node { border-color: var(--mint); transform: translateY(-3px); }
.flow-num {
  position: absolute; top: -8px; right: -4px;
  font-family: var(--f-mono); font-size: 0.68rem; color: var(--mint-deep);
  background: var(--bg); padding: 1px 5px;
}
.flow-ico { width: 26px; height: 26px; color: var(--ink); }
.flow-step h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.flow-step p { font-size: 0.9rem; color: var(--fg-soft); line-height: 1.55; max-width: 27ch; }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 44px 0; }
  .flow::before, .flow::after { display: none; }
}
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

/* AI Agent operation flow */
.agent-flow {
  margin-top: clamp(48px, 6vw, 80px);
  display: flex; align-items: stretch; justify-content: center;
  gap: 10px; flex-wrap: nowrap;
}
.afl-node {
  flex: 1 1 0; min-width: 0;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 14px;
  padding: 22px 16px; text-align: center;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.afl-node:hover { border-color: var(--mint); transform: translateY(-3px); }
.afl-core { border-color: var(--mint-deep); background: var(--mint-soft); }
.afl-ic {
  display: grid; place-items: center; width: 42px; height: 42px;
  margin: 0 auto 12px; border-radius: 50%;
  border: 1px solid var(--hairline-2); color: var(--ink);
}
.afl-core .afl-ic { border-color: var(--mint-deep); color: var(--mint-deep); }
.afl-ic svg { width: 20px; height: 20px; }
.afl-node b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.afl-node i { font-style: normal; font-family: var(--f-mono); font-size: 0.71rem; color: var(--fg-muted); letter-spacing: .02em; }
.afl-arrow { display: flex; align-items: center; color: var(--mint-deep); font-size: 1.3rem; flex: 0 0 auto; }
.agent-flow-note { text-align: center; margin-top: 20px; font-family: var(--f-mono); font-size: 0.78rem; color: var(--fg-muted); letter-spacing: .02em; }
@media (max-width: 720px) {
  .agent-flow { flex-direction: column; align-items: stretch; gap: 6px; }
  .afl-arrow { transform: rotate(90deg); justify-content: center; padding: 2px 0; }
}

/* Inline "learn more" link (homepage AI Agent → /ai-agent) */
.agent-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 28px;
  font-weight: 600; font-size: 0.95rem; color: var(--mint-deep);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.agent-more:hover { gap: 14px; border-bottom-color: var(--mint-deep); }

/* Services — cluster map overview + compact nodes */
.svc-map { margin: 8px 0 52px; }
.svc-hub {
  display: inline-flex; flex-direction: column; align-items: center; text-align: center; gap: 3px;
  padding: 16px 30px; border: 1px solid var(--mint-deep); border-radius: 16px;
  background: var(--mint-soft); position: relative; left: 50%; transform: translateX(-50%);
}
.svc-hub::after { content: ""; position: absolute; bottom: -20px; left: 50%; width: 1px; height: 20px; background: var(--rule); }
.svc-hub b { font-family: var(--f-serif); font-style: italic; font-weight: 500; font-size: 1.35rem; color: var(--ink); }
.svc-hub i { font-family: var(--f-mono); font-size: 0.72rem; color: var(--mint-deep); letter-spacing: 0.04em; }
.svc-hub-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; position: relative; }
.svc-hub-branches::before { content: ""; position: absolute; top: -20px; left: 16.66%; right: 16.66%; height: 1px; background: var(--rule); }
.svc-branch { text-align: center; padding: 18px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); position: relative; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.svc-branch::before { content: ""; position: absolute; top: -20px; left: 50%; width: 1px; height: 20px; background: var(--rule); }
.svc-branch:hover { transform: translateY(-3px); }
.svc-branch b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.06rem; letter-spacing: -0.01em; }
.svc-branch span { font-size: 0.82rem; color: var(--fg-muted); }
.svc-branch--d { border-top: 2px solid var(--mint); } .svc-branch--d b { color: var(--mint-deep); }
.svc-branch--p { border-top: 2px solid var(--terracotta); } .svc-branch--p b { color: var(--terracotta); }
.svc-branch--x { border-top: 2px solid var(--ochre); } .svc-branch--x b { color: var(--ochre); }
@media (max-width: 720px) {
  .svc-hub-branches { grid-template-columns: 1fr; gap: 12px; }
  .svc-hub-branches::before { display: none; }
  .svc-branch::before { display: none; }
  .svc-hub::after { display: none; }
}

/* Compact the detailed service cards into lighter nodes (less text) */
.svc { min-height: 0; padding: 24px 24px 26px; }
.svc-meta { margin-bottom: 16px; }
.svc .vi-name { display: none; }
.svc .reveal-line { display: none; }
.svc h4 { font-size: 1.06rem; margin-bottom: 7px; }
.svc p {
  font-size: 0.88rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: none;
}
.svc:hover p { -webkit-line-clamp: 2; }   /* keep height fixed on hover — no layout jump */

/* ══════════════════════════════════════════════
   PASS 3.1 — Advanced motion
   ══════════════════════════════════════════════ */
/* Springier reveal with subtle scale */
.reveal { transition: opacity .85s var(--ease), transform .85s cubic-bezier(.16,1,.3,1); transform: translateY(30px) scale(.99); }
.reveal.in { transform: none; }

/* Scroll progress bar */
.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--mint); z-index: 9998; transition: width .12s linear; pointer-events: none; }

/* Warm tinted lift on hover (scoped to hover so flat base stays) */
.uc:hover, .pkg:hover, .cap:hover, .afl-node:hover, .svc-branch:hover {
  box-shadow: 0 20px 44px -24px rgba(0,201,167,.5);
}
body.dark .uc:hover, body.dark .pkg:hover, body.dark .cap:hover,
body.dark .afl-node:hover, body.dark .svc-branch:hover {
  box-shadow: 0 20px 44px -22px rgba(0,0,0,.65);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none !important; transition: none; }
  .scroll-prog { display: none; }
}

/* AI Agent demo — industry tabs */
.agent-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.agent-tab {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.02em;
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--hairline-2);
  color: var(--fg-soft); background: transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.agent-tab:hover { border-color: var(--ink); color: var(--ink); }
.agent-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.dark .agent-tab[aria-selected="true"] { background: var(--mint); color: #04241D; border-color: var(--mint); }

/* ══════════════════════════════════════════════
   Culture / rest-policy section
   ══════════════════════════════════════════════ */
.culture { padding: var(--section-py) 0; background: var(--bg-alt); border-block: 1px solid var(--rule); }
.culture-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.culture-lead { margin-top: 22px; font-size: 1.08rem; line-height: 1.62; color: var(--fg-soft); max-width: 52ch; }
.culture-lead b { color: var(--ink); font-weight: 600; }
.culture-points { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.culture-points li { font-size: 0.95rem; line-height: 1.55; color: var(--fg-soft); padding-left: 22px; position: relative; }
.culture-points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.culture-points b { color: var(--ink); font-weight: 600; }
.culture-week { border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 28px; background: var(--bg); }
.week-cap { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 20px 0 16px; }
.day { border-radius: 10px; padding: 16px 6px; text-align: center; border: 1px solid var(--rule); transition: transform .3s var(--ease); }
.day:hover { transform: translateY(-3px); }
.day b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1rem; }
.day span { font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; }
.day.work { background: var(--mint-soft); border-color: var(--mint-deep); }
.day.work b { color: var(--ink); } .day.work span { color: var(--mint-deep); }
.day.rest b { color: var(--fg-muted); } .day.rest span { color: var(--terracotta); }
.week-note { font-size: 0.85rem; color: var(--fg-soft); text-align: center; } .week-note b { color: var(--ink); }
@media (max-width: 860px) { .culture-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .week-grid { gap: 5px; } .day { padding: 12px 2px; } .day span { font-size: 0.58rem; } }

/* Mobile header declutter — icon-only theme toggle on small screens */
@media (max-width: 560px) {
  .cine-label { display: none; }
  .cine-toggle { padding: 9px 11px; }
  .nav-right { gap: 10px; }
}

/* Hero blueprint — gently living circuit nodes */
.hero-visual g[fill] circle { animation: hv-node 3.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
.hero-visual g[fill] circle:nth-child(2) { animation-delay: .5s; }
.hero-visual g[fill] circle:nth-child(3) { animation-delay: 1s; }
.hero-visual g[fill] circle:nth-child(4) { animation-delay: 1.5s; }
.hero-visual g[fill] circle:nth-child(5) { animation-delay: 2s; }
@keyframes hv-node { 0%,100% { opacity: .45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .hero-visual g[fill] circle { animation: none; } }

/* Hero visual — combined scroll parallax (--pY) + cursor 3D tilt (--rx/--ry) */
.hero-visual {
  transform: perspective(900px) translateY(var(--pY, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .hero-visual { transform: none; } }

/* A11y: small accent labels — AA contrast in both modes */
.cap-k, .mp-k { color: #097A68; }
body.dark .cap-k, body.dark .mp-k { color: var(--mint); }

/* Contact form (in dark CTA band) */
.cta-form { display: grid; gap: 12px; max-width: 440px; }
.cta-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form input, .cta-form textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px; padding: 12px 14px;
  font-family: var(--f-body); font-size: 0.95rem; color: #F2EFE8;
  outline: none; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.cta-form input::placeholder, .cta-form textarea::placeholder { color: #9AA0A8; }
.cta-form input:focus, .cta-form textarea:focus { border-color: var(--mint); background: rgba(255,255,255,.12); }
.cta-form textarea { resize: vertical; min-height: 64px; }
.cta-form .btn-primary { background: var(--mint); color: #04241D; justify-content: center; }
.cta-form .btn-primary .arrow { background: #04241D; color: var(--mint); }
.cta-form .btn-primary:hover { background: #00E0BB; }
.cta-status { font-size: 0.9rem; min-height: 1.1em; margin: 0; }
.cta-status.ok { color: var(--mint); } .cta-status.err { color: #FFB28A; }
.cta-or { font-size: 0.82rem; color: var(--concrete-2); margin: 0; }
.cta-or a { color: var(--mint); }
@media (max-width: 440px) { .cta-row2 { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════
   MODERN BENTO + GLASS LAYER (Apple/SaaS redesign)
   ════════════════════════════════════════════════ */
:root {
  --r-card: 20px;
  --shadow-soft: 0 1px 2px rgba(20,24,30,.05), 0 10px 30px -14px rgba(20,24,30,.14);
  --shadow-hi:   0 2px 6px rgba(20,24,30,.06), 0 28px 56px -22px rgba(0,201,167,.30);
}
body.dark {
  --shadow-soft: 0 1px 2px rgba(0,0,0,.35), 0 12px 34px -16px rgba(0,0,0,.66);
  --shadow-hi:   0 2px 8px rgba(0,0,0,.45), 0 32px 64px -22px rgba(0,201,167,.22);
}
/* Flat hairline grids → bento card grids */
.svc-grid, .pod-grid, .agent-caps, .manifesto-points, .uc-grid {
  background: transparent !important; border: 0 !important; gap: 16px !important;
}
.svc, .pod, .cap, .manifesto-points li, .uc {
  border: 1px solid var(--rule) !important;
  border-radius: var(--r-card) !important;
  background: var(--bg) !important;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.svc:hover, .cap:hover, .uc:hover, .manifesto-points li:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-hi);
  border-color: var(--mint) !important; background: var(--bg) !important;
}
/* Consistent soft elevation on already-rounded modules */
.svc-branch, .afl-node, .flow-node, .agent-window, .pkg, .work-card, .culture-week { box-shadow: var(--shadow-soft); }

/* Floating glass pill nav (modern) */
.site-header { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 0 !important; top: 14px; }
.site-header.scrolled { background: transparent !important; border-bottom: 0 !important; }
.site-header .nav {
  background: rgba(250,248,243,.72);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--rule); border-radius: 999px;
  height: 62px; padding-inline: 14px 12px; box-shadow: var(--shadow-soft);
}
body.dark .site-header .nav { background: rgba(15,21,28,.72); border-color: rgba(255,255,255,.10); }

/* Hero stats → mini bento cards */
.hero-stats { border-left: 0 !important; padding-left: 0 !important; gap: 12px !important; }
.hero-stat { background: var(--bg); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-soft); }
@media (max-width: 1024px) {
  .site-header .nav { height: 58px; }
}

/* Image showcase bento */
.showcase { padding: var(--section-py) 0; }
.showcase-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 216px; gap: 16px; margin-top: 48px; }
.shot { position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--rule); box-shadow: var(--shadow-soft); margin: 0; }
.shot.big { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; inset: auto 0 0 0; padding: 16px 18px; color: #fff; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .04em; background: linear-gradient(to top, rgba(10,15,20,.72), rgba(10,15,20,.15) 60%, transparent); }
.shot figcaption b { font-family: var(--f-display); font-weight: 600; font-size: 0.98rem; display: block; letter-spacing: -0.01em; margin-bottom: 2px; }
@media (max-width: 820px) {
  .showcase-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .shot.big { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 520px) {
  .showcase-bento { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .shot.big { grid-column: span 1; grid-row: span 2; }
}

/* Scroll-to-top button */
.to-top {
  position: fixed; right: 22px; bottom: 88px; z-index: 9000;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--rule); box-shadow: var(--shadow-soft);
  cursor: pointer; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--mint); color: #04241D; transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; }
body.dark .to-top { background: var(--paper); color: var(--ink); }
body.dark .to-top:hover { background: var(--mint); color: #04241D; }
@media (max-width: 560px) { .to-top { right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; } }

/* ════ Phase 1 — hero balance (fill right side) ════ */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(58% 68% at 86% 44%, rgba(0,201,167,.13), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
@media (min-width: 1025px) {
  .hero-visual { width: clamp(320px, 33vw, 470px); top: clamp(70px, 13vh, 150px); opacity: 1; z-index: 1; }
}

/* ════ Fix: team pod hover (bento) — keep text readable, lift instead of invert ════ */
.pod:hover { background: var(--bg) !important; color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow-hi); border-color: var(--mint) !important; }
.pod:hover .pod-name { color: var(--ink); }
.pod:hover .pod-role { color: var(--fg-soft); }
.pod:hover .pod-tag  { color: var(--mint-deep); }
.pod:hover .pod-corner { color: var(--mint-deep); }
.pod:hover .pod-desc { opacity: 1; transform: none; }
body.dark .pod:hover { background: var(--white) !important; color: var(--ink); }
body.dark .pod:hover .pod-name { color: var(--ink); }
body.dark .pod:hover .pod-role { color: var(--fg-soft); }
body.dark .pod:hover .pod-tag { color: var(--mint); }

/* ════ Cutting-edge: hero signature (alive blueprint) + magnetic ════ */
.hero-visual svg circle[stroke-dasharray] { transform-box: fill-box; transform-origin: center; animation: hv-spin 44s linear infinite; }
@keyframes hv-spin { to { transform: rotate(360deg); } }
.hero-visual svg circle[r="14"] { transform-box: fill-box; transform-origin: center; animation: hv-core 2.8s var(--ease) infinite; }
@keyframes hv-core {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(0,201,167,.8)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 16px rgba(0,201,167,1)); transform: scale(1.14); }
}
.hero-visual svg circle[r="46"] { transform-box: fill-box; transform-origin: center; animation: hv-spin 60s linear infinite reverse; }
.btn-primary, .nav-cta { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .hero-visual svg circle[stroke-dasharray], .hero-visual svg circle[r="14"], .hero-visual svg circle[r="46"] { animation: none; }
}

/* Hero render image slot (shows when img/hero-render.png exists; else blueprint SVG) */
.hero-render { width: 100%; height: auto; display: block; }
.hero-visual.has-render svg { display: none; }   /* hide blueprint once a render loads */
.hero-visual.has-render { opacity: 1; }

/* Warm gradient-mesh hero background (light mode) — tasteskill-style */
body:not(.dark) .hero {
  background-image:
    linear-gradient(rgba(250,248,243,.62), rgba(250,248,243,.82)),
    url("/img/bg-soft-web.jpg");
  background-size: cover;
  background-position: center;
}

/* ════ Fix: equal hero stat cards + render overlap ════ */
.hero-stats { display: grid !important; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 12px !important; }
.hero-stat { display: flex; flex-direction: column; }
@media (max-width: 1024px) {
  /* render flows in-page (no longer absolute) so it never overlaps CTAs */
  .hero-visual { position: static !important; width: min(56vw, 300px); margin: 4px 0 0; opacity: 1 !important; transform: none !important; }
  .hero-render { width: 100%; }
}
@media (max-width: 420px) { .hero-stats { grid-template-columns: 1fr 1fr; } }

/* Hero render: smaller & higher on desktop so it clears the CTA/stat area; keep content above it */
@media (min-width: 1025px) {
  .hero-visual { width: clamp(280px, 27vw, 400px) !important; top: clamp(36px, 6vh, 80px) !important; }
}
.hero-meta { position: relative; z-index: 2; }
.hero .reveal { position: relative; z-index: 2; }

/* Brand film */
.film { padding: var(--section-py) 0; }
.film-frame { margin: 48px auto 0; max-width: 1080px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow-soft); background: var(--bg-alt); }
.film-frame video { width: 100%; height: auto; display: block; }
