/* =================================================================
   NOVYRA — Design System
   Palette : Bleu marine premium + Doré
   Type    : Space Grotesk (display) · IBM Plex Sans (body) · IBM Plex Mono (technique)
   ================================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — warm paper light */
  --bg:        #f4f1e9;
  --bg-2:      #ebe6da;
  --surface:   #ffffff;
  --surface-2: #fbf9f3;
  --surface-3: #f0ede4;
  --navy-brand:#0a2342;

  /* Gold */
  --gold:      #d4af37;
  --gold-2:    #e8cd6d;
  --gold-deep: #a8862a;
  --gold-text: #97781d;        /* readable gold for text on light */
  --gold-glow: rgba(212, 175, 55, 0.16);

  /* Lines */
  --line:        rgba(22, 40, 66, 0.10);
  --line-strong: rgba(22, 40, 66, 0.16);
  --line-gold:   rgba(160, 128, 40, 0.32);

  /* Ink */
  --ink:       #16243d;
  --ink-dim:   #55637b;
  --ink-faint: #8d99aa;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;

  /* Radius */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  /* Shadow */
  --shadow:    0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.85);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Dark panels: re-scope tokens to premium navy ----------
   Applied to the full-bleed bands so the page reads light overall
   with deliberate dark zones (hero, page headers, marquee, CTA, footer). */
.hero, .page-head, .marquee, .footer, .cta-band__inner, .proj-viz, .section--navy {
  --bg:        #060c18;
  --bg-2:      #0a1322;
  --surface:   #0d1828;
  --surface-2: #112135;
  --surface-3: #16294048;
  --ink:       #eaf0f8;
  --ink-dim:   #97a8c2;
  --ink-faint: #5e7088;
  --line:        rgba(157, 176, 199, 0.12);
  --line-strong: rgba(157, 176, 199, 0.20);
  --line-gold:   rgba(212, 175, 55, 0.30);
  --gold-text:   #e8cd6d;
  color: var(--ink);
}
.hero, .page-head { background: var(--bg); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--gold); color: var(--bg); }

