/* Nouvre — refined executive direction: porcelain base, navy ink, bronze accent */
:root {
  --bg: #fbfaf8;
  --bg-panel: #f4f2ee;
  --ink: oklch(0.23 0.025 262);
  --ink-soft: oklch(0.42 0.025 262);
  --ink-faint: oklch(0.6 0.02 262);
  --line: #e7e4de;
  --navy-1: oklch(0.26 0.05 260);
  --navy-2: oklch(0.17 0.04 272);
  --accent: oklch(0.48 0.13 255);
  --accent-ink: oklch(0.42 0.12 255);
  --accent-soft: oklch(0.95 0.02 255);
  --bronze: oklch(0.55 0.11 65);
  --grain: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  --radius: 6px;
  --shadow-card: 0 1px 2px oklch(0.25 0.03 262 / 0.05), 0 16px 40px -20px oklch(0.25 0.03 262 / 0.18);
  --font-head: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, white);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-block; color: #fff !important; white-space: nowrap;
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2));
  padding: 8px 16px; border-radius: var(--radius); font-weight: 600;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.12);
}
.nav-cta:hover { filter: brightness(1.18); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(58% 72% at 60% 4%, oklch(0.87 0.06 252 / 0.95), transparent 66%),
    radial-gradient(42% 58% at 36% 30%, oklch(0.88 0.055 295 / 0.6), transparent 66%),
    radial-gradient(52% 64% at 14% 108%, oklch(0.89 0.055 72 / 0.75), transparent 62%),
    linear-gradient(180deg, #fbfaf8 0%, #f2f0ea 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: 0.08;
  mix-blend-mode: multiply; pointer-events: none;
}
.hero-blocks { position: absolute; inset: 0; pointer-events: none; }
.hb {
  position: absolute; border-radius: 3px; mix-blend-mode: multiply;
  transition:
    top 3.6s cubic-bezier(0.22, 1, 0.36, 1),
    right 3.6s cubic-bezier(0.22, 1, 0.36, 1),
    width 3.6s cubic-bezier(0.22, 1, 0.36, 1),
    height 3.6s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 3.6s linear;
}
.hb-1 { width: 38%; height: 60%; right: 5%; top: 9%; background: oklch(0.9 0.05 252); animation: hbA 28s ease-in-out infinite alternate; }
.hb-2 { width: 25%; height: 42%; right: 24%; top: 33%; background: oklch(0.92 0.04 300); animation: hbB 34s ease-in-out infinite alternate; }
.hb-3 { width: 17%; height: 27%; right: 1%; top: 52%; background: oklch(0.92 0.045 75); animation: hbB 30s ease-in-out infinite alternate-reverse; }
.hb-4 { width: 7%; height: 80%; right: 38%; top: 4%; background: oklch(0.93 0.03 230); animation: hbA 36s ease-in-out infinite alternate-reverse; }
@keyframes hbA { from { transform: translate(0, 0); } to { transform: translate(-16px, 12px); } }
@keyframes hbB { from { transform: translate(0, 0); } to { transform: translate(14px, -10px); } }
@media (prefers-reduced-motion: reduce) { .hb { animation: none; } }
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-inner { position: relative; padding: 116px 0 100px; max-width: 760px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.09em;
  color: var(--bronze); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--bronze); }
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.028em;
  text-wrap: balance; margin-bottom: 26px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, oklch(0.44 0.16 255), oklch(0.48 0.17 300));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: 20px; color: var(--ink-soft); max-width: 580px; text-wrap: pretty;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 13px 24px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2)); color: #fff;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.12), 0 10px 24px -12px oklch(0.2 0.05 265 / 0.55);
}
.btn-primary:hover { filter: brightness(1.16); }
.btn-ghost { background: oklch(1 0 0 / 0.55); color: var(--ink); border-color: #cfccc4; }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Credential strip ---------- */
.cred { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f6f4f0, #fbfaf8); }
.cred-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  padding: 30px 0;
}
.cred-item { display: flex; flex-direction: column; gap: 2px; }
.cred-item strong { font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.cred-item span { font-size: 14px; color: var(--ink-faint); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 100px 0; }
.section + .section { border-top: 1px solid var(--line); }
#services {
  background:
    radial-gradient(900px 400px at 90% 0%, oklch(0.94 0.02 255 / 0.55), transparent 60%),
    var(--bg);
}
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.022em; line-height: 1.12;
  margin: 16px 0 16px; text-wrap: balance;
}
.section-head h2 em, .assess h2 em {
  font-style: normal; color: var(--accent-ink);
}
.assess h2 em { color: oklch(0.82 0.07 75); }
.section-head p { color: var(--ink-soft); font-size: 18px; text-wrap: pretty; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc {
  background: linear-gradient(180deg, #ffffff, #fdfcfa);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 34px 30px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-card);
}
.svc .num { font-family: var(--font-mono); font-size: 13px; color: var(--bronze); }
.svc h3 { font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.svc p { font-size: 15.5px; color: var(--ink-soft); }
.svc ul { list-style: none; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.svc li {
  font-size: 14.5px; color: var(--ink-soft);
  display: flex; gap: 10px; align-items: baseline;
}
.svc li::before { content: "—"; color: var(--accent-ink); flex: none; }

/* How we work */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border-top: 2px solid var(--navy-1); padding-top: 22px; }
.step .label { font-family: var(--font-mono); font-size: 13px; color: var(--bronze); margin-bottom: 10px; display: block; }
.step h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--ink-soft); }

/* Assessment band */
.assess {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-1), var(--navy-2));
  color: #fff; border-radius: 14px;
  padding: 60px 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  box-shadow: 0 24px 60px -28px oklch(0.2 0.05 265 / 0.5);
}
.assess > div:not(.ab) { position: relative; z-index: 1; }
.ab { position: absolute; border-radius: 4px; }
.ab-1 { width: 46%; height: 130%; right: -5%; top: -15%; background: oklch(0.44 0.13 272 / 0.5); }
.ab-2 { width: 20%; height: 85%; right: 30%; bottom: -24%; background: oklch(0.52 0.1 65 / 0.28); }
.assess::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: 0.12;
  mix-blend-mode: overlay; pointer-events: none;
}
.assess::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.14); pointer-events: none;
}
.assess h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: 14px; text-wrap: balance;
}
.assess p { color: oklch(0.78 0.02 260); font-size: 17px; text-wrap: pretty; }
.assess .btn-light { background: #fff; color: var(--navy-2); justify-self: start; }
.assess .btn-light:hover { background: #efece6; }
.assess-right { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.assess-meta { font-family: var(--font-mono); font-size: 13px; color: oklch(0.66 0.04 75); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-left p { color: var(--ink-soft); font-size: 17px; margin-top: 16px; text-wrap: pretty; }
.contact-left .direct { margin-top: 28px; font-size: 15px; color: var(--ink-soft); }
.contact-left .direct a { color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #d6d2c9; border-radius: var(--radius);
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Footer — dark bookend */
footer {
  --ink-faint: oklch(0.72 0.02 260);
  --ink-soft: oklch(0.85 0.015 260);
  position: relative; overflow: hidden;
  background:
    radial-gradient(50% 120% at 85% -40%, oklch(0.42 0.12 270 / 0.4), transparent 65%),
    linear-gradient(180deg, var(--navy-2), oklch(0.14 0.03 272));
  padding: 40px 0 52px; margin-top: 100px;
}
.section:last-of-type { padding-bottom: 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-inner span { font-size: 14px; color: var(--ink-faint); }
.foot-inner .brand-name { color: var(--ink-soft) !important; }

/* Responsive */
@media (max-width: 900px) {
  .svc-grid, .steps, .cred-inner { grid-template-columns: 1fr; }
  .assess { grid-template-columns: 1fr; padding: 36px 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-inner { padding: 76px 0 68px; }
  .hero-blocks { opacity: 0.45; }
  footer { margin-top: 64px; }
}

/* Form states (Laravel validation) */
.field .err { font-size: 13.5px; color: oklch(0.55 0.17 25); font-weight: 500; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: oklch(0.6 0.17 25); }
.form-notice {
  margin-bottom: 24px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--accent-soft); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line));
  color: var(--accent-ink); font-size: 15px; font-weight: 500;
}
