:root {
  --bg: #f5efe0;
  --bg-soft: #fbf7ed;
  --paper: rgba(255, 248, 236, 0.88);
  --paper-strong: rgba(255, 247, 231, 0.97);
  --line: rgba(103, 67, 35, 0.18);
  --brown-900: #30180e;
  --brown-800: #4b2616;
  --brown-700: #6b3a22;
  --brown-500: #96603c;
  --gold-400: #d5a85d;
  --gold-300: #e8c98a;
  --leaf-800: #284736;
  --leaf-700: #335b46;
  --leaf-500: #4b7a61;
  --terracotta: #b86b3f;
  --shadow-soft: 0 24px 60px rgba(77, 43, 20, 0.12);
  --shadow-strong: 0 30px 80px rgba(67, 33, 12, 0.22);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: min(1180px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hind Madurai", sans-serif;
  color: var(--brown-900);
  background:
    radial-gradient(circle at top left, rgba(223, 193, 134, 0.45), transparent 32%),
    radial-gradient(circle at top right, rgba(117, 171, 144, 0.18), transparent 28%),
    linear-gradient(180deg, #f9f2e5 0%, #f5efe0 38%, #f0e5d1 100%);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(106, 58, 34, 0.035), rgba(106, 58, 34, 0) 24%),
    repeating-linear-gradient(
      90deg,
      rgba(107, 58, 34, 0.028) 0,
      rgba(107, 58, 34, 0.028) 1px,
      transparent 1px,
      transparent 32px
    );
  opacity: 0.8;
}

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

.cover-frame img,
.book-image-shell img,
.preview-poster img,
.series-card img {
  width: 100%;
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.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;
}

.skip-link {
  position: absolute;
  top: -3.5rem;
  left: 1rem;
  z-index: 99;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--brown-800);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.site-header {
  position: relative;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(14px);
}

.scroll-progress {
  height: 3px;
  background: rgba(107, 58, 34, 0.08);
  overflow: hidden;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--gold-400), var(--leaf-500), var(--brown-700));
}

.topbar.is-scrolled {
  background: rgba(250, 245, 233, 0.78);
  box-shadow: 0 14px 34px rgba(63, 33, 17, 0.1);
  border-bottom: 1px solid rgba(110, 69, 32, 0.08);
}

.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7f4b29, #c29057);
  color: #fff7e8;
  font-family: "Noto Serif Tamil", serif;
  font-size: 1.3rem;
  box-shadow: 0 10px 24px rgba(100, 55, 26, 0.2);
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-text strong {
  font-family: "Noto Serif Tamil", serif;
  font-size: 1rem;
}

.brand-text small {
  color: rgba(48, 24, 14, 0.72);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.76);
  border: 1px solid rgba(107, 58, 34, 0.14);
  box-shadow: 0 10px 24px rgba(77, 43, 20, 0.08);
}

.language-pill {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: rgba(48, 24, 14, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.language-pill:hover,
.language-pill:focus-visible {
  background: rgba(107, 58, 34, 0.08);
}

.language-pill.is-current {
  background: linear-gradient(135deg, var(--brown-700), #91532c);
  color: #fff6ea;
  box-shadow: 0 12px 30px rgba(87, 46, 19, 0.14);
}

.site-nav a {
  position: relative;
  overflow: hidden;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  color: rgba(48, 24, 14, 0.78);
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  bottom: 0.45rem;
  left: 0.95rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-400), var(--terracotta));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(107, 58, 34, 0.1);
  color: var(--brown-800);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(107, 58, 34, 0.08);
  color: var(--brown-800);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0.28rem 0;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  padding: 3.5rem 0 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 6% -12% auto auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 145, 83, 0.18), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--leaf-700);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif Tamil", serif;
  line-height: 1.15;
}

.hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  text-wrap: balance;
}

