:root {
  --ink: #000;
  --ink-soft: #1a1a1a;
  --muted: #4a4a4a;
  --rule: #b0b0b0;
  --paper: #fff;
  --gutter: 30px;
  --col-gap: 40px;
  --section-pad: 59px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* Read by search engines and screen readers, not shown on screen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Cap the layout at the 1366px design width and center it on wider screens */
.page {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Shared type */
.section-title {
  font-size: 49px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.006em;
}

.statement,
.intro p,
.contact__title {
  font-size: 50px;
  font-weight: 400;
  line-height: 57px;
  letter-spacing: -0.021em;
}

/* Shared 3-column editorial grid: heading in column 1, content in 2–3 */
.section-grid,
.section-head,
.philosophy,
.block,
.ambition,
.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--col-gap);
}

/* Header */
.site-header {
  position: relative;
  z-index: 10; /* stay clickable above oversized headlines that overlap the header area */
  display: flex;
  align-items: center; /* centres the menu on the logo image as well as on the text wordmark */
  justify-content: space-between;
  gap: 16px 32px;
  padding: 26px 0 24px;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* Logo: /images/brand/logo.svg (or .png/.webp) replaces the text wordmark in header and footer.
   The text stays available to screen readers; it only shows on screen when no logo file exists. */
/* Sized for the stacked two-line logo ("just*" over "good."), so each line reads like the old wordmark */
.logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 240px;
}

@media (max-width: 640px) {
  .logo { height: 36px; }
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  font-size: 18px;
  line-height: 24px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }

.site-nav__cta {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Hero */
.hero {
  position: relative;
  aspect-ratio: 1306 / 413;
  overflow: hidden;
}

.hero .ph { position: absolute; inset: 0; }

.hero__caption {
  position: absolute;
  right: 27px;
  bottom: 29px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #fff;
  font-size: 22px;
  line-height: 29px;
  letter-spacing: 0.01em;
  text-align: right;
}

.hero__caption--dark { color: var(--ink); }

.hero__light { font-weight: 300; }
.hero__bold { font-weight: 600; }

/* Intro */
.intro {
  padding: 34px 0 33px;
  border-bottom: 1px solid var(--rule);
}

/* Divisions */
.divisions { padding-top: var(--section-pad); }

.section-lede {
  grid-column: 2 / 4;
  max-width: 760px;
  padding-top: 8px;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--col-gap);
  row-gap: 56px;
  margin-top: 56px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scroll-margin-top: 24px;
}

.card__media, .card__index { align-self: stretch; }

.card__media { aspect-ratio: 422 / 481; }

.card__index,
.pillar__index {
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
}

.card__title,
.pillar__title {
  margin-top: 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 29px;
  letter-spacing: 0.009em;
}

.card__text,
.pillar__text {
  margin-top: 7px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: var(--ink-soft);
  letter-spacing: 0.014em;
}

.card__link {
  display: inline-block;
  margin-top: auto;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

.card__text { margin-bottom: 16px; }

.card__link span { display: inline-block; transition: transform .2s ease; }
.card__link:hover span { transform: translateX(4px); }

/* Philosophy / generic text block: heading in column 1, body in 2–3 */
.philosophy,
.block {
  margin-top: 101px;
  padding-top: var(--section-pad);
  border-top: 1px solid var(--rule);
}

.philosophy__body,
.block__body { grid-column: 2 / 4; }

/* First section after the intro already sits under the intro's rule */
.intro + .block { margin-top: 0; border-top: 0; }

.block__text {
  max-width: 640px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
}

/* Ruled rows: index | title | text */
.steps {
  margin-top: 48px;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}

.step {
  display: grid;
  grid-template-columns: 64px 220px 1fr;
  column-gap: 24px;
  align-items: baseline;
  padding: 20px 0 22px;
  border-top: 1px solid var(--rule);
}

.step__index {
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
}

.step__title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 29px;
  letter-spacing: 0.009em;
}

.step__text {
  max-width: 520px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: var(--ink-soft);
  letter-spacing: 0.014em;
}

/* Simple ruled checklist */
.checklist {
  margin-top: auto;
  padding-top: 40px;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 18px;
  line-height: 24px;
}

.checklist li::before {
  content: "→";
  color: var(--muted);
}