/* Ambient page glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 600px at 82% -10%, rgba(201, 162, 51, 0.07), transparent 60%),
    radial-gradient(1000px 800px at 0% 100%, rgba(22, 40, 66, 0.05), transparent 60%);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; z-index: 1; padding-block: clamp(72px, 11vw, 140px); }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--ink-dim); font-size: 1.06rem; max-width: 60ch; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.text-gold { color: var(--gold-text); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--ink-dim); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1306;
  box-shadow: 0 10px 30px -12px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(212,175,55,0.45), inset 0 1px 0 rgba(255,255,255,0.3); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255,255,255,0.015);
}
.btn--ghost:hover { border-color: var(--line-gold); color: var(--gold-2); transform: translateY(-2px); }

.btn--lg { padding: 18px 32px; font-size: 14px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(244, 241, 233, 0.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.brand__name b { color: var(--gold); font-weight: 700; }
.nav .brand__name { color: #ffffff; }
.nav .brand__name b { color: var(--gold-2); }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(234, 240, 248, 0.72);
  padding: 9px 15px;
  border-radius: 100px;
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: #ffffff; }
.nav__links a.is-active { color: var(--gold-2); }
.nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 1px;
  background: var(--gold-2);
  opacity: 0.7;
}
/* Scrolled: nav floats over light body → dark text on warm glass */
.nav.is-scrolled .brand__name { color: #16243d; }
.nav.is-scrolled .brand__name b { color: #97781d; }
.nav.is-scrolled .nav__links a { color: #55637b; }
.nav.is-scrolled .nav__links a:hover { color: #16243d; }
.nav.is-scrolled .nav__links a.is-active { color: #97781d; }
.nav.is-scrolled .nav__links a.is-active::after { background: #97781d; }
.nav.is-scrolled .nav__toggle { border-color: rgba(22, 40, 66, 0.18); }
.nav.is-scrolled .nav__toggle span { background: #16243d; }
.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(234, 240, 248, 0.28); position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 25px; }

.nav__drawer { display: none; }

@media (max-width: 940px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(247, 244, 237, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 18px var(--gutter) 30px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
    z-index: 99;
  }
  .nav__drawer.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__drawer a { font-family: var(--font-mono); font-size: 15px; color: var(--ink-dim); padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .nav__drawer a.is-active { color: var(--gold-text); }
  .nav__drawer .btn { margin-top: 18px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 90px)); padding-bottom: clamp(40px, 7vw, 80px); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero__grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 70% 10%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.hero__inner { position: relative; z-index: 2; }
.hero h1 { margin: 22px 0 26px; max-width: 16ch; }
.hero .lead { max-width: 54ch; margin-bottom: 38px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: clamp(48px, 7vw, 80px);
}
.stat { background: var(--surface); padding: 32px clamp(20px, 3vw, 38px); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--gold-text); line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-dim); margin-top: 12px; text-transform: uppercase; }
@media (max-width: 680px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Tech Marquee ---------- */
.marquee {
  position: relative; z-index: 1;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding-block: 26px;
  overflow: hidden;
}
.marquee__label { text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.24em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 22px; }
.marquee__track-wrap { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 46s linear infinite; }
.marquee__track:hover { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 30px; padding-inline: 15px; font-family: var(--font-mono); font-size: 15px; color: var(--ink-dim); letter-spacing: 0.02em; white-space: nowrap; }
.marquee__item::after { content: '◆'; color: var(--gold); font-size: 7px; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(26px, 3vw, 36px);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 0;
  border-top: 26px solid transparent;
  border-left: 26px solid transparent;
  transition: border-color 0.45s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-gold); background: var(--surface-2); }
.card:hover::after { border-top-color: var(--gold); border-left-color: transparent; }

/* service icon */
.svc__icon { width: 52px; height: 52px; margin-bottom: 24px; color: var(--gold); }
.svc h3 { margin-bottom: 14px; }
.svc p { color: var(--ink-dim); font-size: 0.98rem; margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.012);
}
.tag--gold { color: var(--gold-text); border-color: var(--line-gold); }

/* ---------- Project cards ---------- */
.project {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease);
}
.project:hover { transform: translateY(-6px); border-color: var(--line-gold); }
.project__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.project:hover .project__media .placeholder { transform: scale(1.04); }
.project__body { padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; flex: 1; }
.project__cat { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 14px; }
.project__body h3 { margin-bottom: 12px; }
.project__body p { color: var(--ink-dim); font-size: 0.97rem; margin-bottom: 22px; flex: 1; }
.project__more { font-family: var(--font-mono); font-size: 13px; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s var(--ease), color 0.3s var(--ease); }
.project:hover .project__more { color: var(--gold-2); gap: 13px; }
.project__more svg { width: 15px; height: 15px; }

/* ---------- Striped placeholder ---------- */
.placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--bg-2);
  background-image: repeating-linear-gradient(135deg, rgba(157,176,199,0.05) 0 2px, transparent 2px 14px);
  transition: transform 0.6s var(--ease);
}
.placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 80% 10%, rgba(212,175,55,0.10), transparent 55%);
}
.placeholder span {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px dashed var(--line-strong);
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(6,12,24,0.5);
}

/* ---------- Quote ---------- */
.quote { position: relative; text-align: center; max-width: 960px; margin-inline: auto; }
.quote__mark { font-family: var(--font-display); font-size: clamp(5rem, 12vw, 9rem); line-height: 0.6; color: var(--gold-text); opacity: 0.4; display: block; margin-bottom: 10px; }
.quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.quote cite { display: block; margin-top: 30px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--gold-text); font-style: normal; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; z-index: 1; overflow: hidden; }
.cta-band__inner {
  position: relative;
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(212,175,55,0.10), transparent 50%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: clamp(44px, 6vw, 76px);
  text-align: center;
  overflow: hidden;
}
.cta-band__inner h2 { margin-bottom: 18px; max-width: 18ch; margin-inline: auto; }
.cta-band__inner p { color: var(--ink-dim); margin-bottom: 34px; max-width: 50ch; margin-inline: auto; }
.cta-band__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Page header (interior pages) ---------- */
.page-head { position: relative; padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 100px)); padding-bottom: clamp(40px, 6vw, 70px); overflow: hidden; }
.page-head__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(100% 100% at 80% 0%, #000, transparent 70%);
          mask-image: radial-gradient(100% 100% at 80% 0%, #000, transparent 70%);
  opacity: 0.4;
}
.page-head__inner { position: relative; z-index: 1; }
.page-head h1 { margin: 22px 0 22px; max-width: 18ch; }
.page-head p { max-width: 60ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 26px; display: flex; gap: 10px; align-items: center; }
.breadcrumb a { color: var(--ink-dim); transition: color 0.3s var(--ease); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--ink-faint); }

