/* ===================================================================
   VIHANA TECHNOLOGIES — design tokens (v2: neon-tech dark theme)
   Color   navy #050A1A · cyan #00E5FF · blue #0080FF · purple #7C3AED
           magenta #D946EF · slate #1F2937 · silver #E5E7EB · white #FFFFFF
   Type    display: Fraunces · body: IBM Plex Sans · utility: IBM Plex Mono 
   =================================================================== */

:root {
  --navy: #050A1A;
  --navy-2: #0A1330;
  --navy-3: #0F1B3D;
  --white: #FFFFFF;
  --silver: #E5E7EB;
  --slate: #1F2937;

  --cyan: #00E5FF;
  --blue: #0080FF;
  --purple: #7C3AED;
  --magenta: #D946EF;

  --page-bg: #050A1A;
  --surface: #0A1330;
  --surface-2: #0F1B3D;
  --text: #FFFFFF;
  --text-soft: rgba(229, 231, 235, 0.72);
  --text-faint: rgba(229, 231, 235, 0.46);
  --border: rgba(229, 231, 235, 0.12);
  --border-strong: rgba(229, 231, 235, 0.26);
  --header-bg: rgba(5, 10, 26, 0.82);
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-hover: rgba(255, 255, 255, 0.05);
  --field-bg: rgba(255, 255, 255, 0.03);

  --muted: var(--text-soft);
  --muted-2: var(--text-faint);
  --line: var(--border);
  --line-strong: var(--border-strong);

  --gradient: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 35%, var(--purple) 70%, var(--magenta) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(124, 58, 237, 0.16));
  --glow-cyan: 0 0 24px rgba(0, 229, 255, 0.35);
  --glow-purple: 0 0 30px rgba(124, 58, 237, 0.35);
  --link-hover: var(--cyan);
  --focus-ring: rgba(0, 229, 255, 0.14);
  --button-text: var(--navy);
  --drawer-bg: #0A1330;
  --drawer-overlay: rgba(5, 10, 26, 0.56);

  --display: "Fraunces", Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --max: 1180px;
}

html[data-theme="light"] {
  --navy: #0A1330;
  --navy-2: #FFFFFF;
  --navy-3: #EEF3F8;
  --white: #0A1330;
  --silver: #D7DEE8;
  --slate: #1F2937;

  --cyan: #005EA8;
  --blue: #0A67D8;
  --purple: #5D3EB3;
  --magenta: #9B2F87;

  --page-bg: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #EEF3F8;
  --text: #0A1330;
  --text-soft: #24324D;
  --text-faint: #42516D;
  --border: rgba(10, 19, 48, 0.18);
  --border-strong: rgba(10, 19, 48, 0.30);
  --header-bg: rgba(247, 249, 252, 0.88);
  --card-bg: rgba(10, 19, 48, 0.045);
  --card-hover: rgba(10, 19, 48, 0.075);
  --field-bg: #F4F7FB;

  --muted: var(--text-soft);
  --muted-2: var(--text-faint);
  --line: var(--border);
  --line-strong: var(--border-strong);

  --gradient: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 35%, var(--purple) 70%, var(--magenta) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 128, 255, 0.08), rgba(124, 58, 237, 0.08));
  --glow-cyan: 0 0 18px rgba(0, 128, 255, 0.18);
  --glow-purple: 0 0 22px rgba(124, 58, 237, 0.16);
  --link-hover: #004E8F;
  --focus-ring: rgba(10, 103, 216, 0.22);
  --button-text: #FFFFFF;
  --drawer-bg: #FFFFFF;
  --drawer-overlay: rgba(10, 19, 48, 0.20);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.proof-strip { display:flex; flex-wrap:wrap; gap:12px 28px; margin-top:42px; padding-top:24px; border-top:1px solid var(--line); }
.proof-strip span { color:var(--muted); font-family:var(--mono); font-size:12px; letter-spacing:.04em; }
.proof-strip span::before { content:"✓"; color:var(--cyan); margin-right:8px; }
.stack-layout { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.15fr); gap:72px; align-items:center; }
.stack-layout .section-head { margin-bottom:0; }
.stack-layout .section-head p { color:var(--muted); margin-top:20px; max-width:570px; }
.tech-stack { display:flex; flex-wrap:wrap; gap:12px; }
.tech-stack span { padding:12px 16px; border:1px solid var(--line); background:var(--card-bg); border-radius:4px; font-family:var(--mono); font-size:13px; color:var(--text); }
.credibility-panel { display:grid; grid-template-columns:.8fr 1.2fr; gap:48px 72px; padding-top:64px; padding-bottom:64px; }
.credibility-panel h2 { margin-top:14px; }
.company-facts { margin:0; }
.company-facts div { display:grid; grid-template-columns:150px 1fr; gap:20px; padding:15px 0; border-bottom:1px solid var(--line); }
.company-facts dt { color:var(--muted-2); font-family:var(--mono); font-size:12px; text-transform:uppercase; }
.company-facts dd { margin:0; color:var(--muted); }
.company-facts a, .contact-info a:not(.btn) { color:var(--cyan); }
.verification-note { grid-column:1/-1; color:var(--muted); border-left:2px solid var(--cyan); padding-left:18px; max-width:860px; }
.capability-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:20px; }
.case-study-callout { margin-top:64px; padding:40px; border:1px solid var(--line); background:var(--gradient-soft); display:grid; grid-template-columns:1fr auto; gap:48px; align-items:center; }
.case-study-callout h2 { margin:12px 0; }
.case-study-callout p { color:var(--muted); max-width:720px; }
.featured-card { border-color:var(--cyan); box-shadow:inset 0 3px 0 var(--cyan); }
.contact-actions { margin-bottom:34px; padding-bottom:30px; border-bottom:1px solid var(--line); }
.contact-actions p { color:var(--muted-2); font-size:13px; margin-top:14px; }

