/* =========================================================
   Remix Strategic Solutions Pte. Ltd.
   Global stylesheet — muted, warm, editorial-luxury theme
   Palette anchored on the logo taupe (#CFC4AE)
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --cream:      #FAF7F0;
  --cream-2:    #F3ECDF;
  --cream-3:    #EDE4D3;
  --sand:       #CFC4AE;   /* logo color / signature accent */
  --sand-deep:  #B7A684;
  --sand-soft:  #E4DBC8;
  --taupe:      #8A7E63;
  --ink:        #363125;   /* headings */
  --ink-soft:   #585140;   /* body */
  --muted:      #8b8369;
  --line:       rgba(54, 49, 37, 0.12);
  --line-soft:  rgba(54, 49, 37, 0.07);
  --white:      #ffffff;
  --shadow-sm:  0 2px 10px rgba(72, 64, 42, 0.06);
  --shadow-md:  0 14px 40px rgba(72, 64, 42, 0.10);
  --shadow-lg:  0 28px 70px rgba(72, 64, 42, 0.16);
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1180px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #FAF7F0; }
body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* subtle paper grain overlay for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.28;
  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' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------- Smooth page transitions (removes the navigation flash) ---------- */
@keyframes pageIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageOut { from { opacity: 1; } to { opacity: 0; } }
body { animation: pageIn 0.42s var(--ease) both; }
body.is-leaving { animation: pageOut 0.2s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  body, body.is-leaving { animation: none !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p  { color: var(--ink-soft); }
.serif-italic { font-family: var(--font-display); font-style: italic; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; z-index: 2; }
.section--tint { background: var(--cream-2); }
.section--sand {
  background: linear-gradient(160deg, var(--sand-soft), var(--cream-2));
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--taupe); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 30px; height: 1.5px; background: var(--sand-deep); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { margin-top: 18px; font-size: 1.08rem; color: var(--muted); }
.text-center { text-align: center; }
.text-center .section-head { margin-left: auto; margin-right: auto; }
.text-center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, color 0.3s;
  position: relative; overflow: hidden; will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: #FFFDF8; }
.btn--primary:hover { background: #2a261c; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(54,49,37,0.30); }
.btn--light { background: var(--cream); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-3px); }
/* warm, high-contrast call-to-action used for "Request a Consultation" */
.btn--accent { background: linear-gradient(135deg, #9c8e6d, #7d7156); color: #FFFDF8; font-weight: 600; box-shadow: 0 6px 18px rgba(125,113,86,0.28); }
.btn--accent:hover { background: linear-gradient(135deg, #8a7d5e, #6b6049); color: #FFFDF8; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(125,113,86,0.38); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 40px; width: auto; transition: height 0.4s var(--ease); }
.scrolled .brand img { height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .b-name {
  font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand-text .b-sub { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--taupe); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 16px; font-size: 0.98rem; font-weight: 500; color: var(--ink-soft);
  border-radius: 100px; transition: color 0.3s, background 0.3s; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: 2px; left: 16px; right: 16px; height: 2px;
  background: var(--sand-deep); border-radius: 2px;
}
.nav-links a.btn { padding: 11px 22px; font-size: 0.92rem; margin-left: 10px; }
.nav-links a.btn.active::after { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.35s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(140px, 20vh, 220px) 0 clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55;
}
.hero-blob.b1 { width: 520px; height: 520px; background: var(--sand); top: -160px; right: -120px; }
.hero-blob.b2 { width: 420px; height: 420px; background: var(--sand-soft); bottom: -180px; left: -120px; opacity: 0.7; }
.hero-blob.b3 { width: 300px; height: 300px; background: #d8cdb6; top: 40%; left: 45%; opacity: 0.35; }
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--taupe); }
.hero-lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 44px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-trust .stat .n { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); }
.hero-trust .stat .l { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }

/* hero visual card */
.hero-visual { position: relative; }
.hero-card {
  background: var(--white); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft);
}
.hero-card .hc-mark { height: 54px; width: auto; margin-bottom: 20px; }
.hero-card h3 { margin-bottom: 14px; }
.hero-card ul { display: grid; gap: 14px; margin-top: 8px; }
.hero-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; color: var(--ink-soft); }
.hero-card li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--sand-deep); margin-top: 2px; }
.hero-badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--ink); color: var(--cream);
  padding: 16px 22px; border-radius: 16px; box-shadow: var(--shadow-md); font-size: 0.9rem;
}
.hero-badge strong { font-family: var(--font-display); display: block; font-size: 1.1rem; font-weight: 500; }

