/* =============================================================
   ASOMTesis — styles.css
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components
   6. Sections
   7. Effects
   8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 40%; }
@property --angle      { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  /* Palette — navy + gold, drawn from the ASOMTesis mark */
  --bg:        #0a244d;   /* deep navy, never pure black */
  --bg-2:      #0e2c5c;
  --bg-3:      #163d70;   /* card surface */
  --bg-4:      #1c4a84;   /* card surface, hover */
  --cream:     #f4eee0;   /* text on dark — never pure white */
  --cream-2:   #dcd2ba;
  --cream-3:   #93a1bf;   /* muted metadata */
  --gold:      #c99a45;
  --gold-2:    #e6b055;   /* hover / bright */
  --gold-dim:  #8a6b30;
  --line:      rgba(244, 238, 224, 0.14);
  --line-soft: rgba(244, 238, 224, 0.08);
  --shadow-color: 210 70% 3%;

  /* Type */
  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1180px;
  --nav-h: 84px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-weight: 500; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--gold); color: var(--bg);
  border-radius: 8px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.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;
}

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-2); font-weight: 600;
}
.kicker::before {
  content: ""; width: 24px; height: 1px; background: var(--gold-2);
}

.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head {
  max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 { margin-top: .9rem; }
.section-head p { margin-top: 1.1rem; font-size: 1.05rem; color: var(--cream-3); }
.section-head.is-center { max-width: 680px; margin-inline: auto; text-align: center; }
.section-head.is-center .kicker { justify-content: center; }
.section-head.is-center .kicker::before { display: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1, h2, h3 { font-family: var(--serif); color: var(--cream); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-2); }

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }

.eyebrow-quote {
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream-2);
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s, border-color .3s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1204;
  box-shadow: 0 10px 28px -8px rgba(201, 154, 69, 0.55);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -10px rgba(201, 154, 69, 0.7); }
.btn-gold:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-3px); }

.btn-line {
  padding: 0; border-radius: 0; gap: .5rem;
  color: var(--gold-2); font-weight: 600; font-size: .88rem;
  position: relative;
}
.btn-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.btn-line:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-line svg { width: 15px; height: 15px; transition: transform .35s var(--ease-out); }
.btn-line:hover svg { transform: translateX(3px); }

/* Cards base + tilt/halo signature */
.has-tilt {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), border-color .4s, background .4s;
  position: relative; isolation: isolate;
}
.has-tilt:hover { transition-duration: .15s; }
.has-tilt::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(230, 176, 85, 0.25), transparent 62%);
  opacity: 0; transition: opacity .4s;
  mix-blend-mode: screen;
}
.has-tilt:hover::before { opacity: 1; }

/* Logo mark */
.brand-mark { display: inline-flex; align-items: center; }
.brand-logo { height: 32px; width: auto; display: block; }
.footer-about .brand-logo { height: 38px; }

