:root {
  color-scheme: dark;
  --bg: #121416;
  --surface: #1b1e20;
  --text: #f3f0e8;
  --muted: #b5b6b1;
  --accent: #f0bd7b;
  --line: #ffffff24;
  --mint: #c4e1b9;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; min-width: 0; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { letter-spacing: -.055em; }
h1 { font-size: clamp(46px, 6.4vw, 84px); line-height: 1.1; }
h2 { font-size: clamp(34px, 4.1vw, 52px); line-height: 1.15; }
em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--accent); }
.wrap { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 18px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 600; letter-spacing: .18em; }
.brand-sun { width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; background: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--muted); }
.site-nav a { padding-block: 8px; transition: color .18s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav span { margin-left: 3px; }
.hero { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 28px; padding-block: 108px 116px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 25px; }
.tiny-sun { display: inline-block; margin-right: 8px; font-size: 20px; vertical-align: -2px; }
.hero-description { max-width: 430px; color: var(--muted); font-size: 18px; line-height: 1.75; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 36px; padding: 16px 22px; border-radius: 8px; background: var(--accent); color: #251b10; font-size: 15px; font-weight: 600; transition: background .18s, transform .18s; }
.button:hover { background: #ffd49c; transform: translateY(-2px); }
.solar-scene { position: relative; width: 100%; aspect-ratio: 1; max-width: 430px; justify-self: end; }
.solar-core { position: absolute; width: 45%; aspect-ratio: 1; top: 27.5%; left: 27.5%; border-radius: 50%; background: radial-gradient(circle at 32% 25%, #f9daa6, #e9ac62 65%, #b96a36); box-shadow: 0 0 90px #f0bd7b13; }
.solar-orbit { position: absolute; border: 1px solid #f0bd7b28; border-radius: 50%; }
.orbit-one { inset: 12%; }
.orbit-two { inset: 1%; border-style: dashed; border-color: #ffffff1c; }
.orbit-three { inset: 24%; }
.orbit-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.dot-one { top: 24%; right: 18%; }
.dot-two { bottom: 16%; left: 14%; width: 6px; height: 6px; background: #c5d6b7; }
.solar-caption { position: absolute; inset: auto 0 -24px; text-align: center; color: var(--muted); font-size: 11px; letter-spacing: .07em; }
.section-divider { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.projects-section { padding-block: 86px 96px; }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading > p { max-width: 400px; color: var(--muted); font-size: 16px; line-height: 1.8; justify-self: end; }
.project-list { display: grid; gap: 28px; }
.project-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.project-art { position: relative; display: grid; place-items: center; min-height: 390px; background: #d0d9bd; color: #2f4236; overflow: hidden; }
.project-art::before { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid #3c52492b; border-radius: 50%; }
.project-art::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px dashed #3c52492b; border-radius: 50%; }
.quest-emblem { position: relative; display: grid; place-items: center; width: 154px; height: 154px; background: #f7ead0; border-radius: 38px; transform: rotate(-10deg); box-shadow: 0 12px 0 #344c3020; z-index: 1; }
.quest-emblem > span { color: #d69042; font-size: 112px; line-height: 1; }
.quest-emblem i { position: absolute; width: 25px; height: 6px; top: 78px; left: 66px; border-bottom: 3px solid #5f452b; border-radius: 50%; }
.art-note { position: absolute; z-index: 2; background: #f6f1e6; border-radius: 7px; padding: 10px 15px; font-size: 13px; box-shadow: 0 5px 20px #2639240d; }
.note-one { top: 65px; left: 30px; transform: rotate(-6deg); }
.note-two { bottom: 66px; right: 24px; transform: rotate(5deg); }
.note-two b { margin-left: 8px; color: #97652b; }
.art-label { position: absolute; bottom: 22px; left: 24px; font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.project-copy { padding: 42px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.project-meta { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--accent); }
.meta-separator { margin-inline: 4px; color: #747875; }
.project-copy h3 { margin-top: 24px; font-size: 35px; letter-spacing: -.04em; }
.project-copy > p:not(.project-meta) { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 28px; }
.project-tags li { color: #d1d3ca; font-size: 11px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; }
.text-link { display: inline-flex; align-items: center; gap: 26px; padding-bottom: 7px; border-bottom: 1px solid #f0bd7b70; color: var(--accent); font-size: 14px; font-weight: 500; margin-top: auto; }
.text-link:hover { color: var(--text); border-color: currentColor; }
.projects-note { margin-top: 22px; color: var(--muted); font-size: 13px; }
.about-section { padding-block: 76px 100px; border-top: 1px solid var(--line); }
.about-section > .eyebrow { margin-bottom: 18px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; margin-top: 48px; }
.principle-mark { display: block; margin-bottom: 20px; font-size: 27px; color: var(--accent); }
.principles h3 { font-size: 20px; margin-bottom: 12px; letter-spacing: -.02em; }
.principles p { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 290px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px 35px; color: var(--muted); font-size: 12px; }
.footer-brand { font-size: 13px; letter-spacing: .18em; color: var(--text); }
.site-footer p { display: inline-flex; align-items: center; gap: 9px; }
.site-footer a:hover { color: var(--text); }

/* FamilyQuest shares the base layout; its accents and illustrations are warmer. */
.familyquest { --bg: #151918; --surface: #1e2521; --accent: #f4c88a; --muted: #b8c0b6; }
.quest-hero { grid-template-columns: 1.25fr 1fr; padding-block: 88px 90px; gap: 60px; }
.quest-hero h1 { font-size: clamp(44px, 5.5vw, 70px); }
.quest-hero .hero-description { max-width: 510px; font-size: 17px; }
.quest-hero .eyebrow { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; font-size: 11px; letter-spacing: .08em; }
.quest-hero .eyebrow .meta-separator { color: var(--muted); }
.development-note { margin-top: 20px; max-width: 430px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.quest-figure { margin: 0; min-width: 0; }
.quest-scene { position: relative; display: grid; place-items: center; min-height: 460px; }
.quest-scene::before { content: ""; position: absolute; width: 100%; aspect-ratio: 1; max-width: 400px; border-radius: 50%; background: #c4e1b90c; border: 1px solid #c4e1b92a; }
.scene-star { position: absolute; z-index: 2; color: var(--accent); font-size: 46px; top: 34px; right: 8px; transform: rotate(12deg); }
.scene-spark { position: absolute; z-index: 2; color: var(--mint); font-size: 33px; bottom: 50px; left: 0; }
.phone { position: relative; width: 280px; padding: 20px 17px 22px; border: 7px solid #ddd2bd; border-radius: 35px; background: #f8f3e7; color: #334737; transform: rotate(5deg); box-shadow: 18px 24px 0 #070a072b; }
.phone-notch { width: 53px; height: 6px; border-radius: 5px; background: #cdc9ba; margin: -7px auto 20px; }
.app-wordmark { font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.app-wordmark span { color: #a2692e; margin-right: 4px; }
.phone-greeting { font-size: 11px; color: #6b7867; margin-top: 20px; }
.phone-title { font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.04em; margin-top: 5px; }
.buddy-scene { height: 127px; display: grid; place-items: center; position: relative; }
.buddy-scene::before { content: ""; position: absolute; width: 150px; height: 85px; border: 1px dashed #70826455; border-radius: 50%; transform: rotate(-15deg); }
.buddy { position: relative; width: 82px; height: 82px; background: #edc279; border-radius: 36% 42% 35% 45%; transform: rotate(-8deg); box-shadow: 0 6px 0 #b98f4833; }
.buddy-eyes { position: absolute; top: 35px; left: 28px; width: 5px; height: 7px; background: #4b4736; border-radius: 50%; box-shadow: 22px 0 #4b4736; }
.buddy-smile { position: absolute; width: 13px; height: 8px; border-bottom: 2px solid #4b4736; border-radius: 50%; top: 46px; left: 35px; }
.buddy-star { position: absolute; right: 17px; top: 25px; color: #708c5e; font-size: 25px; }
.mock-task { padding: 14px; background: #fffdf6; border: 1px solid #d8ddcf; border-radius: 13px; }
.mock-task small { display: block; color: #6b7867; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.mock-task strong { display: block; font-size: 14px; line-height: 1.5; margin-top: 6px; }
.mock-task > span { display: flex; justify-content: space-between; font-size: 11px; margin-top: 9px; color: #697660; }
.mock-task b { color: #986025; font-weight: 600; }
.mock-points { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px; border-radius: 10px; background: #deead2; margin-top: 10px; font-size: 10px; }
.mock-points strong { font-size: 16px; }
.quest-figure figcaption { text-align: center; color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 22px; }
.quest-figure figcaption strong { display: block; color: var(--text); font-weight: 500; font-size: 12px; }
.quest-section { padding-block: 88px; border-top: 1px solid var(--line); }
.quest-section .section-heading { grid-template-columns: 1.2fr 1fr; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { padding: 30px; background: var(--surface); border: 1px solid #c4e1b924; border-radius: 15px; }
.feature-icon { display: grid; place-items: center; width: 39px; height: 39px; color: var(--mint); font-size: 24px; margin-bottom: 24px; }
.feature h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.03em; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.85; margin-top: 13px; max-width: 440px; }
.journey { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.journey li { border-top: 1px solid #c4e1b954; padding-top: 20px; }
.step-number { font-family: Georgia, "Times New Roman", serif; color: var(--mint); font-size: 30px; }
.journey h3 { font-size: 18px; line-height: 1.4; margin-top: 19px; }
.journey p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 12px; }
.next-panel { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 70px; padding: 50px; margin-top: 0; border-radius: 20px; color: #243a2e; background: var(--mint); }
.next-panel .eyebrow { color: #476647; }
.next-panel h2 { font-size: clamp(32px, 3.5vw, 44px); }
.next-panel p:not(.eyebrow) { font-size: 16px; line-height: 1.85; }
.next-panel .future-note { display: block; margin-top: 18px; color: #426044; font-size: 13px; }
.quest-closing { text-align: center; padding-block: 75px 90px; }
.quest-closing .closing-sun { display: block; color: var(--accent); font-size: 43px; margin-bottom: 22px; }
.quest-closing h2 { font-size: clamp(32px, 3.6vw, 46px); }
.quest-closing p { color: var(--muted); max-width: 550px; margin: 20px auto 30px; line-height: 1.85; font-size: 15px; }
.quest-closing .text-link { margin-top: 0; }

@media (min-width: 1400px) { .hero { padding-block: 125px 140px; } }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  h1 { font-size: clamp(46px, 6.4vw, 66px); }
  .hero { padding-block: 80px 95px; grid-template-columns: 1.4fr 1fr; gap: 24px; }
  .project-copy { padding: 32px; }
  .project-art { min-height: 380px; }
  .note-one { left: 18px; top: 55px; }
  .note-two { right: 16px; bottom: 60px; }
  .section-heading { gap: 35px; }
  .quest-hero { grid-template-columns: 1.25fr 1fr; gap: 25px; }
  .quest-hero h1 { font-size: 52px; }
  .quest-scene { min-height: 435px; }
  .phone { width: 260px; }
  .scene-star { right: -5px; font-size: 35px; }
  .next-panel { padding: 36px; gap: 36px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 23px; gap: 20px; }
  .brand { font-size: 14px; gap: 8px; }
  .brand-sun { width: 19px; height: 19px; flex-basis: 19px; }
  .site-nav { gap: 20px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-block: 58px 68px; }
  h1 { font-size: clamp(45px, 8.8vw, 64px); }
  .hero-description { font-size: 17px; }
  .solar-scene { width: min(75%, 320px); justify-self: center; margin-block: 10px 20px; }
  .solar-caption { bottom: -18px; font-size: 10px; }
  .section-heading, .quest-section .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .section-heading > p { justify-self: start; max-width: 500px; font-size: 15px; }
  .projects-section, .about-section, .quest-section { padding-block: 58px; }
  .project-card { grid-template-columns: 1fr; }
  .project-art { min-height: 310px; }
  .project-copy { padding: 30px; }
  .project-copy h3 { margin-top: 20px; }
  .note-one { top: 42px; left: 30px; }
  .note-two { right: 25px; bottom: 48px; }
  .principles { gap: 28px; margin-top: 35px; }
  .principles h3 { font-size: 18px; }
  .principles p { font-size: 13px; }
  .site-footer { gap: 18px; }
  .quest-hero { gap: 35px; }
  .quest-hero h1 { font-size: clamp(43px, 8.8vw, 64px); max-width: 580px; }
  .quest-figure { width: min(100%, 400px); justify-self: center; }
  .phone { width: 280px; }
  .quest-scene { min-height: 450px; }
  .scene-star { right: 15px; }
  .scene-spark { left: 8px; }
  .feature { padding: 26px; }
  .feature h3 { font-size: 20px; }
  .feature p { font-size: 14px; }
  .journey { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .next-panel { grid-template-columns: 1fr; gap: 25px; padding: 32px; }
  .quest-closing { padding-block: 60px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { gap: 12px; flex-wrap: wrap; }
  .site-nav { gap: 18px; }
  .site-nav span { display: none; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; margin-bottom: 20px; }
  .hero { padding-top: 42px; }
  h1 { font-size: clamp(37px, 10vw, 48px); }
  .hero-description { font-size: 16px; margin-top: 22px; }
  .button { margin-top: 28px; padding: 15px 19px; font-size: 14px; }
  .section-divider { font-size: 9px; letter-spacing: .06em; }
  .project-copy { padding: 26px 23px; }
  .project-copy h3 { font-size: 31px; }
  .project-art { min-height: 290px; }
  .note-one { left: 17px; top: 30px; }
  .note-two { right: 14px; bottom: 45px; }
  .art-note { padding: 8px 11px; font-size: 11px; }
  .quest-emblem { width: 133px; height: 133px; }
  .quest-emblem > span { font-size: 100px; }
  .quest-emblem i { top: 68px; left: 55px; }
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .principles > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 18px; }
  .principle-mark { grid-row: span 2; font-size: 25px; margin: 0; }
  .principles h3 { margin-bottom: 8px; }
  .principles p { max-width: none; font-size: 14px; }
  .site-footer { align-items: flex-start; }
  .site-footer p { flex-basis: 100%; order: 3; font-size: 11px; }
  .quest-hero h1 { font-size: clamp(38px, 10.5vw, 49px); }
  .quest-hero .hero-description { font-size: 16px; }
  .quest-scene { min-height: 425px; }
  .phone { width: min(260px, 100%); transform: none; box-shadow: 8px 12px 0 #070a072b; }
  .scene-star { right: 0; top: 10px; font-size: 30px; }
  .scene-spark { left: 0; bottom: 22px; font-size: 25px; }
  .quest-figure figcaption { margin-top: 12px; font-size: 10px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 25px; }
  .feature-icon { margin-bottom: 16px; }
  .journey { gap: 24px; }
  .journey h3 { font-size: 16px; margin-top: 15px; }
  .journey p { font-size: 13px; }
  .next-panel { padding: 28px 24px; border-radius: 15px; }
  .next-panel p:not(.eyebrow) { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
