/* ============================================================
   OmniDev — Software & IT Division
   Design system v2: clean light theme, hand-crafted feel
   Brand: teal #09C1A9 · navy #131E32
   ============================================================ */

:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --line: #e4e9f0;
  --line-strong: #c9d4e2;
  --text: #131e32;
  --muted: #5a6b85;
  --teal: #09c1a9;
  --teal-dark: #07a390;
  --teal-soft: rgba(9, 193, 169, 0.09);
  --navy: #131e32;
  --navy-soft: rgba(19, 30, 50, 0.05);
  --pink: #e0508a;
  --amber: #d99a16;
  --green: #12996f;
  --blue: #2f6fd0;
  --violet: #6d4fd0;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(19, 30, 50, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(19, 30, 50, 0.18);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* subtle dot grid backdrop */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(19, 30, 50, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(#000 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1140px, 92%); margin: 0 auto; position: relative; z-index: 2; }
main { position: relative; z-index: 1; }

::selection { background: rgba(9, 193, 169, 0.25); }

.grad-text { color: var(--teal); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px;
  transition: opacity 0.4s ease, visibility 0.4s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader img { width: 64px; height: 64px; animation: pulseSoft 1.6s ease-in-out infinite; }
.preloader-bar { width: 160px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--teal); animation: loadSlide 1s ease-in-out infinite; }
@keyframes loadSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
@keyframes pulseSoft { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247, 249, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { width: min(1140px, 92%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 34px; width: auto; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 9px 15px; border-radius: 9px; font-size: 0.92rem; color: var(--muted); font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--navy-soft); }
.nav-links a.active { color: var(--teal-dark); background: var(--teal-soft); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; width: 42px; height: 38px; cursor: pointer; color: var(--text); font-size: 1.05rem; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface);
    padding: 16px 5%; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%); visibility: hidden; transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 12px 16px; }
  .nav-cta { margin: 8px 0 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.96rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 6px 18px -8px rgba(9, 193, 169, 0.55); }
