﻿/* ═══════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════ */
:root {
  /* Core palette */
  --white:       #FFFFFF;
  --off:         #F6F8FB;          /* page background */
  --off2:        #EEF3F8;          /* subtle section bg */
  --navy:        #0A1628;          /* near-black text */
  --navy2:       #152238;
  --sky:         #3B9FE8;          /* primary accent */
  --sky-lt:      #EBF4FD;          /* sky tint bg */
  --sky-mid:     #BDD9F5;
  --sky-dim:     #1976C8;
  --slate:       #3F546D;          /* body text — darkened for AA contrast */
  --slate-lt:    #5E7693;          /* muted text — darkened from #8097B0 to hit AA */
  --border:      #D8E6F2;
  --border-hi:   #A8C8E8;
  --shadow-sm:   0 1px 4px rgba(10,22,40,.06);
  --shadow-md:   0 4px 20px rgba(10,22,40,.08), 0 1px 4px rgba(10,22,40,.04);
  --shadow-lg:   0 16px 56px rgba(10,22,40,.12), 0 4px 16px rgba(10,22,40,.06);
  --shadow-sky:  0 8px 28px rgba(59,159,232,.22);
  --mono: 'JetBrains Mono', monospace;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Syne', sans-serif;
  --r: 8px;
}

/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--off); color: var(--navy); font-family: var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ═══════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════ */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--sky);
  margin-bottom: 14px;
}
.tag::before { content: '◆'; font-size: 6px; }
.tag::after  { content: ''; display: block; width: 26px; height: 1px; background: var(--sky); }

h2.display {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.06; letter-spacing: -1.5px;
  color: var(--navy); margin-bottom: 14px;
}
h2.display em { font-style: italic; color: var(--sky); }

.lead { font-size: 17px; color: var(--slate); line-height: 1.8; max-width: 540px; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-sky {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--sky); color: #fff;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--r);
  border: none; cursor: pointer;
  box-shadow: var(--shadow-sky);
  transition: background .22s, transform .18s, box-shadow .22s;
  white-space: nowrap;
}
.btn-sky:hover { background: var(--sky-dim); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(59,159,232,.3); }
.btn-sky svg, .btn-sky-sm svg { transition: transform .22s; }
.btn-sky:hover svg { transform: translateX(4px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--navy);
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 12px 24px; border-radius: var(--r);
  border: 1.5px solid var(--border-hi);
  transition: border-color .22s, background .22s, color .22s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--sky); color: var(--sky); background: var(--sky-lt); }

.btn-sky-sm {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--sky); color: #fff;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 20px; border-radius: var(--r);
  box-shadow: var(--shadow-sky);
  transition: background .2s, transform .18s;
  white-space: nowrap;
}
.btn-sky-sm:hover { background: var(--sky-dim); transform: translateY(-1px); }

.btn-white-sm {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.15); color: #fff;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 20px; border-radius: var(--r);
  border: 1.5px solid rgba(255,255,255,.3);
  transition: background .2s;
  white-space: nowrap;
}
.btn-white-sm:hover { background: rgba(255,255,255,.25); }

