@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap');
:root{--bg:#050a13;--cream:#f4eee2;--muted:#d2d0d0;--gold:#e5b45e;--line:rgba(231,220,203,.24);--serif:'Playfair Display',Georgia,serif;--sans:'DM Sans',Arial,sans-serif;--width:1170px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:74px}body{margin:0;background:#050a13;color:var(--cream);font:16px/1.55 var(--serif);overflow-x:hidden}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}
.wrap,header{width:min(var(--width),100%);margin-inline:auto}header{height:62px;padding:0 clamp(24px,6.4vw,78px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:relative;z-index:5;background:#050a13 url('../images/cosmic-panorama.jpg') center 10%/cover no-repeat}.logo{font:500 1.55rem var(--serif);letter-spacing:-.04em;white-space:nowrap}.logo span{color:var(--gold)}nav{display:flex;gap:clamp(24px,4vw,48px);font:1rem var(--serif)}nav a{transition:color .2s}nav a:hover,footer a:hover{color:var(--gold)}.nav-cta{color:var(--gold)}.menu{display:none}
.hero{height:420px;position:relative;display:flex;align-items:center;padding:32px clamp(28px,8.2vw,98px);isolation:isolate;background:#060b15 url('../images/cosmic-panorama.jpg') center 38%/cover no-repeat;overflow:hidden}.hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(3,7,14,.38) 0%,rgba(3,7,14,.13) 48%,rgba(3,7,14,.04) 100%)}.hero-copy{max-width:570px;position:relative;z-index:1}.hero-brand{font:600 clamp(3rem,6vw,4.35rem)/1.05 var(--serif);letter-spacing:-.045em;margin:0 0 10px;text-shadow:0 2px 16px rgba(0,0,0,.45)}.hero-kicker{font:500 .82rem var(--serif);letter-spacing:.32em;margin:0;color:#f1e8d9}.rule{width:60px;height:2px;background:var(--gold);margin:20px 0}.lead{font:italic clamp(1.3rem,2.1vw,1.75rem)/1.28 var(--serif);max-width:590px;margin:0 0 14px;text-shadow:0 2px 10px #000}.muted{color:#eee9e2;max-width:500px;font-size:.96rem;line-height:1.42;margin:0 0 20px;text-shadow:0 2px 9px #000}.button{display:inline-flex;align-items:center;gap:18px;border:1.5px solid var(--gold);border-radius:999px;padding:8px 23px;color:var(--gold);background:rgba(3,7,14,.52);font-size:.95rem;cursor:pointer;transition:.2s}.button span{font-size:1.15rem}.button:hover{background:var(--gold);color:#10131b;transform:translateY(-1px)}
.eyebrow{color:var(--gold);font:600 .7rem var(--sans);letter-spacing:.2em;margin:0 0 10px}h2{font:500 clamp(2rem,3vw,2.5rem)/1.2 var(--serif);margin:0;letter-spacing:-.025em}h2 em{font-weight:400}h3{font-family:var(--serif)}.philosophy{min-height:255px;position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1.15fr;gap:35px;align-items:center;padding:22px clamp(28px,6.5vw,78px);border-bottom:1px solid var(--line);background:#07101c url('../images/starfield-nebula.jpg') center 52%/cover no-repeat;overflow:hidden}.philosophy:after{content:'';position:absolute;z-index:-1;inset:0;background:url('../images/nebula-pillars.jpg') right center/auto 100% no-repeat;opacity:.9;mask-image:linear-gradient(90deg,transparent 36%,rgba(0,0,0,.35) 52%,#000 100%)}.philosophy>div:first-child{align-self:start}.philosophy .rule{margin:12px 0 0;width:46px}.prose h3{font:italic 1.48rem/1.3 var(--serif);margin:0 0 10px;color:#f3e9dc}.prose p{font-size:.94rem;line-height:1.42;margin:0 0 10px;color:#f0ece7;max-width:590px;text-shadow:0 2px 8px #000}.prose .closing{margin-top:10px}.orbit-art{display:none}
.tutoring{padding:20px clamp(28px,6.5vw,78px) 24px;position:relative;isolation:isolate;background:#060c17 url('../images/starfield-nebula.jpg') center 72%/cover no-repeat;border-bottom:1px solid var(--line)}.tutoring:before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(3,8,17,.64),rgba(3,8,17,.42)),url('../images/cosmic-panorama.jpg') center 88%/cover no-repeat}.tutoring>.eyebrow{margin-bottom:5px}.explore-title{margin-bottom:16px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid rgba(235,220,197,.12)}.cards article{background:rgba(4,10,20,.28);padding:14px 20px 12px 0;min-height:165px}.cards article+article{border-left:1px solid rgba(235,220,197,.35);padding-left:25px}.symbol{display:block;color:#f1c777;font:2rem var(--serif);line-height:1.1;margin-bottom:4px}.cards h3{font:600 1.25rem/1.25 var(--serif);margin:0 0 7px}.cards .muted{display:none}.cards ul{list-style:none;padding:0;margin:0;color:#f1ece5;font-size:.82rem;line-height:1.42}.cards li{padding:2px 0 2px 15px;position:relative}.cards li:before{content:'•';color:var(--gold);position:absolute;left:0}
.about{min-height:280px;display:grid;grid-template-columns:.72fr .9fr 1.55fr;gap:35px;align-items:center;padding:22px clamp(28px,6.5vw,78px);position:relative;isolation:isolate;background:#060c17 url('../images/starfield-nebula.jpg') center 96%/cover no-repeat;border-bottom:1px solid var(--line)}.about:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(4,9,18,.56),rgba(4,9,18,.22)),url('../images/cosmic-panorama.jpg') center 100%/cover no-repeat;opacity:.78}.about>div:first-child{align-self:start}.about .rule{margin:12px 0 0;width:46px}.portrait{width:100%;aspect-ratio:1.3/1;border:1px solid rgba(225,200,164,.3);border-radius:13px;background:#0a1020 url('../images/milky-way-landscape.jpg') center/cover no-repeat;color:transparent;overflow:hidden}.portrait span{display:none}.about .prose h3{font:400 1.2rem/1.4 var(--serif);margin:0 0 8px}.about .prose p{font-size:.94rem;line-height:1.45}.about .prose .closing{color:var(--gold);font-style:italic}
.contact{display:grid;grid-template-columns:.85fr 1.15fr;gap:60px;padding:70px clamp(28px,6.5vw,78px);position:relative;isolation:isolate;background:#060c17 url('../images/starfield-nebula.jpg') center/cover no-repeat}.contact:before{content:'';position:absolute;inset:0;z-index:-1;background:rgba(3,8,17,.48)}.contact h2{font-size:2.5rem;margin-bottom:15px}.contact .muted{max-width:400px}.contact form{padding:28px;background:rgba(5,10,20,.65);border:1px solid var(--line)}form label{display:block;color:#f0e8dc;font-size:.82rem;margin-bottom:15px}form input,form select,form textarea{display:block;width:100%;margin-top:6px;padding:11px 12px;background:rgba(3,8,16,.75);border:1px solid rgba(230,220,205,.38);border-radius:4px;color:var(--cream);font: .9rem var(--serif);outline:none}form input::placeholder,form textarea::placeholder{color:#aaa8a6}form input:focus,form select:focus,form textarea:focus{border-color:var(--gold)}form select{color:#e6ded3}form textarea{resize:vertical}.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hidden{display:none}form small{display:block;color:#c0b9af;font-size:.72rem;margin-top:12px}
footer{min-height:75px;padding:15px clamp(28px,6.5vw,78px);display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);background:#050a13;color:#d2c9bb;font-size:.78rem}footer p{margin:0}footer small{white-space:nowrap;color:#a9a39b}
@media(max-width:850px){.hero{height:400px}.philosophy{grid-template-columns:1fr 1.3fr}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cards article:nth-child(3){border-left:0;padding-left:0;border-top:1px solid rgba(235,220,197,.22)}.cards article:nth-child(4){border-top:1px solid rgba(235,220,197,.22)}.about{grid-template-columns:.7fr .9fr 1.2fr;gap:22px}}
@media(max-width:600px){header{height:60px;padding-inline:20px}.logo{font-size:1.2rem}.menu{display:block;width:38px;height:38px;border:1px solid var(--line);background:rgba(3,7,14,.6);color:var(--cream);border-radius:50%}nav{display:none;position:absolute;top:59px;left:0;right:0;padding:12px 22px;background:#070e1b;border-bottom:1px solid var(--line);flex-direction:column;gap:0}nav.open{display:flex}nav a{padding:10px 0}.hero{height:auto;min-height:440px;padding:42px 24px;align-items:center;background-position:61% center}.hero:before{background:linear-gradient(90deg,rgba(3,7,14,.66),rgba(3,7,14,.22))}.hero-brand{font-size:clamp(2.55rem,10vw,3.4rem)}.hero-kicker{font-size:.66rem;letter-spacing:.2em}.lead{font-size:1.3rem}.philosophy{grid-template-columns:1fr;gap:14px;padding:26px 24px;min-height:0}.philosophy:after{background-position:80% center;opacity:.45}.prose p{font-size:.9rem}.tutoring{padding:25px 24px}.cards{grid-template-columns:1fr 1fr}.cards article{padding:13px 12px 15px 0;min-height:0}.cards article+article{padding-left:14px}.cards article:nth-child(3){padding-left:0}.cards article:nth-child(4){padding-left:14px}.cards h3{font-size:1.05rem}.cards ul{font-size:.76rem}.symbol{font-size:1.7rem}.about{grid-template-columns:1fr 1fr;gap:18px;padding:26px 24px}.about>div:first-child{grid-column:1/-1}.portrait{max-width:100%}.about .prose h3{font-size:1.08rem}.about .prose p{font-size:.82rem}.contact{grid-template-columns:1fr;gap:24px;padding:48px 24px}.contact h2{font-size:2.1rem}.contact form{padding:20px}.split{grid-template-columns:1fr;gap:0}footer{padding:20px 24px;flex-wrap:wrap}footer .logo{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}


/* CONTINUOUS COSMIC BACKDROP
   One high-resolution panorama stays fixed behind the entire page.
   Individual sections use translucent gradients rather than separate repeated photos. */
html {
  background: #050a13;
}
body {
  background-color: #050a13;
  background-image:
    linear-gradient(180deg, rgba(3, 7, 14, .28), rgba(3, 7, 14, .48)),
    url("../images/cosmic-panorama.jpg");
  background-position: center center, center center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}

/* Glass-dark header: the same stars remain visible behind it. */
header {
  background: rgba(4, 9, 18, .58);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

/* Remove section-by-section galaxy photographs. Let the master image show through. */
.hero {
  background: transparent;
}
.hero:before {
  background: linear-gradient(
    90deg,
    rgba(3, 7, 14, .58) 0%,
    rgba(3, 7, 14, .34) 43%,
    rgba(3, 7, 14, .04) 100%
  );
}

.philosophy {
  background: linear-gradient(
    90deg,
    rgba(4, 9, 18, .72) 0%,
    rgba(4, 9, 18, .56) 54%,
    rgba(4, 9, 18, .30) 100%
  );
}
.philosophy:after {
  /* One distinct nebula feature, softly feathered into the shared star field. */
  background: url("../images/nebula-pillars.jpg") right center / auto 112% no-repeat;
  opacity: .54;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 28%,
    rgba(0,0,0,.16) 48%,
    rgba(0,0,0,.78) 76%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 28%,
    rgba(0,0,0,.16) 48%,
    rgba(0,0,0,.78) 76%,
    #000 100%
  );
}

.tutoring {
  background: linear-gradient(
    180deg,
    rgba(3, 8, 17, .46),
    rgba(3, 8, 17, .58)
  );
}
.tutoring:before {
  background: linear-gradient(
    90deg,
    rgba(3, 8, 17, .34),
    rgba(3, 8, 17, .20)
  );
  opacity: 1;
}

.about {
  background: linear-gradient(
    90deg,
    rgba(4, 9, 18, .56),
    rgba(4, 9, 18, .34),
    rgba(4, 9, 18, .52)
  );
}
.about:before {
  background: linear-gradient(
    90deg,
    rgba(4, 9, 18, .20),
    rgba(4, 9, 18, .08),
    rgba(4, 9, 18, .30)
  );
  opacity: 1;
}

.contact {
  background: linear-gradient(
    180deg,
    rgba(3, 8, 17, .55),
    rgba(3, 8, 17, .68)
  );
}
.contact:before {
  background: linear-gradient(
    90deg,
    rgba(3, 8, 17, .18),
    rgba(3, 8, 17, .36)
  );
}

footer {
  background: rgba(3, 8, 16, .66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Mobile browsers handle fixed backgrounds inconsistently; keep the same single image,
   but let it move with the document there. */
@media (max-width: 600px) {
  body {
    background-attachment: scroll, scroll;
    background-position: center top, 56% top;
    background-size: auto, auto 100vh;
    background-repeat: repeat-y, no-repeat;
  }
  .philosophy:after {
    background-position: 82% center;
    opacity: .38;
    -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,.65) 100%);
    mask-image: linear-gradient(90deg, transparent 8%, rgba(0,0,0,.65) 100%);
  }
}


/* Transparent tutoring rates and limited sliding-scale availability. */
.rates-panel {
  margin-top: 34px;
  padding: 28px clamp(22px, 3.4vw, 42px);
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  border: 1px solid rgba(213,173,120,.30);
  background: linear-gradient(110deg, rgba(5,10,19,.80), rgba(13,19,34,.66));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.rate-standard {
  padding-right: 28px;
  border-right: 1px solid rgba(213,173,120,.28);
}
.rate-standard .eyebrow, .rate-sliding .eyebrow {
  margin-bottom: 8px;
}
.rate-amount {
  margin: 0;
  color: #f3e8d7;
  font: 500 clamp(2.5rem, 4vw, 3.6rem)/1.1 var(--serif);
  letter-spacing: -.04em;
}
.currency { color: var(--gold); font-size: .68em; vertical-align: .18em; }
.rate-unit { color: #c4b8a7; font: italic 1rem var(--serif); letter-spacing: 0; }
.rate-copy, .rate-sliding > p:not(.eyebrow) {
  color: var(--muted);
  font-size: .88rem;
  margin: 10px 0 0;
}
.rate-sliding h3 {
  margin: 0 0 8px;
  color: #e8d9c4;
  font: italic 1.55rem/1.25 var(--serif);
}
.rate-sliding .rate-note {
  color: var(--gold) !important;
  font-size: .79rem !important;
  margin-top: 12px !important;
}
@media(max-width:600px) {
  .rates-panel { grid-template-columns: 1fr; gap: 22px; padding: 24px 20px; }
  .rate-standard { padding: 0 0 20px; border-right: 0; border-bottom: 1px solid rgba(213,173,120,.28); }
}


/* TRUE OVERLAY LAYOUT — no section-sized background panels.
   The page content scrolls over the single continuous cosmic image. */
.hero,
.philosophy,
.tutoring,
.about,
.contact,
footer {
  background: transparent !important;
  background-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Remove all section-specific image layers and tinted rectangular overlays. */
.hero::before,
.philosophy::before,
.philosophy::after,
.tutoring::before,
.tutoring::after,
.about::before,
.about::after,
.contact::before,
.contact::after {
  content: none !important;
  display: none !important;
}

/* Subject cards become open columns: typography and fine dividers only. */
.cards {
  background: transparent !important;
  border: 0 !important;
  gap: 0 !important;
}
.cards article {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.cards article + article {
  border-left: 1px solid rgba(235,220,197,.28);
}
.cards article:nth-child(3),
.cards article:nth-child(4) {
  border-top: 1px solid rgba(235,220,197,.22);
}

/* Rates are presented as open text, not a panel or card. */
.rates-panel {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(213,173,120,.32) !important;
  border-bottom: 1px solid rgba(213,173,120,.32) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding-left: 0;
  padding-right: 0;
}

/* Let the contact form itself sit directly over the image.
   Input controls retain their own subtle field outlines for usability. */
.contact form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 12px 0;
}

/* Keep a subtle text shadow for legibility over bright nebula areas. */
.hero-copy,
.philosophy,
.tutoring,
.about,
.contact,
footer {
  text-shadow: 0 1px 8px rgba(0,0,0,.48);
}

/* Keep the single full-page background; content itself remains transparent. */
body {
  background-attachment: fixed, fixed;
}
@media(max-width:600px) {
  .cards article + article { border-left: 0; }
  .cards article:nth-child(2) { border-top: 1px solid rgba(235,220,197,.22); }
  .cards article:nth-child(3) { border-top: 1px solid rgba(235,220,197,.22); }
  .cards article:nth-child(4) { border-top: 1px solid rgba(235,220,197,.22); }
  .rates-panel { padding-top: 22px; padding-bottom: 22px; }
  .contact form { padding: 0; }
  body { background-attachment: scroll, scroll; }
}
