/* Ella Partook — interview site */

:root {
  --ink: #000;
  --paper: #fff;
  --grey: #4d4d4d;
  --grey-soft: #8a8a8a;
  --blue: #3d5afe;
  --blue-wash: #a9b4ff;
  --blue-pale: #c9d0ff;
  --lime: #c8f31d;

  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --pad: clamp(20px, 3vw, 40px);
  --nav-h: 56px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { padding-inline: var(--pad); }

.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: square; stroke-linejoin: miter;
}
.icon--sm { width: 16px; height: 16px; }

/* ---------- Shared type ---------- */

.mono-label {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}
.mono-label--marked::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 10px;
  background: var(--blue);
}

.h2 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 14px;
}
.h2--xl { font-size: clamp(44px, 5.6vw, 76px); max-width: 11em; }

.lede { color: var(--grey); max-width: 38em; margin-top: 18px; }
.lede--narrow { max-width: 30em; margin-top: 28px; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 24px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--blue); border-color: var(--blue); }
.btn--line { background: var(--paper); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .5; cursor: default; }

.ulink {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 2px solid var(--blue);
}
.ulink:hover { color: var(--blue); }

.linklike {
  padding: 0; border: 0; background: none; cursor: pointer;
  border-bottom: 2px solid var(--blue);
}
.linklike:hover { color: var(--blue); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--pad);
  background: var(--paper);
  font-family: var(--mono);
}
.nav__brand {
  font-size: 15px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; white-space: nowrap;
}
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 34px); }
.nav__links a {
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--grey); text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active { border-bottom-color: var(--lime); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 112px));
  padding-bottom: clamp(72px, 9vw, 112px);
}
.hero__name {
  margin: 18px 0 0 -0.035em;
  font-size: clamp(64px, 10.4vw, 150px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__hook { font-size: clamp(20px, 1.9vw, 24px); margin-top: clamp(28px, 3.4vw, 44px); }
.hero__hook a { text-decoration: none; border-bottom: 2px solid var(--blue); }
.hero__hook a:hover { color: var(--blue); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 26px; font-size: 16px; }
.hero__actions button.ulink { padding: 0 0 1px; border-top: 0; border-inline: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px)); }

/* Hero ask box: the interview, one step away */
.ask { margin-top: 22px; max-width: 640px; }
.ask__label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}
.ask__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 1px var(--ink);
  animation: ask-pulse 1.8s ease-in-out infinite;
}
@keyframes ask-pulse { 50% { transform: scale(.55); opacity: .5; } }
.ask__row {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--blue);
  transition: box-shadow .2s, transform .2s;
}
.ask__row:focus-within { box-shadow: 3px 3px 0 var(--blue); transform: translate(3px, 3px); }
.ask__row input {
  flex: 1; min-width: 0;
  padding: 19px 22px;
  border: 0; background: none;
  font-size: 18px;
}
.ask__row input::placeholder { color: var(--grey); }
.ask__row input:focus-visible { outline: none; }
.ask__send {
  flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 24px;
  border: 0; border-left: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s;
}
.ask__send:hover { background: var(--blue); }
.ask__send .icon { width: 18px; height: 18px; }
/* Card stack: Ella in front, her AI version on the cards beside her.
   The cards take turns coming forward. */
