/* =========================================================
   COURTIER MTL — premium black & gold design system (bespoke CSS)
   Palette: true black + elevated near-black surfaces + antique gold
   Type: Cormorant Garamond (display) + Inter (text)
   ========================================================= */

:root {
  --bg: #050504;          /* page background — true black */
  --surface: #100E0A;     /* card / lifted section surface */
  --surface-2: #0A0907;   /* subtle alternate section surface */
  --surface-3: #17140D;   /* hover / raised surface */
  --ink: #0B0A07;         /* deep dark UI (header/hero/footer/CTA) */
  --ink-2: #141009;
  --ink-3: #221B10;
  --paper: #F6F2EA;       /* light foreground (headings, on-dark text) */
  --paper-2: #EFE8DB;
  --white: #FFFFFF;
  --gold: #C4933F;
  --gold-2: #E0BA6E;
  --gold-soft: #EFE0BC;
  --heading: #F6F2EA;     /* light heading color on black */
  --text: #E7E0D2;        /* body text on black */
  --muted: #A99E8C;       /* secondary text on black */
  --muted-2: #877D6F;
  --line: rgba(216, 179, 104, 0.17);      /* gold hairline on black */
  --line-dark: rgba(216, 179, 104, 0.14);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.06; letter-spacing: -0.015em; color: var(--heading); }
.h-display { font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: 1.0; }
.h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
p { max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.65; color: var(--muted); font-weight: 350; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--gold); opacity: 0.7; }
.eyebrow--center::after { content: ""; width: 30px; height: 1px; background: var(--gold); opacity: 0.7; }
.eyebrow--plain::before { display: none; }

.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.05rem 1.9rem; border-radius: var(--radius);
  transition: all 0.4s var(--ease); cursor: pointer; white-space: nowrap;
  min-height: 48px; border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--ink); color: var(--gold-2); }
