/* ==========================================================================
   Ingenuity Engineering Services — main stylesheet
   ========================================================================== */

:root {
  --navy: #1b2559;
  --navy-deep: #111836;
  --sky: #2b8fd6;
  --ink: #1c2026;
  --muted: #5d6573;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 54, .06), 0 8px 24px rgba(17, 24, 54, .08);
  --shadow-lg: 0 2px 4px rgba(17, 24, 54, .06), 0 18px 40px rgba(17, 24, 54, .14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--sky); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--navy-deep);
  letter-spacing: -.01em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--sky); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--sky); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--navy);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(17, 24, 54, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-deep); }
.brand:hover { color: var(--navy-deep); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .02em;
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .04em; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--navy); background: var(--bg-soft); }
.nav-link.is-current { color: var(--navy); font-weight: 600; }
.nav-link.is-current::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--sky); border-radius: 2px;
}
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.nav-link[aria-expanded="true"] + .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink); }
.dropdown a:hover { background: var(--bg-soft); color: var(--navy); }
.dropdown-label {
  display: block; padding: 10px 12px 4px; font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

.nav-cta { margin-left: 10px; padding: 11px 20px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--navy-deep); border-radius: 2px;
  position: relative; transition: transform .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg-soft); }
.hero-media { position: relative; height: clamp(300px, 46vw, 560px); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 54, 0) 55%, rgba(17, 24, 54, .25) 100%);
}
.hero-card {
  position: relative; z-index: 2;
  margin-top: clamp(-120px, -9vw, -60px);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-card h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; margin-bottom: 14px; }