/* Contact chips */
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .82rem; color: var(--cream-3);
  transition: border-color .3s, color .3s, background .3s;
}
.chip:hover { border-color: var(--gold-2); color: var(--gold-2); background: rgba(230,176,85,.06); }
.chip svg { width: 15px; height: 15px; }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Splash --- */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .9s var(--ease-out), clip-path 1s var(--ease-soft);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-mark img { width: 84px; height: auto; animation: splashPulse 1.6s var(--ease-soft) infinite; }
@keyframes splashPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 36, 77, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-link { position: relative; font-size: .92rem; color: var(--cream-2); padding: .3rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold-2);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.nav-burger {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
}
.nav-burger span { position: relative; width: 18px; height: 1px; background: var(--cream); display: block; }
.nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--cream); transition: transform .3s var(--ease-out);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
.nav-burger[aria-expanded="true"] span { background: transparent; }
.nav-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 400;
  background: var(--bg-2);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
  overflow-y: auto;
}
.nav-mobile[data-open="true"] { clip-path: inset(0 0 0 0); }
.nav-mobile-inner { padding: 2.5rem 1.5rem 3rem; display: flex; flex-direction: column; gap: .4rem; }
.nav-mobile a.nav-link { font-size: 1.5rem; font-family: var(--serif); padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.nav-mobile .btn { margin-top: 1.5rem; width: 100%; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: clip;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05) brightness(0.55); }
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,36,77,.72) 0%, rgba(10,36,77,.55) 45%, rgba(10,36,77,.95) 100%),
    linear-gradient(90deg, rgba(10,36,77,.85) 0%, rgba(10,36,77,.25) 60%);
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(55% 45% at var(--mesh-x) var(--mesh-y), rgba(201,154,69,.28), transparent 62%),
    conic-gradient(from var(--mesh-angle), rgba(230,176,85,.12), rgba(22,61,112,.06), rgba(201,154,69,.14), rgba(230,176,85,.12));
  filter: blur(90px) saturate(120%);
  opacity: .8;
  animation: meshShift 26s linear infinite;
  mix-blend-mode: screen;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 25%; --mesh-y: 35%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 72%; --mesh-y: 55%; }
  100% { --mesh-angle: 360deg; --mesh-x: 25%; --mesh-y: 35%; }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
.hero-inner { max-width: 760px; padding-block: 3rem; }
.hero-inner .kicker { margin-bottom: 1.4rem; }
.hero-title { margin-bottom: 1.4rem; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--cream-2); max-width: 54ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.6rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; }

/* --- Philosophy / stats --- */
.philosophy { }
.philosophy-grid {
  display: grid; gap: 3rem;
}
.philosophy-quote {
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--cream);
  max-width: 46ch;
}
.philosophy-figure {
  border-radius: 18px; overflow: hidden; margin-bottom: 2.2rem;
  border: 1px solid var(--line); aspect-ratio: 16 / 10;
}
.philosophy-figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05) brightness(.8); }
.philosophy-body p + p { margin-top: 1.1rem; }
.philosophy-body { color: var(--cream-3); font-size: 1.02rem; max-width: 52ch; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line-soft); }
.stat { }
.stat-value { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3rem); color: var(--gold-2); font-style: italic; }
.stat-label { margin-top: .35rem; font-size: .85rem; color: var(--cream-3); letter-spacing: .02em; }

.pillars { display: grid; gap: 1.4rem; margin-top: 3.2rem; }
.pillar { display: flex; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line-soft); }
.pillar:first-child { border-top: none; padding-top: 0; }
.pillar-num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.3rem; flex-shrink: 0; width: 2.2rem; }
.pillar h4 { font-family: var(--serif); color: var(--cream); font-size: 1.08rem; font-weight: 500; margin-bottom: .35rem; }
.pillar p { color: var(--cream-3); font-size: .95rem; }

/* --- Services --- */
.services-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.services-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.service-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.1rem 1.9rem;
  display: flex; flex-direction: column; gap: 1.2rem;
}
.service-card:hover { border-color: rgba(230,176,85,.35); background: var(--bg-4); }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(230,176,85,.18), rgba(201,154,69,.05));
  border: 1px solid rgba(230,176,85,.25);
}
.service-icon svg { width: 26px; height: 26px; color: var(--gold-2); }
.service-card h3 { font-size: 1.28rem; }
.service-card p { color: var(--cream-3); font-size: .95rem; flex-grow: 1; }
.service-more {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .86rem; font-weight: 600; color: var(--gold-2);
  align-self: flex-start;
}
.service-more svg { width: 15px; height: 15px; transition: transform .3s var(--ease-out); }
.service-card:hover .service-more svg { transform: translateX(4px); }

/* --- Plagio feature --- */
.plagio-section { position: relative; overflow: clip; }
.plagio-grid { display: grid; gap: 3rem; align-items: center; }
.plagio-features { display: grid; gap: 1rem; margin-top: 1.8rem; }
.plagio-feature { display: flex; gap: .85rem; align-items: flex-start; }
.plagio-feature svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-2); margin-top: .15rem; }
.plagio-feature p { font-size: .92rem; color: var(--cream-3); }
.plagio-feature strong { color: var(--cream); font-weight: 600; }