/* ---------- Service cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (min-width: 981px) { .cards-grid .card--center { grid-column: 2 / 3; } }
.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 34px 30px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--sand-deep);
  transition: width 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::after { width: 100%; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream-2); color: var(--taupe); margin-bottom: 22px; transition: 0.5s var(--ease);
}
.card:hover .card-icon { background: var(--sand); color: var(--ink); transform: rotate(-6deg); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }
.card-num {
  position: absolute; top: 22px; right: 26px; font-family: var(--font-display);
  font-size: 1.1rem; color: var(--sand-deep); opacity: 0.5;
}

/* ---------- Who we help (segments) ---------- */
.segments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.segment {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 26px 22px; transition: 0.5s var(--ease);
}
.segment:hover { background: var(--ink); transform: translateY(-6px); }
.segment:hover h4, .segment:hover p { color: var(--cream); }
.segment .seg-no { font-family: var(--font-display); font-size: 1.5rem; color: var(--sand-deep); margin-bottom: 14px; }
.segment h4 { font-size: 1.05rem; margin-bottom: 8px; transition: color 0.4s; }
.segment p { font-size: 0.86rem; color: var(--muted); transition: color 0.4s; }

/* ---------- Feature / why list ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-list { display: grid; gap: 6px; }
.feature-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line-soft);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .fi {
  width: 38px; height: 38px; border-radius: 50%; background: var(--cream-2); color: var(--taupe);
  display: grid; place-items: center; flex-shrink: 0;
}
.feature-list .fi svg { width: 19px; height: 19px; }
.feature-list h4 { font-size: 1.05rem; margin-bottom: 3px; font-family: var(--font-body); font-weight: 700; color: var(--ink); }
.feature-list p { font-size: 0.92rem; color: var(--muted); }
.media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
  background: linear-gradient(160deg, var(--sand-soft), var(--cream-2)); aspect-ratio: 4/5;
  position: relative; display: grid; place-items: center; padding: 40px;
}
.media-frame .mf-mark { width: 60%; opacity: 0.9; }
.media-frame .mf-tag {
  position: absolute; bottom: 26px; left: 26px; right: 26px; background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px); padding: 18px 22px; border-radius: 14px; font-family: var(--font-display);
  font-style: italic; color: var(--ink); font-size: 1.05rem;
}

/* ---------- Services detailed (services page) ---------- */
.svc-block { display: grid; grid-template-columns: 0.42fr 0.58fr; gap: 50px; padding: clamp(40px,6vw,72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.svc-block:first-of-type { border-top: none; }
.svc-block .svc-side { position: sticky; top: 110px; align-self: start; }
.svc-num {
  font-family: var(--font-display); font-size: 3.4rem; color: var(--sand); line-height: 1; margin-bottom: 18px;
}
.svc-side h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 16px; }
.svc-side p { color: var(--muted); font-size: 0.98rem; }
.svc-side .svc-emoji {
  width: 60px; height: 60px; border-radius: 16px; background: var(--cream-2); color: var(--taupe);
  display: grid; place-items: center; margin-bottom: 22px;
}
.svc-side .svc-emoji svg { width: 30px; height: 30px; }
.svc-list { columns: 2; column-gap: 36px; }
.svc-list li {
  break-inside: avoid; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 0.95rem;
}
.svc-list li svg { width: 18px; height: 18px; color: var(--sand-deep); flex-shrink: 0; margin-top: 4px; }
.svc-note {
  margin-top: 18px; padding: 18px 22px; background: var(--cream-2); border-left: 3px solid var(--sand-deep);
  border-radius: 0 12px 12px 0; font-size: 0.92rem; color: var(--muted);
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: var(--ink); border-radius: 28px; padding: clamp(48px, 7vw, 86px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before, .cta-inner::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.22;
}
.cta-inner::before { width: 340px; height: 340px; background: var(--sand); top: -120px; right: -80px; }
.cta-inner::after { width: 300px; height: 300px; background: var(--sand-deep); bottom: -140px; left: -60px; }
.cta-inner h2 { color: var(--cream); position: relative; margin-bottom: 18px; }
.cta-inner p { color: rgba(250,247,240,0.75); max-width: 560px; margin: 0 auto 32px; position: relative; }
.cta-inner .btn--light { position: relative; }

/* ---------- About page hero ---------- */
.page-hero { padding: clamp(150px, 20vh, 210px) 0 clamp(50px, 8vw, 90px); text-align: center; position: relative; overflow: hidden; }
.page-hero .hero-bg { z-index: 0; }
.page-hero h1 { max-width: 900px; margin: 0 auto 22px; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.12rem; color: var(--ink-soft); }
.breadcrumb { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- About content ---------- */
.prose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.prose p + p { margin-top: 18px; }
.value-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 10px; }
.value-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 28px; }
.value-card .vc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--cream-2); color: var(--taupe); display: grid; place-items: center; margin-bottom: 16px; }
.value-card .vc-icon svg { width: 22px; height: 22px; }
.value-card h4 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 50px; align-items: start; }
.contact-info .ci-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.contact-info .ci-item:last-child { border-bottom: none; }
.contact-info .ci-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--cream-2); color: var(--taupe); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ci-ic svg { width: 22px; height: 22px; }
.contact-info .ci-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 4px; }
.contact-info .ci-val { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.contact-info .ci-val a:hover { color: var(--taupe); }
.contact-socials { display: flex; gap: 12px; margin-top: 28px; }
.contact-socials a {
  width: 46px; height: 46px; border-radius: 12px; background: var(--white); border: 1px solid var(--line-soft);
  display: grid; place-items: center; color: var(--taupe); transition: 0.4s var(--ease);
}
.contact-socials a:hover { background: var(--ink); color: var(--cream); transform: translateY(-4px); }
.contact-socials svg { width: 20px; height: 20px; }

.form-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 0.96rem; color: var(--ink); background: var(--cream);
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sand-deep); background: var(--white);
  box-shadow: 0 0 0 4px rgba(183, 166, 132, 0.16);
}
.form-msg { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-size: 0.9rem; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #eef3e8; color: #4a5d34; }
.form-msg.err { background: #f6e9e6; color: #8a4234; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-card .btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.map-wrap { margin-top: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.25) contrast(0.95); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(250,247,240,0.72); padding: 72px 0 0; position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 54px; border-bottom: 1px solid rgba(250,247,240,0.12); }
.footer-brand img { height: 42px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; color: rgba(250,247,240,0.6); max-width: 300px; }
.footer-col h5 { font-family: var(--font-display); color: var(--cream); font-size: 1.05rem; font-weight: 500; margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: rgba(250,247,240,0.66); transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--cream); padding-left: 5px; }
.footer-contact li { font-size: 0.92rem; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: rgba(250,247,240,0.66); }
.footer-contact svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--sand); }
.footer-socials { display: flex; gap: 10px; margin-top: 8px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(250,247,240,0.08);
  display: grid; place-items: center; color: var(--cream); transition: 0.4s var(--ease);
}
.footer-socials a:hover { background: var(--sand); color: var(--ink); transform: translateY(-3px); }
.footer-socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 26px 0; font-size: 0.84rem; color: rgba(250,247,240,0.5); }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Floating buttons ---------- */
.fab-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,0.4);
  transition: transform 0.4s var(--ease);
}
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366;
  z-index: -1; animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 70% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }

