/* =============================================================================
   Devineni.ai — Executive Brand Website
   assets/css/style.css
   -----------------------------------------------------------------------------
   Design language: Dark Slate + Gold accent + Glass cards + Premium typography.
   Inspiration: Apple / McKinsey / Gartner executive pages.
   No frameworks. Mobile-first, responsive, accessible (WCAG AA target).
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Dark slate palette */
  --slate-950: #0a0f16;   /* deepest background */
  --slate-900: #0d131c;   /* page background */
  --slate-850: #111a25;   /* alternating sections */
  --slate-800: #16212e;   /* raised surfaces */
  --slate-700: #1e2c3c;   /* borders / hovers */

  /* Gold accent */
  --gold:       #c9a84c;
  --gold-light: #e8d5a3;
  --gold-deep:  #b8952a;

  /* Text */
  --text:      #eef2f7;   /* primary text on dark */
  --text-soft: #c3cedb;   /* secondary text */
  --muted:     #8598ab;   /* muted text */

  /* Glass card surfaces */
  --card-bg:     rgba(255, 255, 255, 0.035);
  --card-bg-2:   rgba(255, 255, 255, 0.06);
  --card-border: rgba(201, 168, 76, 0.22);
  --hairline:    rgba(201, 168, 76, 0.14);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing rhythm */
  --section-y: clamp(4rem, 9vw, 8rem);
  --gutter:    clamp(1.25rem, 5vw, 4rem);
  --maxw:      1200px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:  0.6s;

  --radius: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
}

/* -----------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;   /* clip any horizontal overflow at the root (contains off-canvas nav) */
  width: 100%;
}

body {
  position: relative;
  font-family: var(--font-sans);
  background: var(--slate-900);
  color: var(--text);
  line-height: 1.65;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle grain + radial gold glow layered behind everything */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(201, 168, 76, 0.12), transparent 60%),
    radial-gradient(900px 600px at 6% 12%, rgba(46, 74, 104, 0.22), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

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

/* Screen-reader-only utility + skip link */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--gold); color: #1a1200; padding: 0.7rem 1.2rem;
  border-radius: 6px; z-index: 2000; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* -----------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: var(--section-y); position: relative; z-index: 1; }
.section--alt { background: var(--slate-850); }
.section--deep { background: var(--slate-950); }

/* Section heading block */
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head.center .eyebrow::before { display: none; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--gold); }

.section-intro {
  margin-top: 1.2rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 60ch;
}
.section-head.center .section-intro { margin-inline: auto; }

/* -----------------------------------------------------------------------------
   4. TOP NAVIGATION
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: rgba(13, 19, 28, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__logo { height: 34px; width: auto; display: block; }
.brand__mark { font-family: var(--font-serif); font-size: 1.25rem; letter-spacing: 0.06em; color: var(--text); }
.brand__mark em { font-style: italic; color: var(--gold); }
.brand__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); align-self: center; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--text-soft);
  border-radius: 6px;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.28rem;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav__cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem !important;
  border: 1px solid var(--gold);
  border-radius: 7px;
  color: var(--gold-light) !important;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--gold); color: #1a1200 !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; color: var(--text);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* -----------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-pad: 0.95rem 1.7rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: var(--btn-pad);
  font-family: var(--font-sans); font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 8px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: #1a1200; font-weight: 600;
  box-shadow: 0 14px 34px -14px rgba(201, 168, 76, 0.6);
}
.btn--gold:hover { box-shadow: 0 20px 42px -14px rgba(201, 168, 76, 0.8); }

.btn--ghost {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); background: var(--card-bg-2); }

.btn--sm { --btn-pad: 0.6rem 1.1rem; font-size: 0.8rem; }
.btn--block { width: 100%; }

/* -----------------------------------------------------------------------------
   6. GLASS CARD (shared surface)
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
/* Gold sheen that sweeps on hover */
.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.14), transparent 42%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  background: var(--card-bg-2);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card__icon {
  width: 46px; height: 46px; margin-bottom: 1.1rem;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--card-border);
  color: var(--gold-light);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; color: var(--text); margin-bottom: 0.5rem; }
.card p  { font-size: 0.92rem; color: var(--text-soft); line-height: 1.6; }
.card__note { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }

/* Generic responsive grid */
.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* -----------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
/* Faint frame corners for that "executive stationery" feel */
.hero__frame { position: absolute; inset: clamp(1rem, 3vw, 2.5rem); pointer-events: none; z-index: 1; }
.hero__frame span { position: absolute; width: 22px; height: 22px; border: 1px solid var(--gold); opacity: 0.4; }
.hero__frame span:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.hero__frame span:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.hero__frame span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.hero__frame span:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.hero__inner { position: relative; z-index: 2; max-width: 940px; }