.report-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 22px;
  padding: 2.2rem; position: relative;
}
.report-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.6rem; }
.report-badge {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: .35rem .7rem; border-radius: 999px; background: rgba(120,190,110,.16); color: #8fd18a;
}
.gauge-wrap { display: flex; align-items: center; gap: 1.6rem; }
.gauge { position: relative; width: 118px; height: 118px; flex-shrink: 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 9; }
.gauge .gauge-track { stroke: var(--line); }
.gauge .gauge-fill { stroke: var(--gold-2); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset 1.4s var(--ease-soft); }
.gauge.is-visible .gauge-fill { stroke-dashoffset: var(--gauge-offset, 256); }
.gauge-value { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; color: var(--cream); }
.report-rows { flex-grow: 1; display: grid; gap: .65rem; }
.report-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--cream-3); padding-bottom: .6rem; border-bottom: 1px solid var(--line-soft); }
.report-row:last-child { border-bottom: none; padding-bottom: 0; }
.report-row span:last-child { color: var(--cream); font-weight: 600; }

/* --- Testimonials --- */
.testimonials-section { }
.testimonials-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
.testimonial-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.9rem; display: flex; flex-direction: column; gap: 1.2rem;
}
.testimonial-stars { display: flex; gap: .2rem; color: var(--gold-2); }
.testimonial-stars svg { width: 15px; height: 15px; }
.testimonial-quote { font-family: var(--serif); font-style: italic; color: var(--cream); font-size: 1.05rem; flex-grow: 1; }
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: .95rem;
  background: linear-gradient(150deg, var(--gold-2), var(--gold)); color: #1a1204; flex-shrink: 0;
}
.testimonial-name { font-size: .88rem; color: var(--cream); font-weight: 600; }
.testimonial-role { font-size: .78rem; color: var(--cream-3); }

/* --- Contact --- */
.contact-section { background: var(--bg-2); }
.contact-grid { display: grid; gap: 3rem; }
.contact-info-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-info-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px;
}
.contact-info-item svg { width: 20px; height: 20px; color: var(--gold-2); flex-shrink: 0; }
.contact-info-item .label { font-size: .74rem; color: var(--cream-3); text-transform: uppercase; letter-spacing: .06em; }
.contact-info-item .value { font-size: .95rem; color: var(--cream); }
.contact-info-item:hover { border-color: rgba(230,176,85,.3); }

.schedule-card {
  margin-top: 1.6rem; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: 14px;
}
.schedule-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); color: var(--cream-3); }
.schedule-row:last-child { border-bottom: none; }
.schedule-row span:last-child { color: var(--cream); }

.social-row { display: flex; gap: .7rem; margin-top: 1.6rem; }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: border-color .3s, color .3s, transform .3s var(--ease-soft);
}
.social-btn svg { width: 19px; height: 19px; }
.social-btn:hover { border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-3px); }

/* Form */
.cta-form { position: relative; display: grid; gap: 1.1rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.35rem 1rem .55rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-3); color: var(--cream); font: inherit; font-size: .95rem;
  transition: border-color .3s;
}
.field select { appearance: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-2); }
.field label {
  position: absolute; left: 1rem; top: 1.1rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--cream-3); font-size: .92rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field.has-value label {
  top: .5rem; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2);
}
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }

.cta-form.is-sending .btn-gold { opacity: .7; pointer-events: none; }
.form-note { font-size: .8rem; color: var(--cream-3); margin-top: -.2rem; }