.hero-card h1 span { color: var(--sky); }
.hero-card .lead { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero + .section { padding-top: clamp(56px, 7vw, 88px); }

/* ---------- Core service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }

.service-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .media img { transform: scale(1.05); }
.service-card .body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.service-card .num {
  font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--sky);
  letter-spacing: .08em; margin-bottom: 8px;
}
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--muted); flex: 1; }

/* ---------- Discipline tiles ---------- */
.tile {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; color: #fff; isolation: isolate; background: var(--navy-deep);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(17, 24, 54, .05) 30%, rgba(17, 24, 54, .88) 100%);
  transition: background .3s;
}
.tile:hover { color: #fff; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { background: linear-gradient(180deg, rgba(27, 37, 89, .25) 0%, rgba(17, 24, 54, .92) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.tile-body h3 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.tile-body span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; opacity: .85; }
.tile-body svg { width: 16px; height: 16px; transition: transform .2s; }
.tile:hover .tile-body svg { transform: translateX(4px); }

/* ---------- Projects feature ---------- */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.feature-media img { width: 100%; aspect-ratio: 760 / 420; object-fit: cover; }
.feature-media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .94); color: var(--navy-deep);
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.chips li {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 500; background: #fff; color: var(--ink);
}

/* ---------- Manager's word ---------- */
.quote-band { background: var(--navy-deep); color: #fff; position: relative; overflow: hidden; }
.quote-band::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .025), 0 0 0 120px rgba(255, 255, 255, .02);
}
.quote-band .eyebrow { color: #8cc6f0; }
.quote { position: relative; max-width: 900px; margin: 0; }
.quote-mark { width: 54px; height: 54px; color: var(--sky); margin-bottom: 18px; }
.quote p {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(21px, 2.6vw, 30px); line-height: 1.5; color: #fff; margin-bottom: 28px;
}
.quote footer { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.quote footer::before { content: ""; width: 36px; height: 2px; background: var(--sky); }

/* ---------- Important links ---------- */
.link-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  min-height: 150px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--navy-deep); font-weight: 600; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.link-card:hover { color: var(--navy-deep); border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.link-card .icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-soft); color: var(--navy);
}
.link-card .icon svg { width: 20px; height: 20px; }
.link-card .domain { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.link-card .domain svg { width: 14px; height: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1129; color: #b9c0d4; font-size: 15px; }
.footer-main {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(32px, 5vw, 64px);
  padding-top: clamp(56px, 7vw, 80px); padding-bottom: 48px;
}
.site-footer h2 {
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer a { color: #dfe4f1; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand-mark { background: #fff; color: var(--navy); }
.footer-brand .brand-name small { color: #8c94ab; }
.footer-brand p { max-width: 360px; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.contact-list svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: #8cc6f0; }
.follow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.follow img { width: 88px; height: 88px; border-radius: 12px; background: #fff; padding: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16); color: #dfe4f1; transition: background .2s, border-color .2s;
}
.social a:hover { background: var(--sky); border-color: var(--sky); color: #fff; }
.social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: 14px; color: #8c94ab; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--bg-soft);
  padding: clamp(40px, 6vw, 72px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -140px; width: 380px; height: 380px;
  border-radius: 50%; border: 1px solid rgba(27, 37, 89, .07);
  box-shadow: 0 0 0 50px rgba(27, 37, 89, .025), 0 0 0 100px rgba(27, 37, 89, .02);
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; margin: 0 0 14px; max-width: 820px; }
.page-hero .lead { max-width: 720px; margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb svg { width: 14px; height: 14px; opacity: .6; }
.breadcrumb [aria-current] { color: var(--navy-deep); font-weight: 500; }

/* ---------- Zig-zag rows (Services) ---------- */
.rows { display: grid; gap: clamp(40px, 6vw, 80px); }
.row-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.row-split:nth-child(even) .row-media { order: 2; }
.row-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.row-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.row-num {
  display: block; font-family: var(--font-head); font-weight: 800; line-height: 1;
  font-size: clamp(48px, 6vw, 72px); color: transparent; -webkit-text-stroke: 1.5px var(--sky);
  margin-bottom: 14px;
}
.row-text h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 12px; }
.row-text p { font-size: 17px; color: var(--muted); }

/* ---------- Sidebar layout ---------- */
.with-sidebar { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.side-nav h2 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px 14px;
}
.side-nav ul { border-left: 2px solid var(--line); }
.side-nav a {
  display: block; padding: 10px 14px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: 15px; font-weight: 500; color: var(--ink); transition: color .2s, border-color .2s, background .2s;
}
.side-nav a:hover { color: var(--navy); border-color: var(--muted); }
.side-nav a[aria-current] { color: var(--navy); border-color: var(--sky); font-weight: 600; background: linear-gradient(90deg, rgba(43, 143, 214, .08), transparent); }

/* ---------- Discipline content ---------- */
.disc-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; margin-bottom: clamp(40px, 5vw, 64px); }
.disc-intro p { font-size: 17px; color: #3b4250; }
.disc-intro p:last-child { margin-bottom: 0; }
.disc-figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.disc-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.list-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px); margin-bottom: 24px;
}
.list-block h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(19px, 2vw, 22px); margin-bottom: 20px;
}
.list-block h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--sky); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.checklist--single { grid-template-columns: 1fr; }
.checklist li { position: relative; padding-left: 32px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(43, 143, 214, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2559' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Prev / next ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.pager a {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.pager a:hover { border-color: transparent; box-shadow: var(--shadow); }
.pager small { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.pager small svg { width: 14px; height: 14px; }
.pager strong { font-family: var(--font-head); color: var(--navy-deep); font-size: 17px; }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }

.side-nav .side-label {
  display: block; padding: 18px 14px 6px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* ---------- About: Vision & Mission ---------- */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); }
.vm-card {
  position: relative; padding: clamp(26px, 3.4vw, 40px); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.vm-card--dark { background: var(--navy-deep); border-color: var(--navy-deep); color: #d5dbeb; }
.vm-card--dark h2 { color: #fff; }
.vm-card .icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(43, 143, 214, .12); color: var(--sky); margin-bottom: 20px;
}
.vm-card .icon svg { width: 24px; height: 24px; }
.vm-card h2 { font-size: 26px; margin-bottom: 12px; }
.vm-card p { font-size: 17px; margin: 0; }
.vm-card ul li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 16.5px; }
.vm-card ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

.link-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.link-tile {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.link-tile:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.link-tile .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); color: var(--navy); }
.link-tile .icon svg { width: 22px; height: 22px; }
.link-tile h3 { font-size: 20px; margin: 0; }
.link-tile .link-arrow { margin-top: auto; }

/* ---------- Person cards ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.person-card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.person-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.avatar {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--navy), var(--sky)); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: .02em;
}
.person-card h3 { font-size: 17.5px; margin: 0; }
.person-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 12px; }
.person-card .link-arrow { margin-top: auto; font-size: 14px; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.value-card {
  position: relative; padding: clamp(26px, 3vw, 34px); border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s;
}
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.value-card .num {
  position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-weight: 800;
  font-size: 44px; line-height: 1; color: var(--bg-soft);
}
.value-card .icon {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--navy); color: #fff; margin-bottom: 22px;
}
.value-card .icon svg { width: 26px; height: 26px; }
.value-card h2 { font-size: 21px; margin-bottom: 10px; }
.value-card p { color: var(--muted); margin: 0; }

/* ---------- Profile (Founder & Key Persons) ---------- */
.role-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--navy);
}
.role-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }

.founder-intro { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(24px, 4vw, 48px); align-items: start; margin-bottom: clamp(36px, 5vw, 56px); }
.founder-intro p { font-size: 17px; color: #3b4250; }
.portrait { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-lg); }
.portrait img { width: 100%; }

.timeline { position: relative; margin: 0 0 8px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sky);
}
.timeline .when { display: block; font-family: var(--font-head); font-weight: 700; color: var(--sky); font-size: 14px; letter-spacing: .04em; margin-bottom: 4px; }
.timeline p { margin: 0; color: #3b4250; }

.degrees { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.degree { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--bg-soft); border-left: 3px solid var(--navy); }
.degree strong { display: block; font-family: var(--font-head); color: var(--navy-deep); font-size: 16.5px; margin-bottom: 4px; }
.degree span { display: block; color: var(--muted); font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }

.list-block > p { color: #3b4250; }
.list-block h3 { font-size: 17px; margin: 22px 0 12px; }
.olist { counter-reset: n; display: grid; gap: 10px; }
.olist--2 { grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.olist > li { counter-increment: n; position: relative; padding-left: 38px; line-height: 1.5; }
.olist > li::before {
  content: counter(n); position: absolute; left: 0; top: 0; min-width: 26px; height: 24px; padding: 0 6px;
  border-radius: 6px; background: var(--bg-soft); color: var(--navy); font-size: 12.5px; font-weight: 700;
  display: grid; place-items: center;
}
.olist .olist { margin-top: 12px; }
.callout { margin-top: 12px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.callout .olist > li::before { background: #fff; }

/* ---------- Gallery & lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery a {
  display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery--boards img { aspect-ratio: 9 / 10; object-fit: contain; background: #fff; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a::after {
  content: ""; position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2559' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0; transition: opacity .2s;
}
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; }
.gallery figcaption { padding: 10px 2px 0; font-weight: 600; font-size: 15px; color: var(--navy-deep); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(8, 11, 26, .92); padding: 56px 16px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 8px; background: #fff; }
.lightbox figcaption { color: #fff; margin-top: 14px; font-weight: 600; text-align: center; }
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Org chart ---------- */
.org { --c: var(--navy); }
.org-node {
  display: inline-block; padding: 12px 18px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--navy-deep); text-align: center;
}
.org-node--top { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; font-family: var(--font-head); font-size: 18px; padding: 14px 40px; }
.org-node--head { background: var(--navy); border-color: var(--navy); color: #fff; }
.org-node--sub { background: rgba(43, 143, 214, .1); border-color: rgba(43, 143, 214, .35); }
.org-root { display: flex; flex-direction: column; align-items: center; }
.org-root > .org-node--top { position: relative; margin-bottom: 36px; }
.org-root > .org-node--top::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 18px; background: var(--line); }
.org-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; align-items: start; width: 100%; position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.org-branch { display: flex; flex-direction: column; gap: 12px; }
.org-branch > .org-node { align-self: stretch; }
.org-branch:last-child { grid-column: 1 / -1; }
.org-children { display: flex; flex-direction: column; gap: 8px; padding-left: 18px; border-left: 2px solid var(--line); margin-left: 14px; }
.org-children .org-node { text-align: left; font-weight: 500; }
.org-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.org-sub > div { display: flex; flex-direction: column; gap: 10px; }
.org-note { margin-top: 28px; }

/* ---------- Projects ---------- */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 20px); }
.type-card {
  display: flex; flex-direction: column; gap: 16px; padding: 24px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s, border-color .25s;
}
.type-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.type-card .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(43, 143, 214, .12); color: var(--navy); }
.type-card .icon svg { width: 24px; height: 24px; }
.type-card h3 { font-size: 18px; margin: 0; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px); }
.showcase a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.showcase img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.showcase a:hover img { transform: scale(1.04); }
.work-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 20px; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.work-card:hover { color: var(--ink); box-shadow: var(--shadow); border-color: transparent; }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.work-card h3 { font-size: 18px; margin-bottom: 10px; }

