/* Hamley House Medical — From nine */

:root {
  --ink: #142422;
  --deep: #0c2422;
  --teal: #157970;
  --sage: #599d9c;
  --aqua: #a9d0d3;
  --blush: #e9c9c5;
  --paper: #f6f1e8;
  --line: rgba(20, 36, 34, 0.18);
  --pad: clamp(16px, 2.4vw, 72px);
  --header: 74px;
  --dock: 0px;
  --display: "Familjen Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --text: "Literata", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; }

[id] { scroll-margin-top: calc(var(--header) + 64px); }

body, main, section, article, header, footer, div, figure, h1, h2, p, ul {
  min-width: 0;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  font-weight: 450;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 3px;
}

::selection { background: var(--teal); color: var(--paper); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  font-family: var(--display);
  text-decoration: none;
}

.skip:focus { top: 12px; }

h1, h2, h3, .where, .stage-name, .role, .num, .brand span, .book, .ruler,
.nav a, .dock a, .roster strong, .resources, .hours-line, .listen {
  font-family: var(--display);
}

h1, h2, h3 {
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0;
  color: var(--ink);
}

h2 { font-size: clamp(36px, 4vw, 76px); }

h3 { font-size: clamp(26px, 2.2vw, 40px); }

p { margin: 0 0 0.85em; }

.lede {
  font-size: clamp(1.15rem, 1.45vw, 1.4rem);
  line-height: 1.45;
  max-width: 36em;
}

.where, .stage-name {
  margin: 0 0 0.45rem;
  font-family: var(--text);
  font-style: italic;
  font-weight: 520;
  font-size: 1.15rem;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--teal);
}

.dot { color: var(--blush); }

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 28px);
  min-height: var(--header);
  padding: 8px var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}

.brand img { width: 44px; height: 44px; object-fit: contain; }

.brand span {
  font-weight: 680;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand em {
  font-family: var(--text);
  font-style: italic;
  font-weight: 500;
  color: var(--teal);
}

.nav { display: flex; gap: clamp(12px, 1.5vw, 22px); }

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 620;
  font-size: 1rem;
  letter-spacing: -0.03em;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"] { border-bottom-color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 8px 16px; }

.phone {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 680;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.05rem;
  padding: 8px 0;
}

.book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.05rem;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 680;
  letter-spacing: -0.03em;
  font-size: 1rem;
}

.book:hover { background: var(--deep); color: #fff; }

.open :focus-visible,
.close :focus-visible { outline-color: var(--paper); }

/* Open — the poster */

.open {
  background: var(--deep);
  color: var(--paper);
  height: calc(100svh - var(--header));
  height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(8px, 1.6vh, 18px) 0 clamp(12px, 1.8vh, 20px);
  overflow: hidden;
}

.open .where { color: var(--aqua); }

.open-stage {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.5vw, 28px);
  padding-left: var(--pad);
  min-height: 0;
}

.open-copy {
  flex: 0 0 auto;
  max-width: 58%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.open .where { margin: 0 0 0.35rem; }

.listen { margin: 0; }

.listen [data-line] {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--paper);
  font-size: clamp(34px, 4.4vw, 92px);
}

.open-photo {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  aspect-ratio: 1200 / 890;
  max-height: 100%;
  align-self: center;
  border-left: 1px solid var(--blush);
  overflow: hidden;
}

.open-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 36%;
}

.open-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  padding: 12px 0 0;
  color: var(--aqua);
}

.open-meta p {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.35;
  max-width: none;
}

.ruler {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: var(--aqua);
  font-weight: 650;
  font-size: clamp(0.95rem, 1.15vw, 1.25rem);
  letter-spacing: -0.02em;
}

.ruler i {
  flex: 1;
  height: 2px;
  background: var(--aqua);
  position: relative;
}

.ruler i::before,
.ruler i::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 2px;
  height: 14px;
  background: var(--aqua);
}

.ruler i::before { left: 0; }
.ruler i::after { right: 0; }

/* Jump — phone and tablet, the header nav is hidden */

.jump { display: none; }

/* House */

.house, .care, .fees, .desk, .people, .intro, .who, .values, .visit, .colophon {
  padding: clamp(48px, 7vh, 100px) var(--pad);
}

