/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--subtle); }

/* ─── LAYOUT ─── */
.wrap {
  max-width: min(1400px, 96vw);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 56px);
}
.wrap-sm { max-width: min(900px, 96vw); width: 100%; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }
.wrap-lg { max-width: min(1600px, 98vw); width: 100%; margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 64px); }

.sec    { padding: clamp(48px, 7vw, 96px) 0; }
.sec-sm { padding: 64px 0; }

/* ─── PAGE SYSTEM ─── */
.pg { display: none; width: 100%; }
.pg.on {
  display: block;
  animation: pgFade .32s cubic-bezier(.4,0,.2,1) both;
}
@keyframes pgFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── TYPOGRAPHY ─── */
.font-display { font-family: 'Playfair Display', Georgia, serif; }

.h-display {
  font-family: 'Playfair Display', sans-serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.015em;
}
.h-xl {
  font-family: 'Playfair Display', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.01em;
}
.h-lg {
  font-family: 'Playfair Display', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.008em;
}
.h-md {
  font-family: 'Playfair Display', sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}
.lead    { font-size: clamp(15px, 1.5vw, 17px); color: var(--body); line-height: 1.8; }
.body-lg { font-size: 15px; color: var(--body); line-height: 1.85; }
.caption { font-size: 13px; color: var(--muted); line-height: 1.6; }
.mono    { font-family: 'JetBrains Mono', monospace; }
.accent  { color: var(--teal); }
.accent-g { color: var(--gold); }

/* Eyebrow label */
.ey {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.ey::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Divider */
.div { height: 1px; background: var(--border); margin: 48px 0; }
.div-strong { height: 2px; background: linear-gradient(90deg, var(--teal), transparent); margin: 48px 0; }

/* ─── PAGE HEADER (dark) ─── */
.pg-header {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #0A2A1E 100%);
  padding: 112px 0 72px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pg-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 110%, rgba(13,158,117,.22) 0%, transparent 70%);
  pointer-events: none;
}
.pg-header .ey    { color: rgba(255,255,255,.55); }
.pg-header .ey::before { background: rgba(255,255,255,.35); }
.pg-header .h-xl  { color: #fff; }
.pg-header .lead  { color: rgba(255,255,255,.72); margin-top: 16px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .wrap, .wrap-sm { padding: 0 18px; }
  .sec-sm { padding: 48px 0; }
  .pg-header { padding: 90px 0 56px; }
}

/* Ultra-wide */
@media (min-width: 1600px) {
  .wrap    { max-width: min(1500px, 94vw); }
  .wrap-lg { max-width: min(1700px, 97vw); }
  body { font-size: 15.5px; }
}
@media (min-width: 2000px) {
  .wrap { max-width: min(1700px, 90vw); }
  body { font-size: 16px; }
}
