/* ---------------------------------------------------------------
   Dr Amelia Scott — personal site
   Built on the Circa Sleep brand system.
   Type:   DM Serif Text (display) · DM Sans (body)
   Colour: Charade / Shark charcoals + True V / Boliba purples
           on Soapstone. No oranges.
--------------------------------------------------------------- */

:root {
  /* Brand — primary */
  --charade:    #2A2F3A;   /* soft navy / charcoal   */
  --shark:      #21242D;   /* deepest near-black     */
  --true-v:     #7B76E2;   /* vibrant purple accent  */
  --boliba:     #B3ABFF;   /* light lavender         */
  --soapstone:  #FFFBF9;   /* warm off-white         */

  /* Working tokens */
  --ink:        #2A2F3A;
  --ink-soft:   #565b68;
  --muted:      #8b8f9c;
  --bg:         #FFFBF9;
  --bg-alt:     #f1effb;   /* soft lavender tint band */
  --line:       #e7e3dc;
  --line-soft:  #ece9f6;
  --accent:     #7B76E2;
  --accent-deep:#5f59d6;
  --card:       #ffffff;
  --band-neutral: #EFEAE3; /* warm neutral, distinct from lavender bg-alt, no oranges */
  --radius:     16px;
  --maxw:       1080px;
  --shadow:     0 1px 2px rgba(33,36,45,.04), 0 10px 34px rgba(33,36,45,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "DM Serif Text", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--shark);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
h3 { font-family: "DM Sans", sans-serif; font-size: 1.06rem; font-weight: 600; color: var(--shark); }

/* Brand heading motifs */
.i { font-style: italic; color: var(--true-v); }         /* italic accent word   */
.dot { color: var(--true-v); }                            /* the purple moon dot  */

p  { margin: 0 0 1.1em; color: var(--ink-soft); }
em { font-style: italic; }

a  { color: var(--accent-deep); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--true-v); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,251,249,.85);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  font-family: "DM Serif Text", serif;
  font-size: 1.6rem; color: var(--shark); display: inline-flex; align-items: baseline; gap: 2px;
}
.brand .moon {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--boliba), var(--true-v));
  display: inline-block; margin-left: 3px; transform: translateY(-2px);
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-family: "DM Sans", sans-serif; font-size: .95rem; color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--true-v); }
.nav-cta {
  border: 1px solid var(--true-v); border-radius: 999px;
  padding: 8px 18px !important; color: var(--accent-deep) !important;
}
.nav-cta:hover { background: var(--true-v); color: #fff !important; }
.nav-cta-solid {
  background: var(--true-v); border-radius: 999px;
  padding: 9px 19px !important; color: #fff !important; font-weight: 500;
}
.nav-cta-solid:hover { background: var(--accent-deep); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--shark); }
.nav-socials { display: inline-flex; gap: 14px; align-items: center; }
.nav-socials a { color: var(--muted); display: inline-flex; padding: 0; }
.nav-socials a:hover { color: var(--true-v); }
.nav-socials svg { width: 19px; height: 19px; fill: currentColor; display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--true-v); color: #fff;
  padding: 11px 22px; border-radius: 999px;
  font-family: "DM Sans", sans-serif; font-size: .9rem; font-weight: 500;
  transition: transform .15s ease, background .18s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent-deep); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; color: var(--true-v); border-color: var(--true-v); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .74rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 18px;
}
.hero p.lead { font-size: clamp(.98rem, 1.5vw, 1.1rem); color: var(--ink-soft); max-width: 560px; margin-top: 1em; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
/* soft brand glow */
.hero::after {
  content: ""; position: absolute; right: -160px; top: -120px; width: 460px; height: 460px;
  border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 35%, rgba(179,171,255,.45), rgba(123,118,226,.12) 55%, transparent 72%);
}

