/* ==========================================================================
   Seaoffshore Engineering — Modern Redesign
   Deep ocean palette · Inter typeface · Glass + gradient
   ========================================================================== */

:root {
  --bg: #050b18;
  --bg-2: #0a1929;
  --surface: #0f223a;
  --surface-2: #14304f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e6edf6;
  --text-dim: #97a6bd;
  --text-mute: #6c7c95;
  --brand: #00d3ff;
  --brand-2: #5b8cff;
  --brand-3: #a98bff;
  --gradient: linear-gradient(135deg, #00d3ff 0%, #5b8cff 50%, #a98bff 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0,211,255,0.12), rgba(169,139,255,0.12));
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { color: var(--text-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--brand);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ====== NAVIGATION ====== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: all 0.35s ease;
  background: rgba(5, 11, 24, 0.55);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(5, 11, 24, 0.85);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 88px;
  width: auto;
  max-width: 400px;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 211, 255, 0.18));
  transition: filter 0.3s ease, transform 0.3s ease, height 0.3s ease;
}
.brand:hover .brand-logo { filter: drop-shadow(0 6px 18px rgba(0, 211, 255, 0.35)); transform: translateY(-1px); }
.nav.scrolled .brand-logo { height: 70px; }
.footer .brand-logo { height: 92px; max-width: 420px; }

@media (max-width: 720px) {
  .brand-logo { height: 60px; max-width: 240px; }
  .nav.scrolled .brand-logo { height: 52px; }
}

.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-links a.active { color: #fff; background: rgba(0, 211, 255, 0.08); }

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--gradient);
  color: #02101f !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(0, 211, 255, 0.45); }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(5, 11, 24, 0.97);
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a, .nav-cta { width: 100%; text-align: center; }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 180px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-position: center;
  background-size: cover;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0, 211, 255, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(169, 139, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(5, 11, 24, 0.65) 0%, rgba(5, 11, 24, 0.92) 100%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  opacity: 0.55;
}
.hero-content { max-width: 920px; }
.hero h1 { margin-bottom: 26px; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-dim);
  max-width: 720px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: #02101f;
  box-shadow: 0 14px 30px -10px rgba(0, 211, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(0, 211, 255, 0.6); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(0, 211, 255, 0.4); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat span { font-size: 0.88rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }

/* ====== SECTION SHELL ====== */
section { position: relative; }
.section { padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.06rem; margin-top: 18px; }

/* ====== SERVICES (cards) ====== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 211, 255, 0.35);
  box-shadow: var(--shadow-md);
}
.service-card .img-wrap {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.service-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .img-wrap img { transform: scale(1.06); }
.service-card .img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, var(--surface) 100%);
}
.service-card-body { padding: 26px 26px 30px; position: relative; }
.service-card-body h3 { margin-bottom: 12px; }
.service-card-body p { font-size: 0.95rem; color: var(--text-dim); }
.service-card-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(5, 11, 24, 0.7);
  color: var(--brand);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 211, 255, 0.2);
}

/* ====== FEATURES (What We Offer) ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.feature {
  padding: 36px 30px;
  background: linear-gradient(180deg, rgba(20, 48, 79, 0.45) 0%, rgba(15, 34, 58, 0.2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(0, 211, 255, 0.3); }
.feature:hover::before { transform: scaleX(1); }
.feature-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  display: block;
  letter-spacing: -0.04em;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 12px; line-height: 1.35; }
.feature p { font-size: 0.94rem; }

/* ====== ABOUT split ====== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split.reverse .split-text { order: 2; }
.split-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 11, 24, 0.55) 100%);
}
.split-img .badge {
  position: absolute;
  bottom: 22px; left: 22px;
  background: rgba(5, 11, 24, 0.85);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  font-size: 0.85rem;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.split-img .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0, 211, 255, 0.2); }
.split-text p { margin-bottom: 18px; font-size: 1.02rem; }

@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-text { order: initial; }
  .split-img { aspect-ratio: 16 / 11; }
}

/* ====== TIMELINE ====== */
.timeline {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 211, 255, 0.4) 10%, rgba(169, 139, 255, 0.4) 90%, transparent 100%);
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  width: 50%;
  padding: 22px 50px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.tl-item.in-view { opacity: 1; transform: translateY(0); }
.tl-item.left { left: 0; padding-right: 70px; text-align: right; }
.tl-item.right { left: 50%; padding-left: 70px; }

.tl-marker {
  position: absolute;
  top: 36px;
  width: 18px; height: 18px;
  background: var(--bg);
  border: 2px solid var(--brand);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(0, 211, 255, 0.12);
}
.tl-item.left .tl-marker { right: -9px; }
.tl-item.right .tl-marker { left: -9px; }

.tl-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: all 0.3s ease;
}
.tl-card:hover { border-color: rgba(0, 211, 255, 0.35); transform: translateY(-3px); }
.tl-year {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.tl-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.tl-card p { font-size: 0.95rem; line-height: 1.7; }
.tl-meta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 211, 255, 0.1);
  border: 1px solid rgba(0, 211, 255, 0.2);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 880px) {
  .timeline::before { left: 22px; }
  .tl-item, .tl-item.left, .tl-item.right {
    width: 100%;
    left: 0;
    padding: 14px 0 14px 56px;
    text-align: left;
  }
  .tl-item.left .tl-marker, .tl-item.right .tl-marker { left: 13px; right: auto; }
}