/* ═══════════════════════════════════════
   CTA BOX — reusable conversion component
═══════════════════════════════════════ */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: 14px; padding: clamp(28px,4vw,44px) clamp(24px,4vw,48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  margin-top: 56px;
}
.cta-box::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(59,159,232,.18), transparent 70%);
  pointer-events: none;
}
.cta-box::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,159,232,.5), transparent);
}
.cta-box-text h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -.4px; color: #fff; margin-bottom: 8px;
}
.cta-box-text h3 em { font-style: italic; color: var(--sky-mid); }
.cta-box-text p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.65; max-width: 400px; }
.cta-box-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* Sky tint CTA variant */
.cta-box-sky {
  background: var(--sky-lt);
  border: 1.5px solid var(--sky-mid);
  border-radius: 14px; padding: clamp(28px,4vw,44px) clamp(24px,4vw,48px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; margin-top: 56px;
}
.cta-box-sky::before, .cta-box-sky::after { display: none; }
.cta-box-sky .cta-box-text h3 { color: var(--navy); }
.cta-box-sky .cta-box-text h3 em { color: var(--sky-dim); }
.cta-box-sky .cta-box-text p { color: var(--slate); }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 66px;
  background: rgba(246,248,251,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  transition: box-shadow .3s;
}
nav.elevated { box-shadow: var(--shadow-md); }

.nav-logo { font-family: var(--serif); font-size: 20px; color: var(--navy); letter-spacing: -.3px; flex-shrink: 0; white-space: nowrap; }
.nav-logo span { color: var(--sky); }

.nav-center {
  display: flex; gap: 32px; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-center a {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--slate);
  transition: color .2s;
}
.nav-center a:hover { color: var(--navy); }

.nav-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; color: var(--slate-lt);
}
.status-dot { width: 5px; height: 5px; background: #22c55e; border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* Hamburger */
.ham {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 901;
}
.ham span { display: block; width: 22px; height: 1.5px; background: var(--navy); border-radius: 2px; transition: all .28s; }
.ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mob-drawer {
  display: none; position: fixed;
  top: 66px; left: 0; right: 0; bottom: 0;
  z-index: 850;
  background: var(--white);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; padding: 40px;
}
.mob-drawer.open { display: flex; }
.mob-drawer a.mob-link {
  font-family: var(--serif); font-size: clamp(28px, 7vw, 38px);
  color: var(--navy); transition: color .2s;
}
.mob-drawer a.mob-link:hover { color: var(--sky); }
.mob-drawer .btn-sky { font-size: 13px; margin-top: 12px; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  min-height: 100vh; padding-top: 66px;
  display: grid; grid-template-columns: 1fr minmax(460px, 560px);
  position: relative; overflow: hidden;
  background: var(--white);
}

/* Sky wash right side */
.hero-wash {
  position: absolute; top: 0; right: 0; bottom: 0; width: 50%;
  background: linear-gradient(160deg, var(--sky-lt) 0%, var(--off2) 100%);
  z-index: 0;
}
.hero-wash::before {
  content: ''; position: absolute; top: 0; left: -60px;
  width: 120px; height: 100%;
  background: linear-gradient(90deg, var(--white), transparent);
}

/* Subtle dot grid */
.hero-dots {
  position: absolute; inset: 0; z-index: 0; opacity: .35;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-left {
  position: relative; z-index: 1;
  padding: clamp(48px,6vw,100px) clamp(24px,5vw,80px) clamp(60px,7vw,100px);
  display: flex; flex-direction: column; justify-content: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sky-lt); border: 1.5px solid var(--sky-mid);
  border-radius: 100px; padding: 6px 14px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--sky-dim); letter-spacing: .08em;
  margin-bottom: 28px; width: fit-content;
}
.badge-dot { width: 5px; height: 5px; background: var(--sky); border-radius: 50%; animation: blink 2.2s infinite; }

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(54px, 7.5vw, 116px);
  line-height: .95; letter-spacing: -3px;
  color: var(--navy); margin-bottom: 28px;
}
.hero-h1 em { font-style: italic; color: var(--sky); }

.hero-sub {
  font-size: clamp(16px, 1.8vw, 18px); font-weight: 400;
  color: var(--slate); line-height: 1.78;
  max-width: 480px; margin-bottom: 40px;
}
.hero-sub strong { color: var(--navy); font-weight: 600; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex; gap: clamp(20px,3vw,44px);
  flex-wrap: wrap;
  padding-top: 32px; border-top: 1.5px solid var(--border);
}
.hst-num {
  font-family: var(--serif); font-size: clamp(26px,3vw,36px);
  letter-spacing: -1.5px; color: var(--navy);
}
.hst-num span { color: var(--sky); }
.hst-lbl {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--slate-lt); margin-top: 3px;
}