.stack {
  position: relative;
  width: clamp(230px, 24vw, 340px);
  aspect-ratio: 416 / 476;
  margin: 40px clamp(60px, 7vw, 110px) 0 0;
}
.card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
  transition: transform .75s cubic-bezier(.2,.75,.2,1), box-shadow .5s, filter .5s;
  animation: card-in .9s cubic-bezier(.2,.7,.2,1) both;
}
.card.is-front { z-index: 3; transform: none; box-shadow: 12px 12px 0 var(--ink); cursor: default; }
.card.is-left  { z-index: 1; transform: translate(-30%, 5%) rotate(-7deg) scale(.8); box-shadow: 6px 6px 0 var(--ink); }
.card.is-right { z-index: 2; transform: translate(30%, 5%) rotate(7deg) scale(.8); box-shadow: 6px 6px 0 var(--ink); }
.card.is-left:hover  { transform: translate(-36%, 3%) rotate(-9deg) scale(.82); }
.card.is-right:hover { transform: translate(36%, 3%) rotate(9deg) scale(.82); }
.card.is-left, .card.is-right { filter: saturate(.9); }
.card--ask { animation-delay: .25s; }
.card--pos { animation-delay: .4s; }
@keyframes card-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__tag {
  position: relative; z-index: 1; align-self: flex-start;
  margin: 12px;
  padding: 6px 9px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 14px; font-weight: 500; line-height: 1.2;
}
.card__bar {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 15px; text-align: left;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.card__bar .icon { width: 18px; height: 18px; margin-left: auto; }
.card__bar:hover { background: var(--ink); color: var(--paper); }
.card__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px var(--ink); animation: ask-pulse 1.8s ease-in-out infinite; }

.card--ask { background: var(--blue); color: var(--paper); }
.card--pos { background: var(--lime); color: var(--ink); }
.card__q {
  margin: auto 18px 0;
  font-size: clamp(22px, 2.3vw, 32px); line-height: 1.1; font-weight: 500;
  min-height: 3.3em;
}
.card__status {
  display: flex; align-items: center; gap: 10px;
  margin: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.card__status .icon { width: 16px; height: 16px; }
.card--ask .dots i { background: var(--paper); }
.card--ask.is-ready .dots i { background: var(--lime); animation: none; opacity: 1; transform: none; }

.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--ink);
  padding: 22px 0;
}
.marquee__track {
  display: flex; align-items: center; gap: 22px;
  width: max-content;
  padding-right: 22px;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1; font-weight: 700;
  text-transform: uppercase; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.marquee i { font-style: normal; font-size: 26px; font-weight: 700; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 150px) clamp(48px, 6vw, 80px); }

.rule {
  position: relative;
  height: 1px;
  background: var(--ink);
  margin-top: clamp(64px, 10vw, 150px);
}
.rule::before {
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 64px; height: 3px;
  background: var(--lime);
}

/* ---------- Interview ---------- */

.interview__inner {
  width: min(100% - 2 * var(--pad), 826px);
  margin-inline: auto;
}
.chat { margin-top: 44px; border: 1px solid var(--ink); }
.chat__log {
  min-height: 300px; max-height: 560px;
  overflow-y: auto;
  padding: 30px 30px 10px;
  display: flex; flex-direction: column; gap: 26px;
}
.chat__empty { color: var(--grey-soft); font-size: 17px; }

.msg { max-width: 60ch; }
.msg__who {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--grey-soft);
  margin-bottom: 6px;
}
.msg__text { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--you { align-self: flex-end; text-align: right; }
.msg--you .msg__text { font-weight: 500; }
.msg--ella .msg__who { color: var(--blue); }
.msg--error .msg__text { color: var(--grey); }

.cursor {
  display: inline-block;
  width: 11px; height: 1.05em;
  vertical-align: text-bottom;
  background: var(--lime);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chat__chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 30px 28px; }
.chat__chips:empty { display: none; }
.chip {
  padding: 13px 19px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 16px; line-height: 1.3; text-align: left;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--ink); color: var(--paper); }
.chip[disabled] { opacity: .45; cursor: default; background: var(--paper); color: var(--ink); }

.chat__form { display: flex; border-top: 1px solid var(--ink); }
.chat__form input {
  flex: 1; min-width: 0;
  padding: 20px 24px;
  border: 0; background: none;
  font-size: 17px;
}
.chat__form input::placeholder { color: var(--grey-soft); }
.chat__form input:focus-visible { outline-offset: -3px; }
.chat__form button {
  width: 68px; flex: none;
  display: grid; place-items: center;
  border: 0; background: var(--blue); color: var(--paper);
  cursor: pointer;
}
.chat__form button[disabled] { background: var(--blue-pale); color: var(--grey-soft); cursor: default; }
.chat__form button .icon { width: 22px; height: 22px; }

