/* ============================================================
   IDEA-NOVA — Shared Brand System
   Palette: warm off-white · deep navy/anthracite · champagne gold
   Type:    Spectral (display serif) · Inter Tight (sans) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  /* Ink / Navy */
  --ink:        #16203a;   /* deep navy — headings, text */
  --ink-2:      #1d2a4a;
  --navy:       #142544;
  --navy-deep:  #101a31;
  --navy-panel: #16223f;
  --anthracite: #20242f;

  /* Accents */
  --gold:       #b48a4e;   /* champagne gold — refined, not brassy */
  --gold-soft:  #c2a06a;
  --gold-wash:  #f3ecdf;
  --platinum:   #8a93a3;   /* cool secondary neutral */

  /* Paper / surfaces (warm, low saturation) */
  --paper:      #f7f5f0;   /* page background */
  --paper-2:    #efece3;   /* alt section */
  --paper-3:    #e9e5da;
  --card:       #fffefb;   /* raised cards */
  --white:      #ffffff;

  /* Text */
  --text:       #1a2236;
  --muted:      #5d6373;
  --muted-2:    #8a8f9c;
  --on-dark:    #eef1f6;
  --on-dark-mut:#9aa3b5;

  /* Lines */
  --line:       rgba(22, 32, 58, 0.12);
  --line-soft:  rgba(22, 32, 58, 0.07);
  --line-dark:  rgba(255, 255, 255, 0.12);

  /* Feedback */
  --error:      #b04a3d;
  --error-wash: rgba(176, 74, 61, 0.10);

  /* Type families */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans:  "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: #fff; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow.muted { color: var(--muted-2); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 14px 30px -16px rgba(22,32,58,.6); }

.btn-gold { background: var(--gold); color: #fff; border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-soft); box-shadow: 0 14px 30px -14px rgba(180,138,78,.6); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(22,32,58,.03); }

.btn-link { padding: 0; gap: .5em; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--gold); border-radius: 0; padding-bottom: 2px; }
.btn-link:hover { color: var(--gold); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: 34px; height: auto; color: currentColor; flex: none; }
.logo-mark .diag { stroke: var(--gold); }
.logo-word {
  font-family: var(--serif); font-weight: 500; font-size: 21px;
  letter-spacing: 0.04em; line-height: 1; color: currentColor;
}
.logo-word .dot { color: var(--gold); }
.logo-word .thin { font-weight: 300; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.reveal-instant { transition: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Image placeholder ---------- */
.ph {
  position: relative;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, rgba(22,32,58,.045) 0 1px, transparent 1px 11px);
  border: 1px solid var(--line-soft);
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin: 14px; max-width: 70%;
}
.ph.dark { background-color: rgba(255,255,255,.04); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 1px, transparent 1px 11px); border-color: var(--line-dark); }
.ph.dark::after { color: var(--on-dark-mut); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--text);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px; width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,138,78,.12); }
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Generic divider tick ---------- */
.tick { width: 38px; height: 2px; background: var(--gold); border: none; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 4px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Form validation (custom messages) ---------- */
.field-error {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; line-height: 1.45;
  color: var(--error); display: flex; gap: 7px; align-items: flex-start;
}
.field-error::before {
  content: "!"; flex: none; width: 15px; height: 15px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--error); border-radius: 50%; font-size: 10px; font-weight: 600; line-height: 1;
}
.field.has-error input, .field.has-error textarea, .field.has-error select {
  border: 1px solid var(--error); box-shadow: 0 0 0 3px var(--error-wash); transition: none;
}
.consent.has-error input { outline: 2px solid var(--error); outline-offset: 2px; }
.consent-error { margin-top: 4px; }
