/* ==========================================================================
   Arise Corporation — Modern Corporate Design System (Light)
   Palette & tokens from _mockup/DESIGN.md
   ========================================================================== */

:root {
  /* Brand — deep authoritative navy + vibrant cyan accent */
  --navy:        #002045;
  --navy-700:    #10294c;
  --navy-600:    #1a365d;
  --navy-400:    #2d476f;
  --navy-200:    #86a0cd;

  --cyan:        #00a5c9;
  --cyan-bright: #1ec4e6;
  --cyan-soft:   #e3f6fb;
  --accent-grad: linear-gradient(135deg, #1ec4e6 0%, #00a5c9 100%);

  /* Neutrals */
  --ink:         #181c1e;   /* on-surface (headings) */
  --slate:       #43474e;   /* on-surface-variant (body) */
  --slate-2:     #74777f;   /* outline (muted) */
  --line:        #e2e8f0;   /* card border */
  --line-2:      #edf2f7;

  --bg:          #f7fafc;   /* surface / background */
  --surface:     #ffffff;   /* cards */
  --surface-2:   #f1f4f6;
  --surface-3:   #ebeef0;

  /* Ambient, diffused, blue-tinted shadows */
  --shadow-sm:   0 2px 10px rgba(0, 32, 69, 0.05);
  --shadow:      0 14px 40px rgba(0, 32, 69, 0.08);
  --shadow-lg:   0 30px 70px rgba(0, 32, 69, 0.12);

  /* Shapes — soft but disciplined */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-full: 9999px;

  --maxw:  1280px;

  --font:      "Inter", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }

p { margin: 0 0 1rem; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (min-width: 992px) { .container { padding: 0 64px; } }

.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-sm { padding: clamp(40px, 5vw, 72px) 0; }

.bg-white { background: var(--surface); }
.bg-soft  { background: var(--surface-2); }
.bg-navy  { background: var(--navy); color: #cdd9ec; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cyan); }
/* Thai section labels — larger & more legible than the mono micro-labels used for EN */
html[lang="th"] .eyebrow { font-size: 1.02rem; letter-spacing: .02em; text-transform: none; font-weight: 600; }
html[lang="th"] .eyebrow::before { width: 26px; }
html[lang="th"] .logostrip .label { font-size: 1.08rem; letter-spacing: .02em; }
.center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--slate); line-height: 1.7; }
.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.muted { color: var(--slate-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: var(--cyan-bright); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,165,201,.28); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--cyan); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Top utility bar (digital-mind.co link)
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: #a9bcd6;
  font-size: .8rem;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 18px; height: 38px; }