/* ---------- Expertise list ---------- */
.expertise { display: flex; flex-wrap: wrap; gap: 12px; }
.expertise li {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.expertise li:hover { border-color: var(--line-gold); color: var(--gold-2); transform: translateY(-2px); }

/* ---------- Detail content blocks ---------- */
.detail-block { margin-bottom: clamp(34px, 5vw, 56px); }
.detail-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; }
.detail-block h2 .num { font-family: var(--font-mono); font-size: 0.6em; color: var(--gold-text); margin-right: 14px; vertical-align: middle; }
.detail-block p { color: var(--ink-dim); max-width: 64ch; margin-bottom: 14px; }
.detail-block ul.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.detail-block ul.checks li { display: flex; gap: 14px; color: var(--ink-dim); align-items: flex-start; }
.detail-block ul.checks li::before { content: ''; flex-shrink: 0; width: 7px; height: 7px; margin-top: 9px; background: var(--gold); transform: rotate(45deg); }

.detail-aside {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
}
.detail-aside h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin-bottom: 18px; }
.detail-aside h4:not(:first-child) { margin-top: 28px; }
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; } .detail-aside { position: static; } }

/* ---------- About profile ---------- */
.profile { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 60px); align-items: center; }
@media (max-width: 820px) { .profile { grid-template-columns: 1fr; } }
.profile__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-gold); }
.profile__role { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--gold-text); text-transform: uppercase; margin-bottom: 18px; }
.profile h2 { margin-bottom: 22px; }
.profile p { color: var(--ink-dim); margin-bottom: 16px; max-width: 56ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--surface-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 4px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: none; }
.contact-line__icon { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-gold); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
.contact-line__icon svg { width: 18px; height: 18px; }
.contact-line__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.contact-line__value { font-size: 1rem; color: var(--ink); }
.contact-line a.contact-line__value:hover { color: var(--gold-2); }

.form-success {
  display: none;
  text-align: center;
  padding: 50px 30px;
  border: 1px solid var(--line-gold);
  border-radius: var(--r);
  background: var(--surface);
}
.form-success.is-visible { display: block; animation: fade-rise 0.6s var(--ease) both; }
.form-success svg { width: 54px; height: 54px; color: var(--gold); margin-bottom: 20px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(56px, 7vw, 84px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); padding-bottom: 56px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 28px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand { margin-bottom: 20px; }
.footer__brand p { color: var(--ink-dim); font-size: 0.94rem; max-width: 38ch; margin-bottom: 22px; }
.footer__slogan { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--gold-text); }
.footer__col h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 13px; }
.footer__col a { color: var(--ink-dim); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer__col a:hover { color: var(--gold-2); }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__bottom p { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.03em; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@keyframes fade-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* =================================================================
   PREMIUM SERVICES LIST  (large interactive rows)
   ================================================================= */
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 210px 44px;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 40px) clamp(12px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease),
              box-shadow 0.5s var(--ease), border-color 0.5s var(--ease),
              border-radius 0.5s var(--ease);
}
.svc-row::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.55s var(--ease);
}
.svc-row:hover {
  background: var(--surface);
  border-color: transparent;
  border-radius: var(--r-lg);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  z-index: 2;
}
.svc-row:hover::before { transform: scaleY(1); }
.svc-row__idx {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.06em;
  color: var(--gold-text); opacity: 0.85; align-self: start; padding-top: 4px;
}
.svc-row__main h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem); margin-bottom: 10px;
  transition: transform 0.5s var(--ease);
}
.svc-row:hover .svc-row__main h3 { transform: translateX(6px); }
.svc-row__main p { color: var(--ink-dim); max-width: 50ch; margin-bottom: 16px; font-size: 0.98rem; }
.svc-row__visual {
  width: 100%; height: 120px; position: relative;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.92; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.svc-row:hover .svc-row__visual { opacity: 1; transform: scale(1.05); }
.svc-row__arrow {
  justify-self: end; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.svc-row__arrow svg { width: 17px; height: 17px; }
.svc-row:hover .svc-row__arrow {
  border-color: var(--gold); background: var(--gold); color: #1a1306; transform: rotate(-45deg);
}
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 50px 1fr; gap: 6px 16px; }
  .svc-row__visual, .svc-row__arrow { display: none; }
}

