/* Fonts are served locally; Cyrillic and Latin glyphs are included. */
@font-face { font-family: "PT Sans"; src: url("assets/fonts/pt-sans-regular.ttf") format("truetype"); font-style: normal; font-weight: 400 600; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("assets/fonts/pt-sans-bold.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Lora"; src: url("assets/fonts/lora-variable.ttf") format("truetype"); font-style: normal; font-weight: 400 700; font-display: swap; }
/* ORBITA · Cream & Sage. PHP with optional motion enhancement. */
:root {
  --paper: #f7f4ed; --paper-light: #fcfaf5; --ink: #193427;
  --green: #244432; --green-dark: #1d3528; --muted: #737267;
  --gold: #a78353; --terracotta: #a2603c; --line: #d9cebb;
  --serif: "Lora", Georgia, serif; --sans: "PT Sans", Arial, sans-serif;
  --container: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper-light); color: var(--ink); font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #d8dfce; }
body{
      font-family: SYSTEM-UI;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(32px, 3.5vw, 51px); line-height: 1.12; letter-spacing: -.8px; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.5px; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a87835; outline-offset: 5px; }
[id] { scroll-margin-top: 100px; }
.container { width: min(var(--container), calc(100% - 104px)); margin-inline: auto; }
.section { padding-block: 48px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 120; left: 20px; top: -100px; padding: 12px 20px; background: var(--green); color: white; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.eyebrow { color: #86643b; font-size: 13px; letter-spacing: 1.3px; text-transform: uppercase; font-weight: 500; line-height: 1.7; }
.small-label { font: 13px/1.5 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 23px; border: 1px solid transparent; border-radius: 5px; font-size: 16px; line-height: 1.4; white-space: nowrap; font-weight: 500; transition: background .2s, box-shadow .2s, transform .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px #203b2814; }
.button:active { transform: translateY(0); }
.button-primary { background: var(--green); color: var(--paper-light); border-color: var(--green); box-shadow: 0 3px 7px #243f3210; }
.button-primary:hover { background: #34573f; }
.button-outline { background: transparent; border-color: #b6a78d; }
.button-outline:hover { background: #eee7da; }
.button-light { background: #f6f3e9; color: var(--ink); }
.button-light:hover { background: white; }
.button-sand { background: #ddcaab; color: #20392a; }
.button-sand:hover { background: #eddbc0; }
.text-link { display: inline-flex; gap: 12px; align-items: center; font-size: 16px; color: var(--terracotta); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.brand { display: inline-flex; gap: 10px; align-items: center; flex-shrink: 0; font: 25px/1 var(--serif); letter-spacing: 6px; }
.brand-icon { width: 42px; height: 42px; fill: none; stroke: #9c8666; stroke-width: .8; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid #ded6c580; background: #faf8f2; }
.header-inner { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.desktop-nav { display: flex; gap: clamp(18px, 2vw, 28px); align-items: center; }
.desktop-nav a { font-size: 18px; padding-block: 10px; }
.desktop-nav a:hover { color: var(--terracotta); }
.login-link { min-height: 44px; padding: 9px 19px; font-size: 18px; gap: 8px; }
.login-link .icon { width: 16px; height: 16px; flex-basis: 16px; }
.mobile-menu { display: none; }
/* Independent, high-resolution illustrations. No screenshot atlas or coordinate crops. */
.art { position: relative; overflow: hidden; aspect-ratio: 1; }
.art img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #f2ecdf; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 15% 20%, #fffdf7 0, #f5f0e6 50%, transparent 80%); }
.hero-art { position: absolute; top: 0; right: 0; width: 64%; height: 100%; aspect-ratio: auto; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000 24%); }
.hero-art img { object-fit: cover; object-position: 60% center; }
.hero-art { container-type: size; }
.hero-scene {
  position: absolute; width: max(100cqw, 150cqh); height: max(100cqh, 66.666667cqw);
  left: 60%; top: 50%; transform: translate(-60%, -50%); pointer-events: none;
}
.hero-scene .hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.hero-planet { position: absolute; left: 50%; top: 10.8%; width: 5.4%; height: 18.75%; transform-origin: 50% 0; transform: rotate(var(--planet-angle, 0deg)); transition: transform 1s cubic-bezier(.22, 1, .36, 1); }
.hero-scene .hero-planet img { width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 0; animation: hero-planet-swing 7s ease-in-out infinite; }
.hero-card { position: absolute; transform-origin: 50% 98%; transition: transform .85s cubic-bezier(.22, 1, .36, 1); }
.hero-scene .hero-card img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 3px #4a321b35); }
.hero-card-sun { left: 50.2%; top: 42.5%; width: 18.4%; height: 43.7%; transform: perspective(900px) rotateX(var(--card-x, 0deg)) rotateY(var(--card-y, 0deg)) rotate(var(--sun-angle, 0deg)); }
.hero-card-moon { left: 68.8%; top: 40.5%; width: 19%; height: 45.5%; transform: perspective(900px) rotateX(var(--card-x, 0deg)) rotateY(var(--card-y, 0deg)) rotate(var(--moon-angle, 0deg)); }
@keyframes hero-planet-swing { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }
.hero-art.scene-paused .hero-planet img { animation-play-state: paused; }
@supports not (width: 1cqw) {
  .hero-art { background: url("assets/hero-botanical.webp") 60% center / cover no-repeat; }
  .hero-scene { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scene .hero-planet img { animation: none; transform: none; }
  .hero-planet, .hero-card { transform: none !important; transition: none; }
}
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f5f0e6 0%, #f5f0e6b0 7%, transparent 31%); }
.hero-inner { min-height: 590px; display: flex; align-items: center; padding-block: 54px 36px; }
.hero-copy { width: 55%; max-width: 740px; position: relative; }
.hero .eyebrow { margin-bottom: 23px; }
h1 { font-size: clamp(64px, 6.6vw, 96px); line-height: 1.06; letter-spacing: -3px; margin-bottom: 22px; }
.hero-description { font-family: var(--serif); font-size: clamp(21px, 2.1vw, 29px); line-height: 1.28; letter-spacing: -.4px; }
.calculator { position: relative; display: flex; gap: 22px; align-items: center; width: min(100%, 594px); margin-top: 31px; padding: 22px 24px 18px; border: 1px solid #dcd0bc; border-radius: 7px; background: #faf7efef; box-shadow: 0 8px 24px #4d3c2210; }
.calculator-fields { flex: 1; min-width: 0; }
.calculator label { display: block; margin-bottom: 13px; font: 18px var(--sans); }
.calculator-controls { display: flex; gap: 10px; }
.calculator input { color: var(--ink); width: 100%; min-width: 0; flex: 1; background: #fdfbf6; padding: 10px 11px; border: 1px solid #d7cbb7; border-radius: 5px; min-height: 46px; font-size: 16px; color-scheme: light; }
.calculator .button { padding-inline: 18px; min-height: 46px; gap: 12px; }
.matrix-preview { color: #b29a70; width: 114px; height: 114px; flex-shrink: 0; }
.microcopy { font-size: 13px; color: #746a57; margin-top: 10px; display: flex; gap: 6px; align-items: center; }
.microcopy .icon { width: 12px; height: 12px; flex-basis: 12px; }
.hero-day-link { margin-top: 18px; font-size: 16px; color: #756b55; }
.hero-day-link .icon { width: 16px; height: 16px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-bottom: 26px; }
.section-heading .eyebrow { color: #7d7a6c; font-size: 12px; letter-spacing: 2px; text-align: right; max-width: 430px; }
.services { background: #fcfaf5; padding-bottom: 44px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { position: relative; overflow: hidden; min-height: 208px; border-radius: 5px; background: #eee7d8; transition: transform .25s, box-shadow .25s; isolation: isolate; }
.service-card.sage { background: #e6e6d8; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px #27382912; }
.service-copy { position: relative; z-index: 2; width: 67%; padding: 28px 0 23px 25px; display: flex; flex-direction: column; align-items: flex-start; min-height: 208px; }
.service-card h3 { font-size: clamp(24px, 1.9vw, 28px); margin-bottom: 12px; }
.service-card p { font-family: var(--sans); font-size: 18px; line-height: 1.55; color: #625f54; }
.card-arrow { display: block; color: var(--terracotta); font: 24px/1 var(--sans); margin-top: auto; padding-top: 18px; }
.service-art { position: absolute; right: 0; bottom: 8px; width: 34%; z-index: 1; }
.daily { background: var(--green-dark); color: #f7f2e7; padding-top: 38px; padding-bottom: 42px; position: relative; }
.daily::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 35% 20%, #4d65412e, transparent 65%); }
.daily .container { position: relative; }
.daily .section-heading .eyebrow { color: #c1c5ae; }
.daily-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.daily-card { position: relative; min-height: 260px; overflow: hidden; border: 1px solid #9e9e6c75; border-radius: 7px; background: #263e2ee0; isolation: isolate; }
.daily-copy { position: relative; z-index: 2; padding: 29px 30px; width: 61%; }
.daily-copy .small-label { color: #c4bd9f; margin-bottom: 9px; font-size: 12px; }
.daily-copy h3 { font-size: 29px; margin-bottom: 12px; }
.daily-copy > p:not(.small-label) { color: #d7d9c9; font: 18px/1.5 var(--sans); }
.daily-copy .button { margin-top: 28px; }
.daily-art { position: absolute; right: 3%; bottom: 6px; width: 36%; height: 92%; aspect-ratio: auto; z-index: -1; }
.horoscope-daily .daily-copy { width: 64%; padding-bottom: 22px; }
.horoscope-form { margin-top: 18px; display: grid; gap: 10px; width: min(100%, 260px); }
.horoscope-form select { background: #fbf8f0; color: var(--ink); width: 100%; min-height: 40px; border: 1px solid #eee3ce; border-radius: 4px; padding: 8px 12px; font-size: 17px; }
.horoscope-form .button { margin-top: 0; min-height: 43px; justify-content: space-between; padding-inline: 17px; }
.zodiac-art { width: 34%; height: auto; aspect-ratio: 1; right: 3%; top: 26px; bottom: auto; }
.forecast-links { position: absolute; z-index: 3; right: 22px; bottom: 20px; display: flex; gap: 18px; font-size: 14px; }
.forecast-links a { border-bottom: 1px solid #b1b79a80; padding-block: 4px; }
.forecast-links a:hover { color: #ebd2a6; }
.guides { padding-top: 46px; padding-bottom: 48px; }
.guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.guide-card { position: relative; display: flex; min-height: 218px; overflow: hidden; border-radius: 5px; background: #eee8da; transition: background .2s, transform .2s; }
.guide-card:hover { transform: translateY(-3px); background: #e6ddca; }
.guide-art { width: 32%; flex-shrink: 0; align-self: stretch; aspect-ratio: auto; mask-image: linear-gradient(90deg, #000 75%, transparent); }
.guide-art img { object-fit: cover; }
.guide-copy { position: relative; z-index: 1; min-width: 0; padding: 26px 15px 22px 17px; display: flex; flex-direction: column; align-items: flex-start; }
.guide-copy .small-label { color: #917f61; font-size: 12px; letter-spacing: 1.2px; margin-bottom: 10px; }
.guide-copy h3 { font-size: 24px; margin-bottom: 10px; }
.guide-copy p { font: 17px/1.5 var(--sans); color: #747060; }
.guide-copy .card-arrow { font-size: 21px; padding-top: 12px; }
.personal { position: relative; isolation: isolate; overflow: hidden; background: #f1eadd; padding-block: 44px; }
.personal::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 20% 15%, #faf7ee, transparent 65%); }
.personal-art { position: absolute; right: 0; bottom: 0; width: 43%; aspect-ratio: 3 / 2; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000 25%); }
.personal-art img { object-fit: cover; }
.personal-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f1eadd, transparent 25%); }
.personal-copy { width: 73%; }
.personal .eyebrow { margin-bottom: 15px; }
.personal h2 { font-size: clamp(32px, 3.2vw, 46px); }
.personal-description { color: #6c6b5e; font-family: var(--sans); font-size: 19px; line-height: 1.5; margin-top: 15px; }
.personal-benefits { list-style: none; margin: 28px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 840px; }
.personal-benefits li { display: flex; align-items: flex-start; gap: 12px; }
.benefit-icon { display: flex; flex: 0 0 43px; width: 43px; height: 43px; align-items: center; justify-content: center; border: 1px solid #b7a687; border-radius: 50%; color: #9b8058; }
.benefit-icon .icon { width: 23px; height: 23px; }
.personal-benefits h3 { font-size: 18px; letter-spacing: 0; margin-bottom: 6px; }
.personal-benefits p { color: #857d6d; font: 16px/1.5 var(--sans); }
.personal-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.history { overflow: hidden; position: relative; background: #eee8da; border-block: 1px solid #fffaf0; }
.history-inner { min-height: 160px; position: relative; display: flex; align-items: center; gap: 26px; padding-block: 24px; }
.history-star { width: 66px; height: 66px; fill: none; stroke: #a6906b; stroke-width: .65; flex-shrink: 0; }
.history h2 { font-size: 34px; letter-spacing: -.9px; }
.history p { font: 18px/1.5 var(--sans); color: #797361; margin-top: 9px; }
.history .button { margin-left: auto; margin-right: 14%; position: relative; z-index: 2; }
.history-art { position: absolute; right: -52px; bottom: 0; width: 28%; aspect-ratio: 3 / 2; mask-image: linear-gradient(90deg, transparent, #000 30%); }
.history-art img { object-fit: cover; }
.history-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #eee8da, transparent 40%); }
.site-footer { background: #fcfaf6; padding-top: 32px; }
.footer-main { display: flex; align-items: center; gap: 35px; padding-bottom: 26px; }
.footer-brand p { font: 16px var(--serif); color: #8a8475; margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; font-size: 14px; }
.footer-nav a:hover { color: var(--terracotta); }
.back-top { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d7cebe; border-radius: 50%; color: #907c59; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid #e4ded1; display: flex; justify-content: space-between; gap: 20px; padding-block: 16px; font-size: 13px; color: #948e81; }
/* Pure CSS previews, opened and closed with fragment links. */
.info-panel { display: none; position: fixed; inset: 0; z-index: 100; padding: 24px; align-items: center; justify-content: center; }
.info-panel:target { display: flex; }
.panel-backdrop { position: absolute; inset: 0; background: #172a21b3; backdrop-filter: blur(5px); }
.panel-content { position: relative; width: min(100%, 560px); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 42px; background: var(--paper-light); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 25px 100px #0003; }
.panel-close { position: absolute; right: 12px; top: 9px; display: grid; place-items: center; width: 40px; height: 40px; font-size: 29px; color: var(--muted); }
.panel-content h2 { font-size: 35px; margin-bottom: 20px; }
.panel-content > .eyebrow { margin-bottom: 14px; }
.panel-content p, .panel-content li { font-size: 18px; color: #737062; }
.panel-content ul { padding-left: 22px; }
.panel-content li + li { margin-top: 9px; }
.panel-content .panel-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; }
.report-option { padding-block: 16px; border-bottom: 1px solid var(--line); }
.report-option h3 { font-size: 21px; margin-bottom: 8px; }
@media (min-width: 1600px) {
  .hero-art { width: 55%; }
  .hero-inner { min-height: 650px; }
}
@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .login-link { margin-left: auto; }
  .mobile-menu { display: block; }
  .mobile-menu summary { cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-label { font-size: 16px; }
  .menu-bars { width: 22px; height: 14px; border-block: 1px solid var(--ink); position: relative; }
  .menu-bars::after { content: ""; position: absolute; top: 5px; left: 0; right: 0; border-top: 1px solid var(--ink); }
  .mobile-menu[open] summary { color: var(--terracotta); }
  .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; padding: 12px 32px 22px; background: #faf8f2; box-shadow: 0 12px 16px #253a2314; border-top: 1px solid #e1d9c9; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
  .mobile-menu nav a { padding: 10px 4px; font-size: 17px; border-bottom: 1px solid #e6dfd1; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-art { width: 28%; max-width: 230px; }
  .guide-copy h3 { font-size: 27px; }

  .container { width: calc(100% - 64px); }
  .brand { font-size: 22px; letter-spacing: 5px; }
  .brand-icon { width: 35px; height: 35px; }
  .desktop-nav { gap: 18px; }
  .header-inner { gap: 20px; min-height: 74px; }
  .hero-inner { min-height: 545px; }
  .hero-copy { width: 62%; }
  .hero-art { width: 59%; }
  h1 { font-size: 80px; letter-spacing: -2.5px; }
  .service-copy { padding-left: 20px; width: 65%; }
  .service-card p { font-size: 16px; }
  .service-card h3 { font-size: 26px; }
  .service-art { width: 35%; }
  .daily-copy { padding: 25px; }
  .daily-copy h3 { font-size: 25px; }
  .daily-copy > p:not(.small-label) { font-size: 17px; }
  .guide-copy { padding-left: 12px; }
  .guide-copy h3 { font-size: 27px; }
  .guide-copy p { font-size: 16px; }
  .guide-card { min-height: 196px; }
  .personal-copy { width: 79%; }
  .personal-benefits { gap: 12px; }
  .personal-benefits li { gap: 8px; }
  .benefit-icon { width: 36px; height: 36px; flex-basis: 36px; }
  .history h2 { font-size: 29px; }
  .history .button { margin-right: 8%; }
  .footer-main { gap: 22px; }
  .footer-nav { gap: 15px; }
}
@media (max-width: 960px) {
  .hero-inner { min-height: 550px; padding-block: 42px; }
  .hero-copy { width: 72%; }
  .hero-art { width: 63%; top: 25px; opacity: .8; }
  .hero-art::after { background: linear-gradient(90deg, #f5f0e6 0%, #f5f0e6d0 17%, transparent 70%); }
  h1 { font-size: 76px; }
  .hero-description { font-size: 25px; }
  .calculator { background: #faf7f0f5; max-width: 560px; }
  .section-heading .eyebrow { max-width: 290px; letter-spacing: 1.4px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card h3 { font-size: 25px; }
  .service-card p { font-size: 18px; }
  .service-copy { width: 61%; padding-left: 24px; }
  .service-art { width: 35%; }
  .daily-grid { grid-template-columns: 1fr; gap: 16px; }
  .daily-card { min-height: 280px; }
  .daily-copy, .horoscope-daily .daily-copy { width: 65%; padding: 30px; }
  .daily-copy h3 { font-size: 32px; }
  .daily-copy > p:not(.small-label) { font-size: 19px; }
  .daily-art { width: 36%; right: 4%; }
  .zodiac-art { width: 29%; right: 5%; top: 20px; }
  .forecast-links { right: 35px; bottom: 24px; font-size: 16px; }
  .guides-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 176px; }
  .guide-art { width: 170px; }
  .guide-copy { padding: 23px 25px; }
  .guide-copy h3 { font-size: 27px; }
  .guide-copy h3 br, .guide-copy p br { display: none; }
  .guide-copy p { font-size: 18px; }
  .guide-copy .card-arrow { position: absolute; right: 0; bottom: 23px; padding: 0; }
  .guide-copy { flex: 1; padding-right: 50px; margin-right: 25px; }
  .personal-copy { width: 100%; }
  .personal h2 { max-width: 75%; }
  .personal-art { width: 42%; bottom: auto; top: 0; opacity: .6; }
  .personal-description { position: relative; max-width: 65%; }
  .personal-benefits { background: #f7f2e6bb; padding: 18px; border: 1px solid #e4d9c6; border-radius: 5px; margin-top: 28px; }
  .personal-benefits h3 { font-size: 18px; }
  .history-star { width: 45px; height: 45px; }
  .history-inner { flex-wrap: wrap; gap: 20px; }
  .history-copy { flex: 1; }
  .history .button { margin: 0; }
  .history-art { display: none; }
  .history h2 { font-size: 28px; }
  .history p { font-size: 17px; }
  .footer-main { flex-wrap: wrap; }
  .footer-brand { flex: 1; }
  .footer-nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 20px; }
  .back-top { margin-left: auto; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 20px; }
  [id] { scroll-margin-top: 20px; }
  .container { width: calc(100% - 36px); }
  .section { padding-block: 34px; }
  .header-inner { min-height: 68px; gap: 14px; }
  .brand { font-size: 21px; letter-spacing: 4px; gap: 7px; }
  .brand-icon { width: 31px; height: 31px; }
  .login-link { padding: 7px 11px; min-height: 35px; }
  .login-link .icon { display: none; }
  .menu-label { display: none; }
  .mobile-menu summary { padding-inline: 4px; }
  .mobile-menu nav { padding-inline: 18px; }
  .hero { background: #f5f0e6; }
  .hero-inner { min-height: 0; padding-block: 38px 32px; display: block; }
  .hero-copy { width: 100%; max-width: none; }
  .hero .eyebrow { margin-bottom: 21px; font-size: 12px; letter-spacing: 2px; }
  h1 { font-size: clamp(44px, 12.2vw, 76px); letter-spacing: -1.6px; line-height: 1.08; margin-bottom: 18px; position: relative; z-index: 1; }
  .hero-description { font-size: 22px; max-width: 86%; }
  .hero-art { width: 90%; height: auto; aspect-ratio: 3 / 2; top: 0; right: -22%; opacity: .5; }
  .hero-art::after { background: linear-gradient(90deg, #f5f0e6, #f5f0e6c9 20%, transparent 65%), linear-gradient(0deg, #f5f0e6, transparent 65%); }
  .calculator { width: 100%; padding: 20px; margin-top: 30px; gap: 12px; }
  .matrix-preview { display: none; }
  .calculator label { font-size: 18px; }
  .calculator-controls { gap: 10px; }
  .calculator input { font-size: 17px; padding-inline: 9px; min-height: 48px; }
  .calculator .button { padding-inline: 15px; font-size: 16px; gap: 10px; }
  .microcopy { font-size: 13px; margin-top: 12px; }
  .hero-day-link { margin-top: 17px; font-size: 16px; }
  h2 { font-size: 34px; letter-spacing: -1.3px; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading .eyebrow { text-align: left; max-width: 100%; font-size: 12px; letter-spacing: 1.3px; margin-top: 11px; }
  .section-heading .text-link { margin-top: 15px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card, .service-copy { min-height: 182px; }
  .service-copy { padding: 25px 0 20px 23px; width: 64%; }
  .service-card h3 { font-size: 26px; margin-bottom: 10px; }
  .service-card p { font-size: 18px; }
  .service-art { width: 33%; max-width: 185px; }
  .card-arrow { padding-top: 16px; font-size: 23px; }
  .daily-card { min-height: 266px; }
  .daily-copy, .horoscope-daily .daily-copy { padding: 25px 20px; width: 70%; }
  .daily-copy h3 { font-size: 29px; }
  .daily-copy > p:not(.small-label) { font-size: 18px; }
  .daily-copy .small-label { font-size: 12px; }
  .daily-copy .button { margin-top: 23px; padding-inline: 17px; font-size: 16px; gap: 10px; }
  .daily-art { width: 39%; right: 0; bottom: 13px; }
  .horoscope-daily { min-height: 350px; }
  .horoscope-daily .daily-copy { width: 78%; padding-bottom: 66px; }
  .horoscope-form { max-width: 224px; }
  .horoscope-form .button { margin-top: 0; }
  .zodiac-art { width: 30%; right: 3%; top: 84px; opacity: .8; }
  .forecast-links { left: 21px; right: auto; bottom: 18px; font-size: 14px; gap: 25px; }
  .guide-card { min-height: 186px; }
  .guide-art { width: 35%; }
  .guide-copy { padding: 25px 30px 24px 18px; margin-right: 16px; }
  .guide-copy h3 { font-size: 23px; }
  .guide-copy h3 br { display: initial; }
  .guide-copy p { font-size: 17px; }
  .guide-copy .small-label { font-size: 12px; }
  .guide-copy .card-arrow { bottom: 18px; font-size: 20px; }
  .personal .eyebrow { font-size: 12px; letter-spacing: 1.6px; }
  .personal h2 { max-width: 100%; font-size: 34px; }
  .personal-art { width: 75%; top: 40px; right: -30%; opacity: .23; }
  .personal-description { max-width: 100%; font-size: 18px; }
  .personal-description br { display: none; }
  .personal-benefits { grid-template-columns: 1fr; padding: 20px; gap: 19px; margin-block: 24px; }
  .personal-benefits li { gap: 14px; align-items: center; }
  .benefit-icon { width: 43px; height: 43px; flex-basis: 43px; }
  .personal-benefits h3 { font-size: 18px; }
  .personal-benefits p { font-size: 17px; }
  .personal-benefits p br { display: none; }
  .personal-actions { display: grid; grid-template-columns: 1fr; gap: 11px; }
  .personal-actions .button { min-height: 49px; }
  .history-inner { padding-block: 29px; gap: 14px; }
  .history-star { width: 34px; height: 34px; align-self: flex-start; margin-top: 3px; }
  .history-copy { flex-basis: calc(100% - 50px); }
  .history h2 { font-size: 27px; line-height: 1.15; }
  .history p { font-size: 18px; }
  .history p br { display: none; }
  .history .button { margin-left: 48px; min-height: 47px; }
  .site-footer { padding-top: 27px; }
  .footer-main { gap: 25px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; font-size: 16px; }
  .footer-nav a { padding-block: 7px; }
  .footer-brand p { font-size: 14px; }
  .footer-bottom { display: block; padding-block: 16px 22px; line-height: 1.6; }
  .footer-bottom span { display: block; }
  .footer-bottom span + span { margin-top: 5px; }
  .panel-content { padding: 34px 25px; }
  .panel-content h2 { font-size: 30px; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 28px); }
  .brand { font-size: 19px; letter-spacing: 3px; }
  .header-inner { gap: 10px; }
  .calculator { padding: 18px 15px; }
  .calculator-controls { flex-direction: column; }
  .calculator .button { justify-content: space-between; }
  .service-copy { padding-left: 18px; }
  .service-card h3 { font-size: 24px; }
  .service-card p { font-size: 17px; }
  .guide-copy h3 { font-size: 21px; }
  .guide-copy p { font-size: 16px; }
  .daily-copy h3 { font-size: 26px; }
  .horoscope-daily .daily-copy { width: 85%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Readable type at narrow widths, with room for controls and card titles. */
.service-copy p br, .guide-copy h3 br, .guide-copy p br, .personal-benefits p br { display: none; }
.service-copy, .service-card { min-height: 230px; }
.service-card p, .guide-copy p { overflow-wrap: break-word; }
.small-label { letter-spacing: 1px; }
.guide-copy .small-label { font-size: 12px; }
.personal-benefits h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; }
.personal-benefits p { font-size: 16px; }
.mobile-menu nav a { font-size: 18px; }
@media (max-width: 640px) {
  .hero .eyebrow, .section-heading .eyebrow, .personal .eyebrow { font-size: 12px; letter-spacing: 1px; }
  .service-copy { width: 67%; }
  .service-card p, .guide-copy p { font-size: 17px; }
  .service-card h3 { font-size: 25px; overflow-wrap: break-word; }
  .calculator-controls { flex-direction: column; }
  .calculator .button { font-size: 17px; justify-content: space-between; }
  .calculator input { font-size: 17px; }
  .daily-copy > p:not(.small-label) { font-size: 17px; }
  .daily-copy .small-label { font-size: 12px; }
  .daily-copy .button { white-space: normal; text-align: left; font-size: 16px; }
  .guide-copy h3 { font-size: 24px; overflow-wrap: break-word; }
  .guide-art { width: 28%; }
  .guide-copy { padding-right: 24px; }
  .forecast-links { font-size: 14px; gap: 15px; }
  .footer-brand p { font-size: 15px; }
  .footer-nav { font-size: 16px; }
}

/* Motion never changes the layout or hides the unenhanced page. */
.hero-title-line { display: block; }
.hero-title-word { display: inline-block; transform-origin: 50% 85%; }
.service-card, .guide-card, .daily-card {
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s, border-color .5s;
}
.service-card::before, .guide-card::before, .daily-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), #fff8df85, transparent 65%);
  opacity: 0; transition: opacity .5s;
}
.daily-card::before { background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), #d8ba7730, transparent 70%); }
.service-art img, .guide-art img, .daily-art img {
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}
.card-arrow, .button .icon, .text-link .icon { transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.button { position: relative; overflow: hidden; isolation: isolate; transition: background .3s, box-shadow .4s, transform .4s; }
.button::after {
  content: ""; position: absolute; inset: -60% -30%; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, #fff5 50%, transparent 65%);
  transform: translateX(-110%); transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.brand-icon { transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.service-card:focus-visible, .guide-card:focus-visible { box-shadow: 0 12px 28px #27382920; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-card:hover, .guide-card:hover, .daily-card:hover { transform: translateY(-6px); box-shadow: 0 18px 32px #203b2820; }
  .daily-card:hover { border-color: #c9b780; }
  .pointer-active::before { opacity: 1; }
  .service-card:hover .service-art img, .guide-card:hover .guide-art img, .daily-card:hover .daily-art img {
    transform: translate(var(--art-x, 0px), var(--art-y, 0px)) scale(1.035);
  }
  .service-card:hover .card-arrow, .guide-card:hover .card-arrow { transform: translate(4px, -4px); }
  .button:hover::after { transform: translateX(110%); }
  .button:hover .icon, .text-link:hover .icon { transform: translateX(4px); }
  .desktop-nav a:hover::after { transform: scaleX(1); }
  .brand:hover .brand-icon { transform: rotate(18deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .service-card:hover, .guide-card:hover, .daily-card:hover, .button:hover { transform: none; }
}
