/* ============== Subsea100 site stylesheet ============== */
:root {
  --abyss: #050b15;
  --deep:  #0a1628;
  --hull:  #11233b;
  --slate: #2a3a52;
  --fog:   #b8c2d1;
  --ivory: #f4f1ea;
  --paper: #ebe5d8;
  --line:  #1d2c44;
  --glow:  oklch(0.78 0.14 200);
  --glow-ink: oklch(0.55 0.13 205);
  --brass: oklch(0.78 0.09 75);
  --serif: "Bricolage Grotesque", "Geist", -apple-system, sans-serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  "Geist Mono", ui-monospace, monospace;
  --pad-x: clamp(20px, 5vw, 80px);
  --max-w: 1280px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--abyss); color: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--glow); color: var(--abyss); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glow); }
.display { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.025em; }
.italic, .it { font-style: italic; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* ----- Nav ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px var(--pad-x); display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid {
  background: rgba(5,11,21,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.06);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand .mark {
  width: 46px; height: 36px;
  background: url('../assets/logo.png') left center/contain no-repeat;
  font-size: 0;
  color: transparent;
}
.nav-brand .word { display: none; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  padding: 7px 12px; font-size: 12px; letter-spacing: 0.02em; color: rgba(244,241,234,0.78);
  border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ivory); background: rgba(255,255,255,0.06); }
.nav-cta {
  padding: 8px 14px; font-size: 12px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--ivory); color: var(--abyss); border-color: var(--ivory); }
.nav-cta .dot { width: 6px; height: 6px; background: var(--glow); border-radius: 50%; box-shadow: 0 0 10px var(--glow); }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.18); color: var(--ivory); width: 36px; height: 36px; border-radius: 999px; font-size: 16px; cursor: pointer; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-size: 13px;
  border-radius: 999px; transition: all 0.25s ease; cursor: pointer; border: 1px solid transparent; font-family: var(--sans); font-weight: 500;
}
.btn-primary { background: var(--ivory); color: var(--abyss); }
.btn-primary:hover { background: var(--glow); color: var(--abyss); }
.btn-ghost { border-color: rgba(255,255,255,0.18); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--ivory); }
.btn-dark { background: var(--abyss); color: var(--ivory); }
.btn-dark:hover { background: var(--deep); }
.btn .arrow {
  width: 18px; height: 18px; border-radius: 50%; background: var(--abyss); color: var(--ivory);
  display: grid; place-items: center; font-size: 10px; transition: transform 0.25s;
}
.btn-ghost .arrow, .btn-dark .arrow { background: var(--ivory); color: var(--abyss); }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Section base ----- */
section { padding: 88px var(--pad-x); position: relative; }
.section-head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; margin-bottom: 56px; align-items: end; max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.section-head .left { display: flex; flex-direction: column; gap: 14px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -0.02em; }
.section-head .right p { font-size: 14px; line-height: 1.55; color: rgba(244,241,234,0.7); max-width: 480px; }
.section-head .index { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(244,241,234,0.4); }