.btn-dark { background: var(--gold); color: var(--white); }
.btn-dark:hover { background: var(--paper); color: var(--ink); }
.btn-outline { border-color: rgba(224,186,110,0.5); color: var(--paper); }
.btn-outline:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-ghost { border-color: rgba(246,242,234,0.4); color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.link-gold { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); transition: gap 0.3s var(--ease), color 0.3s; }
.link-gold svg { width: 16px; height: 16px; color: var(--gold); transition: transform 0.3s var(--ease); }
.link-gold:hover { color: var(--gold); }
.link-gold:hover svg { transform: translateX(5px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height 0.4s var(--ease); }
.site-header.scrolled { background: rgba(9,8,6,0.94); backdrop-filter: blur(14px); border-color: var(--line-dark); }
.site-header.scrolled .bar { height: 68px; }
/* on light pages the header starts solid */
.site-header.solid { background: rgba(9,8,6,0.97); backdrop-filter: blur(14px); border-color: var(--line-dark); }

.brand { display: flex; flex-direction: column; line-height: 1; color: var(--paper); }
.brand .name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.01em; }
.brand .sub { font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-2); margin-top: 5px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; color: rgba(246,242,234,0.82); transition: color 0.25s; position: relative; padding-block: 6px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); }
.nav .has-sub { position: relative; }
.nav .sub-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 0.6rem; min-width: 480px; opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.nav .has-sub:hover .sub-menu, .nav .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav .sub-menu a { padding: 0.7rem 0.9rem; border-radius: var(--radius); color: rgba(246,242,234,0.72); letter-spacing: 0; font-size: 0.85rem; }
.nav .sub-menu a:hover { background: var(--ink-3); color: var(--gold-2); }
.nav .sub-menu a::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 1.3rem; }
.lang-switch { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: rgba(246,242,234,0.6); }
.lang-switch a { color: rgba(246,242,234,0.6); padding: 4px 2px; }
.lang-switch a.active { color: var(--gold-2); }
.lang-switch .sep { opacity: 0.35; }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.menu-toggle span { width: 24px; height: 1.5px; background: var(--paper); transition: 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--ink); padding: 110px var(--gutter) 3rem; transform: translateY(-100%); transition: transform 0.5s var(--ease); overflow-y: auto; }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--paper); padding: 0.7rem 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu a:hover { color: var(--gold-2); }
.mobile-menu .mm-sectors { margin-top: 1.5rem; }
.mobile-menu .mm-sectors summary { font-family: var(--serif); font-size: 1.8rem; color: var(--paper); padding: 0.7rem 0; border-bottom: 1px solid var(--line-dark); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .mm-sectors summary::-webkit-details-marker { display: none; }
.mobile-menu .mm-sectors[open] summary { color: var(--gold-2); }
.mobile-menu .mm-sectors .mm-list a { font-family: var(--sans); font-size: 1rem; padding: 0.55rem 0; color: rgba(246,242,234,0.7); border: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg.placeholder { background: linear-gradient(135deg, #0b0a07 0%, #1c1710 55%, #35291a 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(3,3,2,0.72) 0%, rgba(3,3,2,0.42) 30%, rgba(3,3,2,0.68) 64%, rgba(3,3,2,0.97) 100%),
  linear-gradient(90deg, rgba(3,3,2,0.62) 0%, rgba(3,3,2,0.22) 52%, rgba(3,3,2,0) 100%); }
/* extra bottom room so the centered scroll cue never overlaps the stats row */
.hero-inner { padding-block: clamp(3rem, 8vh, 7rem) clamp(7rem, 13vh, 9rem); width: 100%; }
.hero h1 { color: var(--paper); max-width: 15ch; }
.hero .lead { color: rgba(246,242,234,0.86); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.5rem; padding-top: 2.2rem; border-top: 1px solid rgba(246,242,234,0.18); }
.hero-meta .stat .num { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.9rem); color: var(--gold-2); line-height: 1; }
.hero-meta .stat .lbl { font-size: 0.75rem; letter-spacing: 0.06em; color: rgba(246,242,234,0.7); margin-top: 0.5rem; text-transform: uppercase; }

/* hero video background */
.hero-bg { overflow: hidden; }
/* animated gradient fallback (visible motion even without a video) */
.hero .hero-bg.placeholder {
  background: linear-gradient(135deg, #080705 0%, #191309 40%, #3a2c19 65%, #120d07 100%);
  background-size: 220% 220%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-bg.placeholder { animation: heroDrift 20s ease-in-out infinite alternate; }
  .hero .hero-bg::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 40% at 30% 30%, rgba(168,129,63,0.22), transparent 70%); animation: heroSheen 16s ease-in-out infinite alternate; z-index: 0; }
}
@keyframes heroDrift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes heroSheen { from { transform: translate(0,0); } to { transform: translate(30%, 25%); } }
.hero-bg .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity 1.4s var(--ease); will-change: opacity, transform; filter: brightness(0.58) contrast(1.04) saturate(1.02); }
.hero-video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-video.is-playing { animation: heroZoom 26s ease-in-out infinite alternate; }
}
@keyframes heroZoom { from { transform: scale(1.001); } to { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* hero embed (YouTube / Vimeo background) — scaled to cover, no letterbox */
.hero-embed { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero-embed iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; height: 56.25vw;        /* 16:9 relative to width */
  min-height: 100%; min-width: 177.78vh; /* 16:9 relative to height */
  border: 0; filter: brightness(0.56) contrast(1.04);
}
/* reduced motion: hide the autoplaying embed, show the still poster instead */
@media (prefers-reduced-motion: reduce) { .hero-embed { display: none; } }

/* scroll cue */
.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; color: rgba(246,242,234,0.7); background: none; border: none; cursor: pointer; }
.hero-scroll span { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }
.hero-scroll .line { width: 1px; height: 40px; background: linear-gradient(rgba(246,242,234,0.7), rgba(246,242,234,0)); position: relative; overflow: hidden; }
.hero-scroll .line::after { content: ""; position: absolute; top: -40px; left: 0; width: 1px; height: 40px; background: var(--gold-2); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0% { top: -40px; } 60%, 100% { top: 40px; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll .line::after { display: none; } }

/* page hero (interior pages, shorter) */
.page-hero { position: relative; padding-top: 150px; padding-bottom: clamp(3rem, 6vw, 5rem); color: var(--paper); background: var(--ink); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: 0.5; background: radial-gradient(120% 100% at 80% 0%, rgba(168,129,63,0.28), transparent 60%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--paper); margin-top: 1.2rem; max-width: 18ch; }
.page-hero .lead { color: rgba(246,242,234,0.82); margin-top: 1.4rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.76rem; letter-spacing: 0.06em; color: rgba(246,242,234,0.55); text-transform: uppercase; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--gold-2); }

/* ---------- sector grid / cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.sector-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.sector-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--ink); aspect-ratio: 3 / 3.6; isolation: isolate; }
.sector-card .img { position: absolute; inset: 0; z-index: -2; transition: transform 0.9s var(--ease); }
.sector-card .img img { width: 100%; height: 100%; object-fit: cover; }
.sector-card .img.placeholder { background-size: cover; }
.sector-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,12,9,0.1) 0%, rgba(15,12,9,0.15) 45%, rgba(15,12,9,0.82) 100%); transition: background 0.5s; }
.sector-card:hover .img { transform: scale(1.06); }
.sector-card .card-body { position: absolute; inset: auto 0 0 0; padding: 1.6rem; color: var(--paper); }
.sector-card .kicker { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }
.sector-card h3 { color: var(--paper); font-size: 1.7rem; margin-top: 0.35rem; }
.sector-card .tag { font-size: 0.9rem; color: rgba(246,242,234,0.78); margin-top: 0.35rem; }
.sector-card .card-cta { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease); }
.sector-card .card-cta svg { width: 15px; height: 15px; }
.sector-card:hover .card-cta { opacity: 1; transform: translateY(0); }

/* compact sector list (nearby, footer) */
.sector-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.sector-links a { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0.2rem; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.25rem; color: var(--paper); transition: color 0.25s, padding 0.3s var(--ease); }
.sector-links a span.idx { font-family: var(--sans); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.1em; }
.sector-links a:hover { color: var(--gold); padding-left: 0.6rem; }

/* ---------- feature / service ---------- */
.service-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.service-card { padding: 2.2rem 1.9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 30px 55px -30px rgba(0,0,0,0.7); border-color: rgba(224,186,110,0.4); }
.service-card .ic { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); margin-bottom: 1.4rem; }
.service-card .ic svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.5rem; }
.service-card p { font-size: 0.98rem; color: var(--muted); margin-top: 0.7rem; }