/* Hero with portrait */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-grid .hero-portrait { justify-self: end; width: 100%; max-width: 360px; }
.hero-portrait img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 16px 40px rgba(42,47,58,.16); object-fit: cover;
}
.hero-grid .eyebrow, .hero-grid p.lead { max-width: none; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-grid .hero-portrait { justify-self: start; max-width: 260px; }
}

/* Photo overlay banner (brand: 50% charcoal overlay over photo) */
.banner {
  position: relative; border-radius: 22px; overflow: hidden;
  background-size: 140%; background-position: 0% 20%;
  min-height: 440px; display: flex; align-items: flex-end;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,36,45,.30) 0%, rgba(33,36,45,.66) 100%);
}
.banner .banner-inner { position: relative; z-index: 1; padding: clamp(30px, 5vw, 54px); color: #fff; max-width: 640px; }
.banner .banner-inner h1, .banner .banner-inner h2 { color: #fff; }
.banner .banner-inner .eyebrow { color: var(--boliba); }
.banner .banner-inner p { color: rgba(255,255,255,.9); margin-bottom: 0; }

/* Photo cards (What I do, 2x2) */
.card-grid-photo { gap: 20px; }
.card.card-photo { padding: 0; overflow: hidden; }
.card-photo .card-media { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card-photo .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo .card-body { padding: 20px 24px 24px; }
.card-photo .card-body .btn-ghost { display: inline-block; margin-top: 6px; padding: 9px 18px; font-size: .86rem; }

/* As seen in (press logo band) */
.as-seen-in { background: var(--band-neutral); padding: clamp(26px, 3.4vw, 38px) 0; }
.press-row {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: clamp(28px, 4.5vw, 52px);
}
.press-row + .press-row { margin-top: 22px; }
.press-row li { display: flex; align-items: center; justify-content: center; }
.press-row img {
  height: 42px; width: auto; max-width: 190px; object-fit: contain;
}

/* Program promo band (course teaser, two-column) */
.program-promo { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.program-promo-media img {
  width: 100%; height: clamp(220px, 24vw, 320px); display: block; border-radius: 18px;
  box-shadow: 0 16px 40px rgba(42,47,58,.16); object-fit: cover;
}
.program-promo-content p { max-width: 500px; }
@media (max-width: 820px) {
  .program-promo { grid-template-columns: 1fr; gap: 24px; }
}

/* About portrait */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.about-grid .about-portrait img {
  width: 100%; height: auto; display: block; border-radius: 18px;
  box-shadow: 0 14px 40px rgba(42,47,58,.15); position: sticky; top: 100px;
}
@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid .about-portrait { max-width: 260px; }
  .about-grid .about-portrait img { position: static; }
}

/* ---------- Sections ---------- */
section.band { background: var(--bg-alt); }
.section { padding: clamp(46px, 7vw, 76px) 0; }
.section-head { max-width: 660px; margin-bottom: 34px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; font-weight: 600; color: var(--accent-deep); margin-bottom: 12px;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(33,36,45,.05), 0 16px 40px rgba(123,118,226,.12); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block; font-family: "DM Sans", sans-serif;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-deep); background: var(--bg-alt);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* Academic work: icon beside content */
.academic-grid { display: flex; align-items: center; gap: 40px; }
.academic-icon { width: 84px; height: auto; flex: 0 0 84px; }
.academic-grid .prose { max-width: 640px; }
@media (max-width: 700px) {
  .academic-grid { flex-direction: column; align-items: flex-start; gap: 20px; }
  .academic-icon { width: 64px; flex-basis: auto; }
}

/* Media page: press logos beside intro content */
.media-intro-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.press-aside .eyebrow { margin-bottom: 12px; }
.press-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px;
  align-items: center; list-style: none; padding: 0; margin: 0;
}
.press-grid li { display: flex; align-items: center; }
.press-grid img {
  height: 24px; width: auto; max-width: 100%; object-fit: contain;
}
@media (max-width: 820px) {
  .media-intro-grid { grid-template-columns: 1fr; gap: 26px; }
  .press-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Video gallery (Television section) - links out to source clips */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 6px; }
.video-card { display: block; }
.video-thumb { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.video-card:hover .video-thumb img { transform: scale(1.03); }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 999px; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(42,47,58,.25);
  transition: background .18s ease;
}
.video-card:hover .play-badge { background: #fff; }
.play-badge svg { width: 20px; height: 20px; fill: var(--charade); margin-left: 3px; }
.video-card .meta { margin-top: 14px; }
.video-card h3 { margin: 0 0 .3em; }
.video-card p { margin: 0; }
@media (max-width: 700px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- Media list ---------- */
.media-item { display: block; border-top: 1px solid var(--line); padding: 26px 0; }
.media-item:last-child { border-bottom: 1px solid var(--line); }
.media-item .meta {
  font-family: "DM Sans", sans-serif; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); font-weight: 600; margin-bottom: 8px; display: flex; gap: 12px; flex-wrap: wrap;
}
.media-item h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 .3em; }
.media-item .outlet { color: var(--accent-deep); font-weight: 600; }

.media-item-logo { display: flex; align-items: center; gap: 24px; }
.media-item-logo .media-item-text { flex: 1; }
.media-logo { height: 34px; width: 140px; flex: 0 0 140px; object-fit: contain; object-position: left center; }
.media-logo-square { width: 56px; flex: 0 0 56px; height: 56px; border-radius: 8px; object-fit: cover; object-position: center; }
@media (max-width: 560px) {
  .media-item-logo { flex-direction: column; align-items: flex-start; gap: 10px; }
  .media-logo { height: 28px; width: 110px; flex: 0 0 auto; }
}
.media-item p { margin: .3em 0 0; font-size: 1rem; }
a.media-item:hover h3 { color: var(--true-v); }

.placeholder {
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 11px, rgba(123,118,226,.05) 11px, rgba(123,118,226,.05) 22px);
  border: 1px dashed var(--boliba); border-radius: var(--radius);
  padding: 24px 28px; color: var(--muted); font-size: .95rem;
}
.placeholder strong { color: var(--ink-soft); }

/* ---------- Stat band (corporate case) ---------- */
.statband {
  position: relative; overflow: hidden;
  background: var(--charade); color: #fff;
  border-radius: 22px; padding: clamp(38px, 5vw, 60px);
}
.statband::after {
  content: ""; position: absolute; right: -100px; top: -110px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(123,118,226,.4), transparent 70%);
}
.statband > * { position: relative; z-index: 1; }
.statband .eyebrow { color: var(--boliba); }
.statband h2 { color: #fff; }
.statband .lead { color: rgba(255,255,255,.85); max-width: 640px; margin-bottom: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.stat .num { font-family: "DM Serif Text", serif; font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--boliba); line-height: 1; }
.stat .lbl { margin-top: 12px; font-size: .92rem; line-height: 1.45; color: rgba(255,255,255,.82); }
.statband .src { margin-top: 30px; font-size: .78rem; color: rgba(255,255,255,.5); }
@media (max-width: 820px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form { max-width: 620px; }
.field { margin-bottom: 20px; }
.field label {
  display: block; font-family: "DM Sans", sans-serif; font-size: .85rem; font-weight: 600;
  color: var(--shark); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: "DM Sans", sans-serif; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--true-v); box-shadow: 0 0 0 3px rgba(123,118,226,.16);
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image:
  url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237B76E2' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form .btn { border: 0; cursor: pointer; font-family: "DM Sans", sans-serif; }
.hp { position: absolute; left: -9999px; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow);
}
.quote p {
  font-family: "DM Serif Text", serif; font-style: italic;
  font-size: 1.22rem; line-height: 1.4; color: var(--shark); margin: 0 0 18px;
}
.quote .who { font-family: "DM Sans", sans-serif; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-deep); }

