/* Millie Kent. Base layout and components. This file is option A.
   Options B and C only override things in options.css.

   Each section sets its own --bg / --fg / --accent, so recolouring a
   section is a three-line change. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font: 400 var(--fs-body)/var(--lh-body) var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: var(--cream); }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--red); color: var(--cream); padding: .75rem 1rem; }
.skip:focus { left: 0; }

/* ---------- Shared: section shell ---------- */
.hero, .about, .book, .testimonials, .footer, .masthead {
  background: var(--bg, var(--cream));
  color: var(--fg, var(--charcoal));
  padding-inline: max(var(--gutter), (100vw - var(--max)) / 2);
}
.about, .book, .testimonials { padding-block: var(--section-y); scroll-margin-top: 3.75rem; }

h1, h2, h3 { font-weight: 700; line-height: var(--lh-tight); letter-spacing: var(--track-tight); text-wrap: balance; }
h2 { font-size: var(--fs-display); letter-spacing: -0.025em; }
h3 { font-size: var(--fs-h3); }
p { text-wrap: pretty; }

/* ---------- Logotype (real vector, coloured through a mask) ---------- */
.logotype {
  display: block;
  width: 100%;
  aspect-ratio: 442 / 51;
  background: var(--logo, var(--red));
  -webkit-mask: url("../img/logotype.svg") center / contain no-repeat;
          mask: url("../img/logotype.svg") center / contain no-repeat;
}

/* ---------- Masthead ---------- */
.masthead { --bg: var(--cream); padding-top: clamp(1.25rem, 3vw, 2.75rem); }

/* ---------- Hero ---------- */
.hero {
  --bg: var(--cream); --fg: var(--charcoal); --accent: var(--denim);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--col-gap);
  align-items: stretch;
  padding-block: clamp(2.5rem, 4.5vw, 4.5rem) var(--section-y);
}
/* Text column runs the full height of the photo: headline level with its top edge,
   intro and link sitting on its bottom edge. */
.hero__text { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; container-type: inline-size; }
.hero__media { grid-column: 7 / -1; position: relative; }
.hero__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 62% 50%; border-radius: var(--radius); }
.hero__logo { display: none; }
/* Sized from the column width so the line always breaks as drawn:
   "Hey, I'm Millie Kent!" / "A working actor who" / "coaches working actors." */
.hero h1 { font-size: clamp(1.25rem, 7cqi, 2.125rem); color: var(--accent); margin: 0 0 .8em; text-wrap: initial; max-width: 14em; } /* wide enough for "coaching working actors." on one line */
.hero p { max-width: 29rem; }
.hero__text { justify-content: center; } /* headline, intro and link read as one group, centred on the photo */
.hero h1 span { display: block; }
.hero p + p { margin-top: 1.3em; }

.cta { margin-top: 2em; align-self: flex-start; text-decoration: none; } /* hero call to action: the shared .button, placed here */
.topnav__links a { position: relative; }
.topnav__links a::before { content: ""; position: absolute; inset: -.75rem -.5rem; } /* invisible 44px tap area */

/* ---------- Marquee ---------- */
.marquee {
  background: var(--marquee-bg, var(--red)); color: var(--marquee-fg, var(--cream));
  overflow: hidden; white-space: nowrap;
  font-weight: 700; font-size: var(--fs-marquee); line-height: 1;
  padding-block: 1em;
}
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; will-change: transform; }
.marquee__track span { display: inline-flex; align-items: center; }
.marquee__track span::after {
  content: ""; width: 2em; height: 1em; margin-inline: 1.4em; background: var(--charcoal); /* mk mark in charcoal, Cam's call */
  -webkit-mask: url("../img/mk-mark.svg") center / contain no-repeat; mask: url("../img/mk-mark.svg") center / contain no-repeat;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about {
  --bg: var(--denim); --fg: var(--cream);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap);
  align-items: start;
}
.about__media { grid-column: 1 / span 6; position: sticky; top: clamp(1.5rem, 4vw, 3rem); }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__media figcaption { margin-top: 1rem; font-size: var(--fs-small); font-weight: 400; opacity: .75; }
.about__text { grid-column: 8 / -1; font-weight: 400; max-width: 36rem; }
.about__text h2 { margin-bottom: 1.4em; }
.about__text h3 { font-size: var(--fs-h3); margin-bottom: 1em; }
.about__text > div + div { margin-top: 2.75em; }
.about__text p + p { margin-top: 1.3em; }
.about__text p { max-width: 34rem; } /* about 70 characters a line */

