/* ==========================================================================
   Left Bank Partners — Version A · Editorial Restraint
   Pre-engagement design prototype · Splendid Systems
   Type: Libre Caslon Display / Libre Caslon Text + Instrument Sans (all OFL)
   ========================================================================== */

:root {
  /* Palette — warm near-black, ivory reading text, ballet slipper accent */
  --ink: #0D0C0B;
  --ink-2: #141311;
  --ink-3: #1C1A17;
  --paper: #EEE7DB;         /* primary reading ivory */
  --paper-2: #C8C0B2;       /* secondary reading */
  --muted: #8E877B;         /* utility text — 5.4:1 on --ink */
  --rule: rgba(238, 231, 219, 0.14);
  --rule-strong: rgba(238, 231, 219, 0.3);
  --pink: #FFE8EF;
  --error: #F4BFCC;

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5.6vw, 96px);
  --max: 1480px;
  --col-gap: clamp(16px, 2vw, 32px);
  --section-pad: clamp(104px, 15vw, 232px);

  --ease: cubic-bezier(0.22, 0.61, 0.12, 1);
  --ease-soft: cubic-bezier(0.33, 0, 0.15, 1);
  --slow: 1100ms;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--pink); color: var(--ink); }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }

:focus-visible {
  outline: 1px solid var(--pink);
  outline-offset: 6px;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--pink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

section[id] { scroll-margin-top: 72px; }

/* ---------- Utility type ---------- */

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}
.label__num {
  display: inline-block;
  min-width: 3.2em;
  color: var(--paper-2);
  font-variant-numeric: tabular-nums;
}
.dot {
  display: inline-block;
  width: 3px; height: 3px;
  margin: 0 0.9em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.7;
}

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.012em;
}
.h2 em, .opening__title em {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.42;
  color: var(--paper);
}

.arrow {
  display: inline-block;
  font-family: var(--sans);
  transition: transform 500ms var(--ease);
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background-image: linear-gradient(var(--pink), var(--pink));
  background-size: 100% 1px;
  background-position: 0 calc(50% + 1.1em);
  background-repeat: no-repeat;
  transition: background-size 600ms var(--ease), color 400ms var(--ease);
}
.text-cta:hover { color: var(--pink); }
.text-cta:hover .arrow { transform: translateX(5px); }

/* ---------- Client lockup (Meghan Fort · Left Bank Partners) ----------
   Supplied artwork rendered to a transparent mask so it takes the ivory token
   (never pure white) and can be re-coloured in CSS. Swap for the SVG in production. */
.logo {
  display: block;
  aspect-ratio: 2400 / 383;
  background-color: var(--paper);
  -webkit-mask: url("assets/meghan-fort-lockup.png") center / contain no-repeat;
  mask: url("assets/meghan-fort-lockup.png") center / contain no-repeat;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 600ms var(--ease-soft), border-color 600ms var(--ease-soft);
}
.site-header.is-scrolled {
  background-color: rgba(13, 12, 11, 0.97);
  border-bottom-color: var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.wordmark .logo { width: clamp(168px, 16vw, 232px); }
.wordmark:hover .logo { background-color: var(--pink); }
.logo { transition: background-color 500ms var(--ease-soft); }

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background-image: linear-gradient(var(--pink), var(--pink));
  background-size: 0% 1px;
  background-position: 0 calc(50% + 1em);
  background-repeat: no-repeat;
  transition: background-size 600ms var(--ease), color 400ms var(--ease);
}
.header-cta:hover { background-size: 100% 1px; color: var(--pink); }

/* ---------- 1 · Opening ---------- */

.opening {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
}
.opening__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: var(--col-gap);
  padding-top: clamp(132px, 22vh, 232px);
}
.opening__label {
  grid-column: 1 / -1;
  margin-bottom: clamp(36px, 7vh, 80px);
}
.opening__title {
  grid-column: 1 / span 11;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.016em;
}
.opening__title .line { display: block; }
.opening__title em {
  display: inline-block;
  padding-top: 0.08em;
  color: var(--paper-2);
}

.opening__body {
  grid-column: 7 / span 5;
  align-self: end;
  margin-top: clamp(48px, 9vh, 112px);
  padding-bottom: clamp(56px, 10vh, 120px);
}
.opening__body p {
  font-size: clamp(17px, 1.3vw, 19.5px);
  line-height: 1.72;
  color: var(--paper-2);
  margin-bottom: 36px;
  max-width: 34em;
}

.opening__foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 30px;
  border-top: 1px solid var(--rule);
}

/* ---------- Section scaffolding ---------- */

.section { padding-top: var(--section-pad); }
.conversation { padding-bottom: var(--section-pad); }

.section-head {
  position: relative;
  padding-top: 20px;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.rule {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--rule-strong);
  transform-origin: 0 50%;
}