/* ---------- stats strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat-strip .cell { padding: clamp(1.6rem, 3vw, 2.6rem); border-right: 1px solid var(--line); }
.stat-strip .cell:last-child { border-right: none; }
.stat-strip .num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--heading); line-height: 1; }
.stat-strip .lbl { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 0.6rem; }

/* market snapshot (sector) */
.snapshot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.snapshot .cell { background: var(--surface); padding: 1.8rem 1.4rem; }
.snapshot .k { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }
.snapshot .v { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--heading); margin-top: 0.5rem; line-height: 1.05; }

/* ---------- split / editorial ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--wide-text { grid-template-columns: 1.1fr 0.9fr; }
.media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--surface); border: 1px solid var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.placeholder { background: linear-gradient(140deg, #1c1710, #0b0a07); }
.media-tag { position: absolute; left: 1.2rem; bottom: 1.2rem; background: rgba(22,19,15,0.82); backdrop-filter: blur(6px); color: var(--paper); padding: 0.7rem 1.1rem; border-radius: var(--radius); font-size: 0.78rem; letter-spacing: 0.08em; }

.checklist { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.2rem; }
.checklist li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.checklist li svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.checklist li span { font-size: 1rem; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--surface); padding: 2.2rem 1.8rem; transition: background 0.4s; }
.step:hover { background: var(--surface-3); }
.step .n { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; }
.step h3 { font-size: 1.35rem; margin-top: 1rem; }
.step p { font-size: 0.94rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- testimonials ---------- */
.quote-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote { padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.quote .stars { color: var(--gold-2); letter-spacing: 0.2em; font-size: 0.9rem; }
.quote blockquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; color: var(--heading); margin: 1rem 0 1.4rem; }
.quote .who { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 130% at 15% 20%, rgba(168,129,63,0.3), transparent 55%); }
.cta-band .wrap { position: relative; }
.cta-band h2 { color: var(--paper); }
.cta-band .lead { color: rgba(246,242,234,0.8); }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.6rem); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--text);
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem; transition: border-color 0.25s, background 0.25s; min-height: 50px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-2); background: rgba(255,255,255,0.09); }
.field select option { color: #1a1a1a; background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-status { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; }

/* contact info list */
.contact-list { display: grid; gap: 1.6rem; }
.contact-list .item { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-list .item .ic { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.contact-list .item .ic svg { width: 20px; height: 20px; }
.contact-list .item .k { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-list .item .v { font-size: 1.1rem; color: var(--paper); margin-top: 3px; }
.contact-list .item a.v:hover { color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,242,234,0.72); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2.5rem; }
.site-footer h4 { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1.3rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(2rem, 4vw, 3.5rem); }
.footer-brand .name { font-family: var(--serif); font-size: 1.9rem; color: var(--paper); }
.footer-brand .sub { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-2); margin-top: 6px; }
.footer-brand p { font-size: 0.95rem; margin-top: 1.2rem; max-width: 34ch; }
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold-2); }
.footer-sectors { columns: 2; column-gap: 1.5rem; }
.footer-sectors a { display: block; margin-bottom: 0.7rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.8rem; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: var(--muted-2); }
.footer-bottom .socials { display: flex; gap: 1rem; }
.footer-bottom .socials a { color: rgba(246,242,234,0.6); }
.footer-bottom .socials a:hover { color: var(--gold-2); }
.oaciq-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted-2); border: 1px solid var(--line-dark); padding: 0.4rem 0.8rem; border-radius: var(--radius); }
.agency-mark { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.agency-mark span { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); }
.agency-mark img { width: 190px; max-width: 100%; height: auto; background: #fff; padding: 0.55rem 0.8rem; border-radius: 8px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* section header helper */
.sec-head { max-width: 44ch; margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-top: 1rem; }
.sec-head p { margin-top: 1rem; }
.sec-head.center p { margin-inline: auto; }

/* alt section backgrounds (near-black tiers for subtle depth) */
.bg-paper2 { background: var(--surface-2); }
.bg-white { background: var(--surface); }

/* focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 0.7rem 1.2rem; border-radius: var(--radius); transition: top 0.2s; }
.skip-link:focus { top: 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 1160px) {
  .nav { gap: 1.5rem; }
  .header-actions { gap: 1rem; }
}
@media (max-width: 1020px) {
  .nav { gap: 1.15rem; }
  .nav a { font-size: 0.78rem; }
}
@media (max-width: 940px) {
  .nav, .header-actions .desktop-cta { display: none; }
  .menu-toggle { display: flex; }
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .snapshot { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-sectors { columns: 1; }
  .hero-meta { gap: 1.4rem 2rem; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  /* on phones the stats wrap and fill the base — drop the decorative cue */
  .hero-scroll { display: none; }
  .hero-inner { padding-block: clamp(2.5rem, 8vh, 5rem) clamp(2.5rem, 6vh, 4rem); }
}
/* very short viewports (landscape): the cue would collide — hide it */
@media (max-height: 620px) { .hero-scroll { display: none; } }