.hero__pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1.1rem; margin-bottom: 1.6rem;
  border: 1px solid var(--card-border); border-radius: 100px;
  background: var(--card-bg);
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light);
}
.hero__pill::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 0 rgba(201,168,76,0.6);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(201,168,76,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(201,168,76,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
}

.hero__name {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.hero__name em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__role {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 500;
  color: var(--gold-light); letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.hero__cred { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 0.3rem; }
.hero__pillars {
  color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 2rem;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.22; color: var(--text);
  max-width: 22ch; margin-bottom: 1.1rem;
}
.hero__sub {
  color: var(--text-soft); font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 62ch; margin-bottom: 2.2rem;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }

/* Hero stats row */
.stats {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--hairline);
  padding-top: 2.2rem;
}
.stat__value {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--gold) 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat__label {
  margin-top: 0.5rem; font-size: 0.8rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}

/* -----------------------------------------------------------------------------
   8. SERVICE / SIGNATURE-FRAMEWORK VARIANTS
   -------------------------------------------------------------------------- */
.framework { padding: 1.9rem; }
.framework__code {
  display: inline-flex; align-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.14em; color: var(--gold);
  padding: 0.3rem 0.7rem; border: 1px solid var(--card-border);
  border-radius: 6px; margin-bottom: 1rem;
}
.framework h3 { font-size: 1.28rem; margin-bottom: 0.65rem; }

/* Compact "chip" cards (industries) */
.chip {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1.05rem 1.2rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 10px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.chip:hover { border-color: var(--gold); transform: translateY(-3px); background: var(--card-bg-2); }
.chip svg { width: 22px; height: 22px; color: var(--gold-light); flex-shrink: 0; }
.chip span { font-size: 0.95rem; font-weight: 500; color: var(--text); }

/* -----------------------------------------------------------------------------
   9. CREDENTIALS TIMELINE
   -------------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 1rem; }
.timeline__item {
  position: relative; padding: 1.3rem 1.4rem 1.3rem 2.4rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.timeline__item::before {
  content: ''; position: absolute; left: 1.1rem; top: 1.65rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201,168,76,0.16);
}
.timeline__item:hover { border-color: var(--gold); transform: translateX(3px); }
.timeline__item h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.timeline__item p  { font-size: 0.87rem; color: var(--muted); }

/* -----------------------------------------------------------------------------
   10. BOARD ADVISORY SPLIT
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; } }

.board-points { display: grid; gap: 0.9rem; }
.board-point {
  display: flex; gap: 0.95rem; align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--card-bg); border: 1px solid var(--hairline);
  border-radius: 11px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.board-point:hover { border-color: var(--card-border); background: var(--card-bg-2); }
.board-point__num {
  font-family: var(--font-serif); font-size: 0.95rem; color: var(--gold);
  flex-shrink: 0; width: 26px;
}
.board-point h4 { font-family: var(--font-sans); font-size: 0.98rem; font-weight: 600; color: var(--text); margin-bottom: 0.15rem; }
.board-point p  { font-size: 0.86rem; color: var(--text-soft); }

/* -----------------------------------------------------------------------------
   11. TESTIMONIALS
   -------------------------------------------------------------------------- */
.quote {
  position: relative; padding: 2rem 1.8rem 1.8rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.quote::before {
  content: '\201C';
  position: absolute; top: 0.2rem; left: 1.1rem;
  font-family: var(--font-serif); font-size: 4rem; color: var(--gold);
  opacity: 0.4; line-height: 1;
}
.quote p { font-family: var(--font-serif); font-style: italic; font-size: 1.08rem; color: var(--text); line-height: 1.5; margin-bottom: 1.2rem; }
.quote__by { display: flex; flex-direction: column; }
.quote__name { font-weight: 600; color: var(--gold-light); font-size: 0.92rem; }
.quote__role { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

/* -----------------------------------------------------------------------------
   12. INSIGHT / PUBLICATION CARDS
   -------------------------------------------------------------------------- */
.insight { display: flex; flex-direction: column; }
.insight__cat {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 0.8rem;
}
.insight h3 { font-size: 1.18rem; margin-bottom: 0.6rem; }
.insight p { flex: 1; }
.insight__more {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 1.2rem; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--gold-light);
}
.insight__more svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.card:hover .insight__more svg { transform: translateX(4px); }

/* -----------------------------------------------------------------------------
   13. CONTACT
   -------------------------------------------------------------------------- */
.contact { text-align: center; }
.contact__grid {
  display: grid; gap: 1rem; margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  text-align: left;
}
.contact__item {
  display: flex; align-items: center; gap: 0.95rem;
  padding: 1.15rem 1.3rem;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact__item:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact__item svg { width: 22px; height: 22px; color: var(--gold-light); flex-shrink: 0; }
.contact__item .lbl { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: block; }
.contact__item .val { font-size: 0.95rem; color: var(--text); word-break: break-word; }

.calendar-placeholder {
  margin-top: 2.4rem; padding: 2rem;
  border: 1px dashed var(--card-border); border-radius: var(--radius);
  background: var(--card-bg); color: var(--muted);
}
.calendar-placeholder strong { color: var(--gold-light); display: block; margin-bottom: 0.4rem; font-family: var(--font-serif); font-size: 1.1rem; }

/* -----------------------------------------------------------------------------
   14. DOWNLOADS ROW
   -------------------------------------------------------------------------- */
.download { text-align: center; align-items: center; }
.download .card__icon { margin-inline: auto; }
.download h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }

/* -----------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--slate-950);
  padding-block: 2.6rem;
  position: relative; z-index: 1;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; }
.footer__brand { font-family: var(--font-serif); font-size: 1.1rem; color: var(--text); }
.footer__brand em { font-style: italic; color: var(--gold); }
.footer__meta { font-size: 0.8rem; color: var(--muted); }
.footer__links { display: flex; gap: 1.2rem; }
.footer__links a { font-size: 0.82rem; color: var(--text-soft); transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--gold-light); }

/* -----------------------------------------------------------------------------
   16. PAGE HEADER (sub-pages)
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 1rem; }
.page-hero h1 em { font-style: italic; color: var(--gold); }
.breadcrumb { font-size: 0.78rem; color: var(--muted); margin-bottom: 1.4rem; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold-light); }

/* -----------------------------------------------------------------------------
   17. SCROLL-REVEAL ANIMATION
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Stagger children */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* Back-to-top */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold); color: #1a1200; border: 0; cursor: pointer;
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 12px 26px -10px rgba(201,168,76,0.6);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* -----------------------------------------------------------------------------
   18. RESPONSIVE — mobile nav + spacing
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 0 0 0 auto;
    width: min(80vw, 320px);
    max-width: 100%;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0.2rem;
    padding: 5rem 1.4rem 2rem;
    background: rgba(10, 15, 22, 0.96);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--hairline);
    transform: translateX(100%);
    /* visibility:hidden keeps the off-canvas panel out of the scrollable area
       (prevents mobile horizontal scroll); transition-delay lets it animate out */
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .nav.open { transform: translateX(0); visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
  .nav a { padding: 0.85rem 1rem; font-size: 0.95rem; border-radius: 8px; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a.active { background: var(--card-bg); }
  .nav__cta { margin: 0.6rem 0 0; text-align: center; }
  body.nav-open { overflow: hidden; }
  .nav-scrim {
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .nav-scrim.show { opacity: 1; pointer-events: auto; }
}

@media (min-width: 861px) { .nav-scrim { display: none; } }

/* Defensive: media never exceeds its column (prevents overflow scroll) */
img, svg, video, canvas, iframe { max-width: 100%; }
/* Long strings (emails, URLs) wrap instead of forcing width */
.contact__item .val, .footer__meta, .breadcrumb { overflow-wrap: anywhere; }

/* Small phones — tighten spacing & make primary CTAs full-width for easy tapping */
@media (max-width: 520px) {
  :root { --gutter: 1.15rem; }
  .hero__ctas { gap: 0.7rem; }
  .hero__ctas .btn { flex: 1 1 100%; }        /* stack CTAs full-width */
  .hero__frame { inset: 0.75rem; }
  .stats { gap: 1.4rem 1rem; }
  .section-head { margin-bottom: 2rem; }
  .card { padding: 1.35rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; gap: 0.8rem 1.1rem; }
}

/* -----------------------------------------------------------------------------
   19. MOTION / CONTRAST PREFERENCES (accessibility)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Print — clean, ink-friendly */
@media print {
  body { background: #fff; color: #000; }
  body::before, .topbar, .to-top, .nav-toggle, .nav-scrim { display: none !important; }
  .card, .chip, .quote { border-color: #ccc; box-shadow: none; }
}
