/* Al Noor Decor
   Styled after the Illam reference (webstudio-ram.vercel.app/work/illam):
   warm paper background, light editorial serif with italics, small tracked bronze labels,
   hairline rules and square corners. The dark ink is the navy of the Al Noor Decor logo. */
:root {
  --paper: #F3F1EC;
  --paper-2: #EAE8E3;
  --white: #FFFFFF;
  --ink: #13203A;          /* logo navy, used where the reference uses near-black */
  --ink-2: #1C2C4D;
  --text: #2A3346;
  --muted: #5F6676;
  --accent: #8C5A3C;       /* bronze labels and numbers, from the reference */
  --line: #D8D3C9;

  --serif: "Marcellus", Georgia, "Times New Roman", serif;   /* fonts from the first Al Noor Decor site */
  --sans: "Figtree", "Segoe UI", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --section: clamp(80px, 10vw, 140px);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); background: var(--ink); }
body { margin: 0; font-family: var(--sans); font-size: 1.03rem; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: 0; }
/* Marcellus has no italic, so emphasised phrases stay upright */
h1 em, h2 em, h3 em { font-style: normal; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.75rem; line-height: 1.1; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-alt { background: var(--paper-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Small tracked label, as in the reference */
.label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.label-light { color: rgba(255,255,255,.85); }

/* Buttons: square, small caps text */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px;
  font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s; white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--paper); }
.btn-ghost { border-color: rgba(255,255,255,.75); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header);
  background: rgba(243,241,236,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px);
  transition: background-color .3s, border-color .3s, color .3s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 54px; width: auto; }
.brand-label { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: .86rem; letter-spacing: .03em; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--accent); }
.menu-toggle { display: none; }

/* Home: header floats over the hero until the page scrolls */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.home .site-header .nav-links a, .home .site-header .brand-label { color: var(--white); }
.home .site-header .btn-ink { background: var(--white); color: var(--ink); }
.home .site-header.is-scrolled { background: rgba(243,241,236,.96); border-bottom-color: var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.home .site-header.is-scrolled .nav-links a { color: var(--ink); }
.home .site-header.is-scrolled .brand-label { color: var(--muted); }
.home .site-header.is-scrolled .btn-ink { background: var(--ink); color: var(--white); }

/* Home hero: full-bleed photo, headline bottom left */
.hero {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink);
  padding: calc(var(--header) + 40px) 0 clamp(40px, 6vw, 72px);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(10,16,30,.55) 0%, rgba(10,16,30,.15) 30%, rgba(10,16,30,.35) 60%, rgba(10,16,30,.85) 100%),
  linear-gradient(90deg, rgba(10,16,30,.55), transparent 65%); }
.hero-inner { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 48px; align-items: end; }
.hero h1 { color: var(--white); font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1.04; margin-top: 18px; }
.hero h1 em { display: block; }
.hero-side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-side p { color: rgba(255,255,255,.88); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-caption { position: absolute; z-index: 2; right: var(--gutter); top: calc(var(--header) + 24px); transition: opacity .6s; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,.85); text-align: right; }

/* Hero film: finished project photos cross-fade with a slow push-in, like the reference's background films */
.hero-film { position: absolute; inset: 0; z-index: 0; }
.hero-film img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.6s ease; }
.hero-film img.is-on { opacity: 1; animation: push-in 8s linear forwards; }
@keyframes push-in { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.hero.is-paused .hero-film img.is-on { animation-play-state: paused; }
.film-toggle {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 18px;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  font: 500 .78rem var(--sans); color: var(--ink); background: rgba(243,241,236,.92);
  border: 0; border-radius: 999px; cursor: pointer;
}
.film-icon { width: 10px; height: 10px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); box-sizing: border-box; }
.film-toggle[aria-pressed="true"] .film-icon { border: 0; border-left: 9px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; width: 0; height: 0; }
.hero-inner { padding-bottom: 28px; }
@media (prefers-reduced-motion: reduce) { .hero-film img.is-on { animation: none; } }
/* Statement */
.statement { max-width: 980px; }
.statement p.big { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.18; color: var(--ink); margin-top: 22px; }
.statement .text-link { display: inline-block; margin-top: 28px; }

/* Numbered project chapters */
.chapter { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; }
.chapter + .chapter { margin-top: clamp(80px, 10vw, 140px); }
.chapter-photo { grid-column: 4 / -1; grid-row: 1; margin: 0; overflow: hidden; }
.chapter-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.chapter-card { grid-column: 1 / 6; grid-row: 1; position: relative; z-index: 1; margin-bottom: clamp(24px, 4vw, 56px); background: var(--paper); padding: clamp(24px, 3vw, 36px); box-shadow: 0 20px 50px rgba(19,32,58,.12); }
.chapter-flip .chapter-photo { grid-column: 1 / 10; }
.chapter-flip .chapter-card { grid-column: 8 / -1; }
.chapter-head { display: flex; align-items: baseline; gap: 14px; }
.chapter-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent); }
.chapter-card h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-top: 12px; }
.chapter-card p { margin-top: 12px; color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column; }
.stats dt { order: 2; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.stats dd { order: 1; margin: 0; font-family: var(--serif); font-size: 1.55rem; line-height: 1; color: var(--ink); }

/* Section heads */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--muted); max-width: 58ch; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.head-row .section-head { margin-bottom: 0; }

/* Page heading for inner pages */
.page-head { padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); margin-top: 18px; max-width: 16ch; }
.page-head p { margin-top: 22px; max-width: 58ch; color: var(--muted); font-size: 1.08rem; }

