/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --bg:       #F5F1EC;
  --surface:  #EDE8DF;
  --edge:     #D4CEC3;
  --edge-dim: #E4DFD8;
  --text:     #1C1816;
  --body:     #5C5048;
  --muted:    #8A8070;
  --signal:   #C49A3C;
  --sig-light:#F5E8C8;
  --sig-mid:  #8A6820;
  --sig-deep: #3A2808;
  --void:     #1C1816;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); min-height: 100vh; font-family: 'IBM Plex Sans', sans-serif; }
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 2px; }
::selection { background: var(--sig-light); color: var(--sig-deep); }

/* ── UTILITY ─────────────────────────────────────────────────────────────── */
.signal-text { color: var(--signal); }
.text-muted  { color: var(--muted); font-weight: 300; }
em           { font-style: italic; color: var(--signal); }

/* ── FADE ────────────────────────────────────────────────────────────────── */
.fade     { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.fade.visible { opacity: 1; transform: none; }
.pipe-row { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1s ease; }
.pipe-row.visible { opacity: 1; transform: none; }

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes heroIn { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes popIn  { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 52px;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
#nav.scrolled {
  background: rgba(245,241,236,0.94);
  backdrop-filter: blur(12px);
  border-color: var(--edge);
}
.nav-wordmark {
  background: none; border: none; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; color: var(--muted); transition: color 0.22s;
}
.nav-link {
  background: none; border: none; cursor: pointer;
  font-family: 'IBM Plex Mono', monospace; font-size: 9px;
  letter-spacing: 0.18em; color: var(--muted); transition: color 0.22s;
}
.nav-wordmark:hover, .nav-link:hover { color: var(--text); }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 52px clamp(24px, 6vw, 72px) 60px;
  max-width: 960px; margin: 0 auto;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center; width: 100%;
}
.hero-in { animation: heroIn 1s ease 0.3s both; }

.eyebrow, .section-eyebrow {
  display: block; font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.hero .eyebrow { color: var(--signal); margin-bottom: 32px; }

h1 {
  font-family: 'Spectral', serif; font-weight: 200;
  font-size: clamp(36px, 5.5vw, 68px); line-height: 1.08;
  letter-spacing: -0.025em; color: var(--text);
}
.hero-rule {
  width: 1px; height: clamp(160px, 20vw, 280px);
  background: var(--signal); opacity: 0.35; justify-self: center;
}
.hero-right p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(14px, 1.3vw, 16px); line-height: 1.88;
  color: var(--body); margin-bottom: 20px;
}
.hero-bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.hero-bullet  { display: flex; gap: 12px; align-items: center; }
.bullet-dot   { width: 4px; height: 4px; background: var(--signal); border-radius: 50%; flex-shrink: 0; }
.hero-bullet span { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-rule { display: none; }
  .hero { padding-top: 80px; }
}

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.section       { padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 72px); }
.section-inner { padding-top: 0; }
.section-enquire { padding-bottom: clamp(80px, 12vw, 140px); }
.wrap-wide     { max-width: 960px; margin: 0 auto; }
.full-rule     { width: 100%; height: 1px; border: none; background: var(--edge); max-width: 960px; margin: 0 auto; }

/* ── SECTION RULE ────────────────────────────────────────────────────────── */
.section-rule { width: 32px; height: 1px; background: var(--signal); opacity: 0.5; margin: 0 auto clamp(56px, 8vw, 100px); }

/* ── HEADINGS ────────────────────────────────────────────────────────────── */
h2 {
  font-family: 'Spectral', serif; font-weight: 300;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.18;
  letter-spacing: -0.015em; color: var(--text);
  margin-bottom: clamp(32px, 5vw, 56px);
}
h2 em { font-style: italic; color: inherit; }
h2 .text-muted { color: var(--muted); }

p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(14px, 1.3vw, 16px); line-height: 1.88; color: var(--body);
  margin-bottom: 22px;
}
p:last-child { margin-bottom: 0; }

.section-intro { max-width: 620px; margin-bottom: clamp(40px, 6vw, 72px); }

/* ── PIPELINE ────────────────────────────────────────────────────────────── */
.pipe-row {
  display: grid; grid-template-columns: clamp(160px, 22%, 220px) 1px 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--edge);
  align-items: start;
}
.pipe-left   { padding-top: 2px; }
.pipe-divider{ width: 1px; background: var(--edge); align-self: stretch; }