/* Hero photo column */
.hero-right {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end;
  padding: 0 clamp(40px,5vw,76px) 0 0;
}
.hero-photo-wrap {
  width: 100%; max-width: 560px; position: relative;
}
.hero-photo-frame {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background: linear-gradient(170deg, var(--sky-mid) 0%, #8ab8d8 100%);
  box-shadow: var(--shadow-lg);
}
.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
/* ★ YOUR PHOTO: replace .hero-ph with <img src="kushal-hero.jpg" alt="Kushal Biswas"> */
.hero-ph {
  width: 100%; height: 100%; min-height: 480px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 32px; text-align: center;
  color: rgba(255,255,255,.7); font-family: var(--mono); font-size: 11px;
}
.hero-ph svg { opacity: .5; }
.hero-ph strong { color: rgba(255,255,255,.9); font-size: 13px; display: block; margin-bottom: 4px; }

/* Floating info cards */
.float-a {
  position: absolute; left: -28px; bottom: 60px;
  background: var(--white); border-radius: 12px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg); min-width: 176px;
  animation: floatA 4s ease-in-out infinite;
}
.float-b {
  position: absolute; right: -12px; top: 50px;
  background: var(--navy); border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  animation: floatB 5s ease-in-out infinite;
}
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.fi-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--sky-lt); border: 1px solid var(--sky-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.fi-label { font-family: var(--mono); font-size: 9px; color: var(--slate-lt); letter-spacing: .08em; text-transform: uppercase; }
.fi-val   { font-size: 13px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.fb-label { font-family: var(--mono); font-size: 9px; color: rgba(255,255,255,.4); letter-spacing: .08em; text-transform: uppercase; }
.fb-val   { font-size: 16px; font-weight: 700; color: #fff; margin: 3px 0 2px; }
.fb-sub   { font-family: var(--mono); font-size: 9px; color: var(--sky-mid); }

/* ═══════════════════════════════════════
   MARQUEE
═══════════════════════════════════════ */
.marquee-bar {
  background: var(--navy); border-top: none; padding: 13px 0; overflow: hidden;
}
.mq-track { display: flex; animation: mq 28s linear infinite; white-space: nowrap; }
.mq-item {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 0 30px;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.76);
  border-right: 1px solid rgba(255,255,255,.14);
}
.mq-item .dot { color: var(--sky); font-size: 7px; opacity: 1; }
@keyframes mq { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
section { padding: clamp(64px,8vw,110px) clamp(20px,5vw,80px); border-top: 1px solid var(--border); }
.section-bg-off  { background: var(--off); }
.section-bg-off2 { background: var(--off2); }
.section-bg-wh   { background: var(--white); }

/* ═══════════════════════════════════════
   CURRENTLY
═══════════════════════════════════════ */
.curr-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,80px); margin-top: 52px; align-items: start;
}
.curr-left p {
  font-size: 17px; color: var(--slate); line-height: 1.85; margin-bottom: 20px; max-width: none;
}
.curr-left p strong { color: var(--navy); }
.curr-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden;
  margin-top: 36px;
}
.stat-cell {
  padding: 24px 20px; background: var(--white);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.stat-cell:nth-child(even) { border-right: none; }
.stat-cell:nth-child(3), .stat-cell:nth-child(4) { border-bottom: none; }
.stat-cell:hover { background: var(--sky-lt); }
.sn { font-family: var(--serif); font-size: 36px; letter-spacing: -1.5px; color: var(--navy); }
.sn span { color: var(--sky); }
.sl { font-family: var(--mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--slate-lt); margin-top: 4px; }

.curr-right { display: flex; flex-direction: column; }
.focus-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1.5px solid var(--border);
  transition: padding-left .25s;
}
.focus-item:hover { padding-left: 6px; }
.fn { font-family: var(--mono); font-size: 10px; color: var(--sky); padding-top: 3px; flex-shrink: 0; min-width: 22px; }
.ft { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.fd { font-size: 13px; color: var(--slate-lt); line-height: 1.65; }

/* ═══════════════════════════════════════
   ABOUT + PHOTOS
═══════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,88px); margin-top: 52px; align-items: start;
}

/* Photo mosaic */
.photo-mosaic {
  display: grid; grid-template-columns: 5fr 3fr;
  grid-template-rows: clamp(180px,22vw,280px) clamp(140px,17vw,220px);
  gap: 10px;
}
.pm-photo {
  border-radius: 10px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-md); transition: transform .4s;
}
.pm-photo:hover { transform: scale(1.02); }
.pm-photo:first-child { grid-row: span 2; }
/* gradient placeholders — replace .pm-ph with <img src="..."> */
.pm-photo:nth-child(1) { background: linear-gradient(165deg, var(--sky-mid) 0%, #6eaad0 100%); }
.pm-photo:nth-child(2) { background: linear-gradient(165deg, #a8c8e8 0%, #7aadcc 100%); }
.pm-photo:nth-child(3) { background: linear-gradient(165deg, #b8d4e8 0%, #8bbbd4 100%); }
.pm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-ph {
  width: 100%; height: 100%; min-height: 140px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 16px; text-align: center;
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,.75);
}
.pm-ph strong { display: block; margin-bottom: 2px; font-size: 11px; }
.pm-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,22,40,.55), transparent);
  padding: 10px 12px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.8);
}

.about-text p { font-size: 16px; color: var(--slate); line-height: 1.85; margin-bottom: 18px; }
.about-text p strong { color: var(--navy); }

.about-details { margin-top: 28px; }
.arow {
  display: flex; gap: 16px; padding: 12px 0;
  border-bottom: 1.5px solid var(--border); font-size: 13px;
}
.ak { font-family: var(--mono); color: var(--slate-lt); min-width: 64px; flex-shrink: 0; }
.av { color: var(--slate); }

.about-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.3; letter-spacing: -.3px;
  color: var(--navy);
  padding: 20px 24px;
  border-left: 3px solid var(--sky);
  background: var(--sky-lt);
  border-radius: 0 8px 8px 0;
}
.about-quote em { font-style: italic; color: var(--sky-dim); }