/* Simple offering list */
.offer { list-style: none; padding: 0; margin: 0; }
.offer li {
  padding: 20px 0; border-top: 1px solid var(--line); display: flex; gap: 20px; align-items: baseline;
}
.offer li:last-child { border-bottom: 1px solid var(--line); }
.offer .t { flex: 0 0 220px; font-family: "DM Serif Text", serif; font-size: 1.25rem; color: var(--shark); }
.offer .d { color: var(--ink-soft); }
@media (max-width: 640px) { .offer li { flex-direction: column; gap: 4px; } .offer .t { flex-basis: auto; } }

/* Pills row */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.pills li {
  font-family: "DM Sans", sans-serif; font-size: .9rem; font-weight: 500; color: var(--shark);
  background: var(--bg-alt); border: 1px solid var(--line-soft); padding: 9px 16px; border-radius: 999px;
}

/* Feature image (supervision) */
.feature-img { width: 100%; height: clamp(300px, 42vw, 470px); object-fit: cover; object-position: center 20%; border-radius: 20px; display: block; box-shadow: 0 14px 40px rgba(42,47,58,.14); }

/* Sessions grid (supervision course) */
.sessions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 44px; margin: 8px 0 0; padding: 0; list-style: none; }
.sessions li { position: relative; padding-left: 38px; }
.sessions .n { position: absolute; left: 0; top: -2px; font-family: "DM Serif Text", serif; font-size: 1.5rem; color: var(--true-v); line-height: 1; }
.sessions .t { font-weight: 600; color: var(--shark); }
.sessions p { margin: .25em 0 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 760px) { .sessions { grid-template-columns: 1fr; gap: 22px; } }

