/* ============================================================
   TMA · Option 4 — "Aurum Command"
   Cinematic gold-on-obsidian intelligence aesthetic
   ============================================================ */
:root {
  --bg0: #050609;
  --bg1: #0a0c11;
  --panel: #10131b;
  --panel-hi: #151926;

  --ink: #f3efe6;
  --dim: #aea795;
  --faint: #8f897b;

  --gold: #c9a468;
  --gold-hi: #ecd3a2;
  --gold-deep: #8f7340;


  --line: rgba(243, 239, 230, 0.08);
  --line-strong: rgba(243, 239, 230, 0.16);
  --line-gold: rgba(201, 164, 104, 0.30);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.21, 1);

  --z-nav: 55;
  --z-menu: 50;
  --z-grain: 60;
  --z-progress: 70;
}

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

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

body {
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(201, 164, 104, 0.28); color: var(--ink); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Atmosphere ---------- */
/* Three full-viewport fixed layers sit over/under the page. Containing their
   layout and paint keeps them off the main scroll repaint path. Deliberately
   not `contain: strict` (which adds size containment) and not force-promoted
   with will-change: these are viewport-sized, and three extra compositor
   layers would cost more GPU memory than the repaint they save. */
.grain,
.aurora,
.vignette {
  contain: layout paint;
}
.grain {
  position: fixed; inset: 0; z-index: var(--z-grain);
  pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46rem 34rem at 82% -6%, rgba(201, 164, 104, 0.13), transparent 62%),
    radial-gradient(40rem 30rem at 4% 22%, rgba(63, 82, 128, 0.14), transparent 65%),
    radial-gradient(52rem 40rem at 90% 105%, rgba(201, 164, 104, 0.06), transparent 60%);
}
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.5));
}

main { position: relative; z-index: 1; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: var(--z-progress); pointer-events: none;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-hi));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: 1.5rem; }

.skip-link {
  position: absolute; top: -4rem; left: 1.5rem; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--panel);
  border: 1px solid var(--line-gold); border-radius: 999px;
  font-size: 0.8rem; transition: transform 0.4s var(--ease);
}
.skip-link:focus { transform: translateY(5.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--line-gold); border-radius: 999px;
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 164, 104, 0.06);
}
.eyebrow::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 1px rgba(201, 164, 104, 0.9);
}

/* Section scaffolding: framed heads with roman numerals */
.section { position: relative; padding-block: clamp(6rem, 12vw, 10.5rem); }
section[id] { scroll-margin-top: 6.5rem; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 6rem; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head .head-main { max-width: 46rem; }
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 1.06; letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--gold-hi); }
.section-lede { margin-top: 1.3rem; max-width: 38rem; color: var(--dim); font-size: 0.98rem; line-height: 1.85; }
.head-meta {
  flex: none; text-align: right;
  font-family: var(--serif); font-style: italic;
  color: var(--faint); font-size: 1.05rem;
  padding-bottom: 0.3rem;
  white-space: nowrap;
}
.head-meta .no {
  display: block;
  font-style: normal;
  font-size: 2.2rem; line-height: 1;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

/* Ghost numerals behind sections */
.ghost-no {
  position: absolute; top: clamp(2rem, 5vw, 4rem); right: -1rem;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(8rem, 18vw, 15rem); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 230, 0.045);
  pointer-events: none; user-select: none;
}

/* ---------- Reveal choreography (keyframes, cannot be clobbered) ---------- */
/* The rise animates filter as well as transform/opacity, which is the most
   expensive thing on the page. Elements are promoted to their own layer only
   while they are still waiting to appear — never after — so the compositor
   memory is bounded to what is off-screen. */
.reveal {
  opacity: 0;
  transform: translateY(2.2rem);
  filter: blur(10px);
  will-change: opacity, transform, filter;
}
.reveal.in-view {
  opacity: 1; transform: none; filter: none;
  animation: rise 1s var(--ease-out) var(--d, 0ms) backwards;
  will-change: auto;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(2.2rem); filter: blur(10px); }
}