/* ---------- 2 · Meghan ---------- */

.meghan__grid { align-items: start; }

.portrait {
  grid-column: 2 / span 4;
  position: relative;
}
.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink-2);
  outline: 1px solid var(--rule);
}
.portrait__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait__mark {
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--rule-strong);
}
.portrait__mark--tl { top: -10px;    left: -10px;  border-top-width: 1px;    border-left-width: 1px; }
.portrait__mark--tr { top: -10px;    right: -10px; border-top-width: 1px;    border-right-width: 1px; }
.portrait__mark--bl { bottom: -10px; left: -10px;  border-bottom-width: 1px; border-left-width: 1px; }
.portrait__mark--br { bottom: -10px; right: -10px; border-bottom-width: 1px; border-right-width: 1px; }
.portrait__note {
  position: absolute;
  left: 20px; bottom: 18px;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.meghan__text {
  grid-column: 7 / span 5;
  padding-top: clamp(0px, 6vw, 96px);
}
.meghan__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.meghan__role { margin: 14px 0 clamp(40px, 5vw, 64px); }
.meghan__text .lead { margin-bottom: 1.3em; }
.meghan__text p:not(.lead):not(.label) {
  color: var(--paper-2);
  max-width: 32em;
}
.meghan__text p + p:not(.lead) { margin-top: 1.1em; }

/* ---------- 3 · The Work ---------- */

.work__head {
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.work__title { grid-column: 1 / span 6; }
.work__intro {
  grid-column: 8 / span 4;
  color: var(--paper-2);
  font-size: 17px;
  line-height: 1.7;
  max-width: 26em;
}

.work__list { border-bottom: 1px solid var(--rule); }
.work-item { border-top: 1px solid var(--rule); }
.work-item__heading { font-weight: 400; }

.work-item__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: baseline;
  padding: clamp(26px, 3vw, 40px) 0;
  min-height: 44px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.work-item__trigger:focus-visible { outline-offset: -1px; }

.work-item__num {
  grid-column: 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}
.work-item__title {
  grid-column: 2 / span 9;
  font-family: var(--display);
  font-size: clamp(28px, 3.9vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--paper-2);
  transition: color 700ms var(--ease-soft);
}
.work-item__icon {
  grid-column: 12;
  justify-self: end;
  align-self: center;
  position: relative;
  width: 17px; height: 17px;
}
.work-item__icon::before,
.work-item__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: var(--paper);
  transition: transform 700ms var(--ease), opacity 700ms var(--ease);
}
.work-item__icon::after { transform: rotate(90deg); }

.work-item__trigger:hover .work-item__title,
.work-item.is-open .work-item__title { color: var(--paper); }
.work-item__trigger:hover .work-item__icon::after { transform: rotate(90deg) scaleX(0.7); }
.work-item.is-open .work-item__icon::after { transform: rotate(0deg); opacity: 0; }

/* Measured height reveal: grid-rows 0fr → 1fr; hidden from AT when closed */
.js .work-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 760ms var(--ease), visibility 0s linear 760ms;
}
.js .work-item.is-open .work-item__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 760ms var(--ease), visibility 0s;
}
.work-item__clip { overflow: hidden; min-height: 0; }
.work-item__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.work-item__body p {
  grid-column: 2 / span 6;
  font-size: clamp(17px, 1.3vw, 19.5px);
  line-height: 1.72;
  color: var(--paper-2);
  max-width: 36em;
}
.js .work-item__body p {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 500ms var(--ease-soft), transform 500ms var(--ease-soft);
}
.js .work-item.is-open .work-item__body p {
  opacity: 1;
  transform: none;
  transition: opacity 900ms var(--ease-soft) 180ms, transform 900ms var(--ease) 180ms;
}

/* ---------- 4 · Notes ---------- */

.notes__head { margin-bottom: clamp(56px, 7vw, 112px); }
.notes__title {
  grid-column: 1 / span 10;
  font-size: clamp(34px, 4.3vw, 66px);
  line-height: 1.12;
}
.notes__title .line { display: block; }
.notes__title-a { color: var(--paper-2); }
.notes__title em { color: var(--paper); font-size: 0.93em; }
.notes__intro {
  grid-column: 7 / span 5;
  margin-top: clamp(32px, 4vw, 56px);
  font-size: 17px;
  line-height: 1.7;
  color: var(--paper-2);
  max-width: 30em;
}

