/* Aurelle — ambient clinical documentation
   Palette: warm ivory, deep ink, one ember accent reserved for "the link"
   between what was said and what was written. */

:root {
  --ivory: #f6f1e9;
  --paper: #fcfaf6;
  --sand: #ede5d8;
  --ink: #221b26;
  --ink-2: #4e4551;
  --ink-3: #847a83;
  --line: #e2d9cc;
  --line-2: #d3c8b9;
  --accent: #c2502c;
  --accent-ink: #9c3d1e;
  --wash: rgba(214, 112, 70, 0.17);
  --wash-strong: rgba(214, 112, 70, 0.28);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--wash-strong); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.serif { font-family: var(--serif); }
.muted { color: var(--ink-2); }

/* ---------- Type ---------- */

.display {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.75rem, 6.4vw, 5.9rem);
  line-height: 1.0;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 72;
}
.display em,
.h2 em{ font-style: italic; font-weight: 340; }

.h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2rem, 3.9vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 60;
}

.lede {
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-3);
  margin-bottom: 18px;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.005em;
  border: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: #352b3a; }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: color 0.2s, background-size 0.3s var(--ease);
}
.link:hover { color: var(--accent-ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 233, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 26px; height: 26px; flex: none; }
.brand span {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 450;
  letter-spacing: -0.012em;
  line-height: 1;
  position: relative;
  top: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  text-decoration: none;
  font-size: 15.5px;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.nav-links .btn {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--paper);
  text-decoration: none;
}
.nav-links .btn:hover { color: var(--paper); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 0 10px 12px;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav { height: 64px; }
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    /* the header's backdrop-filter makes it the containing block: size explicitly */
    top: 64px;
    left: 0;
    right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links a {
    font-family: var(--serif);
    font-size: 1.9rem;
    color: var(--ink);
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a[aria-current="page"] { text-decoration: none; font-style: italic; }
  .nav-links .btn {
    margin-top: 22px;
    height: 52px;
    justify-content: center;
    font-family: var(--sans);
    font-size: 16px;
    border-bottom: 0;
  }
}

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

main { display: block; }

.section { padding: clamp(80px, 11vw, 150px) 0; }

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

.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.hero .lede { margin-bottom: 30px; }

/* ---------- The visit (signature piece) ---------- */

.visit {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 1px 2px rgba(60, 40, 30, 0.04),
    0 40px 80px -40px rgba(70, 45, 30, 0.22);
  overflow: hidden;
}

.visit-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.visit-head .who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.visit-head .who b { color: var(--ink); font-weight: 500; }
.clock { font-variant-numeric: tabular-nums; color: var(--ink-3); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(194, 80, 44, 0.45);
}
.is-live .status .dot { animation: pulse 1.8s ease-out infinite; }
.status .done-mark { display: none; color: var(--accent); }
.is-done .status .dot { display: none; }
.is-done .status .done-mark { display: inline; }

.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}
.wave i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink-3);
}
.is-live .wave i { animation: wave 1.1s ease-in-out infinite; }
.is-live .wave i:nth-child(2) { animation-delay: -0.2s; }
.is-live .wave i:nth-child(3) { animation-delay: -0.45s; }
.is-live .wave i:nth-child(4) { animation-delay: -0.7s; }
.is-live .wave i:nth-child(5) { animation-delay: -0.9s; }
.is-done .wave { display: none; }

