/* ============================================================
   Little Heart — Cardiology website
   Design system: deep purple + soft white, bold editorial type
   ============================================================ */

:root {
  /* Colour */
  --purple-primary: #43208C;
  --purple-dark: #32146F;
  --purple-accent: #6B43C4;
  --lavender: #F0EAFE;
  --bg: #FBFAFF;
  --text: #111111;
  --text-muted: #45404D;
  --border: #E9E3F4;
  --white: #ffffff;

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Manrope", var(--font-body);
  --font-display: "Space Grotesk", var(--font-head);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(50, 20, 111, 0.05);
  --shadow: 0 20px 45px -20px rgba(50, 20, 111, 0.24);
  --shadow-lg: 0 40px 80px -32px rgba(50, 20, 111, 0.38);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

/* subtle paper grain for a tactile, non-generic finish */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--purple-primary); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 10px; z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--purple-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
  position: relative; z-index: 2;
}
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple-accent); margin-bottom: 1.15rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple-accent); }
.eyebrow-light { color: #C9B6F2; }
.idx {
  font-family: var(--font-display); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.05em;
  color: var(--purple-primary); background: var(--lavender);
  padding: 0.2rem 0.5rem; border-radius: 6px;
}
.idx-light { background: rgba(255,255,255,0.12); color: #C9B6F2; }

.hero-display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
}
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.05; letter-spacing: -0.025em; color: var(--text);
}
.accent { color: var(--purple-primary); }
.accent-light { color: #B79BFF; }
.hl { position: relative; color: var(--purple-primary); white-space: nowrap; }
.hl-stroke {
  position: absolute; left: 0; right: 0; bottom: -0.12em;
  width: 100%; height: 0.34em; color: var(--purple-accent); opacity: 0.85;
}

.hero-sub, .section-lead {
  color: var(--text-muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: 54ch;
}
.hero-sub { margin-top: 1.6rem; }
.section-lead { margin-top: 1.15rem; }
.light { color: #E9E2FB; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
  padding: 0.85rem 1.65rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease),
              box-shadow 0.28s var(--ease), color 0.28s var(--ease),
              border-color 0.28s var(--ease);
}
.btn-lg { padding: 1.05rem 2.05rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--purple-primary); color: #fff;
  box-shadow: 0 14px 28px -12px rgba(67, 32, 140, 0.62);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-3px); box-shadow: 0 22px 38px -14px rgba(67, 32, 140, 0.66); }
.btn-ghost { background: transparent; color: var(--purple-primary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--purple-accent); background: var(--lavender); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--purple-dark); }
.btn-light:hover { background: #F3EDFF; transform: translateY(-3px); box-shadow: 0 18px 32px -14px rgba(0, 0, 0, 0.5); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(50, 20, 111, 0.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); }
.brand-mark {
  width: 42px; height: 42px; color: var(--purple-primary);
  display: grid; place-items: center; background: var(--lavender); border-radius: 13px;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 500; font-size: 0.96rem; color: var(--text-muted);
  padding: 0.55rem 0.85rem; border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a span {
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 600;
  color: var(--purple-accent); opacity: 0.7;
}
.nav-links a:hover { color: var(--purple-primary); background: var(--lavender); }
.nav-links .nav-cta { color: #fff; margin-left: 0.5rem; padding: 0.72rem 1.4rem; }
.nav-links .nav-cta:hover { color: #fff; background: var(--purple-dark); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
  padding: 0.6rem; border-radius: 10px;
}
.nav-toggle span { width: 24px; height: 2.5px; border-radius: 2px; background: var(--purple-dark); transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-gridlines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(67, 32, 140, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(67, 32, 140, 0.05) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 75%);
}
.hero-glow {
  position: absolute; top: -25%; right: -8%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 67, 196, 0.26), transparent 62%);
}
.hero-layout {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.4rem; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem;
  list-style: none; padding: 0; margin-top: 2.2rem;
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-row li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple-accent); }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; overflow: hidden;
  border-radius: 220px 220px 30px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--lavender);
}
.hero-frame img { width: 100%; height: auto; aspect-ratio: 4 / 5.4; object-fit: cover; }
.hero-ring {
  position: absolute; z-index: -1; bottom: -34px; left: -34px;
  width: 190px; height: 190px; border-radius: 50%;
  border: 2px dashed var(--purple-accent); opacity: 0.5;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-tag {
  position: absolute; bottom: 9%; left: -22px;
  display: flex; flex-direction: column; gap: 0.1rem;
  background: var(--purple-primary); color: #fff;
  font-size: 0.78rem; line-height: 1.3;
  padding: 0.9rem 1.25rem; border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-tag strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.01em; }

.scroll-cue {
  position: absolute; left: var(--gutter); bottom: 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--purple-accent), transparent); animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   Ticker
   ============================================================ */
