/* ============================================================
   Cima Consulting — styles
   Palette: near-black + champagne gold + warm off-white
   Type: Fraunces (display serif) / Inter (sans)
   ============================================================ */

:root {
  /* color */
  --bg: #0A0A0B;
  --bg-1: #0E0E11;
  --bg-2: #131317;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --gold: #D8B871;
  --gold-deep: #B98B43;
  --gold-bright: #E9D29A;

  --ink: #F4F1EA;       /* headings */
  --body: #C8C4BB;      /* body text */
  --muted: #8E8A81;     /* muted */
  --cool: #5E7C82;      /* subtle cool accent (glows only) */

  /* type scale (fluid) */
  --fs-hero: clamp(2.6rem, 6.2vw, 5.2rem);
  --fs-display: clamp(1.9rem, 3.6vw, 3.1rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body: 1.0625rem;

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; color: var(--ink); font-weight: 400; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: #1a1406; padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- shared type ---------- */
.display {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: var(--fs-display);
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 18ch;
}
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1.4rem;
}
.kicker {
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 0.7rem;
}
.kicker span {
  font-family: "Fraunces", serif; color: var(--gold); font-size: 0.95rem; letter-spacing: 0;
}
.lead { font-size: var(--fs-lead); color: var(--body); line-height: 1.55; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #1c1606;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 30px -12px rgba(216,184,113,0.5);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 16px 40px -12px rgba(216,184,113,0.65); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(216,184,113,0.06); }

.link-arrow { color: var(--gold); font-weight: 600; display: inline-flex; gap: 0.4rem; align-items: center; transition: gap 0.25s var(--ease), color 0.2s; }
.link-arrow:hover { color: var(--gold-bright); gap: 0.7rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto; padding: 1.1rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark { flex: none; }
.brand__word {
  font-family: "Fraunces", serif; font-weight: 500; letter-spacing: 0.16em; font-size: 1.02rem;
  color: var(--ink); display: inline-flex; align-items: baseline; gap: 0.5em;
}
.brand__sub { font-size: 0.58rem; letter-spacing: 0.34em; color: var(--muted); font-family: "Inter", sans-serif; font-weight: 600; }

.nav__links { margin-left: auto; display: flex; gap: 2rem; }
.nav__links a { font-size: 0.92rem; color: var(--body); transition: color 0.2s; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 0.5rem; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; margin-left: auto; }
.nav__toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 0.4rem; padding: 0.5rem var(--gutter) 1.6rem;
  background: rgba(10,10,11,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: 0.7rem 0; font-size: 1.05rem; color: var(--body); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border: 0; margin-top: 0.6rem; justify-content: center; }
.mobile-menu .btn { color: #1c1606; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 6rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.hero__glow--gold { width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; top: -12%; right: -8%;
  background: radial-gradient(circle, rgba(216,184,113,0.30), transparent 62%); }
.hero__glow--cool { width: 55vw; height: 55vw; max-width: 650px; max-height: 650px; bottom: -18%; left: -12%;
  background: radial-gradient(circle, rgba(94,124,130,0.22), transparent 65%); opacity: 0.5; }
.hero__ridge { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.8; }
.hero__grain {
  position: absolute; inset: 0; opacity: 0.04; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after { /* vignette */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 70% center; opacity: 0.55;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10,10,11,0.86) 38%, rgba(10,10,11,0.42) 72%, rgba(10,10,11,0.55) 100%),
    linear-gradient(180deg, rgba(10,10,11,0.5) 0%, transparent 30%, rgba(10,10,11,0.85) 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__title { font-family: "Fraunces", serif; font-weight: 400; font-size: var(--fs-hero); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 1.6rem; }
.hero__lede { font-size: var(--fs-lead); color: var(--body); max-width: 46ch; line-height: 1.55; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1px solid var(--line-strong); border-radius: 100px; display: grid; place-items: start center; padding-top: 8px; }
.hero__scroll span { width: 3px; height: 8px; border-radius: 3px; background: var(--gold); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section, .feature-band, [id] { scroll-margin-top: 84px; }
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-1), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 60ch; margin-bottom: 3.2rem; }
.section__head .kicker { margin-bottom: 1.1rem; }
.section__intro { margin-top: 1.2rem; max-width: 52ch; }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-firm { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.section--intro .intro__body { display: grid; gap: 1.4rem; }
.section--intro .intro__body .kicker { margin-bottom: 0.2rem; }
.section--intro .display { margin-bottom: 0.4rem; max-width: 20ch; }

/* media frames (image cards) */
.media-frame {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong); aspect-ratio: 3 / 2;
  background: radial-gradient(120% 90% at 30% 10%, rgba(216,184,113,0.16), transparent 55%), var(--bg-2);
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(0,0,0,0.5); pointer-events: none; }
.media-frame__fallback { display: none; position: absolute; inset: 0; }
.media-frame--empty img { display: none; }
.media-frame--empty .media-frame__fallback {
  display: block;
  background:
    repeating-linear-gradient(135deg, rgba(216,184,113,0.05) 0 2px, transparent 2px 22px),
    radial-gradient(120% 90% at 70% 10%, rgba(94,124,130,0.18), transparent 60%);
}

/* feature band (full-bleed cinematic image) */
.feature-band { position: relative; min-height: 56vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.feature-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.feature-band--empty { background: linear-gradient(135deg, var(--bg-2), var(--bg)); }
.feature-band--empty .feature-band__img { display: none; }
.feature-band__scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,11,0.65) 0%, rgba(10,10,11,0.2) 35%, rgba(10,10,11,0.92) 100%); }
.feature-band__content { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.feature-band__quote {
  font-family: "Fraunces", serif; font-weight: 400; font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.3; color: var(--ink);
  margin: 0; max-width: 24ch; letter-spacing: -0.01em;
}

/* sectors layout with aside image */
.grid-sectors { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.sectors__aside { position: sticky; top: 6rem; display: grid; gap: 1.8rem; }
.sectors__aside .section__head { margin-bottom: 0; }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--bg); padding: clamp(1.8rem, 3vw, 2.6rem); transition: background-color 0.3s var(--ease); }
.pillar:hover { background: var(--bg-2); }
.pillar__num { font-family: "Fraunces", serif; font-size: 0.8rem; color: var(--gold); letter-spacing: 0.1em; }
.pillar h3 { font-size: var(--fs-h3); margin: 0.9rem 0 0.7rem; font-family: "Fraunces", serif; font-weight: 500; }
.pillar p { color: var(--body); font-size: 1rem; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 2.5vw, 2.1rem); display: flex; flex-direction: column; gap: 0.9rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.service:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--bg-2); }
.service__top { display: flex; align-items: center; gap: 0.85rem; }
.service__index { font-family: "Fraunces", serif; font-size: 0.78rem; color: var(--gold); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0.2rem 0.5rem; letter-spacing: 0.05em; }
.service h3 { font-size: 1.18rem; font-family: "Fraunces", serif; font-weight: 500; }
.service p { color: var(--body); font-size: 0.98rem; }
.service--cta { background: linear-gradient(160deg, rgba(216,184,113,0.10), rgba(216,184,113,0.02)); border-color: rgba(216,184,113,0.25); }
.service--cta .link-arrow { margin-top: auto; }