@keyframes wave {
  0%, 100% { height: 3px; }
  50% { height: 13px; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(194, 80, 44, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(194, 80, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(194, 80, 44, 0); }
}

.visit-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.col-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.transcript-col {
  padding: 26px 40px 30px 26px;
  border-right: 1px solid var(--line);
}
.transcript {
  display: grid;
  gap: 15px;
}
.t-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 14px;
  font-size: 15px;
  line-height: 1.5;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.t-line .ts {
  font-size: 12.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.t-line .spk {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-bottom: 1px;
}
.t-line.dr .txt { color: var(--ink-2); }
.t-line.pt .txt { color: var(--ink); }
.t-line.pt .spk::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: var(--line-2);
}

.t-line mark {
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(var(--wash), var(--wash));
  background-repeat: no-repeat;
  background-size: 0% 100%;
  border-radius: 3px;
  padding: 1px 2px;
  margin: 0 -2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.7s var(--ease), background-image 0.3s;
}
.t-line mark.lit { background-size: 100% 100%; }
.t-line mark.hot { background-image: linear-gradient(var(--wash-strong), var(--wash-strong)); background-size: 100% 100%; }

.note-col {
  padding: 26px 30px 30px 42px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box;
}
.note-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.note-title h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.badge {
  font-size: 12.5px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  white-space: nowrap;
}

.note dl { display: grid; gap: 15px; }
.note .row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
}
.note dt {
  font-size: 13px;
  color: var(--ink-3);
  padding-top: 4px;
  line-height: 1.4;
}
.note dd {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink);
}
.note .s {
  border-radius: 3px;
  transition: background-color 0.3s;
}
.note .s.hot { background: var(--wash); box-shadow: 0 0 0 3px var(--wash); }
.note .w {
  display: inline;
  transition: opacity 0.45s var(--ease), filter 0.45s var(--ease);
}

.cite {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 6px;
  margin-left: 4px;
  vertical-align: 2px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
  background: rgba(194, 80, 44, 0.08);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.4s;
}
.cite:hover,
.cite.hot { background: var(--accent); color: var(--paper); }

.visit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  background: var(--ivory);
}
.visit-foot .ready { transition: opacity 0.6s var(--ease); }
.replay {
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-2);
  transition: opacity 0.4s, color 0.2s;
}
.replay:hover { color: var(--ink); }

