/* ============================================================
   Cuisle Intelligence — design system
   Palette: Deep Navy / Slate / Muted Green / Off-white
   Type:    Source Serif 4 (display) + Hanken Grotesk (text)
   ============================================================ */

:root {
  /* brand */
  --navy:      #0F1D2D;
  --navy-700:  #16273a;
  --navy-600:  #1d3144;
  --slate:     #6B7280;
  --green:     #6D8F6A;
  --green-700: #587a55;
  --paper:     #F6F7F4;
  --paper-2:   #EEF0EA;
  --white:     #FCFCFB;

  /* roles */
  --ink:       #16242F;     /* primary text on light */
  --ink-soft:  #3C4956;     /* secondary text on light */
  --muted:     #6B7280;     /* slate / labels */
  --line:      rgba(15, 29, 45, 0.12);
  --line-soft: rgba(15, 29, 45, 0.07);
  --line-dark: rgba(255, 255, 255, 0.14);
  --on-dark:   #E7EAE6;
  --on-dark-soft: rgba(231, 234, 230, 0.62);

  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* rhythm */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 148px);

  /* shadows — whisper-soft */
  --shadow-sm: 0 1px 2px rgba(15, 29, 45, 0.04);
  --shadow-card: 0 1px 0 rgba(15,29,45,0.04), 0 18px 40px -28px rgba(15, 29, 45, 0.30);
  --shadow-pop: 0 24px 60px -30px rgba(15, 29, 45, 0.45);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 640px) { body { font-size: 16.5px; } }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

/* ---------- eyebrow label ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--on-dark-soft); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 247, 244, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
/* over the dark hero: transparent bar, light text, green CTA */
.site-header.on-hero { background: transparent; border-bottom-color: transparent; }
.site-header.on-hero .logo { color: #fff; }
.site-header.on-hero .logo .word { color: #fff; }
.site-header.on-hero .logo .sub { color: var(--on-dark-soft); }
.site-header.on-hero .nav-links a { color: var(--on-dark-soft); }
.site-header.on-hero .nav-links a:hover { color: #fff; }
.site-header.on-hero .btn-primary { background: var(--green); color: var(--navy); }
.site-header.on-hero .btn-primary:hover { background: #7c9d79; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- logo lockup ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.logo .mark { width: 38px; height: 38px; flex: none; }
.logo .wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo .word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.logo .sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.34em;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 3px;
}
.logo.on-dark { color: #fff; }
.logo.on-dark .word { color: #fff; }
.logo.on-dark .sub { color: var(--on-dark-soft); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-700); box-shadow: 0 12px 24px -14px rgba(15,29,45,.6); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); background: rgba(15,29,45,0.03); }
.btn .arrow { transition: transform .22s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn.on-dark.btn-primary { background: var(--green); color: var(--navy); }
.btn.on-dark.btn-primary:hover { background: #7c9d79; }
.btn.on-dark.btn-ghost { color: var(--on-dark); border-color: var(--line-dark); }
.btn.on-dark.btn-ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,0.05); }

/* hero ghost (light outline over dark hero) */
.btn-hero-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: var(--line-dark);
}
.btn-hero-ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,0.05); }