.ticker {
  background: var(--purple-dark); color: #fff;
  overflow: hidden; padding-block: 1.05rem;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.ticker-track {
  display: flex; align-items: center; gap: 1.5rem;
  width: max-content; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem); letter-spacing: -0.01em;
  animation: marquee 34s linear infinite;
}
.ticker-track i { color: var(--purple-accent); font-style: normal; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Section head
   ============================================================ */
.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.section-head-narrow { max-width: 760px; }

/* ============================================================
   Services (bento + hover invert)
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.service {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1.1rem;
  min-height: 260px;
  padding: 1.9rem 1.8rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.service-feature { grid-column: span 2; }
.service-index {
  position: absolute; top: 1.5rem; right: 1.7rem;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  color: var(--purple-accent); opacity: 0.55;
  transition: color 0.4s var(--ease), opacity 0.4s var(--ease);
}
.service-icon {
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 16px; background: var(--lavender); color: var(--purple-primary);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service-icon svg { width: 26px; height: 26px; }
.service-body { margin-top: auto; }
.service h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.24rem; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.service p { color: var(--text-muted); font-size: 0.97rem; max-width: 42ch; transition: color 0.4s var(--ease); }
.service-arrow {
  position: absolute; bottom: 1.7rem; right: 1.8rem;
  font-size: 1.4rem; color: var(--purple-accent); opacity: 0; transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.4s var(--ease);
}

.service:hover {
  background: var(--purple-primary); color: #fff;
  border-color: var(--purple-primary); transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service:hover .service-icon { background: rgba(255, 255, 255, 0.14); color: #fff; transform: rotate(-6deg); }
.service:hover p { color: #DDD3F6; }
.service:hover .service-index { color: #C9B6F2; opacity: 1; }
.service:hover .service-arrow { opacity: 1; transform: none; }

/* ============================================================
   Why us
   ============================================================ */
.why-section { background: linear-gradient(180deg, #fff 0%, var(--lavender) 100%); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem;
  color: var(--purple-accent); display: block; margin-bottom: 1rem;
}
.why-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; margin-bottom: 0.45rem; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; }
.why-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.75rem 2rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.why-cta p { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ============================================================
   About
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-art { position: relative; }
.collage { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 1rem; align-items: start; }
.collage img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow); object-fit: cover;
}
.collage img:first-child { aspect-ratio: 4 / 5; }
.collage img:last-child { aspect-ratio: 4 / 5; margin-top: 2.5rem; }
.collage-badge {
  position: absolute; left: 40%; bottom: -18px;
  transform: translateX(-50%);
  background: var(--purple-primary); color: #fff;
  font-size: 0.78rem; font-family: var(--font-head); font-weight: 600;
  padding: 0.7rem 1.1rem; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow);
}
.about-copy p { color: var(--text-muted); margin-top: 1.1rem; max-width: 56ch; }
.about-points { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.9rem; }
.about-points span {
  font-size: 0.88rem; font-weight: 600; font-family: var(--font-head);
  color: var(--purple-primary); background: var(--lavender);
  padding: 0.5rem 1rem; border-radius: 999px;
}