/* ====== PROJECTS TABLE ====== */
.projects-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.projects-table thead {
  background: linear-gradient(90deg, rgba(0, 211, 255, 0.08), rgba(169, 139, 255, 0.08));
}
.projects-table th {
  padding: 18px 22px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.projects-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  vertical-align: top;
}
.projects-table tr:last-child td { border-bottom: none; }
.projects-table tr:hover td { background: rgba(255, 255, 255, 0.02); color: var(--text); }
.projects-table td:first-child {
  width: 60px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--brand);
}
.projects-table td:nth-child(2) { color: #fff; font-weight: 500; }
.projects-table td:nth-child(3) {
  white-space: nowrap;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 720px) {
  .projects-table { font-size: 0.82rem; }
  .projects-table th, .projects-table td { padding: 12px 14px; }
}

/* ====== EXECUTIVE TEAM ====== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.exec-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.exec-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0, 211, 255, 0.12) 0%, transparent 60%);
  transform: translate(40%, -40%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0.5;
}
.exec-card:hover { transform: translateY(-4px); border-color: rgba(0, 211, 255, 0.3); }
.exec-card:hover::after { opacity: 1; }
.exec-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #02101f;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px -10px rgba(0, 211, 255, 0.4);
}
.exec-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.exec-role { color: var(--brand); font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.exec-loc { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; }
.exec-card { display: flex; flex-direction: column; }
.exec-teaser {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 22px;
  flex: 1;
}
.exec-open {
  background: rgba(0, 211, 255, 0.08);
  border: 1px solid rgba(0, 211, 255, 0.22);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: all 0.25s ease;
  position: relative;
  z-index: 2;
}
.exec-open:hover {
  background: rgba(0, 211, 255, 0.18);
  border-color: rgba(0, 211, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}
.exec-open svg, .exec-open span { transition: transform 0.25s ease; }
.exec-open:hover span { transform: translateX(3px); }

/* ====== EXEC BIO MODAL (uses native <dialog>) ====== */
/* Native <dialog> centering: top:0 + auto margins forces perfect viewport centering
   regardless of UA defaults, plus we add our own animation layer. */
.exec-modal {
  position: fixed;
  inset: 0;
  margin: auto;          /* center horizontally & vertically */
  border: none;
  padding: 0;
  background: transparent;
  max-width: 780px;
  width: min(92vw, 780px);
  max-height: 88vh;
  height: auto;
  color: var(--text);
  overflow: visible;
}
/* lock the page scroll while the dialog is open */
html:has(.exec-modal[open]) { overflow: hidden; }

/* Backdrop */
.exec-modal::backdrop {
  background: radial-gradient(ellipse at center, rgba(5, 14, 28, 0.55) 0%, rgba(2, 7, 16, 0.92) 100%);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  opacity: 0;
  animation: backdropFadeIn 0.35s ease forwards;
}
.exec-modal.is-closing::backdrop {
  animation: backdropFadeOut 0.3s ease forwards;
}
@keyframes backdropFadeIn { to { opacity: 1; } }
@keyframes backdropFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Panel enter / exit */
@keyframes modalIn {
  0%   { opacity: 0; transform: translateY(40px) scale(0.94); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes modalOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(20px) scale(0.97); }
}
.exec-modal[open] .modal-inner {
  animation: modalIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.exec-modal.is-closing .modal-inner {
  animation: modalOut 0.28s cubic-bezier(0.6, 0, 0.95, 0.45) forwards;
}

/* Staggered entrance for header pieces */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.exec-modal[open] .modal-head .exec-avatar { animation: fadeUp 0.5s 0.12s ease both; }
.exec-modal[open] .modal-head h3           { animation: fadeUp 0.5s 0.18s ease both; }
.exec-modal[open] .modal-head .exec-role   { animation: fadeUp 0.5s 0.22s ease both; }
.exec-modal[open] .modal-head .exec-loc    { animation: fadeUp 0.5s 0.26s ease both; }
.exec-modal[open] .modal-body              { animation: fadeUp 0.55s 0.30s ease both; }

.modal-inner {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 211, 255, 0.05);
}
.modal-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 211, 255, 0.6), transparent);
}
.modal-inner::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse at top right, rgba(0, 211, 255, 0.08), transparent 65%);
  pointer-events: none;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 4;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(5, 11, 24, 0.75);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.modal-close:hover, .modal-close:focus-visible {
  border-color: rgba(0, 211, 255, 0.5);
  color: var(--brand);
  transform: rotate(90deg);
  outline: none;
}
.modal-head {
  padding: 44px 48px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.modal-head .exec-avatar {
  width: 84px; height: 84px;
  font-size: 1.9rem;
  margin-bottom: 0;
  flex-shrink: 0;
  box-shadow: 0 14px 30px -10px rgba(0, 211, 255, 0.5);
}
.modal-head h3 { font-size: 1.6rem; margin-bottom: 6px; line-height: 1.2; }
.modal-head .exec-role { color: var(--brand); font-size: 0.95rem; font-weight: 500; margin-bottom: 4px; }
.modal-head .exec-loc { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0; }
.modal-body {
  padding: 32px 48px 42px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 211, 255, 0.3) transparent;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
}
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(0, 211, 255, 0.3); border-radius: 3px; }
.modal-body p { font-size: 1rem; line-height: 1.78; margin-bottom: 14px; color: var(--text-dim); }
.modal-body p:last-child { margin-bottom: 0; }

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 720px) {
  .exec-modal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;     /* dynamic viewport height — handles mobile address bar */
    height: 100dvh;
    margin: 0;
    inset: auto 0 0 0;       /* slide up from bottom on mobile */
  }
  .modal-inner {
    border-radius: 22px 22px 0 0;
    max-height: 100dvh;
    height: 100dvh;
  }
  .modal-inner::before { left: 24px; right: 24px; }
  .modal-close {
    width: 44px; height: 44px;
    top: 12px; right: 12px;
    font-size: 1.5rem;
  }
  .modal-head {
    padding: 32px 22px 22px;
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .modal-head h3 { font-size: 1.3rem; }
  .modal-head .exec-avatar { width: 72px; height: 72px; font-size: 1.6rem; }
  .modal-body { padding: 24px 22px 36px; }
  .modal-body p { font-size: 0.96rem; line-height: 1.7; }

  /* On mobile, the entrance is a smooth slide-up rather than scale */
  @keyframes modalIn {
    0%   { opacity: 0; transform: translateY(100%); }
    100% { opacity: 1; transform: translateY(0); }
  }
  @keyframes modalOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(100%); }
  }
  .exec-modal[open] .modal-inner { animation: modalIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .exec-modal.is-closing .modal-inner { animation: modalOut 0.32s cubic-bezier(0.55, 0, 0.85, 0.35) forwards; }
}