/* Course facts row */
.course-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.course-facts .card ul { margin: 0; padding-left: 18px; }
.course-facts .card li { margin-bottom: 7px; color: var(--ink-soft); }
.course-facts .price { font-family: "DM Serif Text", serif; font-size: 1.7rem; color: var(--shark); margin-top: 14px; }
.course-facts .price span { color: var(--true-v); }
@media (max-width: 760px) { .course-facts { grid-template-columns: 1fr; } }

/* Approach list (first-person bullets) */
.approach-list { list-style: none; padding: 0; margin: 6px 0 0; }
.approach-list li { position: relative; padding-left: 26px; margin-bottom: 14px; color: var(--ink-soft); font-size: 1.05rem; }
.approach-list li:last-child { margin-bottom: 0; }
.approach-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--true-v); }

/* ---------- Prose / about ---------- */
.prose { max-width: 700px; }
.prose h2 { margin-top: 1.6em; }
.creds { list-style: none; padding: 0; margin: 28px 0 0; }
.creds li {
  padding: 13px 0; border-top: 1px solid var(--line);
  display: flex; gap: 18px; align-items: baseline; color: var(--ink-soft); font-size: 1rem;
}
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds .k { flex: 0 0 138px; font-weight: 600; color: var(--shark); font-size: .9rem; }

/* ---------- CTA band (dark, brand) ---------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--charade); color: #fff;
  border-radius: 20px; padding: clamp(34px, 5vw, 54px); text-align: center;
}
.cta::before {
  content: ""; position: absolute; left: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(123,118,226,.55), transparent 68%);
}
.cta::after {
  content: ""; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(179,171,255,.4), transparent 70%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.84); max-width: 520px; margin: 0 auto 28px; }
.cta .btn { background: #fff; color: var(--accent-deep); }
.cta .btn:hover { background: var(--boliba); color: var(--shark); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 38px 0; margin-top: 16px; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--ink-soft); font-family: "DM Sans", sans-serif; }
.footer a:hover { color: var(--true-v); }
.footer .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-right { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.socials { display: flex; gap: 14px; align-items: center; }
.socials a { color: var(--muted); display: inline-flex; }
.socials a:hover { color: var(--true-v); }
.socials svg { width: 19px; height: 19px; display: block; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 28px; }
  .nav-socials { padding: 10px 28px; gap: 20px; }
  .nav-socials a { padding: 4px; }
  .nav-cta { margin: 10px 28px; text-align: center; }
  .nav-toggle { display: block; }
  .creds .k { flex-basis: 108px; }
}