.house {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
}

.house figure { margin: 0; }

.house img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 40%;
}

.house h2 {
  font-size: clamp(32px, 3.2vw, 60px);
  max-width: 16em;
  margin-bottom: 0.55em;
}

.pull {
  font-style: italic;
  font-size: clamp(1.25rem, 1.7vw, 1.7rem);
  line-height: 1.4;
  max-width: 22em;
}

.place { margin-bottom: 0; }

/* Care — three life stages */

.care-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px clamp(20px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(8px, 2vh, 20px);
}

.care-head h2 { max-width: 12em; }

.care-head p { margin: 0; max-width: 28em; }

.stage {
  display: grid;
  grid-template-columns: minmax(220px, 460px) minmax(0, 34em);
  gap: clamp(18px, 3vw, 56px);
  align-items: center;
  justify-content: space-between;
  padding: clamp(32px, 5vh, 64px) 0;
  border-top: 1px solid var(--line);
}

.stage-flip { grid-template-columns: minmax(0, 34em) minmax(220px, 460px); }

.stage-flip figure { order: 2; }

.stage figure { margin: 0; }

.stage img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}

.stage:nth-of-type(2) img { object-position: 30% 42%; }

.stage:nth-of-type(3) img { object-position: center 48%; }

.stage h3 { font-size: clamp(32px, 3vw, 56px); margin-bottom: 0.4rem; }

.stage p { max-width: 36em; margin-bottom: 0; }

.stage ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.stage li {
  border-top: 1px solid var(--line);
  padding: 0.55rem 0;
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  line-height: 1.25;
}

.stage li a { color: inherit; }

.signoff {
  margin: 0.5rem 0 0;
  max-width: 18em;
  font-style: italic;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.35;
}

/* Heard */

.heard {
  background: var(--blush);
  color: var(--ink);
}

.heard a { color: var(--ink); }

.heard-intro { max-width: 40em; }

.heard-intro p { font-size: 1.15rem; }

.heard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 72px);
  margin-top: 1.4rem;
}

.heard h3 {
  font-size: clamp(22px, 2vw, 32px);
  margin-bottom: 0.4rem;
}

.heard ul { margin: 0; padding: 0; list-style: none; }

.heard li {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(20, 36, 34, 0.28);
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  line-height: 1.25;
}

.heard li span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--text);
  font-weight: 450;
  letter-spacing: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.thanks {
  margin: 1.4rem 0 0;
  max-width: 36em;
  font-style: italic;
  font-size: 1.2rem;
}

/* Fees */

.oops {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: end;
  margin: 0.4rem 0 0.6rem;
}

.oops p {
  margin: 0;
  max-width: 16em;
  font-size: 1.1rem;
  line-height: 1.35;
}

.num {
  display: block;
  margin: 0 0 0.15rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.82;
  font-size: clamp(76px, 9vw, 156px);
  color: var(--teal);
}

.fine { font-size: 1rem; max-width: 40em; }

table.fees {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  margin-top: 0.4rem;
}

table.fees th,
table.fees td {
  text-align: left;
  padding: 0.8rem 0.8rem 0.8rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

table.fees th {
  font-family: var(--display);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

table.fees thead th { font-size: 0.95rem; }

table.fees td:nth-child(n+2),
table.fees th:nth-child(n+2) { text-align: right; }

table.fees td.pocket {
  font-family: var(--display);
  font-weight: 680;
}

.policy { max-width: 40em; margin-top: 1.6rem; }

.policy h3 { font-size: clamp(26px, 2vw, 34px); margin-bottom: 0.5rem; }

.policy p, .measure { max-width: 40em; }

.subhead { margin-top: 2rem; margin-bottom: 0.45rem; font-size: clamp(26px, 2vw, 34px); }

/* Desk */

.desk {
  display: grid;
  grid-template-columns: minmax(0, 36em) minmax(240px, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
}

.desk h3 { font-size: clamp(22px, 1.8vw, 30px); margin: 1.1rem 0 0.35rem; }

.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: start;
}

.products figure { margin: 0; }

.products img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
}

/* People */

.people {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 420px);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
}

.people-photo { margin: 0; }

.people-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
}