.lead {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  font-size: 1.08rem;
  color: rgba(48, 24, 14, 0.82);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  overflow: hidden;
  --button-shift-x: 0px;
  --button-shift-y: 0px;
  --button-hover-lift: 0px;
  min-height: 3.15rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  will-change: transform;
  transform: translate3d(var(--button-shift-x), calc(var(--button-shift-y) + var(--button-hover-lift)), 0);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.3) 50%, transparent 82%);
  transform: translateX(-140%);
  transition: transform 420ms ease;
}

.button > .ui-icon,
.button > span {
  position: relative;
  z-index: 1;
}

.ui-icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon-brand {
  fill: currentColor;
  stroke: none;
}

.button:hover,
.button:focus-visible {
  --button-hover-lift: -2px;
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(140%);
}

.button-primary {
  background: linear-gradient(135deg, var(--brown-700), #91532c);
  color: #fff6ea;
  box-shadow: 0 18px 40px rgba(87, 46, 19, 0.18);
}

.button-secondary {
  border-color: rgba(107, 58, 34, 0.24);
  background: rgba(255, 248, 235, 0.72);
  color: var(--brown-800);
}

.button-book .ui-icon,
.button-linkout .ui-icon,
.button-download .ui-icon,
.button-call .ui-icon,
.button-whatsapp .ui-icon,
.button-buy .ui-icon {
  transition: transform 320ms ease;
}

.button-book .ui-icon {
  transform-origin: center;
}

.button-book:hover .ui-icon,
.button-book:focus-visible .ui-icon {
  transform: rotateY(180deg) scale(1.08);
}

.button-linkout:hover .ui-icon,
.button-linkout:focus-visible .ui-icon {
  transform: translate(0.18rem, -0.18rem);
}

.button-download:hover .ui-icon,
.button-download:focus-visible .ui-icon {
  transform: translateY(0.18rem);
}

.button-call:hover .ui-icon,
.button-call:focus-visible .ui-icon {
  transform: rotate(16deg) scale(1.06);
}

.button-whatsapp:hover .ui-icon,
.button-whatsapp:focus-visible .ui-icon {
  transform: scale(1.1) rotate(-8deg);
}

.button-buy {
  background: linear-gradient(135deg, #7f4125 0%, #b66a3d 54%, #d6ad63 100%);
  background-size: 170% 170%;
  box-shadow: 0 22px 52px rgba(122, 66, 29, 0.24);
  animation: buy-breathe 3.4s ease-in-out infinite;
}

.button-buy:hover,
.button-buy:focus-visible {
  --button-hover-lift: -4px;
  box-shadow: 0 28px 62px rgba(122, 66, 29, 0.28);
}

.button-buy .ui-icon {
  transform: rotate(-8deg);
}

.button-buy:hover .ui-icon,
.button-buy:focus-visible .ui-icon {
  transform: rotate(8deg) scale(1.12);
}

.hero-note {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold-400);
  background: rgba(255, 248, 236, 0.68);
  border-radius: 0 18px 18px 0;
}

.hero-note span {
  color: rgba(48, 24, 14, 0.72);
  font-size: 0.92rem;
}

.hero-note strong {
  font-family: "Noto Serif Tamil", serif;
  font-size: 1.25rem;
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

.hero-three-shell {
  position: absolute;
  inset: -1.25rem -2.25rem -2.25rem -2.25rem;
  z-index: 0;
  pointer-events: none;
}

.hero-three-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 360ms ease;
}

.hero-three-shell.is-ready canvas {
  opacity: 1;
}

.cover-frame {
  position: relative;
  margin: 0;
  padding: 1rem;
  border-radius: calc(var(--radius-xl) + 0.35rem);
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.94), rgba(246, 232, 204, 0.88));
  box-shadow: var(--shadow-strong);
  animation: float-cover 8.5s ease-in-out infinite;
  z-index: 2;
}

.cover-frame::before,
.ornament-card::before,
.book-image-shell::before,
.preview-frame::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(117, 72, 34, 0.16);
  border-radius: inherit;
  pointer-events: none;
}

.cover-frame img,
.book-image-shell img,
.series-card img {
  border-radius: calc(var(--radius-xl) - 0.6rem);
}