/* Word-mask headline reveal */
/* Padding+negative-margin keeps serif ascenders/descenders inside the clip box */
.mask-line { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.12em 0.06em; margin: -0.12em -0.06em; }
.mask-line > span { display: inline-block; transform: translateY(115%); }
.in-view .mask-line > span { animation: unmask 0.95s var(--ease) var(--d, 0ms) both; }
@keyframes unmask { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .mask-line > span { transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 0.55rem 0.55rem 0.55rem 1.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 70%);
  color: #171207;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 0 0 1px rgba(201, 164, 104, 0.4),
    0 18px 50px -16px rgba(201, 164, 104, 0.45);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), filter 0.6s var(--ease);
}
.btn .orb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.15rem; height: 2.15rem; border-radius: 50%;
  background: rgba(23, 18, 7, 0.14);
  transition: transform 0.6s var(--ease), background 0.6s var(--ease);
}
.btn .orb svg { width: 0.85rem; height: 0.85rem; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 1px rgba(201,164,104,0.55), 0 24px 60px -14px rgba(201,164,104,0.55); }
.btn:hover .orb { transform: translate(2px, -2px) scale(1.07); background: rgba(23, 18, 7, 0.2); }
.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: rgba(243, 239, 230, 0.04);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px var(--line-strong);
}
.btn--ghost .orb { background: rgba(243, 239, 230, 0.08); }
.btn--ghost:hover { filter: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px var(--line-gold); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; letter-spacing: 0.06em; color: var(--dim);
  transition: color 0.5s var(--ease);
}
.link-quiet .tick { width: 3rem; height: 1px; background: var(--faint); transform: scaleX(0.667); transform-origin: left center; transition: transform 0.5s var(--ease), background 0.5s var(--ease); }
.link-quiet:hover { color: var(--gold-hi); }
.link-quiet:hover .tick { transform: scaleX(1); background: var(--gold); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 1.3rem; left: 50%; transform: translateX(-50%);
  z-index: var(--z-nav);
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.5rem 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.6);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(243, 239, 230, 0.07), 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  max-width: calc(100vw - 2rem);
}
.brand { display: flex; align-items: center; gap: 0.6rem; margin-right: 0.9rem; white-space: nowrap; }
.brand img { height: 2.15rem; width: auto; }
.brand .wordmark {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--dim);
}
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  padding: 0.5rem 0.85rem; border-radius: 999px;
  font-size: 0.78rem; letter-spacing: 0.05em; color: var(--dim);
  transition: color 0.45s var(--ease), background 0.45s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(243, 239, 230, 0.05); }
.nav-links a.active { color: var(--gold-hi); background: rgba(201, 164, 104, 0.09); }
.nav .btn { padding: 0.32rem 0.32rem 0.32rem 1.05rem; font-size: 0.72rem; margin-left: 0.55rem; }
.nav .btn .orb { width: 1.7rem; height: 1.7rem; }

.nav-toggle {
  display: none; position: relative;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(243, 239, 230, 0.05);
}
.nav-toggle .bar {
  position: absolute; left: 50%; top: 50%;
  width: 1.05rem; height: 1px; background: var(--ink);
  transition: transform 0.55s var(--ease);
}
.nav-toggle .bar:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
.nav-toggle .bar:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem;
  background: rgba(5, 6, 9, 0.9);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0s linear 0.7s;
}
.menu-overlay.open { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease); }
.menu-overlay a {
  display: block; overflow: hidden;
  font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.6rem);
  font-weight: 500; line-height: 1.35; color: var(--ink);
}
.menu-overlay a > span {
  display: block; transform: translateY(110%); opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.menu-overlay.open a > span { transform: translateY(0); opacity: 1; }
.menu-overlay :is(a:nth-child(1), li:nth-child(1) a) > span { transition-delay: 0.08s; }
.menu-overlay :is(a:nth-child(2), li:nth-child(2) a) > span { transition-delay: 0.14s; }
.menu-overlay :is(a:nth-child(3), li:nth-child(3) a) > span { transition-delay: 0.2s; }
.menu-overlay :is(a:nth-child(4), li:nth-child(4) a) > span { transition-delay: 0.26s; }
.menu-overlay :is(a:nth-child(5), li:nth-child(5) a) > span { transition-delay: 0.32s; }
.menu-overlay :is(a:nth-child(6), li:nth-child(6) a) > span { transition-delay: 0.38s; }
.menu-overlay a:hover { color: var(--gold-hi); }
.menu-overlay .menu-foot {
  margin-top: 3rem; font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
}
@media (min-width: 64.0625rem) {
  .menu-overlay { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 7.5rem; padding-bottom: 7.5rem; /* clears the scroll cue on short laptops */
  overflow: clip;
}
/* Balanced two-column hero: words left, globe fully visible right */
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas: "copy visual" "stats stats";
  column-gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-visual {
  grid-area: visual;
  position: relative;
  width: 100%; max-width: 34rem;
  aspect-ratio: 1;
  margin-inline: auto;
  pointer-events: none;
}
#globe { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.95; }
.hero-halo {
  position: absolute; inset: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(201, 164, 104, 0.12), transparent 62%);
}
.hero .eyebrow { margin-bottom: 2.2rem; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3rem, 8.2vw, 6.7rem);
  line-height: 1.02; letter-spacing: -0.015em;
  max-width: 16ch; text-wrap: balance;
}
.hero-title em { font-style: italic; font-weight: 400; }
/* Gradient must live on the transformed spans themselves: transformed descendants
   escape an ancestor's background-clip text mask while color:transparent inherits */