.roster { list-style: none; margin: 0.8rem 0 0; padding: 0; }

.roster a {
  display: block;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.roster li:last-child a { border-bottom: 1px solid var(--line); }

.roster strong {
  display: block;
  font-weight: 680;
  letter-spacing: -0.04em;
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1.05;
}

.roster span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.also {
  margin-top: 1.5rem;
  padding-left: 16px;
  border-left: 3px solid var(--blush);
}

.also .roster a { border-color: rgba(20, 36, 34, 0.18); }

.note {
  margin: 0.8rem 0 0;
  max-width: 36em;
  font-size: 1.05rem;
}

/* Close */

.close {
  background: var(--deep);
  color: var(--paper);
  padding: clamp(36px, 6vh, 80px) var(--pad) clamp(28px, 5vh, 64px);
  min-height: calc(100svh - var(--header));
  min-height: calc(100vh - var(--header));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 3vh, 36px);
}

.close .where { color: var(--aqua); }

.close h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35em;
  width: 100%;
  color: var(--paper);
  font-size: clamp(44px, 11vw, 320px);
  line-height: 0.84;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.close h2 span { white-space: nowrap; }

.close-short { min-height: 0; }

.close-short h2 { font-size: clamp(40px, 8.6vw, 188px); }

.hours-line {
  margin: 0.7rem 0 0;
  color: var(--aqua);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 40em;
}

.numbers {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1fr;
  gap: clamp(16px, 2.4vw, 40px);
}

.numbers a {
  color: var(--paper);
  text-decoration: none;
  display: block;
  border-top: 1px solid rgba(169, 208, 211, 0.5);
  padding-top: 0.65rem;
}

.numbers strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-size: clamp(36px, 5vw, 148px);
}

.numbers span {
  display: block;
  margin-top: 0.35rem;
  color: var(--aqua);
  max-width: 22em;
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.4;
}

.close-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
  justify-content: space-between;
}

.close-foot p { margin: 0; }

.close .phone { color: var(--paper); font-size: clamp(1.25rem, 2vw, 1.8rem); }

.close a:not(.book) { color: var(--paper); }

/* Footer */

.lockup { width: min(100%, 280px); height: auto; margin-bottom: 1rem; }

