:root {
  --ink: #10182b;
  --blue: #1748a8;
  --navy: #081529;
  --muted: #4e6079;
  --line: #dce6f4;
  --surface: #f8fafc;
  color: var(--ink);
  background: var(--surface);
  font: 16px/1.55 "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #3879df; outline-offset: 5px; }
.wrap { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 12px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: #fff; }
.header-row, .header-actions, .brand { display: flex; align-items: center; }
.header-row { min-height: 77px; justify-content: space-between; gap: 24px; }
.brand { gap: 10px; font-weight: 800; line-height: 1.16; white-space: nowrap; }
.brand img { border-radius: 6px; object-fit: contain; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .63rem; letter-spacing: .13em; text-transform: uppercase; }
.header-row nav, .footer-row nav { display: flex; gap: clamp(16px, 3vw, 35px); font-size: .9rem; font-weight: 650; }
.header-row nav a:hover, .footer-row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { gap: 7px; }
.login, .menu { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; background: white; color: var(--ink); border: 1px solid #c9d6e8; border-radius: 8px; }
.login { gap: 10px; padding: 0 15px; font-size: .9rem; font-weight: 750; white-space: nowrap; }
.login span { color: var(--blue); }
.menu { display: none; width: 42px; }
.menu svg { width: 22px; }
.details { background: #fff; border-block: 1px solid var(--line); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 70px; padding-block: 37px; }
.details h2 { margin-block: 4px 7px; font-size: 1.55rem; letter-spacing: -.04em; }
.details p:last-child, footer p { color: var(--muted); font-size: .91rem; }
footer { padding-block: 30px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
dialog { width: min(430px, calc(100% - 34px)); max-height: calc(100% - 34px); padding: 28px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
dialog::backdrop { background: #081529bd; }
dialog h2 { margin-block: 6px 8px; letter-spacing: -.04em; }
dialog p:not(.eyebrow) { margin-bottom: 17px; color: var(--muted); }
.close { position: absolute; top: 9px; right: 9px; width: 37px; height: 37px; border: 0; border-radius: 7px; background: #edf4ff; color: var(--navy); font-size: 1.4rem; }
@keyframes enter { from { opacity: 0; transform: translateY(9px); } }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-row { min-height: 64px; gap: 6px; }
  .brand { gap: 6px; font-size: .84rem; }
  .brand img { width: 37px; height: 37px; }
  .brand small { font-size: .53rem; }
  .login { gap: 5px; padding-inline: 9px; }
  .menu { display: inline-flex; }
  .header-row nav { display: none; position: absolute; inset: 100% 0 auto; background: white; border-bottom: 1px solid var(--line); padding: 12px 18px; }
  .header-row nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .header-row nav a { padding: 10px; }
  .details-grid { grid-template-columns: 1fr; padding-block: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background: radial-gradient(ellipse at 76% 52%, #10274b 0%, #0b1c36 28%, transparent 66%), #070f20;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.03fr .97fr; grid-template-rows: auto minmax(190px, 1fr); min-height: clamp(470px, 43vw, 580px); isolation: isolate; }
.intro { grid-column: 1; grid-row: 1; padding: clamp(31px, 4.4vw, 60px) 0 0; animation: enter .55s ease-out both; }
.eyebrow { color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .14em; }
h1 { font-size: clamp(2.65rem, 5.3vw, 5.6rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; }
h1 strong { color: #a7c9ff; font-weight: 700; }
.lead { max-width: 32ch; margin-block: 13px 17px; color: #d2e2f9; font-size: clamp(.96rem, 1.5vw, 1.15rem); }
.primary { display: inline-flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 46px; padding: 9px 16px; border-radius: 8px; background: var(--blue); color: white; font-size: .88rem; font-weight: 750; transition: background .2s; }
.primary:hover { background: #103a8a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .primary { min-height: 50px; gap: 9px; padding-inline: 14px; border: 1px solid transparent; background: #d7e7ff; color: #0d2550; }
.hero .primary:hover { background: white; }
.hero .books-action { border-color: #91afd173; background: #132745; color: #e7f0ff; }
.hero .books-action:hover { background: #203c62; }
.hero-portrait { grid-column: 2; grid-row: 1 / 3; position: relative; align-self: end; justify-self: end; overflow: hidden; width: min(114%, 600px); aspect-ratio: 1; }
.hero-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transform: translateY(1.4%); }
.showcase { grid-column: 1; grid-row: 2; position: relative; min-height: 190px; width: 103%; pointer-events: none; }
.plinth { position: absolute; inset: auto 0 5%; height: 24%; border: 1px solid #9dc4ff65; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #5888cf70, #1b396a 67%, #101f3d 100%); box-shadow: 0 15px 0 -2px #0b1f42, 0 25px 38px #020b1bd9; }
.fan { position: absolute; inset: 0; }
.fan img { position: absolute; width: 23%; height: 65%; left: var(--x); bottom: var(--y); object-fit: contain; object-position: center bottom; transform-origin: center 90%; transform: rotate(var(--tilt)) scale(var(--size)); filter: drop-shadow(6px 11px 8px #010713a0); animation: book-in .65s .11s ease-out both; }
.fan img:nth-child(1) { --x: 0%; --y: 18%; --tilt: -23deg; --size: .70; z-index: 1; }
.fan img:nth-child(2) { --x: 12%; --y: 20%; --tilt: -16deg; --size: .79; z-index: 2; }
.fan img:nth-child(3) { --x: 24%; --y: 17%; --tilt: -9deg; --size: .93; z-index: 3; }
.fan img:nth-child(4) { --x: 37%; --y: 13%; --tilt: -2deg; --size: 1.06; z-index: 7; }
.fan img:nth-child(5) { --x: 49%; --y: 14%; --tilt: 7deg; --size: .98; z-index: 6; }
.fan img:nth-child(6) { --x: 61%; --y: 18%; --tilt: 14deg; --size: .86; z-index: 5; }
.fan img:nth-child(7) { --x: 73%; --y: 21%; --tilt: 22deg; --size: .74; z-index: 4; }
@keyframes book-in { from { opacity: 0; transform: translateY(14px) rotate(calc(var(--tilt) / 2)) scale(var(--size)); } }
.catalog { padding-block: clamp(36px, 6vw, 74px); }
.catalog h2 { font-size: clamp(1.85rem, 4vw, 3.4rem); letter-spacing: -.05em; line-height: 1.15; margin: 7px 0 22px; }
.year-group + .year-group { margin-top: 30px; }
.year-group h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 11px; }
.year-group h3 small { color: var(--muted); font-size: .72em; font-weight: 550; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.catalog-book { display: grid; grid-template-rows: auto 1fr auto; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.catalog-book img { width: 100%; height: 142px; padding: 8px; object-fit: contain; background: #eff5ff; border-radius: 7px; }
.catalog-book h4 { margin: 0; font-size: .92rem; line-height: 1.3; }
.catalog-book button { display: flex; justify-content: space-between; min-height: 41px; align-items: center; padding: 6px 9px; border: 1px solid #c7d8f3; border-radius: 6px; color: var(--blue); background: white; font-size: .81rem; font-weight: 750; }
.catalog-book button:hover { background: #eaf2ff; }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto clamp(180px, 60vw, 350px); min-height: 0; }
  .intro { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; padding: 19px 0 0; }
  h1 { font-size: clamp(2.55rem, 8vw, 4rem); }
  .lead { margin-block: 8px 11px; font-size: .91rem; max-width: 30ch; }
  .hero .primary { min-height: 44px; padding-inline: 10px; font-size: .8rem; }
  .hero-portrait { grid-column: 2; grid-row: 2; justify-self: start; width: min(150%, 420px); height: 100%; min-height: 0; aspect-ratio: auto; margin: 0 0 0 -27%; }
  .showcase { grid-column: 1; grid-row: 2; z-index: 1; align-self: end; min-height: clamp(106px, 32vw, 205px); width: 122%; margin: 0 0 0 -4%; }
  .fan img { width: 26%; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .catalog-book { padding: 9px; }
}

.science-field { position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(62%, 960px); pointer-events: none; }
.science-field img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(34px, 6vw, 85px);
  height: auto;
  opacity: .72;
  mask-image: linear-gradient(90deg, transparent, #000 8% 92%, transparent), linear-gradient(transparent, #000 8% 92%, transparent);
  mask-composite: intersect;
  filter: url(#clean-icon-edges) drop-shadow(0 0 8px #2486ed35);
  animation: science-drift 10s var(--delay) ease-out infinite both;
}
.science-field img:nth-child(1) { --x: 11%; --y: 18%; --dx: 160%; --dy: 120%; --delay: -3s; }
.science-field img:nth-child(2) { --x: 85%; --y: 15%; --dx: -150%; --dy: 130%; --delay: -6s; }
.science-field img:nth-child(3) { --x: 6%; --y: 48%; --dx: 215%; --dy: -25%; --delay: -7s; }
.science-field img:nth-child(4) { --x: 81%; --y: 53%; --dx: -140%; --dy: -60%; --delay: -2s; }
.science-field img:nth-child(5) { --x: 57%; --y: 6%; --dx: 20%; --dy: 205%; --delay: -9s; }
.science-field img:nth-child(6) { --x: 91%; --y: 69%; --dx: -190%; --dy: -90%; --delay: -4s; }
.science-field img:nth-child(7) { --x: 16%; --y: 73%; --dx: 180%; --dy: -120%; --delay: -5s; }
.science-field img:nth-child(8) { --x: 30%; --y: 9%; --dx: 110%; --dy: 165%; --delay: -8s; }
@keyframes science-drift {
  0% { transform: translate(var(--dx), var(--dy)) rotate(-14deg) scale(.6); opacity: 0; }
  29%, 78% { opacity: .8; }
  100% { transform: translate(0, 0) rotate(8deg); opacity: 0; }
}
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.button-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .science-field { inset: auto -5% 0 auto; width: 85%; height: min(47%, 335px); }
}

.book-preview { background: #edf3fc; border-block: 1px solid var(--line); }
.book-preview-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(22px, 6vw, 70px); padding-block: clamp(30px, 5vw, 58px); }
.book-preview h2 { max-width: 19ch; margin-block: 6px 10px; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.045em; }
.book-preview p:not(.eyebrow), .catalog-intro { color: var(--muted); max-width: 46ch; }
.book-preview .primary { margin-top: 16px; }
.preview-covers { display: flex; align-items: center; justify-content: center; gap: 4%; }
.preview-covers img { width: min(43%, 128px); height: auto; object-fit: contain; filter: drop-shadow(0 9px 11px #142b4c35); }
.preview-covers img:first-child { transform: rotate(-8deg); }
.preview-covers img:last-child { transform: rotate(6deg); }
.catalog h1 { margin-block: 7px 11px; font-size: clamp(2rem, 5vw, 3.8rem); }
.year-switch { display: inline-flex; gap: 4px; margin-block: 21px; padding: 4px; border-radius: 9px; background: #e5edf9; }
.year-switch[hidden] { display: none; }
.year-switch a { padding: 8px 15px; border-radius: 6px; font-size: .9rem; font-weight: 700; }
.year-switch a[aria-current] { background: #132745; color: #fff; }
@media (max-width: 560px) {
  .book-preview-inner { grid-template-columns: minmax(0, 1fr) minmax(78px, .42fr); gap: 10px; }
  .preview-covers { gap: 0; }
  .preview-covers img { width: 56%; }
}

.dark-section { color: #f0f5ff; background: #0a1529; }
.dark-section .eyebrow { color: #a4c8ff; }
.dark-section h2 { margin-block: 7px 14px; font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.06; letter-spacing: -.05em; }
.portal-section, .reviews-section { padding-block: clamp(48px, 7.5vw, 100px); }
.portal-section { background: radial-gradient(ellipse at 86% 14%, #192f52, transparent 62%), #0a1529; }
.portal-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px 38px; margin-bottom: 24px; }
.portal-heading > p, .about-copy > p:not(.eyebrow), .contact-section p:not(.eyebrow) { color: #b9cbe5; }
.portal-heading > p { max-width: 35ch; padding-bottom: 14px; }
.section-login { margin-top: 21px; border: 1px solid transparent; background: #d7e7ff; color: #0d2550; }
.section-login:hover { background: #fff; }
.about-section { border-block: 1px solid #2c4162; background: #101e35; }
.about-grid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: end; gap: clamp(16px, 3vw, 42px); }
.about-portrait { align-self: end; background: radial-gradient(ellipse at bottom, #294d7b, transparent 70%); }
.about-portrait img { display: block; width: 100%; max-height: 535px; height: auto; object-fit: contain; object-position: bottom; }
.about-copy { padding-block: clamp(34px, 5vw, 74px); }
.about-copy > p:not(.eyebrow) { max-width: 53ch; }
.credentials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 23px 0 0; }
.credentials > div { padding: 12px 0 0; border-top: 1px solid #536e94; }
.credentials dt { color: #a4c8ff; font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.credentials dd { margin: 4px 0 0; font-weight: 750; }
.credentials dd small { display: block; margin-top: 3px; color: #b9cbe5; font-weight: 500; }
.contact-section { padding: 0; border-top: 1px solid #2c4162; background: radial-gradient(ellipse at 85% 20%, #172f53, transparent 64%), #070f20; }
.contact-inner { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 27px 65px; padding-block: clamp(38px, 6vw, 70px); }
.contact-links { display: grid; gap: 7px; }
.contact-links a { padding: 9px 0; border-bottom: 1px solid #466082; font-weight: 720; }
.contact-links a:hover, .footer-credit a { text-decoration: underline; text-underline-offset: 4px; }
.footer-credit { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 20px; padding-block: 17px; border-top: 1px solid #2c4162; color: #b9cbe5; font-size: .83rem; }
@media (max-width: 760px) {
  .portal-heading { display: block; }
  .portal-heading > p { padding-bottom: 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .about-portrait { grid-row: 2; width: min(100%, 430px); justify-self: center; }
  .about-copy { padding-bottom: 4px; }
}

.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.feature-card { grid-column: span 2; }
.feature-card:nth-child(4) { grid-column: 2 / span 2; }
.feature-card:nth-child(5) { grid-column: 4 / span 2; }
.feature-card { padding: clamp(14px, 2vw, 23px); border: 1px solid #35465f; border-radius: 10px; background: #111e31; }
.feature-icon { width: 27px; height: 27px; color: #f0f5ff; }
.feature-card h3 { margin: 12px 0 6px; font-size: 1.04rem; line-height: 1.2; }
.feature-card p { color: #b9cbe5; font-size: .88rem; }
.contact-section h2 { font-size: clamp(2.7rem, 6vw, 5rem); }
.contact-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contact-links a { display: grid; min-height: 45px; place-items: center; padding: 6px; border: 1px solid #466082; border-radius: 8px; background: #11213a; font-size: .84rem; }
.contact-links a:hover { background: #203552; }
@media (max-width: 760px) {
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card, .feature-card:nth-child(4), .feature-card:nth-child(5) { grid-column: 1; }
}

.reviews-section { text-align: center; background: radial-gradient(ellipse at 50% 70%, #162d50, transparent 65%), #0a1529; }
.contact-section .contact-cta { min-height: 58px; padding-inline: 24px; font-size: 1.05rem; }
.footer-credit { display: grid; justify-content: center; text-align: center; gap: 4px; }
.credit-name { color: #e3eeff; font-weight: 700; }
.cart-count { min-width: 22px; text-align: center; border-radius: 5px; background: #ffffff24; }
.checkout-dialog { width: min(550px, calc(100% - 24px)); }
.checkout-dialog .primary { border: 0; }
.cart-items, .order-items { list-style: none; padding: 0; }
.cart-items li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.quantity-actions { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.quantity-actions button, .checkout-back { min-width: 38px; min-height: 38px; border: 1px solid #c9d6e8; border-radius: 6px; background: #edf3fc; color: var(--ink); }
.delivery-form { display: grid; gap: 10px; }
.delivery-form[hidden] { display: none; }
.delivery-form label { display: grid; gap: 3px; font-size: .88rem; font-weight: 650; }
.delivery-form input, .delivery-form textarea { width: 100%; padding: 7px 9px; border: 1px solid #aebed4; border-radius: 6px; font: inherit; }
.checkout-back { display: block; margin-top: 10px; padding-inline: 10px; }

.subject-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.subject-filters[hidden], .catalog-book[hidden] { display: none; }
.subject-filters button { padding: 6px 11px; border: 1px solid #cad8ed; border-radius: 6px; background: #fff; color: #18345d; }
.subject-filters button[aria-pressed="true"] { background: #dbe9ff; border-color: #9bb8e2; font-weight: 700; }
.floating-cart { position: fixed; z-index: 5; bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #a4bce4; border-radius: 16px; color: #fff; background: #132745; box-shadow: 0 6px 22px #08152940; }
.floating-cart:hover { background: #214374; }
.floating-cart .button-icon { width: 25px; height: 25px; }
.floating-cart .cart-count { position: absolute; top: -7px; right: -7px; min-width: 23px; padding-inline: 4px; color: #0d2550; background: #d7e7ff; border-radius: 20px; font-size: .74rem; font-weight: 800; }
.cart-status { position: fixed; z-index: 5; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 67px); right: max(16px, env(safe-area-inset-right)); max-width: calc(100vw - 32px); padding: 9px 13px; border-radius: 8px; color: white; background: #132745; font-size: .84rem; }
.cart-status:empty { padding: 0; }

.review-carousel { margin-top: clamp(18px, 4vw, 32px); }
.review-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(62%, 580px)) minmax(0, 1fr);
  align-items: center;
  gap: clamp(4px, 2vw, 24px);
  overflow: hidden;
}
.review-slide { grid-row: 1; min-width: 0; margin: 0; }
.review-slide[hidden] { display: none; }
.review-slide[data-review-position="current"] { grid-column: 2; }
.review-slide[data-review-position="previous"] { grid-column: 1; mask-image: linear-gradient(to right, transparent, #000 95%); }
.review-slide[data-review-position="next"] { grid-column: 3; mask-image: linear-gradient(to left, transparent, #000 95%); }
.review-slide[aria-hidden="true"] { opacity: .48; }
.review-slide img {
  display: block;
  width: 100%;
  height: clamp(175px, 50vw, 350px);
  object-fit: contain;
}
.review-slide[data-review-position="previous"] img { object-position: right center; }
.review-slide[data-review-position="next"] img { object-position: left center; }
.review-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.review-controls[hidden] { display: none; }
.review-controls button {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  color: #fff;
  background: #203552;
  border: 1px solid #6880a1;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.review-controls button:hover { background: #304c71; }
.review-controls button:focus-visible { outline: 2px solid #e3eeff; outline-offset: 3px; }
.review-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 600px) {
  .review-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 78%) minmax(0, 1fr); }
  .review-slide[aria-hidden="true"] { overflow: hidden; }
  .review-slide[aria-hidden="true"] img { width: 180%; }
  .review-slide[data-review-position="previous"] img { margin-left: -80%; }
}

/* Prepare below-the-fold content before it enters the viewport. */
.scroll-reveal { opacity: 0; transform: translateY(36px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.scroll-reveal.is-visible { opacity: 1; transform: none; }
.scroll-reveal:focus-within { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; }
}

/* Footer actions and accessible social logo links. */
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact-actions .contact-cta { flex: 1; justify-content: center; gap: 12px; max-width: 220px; margin-top: 0; }
.contact-actions .follow-cta { background: #11213a; border-color: #466082; color: #e3eeff; }
.contact-actions .follow-cta:hover { background: #203552; }
.contact-socials { justify-self: center; text-align: center; scroll-margin-block: 24px; }
.contact-socials h3 { margin: 0 0 14px; font-size: 1.05rem; }
.contact-socials .contact-links { display: flex; gap: 12px; }
.contact-socials .contact-links a { width: 58px; height: 58px; padding: 16px; color: #e3eeff; }
.social-icon { display: block; width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 760px) {
  .contact-inner { gap: 30px; }
  .contact-actions .contact-cta { max-width: none; min-width: 0; padding-inline: 12px; font-size: .95rem; }
  .contact-socials { justify-self: start; text-align: left; }
}

.portal-shortcuts { display:flex; flex-wrap:wrap; justify-content:center; gap:12px 24px; padding-block:20px; font-size:.82rem; color:#b9cbe5; }
.portal-shortcuts a { padding:8px 0; }
.portal-shortcuts a:hover { text-decoration:underline; }

.shop-heading, .shop-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.shop-categories { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 20px; }
.shop-categories button { border: 1px solid var(--line); border-radius: 7px; padding: 7px 12px; color: var(--ink); background: white; }
.shop-categories button[aria-pressed="true"] { background: #132745; color: white; border-color: #132745; }
.catalog-book { align-content: start; grid-template-rows: auto; min-width: 0; overflow-wrap: anywhere; }
.catalog-book p { margin: 0; font-size: .85rem; }
.catalog-book select { width: 100%; font: inherit; padding: 5px; border: 1px solid var(--line); border-radius: 6px; }
.catalog-book button:disabled, .checkout-dialog button:disabled { opacity: .55; cursor: default; }
.book-photos { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; }
.book-photos img { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; height: 175px; }
.book-photos-controls { display: flex; flex-wrap: wrap; gap: 4px; }
.book-photos-controls button { min-height: 30px; padding: 3px 9px; }
.checkout-dialog { max-height: calc(100dvh - 24px); overflow-y: auto; overflow-wrap: anywhere; }
.checkout-dialog .checkout-back { display: inline-flex; align-items: center; }
.checkout-dialog .shop-actions { justify-content: flex-start; }
.checkout-dialog .shop-actions .checkout-back { margin: 0; }
.delivery-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-full { grid-column: 1 / -1; }
.shop-error { color: #9d293d; }
.shop-error:empty, #order-result:empty, #shop-location-status:empty, #copy-status:empty { display: none; }
#order-address { margin: 12px 0; }
#order-address p { margin: 4px 0; }
#order-payment { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 6px; }
#receipt-form, #whatsapp-form { display: grid; gap: 8px; margin-block: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
#receipt-form label { display: grid; gap: 6px; }
#receipt-form input { max-width: 100%; }
#whatsapp-form[hidden], #receipt-form[hidden], #order-payment[hidden], #order-confirm[hidden] { display: none; }
#whatsapp-form p { margin: 0; }
.shop-check { display: flex; gap: 8px; align-items: start; }
.checkout-dialog[dir="rtl"] .close { right: auto; left: 12px; }
@media (max-width: 380px) {
  .delivery-form { grid-template-columns: minmax(0, 1fr); }
}
.shop-categories:empty { display: none; }
.checkout-dialog #checkout-error { color: #9d293d; }
.checkout-dialog h2 { padding-inline-end: 36px; }