.stage-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal);
  margin-bottom: 12px;
}
.status-badge {
  display: inline-block; font-family: 'IBM Plex Mono', monospace;
  font-size: 8px; letter-spacing: 0.12em;
  color: var(--sig-mid); background: var(--sig-light);
  padding: 3px 8px; border: 1px solid var(--sig-light);
}
.status-internal { color: var(--muted); background: var(--edge-dim); border-color: var(--edge); }

.pipe-right h3 {
  font-family: 'Spectral', serif; font-weight: 400;
  font-size: clamp(17px, 1.8vw, 21px); color: var(--text);
  line-height: 1.3; margin-bottom: 14px;
}
.pipe-right p { font-size: 14px; }
.pipe-right em { font-style: italic; color: var(--signal); }

.output-row { border-top: 1px solid var(--edge); }
.output-text {
  font-family: 'Spectral', serif; font-weight: 300; font-style: italic;
  font-size: clamp(17px, 2vw, 22px); color: var(--text); line-height: 1.4; margin-bottom: 0;
}

@media (max-width: 620px) {
  .pipe-row { grid-template-columns: 1fr; }
  .pipe-divider { display: none; }
}

/* ── PARTNERSHIP ROWS ────────────────────────────────────────────────────── */
.partner-row {
  display: grid; grid-template-columns: clamp(160px, 22%, 220px) 1px 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 40px) 0; border-top: 1px solid var(--edge);
  align-items: start;
}
.partner-type {
  font-family: 'Spectral', serif; font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400; font-style: italic; color: var(--signal);
  padding-top: 2px; line-height: 1.3;
}
.partner-divider { width: 1px; background: var(--edge); align-self: stretch; }
.partner-row p   { font-size: 14px; }

@media (max-width: 620px) {
  .partner-row { grid-template-columns: 1fr; }
  .partner-divider { display: none; }
}

/* ── INVITATION ──────────────────────────────────────────────────────────── */
.invitation-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.quote-block {
  border-left: 3px solid var(--signal);
  padding-left: clamp(20px, 3vw, 32px);
}
.quote-text {
  font-family: 'Spectral', serif; font-weight: 200; font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px); line-height: 1.3;
  color: var(--text); margin-bottom: 24px;
}
.quote-note {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 12px;
  color: var(--muted); line-height: 1.6;
}

/* ── FORM ────────────────────────────────────────────────────────────────── */
.enquire-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-col     { display: flex; flex-direction: column; gap: 0; }
.form-field   { margin-bottom: 16px; }

.flabel {
  display: block; font-family: 'IBM Plex Mono', monospace;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field {
  display: block; width: 100%;
  background: var(--surface); border: 1px solid var(--edge);
  color: var(--text); padding: 12px 16px; resize: none;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 14px;
  outline: none; border-radius: 0; transition: border-color 0.22s;
}
.field:focus     { border-color: var(--signal); }
.field::placeholder { color: #B8B0A0; }
textarea.field   { resize: vertical; }
.field-note  { font-family: 'IBM Plex Mono', monospace; font-size: 9px; color: var(--muted); letter-spacing: 0.08em; margin-top: 8px; }
.form-note   { font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 14px; }

.submit-btn      { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.18em; padding: 15px 32px; border: none; transition: background 0.25s, color 0.25s; }
.submit-disabled { background: var(--edge); color: var(--muted); cursor: not-allowed; }
.submit-active   { background: var(--signal); color: #FFFFFF; cursor: pointer; }

/* ── FORM SUCCESS ────────────────────────────────────────────────────────── */
.form-success {
  border-left: 3px solid var(--signal);
  padding: 0 0 0 clamp(20px, 3vw, 40px);
  animation: popIn 0.65s ease both; max-width: 520px;
}
.success-label { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.22em; color: var(--signal); margin-bottom: 16px; text-transform: uppercase; }
.form-success h3 { font-family: 'Spectral', serif; font-size: clamp(20px, 2.5vw, 28px); font-weight: 300; color: var(--text); margin-bottom: 18px; }
.form-success p  { font-size: 14px; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--edge); }
.footer-inner {
  max-width: 960px; margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 6vw, 72px);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end; gap: 24px;
}
.footer-wordmark { font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 10px; }
.footer-desc     { font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; color: var(--muted); line-height: 1.7; }
.footer-link     { color: var(--signal); text-decoration: none; border-bottom: 1px solid var(--sig-light); transition: border-color 0.2s; padding-bottom: 1px; }
.footer-link:hover { border-color: var(--signal); }
.footer-tagline  { font-family: 'Spectral', serif; font-size: 13px; font-style: italic; color: var(--muted); text-align: right; line-height: 1.9; }