.topbar a { color: #cfe0f5; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--cyan-bright); }
.topbar .sep { color: rgba(255,255,255,.2); }
.topbar .dm { color: #fff; }
.topbar .dm b { color: var(--cyan-bright); }
@media (max-width: 620px) { .topbar .hide-xs { display: none; } }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,250,252,.8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.86); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.nav-brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font);
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  position: relative;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.active { color: var(--cyan); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--cyan); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* Language toggle */
.lang-toggle { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .78rem; font-weight: 500; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.lang-toggle button { background: transparent; border: 0; padding: 6px 11px; cursor: pointer; color: var(--slate-2); font-family: inherit; font-size: inherit; transition: background .2s, color .2s; }
.lang-toggle button.active { background: var(--navy); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ==========================================================================
   Hero (light)
   ========================================================================== */
.hero { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 84px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,32,69,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,32,69,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(900px 500px at 75% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(900px 500px at 75% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full);
  font-size: .8rem; font-weight: 500; color: var(--slate);
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.hero-pill b { background: var(--navy); color: #fff; padding: 3px 10px; border-radius: var(--r-full); font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; }
.hero-sub { font-size: 1.12rem; color: var(--slate); max-width: 540px; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--slate-2); font-size: .82rem; margin: 20px 0 0; font-family: var(--font-mono); letter-spacing: .01em; }

.hero-visual { position: relative; }
.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar { height: 40px; background: var(--navy); display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); display: block; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 8px; font-family: var(--font-mono); font-size: .72rem; color: rgba(255,255,255,.6); }
.window .frame { aspect-ratio: 16/10; }
.window .frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.window .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }
.hero-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.hero-stat b { display: block; font-size: 1.5rem; color: var(--navy); font-weight: 700; letter-spacing: -.02em; }
.hero-stat span { font-family: var(--font-mono); font-size: .66rem; color: var(--slate-2); text-transform: uppercase; letter-spacing: .06em; }

/* ==========================================================================
   Logo strip
   ========================================================================== */
.logostrip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.logostrip .label { text-align: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 24px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 62px; width: max-content; animation: scroll-x 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 32px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .5; transition: filter .3s, opacity .3s; }
.marquee-track img:hover { filter: grayscale(0); opacity: 1; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ==========================================================================
   Stats band (deep navy)
   ========================================================================== */
.statband { background: var(--navy); position: relative; overflow: hidden; }
.statband::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 300px at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 300px at 50% 50%, #000, transparent 75%);
}
.statband .container { position: relative; z-index: 1; }
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align: center; }
.stat-num { font-size: clamp(2.2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; color: var(--cyan-bright); }
.stat-label { color: #a9bcd6; font-size: .92rem; }

/* ==========================================================================
   Cards / Services
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  position: relative;
}
.card:hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-cat { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 18px; }
.card-icon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); margin-bottom: 18px; transition: background .25s, color .25s; }
.card:hover .card-icon { background: var(--navy); color: #fff; }
.card-icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.2rem; margin-bottom: 9px; }
.card p { color: var(--slate); font-size: .96rem; margin: 0; }

.card-cta {
  background: var(--navy); color: #fff; border: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
.card-cta:hover { border-color: transparent; }
.card-cta h3 { color: #fff; }
.card-cta p { color: #a9bcd6; }
.card-cta .card-icon { background: var(--cyan); color: #fff; }
.card-cta:hover .card-icon { background: #fff; color: var(--navy); }

/* ==========================================================================
   Split feature rows
   ========================================================================== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.feature-badge { position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-radius: var(--r-sm); padding: 8px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-sm); }
.feature-badge img { height: 22px; width: auto; }
.feature ul { list-style: none; padding: 0; margin: 16px 0 26px; }
.feature ul li { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; color: var(--slate); }
.feature ul li svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--cyan); margin-top: 2px; }

/* ==========================================================================
   Client sectors
   ========================================================================== */
.sector-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.sector-card:hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-3px); }
.sector-card h4 { font-family: var(--font-mono); font-size: .72rem; color: var(--slate-2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sector-logos { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; }
.sector-logos img { height: 28px; max-width: 96px; width: auto; object-fit: contain; filter: grayscale(.25); opacity: .82; transition: filter .25s, opacity .25s, transform .25s; }
.sector-logos img:hover { filter: none; opacity: 1; transform: scale(1.06); }

/* ==========================================================================
   Case studies
   ========================================================================== */
.case-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s, transform .25s; }
.case-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.case-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-tag { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-sm); }
.case-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.case-client { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.case-body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.case-body p { color: var(--slate); font-size: .94rem; }
.case-result { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.case-result b { font-size: 1.4rem; color: var(--navy); letter-spacing: -.02em; font-weight: 700; }
.case-result span { font-size: .86rem; color: var(--slate); line-height: 1.35; }

/* Full case (cases page) */
.case-full { padding: clamp(36px,5vw,60px) 0; border-bottom: 1px solid var(--line); }
.case-full:last-child { border-bottom: 0; }
.case-full-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 50px; align-items: center; }
.case-full.reverse .case-full-media { order: 2; }
.case-full-media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.case-full-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.case-block { margin-bottom: 20px; }
.case-block h5 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 7px; }
.case-block p { color: var(--slate); margin: 0; }

/* ==========================================================================
   Tech logos
   ========================================================================== */
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tech-cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); height: 104px; display: grid; place-items: center; padding: 20px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.tech-cell:hover { border-color: var(--cyan); box-shadow: var(--shadow); transform: translateY(-3px); }
.tech-cell img { max-height: 40px; max-width: 124px; width: auto; object-fit: contain; filter: grayscale(.15); }

/* ==========================================================================
   Awards
   ========================================================================== */