.chat__note { margin-top: 14px; font-size: 14px; color: var(--grey-soft); }

/* ---------- Timeline ---------- */

.timeline { margin-top: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--ink); }
.timeline__row {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr;
  gap: 24px;
  padding: 32px 24px;
  border-top: 1px solid var(--ink);
}
.timeline__when { font-family: var(--mono); font-size: 16px; padding-top: 2px; }
.timeline__role { font-size: 22px; line-height: 1.3; font-weight: 500; }
.timeline__co {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}
.timeline__row p { color: var(--grey); margin-top: 10px; max-width: 58em; }

/* ---------- Case files ---------- */

.cases { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--ink); }
.case {
  padding: 40px 24px 44px;
  border-bottom: 1px solid var(--ink);
  transition: background-color .25s;
}
.case:hover { background: var(--blue-wash); }
.case__title { font-size: 24px; line-height: 1.3; font-weight: 500; margin-top: 6px; }
.case__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}
.case__grid dt {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
}
.case__grid dd { color: var(--grey); }
.case__grid dd.case__result { color: var(--ink); }
.case:hover .case__grid dd { color: #1f2340; }
.case:hover .case__grid dd.case__result { color: var(--ink); }

/* ---------- Stats ---------- */

#cases { padding-bottom: 0; }
.section--stats { padding-block: clamp(56px, 6vw, 88px) 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.stat__num {
  font-size: clamp(88px, 13vw, 180px);
  line-height: 1; font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 26px;
}
.stat__note { color: var(--grey-soft); font-size: 16px; line-height: 1.45; margin-top: 8px; max-width: 26em; }

/* ---------- Contact ---------- */

.section--contact { padding-bottom: 56px; }
.contact__row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 22px 30px;
  margin-top: 48px;
  font-size: 20px;
}
.social { display: inline-grid; place-items: center; width: 30px; height: 30px; }
.social[hidden] { display: none; }
.social svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.social:hover { color: var(--blue); }
.footer { margin-top: clamp(72px, 9vw, 110px); font-size: 12px; color: var(--grey-soft); }
.footer a { color: inherit; text-underline-offset: 3px; }
.footer a:hover { color: var(--ink); }

/* ---------- Privacy page ---------- */

.legal { max-width: 46em; padding-top: calc(var(--nav-h) + 72px); padding-bottom: 56px; }
.legal h2 { font-size: 22px; line-height: 1.3; font-weight: 500; margin-top: 44px; }
.legal p { margin-top: 12px; }
.legal h2 + p { color: var(--grey); }

/* ---------- Booking dialog ---------- */

.booking {
  width: min(100% - 24px, 980px);
  max-height: min(100dvh - 24px, 760px);
  padding: 28px 30px 34px;
  border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink);
  overflow-y: auto;
}
.booking::backdrop { background: rgba(0, 0, 0, .55); }
.booking__head { display: flex; align-items: center; justify-content: space-between; }
.booking__close {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-right: -10px;
  border: 0; background: none; cursor: pointer;
}
.booking__close:hover { color: var(--blue); }
.h2--dialog { font-size: clamp(30px, 5vw, 40px); margin-top: 8px; }
.booking__status, .booking__hint { color: var(--grey); margin-top: 18px; font-size: 16px; }

.booking__days { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; padding-bottom: 8px; }
.day {
  flex: none;
  min-width: 74px; padding: 10px 12px;
  border: 1px solid var(--ink); background: var(--paper);
  font-family: var(--mono); font-size: 12px; line-height: 1.5;
  letter-spacing: 0.12em; text-transform: uppercase; text-align: center;
  cursor: pointer;
}
.day b { display: block; font-family: var(--sans); font-size: 22px; letter-spacing: 0; }
.day[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.booking__times {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px; margin-top: 14px;
}
.time {
  padding: 11px 6px;
  border: 1px solid var(--ink); background: var(--paper);
  font-family: var(--mono); font-size: 14px;
  cursor: pointer;
}
.time:hover { background: var(--blue-wash); }
.time[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--paper); }

