:root {
  --kaavi: #c95113;
  --saffron: #f28a12;
  --deep-red: #7e1f13;
  --maroon: #4b130c;
  --gold: #d6a742;
  --leaf: #256847;
  --cream: #fff7e7;
  --ivory: #fffdf7;
  --ink: #28160f;
  --muted: #705f52;
  --shadow: 0 24px 70px rgba(75, 19, 12, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Noto Sans Tamil", system-ui, sans-serif;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 16%, rgba(242, 138, 18, 0.12), transparent 22%),
    radial-gradient(circle at 92% 26%, rgba(37, 104, 71, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 247, 231, 0.82), rgba(255, 253, 247, 0.95));
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--saffron), var(--kaavi));
  box-shadow: 0 0 18px rgba(242, 138, 18, 0.62);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 228, 165, 0.22), transparent 34%),
    linear-gradient(135deg, var(--maroon), var(--deep-red) 48%, var(--kaavi));
  color: #fff8e8;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(320px, 100%);
  text-align: center;
}

.preloader-arch {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
  border: 3px solid rgba(255, 228, 165, 0.72);
  border-bottom-width: 8px;
  border-radius: 78px 78px 12px 12px;
  background: rgba(255, 248, 232, 0.08);
  box-shadow: inset 0 0 24px rgba(255, 228, 165, 0.16), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.preloader-arch::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 228, 165, 0.32);
  border-radius: 66px 66px 8px 8px;
}

.preloader-om {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #ffe9a8, var(--saffron), var(--kaavi));
  color: #fff7da;
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: 0 0 0 9px rgba(255, 228, 165, 0.1);
  animation: preloaderPulse 1.35s ease-in-out infinite;
}

.preloader-bell {
  position: absolute;
  top: 22px;
  color: #ffe4a5;
  font-size: 1.15rem;
  transform-origin: top center;
  animation: preloaderBell 1.1s ease-in-out infinite;
}

.bell-left {
  left: 20px;
}

.bell-right {
  right: 20px;
  animation-delay: 0.16s;
}

.preloader-flame {
  position: absolute;
  bottom: 15px;
  color: #ffd56c;
  font-size: 1.2rem;
  animation: preloaderFlame 0.95s ease-in-out infinite;
}

.preloader-panel strong {
  color: #ffe4a5;
  font-family: "Noto Serif Tamil", serif;
  font-size: 1.35rem;
}

.preloader-panel span:not(.preloader-om) {
  font-weight: 700;
}

.preloader-line {
  position: relative;
  width: 180px;
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.16);
}

.preloader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 46%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #fff1b8, var(--saffron));
  animation: preloaderLine 1.2s ease-in-out infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 8px 18px;
  background: var(--maroon);
  color: #ffe9b8;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.top-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.top-strip i {
  color: #ffd56c;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 253, 247, 0.92);
  border-bottom: 1px solid rgba(201, 81, 19, 0.14);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 253, 247, 0.97);
  box-shadow: 0 12px 34px rgba(75, 19, 12, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe29a, var(--saffron) 48%, var(--kaavi));
  color: #fff7da;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(201, 81, 19, 0.3);
  animation: markGlow 3.2s ease-in-out infinite;
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Noto Serif Tamil", serif;
  line-height: 1.28;
}

.brand strong {
  display: block;
  color: var(--deep-red);
  font-size: clamp(0.95rem, 1.6vw, 1.14rem);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #4c3428;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.primary-nav a i {
  color: var(--kaavi);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  background: var(--kaavi);
  color: #fffaf0;
  transform: translateY(-1px);
}

.primary-nav a:hover i,
.primary-nav a.active i {
  color: #ffe4a5;
  transform: scale(1.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  border: 0;
  background: var(--kaavi);
  color: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
}

.hero {
  position: relative;
  height: calc(100svh - var(--site-chrome-height, 118px));
  min-height: 430px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff8e8;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 14% auto auto 6%;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 228, 165, 0.35);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 228, 165, 0.06);
  animation: haloFloat 6s ease-in-out infinite;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../../photos/p1.jpg") center / cover no-repeat;
  transform: scale(1.03);
  transform-origin: center;
  backface-visibility: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(53, 14, 9, 0.88), rgba(126, 31, 19, 0.55), rgba(53, 14, 9, 0.12)),
    linear-gradient(0deg, rgba(53, 14, 9, 0.82), transparent 48%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 34%, rgba(255, 213, 108, 0.18), transparent 20%);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 26px, var(--kaavi) 26px 52px, var(--deep-red) 52px 78px);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.hero-floating-card {
  position: absolute;
  right: clamp(18px, 6vw, 92px);
  bottom: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 228, 165, 0.38);
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(75, 19, 12, 0.48);
  color: #ffe4a5;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 228, 165, 0.16);
  backdrop-filter: blur(12px);
  transform: translateZ(0);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hero-floating-card:hover {
  background: rgba(75, 19, 12, 0.62);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 228, 165, 0.3);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #ffe1a3;
  font-weight: 800;
  letter-spacing: 0;
}