.hero-title em .mask-line > span {
  background: linear-gradient(110deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin-top: 2rem; max-width: 34rem;
  color: var(--dim); font-size: clamp(0.95rem, 1.4vw, 1.05rem); line-height: 1.85;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2.8rem; }

.hero-stats {
  grid-area: stats;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.hero-stats > div { background: var(--bg0); padding: 1.6rem 1.5rem; position: relative; }
.hero-stats > div::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 1.6rem; height: 1px; background: var(--gold);
}
.hero-stats .num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.hero-stats .num .suffix { color: var(--gold); }
.hero-stats .label {
  margin-top: 0.35rem;
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint);
}
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 2.4rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Ticker ---------- */
.ticker {
  padding-block: 2rem;
  border-block: 1px solid var(--line);
  overflow: hidden; position: relative;
  background: rgba(10, 12, 17, 0.5);
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 9rem; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg0), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg0), transparent); }
.ticker-run { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker:hover .ticker-run { animation-play-state: paused; }
.ticker-track { display: flex; align-items: center; gap: 4.5rem; padding-right: 4.5rem; }
.ticker .mark {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--faint); white-space: nowrap;
  transition: color 0.5s var(--ease);
}
.ticker .mark:hover { color: var(--gold-hi); }
.ticker .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold-deep); flex: none; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(3rem, 7vw, 6.5rem); align-items: start;
}
.about-quote {
  position: relative;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance;
  padding: 2.2rem 0 0 2.4rem;
}
.about-quote::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 3.2rem; height: 3.2rem;
  border-top: 1px solid var(--line-gold);
  border-left: 1px solid var(--line-gold);
}
.about-quote em { font-style: italic; font-weight: 400; color: var(--gold-hi); }
.about-copy { position: relative; padding-top: 0.5rem; }
.about-copy::before {
  content: ""; position: absolute; left: -2.2rem; top: 0.8rem; bottom: 0.8rem;
  width: 1px; background: linear-gradient(180deg, var(--gold), transparent);
}
.about-copy p { color: var(--dim); font-size: 0.98rem; line-height: 1.9; }
.about-copy p + p { margin-top: 1.4rem; }
.about-copy .link-quiet { margin-top: 2.2rem; }
.about-sig {
  margin-top: 2.6rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 1rem;
}
.about-sig .sig-serif { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--gold-hi); }
.about-sig .sig-caption { font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }

/* ---------- Bezel cards ---------- */
.bezel {
  padding: 0.45rem; border-radius: 1.75rem;
  background: rgba(243, 239, 230, 0.025);
  border: 1px solid var(--line);
  transition: border-color 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.bezel-core {
  position: relative; height: 100%;
  border-radius: 1.25rem;
  background: linear-gradient(165deg, var(--panel-hi), var(--panel) 55%, var(--bg1));
  border: 1px solid rgba(243, 239, 230, 0.045);
  box-shadow: inset 0 1px 1px rgba(243, 239, 230, 0.06);
  overflow: hidden;
}
.bezel:hover {
  border-color: var(--line-gold);
  transform: translateY(-5px);
  box-shadow: 0 30px 70px -30px rgba(201, 164, 104, 0.22);
}
.bezel-core::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(19rem 19rem at var(--mx, 50%) var(--my, 50%), rgba(201, 164, 104, 0.1), transparent 65%);
  opacity: 0; transition: opacity 0.7s var(--ease); pointer-events: none;
}
.bezel:hover .bezel-core::before { opacity: 1; }