.about-wide {
  margin-top: 36px;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.stag {
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 4px;
  border: 1.5px solid var(--border); color: var(--slate);
  transition: border-color .2s, color .2s, background .2s;
}
.stag:hover { border-color: var(--sky); color: var(--sky); background: var(--sky-lt); }

/* ═══════════════════════════════════════
   WORK AREAS
═══════════════════════════════════════ */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 52px;
}
.wcard {
  background: linear-gradient(180deg, var(--white) 0%, rgba(235,244,253,.55) 100%);
  border: 1.5px solid var(--border);
  border-radius: 12px; padding: clamp(24px,2.6vw,34px);
  transition: all .3s; position: relative; overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.wcard::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,159,232,.18), transparent 68%);
  pointer-events: none;
}
.wcard::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--sky-mid));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.wcard:hover { border-color: var(--sky-mid); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.wcard:hover::after { transform: scaleX(1); }
.wcard-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sky-lt); border: 1.5px solid var(--sky-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.wcard-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sky-lt);
  border: 1.5px solid var(--border);
  margin-bottom: 20px;
}
.wcard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wcard-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--sky);
  margin-bottom: 28px;
}
.wcard-num::after {
  content: '';
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: var(--sky);
}
.wcard-t { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; line-height: 1.25; max-width: 92%; }
.wcard-d { font-size: 14px; color: var(--slate); line-height: 1.75; margin-bottom: 22px; }
.wcard-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.wtag {
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 4px;
  background: var(--white); border: 1px solid var(--border-hi); color: var(--slate);
}

