/* Lachlan Sallabank, clinical AI coaching. v2 draft, 10 Nov 2026 */

/* Palette A "Coast" (pick): sea-dark fields, cool sand ground, sea-green buttons (yellow dropped 10 Nov at Lachy's request) */
:root, [data-palette="coast"] {
  --ground: #edeee9;
  --ground-2: #e2e5de;
  --ink: #0e1a1b;
  --ink-soft: #2b3735;
  --field: #10292a;
  --field-2: #173637;
  --field-ink: #edf1ea;
  --field-soft: #b4c2bc;
  --accent: #1f6f5c;
  --accent-ink: #ffffff;
  --accent-hover: #175747;
  --live: #8fd6bd;
}
/* Palette B "Paper" (v1 colours, kept as the alternative) */
[data-palette="paper"] {
  --ground: #f3f0e9;
  --ground-2: #e9e4d9;
  --ink: #1a1d1b;
  --ink-soft: #383c39;
  --field: #1f2321;
  --field-2: #2b302d;
  --field-ink: #f3f0e9;
  --field-soft: #c4c0b5;
  --accent: #c8572d;
  --accent-ink: #ffffff;
  --accent-hover: #a8431e;
  --live: #f0a77f;
}

:root {
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --m: clamp(16px, 3.4vw, 48px);       /* the one outer margin */
  --max: 1440px;
  --gap-section: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.frame { max-width: var(--max); margin: 0 auto; padding: 0 var(--m); }

/* ---------- Type scale: three sizes do the work ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.display { font-size: clamp(44px, 6.6vw, 104px); }
h2 { font-size: clamp(36px, 4.6vw, 72px); }
h3 { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
.lead { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.45; max-width: 34em; }
.small { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Draft banner ---------- */
.draft-note { background: var(--accent); color: var(--accent-ink); font: 500 14px/1.4 var(--sans); text-align: center; padding: 7px 16px; }

/* ---------- Header ---------- */
.site-head { position: relative; z-index: 20; }
.site-head .frame { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.wordmark { font: 600 22px/1 var(--sans); letter-spacing: -0.03em; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { text-decoration: none; font-size: 17px; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; }
.menu-btn { display: none; background: var(--ground-2); border: 0; padding: 10px 16px; font: 500 16px var(--sans); color: var(--ink); cursor: pointer; }

/* ---------- Buttons: square, flat, one fill ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font: 600 18px/1 var(--sans); letter-spacing: -0.01em;
  padding: 20px 28px; border: 0; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.nav .btn { padding: 14px 20px; font-size: 16px; }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { background: var(--field-2); }

/* ---------- Home hero ---------- */
.hero .frame { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; min-height: calc(100svh - 84px - 34px); padding-bottom: var(--m); }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 24px 0; }
.hero-text .lead { color: var(--ink-soft); }
.hero-text .lead strong { color: var(--ink); font-weight: 600; }
.hero-act { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-photo { margin: 0; position: relative; overflow: hidden; background: var(--ground-2); min-height: 480px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ground); padding: 12px 18px 0 0; font-size: 15px; color: var(--ink-soft); }

/* ---------- Live: the assistant's day ---------- */
.live { background: var(--field); color: var(--field-ink); padding: clamp(72px, 9vw, 128px) 0; }
.live .frame { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 56px); }
.live-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.live-head .now { margin-top: 0; }
.live h2 { color: var(--field-ink); }
.live .now { margin-top: 28px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.45; color: var(--field-soft); max-width: 26em; }
.live .now b { color: var(--field-ink); font-weight: 600; }
.day { list-style: none; margin: 0; padding: 0; }
.day li { display: grid; grid-template-columns: 5.6em 1fr 1fr; gap: 28px; padding: 18px 22px; font-size: 19px; line-height: 1.4; color: var(--field-soft); transition: background .4s var(--ease), color .4s var(--ease); }
.day li + li { margin-top: 4px; }
.day li time { color: var(--field-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.day li.on { background: var(--field-2); color: var(--field-ink); }
.day li.on time { color: var(--live); }
.day li.on::after { content: "About now"; grid-column: 2; font-size: 14px; font-weight: 600; color: var(--live); }
.lane b { display: block; font-size: 14px; font-weight: 600; color: var(--field-ink); margin-bottom: 4px; }
.lane.ai b { color: var(--live); }

/* ---------- Statement + outcomes ---------- */
.section { padding: var(--gap-section) 0; }
.outcomes .frame { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.outcomes h2 { max-width: 9em; }
.outcomes .lead { margin-top: 28px; }
.list-big { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.list-big h3 { margin-bottom: 10px; }
.list-big p { color: var(--ink-soft); max-width: 30em; }
.boundary { margin-top: 48px; background: var(--ground-2); padding: 24px 28px; font-size: 17px; max-width: 34em; }

/* ---------- Who it's for: photo + list ---------- */
.who { background: var(--ground-2); }
.who .frame { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.who figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.who figure img { width: 100%; height: 100%; object-fit: cover; }
.who h2 { margin-bottom: 40px; }
.who dl { margin: 0; display: grid; gap: 28px; }
.who dt { font-size: clamp(22px, 1.8vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.who dd { margin: 6px 0 0; color: var(--ink-soft); max-width: 32em; }

/* ---------- Quote ---------- */
.quote .frame { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.quote-photo { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; position: relative; }
.quote-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.quote-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ground); padding: 10px 16px 0 0; font-size: 15px; color: var(--ink-soft); }
.quote blockquote { margin: 0; font: 400 clamp(26px, 2.5vw, 36px)/1.25 var(--serif); letter-spacing: -0.01em; max-width: 20em; }
.quote cite { display: block; margin-top: 20px; font: 400 16px var(--sans); color: var(--ink-soft); font-style: normal; }

/* ---------- Close ---------- */
.close { background: var(--field); color: var(--field-ink); padding: clamp(88px, 11vw, 160px) 0; }
.close .frame { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: end; }
.close h2 { color: var(--field-ink); max-width: 11em; }
.close p { color: var(--field-soft); margin-top: 24px; max-width: 28em; }
.close .act { justify-self: end; }
.close .btn, .member .btn { background: var(--ground); color: var(--ink); }
.close .btn:hover { background: #fff; }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 6vw, 88px); }
.page-head .frame { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.page-head .lead { color: var(--ink-soft); }

/* ---------- Programs ---------- */
.programs { background: var(--ground-2); padding: clamp(64px, 8vw, 112px) 0 var(--gap-section); }
.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.pick {
  all: unset; box-sizing: border-box; cursor: pointer;
  background: var(--ground); padding: 26px 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.pick:hover { background: #fff; }
.pick:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.pick .p-name { font-size: clamp(21px, 1.7vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.pick .p-price { font-size: clamp(32px, 3vw, 44px); font-weight: 600; letter-spacing: -0.04em; margin-top: 14px; line-height: 1; }
.pick .p-meta { font-size: 15.5px; color: var(--ink-soft); }
.pick[aria-checked="true"] { background: var(--field); color: var(--field-ink); }
.pick[aria-checked="true"] .p-meta { color: var(--field-soft); }
.pick[aria-checked="true"] .p-price { color: var(--live); }
[data-palette="paper"] .pick[aria-checked="true"] .p-price { color: var(--live); }

.plan { background: var(--field); color: var(--field-ink); padding: clamp(28px, 3vw, 44px); }
.plan-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 36px; }
.plan-top h2 { color: var(--field-ink); font-size: clamp(32px, 3.4vw, 52px); }
.plan-top p { color: var(--field-soft); font-size: 18px; }
.plan-top p b { color: var(--field-ink); font-weight: 600; }

.weeks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.week.after { background: var(--accent); }
.week.after h4 { color: var(--field-ink); }
.week.after .when { color: var(--field-ink); }
.week.after .after-note { margin-top: auto; padding-top: 14px; }
.week { background: var(--field-2); padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 8px; transition: opacity .35s var(--ease); }
.week.pre { background: #5c6763; }
[data-palette="paper"] .week.pre { background: #55524b; }
.week h3 { font-size: 21px; color: var(--field-ink); }
.week .when { font-size: 15px; color: var(--field-soft); }
.week h4 { margin: 14px 0 2px; font-size: 15px; font-weight: 600; color: var(--live); letter-spacing: 0; }
.week ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.week li { font-size: 16px; line-height: 1.4; color: var(--field-ink); }
.week.off { opacity: .28; }
.week .off-note { display: none; margin-top: auto; padding-top: 14px; font-size: 15px; color: var(--field-ink); }
.week.off .off-note { display: block; }
.week .cond { display: none; font-size: 15px; color: var(--live); font-weight: 600; }
.weeks.condensed .w1 .cond, .weeks.condensed .w2 .cond { display: block; }
.extras { display: none; margin-top: 6px; background: var(--field-2); padding: 18px 20px; font-size: 17px; color: var(--field-ink); }
.extras.show { display: block; }
.costs { margin-top: 28px; font-size: 16.5px; color: var(--ink-soft); max-width: 46em; }

.steps-sec .frame { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.steps { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 36px; font-size: clamp(22px, 1.8vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.steps li::marker { color: var(--ink-soft); font-weight: 400; }
.steps span { display: block; margin-top: 8px; font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--ink-soft); max-width: 30em; }

.member { background: var(--field); color: var(--field-ink); }
.member .frame { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.member h2 { color: var(--field-ink); }
.member .price { font-size: clamp(56px, 6vw, 96px); font-weight: 600; letter-spacing: -0.05em; color: var(--live); line-height: 1; margin-top: 32px; }
[data-palette="paper"] .member .price { color: var(--live); }
.member .price small { font-size: 22px; letter-spacing: -0.01em; color: var(--field-soft); font-weight: 400; margin-left: 8px; }
.member ul { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 18px; color: var(--field-soft); font-size: 19px; }
.member li b { color: var(--field-ink); font-weight: 600; }

.faq .frame { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); }
.faq-list { display: grid; gap: 6px; }
.faq details { background: var(--ground-2); padding: 22px 26px; }
.faq summary { cursor: pointer; font-size: clamp(20px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 14px; color: var(--ink-soft); max-width: 40em; }

/* ---------- Publications ---------- */
.pubs-sec .frame { display: grid; grid-template-columns: 0.55fr 1.45fr; gap: clamp(32px, 5vw, 80px); }
.pubs-sec + .pubs-sec { padding-top: 0; }
.pubs-sec h2 { font-size: clamp(30px, 3vw, 44px); position: sticky; top: 24px; align-self: start; }
.pub-list { display: grid; gap: 6px; }
.pub { background: var(--ground-2); padding: 26px 28px; display: grid; grid-template-columns: 4.4em 1fr; gap: 20px; }
.pub .yr { font-weight: 600; font-variant-numeric: tabular-nums; }
.pub h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; }
.pub h3 a { text-decoration: none; }
.pub h3 a:hover { text-decoration: underline; }
.pub .by { margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.pub .by b { color: var(--ink); font-weight: 600; }
.pub .src { margin-top: 4px; font-size: 16px; color: var(--ink-soft); }
.pub .kind { display: inline-block; margin-top: 12px; background: var(--ground); padding: 4px 10px; font-size: 14.5px; }

/* ---------- About ---------- */
.about-hero .frame { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.about-hero figure { margin: 0; overflow: hidden; min-height: 520px; position: relative; }
.about-hero figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.about-hero .text { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 32px 0; }
.prose p { font-size: 19px; line-height: 1.6; max-width: 34em; }
.prose p + p { margin-top: 18px; }
.about-work { background: var(--ground-2); }
.about-work .frame { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 6px; }
.about-work figure { margin: 0; position: relative; overflow: hidden; min-width: 0; }
.about-work figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-work figcaption { position: absolute; left: 0; bottom: 0; background: var(--ground-2); padding: 10px 16px 0 0; font-size: 15px; color: var(--ink-soft); }
.about-work .photos { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 6px; min-height: 560px; }
.about-work .facts-wrap { background: var(--ground); padding: clamp(28px, 3vw, 44px); }
.about-work h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 28px; }
.facts { margin: 0; display: grid; gap: 18px; }
.facts dt { font-weight: 600; font-size: 16px; }
.facts dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Book ---------- */
.book .frame { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.book ul { margin: 28px 0 0; padding: 0 0 0 1.1em; display: grid; gap: 14px; font-size: 19px; }
.cal { background: var(--field); color: var(--field-ink); min-height: 540px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.cal h3 { color: var(--field-ink); font-size: 28px; }
.cal p { color: var(--field-soft); max-width: 24em; }
.cal .slot { background: var(--field-2); padding: 22px; color: var(--field-soft); font-size: 16px; }

/* ---------- Footer: the name returns ---------- */
.site-foot { padding: clamp(64px, 8vw, 112px) 0 32px; }
.foot-name { font-size: clamp(56px, 10.6vw, 168px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.85; margin: 0 0 40px; white-space: nowrap; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 16px; color: var(--ink-soft); }
.foot-row nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Palette switch (draft only) ---------- */
.palette-switch { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: flex; background: var(--ink); color: var(--ground); font-size: 14px; }
.palette-switch button { all: unset; cursor: pointer; padding: 10px 14px; }
.palette-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
.hero-photo img { animation: drift 18s ease-in-out infinite alternate; }
.hero-photo.zoom img { transform-origin: 90% 60%; animation: zoomdrift 18s ease-in-out infinite alternate; }
@keyframes zoomdrift { from { transform: scale(1.75); } to { transform: scale(1.85); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.07) translateY(-1%); } }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .hero-photo img { animation: none; }
  .hero-photo.zoom img { transform: scale(1.8); }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive: phone is its own composition ---------- */
@media (max-width: 1080px) {
  .weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week.pre, .week.after { grid-column: 1 / -1; }
  .picker { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .live-head, .hero .frame, .live .frame, .outcomes .frame, .who .frame, .quote .frame, .close .frame,
  .page-head .frame, .steps-sec .frame, .member .frame, .faq .frame, .pubs-sec .frame,
  .about-hero .frame, .about-work .frame, .book .frame, .plan-top { grid-template-columns: 1fr; }
  .hero .frame { min-height: 0; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 3.4; margin: 0 calc(var(--m) * -1); }
  .hero-photo img { object-position: 50% 22%; }
  .hero-text { padding: 8px 0 24px; gap: 24px; }
  .close .act { justify-self: start; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ground-2); padding: 8px var(--m) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 19px; }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .pubs-sec h2 { position: static; }
  .about-hero figure { min-height: 0; aspect-ratio: 4 / 3; }
  .about-work .photos { aspect-ratio: auto; grid-template-columns: 1fr; }
  .about-work .photos figure { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .weeks, .picker { grid-template-columns: 1fr; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .day li { grid-template-columns: 1fr; padding: 16px; font-size: 17px; gap: 8px; }
  .day li.on::after { grid-column: 1; }
  .foot-name { white-space: normal; font-size: 64px; }
  .cal { min-height: 0; padding: 28px; gap: 28px; }
}

.hero h1.display { font-size: clamp(40px, 5vw, 76px); }