/* Tiles (services, spaces) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles[hidden] { display: none; }
.tile { text-decoration: none; display: block; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
.tile h3 { font-size: 1.6rem; margin-top: 16px; }
.tile p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
a.tile:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 6px; }
/* Category lists reused from the landing page photos */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.cat-grid[hidden] { display: none; }
.cat-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cat-card h3 { font-size: 1.5rem; margin-top: 14px; }
.cat-card p { margin-top: 4px; color: var(--muted); font-size: .93rem; }

/* Chips, used for filters, tabs and form choices */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 .86rem var(--sans); color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line); padding: 9px 16px; border-radius: 0; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Three service cards, middle one dark, as in the reference's engagement cards */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.plan { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; background: var(--paper); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: 2rem; }
.plan > p { margin-top: 14px; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .95rem; }
.plan li::before { content: "\2014\00a0"; color: var(--accent); }
.plan-best { margin-top: auto; padding-top: 26px; }
.plan-best .label { margin-bottom: 6px; }
.plan.is-dark { background: var(--ink); color: rgba(255,255,255,.85); }
.plan.is-dark h3 { color: var(--white); }
.plan.is-dark > p { color: rgba(255,255,255,.75); }
.plan.is-dark ul { border-top-color: rgba(255,255,255,.18); }
.plan.is-dark li::before { color: #C9A27E; }
.plan.is-dark .label { color: #C9A27E; }

/* Projects */
.project + .project { margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.project[hidden] { display: none; }
.project-head { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 24px 48px; align-items: start; margin-bottom: 32px; }
.project-title { display: flex; align-items: baseline; gap: 16px; }
.project-num { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.4rem); line-height: .9; color: var(--accent); }
.project-title h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.project-title .label { margin-top: 8px; }
.spec { margin: 0; border-top: 1px solid var(--line); font-size: .9rem; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); text-align: right; }
.project-head > p { color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair figure { margin: 0; }
.pair img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.pair figcaption { margin-top: 12px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.pair figcaption span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-top: 2px; }

/* Stages */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stages li { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.stages li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.stage-num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--accent); }
.stages h3 { font-size: 1.7rem; margin-top: 14px; }
.stages p { margin-top: 8px; color: var(--muted); font-size: .96rem; }

/* About two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split figure { margin: 0; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split .copy p { margin-top: 18px; color: var(--muted); }
.split .copy h2 { margin-top: 16px; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-family: var(--serif); font-size: 1.55rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Call to action */
.cta { background: var(--ink); color: rgba(255,255,255,.85); padding: clamp(80px, 10vw, 128px) 0; }
.cta h2 { color: var(--white); font-size: clamp(2.4rem, 4.8vw, 3.9rem); max-width: 18ch; margin-top: 16px; }
.cta p { margin-top: 18px; max-width: 52ch; }
.cta .hero-actions { margin-top: 32px; }
.cta .label { color: #C9A27E; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.reach { border-top: 1px solid var(--line); }
.reach a, .reach div.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.reach strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.reach span.sub { grid-column: 1; color: var(--muted); font-size: .92rem; }
.reach .go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: .72rem; font-weight: 600; letter-spacing: .2em; color: var(--accent); }
.reach a:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.areas-note { margin-top: 28px; color: var(--muted); }

.form { background: var(--paper-2); padding: clamp(24px, 4vw, 44px); }
.field { margin-bottom: 22px; min-width: 0; border: 0; padding: 0; }
.field > label, .field legend { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; padding: 0; }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #A3261E; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; font-size: .88rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 9px 14px; cursor: pointer; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { color: #A3261E; font-weight: 600; margin: -6px 0 16px; }
.form-note { margin-top: 12px; font-size: .86rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(64px, 8vw, 96px) 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { width: 150px; height: auto; }
.footer-brand p { margin-top: 18px; max-width: 30ch; }
.site-footer .label { color: #C9A27E; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-base { margin-top: 56px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

/* WhatsApp button */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.wa-float:hover { background: #1EBE5A; }

/* Tablet */
@media (max-width: 1100px) {
  .brand-label { display: none; }
  .tiles, .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; place-items: center; width: 46px; height: 46px; background: none; border: 1px solid var(--line); cursor: pointer; }
  .home .site-header:not(.is-scrolled) .menu-toggle { border-color: rgba(255,255,255,.5); }
  .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; content: ""; transition: transform .2s, background-color .2s; }
  .home .site-header:not(.is-scrolled) .menu-bars, .home .site-header:not(.is-scrolled) .menu-bars::before, .home .site-header:not(.is-scrolled) .menu-bars::after { background: var(--white); }
  .menu-bars::before { position: absolute; top: -6px; }
  .menu-bars::after { position: absolute; top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent !important; }
  .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a, .home .site-header .nav-links a { display: block; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav .btn { margin-top: 18px; }
  .home .site-header .site-nav .btn-ink { background: var(--ink); color: var(--white); }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-caption { display: none; }
  .chapter { display: block; }
  .chapter-card { margin: -64px 18px 0; }
  .project-head { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .stages { grid-template-columns: 1fr 1fr; }
  .stages li, .stages li:not(:nth-child(3n+1)) { padding: 24px 20px 28px 0; border-left: 0; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split img { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --header: 68px; }
  .brand img { height: 46px; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .hero-actions .btn { flex: 1 1 auto; }
  .tiles, .tiles-3 { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .cat-card h3 { font-size: 1.2rem; }
  .cat-card p { font-size: .85rem; }
  .chapter-card { margin: -40px 10px 0; }
  .pair { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