/* ═══════════════════════════════════════
   SYSTEMS / BUILDER'S LAB
═══════════════════════════════════════ */
.sys-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 52px;
}
.scard {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: clamp(22px,2.5vw,30px);
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.scard:hover { border-color: var(--sky-mid); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.scard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.tool-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  flex-shrink: 0;
}
.scard-free .tool-badge {
  color: #15803d;
  background: #DCFCE7;
  border: 1.5px solid #86EFAC;
}
.scard-locked .tool-badge {
  color: #B91C1C;
  background: #FEE2E2;
  border: 1.5px solid #FCA5A5;
}
.scard-locked {
  background: rgba(255,255,255,.68);
}
.schip {
  display: inline-block; font-family: var(--mono);
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky-dim); background: var(--sky-lt); border: 1.5px solid var(--sky-mid);
  padding: 3px 10px; border-radius: 4px;
  width: fit-content;
}
.scard-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--sky-lt);
  border: 1.5px solid var(--border);
  margin-bottom: 18px;
}
.scard-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scard-n { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.scard-d { font-size: 13px; color: var(--slate-lt); line-height: 1.7; flex: 1; margin-bottom: 18px; }
.scard-impact {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--sky-dim);
  padding-top: 14px; border-top: 1.5px solid var(--border);
}
.scard-impact::before { content: '→'; color: var(--sky); }
.tool-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: var(--r);
  border: 1.5px solid var(--sky-mid);
  background: var(--sky);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, transform .18s, border-color .2s;
}
.tool-cta:hover { background: var(--sky-dim); transform: translateY(-1px); }
.tool-cta-disabled,
.tool-cta-disabled:hover {
  background: var(--off2);
  color: var(--slate-lt);
  border-color: var(--border);
  cursor: not-allowed;
  transform: none;
}
.free-tools-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* ═══════════════════════════════════════
   SPEAKING SECTION
═══════════════════════════════════════ */
.speak-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px,6vw,88px); align-items: center; margin-top: 52px;
}
.speak-photos {
  display: grid;
  min-height: clamp(360px, 42vw, 520px);
}
.sp-p {
  border-radius: 10px; overflow: hidden; position: relative;
  box-shadow: var(--shadow-md); transition: transform .4s;
}
.sp-p:hover { transform: scale(1.02); }
.sp-p-single { min-height: clamp(360px, 42vw, 520px); }
.sp-p:first-child { grid-row: auto; }
.sp-p:nth-child(1) { background: linear-gradient(170deg, #6aabce 0%, #4a8cb0 100%); }
.sp-p:nth-child(2) { background: linear-gradient(170deg, #8ac0de 0%, #5e9cc0 100%); }
.sp-p:nth-child(3) { background: linear-gradient(170deg, #a0ceea 0%, #70aece 100%); }
.sp-p img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.sp-ph {
  width: 100%; height: 100%; min-height: 140px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 16px; text-align: center;
  font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.75);
}
.sp-ph strong { font-size: 11px; display: block; margin-bottom: 2px; }
.sp-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,22,40,.55), transparent);
  padding: 10px 12px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.8);
}
.speak-right p { font-size: 15px; color: var(--slate); line-height: 1.85; margin-bottom: 16px; }
.speak-right p strong { color: var(--navy); }

.speak-topics { margin: 24px 0; display: flex; flex-direction: column; }
.stopic {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1.5px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--slate);
  transition: color .2s, padding-left .22s;
}
.stopic:hover { color: var(--navy); padding-left: 6px; }
.stopic-icon { font-size: 16px; flex-shrink: 0; }
.stopic-arr { margin-left: auto; color: var(--border-hi); font-size: 12px; transition: transform .2s, color .2s; }
.stopic:hover .stopic-arr { transform: translateX(4px); color: var(--sky); }