/* ---------- Services bento ---------- */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.svc { grid-column: span 4; }
.svc--wide { grid-column: span 7; }
.svc--tall { grid-column: span 5; }
.svc--full { grid-column: span 12; }
.svc .bezel-core { padding: clamp(1.8rem, 3vw, 2.6rem); display: flex; flex-direction: column; }
.svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.3rem; height: 3.3rem; margin-bottom: 1.6rem;
  border-radius: 1rem;
  border: 1px solid var(--line-gold);
  background: rgba(201, 164, 104, 0.06);
  color: var(--gold-hi);
  transition: transform 0.7s var(--ease);
}
.svc-icon svg { width: 1.45rem; height: 1.45rem; }
.bezel:hover .svc-icon { transform: translateY(-3px) rotate(-3deg); }
.svc h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; margin-bottom: 0.7rem; }
.svc p { color: var(--dim); font-size: 0.89rem; line-height: 1.8; max-width: 36rem; }
.svc-index {
  position: absolute; top: 1.6rem; right: 1.8rem;
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--faint);
}
.svc--full .bezel-core {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.svc--full .svc-body { max-width: 38rem; }
.svc--full .svc-meta { display: flex; gap: 2.8rem; padding-right: 1rem; }
.svc--full .svc-meta .m-num { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--gold-hi); }
.svc--full .svc-meta .m-label { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 0.2rem; }

/* ---------- Competencies + radar ---------- */
.comp-layout {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.comp-cols { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); }
.comp-item {
  display: flex; align-items: baseline; gap: 1.3rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.6s var(--ease);
}
.comp-item:hover { border-color: var(--line-gold); }
.comp-item .idx {
  font-family: var(--serif); font-style: italic;
  font-size: 0.9rem; color: var(--gold-deep);
  min-width: 1.9rem; font-variant-numeric: tabular-nums;
  transition: color 0.6s var(--ease), transform 0.6s var(--ease);
}
.comp-item .name {
  flex: 1; font-size: 0.9rem; letter-spacing: 0.03em; color: var(--dim);
  transition: color 0.6s var(--ease), transform 0.6s var(--ease);
}
.comp-item:hover .idx { color: var(--gold-hi); transform: translateX(0.7rem); }
.comp-item:hover .name { color: var(--ink); transform: translateX(0.7rem); }

.radar-panel { position: sticky; top: 7rem; }
.radar-panel .bezel-core { padding: 2.2rem; }
.radar {
  position: relative; width: 100%; aspect-ratio: 1;
  max-width: 20rem; margin-inline: auto;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  overflow: hidden;
  background:
    radial-gradient(circle, transparent 0, transparent 32.9%, rgba(201,164,104,0.14) 33%, transparent 33.4%),
    radial-gradient(circle, transparent 0, transparent 65.9%, rgba(201,164,104,0.14) 66%, transparent 66.4%),
    linear-gradient(0deg, transparent 49.8%, rgba(201,164,104,0.1) 50%, transparent 50.2%),
    linear-gradient(90deg, transparent 49.8%, rgba(201,164,104,0.1) 50%, transparent 50.2%),
    radial-gradient(circle at 50% 50%, rgba(201, 164, 104, 0.05), transparent 70%);
}
.radar-sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(201, 164, 104, 0.25), transparent 18%);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-hi); }
.blip::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(201, 164, 104, 0.5);
  animation: blip 3s var(--ease) infinite;
  opacity: 0;
}
@keyframes blip {
  0% { transform: scale(0.4); opacity: 0.9; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}
.blip:nth-child(2) { top: 30%; left: 62%; }
.blip:nth-child(3) { top: 58%; left: 28%; animation-delay: 1s; }
.blip:nth-child(4) { top: 44%; left: 74%; }
.blip:nth-child(3)::after { animation-delay: 1s; }
.blip:nth-child(4)::after { animation-delay: 2s; }
.radar-caption { margin-top: 1.6rem; text-align: center; }
.radar-caption .rc-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.radar-caption .rc-sub { margin-top: 0.3rem; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }

/* ---------- Portfolio: real partner logos ---------- */
.partners-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1.75rem; overflow: hidden;
}
.partner {
  background: var(--bg1);
  padding: 1.6rem 1.2rem 1.4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  transition: background 0.7s var(--ease);
  position: relative;
}
.partner:hover { background: var(--panel); }
.partner .chip {
  width: 100%; height: 6.2rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.9rem;
  background: rgba(243, 239, 230, 0.03);
  border: 1px solid rgba(243, 239, 230, 0.05);
  padding: 0.85rem 1rem;
  transition: border-color 0.7s var(--ease), transform 0.7s var(--ease);
}
.partner:hover .chip { border-color: var(--line-gold); transform: translateY(-3px); }
/* Wide wordmarks are width-bound; square marks must be taller to read at the
   same optical weight, so they are sized per aspect ratio rather than uniformly. */