@media (max-width: 800px) {
  .stack-layout, .credibility-panel, .case-study-callout { grid-template-columns:1fr; gap:28px; }
  .capability-grid { grid-template-columns:1fr; }
  .company-facts div { grid-template-columns:1fr; gap:4px; }
}

/* ---------- ambient glow blobs ---------- */
.glow-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-field::before,
.glow-field::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.28;
}

.glow-field::before {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
}

.glow-field::after {
  width: 560px;
  height: 560px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
}

header.site,
footer.site,
section,
.hero,
.page-header {
  position: relative;
  z-index: 1;
}

/* ---------- gradient text util ---------- */
.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gradient);
  display: inline-block;
}

/* ---------- header / nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 67px;
  height: 67px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, .28));
}

.brand-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--link-hover);
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient);
  color: var(--button-text);
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 4px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.nav-cta:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    z-index: 120;
    top: 76px;
    right: 0;
    left: auto;
    width: min(78vw, 320px);
    bottom: auto;
    height: calc(100vh - 76px);
    max-height: calc(100vh - 76px);
    background: var(--drawer-bg);
    background-color: var(--drawer-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 8px;
    margin-left: 0;
    transform: translateX(100%);
    transition: transform .3s ease;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 30px rgba(5, 10, 26, 0.20);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
  }

  .nav-links a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 4px;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links.open {
    transform: translateX(0);
    isolation: isolate;
    background: var(--drawer-bg);
    background-color: var(--drawer-bg);
    opacity: 1;
  }

  .nav-links.open::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 100vw;
    background: var(--drawer-overlay);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    margin-top: 6px;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 4px;
  transition: all .22s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient);
  color: var(--button-text);
  font-weight: 600;
}

.btn-primary:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--link-hover);
  color: var(--link-hover);
  box-shadow: 0 0 16px var(--focus-ring);
}

.btn-arrow {
  transition: transform .22s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.06;
  margin-top: 22px;
  color: var(--text);
}

.hero h1 em {
  font-style: italic;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin-top: 24px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}

.hero-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 100%);
  aspect-ratio: 1;
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-mark::before {
  inset: 6%;
  border: 1px solid var(--line-strong);
  opacity: 0.9;
  animation: spin 28s linear infinite, ring-pulse 5.5s ease-in-out infinite;
}

.hero-mark::after {
  inset: 18%;
  border: 1px dashed rgba(0, 229, 255, 0.45);
  opacity: 0.65;
  animation: spin 18s linear infinite reverse, ring-pulse-soft 4.2s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  height: auto;
  max-width: 420px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(0, 128, 255, .26));
  position: relative;
  z-index: 1;
  animation: hero-float 5.5s ease-in-out infinite, hero-glow 4.8s ease-in-out infinite;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.stat-num {
  font-family: var(--display);
  font-size: 32px;
  color: var(--text);
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-mark {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- page header (non-home) ---------- */
.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: 44px;
  margin-top: 18px;
  color: var(--text);
}

.page-header .hero-sub {
  margin-top: 18px;
}

/* ---------- sections ---------- */
section {
  padding: 92px 0;
}

.section-tight {
  padding: 64px 0;
}