/* =========================================================
   PREMIUM MOTION LAYER (added: black+gold shimmer + entrances)
   ========================================================= */

/* ---- gradient shimmer (JS-driven via [data-shimmer]) ---- */
/* The JS paints the clipped gradient inline; these rules keep the
   text crisp and provide a graceful no-JS / reduced-motion baseline. */
[data-shimmer] { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Before JS runs (or if it never does), text stays fully visible. */
.no-js [data-shimmer], [data-shimmer]:not([style*="text-fill"]) { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  [data-shimmer] { animation: none !important; }
}

/* Brand wordmark: a slow, restrained champagne breath in the header. */
.brand .name[data-shimmer] { will-change: background-position; }

/* ---- hero: staged cinematic entrance on load ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { opacity: 0; animation: heroRise 1.05s var(--ease) forwards; }
  .hero-inner > .eyebrow { animation-delay: 0.15s; }
  .hero-inner > h1 { animation-delay: 0.30s; }
  .hero-inner > .lead { animation-delay: 0.48s; }
  .hero-inner > .hero-actions { animation-delay: 0.64s; }
  .hero-inner > .hero-meta { animation-delay: 0.80s; }
  .hero-scroll { opacity: 0; animation: heroRise 1s var(--ease) 1.1s forwards; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* Thin gold rule that draws itself under the hero title. */
.hero h1 { position: relative; }
.hero h1::after {
  content: ""; position: absolute; left: 0; bottom: -0.55rem; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-2), rgba(216,179,104,0));
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1::after { animation: ruleDraw 1.1s var(--ease) 0.95s forwards; }
}
@keyframes ruleDraw { to { width: clamp(120px, 22vw, 260px); } }