.partner .chip img { max-height: 2.6rem; max-width: 100%; width: auto; object-fit: contain; }
.partner .chip--square img { max-height: 4.5rem; }
.partner .chip--tall img { max-height: 3.5rem; }
.partner .fallback-name {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim);
}
.partner .pmeta { text-align: center; }
.partner .pname { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.partner .ptype { margin-top: 0.15rem; font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

/* ---------- Contact ---------- */
.contact-panel .bezel-core {
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.contact-panel .bezel-core::after {
  content: ""; position: absolute; top: -30%; right: -12%;
  width: 28rem; height: 28rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 104, 0.1), transparent 65%);
  pointer-events: none;
}
.contact-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.08; text-wrap: balance;
}
.contact-title em { font-style: italic; font-weight: 400; color: var(--gold-hi); }
.contact-sub { margin-top: 1.2rem; color: var(--dim); font-size: 0.95rem; max-width: 30rem; }
.contact-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.contact-panel .bezel-core > * { min-width: 0; }
.contact-cta .btn { max-width: 100%; overflow-wrap: anywhere; }
.contact-details .value { overflow-wrap: anywhere; }
.contact-details { display: grid; gap: 1.6rem; position: relative; z-index: 1; }
.contact-details .item { border-left: 1px solid var(--line-gold); padding-left: 1.4rem; }
.contact-details .label {
  font-size: 0.625rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 0.35rem;
}
.contact-details .value { font-size: 0.92rem; color: var(--ink); line-height: 1.7; }
.contact-details a.value { transition: color 0.5s var(--ease); }
.contact-details a.value:hover { color: var(--gold-hi); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 4rem 0 2.5rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.footer .f-logo { height: 2.9rem; width: auto; }
.footer .tagline { margin-top: 0.8rem; font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--faint); }
.footer-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; align-items: center; }
.footer-nav a { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--dim); transition: color 0.5s var(--ease); }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-base {
  margin-top: 3rem; padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.7rem; letter-spacing: 0.08em; color: var(--faint);
}

/* ---------- Responsive ---------- */
/* A site title of any length has to survive the nav pill. Cap it, then drop it
   entirely in the tight band above the mobile breakpoint — the mark carries the
   brand there, and the link keeps its name from the aria-label in header.php. */