.statement {
  font-size: 36px;
  line-height: 43px;
  letter-spacing: -0.02em;
  padding-top: 6px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--col-gap);
  row-gap: 40px;
  margin-top: 56px;
  list-style: none;
}

.pillar__index { margin-top: 0; }

/* Ambition / generic image + text split */
.ambition,
.split {
  margin-top: 101px;
  padding-top: var(--section-pad);
  border-top: 1px solid var(--rule);
  row-gap: 40px;
}

.ambition__media,
.split__media {
  grid-column: 1 / 3;
  aspect-ratio: 857 / 560;
}

.ambition__body,
.split__body {
  display: flex;
  flex-direction: column;
}

.ambition__text,
.split__text {
  margin-top: 24px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
}

.facts { margin-top: auto; padding-top: 40px; }

.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  line-height: 22px;
}

.fact dt { color: var(--muted); }
.fact dd { text-align: right; }

/* Contact */
.contact {
  margin-top: 101px;
  padding-top: 52px;
  border-top: 1px solid var(--rule);
}

.contact__text {
  max-width: 560px;
  margin-top: 24px;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 16px 26px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  transition: background .2s ease;
}

.button:hover { background: #333; }
.button span { transition: transform .2s ease; }
.button:hover span { transform: translateX(4px); }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 49% 29.4% 1fr;
  margin-top: 101px;
  padding: 53px 0 40px;
  border-top: 1px solid var(--rule);
}

.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 24px;
  color: var(--muted);
}

.site-footer__col { padding-top: 1px; }

.site-footer__heading {
  font-size: 23px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.03em;
}

.site-footer__list {
  margin-top: 11px;
  font-size: 18px;
  font-style: normal;
  line-height: 24px;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  list-style: none;
}

.site-footer__legal {
  grid-column: 1 / -1;
  margin-top: 72px;
  font-size: 15px;
  line-height: 20px;
  color: var(--muted);
}

/* Contact panel — slides in from the right, full height (built by /js/contact.js) */
html.cd-lock { overflow: hidden; }
html.cd-lock body { padding-right: var(--scrollbar-gap, 0); }

.contact-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.contact-drawer[hidden] { display: none; }

/* Reset native controls' fonts; colours are set per control so selected/black states keep white text */
.contact-drawer button:not(.button),
.contact-drawer input,
.contact-drawer textarea { font: inherit; }

.contact-drawer input,
.contact-drawer textarea { color: inherit; }

.contact-drawer .button { font-family: inherit; }

.contact-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  opacity: 0;
  transition: opacity .35s ease;
}

.contact-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(600px, 100%);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 48px 48px;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.22, .8, .24, 1);
  outline: none;
}

.contact-drawer.is-open .contact-drawer__backdrop { opacity: 1; }
.contact-drawer.is-open .contact-drawer__panel { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .contact-drawer__backdrop,
  .contact-drawer__panel { transition: none; }
}

.contact-drawer__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.contact-drawer__label {
  font-size: 18px;
  line-height: 24px;
  color: var(--muted);
}

.contact-drawer__close {
  padding: 0;
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 24px;
  color: var(--muted);
  cursor: pointer;
}

.contact-drawer__close:hover { color: var(--ink); }

.cd-title {
  margin-top: 48px;
  font-size: 49px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.006em;
  outline: none;
}

.cd-lede {
  margin-top: 14px;
  font-size: 18px;
  line-height: 26px;
  color: var(--ink-soft);
}

.cd-field { margin-top: 32px; }

.cd-field label {
  display: block;
  font-size: 15px;
  line-height: 20px;
  color: var(--muted);
}

.cd-field input,
.cd-field textarea {
  display: block;
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font-size: 20px;
  line-height: 28px;
  outline: none;
  transition: border-color .2s ease;
}

.cd-field textarea { resize: vertical; min-height: 120px; }