/* ═══════════════════════════════════════
   CAPABILITIES
═══════════════════════════════════════ */
.cap-list { margin-top: 52px; }
.cap-item {
  display: grid; grid-template-columns: 48px 1fr 1fr auto;
  align-items: center; gap: 28px;
  padding: 24px 16px; border-bottom: 1.5px solid var(--border);
  border-radius: 0; transition: background .22s, padding-left .22s;
}
.cap-item:first-child { border-top: 1.5px solid var(--border); }
.cap-item:hover { background: var(--sky-lt); padding-left: 24px; border-radius: 8px; }
.cap-num { font-family: var(--mono); font-size: 10px; color: var(--sky); }
.cap-name { font-size: 17px; font-weight: 700; color: var(--navy); }
.cap-desc { font-size: 13px; color: var(--slate-lt); line-height: 1.6; }
.cap-arr { color: var(--border-hi); font-size: 16px; transition: all .25s; }
.cap-item:hover .cap-arr { color: var(--sky); transform: translateX(5px); }

/* ═══════════════════════════════════════
   INSIGHTS
═══════════════════════════════════════ */
.ins-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.ins-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ins-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.ins-card:hover { border-color: var(--sky-mid); box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.ins-img {
  height: 160px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; flex-shrink: 0;
}
.ins-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.ins-cat {
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 10px;
}
.ins-t {
  font-family: var(--serif); font-size: 20px; line-height: 1.3;
  color: var(--navy); margin-bottom: 10px;
}
.ins-ex { font-size: 13px; color: var(--slate-lt); line-height: 1.7; flex: 1; margin-bottom: 18px; }
.ins-link {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sky);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.ins-link:hover { gap: 12px; }

/* ═══════════════════════════════════════
   RESOURCES
═══════════════════════════════════════ */
.res-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 52px;
}
.rcard {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 26px 22px;
  display: flex; flex-direction: column;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.rcard:hover { border-color: var(--sky-mid); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.rcard-icon { font-size: 26px; margin-bottom: 12px; }
.rcard-type {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate-lt); margin-bottom: 6px;
}
.rcard-n { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.rcard-d { font-size: 12px; color: var(--slate-lt); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.rcard-lnk {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sky);
  display: inline-flex; align-items: center; gap: 6px; transition: gap .2s;
}
.rcard-lnk:hover { gap: 11px; }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-inner { max-width: 760px; margin: 0 auto; text-align: center; padding: 40px 0 20px; }
.contact-inner .tag { justify-content: center; }
.contact-inner .tag::before, .contact-inner .tag::after { display: none; }
.contact-h {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -2px; line-height: 1.06;
  color: var(--navy); margin-bottom: 18px;
}
.contact-h em { font-style: italic; color: var(--sky); }
.contact-sub { font-size: 16px; color: var(--slate); line-height: 1.78; margin-bottom: 40px; }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.clink {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--slate);
  padding: 13px 22px; border: 1.5px solid var(--border); border-radius: 8px;
  transition: all .25s;
}
.clink:hover { color: var(--navy); border-color: var(--sky); background: var(--sky-lt); }
.contact-form {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: clamp(22px, 4vw, 34px);
  text-align: left;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: block;
  margin-bottom: 14px;
}
.contact-form span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-lt);
  margin-bottom: 7px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--off);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(59,159,232,.12);
}
.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
.form-alert {
  border-radius: 8px;
  padding: 12px 16px;
  margin: -18px 0 18px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.form-alert-success {
  color: #15803d;
  background: #DCFCE7;
  border: 1.5px solid #86EFAC;
}
.form-alert-error {
  color: #B91C1C;
  background: #FEE2E2;
  border: 1.5px solid #FCA5A5;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--navy); border-top: none;
  padding: clamp(36px,4vw,52px) clamp(20px,5vw,80px) clamp(24px,3vw,36px);
}
.foot-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap; gap: 36px;
}
.foot-logo { font-family: var(--serif); font-size: 22px; color: var(--white); }
.foot-logo span { color: var(--sky); }
.foot-tag { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.35); margin-top: 6px; max-width: 240px; line-height: 1.6; }
.foot-cols { display: flex; gap: 52px; flex-wrap: wrap; }
.foot-col-t { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .2s; }
.foot-links a:hover { color: var(--white); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 14px;
}
.foot-bottom p { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.3); }
.foot-soc { display: flex; gap: 10px; }
.fsoc {
  width: 34px; height: 34px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.45); transition: all .2s;
}
.fsoc:hover { border-color: var(--sky); color: var(--sky); }

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .72s cubic-bezier(.25,.46,.45,.94),
              transform .72s cubic-bezier(.25,.46,.45,.94);
}
.reveal.on { opacity: 1; transform: none; }