.brand .wordmark {
  display: inline-block;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
@media (max-width: 82rem) and (min-width: 64.0625rem) {
  .brand .wordmark { display: none; }
}
@media (max-width: 64rem) {
  .nav { top: 1rem; left: 1rem; right: 1rem; transform: none; justify-content: space-between; padding: 0.5rem 0.5rem 0.5rem 1.1rem; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .svc, .svc--wide, .svc--tall { grid-column: span 6; }
  .svc--full { grid-column: span 12; }
  /* keep 5 columns at tablet: 10 logos divide evenly, no orphan row */
  .comp-layout { grid-template-columns: 1fr; }
  .radar-panel { position: static; max-width: 26rem; margin-inline: auto; width: 100%; }
  .hero .container { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "stats"; }
  .hero-visual { max-width: 24rem; margin-top: 2.5rem; }
}
@media (max-width: 48rem) {
  .container { padding-inline: 1.25rem; }
  .hero { padding-top: 6.5rem; }
  .hero-visual { max-width: 19rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .scroll-cue { display: none; }
  .section { padding-block: 5rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .head-meta { text-align: left; }
  .ghost-no { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-copy::before { left: -1.25rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .svc, .svc--wide, .svc--tall, .svc--full { grid-column: span 1; }
  .svc--full .bezel-core { flex-direction: column; align-items: flex-start; }
  .comp-cols { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panel .bezel-core { grid-template-columns: 1fr; }
}
/* ============================================================
   WordPress core markup
   Classes the editor and core templates emit. Required for a
   theme to render user content faithfully.
   ============================================================ */

/* ---------- Accessibility ---------- */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
  word-wrap: normal;
}
.screen-reader-text:focus {
  clip-path: none;
  height: auto; width: auto;
  display: block;
  top: 5px; left: 5px;
  z-index: 100000;
  padding: 0.9rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8rem;
  text-decoration: none;
}

/* ---------- Alignment ---------- */
.alignleft {
  float: left;
  margin: 0.4rem 1.8rem 1.4rem 0;
}
.alignright {
  float: right;
  margin: 0.4rem 0 1.4rem 1.8rem;
}
.aligncenter {
  clear: both;
  display: block;
  margin-inline: auto;
  margin-block: 1.6rem;
}
.alignnone { margin: 1.6rem 0; }
.alignwide {
  max-width: min(72rem, 92vw);
  margin-inline: auto;
}
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.entry-content > * { margin-bottom: 1.5rem; }
.entry-content::after { content: ""; display: table; clear: both; }

/* ---------- Media and captions ---------- */
.entry-thumbnail {
  display: block;
  margin: 2.4rem 0;
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.entry-thumbnail img { width: 100%; height: auto; }
.wp-caption {
  max-width: 100%;
  margin-bottom: 1.6rem;
}
.wp-caption img { border-radius: 0.8rem; }
.wp-caption-text,
.gallery-caption,
figcaption {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-align: center;
}
.wp-block-image img,
.wp-block-cover,
.wp-block-embed { border-radius: 0.9rem; }

/* ---------- Editor blocks ---------- */
.wp-block-quote,
blockquote.wp-block-quote {
  margin: 2.2rem 0;
  padding-left: 1.6rem;
  border-left: 1px solid var(--line-gold);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink);
}
.wp-block-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-style: normal;
}
.wp-block-pullquote { border-block: 1px solid var(--line-gold); padding: 2rem 0; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td,
.wp-block-table th {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.wp-block-code,
pre {
  padding: 1.2rem 1.4rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow-x: auto;
  font-size: 0.82rem;
}
.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.6rem auto;
}
.wp-block-button__link {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--gold-hi);
  text-decoration: none;
}

/* ---------- Entry titles ---------- */
/* The blog index cards reuse the service-card shell but must keep a correct
   heading order (h1 page title -> h2 entries), so the styling is bound to the
   class rather than to `.svc h3`. */
.entry-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--gold-hi); }

/* ---------- Post states ---------- */
.sticky { position: relative; }
.sticky .bezel-core { border-color: var(--line-gold); }
.bypostauthor > .comment-body { border-left: 1px solid var(--line-gold); padding-left: 1.2rem; }

/* ---------- Post and comment navigation ---------- */
.post-navigation,
.posts-navigation,
.comment-navigation,
.pagination {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.post-navigation .nav-links,
.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.nav-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.3rem;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--dim);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { color: var(--gold-hi); }
.page-links { margin-top: 1.6rem; font-size: 0.8rem; color: var(--faint); }

/* ---------- Comments ---------- */
.comments-area {
  margin-top: 4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.comments-title,
.comment-reply-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.8rem;
}
.comment-list,
.comment-list .children { list-style: none; padding: 0; }
.comment-list .children { margin-left: 1.6rem; }
.comment-body {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.comment-author { display: flex; align-items: center; gap: 0.7rem; }
.comment-author img { border-radius: 999px; }
.comment-author .fn { font-weight: 500; font-style: normal; }
.comment-metadata,
.comment-awaiting-moderation {
  margin-top: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.comment-content { margin-top: 0.9rem; color: var(--dim); font-size: 0.9rem; }
.comment-form { margin-top: 2.4rem; display: grid; gap: 1.1rem; }
.comment-form label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.4rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.comment-form input:focus,
.comment-form textarea:focus,
.search-field:focus { border-color: var(--line-gold); outline: none; }
.comment-form .form-submit input[type="submit"],
.search-submit {
  padding: 0.8rem 1.7rem;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: none;
  color: var(--gold-hi);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.5s var(--ease);
}
.comment-form .form-submit input[type="submit"]:hover,
.search-submit:hover { background: rgba(201, 164, 104, 0.1); }
.no-comments { color: var(--faint); font-size: 0.85rem; }