/* Eyebrow leading rule animates in (all eyebrows). */
@media (prefers-reduced-motion: no-preference) {
  .eyebrow::before { transform-origin: left center; animation: eyebrowLine 0.9s var(--ease) both; }
}
@keyframes eyebrowLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- gold button: luxury shine sweep ---- */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-gold:hover::after { animation: btnShine 0.85s var(--ease); }
}
@keyframes btnShine { from { left: -60%; } to { left: 130%; } }

/* ---- sector cards: gold frame glow on hover (premium depth) ---- */
.sector-card { transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.sector-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -28px rgba(0,0,0,0.7), 0 0 0 1px rgba(216,179,104,0.35); }

/* ---- scrolled header: faint gold hairline glow ---- */
.site-header.scrolled, .site-header.solid { box-shadow: 0 1px 0 0 rgba(216,179,104,0.12), 0 20px 40px -30px rgba(0,0,0,0.8); }

/* ---- deep sector segments ---- */
.seg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.seg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.seg:hover { border-color: rgba(224,186,110,0.4); transform: translateY(-3px); }
.seg h3 { font-size: 1.4rem; }
.seg p { font-size: 0.98rem; color: var(--muted); margin-top: 0.8rem; max-width: none; }

/* ---- FAQ accordion ---- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.4rem 0.2rem; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--heading); transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-2); }
.faq-ic { flex-shrink: 0; width: 22px; height: 22px; color: var(--gold); transition: transform 0.35s var(--ease); }
.faq-ic svg { width: 22px; height: 22px; }
.faq-item[open] summary { color: var(--gold-2); }
.faq-item[open] .faq-ic { transform: rotate(90deg); }
.faq-a { padding: 0 0.2rem 1.5rem; }
.faq-a p { color: var(--muted); max-width: 72ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a { animation: faqOpen 0.4s var(--ease); }
}
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- blog cards ---- */
.post-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(224,186,110,0.4); }
.post-thumb { position: relative; aspect-ratio: 16 / 9; background-size: cover; }
.post-cat { position: absolute; left: 1rem; top: 1rem; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: var(--gold-2); padding: 0.35rem 0.7rem; border-radius: var(--radius); font-weight: 700; }
.post-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.5rem; }
.post-date { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { font-size: 1.45rem; color: var(--heading); }
.post-card p { font-size: 0.96rem; color: var(--muted); max-width: none; }
.post-card .card-cta { position: static; opacity: 1; transform: none; margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }
.post-card .card-cta svg { width: 15px; height: 15px; }

/* ---- article prose ---- */
.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin-top: 2.4rem; }
.article p { margin-top: 0.9rem; color: var(--text); font-size: 1.08rem; line-height: 1.78; max-width: 68ch; }
.article p.lead { color: var(--muted); font-size: clamp(1.15rem, 1.7vw, 1.4rem); }