.awards { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.award { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; box-shadow: var(--shadow-sm); max-width: 290px; text-align: center; }
.award img { border-radius: var(--r-sm); width: 100%; margin-bottom: 12px; }
.award b { display: block; color: var(--navy); font-size: 1rem; }
.award span { font-family: var(--font-mono); font-size: .74rem; color: var(--slate-2); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { position: relative; border-radius: var(--r-xl); padding: clamp(44px, 6vw, 80px); background: var(--navy); color: #fff; overflow: hidden; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(600px 300px at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(600px 300px at 50% 0%, #000, transparent 72%);
}
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(0,165,201,.4), transparent 70%); top: -160px; right: -120px; filter: blur(40px); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: #a9bcd6; max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.cta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Page hero (interior)
   ========================================================================== */
.page-hero { padding: clamp(52px,7vw,84px) 0 clamp(40px,5vw,56px); background: var(--navy); color: #cdd9ec; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 340px at 50% 20%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(700px 340px at 50% 20%, #000, transparent 72%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #a9bcd6; max-width: 640px; margin: 14px auto 0; font-size: 1.1rem; }
.crumb { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; color: var(--cyan-bright); margin-bottom: 16px; text-transform: uppercase; }
.crumb a { color: #a9bcd6; }
.crumb a:hover { color: var(--cyan-bright); }

/* ==========================================================================
   Vision / Mission
   ========================================================================== */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 36px; position: relative; overflow: hidden; }
.vm-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--cyan); }
.vm-card .vm-icon { width: 50px; height: 50px; border-radius: var(--r-md); background: var(--cyan-soft); color: var(--cyan); display: grid; place-items: center; margin-bottom: 18px; }
.vm-card h3 { margin-bottom: 10px; }
.vm-card p { font-size: 1.1rem; color: var(--navy); font-weight: 500; margin: 0; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.founder-media { position: relative; }
.founder-media img { border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.founder-media .badge { position: absolute; bottom: -16px; right: -16px; background: var(--navy); border-radius: var(--r-md); padding: 14px 20px; box-shadow: var(--shadow); }
.founder-media .badge b { font-size: 1.6rem; color: var(--cyan-bright); display: block; line-height: 1; }
.founder-media .badge span { font-family: var(--font-mono); font-size: .74rem; color: #a9bcd6; }

/* ==========================================================================
   Careers
   ========================================================================== */
.job-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.job-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.job-head h3 { margin: 0; }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--font-mono); background: var(--cyan-soft); color: var(--cyan); font-weight: 500; font-size: .74rem; padding: 6px 12px; border-radius: var(--r-sm); }
.job-section { margin-bottom: 22px; }
.job-section h4 { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.job-list { list-style: none; padding: 0; margin: 0; }
.job-list li { display: flex; gap: 12px; padding: 6px 0; color: var(--slate); }
.job-list li svg { flex: 0 0 19px; width: 19px; height: 19px; color: var(--cyan); margin-top: 3px; }

.perks { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.perk { text-align: center; }
.perk .perk-ic { width: 52px; height: 52px; margin: 0 auto 15px; border-radius: var(--r-md); background: var(--cyan-soft); color: var(--cyan); display: grid; place-items: center; }
.perk h4 { font-size: 1.02rem; margin-bottom: 6px; }
.perk p { font-size: .9rem; color: var(--slate); margin: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-row { display: flex; gap: 15px; align-items: flex-start; }
.info-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--cyan-soft); color: var(--cyan); display: grid; place-items: center; }
.info-row h4 { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); margin: 0 0 3px; }
.info-row p { margin: 0; color: var(--slate); }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ==========================================================================
   Footer (deep navy)
   ========================================================================== */
.footer { background: var(--navy); color: #93a8c6; padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 36px; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { color: #7c92b3; max-width: 300px; font-size: .92rem; }
.footer h5 { color: #fff; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: #93a8c6; font-size: .92rem; }
.footer ul a:hover { color: var(--cyan-bright); }
.footer-dm { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-family: var(--font-mono); font-size: .82rem; color: #fff; }
.footer-dm:hover { color: var(--cyan-bright); }
.footer-bottom { margin-top: 52px; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .84rem; color: #6d84a6; font-family: var(--font-mono); }
.footer-bottom a { color: #6d84a6; }
.footer-bottom a:hover { color: var(--cyan-bright); }
.social { display: flex; gap: 9px; margin-top: 18px; }
.social a { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(255,255,255,.06); color: #93a8c6; transition: background .25s, color .25s, transform .25s; }
.social a:hover { background: var(--cyan); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  * { scroll-behavior: auto; }
}

/* Language visibility handled by JS text swap; hide inactive helper */
[hidden] { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .tech-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .perks { grid-template-columns: repeat(2,1fr); }
  .stats-band { grid-template-columns: repeat(2,1fr); gap: 36px 20px; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 12px; box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; }
  .feature, .feature.reverse .feature-media,
  .case-full-grid, .case-full.reverse .case-full-media,
  .founder-grid, .vm-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-media, .case-full.reverse .case-full-media { order: 0; }
  .founder-media { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .perks { grid-template-columns: 1fr; }
  .job-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