.resources {
  list-style: none;
  margin: 0.4rem 0 1.2rem;
  padding: 0;
  columns: 2;
  column-gap: clamp(24px, 4vw, 64px);
  font-weight: 620;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.resources li {
  break-inside: avoid;
  padding: 0.28rem 0;
}

.complaints { max-width: 46em; }

.social { margin-bottom: 0; font-family: var(--display); font-weight: 620; letter-spacing: -0.02em; }

.colophon { padding-bottom: calc(clamp(36px, 5vh, 64px) + var(--dock)); }

.colophon-slim { padding-top: 28px; }

/* Team opening — faces, then the line. Nothing cuts the bodies. */

.meet-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.meet-photos img {
  width: 100%;
  height: clamp(240px, 48vh, 860px);
  object-fit: cover;
  object-position: center 14%;
  max-width: none;
}

.meet-photos img:nth-child(1) { object-position: center 18%; }
.meet-photos img:nth-child(2) { object-position: center 10%; }
.meet-photos img:nth-child(3) { object-position: center 12%; }
.meet-photos img:nth-child(4) { object-position: center 16%; }

.meet-statement {
  padding: clamp(22px, 3vh, 36px) var(--pad) clamp(8px, 1.5vh, 16px);
}

.meet-statement h1 {
  font-size: clamp(44px, 6.6vw, 220px);
  letter-spacing: -0.05em;
  line-height: 0.88;
  max-width: 9.2em;
}

.mission-line {
  margin: 0.8rem 0 0;
  max-width: 28em;
  font-style: italic;
  font-size: clamp(1.2rem, 1.7vw, 1.75rem);
  line-height: 1.35;
}

.also-line {
  margin: 0.7rem 0 0;
  max-width: 36em;
  font-size: 1.1rem;
}

.who-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  position: sticky;
  top: var(--header);
  z-index: 30;
  background: var(--paper);
  padding: 10px var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.who-jump a {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.who-jump a[href="#visiting"] { color: var(--teal); }

.who-jump a:hover { border-bottom-color: var(--teal); }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(16px, 3vw, 56px);
  align-items: start;
  max-width: none;
}

.intro .lede { font-size: clamp(1.25rem, 1.6vw, 1.55rem); margin-top: 0; }

/* Profiles */

.who { border-top: 1px solid var(--line); }

.who-grid {
  display: grid;
  grid-template-columns: minmax(220px, min(30vw, 760px)) minmax(0, 38em);
  gap: clamp(18px, 3vw, 56px);
  align-items: start;
}

.who.flip .who-grid {
  grid-template-columns: minmax(0, 38em) minmax(220px, min(30vw, 760px));
  justify-content: end;
}

.who.flip figure { order: 2; }

.who figure { margin: 0; }

.who figure img { width: 100%; height: auto; }

.who h2 {
  font-size: clamp(34px, 3.4vw, 88px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 12em;
}

.role {
  margin: 0.4rem 0 0.9rem;
  font-weight: 640;
  letter-spacing: -0.03em;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  line-height: 1.3;
  color: var(--teal);
}

.marks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin: 0 0 0.4rem;
}

.marks img { height: 48px; width: auto; max-width: none; }

.marks img.ndc { height: 68px; background: #fff; }

.bio { max-width: 38em; }

.bio h3 {
  font-family: var(--text);
  font-style: italic;
  font-weight: 560;
  letter-spacing: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--teal);
  margin: 1.25rem 0 0.3rem;
}

.bio p {
  font-size: 1.2rem;
  line-height: 1.65;
  margin-bottom: 0.7em;
}

/* Visiting — a different picture, on purpose */

.visit {
  background: var(--blush);
  color: var(--ink);
}

.visit a { color: var(--ink); }

.visit .where, .visit .stage-name, .visit .role { color: var(--ink); }

.visit-head { max-width: 36em; margin-bottom: clamp(20px, 3vh, 36px); }

.visit-head h2 { font-size: clamp(36px, 4vw, 68px); margin-bottom: 0.4rem; }

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.mount {
  margin: 0 0 0.9rem;
  padding: 12px;
  max-width: 300px;
  background: var(--paper);
}

.mount img { width: 100%; height: auto; }

.visit h3 {
  font-family: var(--text);
  font-style: italic;
  font-weight: 560;
  letter-spacing: -0.03em;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.05;
  margin-bottom: 0.3rem;
}

.visit .role { margin-top: 0; }

.visit ul {
  margin: 0.3rem 0 1rem;
  padding-left: 1.15rem;
  columns: 2;
  column-gap: 1.6rem;
}

.visit li { break-inside: avoid; margin: 0.2rem 0; }

/* Values — one list, not a card grid */

.values h2 { margin-bottom: 0.8rem; }

.values dl { margin: 0; max-width: 52em; }

.values dl div {
  display: grid;
  grid-template-columns: 12.5em minmax(0, 1fr);
  gap: 8px 28px;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.values dt {
  font-family: var(--display);
  font-weight: 680;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  line-height: 1.3;
}

.values dd { margin: 0; }

.values .mission-line { margin-top: 1.4rem; }

/* Dock */

.dock { display: none; }

/* Reveal */

.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.has-js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-js .reveal,
  .has-js .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Wide — the photograph stays with the line, and neither floats in a void */

@media (min-width: 1700px) {
  .stage,
  .stage-flip {
    grid-template-columns: minmax(280px, 560px) minmax(0, 36em);
  }
  .stage-flip { grid-template-columns: minmax(0, 36em) minmax(280px, 560px); }
  .house { grid-template-columns: minmax(480px, 1.05fr) minmax(320px, 0.85fr); }
  .people { grid-template-columns: minmax(0, 1fr) minmax(280px, 520px); }
}

/* Tablet and phone — their own poster, not a squeezed desktop */

@media (max-width: 1100px) {
  :root { --header: 64px; --dock: 64px; }

  .nav, .header-actions { display: none; }

  .jump {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    position: sticky;
    top: var(--header);
    z-index: 30;
    background: var(--paper);
    padding: 10px var(--pad);
    border-bottom: 1px solid var(--line);
  }

  .jump a {
    font-family: var(--display);
    font-weight: 680;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
    font-size: 1.05rem;
    padding: 6px 0;
  }

  .dock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--paper);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    text-decoration: none;
    font-weight: 680;
    letter-spacing: -0.03em;
    font-size: 1.12rem;
    color: var(--ink);
  }

  .dock .book { color: #fff; }
}

@media (max-width: 860px) {
  .open {
    height: auto;
    min-height: calc(100svh - var(--header) - var(--dock));
    min-height: calc(100vh - var(--header) - var(--dock));
    overflow: visible;
    padding-top: 0;
  }

  .open-stage {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding-left: 0;
  }

  .open-copy { max-width: none; width: auto !important; flex: none; }

  .open-photo {
    order: -1;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    flex: none !important;
    margin: 0 !important;
    aspect-ratio: auto;
    border-left: 0;
  }

  .open-photo img {
    width: 100%;
    height: min(40vh, 320px);
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 22%;
  }

  .open-copy { padding: 4px var(--pad) 0; }

  .open-meta { padding: 8px var(--pad) 4px; }

  .listen [data-line] { font-size: clamp(36px, 11vw, 64px); }

  .house,
  .house-bottom,
  .care-head,
  .stage,
  .stage-flip,
  .heard-grid,
  .oops,
  .desk,
  .people,
  .intro,
  .who-grid,
  .who.flip .who-grid,
  .visit-grid,
  .values dl div {
    grid-template-columns: 1fr;
  }

  .stage-flip figure,
  .who.flip figure { order: 0; }

  .care { padding-left: 0; padding-right: 0; }

  .care-head,
  .stage .words,
  .signoff { padding-left: var(--pad); padding-right: var(--pad); }

  .stage { padding-top: 0; gap: 16px; }

  .stage img { aspect-ratio: 4 / 5; max-height: 78vw; }

  .close { min-height: calc(100svh - var(--header) - var(--dock)); }

  .close-short { min-height: 0; }

  .numbers { grid-template-columns: 1fr; }

  .numbers strong { font-size: clamp(44px, 13vw, 72px); }

  .close h2 { font-size: clamp(42px, 12vw, 78px); }

  .close-short h2 { font-size: clamp(38px, 10.5vw, 68px); }

  .products { grid-template-columns: 1fr 1fr; }

  .meet-photos { grid-template-columns: 1fr 1fr; gap: 4px; }

  .meet-photos img {
    height: auto;
    aspect-ratio: 3 / 2;
    object-position: center 8%;
  }

  .who-jump {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0 8px;
  }

  .who-jump a {
    font-size: clamp(13px, 3.3vw, 17px);
    letter-spacing: -0.04em;
    white-space: nowrap;
  }

  .who figure { max-width: 320px; }

  .house, .fees, .desk, .people, .intro, .who, .values, .visit {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .care { padding-top: 40px; padding-bottom: 40px; }

  .bio p { font-size: 1.125rem; line-height: 1.65; }

  .visit ul { columns: 1; }

  .mount { max-width: 260px; }

  table.fees { position: relative; }

  table.fees thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  table.fees,
  table.fees tbody,
  table.fees tr,
  table.fees th,
  table.fees td {
    display: block;
    width: auto;
    text-align: left;
  }

  table.fees tr {
    padding: 0.85rem 0 1rem;
    border-bottom: 1px solid var(--line);
  }

  table.fees th,
  table.fees td {
    border: 0;
    padding: 0.12rem 0;
  }

  table.fees th[scope="row"] {
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 0.15rem;
  }

  table.fees td.pocket {
    font-size: 1.7rem;
    line-height: 1.1;
    color: var(--teal);
  }

  table.fees td.pocket::before {
    content: "You pay $";
    font-family: var(--text);
    font-weight: 450;
    font-size: 1.05rem;
    letter-spacing: 0;
    color: var(--ink);
  }

  table.fees td.fee,
  table.fees td.rebate {
    display: inline;
    font-size: 1.05rem;
    padding-right: 0.35rem;
  }

  table.fees td.fee::before { content: "Fee $"; }

  table.fees td.rebate::before { content: "· rebate $"; }

  table.fees td.rebate.na { display: none; }
}