/* sectors */
.sectors { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.sector { position: relative; padding: clamp(1.8rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); transition: border-color 0.3s, background-color 0.3s; }
.sector::before { content: ""; position: absolute; left: 0; top: 1.8rem; width: 3px; height: 26px; background: linear-gradient(var(--gold-bright), var(--gold-deep)); border-radius: 0 3px 3px 0; }
.sector:hover { border-color: var(--line-strong); background: var(--bg-2); }
.sector h3 { font-size: var(--fs-h3); font-family: "Fraunces", serif; font-weight: 500; margin-bottom: 0.7rem; padding-left: 1rem; }
.sector p { color: var(--body); font-size: 1rem; padding-left: 1rem; }

/* experience / stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2.6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 2.2rem 1.5rem 2.2rem 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold-bright); line-height: 1; letter-spacing: -0.02em; }
.stat__plus { color: var(--gold); }
.stat__label { display: block; margin-top: 0.8rem; font-size: 0.92rem; color: var(--muted); max-width: 24ch; }
/* a stat cell that is a short statement instead of a big number */
.stat--statement { display: flex; align-items: center; }
.stat__statement { font-family: "Fraunces", serif; font-weight: 400; font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.28; letter-spacing: -0.01em; color: var(--ink); max-width: 26ch; }
@media (max-width: 600px) { .stat--statement { align-items: flex-start; } }
.experience__copy { max-width: 70ch; font-size: var(--fs-lead); line-height: 1.6; }

/* about */
.grid-about { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about__media { position: sticky; top: 6rem; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-strong);
  background: radial-gradient(120% 90% at 30% 10%, rgba(216,184,113,0.18), transparent 55%), var(--bg-2);
  display: grid; place-items: center;
}
.portrait img {
  width: 100%; height: 100%; position: absolute; inset: 0;
  object-fit: cover; object-position: 50% 22%;   /* keep face in upper third */
  filter: grayscale(100%);
}
/* subtle gradient so the photo grounds into the dark card */
.portrait::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,11,0.55) 100%);
}
.portrait--empty::after { display: none; }
.portrait--empty { box-shadow: inset 0 0 0 1px var(--line); }
.about__role { color: var(--gold); font-size: 0.95rem; margin-top: 0.6rem; letter-spacing: 0.02em; }
.about__body { display: grid; gap: 1.4rem; }
.about__body .section__head { margin-bottom: 0.6rem; }
.creds { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 1.5rem; }
.creds li { position: relative; padding-left: 1.1rem; font-size: 0.95rem; color: var(--body); }
.creds li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.about__actions { margin-top: 0.6rem; }

/* contact */
.contact { position: relative; overflow: hidden; text-align: center; padding-block: clamp(5rem, 10vw, 9rem); }
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__bg .hero__glow--gold { top: -30%; right: 50%; transform: translateX(50%); opacity: 0.4; }
.contact__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.3rem; }
.contact__title { max-width: 20ch; margin-inline: auto; }
.contact__lede { max-width: 50ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-1); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__tag { color: var(--muted); font-size: 0.92rem; max-width: 38ch; margin-top: 1.1rem; line-height: 1.6; }
.footer__tag em { color: var(--gold); font-style: italic; }
.footer__nav, .footer__contact { display: grid; gap: 0.7rem; align-content: start; }
.footer__nav a, .footer__contact a { color: var(--body); font-size: 0.93rem; transition: color 0.2s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact span { color: var(--muted); font-size: 0.93rem; }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 2.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .grid-firm { grid-template-columns: 1fr; gap: 2.2rem; }
  .grid-firm .media-frame { max-width: 520px; }
  .grid-sectors { grid-template-columns: 1fr; gap: 2.2rem; }
  .sectors__aside { position: static; }
  .sectors__aside .media-frame { max-width: 520px; }
  .grid-about { grid-template-columns: 1fr; }
  .about__media { position: static; max-width: 250px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
  .stat:last-child { border-bottom: 0; }
  .creds { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__base { justify-content: flex-start; }
  .hero { min-height: 92svh; }
}