/* Staggered children — JS sets --i, CSS handles the animation
   (avoids forced reflow from inline style writes during scroll) */
.reveal.stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s ease, transform .65s ease;
  transition-delay: calc(var(--i, 0) * 75ms);
  will-change: opacity, transform;
}
.reveal.stagger.on > * { opacity: 1; transform: none; }

/* Hero entrance */
.hero-left > * { animation: slideUp .9s cubic-bezier(.25,.46,.45,.94) both; }
.hero-badge   { animation-delay: .04s; }
.hero-h1      { animation-delay: .14s; }
.hero-sub     { animation-delay: .25s; }
.hero-btns    { animation-delay: .36s; }
.hero-stats   { animation-delay: .50s; }
.hero-right   { animation: fadeIn 1s .28s both; }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════ */

/* ── 1200px – tablet landscape ── */
@media (max-width: 1200px) {
  .work-grid   { grid-template-columns: repeat(2, 1fr); }
  .res-grid    { grid-template-columns: repeat(2, 1fr); }
  .cap-item    { grid-template-columns: 40px 1fr; gap: 20px; }
  .cap-desc, .cap-arr { display: none; }
  .nav-center  { display: none; }
  .ham         { display: flex; }
  .nav-right   { gap: 10px; }
}

/* ── 900px – tablet portrait ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-wash   { display: none; }
  .hero-right  { display: none; }          /* photo shown separately below */
  .curr-grid   { grid-template-columns: 1fr; gap: 40px; }
  .about-grid  { grid-template-columns: 1fr; gap: 40px; }
  .speak-grid  { grid-template-columns: 1fr; gap: 40px; }
  .work-grid   { grid-template-columns: repeat(2, 1fr); }
  .sys-grid    { grid-template-columns: repeat(2, 1fr); }
  .ins-grid    { grid-template-columns: repeat(2, 1fr); }
  .nav-status  { display: none; }
  .nav-cta-desk { display: none; }
  .about-grid > .photo-mosaic { order: -1; }   /* photos first on mobile */
}