/* ---------- Book ---------- */
.book {
  --bg: var(--cream); --fg: var(--charcoal); --accent: var(--denim);
  --card: var(--white); --line: color-mix(in srgb, var(--denim) 45%, transparent);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap);
  align-items: start;
}
.book__intro { grid-column: 1 / span 4; position: sticky; top: 5.5rem; }
.book h2 { font-size: var(--fs-display); color: var(--accent); letter-spacing: -0.025em; margin-bottom: .5em; }
.book__intro > p { font-weight: 400; max-width: 26rem; }
.book__intro > p a { text-underline-offset: .2em; }
/* mk mark sits in the bottom right corner of the form box, level with the Send button (13 Nov meeting).
   Charcoal to match the mark in the marquee: red would compete with the button */
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.form__mark { flex: none; width: clamp(3.25rem, 5vw, 4.25rem); height: 2.25rem; background: var(--charcoal);
  -webkit-mask: url("../img/mk-mark.svg") right center / contain no-repeat; mask: url("../img/mk-mark.svg") right center / contain no-repeat; }

.form {
  grid-column: 6 / -1;
  background: var(--card); color: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.6vw, 3.25rem);
  display: grid; gap: clamp(1.25rem, 2vw, 1.75rem);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 2.4vw, 2rem); }

/* Fields: one ruled line each, as drawn. The label sits on the line like a prompt
   and lifts out of the way when the field is focused or filled. */
.field { position: relative; display: block; border-bottom: 1.5px solid color-mix(in srgb, var(--charcoal) 55%, transparent); transition: border-color .2s, box-shadow .2s; }
.field span {
  position: absolute; left: 0; top: 1.55rem; pointer-events: none;
  font-size: 1rem; font-weight: 500; color: var(--denim);
  transform-origin: 0 0; transition: transform .25s var(--ease), font-weight .2s;
}
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 0; background: transparent; color: var(--charcoal);
  font: 500 1rem/1.4 var(--font);
  padding: 1.5rem 0 .55rem; min-height: 3.25rem;
}
.field input:focus, .field textarea:focus { outline: 0; }
.field textarea { display: block; resize: vertical; }
.field em { font-style: normal; font-weight: 400; color: color-mix(in srgb, var(--denim) 70%, transparent); }
.field__hint { margin-top: .5rem; font-size: var(--fs-small); color: color-mix(in srgb, var(--denim) 80%, transparent); }
.field:hover { border-bottom-color: var(--charcoal); }
.field:focus-within { border-bottom-color: var(--red); box-shadow: 0 1.5px 0 var(--red); }
.field:focus-within span,
.field:has(input:not(:placeholder-shown)) span,
.field:has(textarea:not(:placeholder-shown)) span { transform: translateY(-1.35rem) scale(.8); font-weight: 700; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--charcoal); transition: background-color 9999s; }

/* Choices: tap a card or a pill. The real radio or checkbox sits invisibly on top, so keyboards and screen readers work */
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: .75rem; font-weight: 700; }
.choice legend em { font-style: normal; font-weight: 400; color: var(--denim); }
.sessions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.session, .chip { position: relative; display: block; }
.session input, .chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.session__box, .chip span {
  border: 1.5px solid color-mix(in srgb, var(--charcoal) 28%, transparent);
  transition: background .2s, color .2s, border-color .2s;
}
.session__box { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border-radius: var(--radius); }
.session__box b { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.session__box small { font-size: var(--fs-small); font-weight: 400; }
.chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; font-size: var(--fs-label); }
.session:hover .session__box, .chip:hover span { border-color: var(--charcoal); }
.session input:checked + .session__box, .chip input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }
.session input:focus-visible + .session__box, .chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