.hero-meta {
  position: absolute;
  right: -0.8rem;
  bottom: -1.2rem;
  width: min(24rem, 82%);
  animation: float-cover 8.5s ease-in-out infinite 1.1s;
  z-index: 3;
}

.ornament-card,
.details-card,
.contact-card,
.stat-card,
.preview-frame,
.series-card,
.book-image-shell {
  position: relative;
  border: 1px solid rgba(117, 72, 34, 0.14);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.ornament-card,
.details-card,
.contact-card,
.preview-copy,
.stat-card,
.book-image-shell {
  backdrop-filter: blur(6px);
}

.ornament-card,
.details-card,
.contact-card,
.preview-copy {
  padding: 1.55rem;
}

.ornament-card::after,
.details-card::after,
.contact-card::after,
.book-image-shell::after,
.preview-frame::after,
.series-card::after {
  content: "";
  position: absolute;
  top: 0.8rem;
  left: 50%;
  width: 4.75rem;
  height: 0.2rem;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(213, 168, 93, 0.9), transparent);
}

.mini-label,
.section-heading p,
.caption,
.small-note,
.series-body p,
.contact-line,
address {
  color: rgba(48, 24, 14, 0.78);
}

.mini-label {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--leaf-700);
}

.hero-meta h2,
.ornament-card h3,
.details-card h3,
.contact-card h3,
.section-heading h2,
.series-body h3 {
  font-family: "Noto Serif Tamil", serif;
}

.hero-meta h2,
.ornament-card h3,
.details-card h3,
.contact-card h3 {
  margin: 0;
  font-size: 1.65rem;
}

.hero-meta p {
  margin: 0.45rem 0 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(51, 91, 70, 0.08);
  color: var(--leaf-800);
  font-weight: 600;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.hero-facts li:hover {
  transform: translateY(-3px);
  background: rgba(51, 91, 70, 0.12);
  box-shadow: 0 12px 24px rgba(77, 43, 20, 0.08);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 1.15rem 1.2rem;
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.stat-card:hover,
.stat-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 26px 54px rgba(77, 43, 20, 0.14);
}

.stat-card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: 0.75rem;
  border-radius: 0.95rem;
  background: rgba(51, 91, 70, 0.08);
  color: var(--leaf-700);
  transition: transform 260ms ease, background-color 260ms ease, color 260ms ease;
}

.stat-card:hover .stat-card-icon,
.stat-card:focus-within .stat-card-icon {
  transform: rotate(-6deg) scale(1.08);
  background: rgba(51, 91, 70, 0.12);
}

.stat-card span,
.detail-grid dt,
.seal span {
  display: block;
  color: rgba(48, 24, 14, 0.68);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.stat-card strong,
.detail-grid dd,
.seal strong {
  margin: 0;
  font-weight: 700;
}

.section {
  position: relative;
  padding: 5.25rem 0;
}

.section[id] {
  scroll-margin-top: 6rem;
}

.section-heading {
  max-width: 62rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-heading > p:last-child {
  margin: 1rem 0 0;
  max-width: 60ch;
}

.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.4rem 1.8rem;
  align-items: start;
}

.mission-layout .section-heading {
  grid-column: 1 / -1;
}

.mission-stack {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.motto-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.9), rgba(244, 232, 205, 0.82)),
    radial-gradient(circle at top right, rgba(80, 129, 102, 0.16), transparent 34%);
  border: 1px solid rgba(117, 72, 34, 0.12);
  box-shadow: var(--shadow-soft);
}

.motto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
}