/* ---- réalisations / portfolio ---- */
.realisation-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.realisation { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.4s; }
.realisation:hover { transform: translateY(-4px); border-color: rgba(224,186,110,0.4); }
.realisation-img { position: relative; aspect-ratio: 4 / 3; background-size: cover; }
.sold-badge { position: absolute; left: 1rem; top: 1rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink); background: var(--gold-2); padding: 0.4rem 0.8rem; border-radius: var(--radius); }
.realisation figcaption { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: 0.2rem; }
.r-type { font-family: var(--serif); font-size: 1.3rem; color: var(--heading); }
.r-sector { font-size: 0.85rem; color: var(--muted); }

/* ---- team ---- */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.team-member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s; }
.team-member:hover { transform: translateY(-4px); border-color: rgba(224,186,110,0.4); }
.tm-photo { position: relative; aspect-ratio: 4 / 4.4; background-size: cover; }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tm-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(9,8,6,0.5) 100%); }
.team-member figcaption { padding: 1.1rem 1.3rem 1.4rem; text-align: center; }
.tm-name { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--heading); }
.tm-role { display: block; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); margin-top: 0.2rem; }
.tm-contact { display: flex; gap: 0.8rem; justify-content: center; margin-top: 0.9rem; }
.tm-contact a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-2); transition: 0.25s; }
.tm-contact a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.tm-contact svg { width: 16px; height: 16px; }

/* =========================================================
   BEAM CARD — black-glass card with a traveling gold light-beam
   border, ambient glow + 3D tilt. Ported (vanilla) from the
   sign-in-card-2 component, restyled to the black+gold brand.
   Applied to the evaluation & contact form cards.
   ========================================================= */
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.beam-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20,16,9,0.94), rgba(9,8,6,0.96));
  border: 1px solid rgba(216,179,104,0.14);
  border-radius: 16px;
  box-shadow: 0 44px 90px -44px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: perspective(1200px);
  will-change: transform;
  isolation: isolate;
}
/* traveling gold beam that races around the border */
.beam-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--beam-angle),
    transparent 0deg, rgba(216,179,104,0) 62deg,
    var(--gold-2) 88deg, #fff6dd 100deg, var(--gold-2) 112deg,
    rgba(216,179,104,0) 138deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; z-index: 3;
}
/* soft gold ambient wash inside the glass */
.beam-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80% 55% at 18% -5%, rgba(216,179,104,0.18), transparent 60%),
    radial-gradient(70% 50% at 100% 105%, rgba(216,179,104,0.10), transparent 60%);
}
@media (prefers-reduced-motion: no-preference) {
  .beam-card::before { animation: beamSpin 5s linear infinite; }
  .beam-card { animation: beamGlow 6.5s ease-in-out infinite; }
}
@keyframes beamSpin { to { --beam-angle: 360deg; } }
@keyframes beamGlow {
  0%, 100% { box-shadow: 0 44px 90px -44px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 rgba(216,179,104,0); }
  50% { box-shadow: 0 44px 90px -44px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.05), 0 0 40px -6px rgba(216,179,104,0.30); }
}

/* inner fields restyled for the dark glass */
.beam-card .field label { color: rgba(239,224,188,0.72); }
.beam-card .field input,
.beam-card .field select,
.beam-card .field textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(216,179,104,0.18);
  color: var(--paper);
}
.beam-card .field input::placeholder,
.beam-card .field textarea::placeholder { color: rgba(246,242,234,0.34); }
.beam-card .field input:focus,
.beam-card .field select:focus,
.beam-card .field textarea:focus {
  border-color: var(--gold-2);
  background: rgba(255,255,255,0.09);
}
.beam-card .field select option { color: #1a1a1a; background: #fff; }
.beam-card .form-note, .beam-card .form-status { color: rgba(246,242,234,0.58); }
/* contact's dark button would vanish on dark glass → gold */
.beam-card .btn-dark { background: var(--gold); color: var(--white); }
.beam-card .btn-dark:hover { background: var(--paper); color: var(--ink); }
/* keep tap targets honest & content above the beam layer */
.beam-card > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .beam-card { transform: none; }
}