.booking__form { display: grid; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ink); }
.booking__form[hidden] { display: none; }
.booking__chosen { font-weight: 500; }
.booking__form label {
  display: grid; gap: 6px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey);
}
.booking__form .optional { letter-spacing: 0.08em; color: var(--grey-soft); }
.booking__form input {
  padding: 13px 14px;
  border: 1px solid var(--ink); background: var(--paper);
  font-family: var(--sans); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink);
}
.booking__form .btn { justify-self: start; margin-top: 6px; }
.booking__error { color: #b00020; font-size: 16px; }
.hp { position: absolute; left: -9999px; }

#booking-done p { margin-top: 12px; color: var(--grey); }
#booking-done .booking__done-title { color: var(--ink); font-size: 24px; font-weight: 500; margin-top: 22px; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; }
  .stack { order: -1; margin: 0 auto 26px; width: min(44vw, 180px); }
  .card__q { font-size: 15px; margin: auto 10px 0; }
  .card__status { margin: 10px; font-size: 9px; }
  .card__tag { font-size: 10px; margin: 6px; padding: 3px 5px; }
  .card__bar { font-size: 11px; padding: 6px 7px; gap: 6px; left: 6px; right: 6px; bottom: 6px; }
  .card__bar .icon { width: 13px; height: 13px; }
  .case__grid { grid-template-columns: 1fr; gap: 22px; }
  .case__grid dt { margin-bottom: 6px; }
  .stats { grid-template-columns: 1fr; }
  .timeline__row { grid-template-columns: 1fr; gap: 8px; padding-inline: 0; }
  .timeline__co { display: block; margin: 4px 0 0; }
  .case { padding-inline: 16px; }
  .chat__log { padding: 22px 20px 6px; min-height: 220px; }
  .chat__chips { padding: 14px 20px 22px; }
  .contact__row { font-size: 18px; }
}

@media (max-width: 520px) {
  .nav__brand { font-size: 13px; margin-right: 12px; }
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 11px; letter-spacing: 0.12em; }
  .mono-label { font-size: 12px; letter-spacing: 0.18em; }
  .btn { padding: 15px 18px; letter-spacing: 0.2em; }
  .booking { padding: 22px 18px 26px; }
  .ask__row input { padding: 16px 16px; font-size: 16px; }
  .ask__send { padding: 0 16px; }
  .ask__send span { display: none; }
  .hero__text { min-width: 0; }
  .hero__name { font-size: clamp(46px, 17vw, 72px); }
}

/* Small phones (iPhone SE and narrower): keep the ask box on the first screen */
@media (max-width: 400px) {
  .nav__brand-full { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 18px); }
  .stack { width: 132px; margin-bottom: 18px; }
  .hero__hook { margin-top: 18px; }
  .ask { margin-top: 16px; }
  .ask__label { font-size: 10px; letter-spacing: 0.14em; }
  .card__q { font-size: 12px; }
  .card__tag { font-size: 8px; padding: 2px 4px; margin: 5px; white-space: nowrap; }
  .card__bar { font-size: 9px; padding: 5px 6px; gap: 5px; white-space: nowrap; }
  .card__bar .icon { width: 11px; height: 11px; }
  .card__dot { width: 7px; height: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .cursor { animation: none; }
  .btn, .chip, .case, .ask__row, .ask__send { transition: none; }
  .ask__dot { animation: none; }
  .card, .card__dot, .dots i { animation: none; transition: none; }
}
.legal .footer { margin-top: 72px; }

/* Google booking page inside the dialog */
.booking__frame {
  margin-top: 18px;
  border: 1px solid var(--ink);
  height: min(60dvh, 600px);
}
.booking__frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.booking__fallback { margin-top: 14px; font-size: 15px; color: var(--grey); }