section.on-raised {
  background: linear-gradient(180deg, var(--surface), var(--page-bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 36px;
  margin-top: 16px;
  color: var(--text);
}

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

/* ---------- service / card grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  padding: 40px 34px;
  transition: background .25s ease;
}

.card:hover {
  background: var(--card-hover);
}

.card-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: inline-block;
  background: var(--silver);
  color: var(--slate);
  padding: 4px 11px;
  border-radius: 20px;
}

.card h3 {
  font-size: 21px;
  margin-top: 16px;
  color: var(--text);
}

.card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.card-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-list li {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.card-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

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

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

/* ---------- process / numbered (real sequence) ---------- */
.process {
  display: flex;
  flex-direction: column;
}

.process-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.4fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.process-row:last-child {
  border-bottom: 1px solid var(--line);
}

.process-index {
  font-family: var(--display);
  font-size: 28px;
}

.process-row h4 {
  font-size: 19px;
  color: var(--text);
}

.process-row p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
}

@media (max-width:760px) {
  .process-row {
    grid-template-columns: 50px 1fr;
  }

  .process-row p {
    grid-column: 2;
  }
}

/* ---------- about / values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 8px;
}

.value-item {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.value-item h4 {
  font-size: 18px;
  color: var(--text);
}

.value-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

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

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.team-card {}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gradient-soft);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--text);
}

.team-card h4 {
  font-size: 16px;
  margin-top: 14px;
  color: var(--text);
}

.team-card span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 3px;
}

@media (max-width:900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- portfolio ---------- */
.folio-grid {
  display: flex;
  flex-direction: column;
}

.folio-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr auto;
  gap: 32px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.folio-row:last-child {
  border-bottom: 1px solid var(--line);
}

.folio-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.folio-row h3 {
  font-size: 23px;
  margin-top: 10px;
  color: var(--text);
}

.folio-row p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
  max-width: 52ch;
}

.folio-stack {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  margin-top: 14px;
}

.folio-metric {
  text-align: right;
}

.folio-metric .stat-num {
  font-size: 26px;
}

@media (max-width:860px) {
  .folio-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .folio-metric {
    text-align: left;
  }
}

/* ---------- testimonial / quote ---------- */
.quote-block {
  max-width: 760px;
}

.quote-block blockquote {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
}

.quote-cite {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
}

.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 32px;
  max-width: 520px;
  color: var(--text);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  background: var(--field-bg);
  font-family: var(--body);
  font-size: 15px;
  color: var(--text);
  border-radius: 4px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select option {
  background: var(--page-bg);
  color: var(--text);
}

.contact-info dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 28px;
}

.contact-info dt:first-child {
  margin-top: 0;
}

.contact-info dd {
  margin: 6px 0 0;
  font-size: 17px;
  color: var(--text);
}

.offices {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.office {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.office h4 {
  font-size: 15px;
  color: var(--text);
}

.office p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
  font-family: var(--mono);
  line-height: 1.7;
}

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

.form-success {
  display: none;
  padding: 16px 18px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--cyan);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  margin-top: 16px;
  border-radius: 4px;
}

.form-success.show {
  display: block;
}

.form-success.is-error {
  background: rgba(255, 82, 82, 0.08);
  border-color: #ff5252;
}

/* ---------- footer ---------- */
footer.site {
  background: var(--surface);
  color: var(--text);
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, .18));
}

.footer-brand .brand-name {
  color: var(--text);
}

.footer-brand p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  max-width: 34ch;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.footer-col a,
.footer-col span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 11px;
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
}

@media (max-width:860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom span {
    font-size: 10.5px;
    white-space: nowrap;
  }

  .footer-bottom > span:last-child {
    align-self: center;
  }
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- hero mark animation ---------- */
.mark-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.8s ease forwards .2s;
}

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

.mark-spin {
  transform-origin: center;
  animation: spin 40s linear infinite;
}

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

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  25% {
    transform: translateY(-6px) scale(1.015) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) scale(1.02) rotate(0deg);
  }

  75% {
    transform: translateY(-5px) scale(1.01) rotate(1deg);
  }
}

@keyframes hero-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 28px rgba(0, 128, 255, .26));
  }

  50% {
    filter: drop-shadow(0 0 36px rgba(0, 229, 255, .32));
  }
}

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

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes ring-pulse-soft {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.02);
  }
}


/* ---------- light / dark theme toggle ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card-bg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 16px;
  transition: all .2s ease;
}

.theme-toggle:hover {
  border-color: var(--link-hover);
  box-shadow: 0 0 14px var(--focus-ring);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-toggle .theme-icon-sun {
  display: none;
}

.theme-toggle .theme-icon-moon {
  display: block;
}

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

html[data-theme="light"] .theme-toggle .theme-icon-moon {
  display: none;
}

@media (max-width:860px) {
  .nav {
    gap: 12px;
  }

  .theme-toggle {
    margin-left: auto;
    margin-right: 2px;
  }
}

html[data-theme="light"] .glow-field::before {
  opacity: .10;
}

html[data-theme="light"] .glow-field::after {
  opacity: .08;
}

html[data-theme="light"] .hero-mark::before {
  border-color: rgba(10, 19, 48, 0.34);
  opacity: 1;
}

html[data-theme="light"] .hero-mark::after {
  border-color: rgba(10, 103, 216, 0.78);
  opacity: 0.9;
}

html[data-theme="light"] .brand-mark,
html[data-theme="light"] .footer-logo,
html[data-theme="light"] .hero-logo {
  filter: drop-shadow(0 0 10px rgba(0, 128, 255, .14));
}