.links-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.links-svg path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 0.75s var(--ease), opacity 0.35s;
}
.links-svg path.on { stroke-dashoffset: 0; opacity: 0.85; }
.links-svg circle {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.links-svg circle.on { opacity: 1; }

/* states while playing */
.visit.js .t-line.pending { opacity: 0; transform: translateY(6px); }
.visit.js .note .w.pending { opacity: 0; filter: blur(3px); }
.visit.js .cite.pending { opacity: 0; }
.visit.js .ready.pending,
.visit.js .replay.pending { opacity: 0; pointer-events: none; }

@media (max-width: 860px) {
  /* On a phone the note is below the conversation, so the words still to come
     are shown as a faint print the ink then fills, instead of an empty frame. */
  .visit.js .note .w.pending { opacity: 0.16; filter: none; }
  .visit.js .note .w { transition: opacity 0.35s ease; }
  .visit-head { padding: 14px 18px; gap: 12px; }
  .visit-head .who { display: none; }
  .visit-head .status { flex: 1; }
  .visit-body { grid-template-columns: 1fr; }
  .transcript-col {
    padding: 20px 18px 6px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .transcript-scroll {
    max-height: 238px;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26px, #000 calc(100% - 10px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 26px, #000 calc(100% - 10px), transparent 100%);
    padding: 14px 0 12px;
    scroll-behavior: smooth;
  }
  .transcript-scroll::-webkit-scrollbar { display: none; }
  .col-label { margin-bottom: 6px; }
  .t-line { grid-template-columns: 38px minmax(0, 1fr); gap: 2px 10px; font-size: 14.5px; }
  .note-col { padding: 22px 18px 24px; }
  .note .row { grid-template-columns: 1fr; gap: 2px; }
  .note dt { padding-top: 0; }
  .note dd { font-size: 1.04rem; }
  .visit-foot { padding: 13px 18px; font-size: 13px; }
  .links-svg { display: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px 48px;
}
.foot-grid .brand span { font-size: 1.35rem; }
.foot-tag {
  margin-top: 16px;
  max-width: 22em;
  color: var(--ink-2);
}
.foot-col h4 {
  font-size: 13.5px;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 12px;
}
.foot-col li { margin-bottom: 7px; }
.foot-col a { text-decoration: none; color: var(--ink); }
.foot-col a:hover { color: var(--accent-ink); }
.foot-base {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  color: var(--ink-3);
  font-size: 13.5px;
}
.foot-base a { color: var(--ink-2); text-decoration: none; }
.foot-base a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}

/* capture vignette */

@keyframes wave2 {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* segmented control */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: var(--sand);
  gap: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(40, 25, 20, 0.12);
}
.style-out {
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.55;
  min-height: 9.5em;
  transition: opacity 0.3s var(--ease);
}
.style-out.fade { opacity: 0; }

/* evidence vignette */

/* after-visit vignette */
.after-list { display: grid; }
.after-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.after-item:first-child { padding-top: 2px; }
.after-item:last-child { border-bottom: 0; }
.after-item .code { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.after-item b { font-weight: 500; display: block; }
.after-item small { display: block; color: var(--ink-3); font-size: 13px; }
.chk {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
}
.chk svg { width: 12px; height: 12px; opacity: 0; color: var(--paper); transition: opacity 0.2s; }
.chk[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.chk[aria-pressed="true"] svg { opacity: 1; }
.avs {
  margin-top: 18px;
  padding: 18px;
  background: var(--ivory);
  border-radius: 12px;
}
.avs p {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0;
  transition: opacity 0.3s var(--ease);
}
.avs p.fade { opacity: 0; }

/* day timeline */

/* specialties */
.specialties {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  line-height: 1.38;
  letter-spacing: -0.012em;
  font-weight: 360;
  color: var(--ink);
}
.specialties span { white-space: nowrap; }
.specialties i.sep {
  display: inline-block;
  width: 0.28em; height: 0.28em;
  margin: 0 0.12em 0.16em 0.42em;
  border-radius: 50%;
  background: var(--line-2);
  vertical-align: middle;
}
.specialties .more { color: var(--ink-3); font-style: italic; }

/* ---------- Company page ---------- */

.roles { border-top: 1px solid var(--line); }
.role-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 24px;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.3s var(--ease), color 0.2s;
}
.role-row .t { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.role-row .m { color: var(--ink-2); font-size: 15px; }
.role-row .a { transition: transform 0.3s var(--ease); color: var(--ink-3); }
.role-row:hover { padding-left: 10px; }
.role-row:hover .a { transform: translateX(4px); color: var(--accent); }
@media (max-width: 760px) {
  .role-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; }
  .role-row .t { grid-column: 1; }
  .role-row .m { grid-column: 1; font-size: 14px; }
  .role-row .a { grid-column: 2; grid-row: 1 / span 3; }
  .role-row:hover { padding-left: 0; }
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px 96px;
  align-items: start;
}
@media (max-width: 940px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.expect { margin-top: 36px; display: grid; }
.expect li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink-2);
}
.expect li b { color: var(--ink); font-weight: 500; }
.expect li span:first-child { color: var(--ink-3); font-size: 14px; padding-top: 1px; }

.office {
  margin-top: 40px;
  font-size: 15.5px;
  color: var(--ink-2);
  font-style: normal;
  line-height: 1.6;
}
.office b { color: var(--ink); font-weight: 500; display: block; margin-bottom: 4px; }

.form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: 0 40px 80px -50px rgba(70, 45, 30, 0.3);
}
.form h2 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.form .sub { color: var(--ink-2); font-size: 15px; margin-bottom: 26px; }
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23847a83' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink-3);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(34, 27, 38, 0.06);
}
.field input::placeholder,
.field textarea::placeholder { color: #a99fa6; }
.form-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.form-foot small { color: var(--ink-3); font-size: 13px; max-width: 26em; line-height: 1.45; }
.form-msg {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-2);
  min-height: 1.4em;
}
@media (max-width: 520px) {
  .fields { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }
}

/* ---------- 404 ---------- */

.nf {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding: 80px 0;
}
.nf .display { max-width: 12em; margin-bottom: 26px; }

/* ---------- Reveal ---------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

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

/* ---------- Hero layout (home) ---------- */
.hero-title { max-width: 11.5em; }
.hero-title em { display: block; }
@media (max-width: 520px) {
  .hero-title { font-size: clamp(2.3rem, 10.2vw, 2.9rem); }
}