/* ── 640px – mobile ── */
@media (max-width: 640px) {
  nav {
    height: 72px;
    padding: 0 26px;
  }
  .nav-logo {
    font-size: clamp(22px, 6.2vw, 28px);
    letter-spacing: -.6px;
  }
  .ham span {
    width: 27px;
    height: 2px;
  }
  .mob-drawer {
    top: 72px;
  }
  #hero {
    width: 100%;
    padding: 72px 0 0;
  }
  .hero-left {
    width: 100%;
    max-width: none;
    display: contents;
    padding: 0;
  }
  .hero-badge {
    order: 1;
    display: block;
    width: auto;
    margin: 58px 20px 22px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    line-height: 1.55;
    white-space: normal;
    letter-spacing: .14em;
    text-align: left;
  }
  .hero-badge .badge-dot {
    display: none;
  }
  .hero-h1 {
    order: 2;
    margin-left: 20px;
    margin-right: 20px;
  }
  .hero-sub {
    order: 3;
    max-width: none;
    margin-left: 20px;
    margin-right: 20px;
  }
  .hero-btns {
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
  }
  .hero-btns .btn-sky,
  .hero-btns .btn-outline {
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
    min-height: 52px;
    padding: 13px 18px;
  }
  .work-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
  .wcard       { min-height: 220px; padding: 14px; border-radius: 10px; }
  .wcard::before { width: 48px; height: 48px; top: 12px; right: 12px; }
  .wcard-num   { font-size: 9px; margin-bottom: 18px; }
  .wcard-num::after { width: 22px; margin-left: 7px; }
  .wcard-t     { font-size: 13px; line-height: 1.25; margin-bottom: 7px; max-width: none; }
  .wcard-d     { font-size: 11px; line-height: 1.5; margin-bottom: 12px; }
  .wcard-tags  { gap: 4px; }
  .wtag        { font-size: 8px; padding: 3px 6px; letter-spacing: .05em; }
  .sys-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
  .scard       { padding: 12px; border-radius: 10px; }
  .scard-top   { gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
  .scard-image { margin-bottom: 12px; border-radius: 8px; }
  .schip,
  .tool-badge  { font-size: 8px; letter-spacing: .08em; padding: 3px 6px; }
  .scard-n     { font-size: 13px; line-height: 1.25; margin-bottom: 6px; }
  .scard-d     { font-size: 11px; line-height: 1.5; margin-bottom: 10px; }
  .scard-impact { font-size: 9px; line-height: 1.45; padding-top: 10px; }
  .tool-cta    { width: 100%; margin-top: 12px; padding: 9px 10px; font-size: 10px; }
  .ins-grid    { grid-template-columns: 1fr; }
  .res-grid    { grid-template-columns: 1fr; }
  .hero-name-break { display: none; }
  .hero-h1 {
    font-size: clamp(42px, 11.5vw, 62px);
    line-height: .96;
    letter-spacing: -1.8px;
    white-space: nowrap;
  }
  .cta-box, .cta-box-sky { flex-direction: column; align-items: flex-start; }
  .hero-stats {
    order: 6;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    margin: 0 20px 68px;
    width: calc(100% - 40px);
    padding-top: 26px;
  }
  .hero-stats > div {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    background: rgba(255,255,255,.72);
    border: 1.5px solid var(--border);
    border-radius: 10px;
  }
  .hero-right {
    order: 5;
    display: flex;
    width: 100%;
    padding: 0 20px 34px;
    align-items: center;
    justify-content: center;
  }
  .hero-photo-wrap {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .hero-photo-frame {
    border-radius: 12px;
    aspect-ratio: 3/4;
  }
  .float-a {
    left: 12px;
    bottom: 18px;
    min-width: 0;
    max-width: calc(100% - 24px);
    padding: 11px 12px;
  }
  .float-b {
    right: 12px;
    top: 18px;
    padding: 11px 13px;
  }
  .fi-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  .fi-val {
    font-size: 12px;
  }
  .fb-val {
    font-size: 14px;
  }
  .hst-num {
    font-size: 34px;
    line-height: 1;
  }
  .hst-lbl {
    margin-top: 0;
    text-align: right;
    letter-spacing: .13em;
  }
  .curr-stats  { grid-template-columns: 1fr 1fr; }
  .foot-top    { flex-direction: column; }
  .form-grid   { grid-template-columns: 1fr; gap: 0; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .clink       { justify-content: center; }
  .photo-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .pm-photo:first-child {
    grid-row: span 1;
    aspect-ratio: 4 / 5;
    min-height: auto;
  }
  .pm-photo:first-child img {
    object-fit: contain;
    object-position: center bottom;
  }
  .pm-photo:nth-child(2),
  .pm-photo:nth-child(3) {
    display: none;
  }
  .speak-photos {
    grid-template-columns: 1fr;
    min-height: clamp(360px, 95vw, 520px);
  }
  .sp-p-single { min-height: clamp(360px, 95vw, 520px); }
  .sp-p:first-child { grid-row: span 1; }
}

/* ── 420px – small phones ── */
@media (max-width: 420px) {
  .hero-btns   { flex-direction: column; }
  .hero-btns .btn-sky, .hero-btns .btn-outline { width: 100%; justify-content: center; }
  .cta-box-actions { width: 100%; flex-direction: column; }
  .cta-box-actions .btn-sky, .cta-box-actions .btn-outline,
  .cta-box-actions .btn-sky-sm, .cta-box-actions .btn-white-sm { width: 100%; justify-content: center; }
  .foot-cols   { gap: 24px; }
}
