/* =========================================================
   C.C. PIPALIYA & ASSOCIATES (CCP) — v4
   Palette sampled directly from the firm's logo:
   Navy #393185 · Red #E31E24 · White #FFFFFF
   ========================================================= */

:root{
  /* Color — sampled from logo */
  --navy:       #393185;
  --navy-deep:  #2C2667;
  --navy-soft:  rgba(57,49,133,.07);
  --red:        #E31E24;
  --red-deep:   #B5181C;
  --red-soft:   rgba(227,30,36,.08);

  --white:      #FFFFFF;
  --surface:    #FFFFFF;
  --surface-tint:#F3F2F7;
  --ink:        #1C1930;
  --muted:      #6B6878;
  --faint:      #9A97A8;
  --line:       rgba(57,49,133,.14);
  --line-strong:rgba(57,49,133,.32);

  /* Type */
  --font-display: 'Cormorant', serif;
  --font-body: 'Manrope', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Motion */
  --ease: cubic-bezier(.22,1,.36,1);
  --t-fast: .25s;
  --t-med: .6s;
  --t-slow: 1s;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
  .marquee-track{ animation: none !important; transform: none !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
p{ margin: 0; }

::selection{ background: rgba(227,30,36,.16); color: var(--navy-deep); }

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

.container{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.section{ padding: 120px 0; position: relative; }
.section--tight{ padding: 64px 0; }
.section--tint{ background: var(--surface-tint); }

@media (max-width: 720px){
  .container{ padding: 0 22px; }
  .section{ padding: 80px 0; }
  .section--tight{ padding: 46px 0; }
}

/* ---------- Typography ---------- */

.eyebrow{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:'';
  width: 22px; height: 2px;
  background: var(--red);
  display:inline-block;
}
.eyebrow--on-dark{ color: #F2A9AC; }
.eyebrow--on-dark::before{ background: #F2A9AC; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -.01em;
  color: var(--navy-deep);
}

.h1{
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.07;
  font-weight: 600;
}
.h1 em, .h2 em{
  font-style: italic;
  font-weight: 500;
  color: var(--red);
}
.h2{
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.14;
}
.h3{
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  font-weight: 600;
}
.on-dark{ color: var(--white); }
.on-dark em{ color: #F2A9AC; }

.lede{
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 400;
  max-width: 640px;
}
.lede.on-dark{ color: rgba(255,255,255,.78); }

.body-text{
  font-size: 16px;
  color: var(--muted);
  max-width: 620px;
}
.body-text + .body-text{ margin-top: 16px; }

.section-head{
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head .h2{ margin-top: 16px; }
.section-head .lede{ margin-top: 16px; }

/* ---------- Buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 3px;
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn--gold, .btn--primary{
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(227,30,36,.55);
}
.btn--gold:hover, .btn--primary:hover{
  background: var(--red-deep);
  box-shadow: 0 12px 28px -8px rgba(227,30,36,.6);
}

.btn--ghost{
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--ghost:hover{
  border-color: var(--navy);
  background: var(--navy-soft);
}
.btn--ghost.on-dark{
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn--ghost.on-dark:hover{
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

.btn--arrow svg{ transition: transform var(--t-fast) var(--ease); }
.btn--arrow:hover svg{ transform: translateX(4px); }

/* ---------- Marquee ticker ---------- */

.marquee{
  background: var(--navy);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
}
.marquee-track{
  display:flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.marquee-item{
  display:flex;
  align-items:center;
  gap: 16px;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}
.marquee-item .dot{ width:5px; height:5px; border-radius:50%; background: var(--red); }

/* ---------- Nav ---------- */

.site-nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 200;
  padding: 20px 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.site-nav.is-scrolled{
  padding: 13px 0;
  border-color: var(--line);
  box-shadow: 0 6px 24px -16px rgba(28,25,48,.18);
}
.site-nav .container{
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.logo-chip img{ height: 40px; width:auto; display:block; }
.brand-name{
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: .01em;
  line-height: 1.2;
}
.brand-name small{
  display:block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 400;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 38px;
}
.nav-links a{
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:100%; height:2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.nav-links a:hover{ color: var(--navy); }
.nav-links a:hover::after{ transform: scaleX(1); }
.nav-links a.is-active{ color: var(--red); }
.nav-links a.is-active::after{ transform: scaleX(1); }

.nav-right{ display:flex; align-items:center; gap: 24px; }

.nav-toggle{
  display:none;
  background: transparent;
  border: none;
  width: 30px; height: 22px;
  position: relative;
}
.nav-toggle span{
  position:absolute; left:0; right:0; height:2px;
  background: var(--navy-deep);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle span:nth-child(1){ top:0; }
.nav-toggle span:nth-child(2){ top:50%; margin-top:-1px; }
.nav-toggle span:nth-child(3){ top:100%; transform: translateY(-2px); }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-11px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.98);
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease);
}
.mobile-menu.is-open{ opacity:1; visibility: visible; }
.mobile-menu a{
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--navy-deep);
}
.mobile-menu a:hover{ color: var(--red); }

@media (max-width: 880px){
  .nav-links{ display:none; }
  .nav-right .btn{ display:none; }
  .nav-toggle{ display:block; }
}

/* ---------- Page header (non-home pages) ---------- */

.page-header{
  padding: 170px 0 56px;
  position: relative;
}
.page-header .h1{ margin-top: 16px; font-size: clamp(36px,5.4vw,58px); }
.page-header .lede{ margin-top: 16px; }

/* ---------- Hero (home) ---------- */

.hero{
  padding-top: 168px;
  padding-bottom: 90px;
  position: relative;
  background: var(--surface-tint);
  overflow: hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .h1{ margin-top: 22px; }
.hero-copy .lede{ margin-top: 22px; }
.hero-actions{
  display:flex;
  gap: 16px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-visual{ position: relative; }
.hero-visual .frame{
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(44,38,103,.35);
}
.hero-badge{
  position: absolute;
  left: -24px;
  bottom: -24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: 0 18px 40px -16px rgba(44,38,103,.3);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 240px;
}
.hero-badge .num{
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--red);
}
.hero-badge .cap{
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order:-1; margin-bottom: 12px; }
  .hero{ padding-top: 128px; }
  .hero-badge{ left: 14px; bottom: -18px; padding: 14px 16px; }
}

/* ---------- Divider ---------- */

.divider{
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0 0 56px;
  overflow: hidden;
}
.divider::after{
  content:'';
  position:absolute; inset:0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.divider.in-view::after{ transform: scaleX(1); }

/* ---------- Credibility strip ---------- */

.cred-strip{
  display:flex;
  flex-wrap: wrap;
  gap: 24px 38px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  color: var(--muted);
  text-transform: uppercase;
}
.cred-strip span{ display:flex; align-items:center; gap:10px; }
.cred-strip span::before{
  content:'';
  width:6px; height:6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink:0;
}

/* ---------- Stats ---------- */

.stats-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.stat{
  background: var(--white);
  padding: 34px 26px;
  position: relative;
  transition: background var(--t-fast) var(--ease);
}
.stat:hover{ background: var(--surface-tint); }
.stat-figure{
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  color: var(--navy-deep);
  font-variant-numeric: tabular-nums;
  display:flex;
  align-items: baseline;
  gap: 2px;
}
.stat-label{
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 180px;
}
.stat-spark{
  position: absolute;
  right: 22px;
  bottom: 26px;
  width: 52px;
  height: 24px;
  opacity: .9;
}
@media (max-width: 780px){
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .stat-spark{ display:none; }
}

/* ---------- Schedule list (services) ---------- */

.schedule-list{ border-top: 1px solid var(--line); }
.schedule-item{
  display:grid;
  grid-template-columns: 116px 1fr auto;
  align-items: start;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t-fast) var(--ease);
  position: relative;
}
.schedule-item::before{
  content:'';
  position:absolute;
  left:-1px; top:0; bottom:-1px;
  width:0;
  background: var(--red);
  transition: width var(--t-fast) var(--ease);
}
.schedule-item:hover{ padding-left: 16px; }
.schedule-item:hover::before{ width:3px; }

.schedule-tag{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--red);
  padding-top: 4px;
}
.schedule-body h3{ margin-bottom: 8px; }
.schedule-body p{ color: var(--muted); max-width: 540px; }
.schedule-sub{
  display:flex;
  flex-wrap:wrap;
  gap: 8px 18px;
  margin-top: 14px;
}
.schedule-sub span{
  font-size: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
}
.schedule-arrow{
  width: 18px; height:18px;
  margin-top: 6px;
  color: var(--navy);
  opacity: .45;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.schedule-item:hover .schedule-arrow{ transform: translateX(5px); opacity:1; color: var(--red); }

@media (max-width: 720px){
  .schedule-item{ grid-template-columns: 1fr; gap: 10px; }
  .schedule-arrow{ display:none; }
}

/* ---------- Cards ---------- */

.card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 36px 30px;
  border-radius: 6px;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.card:hover{
  transform: translateY(-6px);
  border-top-color: var(--red);
  box-shadow: 0 24px 48px -28px rgba(44,38,103,.3);
}
.card-index{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: .1em;
}
.card h3{ margin-top: 16px; }
.card p{ margin-top: 12px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 880px){
  .card-grid{ grid-template-columns: 1fr; }
}

/* ---------- Image frames & galleries ---------- */

.frame{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-tint);
}
.frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transition: transform 1.1s var(--ease);
}
.frame:hover img{ transform: scale(1.06); }
.frame-caption{
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(44,38,103,.78);
  padding: 6px 10px;
  border-radius: 3px;
}

.portrait-frame{ width: 100%; aspect-ratio: 4 / 5; margin-bottom: 22px; }
.photo-banner{ aspect-ratio: 16 / 7; margin-top: 8px; }
@media (max-width: 720px){ .photo-banner{ aspect-ratio: 4 / 3; } }

.team-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card{ text-align: left; }
.team-photo{ width: 100%; aspect-ratio: 1 / 1; margin-bottom: 18px; }
.team-card h3{ font-size: 21px; }
.team-card .role{
  display:block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--red);
  text-transform: uppercase;
  margin-top: 6px;
}
.team-card p.body-text{ margin-top: 10px; font-size: 14px; }
@media (max-width: 880px){ .team-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .team-grid{ grid-template-columns: 1fr; } }

/* ---------- Timeline (about) ---------- */

.timeline{ border-top: 1px solid var(--line); }
.timeline-row{
  display:grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-year{
  font-family: var(--font-mono);
  color: var(--red);
  font-weight: 700;
  font-size: 18px;
}
.timeline-row p{ color: var(--muted); max-width: 560px; }
@media (max-width: 600px){
  .timeline-row{ grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Process steps ---------- */

.process-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step{ padding-top: 18px; border-top: 2px solid var(--navy); }
.process-step .step-num{
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.process-step h3{ margin-top: 14px; font-size: 19px; }
.process-step p{ margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 880px){ .process-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .process-grid{ grid-template-columns: 1fr; } }

/* ---------- Founder / quote block ---------- */

.founder-block{
  display:grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.founder-card{
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
}
.founder-card h3{ margin-top: 4px; }
.founder-card .role{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: .06em;
  margin-top: 6px;
  display:block;
}
.founder-card .cred{
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.quote{
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  color: var(--navy-deep);
}
.quote::before{ content:'\201C'; color: var(--red); }
.quote::after{ content:'\201D'; color: var(--red); }
.quote-attr{
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 880px){ .founder-block{ grid-template-columns: 1fr; gap: 32px; } }

/* ---------- CTA banner ---------- */

.cta-banner{
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  padding: 90px 0;
  text-align: center;
}
.cta-banner .h2{ max-width: 660px; margin: 0 auto; }
.cta-banner .lede{ margin: 16px auto 0; text-align:center; }
.cta-banner .hero-actions{ justify-content:center; margin-top: 36px; }

/* ---------- Contact ---------- */

.contact-grid{ display:grid; grid-template-columns: .85fr 1.15fr; gap: 60px; }
.info-block + .info-block{ margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.info-label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--red);
  text-transform: uppercase;
}
.info-value{ margin-top: 10px; font-size: 16px; color: var(--ink); }
.info-value.dim{ color: var(--muted); }

.hours-table{ margin-top: 10px; width:100%; }
.hours-table tr{ border-bottom: 1px solid var(--line); }
.hours-table td{ padding: 9px 0; font-size: 14px; color: var(--muted); }
.hours-table td:last-child{ text-align:right; font-family: var(--font-mono); color: var(--ink); font-weight: 600; }

.form-panel{
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px;
}
.field{ margin-bottom: 20px; }
.field label{
  display:block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea{
  width:100%;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color var(--t-fast) var(--ease);
  border-radius: 4px;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline: none; border-color: var(--red); }
.field textarea{ resize: vertical; min-height: 110px; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .field-row{ grid-template-columns: 1fr; } }

.form-note{ margin-top: 6px; font-size: 12.5px; color: var(--faint); }
.form-success{
  display:none;
  align-items:center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(227,30,36,.3);
  background: var(--red-soft);
  color: var(--red-deep);
  font-size: 14px;
  margin-top: 18px;
  border-radius: 4px;
  font-weight: 600;
}
.form-success.is-visible{ display:flex; }

@media (max-width: 880px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer{
  background: var(--navy-deep);
  padding: 80px 0 28px;
  color: rgba(255,255,255,.85);
}
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-brand .brand{ margin-bottom: 18px; }
.footer-brand p{ color: rgba(255,255,255,.65); font-size: 14px; max-width: 260px; }
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #F2A9AC;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p{
  display:block;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-bottom: 11px;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
@media (max-width: 880px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer .brand-name{ color: var(--white); }
.site-footer .brand-name small{ color: rgba(255,255,255,.55); }

/* ---------- Scroll reveal ---------- */

[data-reveal]{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
[data-reveal].in-view{ opacity: 1; transform: translateY(0); }
[data-reveal-group] > *{ transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Back to top ---------- */

.back-top{
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  z-index: 150;
  color: var(--navy);
  box-shadow: 0 10px 24px -12px rgba(44,38,103,.3);
}
.back-top.is-visible{ opacity:1; visibility: visible; }
.back-top:hover{ border-color: var(--red); color: var(--red); transform: translateY(-3px); }
.back-top svg{ width:16px; height:16px; }