.section-kicker {
  color: var(--kaavi);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.95rem, 3.9vw, 3.35rem);
  line-height: 1.14;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(1.85rem, 3.6vw, 3.2rem);
  line-height: 1.18;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(0.96rem, 1.55vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(75, 19, 12, 0.25);
}

.btn.primary {
  background: linear-gradient(135deg, var(--saffron), var(--kaavi) 62%, var(--deep-red));
  color: #fff;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.76);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn.ghost.dark {
  border-color: rgba(201, 81, 19, 0.32);
  color: var(--deep-red);
  background: transparent;
}

.section {
  padding: clamp(58px, 8vw, 108px) 0;
}

.container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.two-column,
.content-grid,
.split-panel,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}

.two-column.reverse {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
}

.intro-band {
  background:
    linear-gradient(135deg, rgba(255, 246, 218, 0.92), rgba(255, 253, 247, 0.96)),
    radial-gradient(circle at 12% 20%, rgba(242, 138, 18, 0.14), transparent 28%);
}

.warm-band {
  background: #fff4dc;
}

.section-heading {
  max-width: 730px;
  margin-bottom: 32px;
}

h2 {
  margin: 0 0 16px;
  color: var(--deep-red);
  font-size: clamp(1.72rem, 3vw, 2.72rem);
}

h3 {
  margin: 0 0 12px;
  color: var(--maroon);
}

p {
  margin: 0 0 16px;
}

.image-frame {
  position: relative;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7d16a, #b86f13, #fce9a8);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.image-frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border: 1px solid rgba(201, 81, 19, 0.2);
  border-radius: 8px;
}

.image-frame:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: 0 30px 80px rgba(75, 19, 12, 0.24);
}

.image-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  backface-visibility: hidden;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.info-panel,
.contact-card,
.contact-form,
.ornament-card,
.map-card {
  border: 1px solid rgba(201, 81, 19, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 18px 46px rgba(75, 19, 12, 0.1);
}

.feature-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 138, 18, 0.12), transparent 44%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff5d4, #ffd56c);
  color: var(--kaavi);
  font-size: 1.12rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(201, 81, 19, 0.16);
}

.feature-card h3,
.feature-card p {
  position: relative;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(201, 81, 19, 0.32);
  box-shadow: 0 28px 70px rgba(75, 19, 12, 0.16);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover span {
  animation: iconPulse 0.8s ease;
}

.mandapam-highlight {
  background:
    linear-gradient(135deg, rgba(126, 31, 19, 0.94), rgba(201, 81, 19, 0.9)),
    url("../../photos/p2.jpg") center / cover no-repeat;
  color: #fff6df;
}

.mandapam-highlight h2,
.mandapam-highlight h3,
.mandapam-highlight .section-kicker {
  color: #ffe4a5;
}

.mandapam-highlight .feature-card,
.ornament-card {
  background: rgba(255, 247, 231, 0.12);
  border-color: rgba(255, 231, 175, 0.28);
  box-shadow: none;
}

.ornament-card {
  padding: clamp(26px, 4vw, 46px);
  position: relative;
  overflow: hidden;
}

.ornament-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -34px auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 228, 165, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 228, 165, 0.05);
}