.motto-step {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  height: 100%;
  padding: 1.2rem;
  border-radius: 1.8rem 1.8rem 1rem 1rem;
  background: rgba(255, 248, 236, 0.82);
  border: 1px solid rgba(117, 72, 34, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.motto-step:hover,
.motto-step:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(77, 43, 20, 0.12);
}

.motto-step strong {
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(51, 91, 70, 0.14), rgba(213, 168, 93, 0.28));
  font-family: "Noto Serif Tamil", serif;
  font-size: 1.55rem;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.motto-step:hover strong,
.motto-step:focus-within strong {
  transform: rotate(-8deg) scale(1.07);
  box-shadow: 0 14px 26px rgba(77, 43, 20, 0.12);
}

.motto-step p,
.preview-list,
.caption,
.small-note,
.contact-card p,
.ornament-card p {
  margin: 0.75rem 0 0;
}

.featured-layout,
.preview-layout,
.contact-layout {
  display: grid;
  gap: 2rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.35rem;
  align-items: start;
}

.book-showcase {
  display: grid;
  gap: 1rem;
}

.book-image-shell {
  padding: 1rem;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.book-image-shell img {
  transition: transform 320ms ease, filter 320ms ease;
}

.book-showcase:hover .book-image-shell,
.book-showcase:focus-within .book-image-shell {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(77, 43, 20, 0.14);
}

.book-showcase:hover .book-image-shell img,
.book-showcase:focus-within .book-image-shell img {
  transform: scale(1.035) rotate(-0.8deg);
  filter: saturate(1.05);
}

.featured-copy {
  display: grid;
  gap: 1rem;
}

.small-note {
  font-size: 0.95rem;
}

.details-card {
  padding: 1.55rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.15rem;
  margin: 1.2rem 0 0;
}

.detail-grid div {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 248, 236, 0.72);
  border: 1px solid rgba(117, 72, 34, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.detail-grid div:hover {
  transform: translateY(-4px);
  background: rgba(255, 248, 236, 0.9);
  border-color: rgba(117, 72, 34, 0.16);
  box-shadow: 0 18px 36px rgba(77, 43, 20, 0.08);
}

.detail-grid dt,
.detail-grid dd {
  margin: 0;
}

.preview-layout {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
}

.preview-layout .section-heading {
  grid-column: 1 / -1;
}

.preview-list {
  padding-left: 1.2rem;
}

.preview-list li + li {
  margin-top: 0.65rem;
}

.preview-frame {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(239, 224, 193, 0.9));
}

.preview-poster {
  display: grid;
  gap: 1rem;
  padding: 0.3rem;
}

.preview-poster-body {
  padding: 0.45rem 0.3rem 0;
}

.preview-poster-body h3 {
  margin: 0;
  font-family: "Noto Serif Tamil", serif;
  font-size: 1.8rem;
}

.preview-poster-body p {
  margin: 0.8rem 0 0;
}

.preview-note {
  margin: 1rem 0 0;
  color: rgba(48, 24, 14, 0.76);
  font-size: 0.96rem;
}

.pdf-embed-shell {
  margin-top: 0.35rem;
  padding: 0.65rem;
  border-radius: 1.3rem;
  background: rgba(255, 248, 236, 0.72);
  border: 1px solid rgba(117, 72, 34, 0.12);
}

.pdf-loading-note {
  display: grid;
  place-items: center;
  min-height: clamp(10rem, 22vh, 13rem);
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background:
    linear-gradient(120deg, rgba(255, 250, 242, 0.95), rgba(241, 230, 206, 0.9), rgba(255, 250, 242, 0.95));
  background-size: 220% 100%;
  color: rgba(48, 24, 14, 0.8);
  text-align: center;
  animation: shimmer-inline 2.8s linear infinite;
}

.pdf-embed-shell.is-loaded .pdf-loading-note {
  display: none;
}

.pdf-embed-shell object {
  display: block;
  width: 100%;
  height: clamp(28rem, 68vh, 52rem);
  border: 0;
  border-radius: 1rem;
  background: #fff;
}

.pdf-embed-shell:not(.is-loaded) object {
  display: none;
}

.pdf-embed-shell p {
  margin: 0;
  padding: 1rem;
}

.pdf-embed-shell a {
  text-decoration: underline;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}

.series-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.series-card:hover,
.series-card:focus-within {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: 0 28px 65px rgba(73, 39, 18, 0.18);
}

.series-card:nth-child(3n + 1) {
  transform: rotate(-1.1deg);
}

.series-card:nth-child(3n + 2) {
  transform: rotate(0.9deg);
}

.series-card:nth-child(3n) {
  transform: rotate(-0.45deg);
}

.series-card img {
  object-fit: contain;
  transition: transform 260ms ease, filter 260ms ease;
}

.series-card:hover img,
.series-card:focus-within img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

html[lang="ta"] .hero-copy h1 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 4.2vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

html[lang="ta"] .lead {
  max-width: 38rem;
  font-size: 1.03rem;
  line-height: 1.75;
}

html[lang="ta"] .section-heading h2 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.1;
  text-wrap: balance;
}

html[lang="ta"] .hero-meta h2,
html[lang="ta"] .preview-poster-body h3 {
  font-size: 1.55rem;
}

html[lang="en"] .hero-copy h1,
html[lang="en"] .hero-meta h2,
html[lang="en"] .ornament-card h3,
html[lang="en"] .details-card h3,
html[lang="en"] .contact-card h3,
html[lang="en"] .section-heading h2,
html[lang="en"] .series-body h3,
html[lang="en"] .brand-text strong,
html[lang="en"] .hero-note strong,
html[lang="en"] .preview-poster-body h3,
html[lang="en"] .motto-step strong {
  font-family: Georgia, "Times New Roman", serif;
}

html[lang="en"] .hero-copy h1 {
  max-width: 15ch;
  font-size: clamp(1.8rem, 2.85vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: rgba(48, 24, 14, 0.95);
}

html[lang="en"] .lead {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.75;
}

html[lang="en"] .section-heading h2 {
  max-width: 26ch;
  font-size: clamp(1.75rem, 2.7vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

html[lang="en"] .section-heading > p:last-child {
  max-width: 46rem;
  font-size: 1rem;
}

html[lang="en"] .hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 2.5rem;
}

html[lang="en"] .hero-actions .button {
  min-height: 3rem;
}

.series-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.95);
  color: var(--brown-800);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(53, 28, 16, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.series-card:hover .series-status,
.series-card:focus-within .series-status {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(53, 28, 16, 0.16);
}

.series-status.current {
  background: rgba(46, 93, 72, 0.95);
  color: #f8f2e2;
}

.series-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem 1.1rem 1.25rem;
}

.series-body h3 {
  margin: 0;
  font-size: 1.3rem;
}

.series-body p {
  margin-top: 0;
}

html[lang="en"] .series-body {
  min-height: 9.4rem;
}

html[lang="en"] .series-body h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

html[lang="en"] .series-body p {
  font-size: 0.98rem;
  line-height: 1.6;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.contact-layout .section-heading {
  grid-column: 1 / -1;
}

address {
  font-style: normal;
  margin-top: 0.85rem;
}

.contact-line + .contact-line {
  margin-top: 0.35rem;
}

.contact-highlight {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(107, 58, 34, 0.1), rgba(213, 168, 93, 0.2));
  border: 1px solid rgba(107, 58, 34, 0.12);
}

.contact-highlight span {
  display: block;
  color: rgba(48, 24, 14, 0.68);
  font-size: 0.92rem;
  font-weight: 700;
}

.phone-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  color: var(--brown-800);
  font-family: "Noto Serif Tamil", serif;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 220ms ease, color 220ms ease;
}

.phone-highlight .ui-icon {
  transition: transform 260ms ease;
}

.phone-highlight:hover {
  transform: translateX(2px);
}

.phone-highlight:hover .ui-icon {
  transform: rotate(14deg) scale(1.1);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.button-whatsapp {
  background: linear-gradient(135deg, #1d8f5b, #3eb27d);
  color: #f4fff8;
  box-shadow: 0 18px 40px rgba(29, 143, 91, 0.18);
}

@keyframes float-cover {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes buy-breathe {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow: 0 22px 52px rgba(122, 66, 29, 0.22);
  }

  50% {
    background-position: 100% 50%;
    box-shadow: 0 28px 60px rgba(122, 66, 29, 0.28);
  }
}

@keyframes shimmer-inline {
  0% {
    background-position: 200% 50%;
  }

  100% {
    background-position: -20% 50%;
  }
}

.contact-card {
  padding: 1.55rem;
}

.contact-card p {
  margin-top: 0.65rem;
}

.contact-card strong {
  font-weight: 700;
}

.seal {
  margin-top: 1.3rem;
  padding: 1rem 1.15rem;
  border-radius: 1.1rem;
  background: rgba(51, 91, 70, 0.08);
}

.site-footer {
  padding: 1.35rem 0 2.4rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(107, 58, 34, 0.14);
}

.footer-row p,
.footer-row a {
  margin: 0;
  color: rgba(48, 24, 14, 0.82);
}

.footer-row a {
  font-weight: 700;
}

.reveal {
  opacity: 1;
  transform: none;
}

.button:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.footer-row a:focus-visible {
  outline: 3px solid rgba(51, 91, 70, 0.32);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .featured-grid,
  .preview-layout,
  .contact-layout,
  .mission-layout {
    grid-template-columns: 1fr;
  }

  .preview-layout .section-heading,
  .contact-layout .section-heading,
  .mission-layout .section-heading {
    grid-column: auto;
  }

  .hero-meta {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
    animation: none;
  }

  .hero-visual {
    display: grid;
    justify-items: center;
    gap: 1rem;
  }

  .cover-frame,
  .hero-meta {
    width: min(100%, 28rem);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-three-shell {
    inset: -1rem -1rem -1.5rem -1rem;
  }

  .stats-strip,
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .mission-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-row {
    position: relative;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0;
  }

  .topbar-links {
    gap: 0.55rem;
  }

  .brand {
    max-width: calc(100% - 12rem);
  }

  .brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.15rem;
  }

  .brand-text strong {
    font-size: 0.95rem;
    line-height: 1.08;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
    border-radius: 1.25rem;
    background: rgba(253, 248, 239, 0.96);
    border: 1px solid rgba(117, 72, 34, 0.12);
    box-shadow: 0 22px 54px rgba(64, 31, 17, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.85rem 1rem;
  }

  .brand-text small {
    display: none;
  }

  .language-pill {
    padding: 0.46rem 0.78rem;
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
  }

  .hero-copy {
    display: grid;
    gap: 0.85rem;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 9vw, 3.6rem);
  }

  html[lang="ta"] .hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(1.68rem, 6.15vw, 2.55rem);
    line-height: 1.08;
  }

  html[lang="en"] .hero-copy h1 {
    font-size: clamp(1.95rem, 7vw, 2.85rem);
    max-width: 100%;
  }

  .lead,
  html[lang="ta"] .lead,
  html[lang="en"] .lead {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.62;
  }

  html[lang="ta"] .section-heading h2 {
    max-width: 100%;
    font-size: clamp(1.6rem, 5.8vw, 2.18rem);
    line-height: 1.12;
  }

  html[lang="en"] .section-heading h2 {
    max-width: 100%;
    font-size: clamp(1.68rem, 5.7vw, 2.15rem);
    line-height: 1.1;
  }

  .section-heading > p:last-child,
  html[lang="ta"] .section-heading > p:last-child,
  html[lang="en"] .section-heading > p:last-child {
    max-width: 100%;
  }

  .hero-grid {
    gap: 1.15rem;
  }

  html[lang="en"] .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    gap: 0.8rem;
  }

  .cover-frame,
  .hero-meta {
    width: 100%;
    max-width: 19.5rem;
  }

  .hero-meta p,
  .preview-poster-body p,
  .series-body p,
  .contact-card p,
  .ornament-card p {
    font-size: 0.96rem;
  }

  html[lang="ta"] .hero-meta h2,
  html[lang="ta"] .preview-poster-body h3,
  html[lang="en"] .hero-meta h2,
  html[lang="en"] .preview-poster-body h3 {
    font-size: 1.08rem;
    line-height: 1.18;
  }

  .hero-note {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding: 0.8rem 0.95rem;
    gap: 0.75rem;
  }

  .hero-note span {
    font-size: 0.82rem;
  }

  .hero-note strong {
    font-size: 1.05rem;
  }

  .hero-actions,
  .action-row,
  .contact-actions {
    gap: 0.7rem;
    margin-top: 1rem;
  }

  .hero-actions .button,
  .action-row .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-actions .button,
  .action-row .button {
    min-height: 3.15rem;
    font-size: 0.98rem;
  }

  .stats-strip {
    gap: 0.85rem;
    margin-top: 1.6rem;
  }

  .hero-facts {
    gap: 0.45rem;
    margin-top: 0.8rem;
  }

  .hero-facts li {
    padding: 0.4rem 0.7rem;
    font-size: 0.92rem;
  }

  .stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.22rem 0.8rem;
    padding: 0.9rem 0.95rem;
    min-height: 0;
  }

  .stat-card-icon {
    grid-row: 1 / span 2;
    width: 2.2rem;
    height: 2.2rem;
    margin-bottom: 0;
  }

  .stat-card span {
    margin-bottom: 0;
    font-size: 0.82rem;
  }

  .stat-card strong {
    font-size: 1rem;
    line-height: 1.3;
  }

  .section-heading {
    margin-bottom: 1.35rem;
  }

  .featured-layout,
  .preview-layout,
  .contact-layout,
  .featured-copy,
  .book-showcase {
    gap: 1.2rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .preview-copy,
  .preview-frame,
  .ornament-card,
  .details-card,
  .contact-card {
    padding: 1rem;
  }

  .ornament-card,
  .details-card,
  .contact-card,
  .preview-frame,
  .book-image-shell,
  .series-card,
  .motto-panel,
  .stat-card {
    border-radius: 1.65rem;
  }

  .ornament-card::after,
  .details-card::after,
  .contact-card::after,
  .book-image-shell::after,
  .preview-frame::after,
  .series-card::after {
    top: 0.65rem;
    width: 3.6rem;
  }

  .ornament-card h3,
  .details-card h3,
  .contact-card h3,
  .preview-poster-body h3,
  .hero-meta h2 {
    font-size: 1.18rem;
    line-height: 1.2;
  }

  .preview-poster-body h3 {
    max-width: 14ch;
  }

  .preview-poster-body p,
  .preview-note,
  .caption,
  .series-body p,
  .contact-card p,
  .ornament-card p,
  .contact-line,
  address {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .preview-poster-body p,
  .preview-note {
    font-size: 0.9rem;
  }

  .caption {
    margin-top: 0.45rem;
  }

  .preview-list {
    padding-left: 1rem;
  }

  .preview-list li + li {
    margin-top: 0.45rem;
  }

  .detail-grid {
    gap: 0.7rem;
    margin-top: 0.95rem;
  }

  .detail-grid div {
    padding: 0.8rem 0.9rem;
    border-radius: 0.95rem;
  }

  .detail-grid dt {
    font-size: 0.82rem;
  }

  .detail-grid dd {
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .motto-panel {
    padding: 1rem;
  }

  .motto-steps {
    gap: 0.7rem;
  }

  .motto-step {
    padding: 1rem;
  }

  .motto-step strong {
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 0.7rem;
    font-size: 1.2rem;
  }

  .series-card,
  .series-card:nth-child(3n + 1),
  .series-card:nth-child(3n + 2),
  .series-card:nth-child(3n) {
    transform: none;
  }

  .series-card:hover,
  .series-card:focus-within {
    transform: translateY(-3px);
  }

  .series-status {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    padding: 0.38rem 0.68rem;
  }

  .series-body {
    min-height: 0;
    padding: 0.95rem 0.9rem 1rem;
  }

  .series-body h3 {
    font-size: 1.12rem;
    line-height: 1.18;
  }

  html[lang="en"] .series-body {
    min-height: 0;
  }

  .contact-highlight {
    margin-top: 0.8rem;
    padding: 0.85rem 0.9rem;
  }

  .phone-highlight {
    font-size: 1.1rem;
  }

  .pdf-embed-shell object {
    height: min(52vh, 30rem);
  }

  .stats-strip,
  .series-grid {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .series-card,
  .series-card:hover,
  .series-card:focus-within {
    transform: none;
  }

  .hero-three-shell {
    display: none;
  }
}