/* ============================================================
   Gallery (horizontal rail)
   ============================================================ */
.gallery-section { background: var(--lavender); overflow: hidden; }
.gallery-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 2.25rem;
}
.gallery-controls { display: flex; gap: 0.6rem; }
.rail-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--purple-primary);
  font-size: 1.2rem; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.rail-btn:hover { background: var(--purple-primary); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

.rail { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 0.5rem; }
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: 1.1rem; padding-inline: var(--gutter); width: max-content; }
.rail-item {
  scroll-snap-align: center; flex: 0 0 auto;
  width: clamp(230px, 26vw, 320px); height: clamp(300px, 34vw, 420px);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: #fff;
}
.rail-item.rail-tall { height: clamp(340px, 40vw, 460px); }
.rail-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.rail-item:hover img { transform: scale(1.06); }

/* ============================================================
   Contact
   ============================================================ */
.section-dark { background: linear-gradient(160deg, var(--purple-dark), var(--purple-primary)); color: #fff; position: relative; overflow: hidden; }
.section-dark::after {
  content: ""; position: absolute; bottom: -160px; right: -120px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 67, 196, 0.55), transparent 65%);
}
.section-dark .section-title { color: #fff; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 1.1rem; }
.contact-details li { display: flex; align-items: center; gap: 0.9rem; font-weight: 500; color: #E9E2FB; }
.ci { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: #C9B6F2; flex-shrink: 0; }
.ci svg { width: 20px; height: 20px; }

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  backdrop-filter: blur(6px);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; color: #EDE7FB; }
.field .optional { font-weight: 400; color: #B7A9D9; }
.field input, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.95); border: 1.5px solid transparent;
  border-radius: 12px; color: var(--text); resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9A93A8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple-accent); box-shadow: 0 0 0 4px rgba(107, 67, 196, 0.35); }
.field.invalid input, .field.invalid textarea { border-color: #FF9BA8; box-shadow: 0 0 0 4px rgba(255, 120, 140, 0.25); }
.field-error { display: block; font-size: 0.82rem; color: #FFC4CE; margin-top: 0.4rem; min-height: 1em; }
.contact-form .btn-light { margin-top: 0.5rem; }
.form-note { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: #CFE9D0; min-height: 1.2em; }
.form-note.error { color: #FFC4CE; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #160933; color: #C9C0DE; padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem; overflow: hidden; }
.footer-top { padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 15vw, 12rem); line-height: 0.9; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(183, 155, 255, 0.4);
  white-space: nowrap; user-select: none;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, 0.1); color: #fff; }
.footer-brand p { font-size: 0.94rem; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col h4 { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 0.95rem; margin-bottom: 0.35rem; }
.footer-col a { font-size: 0.93rem; color: #C9C0DE; transition: color 0.2s var(--ease); width: fit-content; }
.footer-col a:hover { color: #fff; }
.footer-addr { font-size: 0.93rem; }
.footer-bottom {
  margin-top: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.84rem; color: #9C92B8;
}
.footer-legal { max-width: 52ch; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .hero-ring, .scroll-cue span { animation: none !important; }
  * { transition-duration: 0.001ms !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-layout, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .about-art { max-width: 560px; margin-inline: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-feature { grid-column: span 2; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow);
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 0.85rem 1rem; }
  .nav-links .nav-cta { margin-left: 0; text-align: center; margin-top: 0.4rem; }
  .hero-frame { border-radius: 160px 160px 26px 26px; }
  .hero-tag { left: 0; bottom: 6%; }
  .scroll-cue { display: none; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .service-feature { grid-column: span 1; }
  .collage-badge { left: 50%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .collage { grid-template-columns: 1fr; }
  .collage img:last-child { margin-top: 0; }
  .why-cta { flex-direction: column; align-items: flex-start; }
}