.ornament-card strong {
  display: block;
  margin-bottom: 14px;
  color: #ffe7a8;
  font-family: "Noto Serif Tamil", serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.page-hero {
  position: relative;
  min-height: 150px;
  display: grid;
  align-items: end;
  padding: 42px 0 24px;
  overflow: hidden;
  color: #fff8e8;
  background:
    linear-gradient(90deg, rgba(75, 19, 12, 0.9), rgba(126, 31, 19, 0.58)),
    url("../../photos/p2.jpg") center / cover no-repeat;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 26%, rgba(255, 228, 165, 0.13), transparent 22%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero.compact {
  min-height: 130px;
  background:
    linear-gradient(120deg, rgba(75, 19, 12, 0.92), rgba(201, 81, 19, 0.72)),
    url("../../photos/p1.jpg") center / cover no-repeat;
}

.history-hero {
  background:
    linear-gradient(120deg, rgba(75, 19, 12, 0.9), rgba(37, 104, 71, 0.58)),
    url("../../photos/p1.jpg") center / cover no-repeat;
}

.mandapam-hero {
  background:
    linear-gradient(120deg, rgba(75, 19, 12, 0.86), rgba(201, 81, 19, 0.66)),
    url("../../photos/p2.jpg") center / cover no-repeat;
}

.content-grid {
  align-items: start;
}

.content-block,
.info-panel {
  padding: clamp(24px, 4vw, 42px);
}

.content-block {
  background: linear-gradient(180deg, rgba(255, 247, 231, 0.9), rgba(255, 253, 247, 0));
  border-left: 5px solid var(--kaavi);
}

.styled-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.styled-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid rgba(201, 81, 19, 0.12);
}

.styled-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--saffron);
  font-weight: 900;
}

.timeline {
  position: relative;
  max-width: 900px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 17px;
  width: 3px;
  background: linear-gradient(var(--kaavi), var(--gold), var(--leaf));
}

.timeline-item {
  position: relative;
  padding: 0 0 46px 64px;
}

.timeline-item span {
  position: absolute;
  left: 0;
  top: 3px;
  width: 36px;
  height: 36px;
  border: 7px solid #fff0cb;
  border-radius: 50%;
  background: var(--kaavi);
  box-shadow: 0 0 0 1px rgba(201, 81, 19, 0.2);
  animation: iconPulse 2.4s ease-in-out infinite;
}

.map-card {
  min-height: 420px;
  overflow: hidden;
}

.map-card iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.contact-card,
.contact-form {
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover,
.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(75, 19, 12, 0.14);
}

.contact-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--maroon);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(201, 81, 19, 0.25);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(242, 138, 18, 0.18);
  border-color: var(--kaavi);
}

.form-note {
  margin: 0;
  color: var(--leaf);
  font-weight: 800;
}

.site-footer {
  background: var(--maroon);
  color: #ffefd0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.75fr 0.9fr;
  gap: 32px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0 34px;
}

.site-footer h2,
.site-footer h3 {
  color: #ffe4a5;
  font-size: 1.18rem;
}

.site-footer a {
  display: block;
  margin: 5px 0;
  color: #fff8e8;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 1px solid rgba(255, 228, 165, 0.34);
  border-radius: 50%;
  background: rgba(255, 248, 232, 0.08);
  color: #fff8e8;
  font-size: 1.08rem;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: rgba(255, 228, 165, 0.18);
  transform: translateY(-1px);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron), var(--kaavi));
  box-shadow: 0 16px 38px rgba(75, 19, 12, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top i {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #fff8e8;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1);
  box-shadow: 0 22px 48px rgba(75, 19, 12, 0.34);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 238, 194, 0.18);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay {
  transition-delay: 0.15s;
}

@keyframes markGlow {
  0%,
  100% {
    box-shadow: 0 10px 26px rgba(201, 81, 19, 0.3);
  }
  50% {
    box-shadow: 0 10px 34px rgba(242, 138, 18, 0.52), 0 0 0 8px rgba(242, 138, 18, 0.1);
  }
}

@keyframes haloFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(16px, 18px, 0);
    opacity: 0.85;
  }
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes preloaderPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 9px rgba(255, 228, 165, 0.1);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 14px rgba(255, 228, 165, 0.04);
  }
}

@keyframes preloaderBell {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

@keyframes preloaderFlame {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes preloaderLine {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(230%);
  }
}

@media (max-width: 980px) {
  .top-strip {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fffaf0;
    border: 1px solid rgba(201, 81, 19, 0.16);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    border-radius: 8px;
  }

  .two-column,
  .two-column.reverse,
  .content-grid,
  .split-panel,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: calc(100svh - var(--site-chrome-height, 120px));
    align-items: end;
  }

  .hero-floating-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand small {
    white-space: normal;
  }

  .hero-content {
    width: min(100% - 28px, 920px);
    padding: 42px 0 58px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.45rem);
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.25rem);
  }

  .page-hero {
    min-height: 115px;
    padding: 28px 0 20px;
  }

  .page-hero.compact {
    min-height: 105px;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .back-to-top i {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