/* ---------- Careers ---------- */
.banner-frame { margin: 0 0 clamp(28px, 4vw, 40px); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.banner-frame img { width: 100%; }
.notice {
  display: flex; align-items: center; gap: 20px; max-width: 640px; margin: 0 auto;
  padding: clamp(22px, 3vw, 30px); border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line);
}
.notice .icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.notice .icon svg { width: 26px; height: 26px; }
.notice p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 2.4vw, 24px); color: var(--navy-deep); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contact-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-rows li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-rows li:first-child { padding-top: 0; }
.contact-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-rows .icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(43, 143, 214, .12); color: var(--navy); }
.contact-rows .icon svg { width: 20px; height: 20px; }
.contact-rows strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-rows span, .contact-rows a { font-size: 17px; font-weight: 500; color: var(--navy-deep); word-break: break-word; }
.contact-rows a:hover { color: var(--sky); }
.map { min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tile { aspect-ratio: 4 / 3; }
}

@media (max-width: 1080px) {
  .people { grid-template-columns: repeat(2, 1fr); }
  .types { grid-template-columns: repeat(3, 1fr); }
  .org-branches { grid-template-columns: 1fr; border-top: 0; padding-top: 0; gap: 28px; }
  .org-root > .org-node--top::after { display: none; }
  .org-root > .org-node--top { margin-bottom: 24px; }
}