.nav-links .btn-primary { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(9, 193, 169, 0.55); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 19px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 70px;
  overflow: hidden;
  background: linear-gradient(180deg, #eef5f4 0%, var(--bg) 78%);
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 3; text-align: center; width: min(880px, 92%); margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 17px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.83rem; color: var(--muted); letter-spacing: 0.03em;
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulseSoft 1.8s infinite; }
.hero-title { font-size: clamp(2.5rem, 5.8vw, 4.3rem); margin-bottom: 24px; color: var(--navy); }
.hero-title .line { display: block; overflow: hidden; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.15rem); max-width: 600px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(24px, 6vw, 70px); justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--navy); }
.hero-stat .lbl { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ''; width: 1px; height: 40px; background: var(--teal); animation: dropLine 1.8s ease-in-out infinite; }
@media (max-width: 680px) { .scroll-hint { display: none; } }
@keyframes dropLine { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section.tight { padding: 70px 0; }
.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.76rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 14px; font-weight: 600;
}
.eyebrow::before { content: '— '; color: var(--teal); }
.section-head.center .eyebrow::after { content: ' —'; color: var(--teal); }
.section-head h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin-bottom: 16px; color: var(--navy); }
.section-head p { color: var(--muted); font-size: 1.03rem; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-soft); border: 1px solid rgba(9, 193, 169, 0.25); margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--teal-dark); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--navy); }
.card p { color: var(--muted); font-size: 0.94rem; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--teal-dark); font-weight: 600; font-size: 0.9rem; }
.card-link .arrow { transition: transform 0.25s; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.marquee { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-head); font-size: 1.02rem; color: var(--muted); display: flex; align-items: center; gap: 14px; white-space: nowrap; font-weight: 500; }
.marquee span i { font-style: normal; color: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-wrap:hover .marquee { animation-play-state: paused; }

/* ---------- Projects ---------- */
.project-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-visual { height: 190px; position: relative; display: flex; align-items: flex-end; padding: 22px; overflow: hidden; }
.project-visual::before { content: ''; position: absolute; inset: 0; }
.project-visual.cyan::before { background: linear-gradient(135deg, rgba(9,193,169,0.16), rgba(9,193,169,0.05)); }
.project-visual.violet::before { background: linear-gradient(135deg, rgba(109,79,208,0.15), rgba(109,79,208,0.05)); }
.project-visual.amber::before { background: linear-gradient(135deg, rgba(217,154,22,0.16), rgba(217,154,22,0.05)); }
.project-visual.green::before { background: linear-gradient(135deg, rgba(18,153,111,0.16), rgba(18,153,111,0.05)); }
.project-visual.pink::before { background: linear-gradient(135deg, rgba(224,80,138,0.14), rgba(224,80,138,0.05)); }
.project-visual.blue::before { background: linear-gradient(135deg, rgba(47,111,208,0.15), rgba(47,111,208,0.05)); }
.project-visual .glyph { position: absolute; right: 20px; top: 6px; font-family: var(--font-head); font-size: 6rem; font-weight: 700; color: rgba(19, 30, 50, 0.06); line-height: 1; }
.project-cat {
  position: relative; z-index: 1; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 100px; background: var(--surface);
  border: 1px solid var(--line); color: var(--muted); font-weight: 600;
}
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.project-body h3 { font-size: 1.2rem; color: var(--navy); }
.project-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.project-outcome { font-family: var(--font-head); font-size: 0.86rem; font-weight: 600; color: var(--green); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: 0.73rem; padding: 4px 11px; border-radius: 100px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .process { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
  color: var(--teal); display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 16px; }
.quote-mark { font-family: var(--font-head); font-size: 3.2rem; line-height: 0.6; color: var(--teal); }
.quote-card blockquote { color: var(--text); font-size: 0.99rem; line-height: 1.7; flex: 1; }
.quote-who { display: flex; align-items: center; gap: 13px; }
.quote-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 0.9rem; }
.quote-who .n { font-weight: 600; font-size: 0.93rem; }
.quote-who .r { color: var(--muted); font-size: 0.79rem; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 22px; padding: clamp(44px, 6vw, 74px);
  background: var(--navy);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(9,193,169,0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 14px; color: #fff; }
.cta-band p { color: rgba(255,255,255,0.68); max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 76px) 0 60px; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 18px; color: var(--navy); }
.page-hero p { color: var(--muted); font-size: 1.06rem; max-width: 620px; }
.page-hero .eyebrow { margin-bottom: 16px; }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.prose h2 { font-size: 1.5rem; margin: 32px 0 14px; color: var(--navy); }
.prose h3 { font-size: 1.2rem; margin: 26px 0 10px; color: var(--navy); }
.prose p { color: #3d4c66; margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; color: #3d4c66; }
.prose li { margin-bottom: 7px; }
.side-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px; position: sticky; top: calc(var(--nav-h) + 24px); }
.side-card h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--navy); }
.side-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.side-list a { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; border-radius: 10px; color: var(--muted); font-size: 0.93rem; transition: color 0.2s, background 0.2s; }
.side-list a:hover { color: var(--teal-dark); background: var(--teal-soft); }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
@media (max-width: 680px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; color: #3d4c66; font-size: 0.94rem; padding: 13px 15px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); }
.feature-list li::before { content: '✓'; color: var(--teal-dark); font-weight: 700; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: 13px; }
.post-meta { display: flex; gap: 12px; align-items: center; font-size: 0.79rem; color: var(--muted); }
.post-meta .pill { color: var(--teal-dark); border: 1px solid rgba(9,193,169,0.35); background: var(--teal-soft); padding: 4px 12px; border-radius: 100px; font-weight: 600; }
.post-detail-hero { padding: calc(var(--nav-h) + 72px) 0 44px; }
.post-detail-hero h1 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); max-width: 780px; margin: 14px 0 20px; color: var(--navy); }
.post-body { max-width: 720px; margin: 0 auto; padding-bottom: 36px; }
.post-body p { color: #3d4c66; margin-bottom: 18px; font-size: 1.04rem; line-height: 1.8; }

/* ---------- Forms ---------- */
.form-shell { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: clamp(28px, 4vw, 44px); position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.field-input {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-strong);
  color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.field-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(9, 193, 169, 0.14); }
.field-input::placeholder { color: #93a1b8; }
textarea.field-input { resize: vertical; min-height: 120px; }
select.field-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.alerts { margin-bottom: 18px; }
.alert { padding: 13px 17px; border-radius: 10px; font-size: 0.93rem; border: 1px solid; }
.alert.success { background: rgba(18, 153, 111, 0.08); border-color: rgba(18, 153, 111, 0.35); color: var(--green); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.1rem; margin: 24px 0 6px; color: var(--navy); }
.contact-info p, .contact-info a { color: var(--muted); }
.contact-info a:hover { color: var(--teal-dark); }

/* ---------- About ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .value-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }
.value { text-align: center; padding: 28px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.value .v-icon { width: 46px; height: 46px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-soft); }
.value .v-icon svg { width: 22px; height: 22px; stroke: var(--teal-dark); }
.value h3 { font-size: 1rem; margin-bottom: 7px; color: var(--navy); }
.value p { color: var(--muted); font-size: 0.87rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.member { text-align: center; padding: 28px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member .ava { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #fff; background: var(--navy); }
.member h3 { font-size: 1.02rem; color: var(--navy); }
.member .role { color: var(--teal-dark); font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; margin: 5px 0 10px; font-weight: 600; }
.member p { color: var(--muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 30px; margin-top: 30px; background: var(--surface); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 38px; margin-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--muted); font-size: 0.93rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal-dark); }
.footer-brand p { color: var(--muted); font-size: 0.93rem; margin: 16px 0 0; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.84rem; }

/* ---------- Reveal animation base states ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(16px); }
.js-anim .reveal-l { opacity: 0; transform: translateX(-20px); }
.js-anim .reveal-r { opacity: 0; transform: translateX(20px); }
.js-anim .reveal-scale { opacity: 0; transform: scale(0.97); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js-anim .reveal, .js-anim .reveal-l, .js-anim .reveal-r, .js-anim .reveal-scale { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* Public Instagram follow card. Keep the original QR pixels intact. */
.follow-qr { position:fixed; left:12px; bottom:12px; z-index:40; padding:6px; background:#fff; color:#243a3a; border:1px solid #dbe5e5; border-radius:9px; box-shadow:0 4px 20px #132e2e18; }
.follow-qr-link { display:flex; flex-direction:column; align-items:center; gap:3px; color:inherit; text-decoration:none; }
.follow-qr-link strong { font-size:11px; }
.follow-qr-link:focus-visible { outline:3px solid #0caa9b; outline-offset:4px; border-radius:6px; }
.follow-qr-image { display:block; position:relative; width:80px; height:80px; overflow:hidden; background:#fff; }
.follow-qr-image img { position:absolute; width:140px; height:auto; max-width:none; left:-30px; top:-58.75px; }
.follow-qr-caption { font-size:10px; }
@media(max-width:680px) { .follow-qr { left:8px; bottom:8px; padding:5px; } .follow-qr-image { width:64px; height:64px; } .follow-qr-image img { width:112px; left:-24px; top:-47px; } }
@media print { .follow-qr { display:none; } }