/* link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--green-700);
}
.link-arrow .arrow { transition: transform .22s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-dark);
  overflow: hidden;
  padding-top: clamp(150px, 19vw, 210px);
  padding-bottom: clamp(20px, 4vw, 44px);
  text-align: center;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 75% at 50% 0%, #000 0%, transparent 70%);
  opacity: .6;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -28%; left: 50%; transform: translateX(-50%);
  width: 90%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(109,143,106,.22), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 1000px; margin-inline: auto; }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.1rem);
  font-weight: 500;
  line-height: 1.0;
  color: #fff;
}
.hero h1 .accent { font-style: italic; color: var(--green); }
.hero .sub {
  margin-top: 26px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--on-dark-soft);
  max-width: 60ch;
  font-weight: 400;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.hero .btn-primary { background: var(--green); color: var(--navy); }
.hero .btn-primary:hover { background: #7c9d79; box-shadow: 0 14px 30px -16px rgba(109,143,106,.7); }

/* ---------- on-the-name band ---------- */
.nameband {
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  text-align: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.nameband .wrap { max-width: 760px; }
.name-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.3;
  color: var(--navy);
  margin-top: 20px;
  text-wrap: pretty;
}
.name-line .cu { font-style: normal; color: var(--green-700); }
.name-sub {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta { display: none; }

/* live ECG monitor */
.monitor {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
}
.monitor-frame {
  position: relative;
  height: clamp(150px, 17vw, 200px);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.monitor-frame svg {
  width: 100%; height: 100%; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.pulse-base { stroke: rgba(231,234,230,.13); stroke-width: 1; fill: none; }
.pulse-trace {
  stroke: var(--green); stroke-width: 2.6; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(109,143,106,.7));
}
.pulse-track { animation: pulse-scroll 7s linear infinite; }
@keyframes pulse-scroll { from { transform: translateX(0); } to { transform: translateX(-440px); } }

.monitor-lab {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  background: var(--navy);
  padding: 6px 0;
  z-index: 2;
}
.monitor-lab.l { left: 0; }
.monitor-lab.r { right: 0; color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .pulse-track { animation: none; }
}

/* ============================================================
   Problem
   ============================================================ */
.problem { background: var(--paper); border-top: 1px solid var(--line-soft); }
.problem-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 880px) { .problem-grid { grid-template-columns: 1fr; gap: 40px; } }
.problem h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
}
.problem h2 em { font-style: italic; color: var(--green-700); }
.problem .lede {
  margin-top: 24px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 30ch;
}
.frictions {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.friction {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.friction .fnum {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  min-width: 26px;
  font-variant-numeric: tabular-nums;
}
.friction .ftext { font-size: 1.06rem; color: var(--ink); }
.friction .ftext b { font-weight: 600; }
.friction .ftext span { color: var(--muted); }

/* ============================================================
   What we build
   ============================================================ */
.build { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
.build-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 60px);
}
.build-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 500;
  max-width: 16ch;
  margin-top: 18px;
}
.build-head .head-note {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 30ch;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.bcard {
  background: var(--white);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 2.6vw, 34px) clamp(30px, 3.4vw, 40px);
  position: relative;
  transition: background .25s ease;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}