/* Reduced-motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
  .exec-modal::backdrop,
  .exec-modal[open] .modal-inner,
  .exec-modal[open] .modal-head .exec-avatar,
  .exec-modal[open] .modal-head h3,
  .exec-modal[open] .modal-head .exec-role,
  .exec-modal[open] .modal-head .exec-loc,
  .exec-modal[open] .modal-body,
  .exec-modal.is-closing .modal-inner,
  .exec-modal.is-closing::backdrop {
    animation: none !important;
    transition: opacity 0.15s ease;
  }
}

/* ====== SERVICES PAGE GRID ====== */
.svc-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.svc-block {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.svc-block:hover { transform: translateY(-4px); border-color: rgba(0, 211, 255, 0.3); }
.svc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(0, 211, 255, 0.18);
  display: grid; place-items: center;
  color: var(--brand);
  margin-bottom: 22px;
  font-size: 1.5rem;
}
.svc-block h3 { font-size: 1.25rem; margin-bottom: 18px; }
.svc-block ul { list-style: none; }
.svc-block li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
}
.svc-block li:last-child { border-bottom: none; }
.svc-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(0, 211, 255, 0.12);
  border: 1px solid rgba(0, 211, 255, 0.4);
}
.svc-block li::after {
  content: "";
  position: absolute;
  left: 4px; top: 22px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ====== CONTACT ====== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.office-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
}
.office-card:hover { transform: translateY(-4px); border-color: rgba(0, 211, 255, 0.3); }
.office-card .city-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 10px;
}
.office-card h3 { font-size: 1.55rem; margin-bottom: 20px; }
.office-card .office-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.office-card .office-row:first-of-type { border-top: none; padding-top: 0; }
.office-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(0, 211, 255, 0.1);
  color: var(--brand);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.office-row strong { display: block; color: #fff; margin-bottom: 4px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.office-row span, .office-row a { color: var(--text-dim); line-height: 1.6; }
.office-row a:hover { color: var(--brand); }

/* ====== CTA BAND ====== */
.cta-band {
  margin: 60px auto 0;
  max-width: var(--container);
  padding: 60px 50px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top left, rgba(0, 211, 255, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(169, 139, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 620px; margin: 0 auto 28px; }

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 70px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand p {
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 340px;
}
.footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer p, .footer a { font-size: 0.92rem; color: var(--text-dim); line-height: 1.6; }
.footer a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-mute);
}
.footer-links { display: flex; gap: 22px; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ====== Page Header (sub-pages) ====== */
.page-header {
  position: relative;
  padding: 170px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.page-header .hero-bg::after {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(0, 211, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(5, 11, 24, 0.7) 0%, rgba(5, 11, 24, 0.95) 100%);
}
.page-header h1 { margin-bottom: 18px; }
.page-header p { font-size: 1.1rem; max-width: 720px; }

/* ====== Animations ====== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float { animation: float 5s ease-in-out infinite; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 211, 255, 0.3); }

/* Selection */
::selection { background: rgba(0, 211, 255, 0.35); color: #fff; }