/* note column: suggested codes */
.note-col { display: flex; flex-direction: column; }
.note-extra {
  margin-top: auto;
  padding-top: 26px;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.note-extra .col-label { margin-bottom: 10px; }
.note-extra ul { border-top: 1px solid var(--line); }
.note-extra li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}
.note-extra .code { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.visit.js .note-extra.pending { opacity: 0; transform: translateY(6px); }
@media (max-width: 860px) {
  .note-extra li { grid-template-columns: 1fr; gap: 0; }
}
.t-line mark.lit { background-image: linear-gradient(rgba(214, 112, 70, 0.13), rgba(214, 112, 70, 0.13)); }
.t-line mark.hot { background-image: linear-gradient(var(--wash-strong), var(--wash-strong)); }

/* before / after clocks (company) */
.clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.clock-card { padding: 8px 48px 8px 0; }
.clock-card + .clock-card { padding-left: 48px; border-left: 1px solid var(--line); }
.clock-time {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(4.2rem, 11vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  font-variant-numeric: lining-nums;
}
.clock-time small { font-size: 0.22em; letter-spacing: 0.02em; margin-left: 0.3em; color: var(--ink-3); vertical-align: 0.2em; }
.clock-card.was .clock-time { color: var(--ink-3); }
.clock-card.was .digits { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--line-2); }
.clock-card.now .clock-time { color: var(--ink); }
.clock-card.now .clock-time small { color: var(--accent); }
.clock-card p:last-child { color: var(--ink-2); max-width: 22em; margin: 0; font-size: 16px; }
@media (max-width: 640px) {
  .clocks { grid-template-columns: 1fr; }
  .clock-card, .clock-card + .clock-card { padding: 22px 0; border-left: 0; }
  .clock-card + .clock-card { border-top: 1px solid var(--line); }
}

/* phone: listening row */

.note dt { transition: color 0.3s; }
.note dt.hot { color: var(--accent-ink); }

.visit-foot .hint { color: var(--ink-3); }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
@media (max-width: 560px) { .visit-foot .hint { display: none; } }

/* logos as an even grid */

/* =========================================================
   v2 — editorial layout
   Three columns: margin heads · text · margin notes
   ========================================================= */

.cols {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 40rem) minmax(0, 13rem);
  column-gap: clamp(32px, 4vw, 60px);
  justify-content: space-between;
}

/* ---------- Home: opener ---------- */

.story-head { padding-top: clamp(56px, 8vw, 112px); }
.standfirst-row {
  margin-top: clamp(34px, 4.4vw, 60px);
  align-items: start;
}
.margin-kicker {
  margin: 0;
  padding-top: 0.5em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--ink-3);
  max-width: 10em;
}
.standfirst {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.85vw, 1.62rem);
  line-height: 1.42;
  letter-spacing: -0.006em;
  color: var(--ink-2);
  font-variation-settings: "opsz" 24;
}
.margin-actions {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-top: 0.3em;
}

.lead-figure { margin: clamp(48px, 6vw, 80px) 0 0; }
.lead-figure figcaption { margin-top: 20px; }
.lead-figure figcaption p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 36em;
}

/* ---------- Home: essay ---------- */

.essay { padding-top: clamp(84px, 10vw, 140px); padding-bottom: clamp(96px, 12vw, 160px); }
.e-row { align-items: start; }
.e-row + .e-row { margin-top: 0.4em; }
.e-row:has(.e-sub) { margin-top: clamp(56px, 7vw, 96px); }
.e-row:first-child { margin-top: 0; }

.e-sub {
  margin: 0;
  padding-top: 0.42em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.28rem;
  line-height: 1.3;
  color: var(--ink);
}

.e-text p {
  margin: 0 0 0.95em;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.55vw, 1.36rem);
  line-height: 1.62;
  color: var(--ink);
  font-variation-settings: "opsz" 18;
  hanging-punctuation: first;
}
.e-text p:last-child { margin-bottom: 0; }
.e-text .org { font-style: italic; }

.dropcap::first-letter {
  float: left;
  font-size: 4.5em;
  line-height: 0.8;
  font-weight: 360;
  padding: 0.08em 0.1em 0 0;
  margin-top: 0.04em;
  font-variation-settings: "opsz" 72;
}