.to-top {
  position: fixed; right: 24px; bottom: 92px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: 0.4s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--taupe); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
[data-reveal][data-delay="4"] { transition-delay: 0.32s; }

/* hero load animation */
.hero-anim { opacity: 0; transform: translateY(24px); animation: heroIn 0.9s var(--ease) forwards; }
.hero-anim.d1 { animation-delay: 0.05s; }
.hero-anim.d2 { animation-delay: 0.18s; }
.hero-anim.d3 { animation-delay: 0.31s; }
.hero-anim.d4 { animation-delay: 0.44s; }
.hero-anim.d5 { animation-delay: 0.57s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 460px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .segments { grid-template-columns: repeat(2, 1fr); }
  .split, .prose-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-block { grid-template-columns: 1fr; gap: 28px; }
  .svc-block .svc-side { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; position: relative; z-index: 70; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(86vw, 320px); height: 100%;
    background: var(--cream);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: 92px 24px 32px;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform 0.45s var(--ease);
    z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; font-size: 1.12rem; padding: 15px 14px; border-radius: 12px; }
  .nav-links a:hover, .nav-links a.active { background: var(--cream-2); }
  .nav-links a.active::after { display: none; }
  .nav-links a.btn { margin: 18px 0 0; justify-content: center; font-size: 1rem; padding: 16px; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(54,49,37,0.45); opacity: 0; visibility: hidden; transition: 0.4s; z-index: 95; }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .cards-grid, .segments, .value-cards, .form-row { grid-template-columns: 1fr; }
  .svc-list { columns: 1; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .hero-badge { left: 0; }
  .brand-text { display: none; }
}