/* Spam trap: kept in the page for bots, moved out of sight for people */
.cd-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cd-field input:focus,
.cd-field textarea:focus { border-color: var(--ink); }
.cd-field [aria-invalid="true"] { border-color: #b42318; }
.cd-field textarea::placeholder { color: #a5a5a5; }

.cd-pick {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.cd-pick__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 23px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.03em;
}

.cd-pick__title span {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.cd-step {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 22px;
}

.cd-step span { color: var(--muted); }

.cd-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.cd-day,
.cd-time {
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.cd-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 12px;
}

.cd-day__dow,
.cd-day__mon {
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.cd-day__num {
  font-size: 26px;
  line-height: 32px;
  letter-spacing: -0.02em;
}

.cd-day:hover,
.cd-time:not([disabled]):hover { border-color: var(--ink); }

.cd-day[aria-checked="true"],
.cd-time[aria-checked="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.cd-day[aria-checked="true"] .cd-day__dow,
.cd-day[aria-checked="true"] .cd-day__mon { color: #cfcfcf; }

.cd-day:focus-visible,
.cd-time:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.cd-times {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.cd-time {
  padding: 12px 0;
  font-size: 17px;
  line-height: 22px;
}

.cd-time[disabled] {
  background: #f6f6f4;
  color: #b5b5b5;
  text-decoration: line-through;
  cursor: not-allowed;
}

.cd-hint {
  grid-column: 1 / -1;
  padding: 13px 0;
  border: 1px dashed var(--rule);
  text-align: center;
  font-size: 15px;
  line-height: 20px;
  color: var(--muted);
}

.cd-tz {
  margin-top: 12px;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.cd-error {
  margin-top: 28px;
  font-size: 15px;
  line-height: 21px;
  color: #b42318;
}

.cd-submit {
  width: 100%;
  justify-content: space-between;
  border: 0;
  cursor: pointer;
}

.cd-form .cd-submit { margin-top: 32px; }
.cd-submit[disabled] { opacity: .6; cursor: progress; }

.cd-done .cd-lede { font-size: 20px; line-height: 28px; }

@media (max-width: 640px) {
  .contact-drawer__panel { padding: 18px 16px 32px; }
  .cd-title { margin-top: 32px; font-size: 38px; }
  .cd-days { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .cd-day__num { font-size: 22px; line-height: 28px; }
  .cd-times { grid-template-columns: repeat(3, 1fr); }
}

/* Image spots: plain white (the page colour) while an image or clip loads, or if its file is missing */
.ph {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* keeps a real image inside its slot, below captions laid over it */
  background-color: var(--paper);
}

/* A real image, when its file exists, covers the placeholder art (see /js/images.js) */
.ph__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Crop anchors: keep the top (or bottom) of an image or clip instead of its centre */
.ph__img--top { object-position: 50% 0; }
.ph__img--upper { object-position: 50% 25%; } /* halfway between top and centre */
.ph__img--bottom { object-position: 50% 100%; }


/* Responsive */
@media (max-width: 1000px) {
  .intro p, .contact__title { font-size: 38px; line-height: 44px; }
  .statement { font-size: 30px; line-height: 36px; }
  .section-head, .philosophy, .block, .ambition, .split { grid-template-columns: 1fr; row-gap: 24px; }
  .section-lede, .philosophy__body, .block__body, .ambition__media, .split__media { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .cards, .pillars { grid-template-columns: 1fr; }
  .cards { row-gap: 48px; }
  .card__media { aspect-ratio: 4 / 3; }
  .step { grid-template-columns: 40px 1fr; row-gap: 6px; }
  .step__text { grid-column: 2; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --section-pad: 40px; }
  .site-header { flex-direction: column; align-items: flex-start; padding: 18px 0 16px; }
  .site-nav { gap: 4px 20px; font-size: 16px; }
  .hero { aspect-ratio: 4 / 3; }
  .hero__caption { right: 16px; bottom: 16px; font-size: 18px; line-height: 24px; }
  .intro { padding: 24px 0; }
  .intro p, .contact__title { font-size: 28px; line-height: 33px; }
  .statement { font-size: 24px; line-height: 30px; }
  .section-title { font-size: 36px; }
  .section-lede { font-size: 19px; line-height: 26px; }
  .cards, .pillars { margin-top: 32px; }
  .philosophy, .block, .ambition, .split, .contact, .site-footer { margin-top: 64px; }
  .intro + .block { margin-top: 0; }
  .block__text { font-size: 18px; line-height: 26px; }
  .contact__text { font-size: 18px; line-height: 26px; }
  .site-footer { grid-template-columns: 1fr; padding: 40px 0 32px; }
  .site-footer__legal { margin-top: 32px; }
}