.bcard:hover { background: #fff; }
.bcard .bnum {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bcard .bicon { margin-top: 18px; color: var(--navy); }
.bcard h3 {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 500;
  margin-top: 16px;
  letter-spacing: -0.01em;
}
.bcard p {
  margin-top: 10px;
  font-size: 0.99rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.bcard .bspark {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 0;
  background: var(--green);
  transition: width .4s cubic-bezier(.2,.7,.2,1);
}
.bcard:hover .bspark { width: 100%; }
.bcard:hover .bicon { color: var(--green-700); }

/* ============================================================
   Meridian (dark)
   ============================================================ */
.meridian {
  background: var(--navy);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.meridian::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(100% 60% at 80% 0%, #000, transparent 70%);
          mask-image: radial-gradient(100% 60% at 80% 0%, #000, transparent 70%);
  pointer-events: none;
}
.meridian .wrap { position: relative; }
.meridian-head { max-width: 760px; }
.meridian-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.meridian-brand .mark { width: 52px; height: 52px; flex: none; color: #fff; }
.meridian-brand .mwm {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.015em;
}
.meridian h2 {
  color: var(--on-dark);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 500;
  margin-top: 22px;
  line-height: 1.18;
  max-width: 22ch;
}
.meridian h2 em { font-style: italic; color: var(--green); }
.meridian .mpara {
  margin-top: 20px;
  color: var(--on-dark-soft);
  font-size: 1.08rem;
  max-width: 56ch;
  line-height: 1.6;
}

/* flow */
.flow {
  margin-top: clamp(46px, 6vw, 72px);
}
.flow-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 980px) {
  .flow-track { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
}
@media (max-width: 620px) {
  .flow-track { grid-template-columns: repeat(2, 1fr); }
}
.fstep {
  position: relative;
  padding: 18px 14px 0;
  text-align: left;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-family: inherit;
  border-top: 1px solid var(--line-dark);
  transition: border-color .25s ease;
}
.fstep::after {
  content: "";
  position: absolute;
  top: -4.5px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid var(--on-dark-soft);
  transition: all .25s ease;
}
.fstep.active { border-top-color: var(--green); }
.fstep.active::after { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px rgba(109,143,106,.25); }
.fstep .fk {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--on-dark-soft);
  font-variant-numeric: tabular-nums;
}
.fstep .ft {
  display: block;
  margin-top: 9px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--on-dark);
  line-height: 1.25;
}
.fstep.active .fk { color: var(--green); }
.fstep:hover .ft { color: #fff; }

.flow-detail {
  margin-top: 30px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.025);
  padding: clamp(26px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
  min-height: 150px;
}
@media (max-width: 620px) { .flow-detail { grid-template-columns: 1fr; gap: 16px; } }
.flow-detail .fd-index {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 500;
  color: var(--green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.flow-detail .fd-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}
.flow-detail .fd-body {
  margin-top: 10px;
  color: var(--on-dark-soft);
  font-size: 1.04rem;
  line-height: 1.55;
  max-width: 60ch;
}
.flow-detail .fd-io {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.io-chip {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 5px 12px;
}
.io-chip b { color: var(--green); font-weight: 600; margin-right: 5px; }
.meridian-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Closing CTA
   ============================================================ */
.closing { background: var(--paper); text-align: center; }
.closing .wrap { max-width: 860px; }
.closing h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
}
.closing h2 em { font-style: italic; color: var(--green-700); }
.closing p { margin-top: 22px; color: var(--ink-soft); font-size: 1.12rem; }
.closing .cta-row { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: var(--on-dark-soft);
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-tag {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 500;
  max-width: 22ch;
  margin-top: 18px;
  line-height: 1.25;
}
.footer-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.fcol h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 16px;
}
.fcol a { display: block; color: var(--on-dark); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.fcol a:hover { color: var(--green); }
.fcol .fname { display: block; color: var(--on-dark); font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--on-dark-soft);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
/* failsafe: force resting-visible state regardless of transition/throttle state */
.reveal-done .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Contact modal
   ============================================================ */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
}
.contact-overlay[hidden] { display: none; }
.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 45, 0.52);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: cfade .25s ease;
}
.contact-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  padding: clamp(28px, 4vw, 44px);
  animation: cpop .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes cfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cpop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.contact-x {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.contact-x:hover { background: var(--paper-2); color: var(--navy); border-color: var(--navy); }
.contact-dialog h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 500;
  margin-top: 16px;
  max-width: 16ch;
}
.contact-intro {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
}
.contact-intro a { color: var(--green-700); font-weight: 600; }
.contact-intro a:hover { text-decoration: underline; }
.contact-form {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}
.cfield { display: grid; gap: 7px; }
.cfield label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.cfield label .opt { color: var(--muted); font-weight: 500; }
.cfield input,
.cfield textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.cfield input:focus,
.cfield textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(109,143,106,.18);
}
.contact-submit { margin-top: 4px; justify-content: center; }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-fineprint {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 2px;
}
.contact-success {
  padding: clamp(24px, 4vw, 40px) 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--green-700);
  text-align: center;
}

/* ============================================================
   Booking
   ============================================================ */
.booking {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
}
.booking-head {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}
.booking-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 500;
  margin-top: 18px;
}
.booking-head p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}
.booking-cta {
  margin-top: clamp(32px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.btn-lg {
  font-size: 1.05rem;
  padding: 16px 32px;
}
.booking-note {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