.cta-success {
  display: none; text-align: center; padding: 2.5rem 1.5rem;
  border: 1px solid rgba(230,176,85,.3); border-radius: 18px; background: var(--bg-3);
}
.cta-success.is-visible { display: block; }
.cta-success svg { width: 42px; height: 42px; color: var(--gold-2); margin: 0 auto 1rem; }
.cta-success h3 { margin-bottom: .5rem; }
.cta-success p { color: var(--cream-3); font-size: .92rem; }

/* --- Final CTA --- */
.final-cta {
  position: relative; overflow: clip; border-radius: 28px;
  margin-inline: 1.5rem;
}
.final-cta-bg { position: absolute; inset: 0; }
.final-cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.5); }
.final-cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,36,77,.92), rgba(10,36,77,.55) 60%, rgba(201,154,69,.28));
}
.final-cta-inner { position: relative; padding: clamp(3.5rem, 8vw, 6rem) clamp(1.8rem, 6vw, 4rem); text-align: center; max-width: 700px; margin-inline: auto; }
.final-cta-inner .kicker { justify-content: center; margin-bottom: 1.2rem; }
.final-cta-inner .kicker::before { display: none; }
.final-cta-inner h2 { margin-bottom: 1.3rem; }
.final-cta-inner p { color: var(--cream-2); margin-bottom: 2rem; font-size: 1.05rem; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* --- Footer --- */
.footer { padding-block: 3.5rem 2.5rem; border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-about p { margin-top: 1rem; color: var(--cream-3); font-size: .9rem; max-width: 32ch; }
.footer-col h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream-3); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .9rem; color: var(--cream-2); }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .8rem; color: var(--cream-3);
}
.footer-bottom a { color: var(--cream-3); }
.footer-bottom a:hover { color: var(--gold-2); }

/* --- Dialogs (service detail modals) --- */
dialog.service-dialog {
  border: 0; padding: 0; background: transparent; color: inherit; max-width: min(720px, 92vw);
  width: 100%; max-height: 86vh; border-radius: 22px; overflow: hidden;
}
dialog.service-dialog::backdrop { background: rgba(6, 13, 26, 0.78); backdrop-filter: blur(4px); }
.dialog-inner { background: var(--bg-3); max-height: 86vh; overflow-y: auto; }
.dialog-header {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.8rem 2rem 1.2rem; background: var(--bg-3); border-bottom: 1px solid var(--line-soft);
}
.dialog-header .service-icon { width: 46px; height: 46px; }
.dialog-header .service-icon svg { width: 22px; height: 22px; }
.dialog-title-wrap h3 { font-size: 1.5rem; }
.dialog-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; }
.dialog-close svg { width: 17px; height: 17px; }
.dialog-close:hover { border-color: var(--gold-2); color: var(--gold-2); }
.dialog-body { padding: 1.6rem 2rem 2.4rem; }
.dialog-body p { color: var(--cream-3); font-size: .96rem; margin-bottom: 1rem; }
.dialog-body h4 { font-family: var(--serif); color: var(--gold-2); font-size: 1.02rem; font-weight: 500; font-style: italic; margin: 1.6rem 0 .8rem; }
.dialog-body h4:first-child { margin-top: 0; }
.dialog-body ul { display: grid; gap: .7rem; }
.dialog-body li {
  position: relative; padding-left: 1.4rem; color: var(--cream-3); font-size: .93rem;
}
.dialog-body li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2);
}
.dialog-body li strong { color: var(--cream); font-weight: 600; }
.dialog-footer { padding: 0 2rem 2rem; }

/* =============================================================
   7. Effects
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .final-cta-actions { flex-wrap: nowrap; }
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { gap: 2.5rem; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger { display: none; }

  .philosophy-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .plagio-grid { grid-template-columns: 1.05fr .95fr; gap: 4.5rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr .8fr .8fr 1fr; }
}

@media (min-width: 1280px) {
  .testimonials-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   9. Reduced motion — only kill INTRUSIVE effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .splash-mark svg { animation: none; }
  .splash { animation: none; opacity: 0; clip-path: inset(0 0 100% 0); }
}