@media (max-width: 960px) {
  .side-nav .side-label { display: none; }
  .founder-intro { grid-template-columns: minmax(0, 1fr); }
  .founder-intro .portrait { max-width: 240px; order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .olist--2 { grid-template-columns: 1fr; }
  .link-tiles { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .types { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: grid; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    padding: 16px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 17px; border-radius: 0; }
  .nav-link:hover, .nav-link[aria-expanded="true"] { background: none; }
  .nav-link.is-current::after { display: none; }
  .dropdown {
    position: static; min-width: 0; border: 0; box-shadow: none; padding: 0 0 12px 8px;
    opacity: 1; visibility: inherit; transform: none; display: none;
  }
  .has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { display: none; }
  .nav-link[aria-expanded="true"] + .dropdown { display: block; }
  .nav-list > li.nav-cta-item { border: 0; padding-top: 20px; }
  .nav-cta { margin: 0; width: 100%; justify-content: center; padding: 16px; }

  .with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .side-nav { position: static; margin: 0 calc(var(--gutter) * -1); }
  .side-nav h2 { display: none; }
  .side-nav ul {
    display: flex; gap: 8px; overflow-x: auto; border: 0; padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }
  .side-nav ul::-webkit-scrollbar { display: none; }
  .side-nav a {
    margin: 0; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px;
    padding: 8px 16px; font-size: 14px; background: #fff;
  }
  .side-nav a[aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .disc-intro { grid-template-columns: minmax(0, 1fr); }
  .disc-figure { order: -1; }
  .row-split { grid-template-columns: minmax(0, 1fr); }
  .row-split:nth-child(even) .row-media { order: 0; }

  .hero-card { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-name { font-size: 14.5px; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-media { height: 240px; }
  .hero-media img { object-position: 0 center; }
  .hero-card { margin-top: -40px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 10; }
  .footer-main { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .disc-figure img { aspect-ratio: 16 / 10; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: auto; }
  .vm, .values, .people, .degrees, .link-tiles { grid-template-columns: 1fr; }
  .gallery, .gallery--2 { grid-template-columns: 1fr; }
  .org-sub { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .notice { flex-direction: column; text-align: center; }
  .map, .map iframe { min-height: 320px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}