.journal { border-bottom: 1px solid var(--rule); }
.journal__item { border-top: 1px solid var(--rule); }
.journal__link {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: baseline;
  padding: clamp(28px, 3vw, 40px) 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.journal__link:focus-visible { outline-offset: -1px; }
.journal__num {
  grid-column: 1;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.journal__meta {
  grid-column: 2 / span 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.journal__kicker { color: var(--paper-2); }
.journal__main {
  grid-column: 4 / span 6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.journal__title {
  font-family: var(--display);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.008em;
  color: var(--paper);
  transition: color 500ms var(--ease-soft);
}
.journal__dek {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 34em;
}
.journal__go {
  grid-column: 10 / span 3;
  justify-self: end;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-2);
  white-space: nowrap;
  transition: color 500ms var(--ease-soft);
}
.journal__link:hover .journal__title { color: var(--pink); }
.journal__link:hover .journal__go { color: var(--paper); }
.journal__link:hover .arrow { transform: translateX(5px); }

.notes__all {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

/* ---------- 5 · Start a Conversation ---------- */

.conversation__grid { align-items: start; }
.conversation__intro { grid-column: 1 / span 5; }
.conversation__intro .h2 { margin-bottom: clamp(28px, 3vw, 44px); }
.conversation__intro p {
  font-size: clamp(17px, 1.3vw, 19.5px);
  line-height: 1.72;
  color: var(--paper-2);
  max-width: 28em;
}
.conversation__form-wrap { grid-column: 7 / span 6; }

.form { display: grid; gap: clamp(28px, 3vw, 40px); }
.field { display: flex; flex-direction: column; }
.field label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.req { color: var(--pink); margin-left: 2px; }

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--paper);
  transition: border-color 400ms var(--ease-soft), box-shadow 400ms var(--ease-soft);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover,
.field textarea:hover { border-bottom-color: rgba(238, 231, 219, 0.5); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--pink);
  box-shadow: 0 1px 0 0 var(--pink);
}
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field__error {
  min-height: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--error);
}
.field__error:not(:empty) { margin-top: 10px; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 8px;
}
.button {
  min-height: 52px;
  padding: 0 32px;
  border: 1px solid var(--paper);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 500ms var(--ease-soft), color 500ms var(--ease-soft), border-color 500ms var(--ease-soft);
}
.button:hover { background: var(--pink); border-color: var(--pink); color: var(--ink); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.form__note {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

.form-success {
  padding-top: clamp(8px, 2vw, 24px);
}
.form-success:focus { outline: none; }
.form-success__msg {
  margin: 20px 0 32px;
  font-family: var(--display);
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.2;
  max-width: 16em;
}
.link-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-button:hover { color: var(--paper); }

/* ---------- 6 · Footer ---------- */

.site-footer { padding-bottom: 88px; }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 36px 0 44px;
  border-top: 1px solid var(--rule);
}
.site-footer__logo .logo { width: clamp(220px, 22vw, 320px); }
.site-footer__domain {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
}
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--paper-2);
  text-decoration: none;
  transition: color 400ms var(--ease-soft);
}
.site-footer__links a:hover { color: var(--pink); }
.site-footer__small {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Prototype toast ---------- */

.toast {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 90;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  background: var(--ink-3);
  border: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--paper);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  pointer-events: none;
  transition: opacity 400ms var(--ease-soft), transform 400ms var(--ease-soft);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast:empty { padding: 0; border: 0; }

/* ---------- Motion — reveals (JS only) ---------- */

.js .reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity var(--slow) var(--ease-soft) var(--delay, 0ms),
    transform var(--slow) var(--ease) var(--delay, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .rule-draw {
  transform: scaleX(0);
  transition: transform 1600ms var(--ease) 100ms;
}
.js .rule-draw.is-in { transform: scaleX(1); }

/* ---------- Placeholder markers (toggled from feedback tool) ---------- */

.show-placeholders [data-placeholder] {
  outline: 1px dashed rgba(255, 232, 239, 0.65);
  outline-offset: 8px;
  background: rgba(255, 232, 239, 0.05);
}
.show-placeholders .portrait__frame { outline: 1px dashed rgba(255, 232, 239, 0.65); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .portrait { grid-column: 1 / span 5; }
  .meghan__text { grid-column: 7 / span 6; padding-top: 0; }
  .work__title { grid-column: 1 / span 7; }
  .work__intro { grid-column: 8 / span 5; }
  .journal__meta { display: none; }
  .journal__num { grid-column: 1 / span 2; }
  .journal__main { grid-column: 3 / span 7; }
  .conversation__intro { grid-column: 1 / span 5; }
  .conversation__form-wrap { grid-column: 7 / span 6; }
}

@media (max-width: 820px) {
  .opening__body { grid-column: 3 / -1; }
  .opening__foot-list { display: none; }

  .portrait { grid-column: 1 / span 7; margin-bottom: 64px; }
  .meghan__text { grid-column: 1 / -1; }

  .work__title, .work__intro { grid-column: 1 / -1; }
  .work__intro { margin-top: 24px; }
  .work-item__num { grid-column: 1 / span 1; }
  .work-item__title { grid-column: 2 / span 10; }
  .work-item__body p { grid-column: 2 / span 10; }

  .notes__title { grid-column: 1 / -1; }
  .notes__intro { grid-column: 3 / -1; }
  .journal__link { row-gap: 16px; }
  .journal__num { grid-column: 1 / -1; }
  .journal__main { grid-column: 1 / -1; }
  .journal__go { grid-column: 1 / -1; justify-self: start; }

  .conversation__intro,
  .conversation__form-wrap { grid-column: 1 / -1; }
  .conversation__intro { margin-bottom: 56px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header__inner { height: 64px; }
  .wordmark .logo { width: 138px; }
  .header-cta { font-size: 10.5px; letter-spacing: 0.12em; white-space: nowrap; }

  .opening__inner { padding-top: 124px; }
  .opening__title { grid-column: 1 / -1; font-size: clamp(40px, 11.4vw, 56px); line-height: 1.05; }
  .opening__title .line { display: inline; }
  .opening__title .line:nth-child(2)::after { content: "\A"; white-space: pre; }
  .opening__body { grid-column: 1 / -1; }

  .portrait { grid-column: 1 / -1; margin-inline: 10px; }
  .work-item__trigger { padding: 24px 0; }
  .work-item__num { font-size: 13px; }
  .work-item__title { font-size: clamp(26px, 7.6vw, 34px); grid-column: 2 / span 9; }
  .work-item__icon { grid-column: 11 / span 2; }
  .notes__intro { grid-column: 1 / -1; }
  .site-footer__links { flex-direction: column; gap: 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
    animation-duration: 1ms !important;
  }
  .js .reveal, .js .rule-draw { opacity: 1; transform: none; }
}

/* ==========================================================================
   Direction feedback tool — prototype UI, intentionally NOT brand-styled
   ========================================================================== */

.fb {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 150;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #1F1F1F;
  letter-spacing: 0;
  text-transform: none;
}
.fb *:focus-visible { outline: 2px solid #2F6FEB; outline-offset: 2px; }
.fb-launch, .fb-restore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 999px;
  background: #F3F2EF;
  color: #1F1F1F;
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.fb-launch::before, .fb-restore::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2F6FEB;
}
.fb-restore {
  width: 44px; padding: 0;
  justify-content: center;
  opacity: 0.55;
}
.fb-restore:hover, .fb-restore:focus-visible { opacity: 1; }
.fb-panel {
  position: absolute;
  right: 0; bottom: 56px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(80vh, 680px);
  overflow: auto;
  padding: 18px 18px 16px;
  background: #F3F2EF;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}
.fb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fb-kicker { margin: 0 0 2px; font-size: 11px; color: #6B6B6B; }
.fb-title { margin: 0; font-size: 15px; font-weight: 600; }
.fb-close {
  flex: none;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: #E4E2DD;
  font-size: 18px; line-height: 1;
  color: #1F1F1F;
  cursor: pointer;
}
.fb fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.fb legend { margin-bottom: 6px; padding: 0; font-weight: 600; font-size: 12px; }
.fb-options { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-option { position: relative; }
.fb-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-option span {
  display: inline-flex; align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #D3D0CA;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 12.5px;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.fb-option input:checked + span { background: #1F1F1F; border-color: #1F1F1F; color: #FFFFFF; }
.fb-option input:focus-visible + span { outline: 2px solid #2F6FEB; outline-offset: 2px; }
.fb-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 12px; }
.fb textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  border: 1px solid #D3D0CA;
  border-radius: 8px;
  background: #FFFFFF;
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1F1F1F;
  resize: vertical;
}
.fb-check { display: flex; align-items: center; gap: 8px; min-height: 36px; margin: 10px 0 4px; font-size: 12.5px; cursor: pointer; }
.fb-check input { width: 16px; height: 16px; margin: 0; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fb-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #1F1F1F;
  border-radius: 8px;
  background: #1F1F1F;
  color: #FFFFFF;
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  cursor: pointer;
}
.fb-btn--ghost { background: transparent; color: #1F1F1F; border-color: #C9C6BF; }
.fb-btn:disabled { opacity: .58; cursor: progress; }
.fb-status { min-height: 18px; margin: 8px 0 0; font-size: 12px; color: #2F6FEB; }
.fb-output { margin-top: 8px; min-height: 140px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 11.5px !important; }
.fb-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid #DDDAD4;
}
.fb-foot a { color: #1F1F1F; font-weight: 500; }
.fb-foot button { min-height: 32px; padding: 0; border: 0; background: none; color: #6B6B6B; font: 12px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; text-decoration: underline; cursor: pointer; }

@media (max-width: 560px) {
  .fb { right: 12px; bottom: 12px; }
  .fb-panel { position: fixed; left: 8px; right: 8px; bottom: 68px; width: auto; max-height: 76vh; }
}