/* ----- Page loader ----- */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 50%, #0e2138 0%, var(--abyss) 70%),
    var(--abyss);
  z-index: 9999;
  transition: opacity 0.6s ease 0.15s, visibility 0.6s ease 0.15s;
}
body .page-loader-inner {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
body .page-loader-inner .pl-logo {
  width: 80px; height: 56px;
  background: url('../assets/logo.png') center/contain no-repeat;
  animation: plPulse 1.8s ease-in-out infinite;
}
body .page-loader-inner .pl-ring {
  position: absolute;
  width: 170px; height: 170px;
  border-radius: 50%;
  border: 1.5px solid rgba(125,211,252,0.12);
  border-top-color: var(--glow);
  animation: plSpin 1.1s linear infinite;
  top: 50%; left: 50%;
  margin: -85px 0 0 -85px;
}
body .page-loader-inner .pl-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244,241,234,0.55);
  margin-top: 8px;
}
body .page-loader-inner .pl-label::after {
  content: '';
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: plDots 1.4s steps(4, end) infinite;
}
@keyframes plSpin { to { transform: rotate(360deg); } }
@keyframes plPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}
@keyframes plDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
}
body.loaded::before,
body.loaded .page-loader-inner {
  opacity: 0;
  visibility: hidden;
}
body::before { z-index: 9998; }
body .page-loader-inner { z-index: 10000; }
@media (prefers-reduced-motion: reduce) {
  body .page-loader-inner .pl-ring,
  body .page-loader-inner .pl-logo { animation: none; }
}
.page-hero {
  padding: 130px var(--pad-x) 60px;
  background: radial-gradient(120% 80% at 70% 20%, #0e2138 0%, var(--abyss) 70%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; position: relative; z-index: 2; }

/* ----- Hero bubbles (shared) ----- */
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%,
    rgba(255,255,255,0.55) 0%,
    rgba(125,211,252,0.18) 32%,
    rgba(125,211,252,0.04) 60%,
    rgba(125,211,252,0) 100%);
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.20),
    inset -2px -3px 8px rgba(10,22,40,0.22),
    0 0 14px rgba(125,211,252,0.10);
  border: 1px solid rgba(125,211,252,0.22);
  opacity: 0;
  animation: bubbleRise linear infinite;
  will-change: transform, opacity;
}
.bubble::after {
  content: "";
  position: absolute;
  top: 16%; left: 20%;
  width: 26%; height: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.75) 0%, rgba(255,255,255,0) 70%);
}
@keyframes bubbleRise {
  0%   { transform: translate3d(0, 0, 0) scale(0.85); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate3d(12px, -55vh, 0) scale(1); }
  92%  { opacity: 0.85; }
  100% { transform: translate3d(-8px, -110vh, 0) scale(1.05); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; opacity: 0.4; }
}
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 84px); line-height: 0.98; letter-spacing: -0.025em; }
.page-hero h1 .it { font-style: italic; color: var(--glow); }
.page-hero h1 .thin { color: rgba(244,241,234,0.45); }
.page-hero .lede { font-size: 15px; line-height: 1.55; color: rgba(244,241,234,0.78); max-width: 440px; margin-bottom: 10px; }
.page-hero .breadcrumbs {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244,241,234,0.55); margin-bottom: 24px; display: flex; gap: 12px; align-items: center;
}
.page-hero .breadcrumbs .sep { color: var(--glow); }

/* ----- Footer ----- */
footer { background: var(--abyss); border-top: 1px solid rgba(255,255,255,0.08); padding: 56px var(--pad-x) 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: -0.02em; }
.footer-brand h3 .it { font-style: italic; color: var(--glow); }
.footer-brand p { margin-top: 14px; font-size: 13px; line-height: 1.6; color: rgba(244,241,234,0.6); max-width: 320px; }
.footer-col h5 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(244,241,234,0.4); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a, .footer-col li { font-size: 13px; color: rgba(244,241,234,0.78); transition: color 0.2s; }
.footer-col a:hover { color: var(--glow); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,241,234,0.4); }
.footer-bottom .links { display: flex; gap: 22px; }

/* ----- CTA section (shared) ----- */
.cta { padding: 120px var(--pad-x) 110px; background: var(--abyss); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(125,211,252,0.08) 0%, transparent 60%); pointer-events: none; }
.cta-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5.4vw, 80px); line-height: 0.98; letter-spacing: -0.025em; }
.cta h2 .it { font-style: italic; color: var(--glow); }
.cta h2 .thin { color: rgba(244,241,234,0.4); }
.cta p { margin-top: 22px; font-size: 15px; color: rgba(244,241,234,0.7); max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.55; }
.cta-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* responsive */
@media (max-width: 980px) {
  :root { --pad-x: 20px; }
  .nav { padding: 14px 20px; }
  .nav-links { display: none; position: absolute; top: 60px; left: 16px; right: 16px; flex-direction: column; gap: 0; padding: 12px; background: rgba(10,22,40,0.96); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .nav-toggle { display: grid; place-items: center; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  section { padding: 64px 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta { padding: 80px 20px; }
}