/* ---------- Animated service diagrams ---------- */
.dg { width: 200px; height: 118px; overflow: visible; }
.dg-line  { fill: none; stroke: var(--line-gold); stroke-width: 1.4; }
.dg-edge  { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 4 7; opacity: 0.5; transition: opacity 0.5s var(--ease); }
.dg-ring  { fill: none; stroke: var(--line-gold); stroke-width: 1.6; }
.dg-node  { fill: var(--gold); transform-box: fill-box; transform-origin: center; }
.dg-node.soft { fill: var(--ink-faint); }
.dg-rect  { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.dg-dot   { fill: var(--gold); }
.svc-row:hover .dg-edge { opacity: 0.95; }

@media (prefers-reduced-motion: no-preference) {
  .dg-edge   { animation: dgDash 1.6s linear infinite; }
  .dg-node   { animation: dgPulse 2.8s ease-in-out infinite; }
  .dg-rise   { transform-box: fill-box; animation: dgRise 2.8s ease-in-out infinite; }
  .dg-travel { transform-box: fill-box; animation: dgTravel 2.8s ease-in-out infinite; }
  .dg-spin   { transform-box: fill-box; transform-origin: center; animation: dgSpin 6s linear infinite; }
}
@keyframes dgDash   { to { stroke-dashoffset: -33; } }
@keyframes dgPulse  { 0%, 100% { opacity: 0.55; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes dgRise   { 0% { transform: translateY(10px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
@keyframes dgTravel { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(var(--tx, 80px)); opacity: 0; } }
@keyframes dgSpin   { to { transform: rotate(360deg); } }

/* =================================================================
   EXTRA MOTION
   ================================================================= */
/* Hero drifting aurora */
.hero__aurora {
  position: absolute; inset: -15%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 40% at 28% 32%, rgba(212, 175, 55, 0.12), transparent 62%),
    radial-gradient(46% 46% at 72% 64%, rgba(40, 92, 168, 0.22), transparent 62%);
  filter: blur(10px);
  animation: auroraDrift 20s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.08); }
}

/* Floating quote mark */
@media (prefers-reduced-motion: no-preference) {
  .quote__mark { animation: floaty 5.5s ease-in-out infinite; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Gold button shimmer sweep */
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn--gold:hover::after { animation: shimmer 0.9s var(--ease); }
@keyframes shimmer { to { left: 130%; } }

/* Marquee items lift slightly toward gold on hover */
.marquee__item { transition: color 0.3s var(--ease); }
.marquee__item:hover { color: var(--gold-2); }

/* =================================================================
   PROJECT VISUALS  (animated technical schematics on navy)
   ================================================================= */
.proj-viz {
  position: absolute; inset: 0; overflow: hidden;
  transition: transform 0.6s var(--ease);
  background:
    radial-gradient(130% 120% at 82% 0%, rgba(212, 175, 55, 0.12), transparent 55%),
    linear-gradient(160deg, #0c1828, #060d18);
}
.proj-viz::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(157, 176, 199, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 176, 199, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(110% 110% at 72% 18%, #000 35%, transparent 82%);
          mask-image: radial-gradient(110% 110% at 72% 18%, #000 35%, transparent 82%);
}
.proj-viz svg { position: relative; width: 100%; height: 100%; display: block; }
.project:hover .proj-viz { transform: scale(1.05); }
.proj-viz .dg-edge { opacity: 0.6; }
.project:hover .proj-viz .dg-edge { opacity: 0.95; }
.dg-fill { fill: rgba(212, 175, 55, 0.14); stroke: var(--gold); stroke-width: 1.5; }
.dg-wave { fill: none; stroke: var(--gold); stroke-width: 2; transform-box: fill-box; transform-origin: 0% 50%; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .dg-wave { animation: dgPulse 2.2s ease-in-out infinite; }
}

/* =================================================================
   NAVY FEATURE SECTION  (mix of light page + brand blue)
   ================================================================= */
.section--navy {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 85% -10%, rgba(212, 175, 55, 0.08), transparent 60%),
    radial-gradient(70% 80% at 0% 110%, rgba(40, 92, 168, 0.16), transparent 60%),
    linear-gradient(180deg, #081224, #060d18);
}

/* =================================================================
   FAQ  ("Informations" accordion)
   ================================================================= */
.section-head--center { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }
.title-dot { color: var(--gold-text); }
.faq { max-width: 920px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: clamp(22px, 2.6vw, 30px) 8px; text-align: left; color: var(--ink); cursor: pointer;
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.08rem, 1.9vw, 1.42rem);
  transition: color 0.3s var(--ease);
}
.faq__q:hover, .faq__item.is-open .faq__q { color: var(--gold-text); }
.faq__icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: var(--gold-text);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.faq__icon::before { top: 50%; left: 0; right: 0; height: 1.6px; transform: translateY(-50%); }
.faq__icon::after  { left: 50%; top: 0; bottom: 0; width: 1.6px; transform: translateX(-50%); }
.faq__item.is-open .faq__icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq__a { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease); }
.faq__a p { color: var(--ink-dim); padding: 0 8px 30px; max-width: 76ch; font-size: 1.02rem; }

/* =================================================================
   FOUNDER spotlight
   ================================================================= */
.bigtitle {
  font-family: var(--font-display); font-weight: 700; text-align: center;
  font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -0.03em; line-height: 1;
}
.bigtitle .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-faint);
}
.founder {
  max-width: 580px; margin: clamp(40px, 6vw, 64px) auto 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.founder__photo {
  width: clamp(184px, 26vw, 240px); aspect-ratio: 1; border-radius: 50%;
  position: relative; margin-bottom: 30px;
  padding: 6px; background: var(--surface);
  border: 1px solid var(--line-gold); box-shadow: var(--shadow);
}
.founder__photo::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
}
.founder__photo image-slot { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; color: var(--gold-text); }
.founder__photo image-slot::part(empty) { background: var(--surface-2); color: var(--gold-deep); }
.founder__name { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.founder__role {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: 22px;
}
.founder__bio { color: var(--ink-dim); max-width: 48ch; margin-bottom: 26px; }
.founder__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink);
  border: 1px solid var(--line-strong); padding: 12px 20px; border-radius: 100px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.founder__link:hover { border-color: var(--line-gold); color: var(--gold-text); transform: translateY(-2px); }
.founder__link svg { width: 16px; height: 16px; }

/* =================================================================
   PROCESS / MÉTHODE  (numbered steps with connector)
   ================================================================= */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 34px); }
.process::before {
  content: ''; position: absolute; top: 23px; left: 12%; right: 12%; height: 1px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--line-gold) 0 5px, transparent 5px 12px);
}
.step { position: relative; }
.step__num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-gold); background: var(--bg);
  color: var(--gold-text); font-family: var(--font-mono); font-size: 14px;
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.step:hover .step__num { transform: translateY(-3px); border-color: var(--gold); background: var(--gold); color: #1a1306; }
.step h3 { font-size: clamp(1.1rem, 1.7vw, 1.32rem); margin-bottom: 10px; }
.step p { color: var(--ink-dim); font-size: 0.95rem; }
@media (max-width: 780px) {
  .process { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .process::before { display: none; }
}
@media (max-width: 460px) { .process { grid-template-columns: 1fr; } }