/* One button, used everywhere: hero, form, footer. 36px tall, 13px label, 44px tap area. */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  justify-self: start; margin-top: .5rem;
  font: 700 var(--fs-small)/1 var(--font); text-decoration: none;
  color: var(--white); background: var(--red);
  border: 0; border-radius: 999px; padding: 0 1.1em; min-height: 2.25rem;
  transition: background .2s;
}
.button::before { content: ""; position: absolute; inset: -.25rem 0; } /* invisible 44px tap area */
.button::after { content: "\2192"; transition: transform .3s var(--ease); }
.button:hover { background: color-mix(in srgb, var(--red) 84%, black); } /* same hover on every background */
.button:hover::after { transform: translateX(.3em); }
.button.cta { margin-top: 1.75rem; } /* space under the hero copy */
.form__note { font-size: var(--fs-label); font-weight: 500; color: var(--denim); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* spam trap, hidden from people */

/* ---------- Testimonials ---------- */
.testimonials { --bg: var(--charcoal); --fg: var(--cream); --card: var(--cream); --card-fg: var(--denim); --card-line: var(--red); }
.testimonials__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.rail-nav { display: none; }

.t-grid { columns: 2; column-gap: clamp(1rem, 2.6vw, 2.25rem); }
.t-card {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2.6vw, 2.25rem);
  background: var(--card); color: var(--card-fg);
  border: 1.5px solid var(--card-line); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.6vw, 2.5rem);
}
.t-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.t-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.45); }
.t-card blockquote { font-size: var(--fs-quote); line-height: 1.5; }
.t-card blockquote p + p { margin-top: 1.1em; }
.t-card figcaption { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.t-card figcaption img, .t-card__dot { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.t-card__dot { background: var(--red); }
.t-card cite { display: block; font-style: normal; font-size: var(--fs-cta); font-weight: 700; line-height: 1.25; color: var(--red); }
.t-card small { display: block; margin-top: .3rem; font-size: var(--fs-small); font-weight: 400; line-height: 1.5; }
.t-more { display: none; }

/* ---------- Footer ----------
   Three rows: contact and nav, a ruled legal bar, then the logotype closing the page
   with the same margin it opens with. Left aligned like the rest of the page. */
.footer {
  --bg: var(--cream); --fg: var(--denim); --rule: color-mix(in srgb, var(--denim) 30%, transparent);
  padding-block: var(--section-y) clamp(1.25rem, 3vw, 2.75rem);
}
/* Book now sits directly above the footer in the same colour, so a hairline separates them */
.footer { box-shadow: inset 0 1.5px 0 var(--rule); }
.footer__top {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 2.5rem;
  align-items: start; padding-bottom: clamp(3rem, 7vw, 6.5rem);
}
.footer__contact { grid-column: 1 / span 7; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
/* Sized so it always sets in two lines, broken at the comma */
.footer__heading { font-size: clamp(1.5rem, 0.9rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.025em; text-wrap: initial; }
.footer__cta { margin: 0; }
.footer__nav { grid-column: 9 / span 2; display: flex; flex-direction: column; align-items: flex-start; }
.footer__social { grid-column: 11 / -1; }
.footer__label { font-size: var(--fs-small); font-weight: 700; letter-spacing: 0; opacity: .7; margin-bottom: .5rem; }
.footer__bar a { text-underline-offset: .2em; padding-block: 1.1em; }
.footer__nav a, .topnav__links a {
  text-decoration: none; font-size: var(--fs-label);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .3s var(--ease), color .2s; padding-block: .75em; /* 44px touch target */
}
.footer__nav a { font-size: .9375rem; font-weight: 500; padding-block: .75em; background-position: 0 calc(100% - .45em); }
.footer__nav a:hover, .topnav__links a:hover { background-size: 100% 1.5px; color: var(--red); }
.footer__bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .25rem 2rem;
  border-top: 1.5px solid var(--rule);
  padding-block: 1rem clamp(1.5rem, 3vw, 2.5rem);
  font-size: var(--fs-small);
}
/* Phone: copyright on its own line, then Privacy left and Site by right, so the bar reads as two tidy rows */
@media (max-width: 599px) { .footer__bar > :first-child { flex-basis: 100%; } }

/* ---------- Top nav: slides in once the big logotype has scrolled away, so Book is always one tap away ---------- */
.topnav {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  position: fixed; z-index: 80; inset: 0 0 auto 0;
  padding: .5rem var(--gutter);
  background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--denim) 18%, transparent);
  color: var(--denim);
  transform: translateY(-101%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s;
}
.topnav.is-shown { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.topnav__logo { width: clamp(7rem, 12vw, 9.5rem); }
.topnav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); }
/* Book is a plain link like the others (no button), Cam's call */
/* Kept deliberately small and quiet: 13px links, compact pill, slim bar */
.topnav { padding-block: .85rem; } /* room above and below; the type stays small */
.topnav__logo { width: clamp(8rem, 12vw, 10.5rem); }
.topnav__links { gap: clamp(1.25rem, 2.8vw, 2.5rem); }
.topnav__links a { font-size: var(--fs-small); font-weight: 500; }
/* ---------- Cursor: red dot, one size in every state (Cam's call) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js.has-cursor, .js.has-cursor a, .js.has-cursor button, .js.has-cursor .session input, .js.has-cursor .chip input { cursor: none; }
  .js.has-cursor .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--red);
    transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .2s;
  }
  .js.has-cursor .cursor.is-text { opacity: 0; }
}

/* ---------- Hierarchy: headings bold and full strength, body Regular and slightly softened ---------- */
.hero p, .about__text p, .book__intro > p { color: color-mix(in srgb, currentColor 82%, transparent); }

/* ---------- Small fixes from the 10 Nov polish pass ---------- */
.t-card small { text-wrap: balance; } /* no single word left on the last line of credits */
@media (min-width: 700px) and (max-width: 899px) { .about .about__media { max-width: 24rem; } } /* tablet: portrait no longer fills the screen */

/* Film titles in Millie's paragraph: a dotted underline hints that hovering shows the poster */
.film { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: .22em; transition: color .2s; }
@media (hover: hover) and (pointer: fine) { .film:hover { color: var(--red); } }
/* Companies and projects in the coach paragraph: the same underline as the film credits, but not links (12 Nov) */
.credit { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }

/* ---------- Film poster that follows the cursor over the credits list ---------- */
.poster {
  position: fixed; left: 0; top: 0; z-index: 85; pointer-events: none;
  width: clamp(9rem, 14vw, 12.5rem); aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
  opacity: 0; scale: .92; rotate: -4deg;
  transition: opacity .25s var(--ease), scale .35s var(--ease), rotate .35s var(--ease);
}
.poster.is-on { opacity: 1; scale: 1; rotate: -2deg; }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.static [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } /* ?static, for screenshots */
.static .marquee__track { animation: none; }

/* ---------- Tablet and mobile ---------- */
@media (max-width: 899px) {
  .hero { row-gap: 2.5rem; padding-top: 2rem; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__nav { grid-column: span 6; }
  .hero p { max-width: 36rem; }
  .hero__text, .hero__media, .about__media, .about__text, .book__intro, .form { grid-column: 1 / -1; max-width: none; }
  .hero__media img { aspect-ratio: 4 / 3; }
  .about { row-gap: 2.5rem; }
  .about__media { position: static; }
  .about__media img { aspect-ratio: 1 / 1; object-position: 50% 20%; }
  .form { margin-top: 2.5rem; }
  .book__intro { position: static; }
}
@media (max-width: 699px) {
  /* Phone: all three links stay. Logotype and gaps tighten so the row fits down to 320 wide */
  .topnav { gap: .75rem; }
  .topnav__logo { width: min(7rem, 27vw); }
  .topnav__links { gap: clamp(.7rem, 3.6vw, 1.1rem); }
  .form .button { width: 100%; }
  .t-grid { columns: 1; }
  .form__row { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Headshots link to each actor's IMDb, ArtsEd links to its site (12 Nov) */
.t-card__link { flex: none; display: block; border-radius: 12px; transition: transform .2s, box-shadow .2s; }
.t-card__link img { display: block; }
.t-card__link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .t-card__link:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--red); }
  a.credit:hover { color: var(--red); }
}