.e-note {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  margin-top: 0.45em;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.e-note .n {
  font-family: var(--serif);
  font-weight: 320;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.e-note .n small {
  font-size: 0.34em;
  letter-spacing: 0;
  margin-left: 0.3em;
  color: var(--ink-3);
  font-style: italic;
}

.pull {
  margin: clamp(80px, 10vw, 140px) 0;
  padding: 0;
}
.pull blockquote {
  margin: 0;
  max-width: 19em;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-indent: -0.4em;
  font-variation-settings: "opsz" 72;
}
.pull figcaption {
  margin-top: 26px;
  font-size: 15px;
  color: var(--ink-2);
}
.pull figcaption b { font-weight: 600; color: var(--ink); margin-right: 0.5em; }
.pull-small {
  padding-left: calc(13rem + clamp(32px, 4vw, 60px));
}
.pull-small blockquote { font-size: clamp(1.8rem, 3.1vw, 2.7rem); max-width: 20em; }

.e-box {
  grid-column: 2 / 4;
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(26px, 3.4vw, 40px) clamp(22px, 3.4vw, 44px) clamp(14px, 2vw, 24px);
}
.e-box h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.e-box dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 3.4vw, 44px);
}
.e-box dl > div {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
}
.e-box dt { font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; color: var(--ink); margin-bottom: 4px; }
.e-box dd { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.e-last .actions { margin-top: clamp(30px, 3.6vw, 44px); }
.endmark {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.4em;
  vertical-align: -0.04em;
  color: var(--ink);
}

/* ---------- editorial layout: narrower screens ---------- */

@media (max-width: 1080px) {
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 12rem); }
  .cols > span[aria-hidden] { display: none; }
  .margin-kicker { display: none; }
  .standfirst-row { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .margin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 0; }
  .e-sub { grid-column: 1 / -1; padding-top: 0; margin-bottom: 18px; }
  .e-text { grid-column: 1; }
  .e-note { grid-column: 2; }
  .e-box { grid-column: 1 / -1; }
  .pull-small { padding-left: 0; }
  .lead-figure figcaption { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .e-note {
    grid-column: 1;
    margin: 18px 0 4px;
    padding: 2px 0 2px 16px;
    border-top: 0;
    border-left: 2px solid var(--line-2);
    display: flex;
    align-items: baseline;
    gap: 14px;
  }
  .e-note .n { font-size: 2.2rem; flex: none; }
  .e-box dl { grid-template-columns: 1fr; }
  .pull blockquote { text-indent: -0.36em; padding-left: 0.36em; }
  .dropcap::first-letter { font-size: 3.9em; }
}

/* ---------- Product: opener ---------- */

.page-open { padding-top: clamp(56px, 8vw, 112px); }
.span-2 { grid-column: 2 / 4; }
.intro-text {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

/* ---------- Product: anatomy of a note ---------- */

.anatomy-section { padding-top: clamp(96px, 12vw, 170px); }

.anatomy {
  --gap: clamp(32px, 4vw, 60px);
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 40rem) minmax(0, 13rem);
  grid-template-rows: repeat(6, auto);
  column-gap: var(--gap);
  justify-content: space-between;
  margin-top: clamp(44px, 5.5vw, 72px);
}
.sheet {
  grid-column: 2;
  grid-row: 1 / -1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 40px 70px -48px rgba(70, 44, 30, 0.38), 0 2px 8px rgba(70, 44, 30, 0.04);
}
.part {
  grid-column: 2;
  grid-row: var(--r);
  position: relative;
  z-index: 1;
  padding: 26px clamp(22px, 3.2vw, 42px) 28px;
}
.part + .part,
.ann + .part { box-shadow: inset 0 1px 0 var(--line); }
.part-head { padding-top: 24px; }

.ann {
  grid-row: var(--r);
  position: relative;
  z-index: 1;
  padding-top: 26px;
  align-self: start;
}
.ann-l { grid-column: 1; }
.ann-r { grid-column: 3; }
.ann::before {
  content: "";
  position: absolute;
  top: 38px;
  width: calc(var(--gap) - 12px);
  border-top: 1px solid var(--line-2);
}
.ann-l::before { right: calc(-1 * var(--gap) + 2px); }
.ann-r::before { left: calc(-1 * var(--gap) + 2px); }
.ann h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.ann h3 em { font-style: italic; }
.ann p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.ann .seg { margin-top: 16px; }

.said {
  margin: 16px 0 0;
  padding: 10px 12px 11px;
  background: var(--paper);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}
.said span { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.said mark { background: var(--wash); color: inherit; padding: 0 1px; border-radius: 2px; }

/* inside the note */
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sheet-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
}
.sheet-mark svg { width: 18px; height: 18px; }
.patient {
  margin: 22px 0 14px;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
}
.patient span { display: block; font-family: var(--sans); font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.meta { display: grid; border-top: 1px solid var(--line); }
.meta > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.meta dt { color: var(--ink-3); }
.meta dd { color: var(--ink); }

.part-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 6px;
}
.part p + .part-label { margin-top: 18px; }
.part > p,
.part .style-out {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.part .style-out { min-height: 7.2em; transition: opacity 0.22s var(--ease); }
.part .style-out.fade,
.part .avs-text.fade { opacity: 0; }
.part .avs-text { transition: opacity 0.22s var(--ease); }
.stamp {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  background: var(--wash);
  color: var(--accent-ink);
  vertical-align: 0.15em;
  margin-left: 2px;
  font-variant-numeric: tabular-nums;
}
.stamp.on { background: var(--accent); color: var(--paper); }
.src { background: var(--wash); border-radius: 2px; padding: 0 1px; }
.unsure {
  margin: 16px 0 0 !important;
  font-family: var(--sans) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: var(--ink-2) !important;
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.unsure::after { content: "To confirm"; color: var(--accent-ink); white-space: nowrap; }
.part .after-list { margin-top: 18px; border-top: 1px solid var(--line); }

/* signature */
.part-sign {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px 20px;
  flex-wrap: wrap;
  padding-top: 34px;
  padding-bottom: 32px;
}
.sign-line {
  flex: 1 1 220px;
  max-width: 300px;
  position: relative;
  border-bottom: 1px solid var(--ink-3);
  height: 58px;
}
.sign-line .sig {
  position: absolute;
  left: 4px;
  bottom: -6px;
  font-family: "Mrs Saint Delafield", "Snell Roundhand", cursive;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--ink);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease);
  white-space: nowrap;
}
.sign-line .who { position: absolute; left: 0; top: calc(100% + 7px); font-size: 13px; color: var(--ink-3); }
.signed .sign-line .sig { clip-path: inset(0 0 0 0); }
.sign-btn { height: 42px; font-size: 15px; }
.signed .sign-btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.part-sign .sign-btn { margin-bottom: -6px; }

/* ---------- Product: specialties, spec, closing ---------- */

.specialty-section { padding-top: clamp(110px, 13vw, 180px); }
.spec-section { padding-top: clamp(110px, 13vw, 180px); }
.spec {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 4vw, 56px);
}
.spec > div { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.spec dt { font-size: 13px; color: var(--ink-3); margin-bottom: 3px; }
.spec dd { font-size: 15.5px; color: var(--ink); line-height: 1.5; }

.closing-section { padding: clamp(110px, 13vw, 180px) 0 clamp(110px, 13vw, 170px); }
.closing-line {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.closing-line em { font-style: italic; font-weight: 340; }
.closing-note { font-size: 15px; color: var(--ink-2); }

/* ---------- Product: narrower screens ---------- */

@media (max-width: 1080px) {
  .span-2 { grid-column: 1 / -1; }
  .anatomy {
    display: flex;
    flex-direction: column;
  }
  .sheet { display: none; }
  .part {
    order: calc(var(--r) * 10);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 24px 50px -40px rgba(70, 44, 30, 0.35);
    margin-top: 28px;
  }
  .part + .part, .ann + .part { box-shadow: 0 24px 50px -40px rgba(70, 44, 30, 0.35); }
  .ann-l { order: calc(var(--r) * 10 + 1); }
  .ann-r { order: calc(var(--r) * 10 + 2); }
  .ann {
    padding: 18px 0 2px 18px;
    margin-left: clamp(8px, 3vw, 40px);
    border-left: 2px solid var(--line-2);
    margin-top: 14px;
    max-width: 34em;
  }
  .ann::before { display: none; }
  .spec { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .meta > div { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .part > p, .part .style-out { font-size: 1.06rem; }
  .unsure { flex-direction: column; gap: 4px; }
}

/* margin controls: a short vertical list of choices */
.ann .seg {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 0;
  background: none;
  border-radius: 0;
  margin-top: 14px;
}
.ann .seg button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-radius: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  background: none;
  box-shadow: none;
}
.ann .seg button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background 0.2s, border-color 0.2s;
}
.ann .seg button:hover { color: var(--ink); }
.ann .seg button[aria-pressed="true"] { color: var(--ink); background: none; box-shadow: none; }
.ann .seg button[aria-pressed="true"]::before { background: var(--ink); border-color: var(--ink); }
@media (max-width: 1080px) {
  .ann .seg { display: flex; flex-wrap: wrap; gap: 4px 20px; }
}

/* ---------- Company: a signed letter ---------- */

.letterhead { align-items: start; }
.letter-title { grid-column: 2; font-size: clamp(2.6rem, 5.2vw, 4.7rem); }
.letter-title em { display: block; }
.lh-facts {
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  padding-top: 0.6em;
}
.lh-facts b { display: block; font-weight: 600; color: var(--ink); }

.letter { padding-top: clamp(64px, 8vw, 112px); }
.l-row { align-items: start; }
.l-row + .l-row, .l-clocks + .l-row { margin-top: 1.1em; }
.l-text p {
  margin: 0 0 1em;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.55vw, 1.36rem);
  line-height: 1.62;
  color: var(--ink);
  font-variation-settings: "opsz" 18;
}
.l-text .dateline {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink-3);
  margin-bottom: 2.2em;
}
.l-text .salute { font-style: italic; }
.l-note {
  margin-top: 0.5em;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.l-note b { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 400; color: var(--ink); margin-bottom: 2px; }

.l-clocks { margin: clamp(40px, 5vw, 64px) 0 clamp(36px, 4.4vw, 56px); }
.l-clocks .clock-card { padding-right: 32px; }
.l-clocks .clock-card + .clock-card { padding-left: 40px; }
.l-clocks .clock-time { font-size: clamp(3.6rem, 8vw, 7.4rem); }

.rules { margin: 0.2em 0 1.4em; display: grid; gap: 0.8em; }
.rules li {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.4vw, 1.24rem);
  line-height: 1.58;
  color: var(--ink-2);
  padding-left: 1.4em;
  position: relative;
}
.rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.7em;
  border-top: 1px solid var(--ink-3);
}
.rules em { color: var(--ink); font-style: italic; }

.signoff { margin-top: 2.2em; }
.signoff p { margin: 0; }
.signature {
  font-family: "Mrs Saint Delafield", "Snell Roundhand", cursive !important;
  font-size: clamp(3.2rem, 5vw, 4.2rem) !important;
  line-height: 1.1 !important;
  color: var(--ink) !important;
  margin: 0.15em 0 0.05em -0.08em !important;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.signed-by { font-family: var(--sans) !important; font-size: 14.5px !important; line-height: 1.5 !important; color: var(--ink-3) !important; }
.signed-by b { display: block; color: var(--ink); font-weight: 600; }

.team-section { padding-top: clamp(110px, 13vw, 180px); }
.people {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(28px, 4vw, 56px);
}
.people li { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.people b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.28rem; line-height: 1.25; }
.people span { display: block; font-size: 14px; color: var(--ink); margin: 2px 0 6px; }
.people p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); max-width: 30em; }

.ps-section { padding: clamp(110px, 13vw, 170px) var(--gutter) clamp(110px, 13vw, 160px); }
.ps {
  margin: 0 0 clamp(28px, 3.6vw, 44px);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.4;
  letter-spacing: -0.008em;
  max-width: 30em;
}
.ps em { font-style: italic; margin-right: 0.25em; }

@media (max-width: 1080px) {
  .letter-title { grid-column: 1 / -1; grid-row: 1; }
  .lh-facts { grid-column: 1 / -1; grid-row: 2; padding-top: 28px; }
  .l-text { grid-column: 1; }
  .l-note { grid-column: 2; }
  .l-clocks .clocks { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .l-note { grid-column: 1; margin: 6px 0 10px; padding: 2px 0 2px 16px; border-top: 0; border-left: 2px solid var(--line-2); }
  .people { grid-template-columns: 1fr; }
  .l-clocks .clock-card, .l-clocks .clock-card + .clock-card { padding-left: 0; padding-right: 0; }
}
