/* Shared editorial grid: headings, body copy and captions follow the same tracks. */
:root { --column-gap: clamp(32px, 6vw, 100px); }
h2, h3 { text-wrap: balance; }
p, .story-note, figcaption { text-wrap: pretty; }
.about-grid, .practice-grid, .academy-top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--column-gap);
}
.about-grid > div, .academy-description { padding-top: 0; }
.credentials { gap: 32px; }
.credentials > div { display: grid; grid-template-rows: auto 1fr; gap: 15px; }
.credentials > div:not(:first-child) { padding-left: 0; border-left: 0; }
.credentials span { display: block; font-size: clamp(27px, 2.3vw, 40px); }
.credentials p { margin-top: 0; max-width: 31ch; }
.credentials br { display: none; }
.practice-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--column-gap); align-items: end; }
.practice-intro > p { max-width: 37ch; padding: 0; }
.service-list summary { grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 20px; }
.service-body { padding-left: 44px; }
.course-links { gap: var(--column-gap); }
.course-links > a, .course-links > a + a {
  display: grid; grid-template-rows: 36px 1fr auto;
  gap: 24px; min-width: 0; min-height: 260px;
  padding: 28px 0 30px; border-left: 0;
}
.course-links > a > span { font-size: 12px; line-height: 1.55; letter-spacing: .075em; }
.course-links h3 { margin: 0; font-size: clamp(30px, 2.75vw, 44px); line-height: 1.13; letter-spacing: -.025em; text-wrap: initial; }
.course-links i { position: static; justify-self: end; font-size: 28px; line-height: 1; }
.publication { grid-template-columns: minmax(180px, 1fr) minmax(0, 1.65fr) 35px; gap: var(--column-gap); }

/* Each portrait has its own framing. The source photographs stay unchanged. */
.hero-photo { max-width: 960px; }
.hero-photo img { object-position: 50% 25%; }
.story-slide { --photo-ratio: .5625; --photo-focus: 50% 50%; }
.story-slide[data-portrait="doctor"] { --photo-ratio: .8; --photo-focus: 50% 82%; }
.story-slide[data-portrait="suit"] { --photo-ratio: .6; --photo-focus: 50% 45%; }
.story-slide[data-portrait="reading"] { --photo-ratio: .5625; --photo-focus: 50% 50%; }
.story-slide {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--column-gap);
  min-height: 0;
  padding: 65px 0;
}
.story-slide figure {
  width: min(100%, 500px);
  height: auto;
  margin: 0;
  justify-self: end;
  overflow: visible;
  background: none;
}
.story-image { position: relative; width: 100%; aspect-ratio: var(--photo-ratio); overflow: hidden; background: #46443f; }
.story-image img, .practice-image img, .contact-image img { position: absolute; inset: 0; }
.story-slide .story-image img { object-position: var(--photo-focus); }
.story-slide figcaption {
  position: static;
  padding: 13px 0 0;
  margin-top: 13px;
  border-top: 1px solid #59544c;
  background: none;
  color: #b8afa4;
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: .07em;
}
.story-progress { display: none; }
.story-progress i { opacity: .25; }
.story-progress i.is-active { opacity: 1; }
.story-number { margin-bottom: 24px; }
.story-slide p { margin-top: 28px; }
.story-note { margin-top: 36px; }
.practice-photo { height: auto; width: 100%; max-width: 480px; overflow: visible; }
.practice-image { position: relative; aspect-ratio: 9 / 16; }
.practice-photo img { object-fit: contain; object-position: center; }
.practice-photo > span {
  position: static; display: block; margin-top: 16px; padding-top: 13px;
  border-top: 1px solid var(--line); color: var(--muted); text-shadow: none;
  font-size: 11px; letter-spacing: .07em;
}
.practice-photo > span br { display: none; }
.academy-top { min-height: 0; align-items: center; }
.academy-type { min-width: 0; padding-block: 12px 32px; }
.academy-word {
  position: relative; inset: auto; display: flex; align-items: baseline;
  font-size: clamp(106px, 15vw, 360px); line-height: 1.12;
  letter-spacing: -.055em; color: #887266;
}
.academy-letter { display: inline-block; position: relative; }
.academy-letter-outline { color: transparent; -webkit-text-stroke: .65px #a99f90; }
.academy-letter-ink { position: absolute; inset: 0; }
.academy-type-flow { display: flex; align-items: center; gap: 18px; width: min(100%, 330px); margin-top: 20px; color: #70685d; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.academy-transfer { display: block; flex: 1; min-width: 28px; transform-origin: left center; }
.academy-transfer svg { display: block; width: 100%; height: 12px; }
.motion-off .academy-letter-ink { clip-path: none !important; }
.motion-off .academy-transfer { transform: none !important; }
.motion-off .academy-type-flow { opacity: 1 !important; transform: none !important; }
.contact {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--column-gap); align-items: start;
  padding: 75px var(--gutter); min-height: 0;
}
.contact-image { aspect-ratio: 2 / 3; height: auto; width: 100%; }
.contact-image img { object-position: 50% 94%; min-height: 0; }
.contact-content { padding: 0; min-width: 0; }
.contact h2 { margin-top: 40px; }
.contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 761px) {
  .story-pinned { height: calc((3 + var(--story-exit-hold, 0)) * 100svh); --story-gutter: max(var(--gutter), calc((100vw - 1040px) / 2)); }
  .story-pinned .story-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
  .story-pinned .story-top { position: absolute; top: 0; left: var(--story-gutter); right: var(--story-gutter); z-index: 3; }
  .story-pinned .story-slide { position: absolute; inset: 0 var(--story-gutter); height: 100%; padding: 64px 0 12px; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); }
  .story-pinned .story-slide[hidden] { display: none; }
  .story-pinned .story-slide figure { width: min(100%, 600px, calc((100svh - 130px) * var(--photo-ratio))); justify-self: start; }
  .story-pinned .story-slide figcaption { margin-top: 10px; padding-top: 10px; }
  .story-pinned .story-slide h2 { font-size: clamp(42px, min(6.4vw, 10svh), 100px); }
  .story-pinned .story-slide p { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; max-width: 38ch; }
  .story-pinned .story-note { margin-top: 30px; }
  .story-pinned .story-progress { display: flex; }
  .story-pinned .story-scroll { display: block; position: absolute; left: var(--story-gutter); bottom: 20px; }
}

@media (min-width: 761px) and (max-height: 699px) {
  .story-pinned .story-top { padding-top: 24px; }
  .story-pinned .story-number { margin-bottom: 12px; font-size: 26px; }
  .story-pinned .story-slide h2 { font-size: clamp(34px, min(6.4vw, 10svh), 64px); }
  .story-pinned .story-slide p { line-height: 1.65; margin-top: 18px; }
  .story-pinned .story-note { font-size: 10px; margin-top: 18px; }
  .story-pinned .story-scroll { bottom: 12px; font-size: 10px; }
}

/* Narrow desktop windows get readable course rows, with one shared arrow column. */
@media (min-width: 761px) and (max-width: 1050px) {
  .course-links { grid-template-columns: 1fr; gap: 0; }
  .course-links > a, .course-links > a + a {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr) 28px;
    grid-template-rows: auto; align-items: center;
    gap: 30px; min-height: 140px; padding: 26px 0;
  }
  .course-links > a + a { border-top: 1px solid #aaa89f; }
  .course-links h3 { font-size: clamp(30px, 4vw, 38px); }
}

@media (max-width: 1100px) {
  .contact-details { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .story-slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .story-slide h2 { font-size: clamp(44px, 6.4vw, 65px); }
  .story-slide figure { width: 100%; }
  .story-slide p { font-size: 15px; }
  .story-note { font-size: 11px; }
}
@media (max-width: 760px) {
  .about-grid, .practice-grid, .academy-top, .practice-intro { grid-template-columns: 1fr; gap: 30px; }
  .practice-intro > p { margin: 0; }
  .credentials { grid-template-columns: 1fr; gap: 24px; }
  .credentials > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: baseline; gap: 22px; }
  .credentials > div + div { padding-top: 24px; border-top: 1px solid var(--line); }
  .credentials span { font-size: clamp(24px, 6.4vw, 34px); }
  .credentials p { font-size: 12px; line-height: 1.65; }
  .story-slide { grid-template-columns: 1fr; gap: 32px; padding: 42px 0; }
  .story-slide h2 { font-size: clamp(44px, 13vw, 80px); }
  .story-slide figure { width: 100%; max-width: 480px; justify-self: start; }
  .story-slide p { font-size: 16px; }
  .story-note { margin-top: 27px; }
  .story-slide figcaption { font-size: 11px; }
  .practice-photo { width: 100%; max-width: 400px; margin-bottom: 0; }
  .service-body { padding-left: 44px; }
  .academy-top { padding-top: 0; }
  .academy-type { padding-block: 0 10px; }
  .academy-word { font-size: clamp(90px, 32vw, 210px); }
  .academy-type-flow { margin-top: 8px; gap: 14px; width: min(100%, 280px); font-size: 10px; }
  .academy-description { padding-top: 0; }
  .course-links { gap: 0; }
  .course-links > a, .course-links > a + a {
    grid-template-columns: minmax(0, 1fr) 26px; grid-template-rows: auto auto;
    gap: 18px 20px; padding: 24px 0 28px !important; min-height: 0;
  }
  .course-links > a > span { grid-column: 1 / -1; }
  .course-links h3 { font-size: clamp(28px, 7.8vw, 38px); }
  .course-links i { align-self: end; }
  .publication { grid-template-columns: minmax(0, 1fr) 25px; gap: 20px; }
  .contact { grid-template-columns: 1fr; padding: 55px var(--gutter); gap: 40px; }
  .contact-image { width: 100%; max-height: none; }
  .contact-content { padding: 0; }
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .hero { display: grid; height: auto; min-height: 0; max-height: none; padding: 24px var(--gutter) 36px; }
  .hero-top { grid-row: 1; padding: 0; }
  .hero-index { top: 24px; right: var(--gutter); }
  .hero h1 { position: relative; grid-row: 2; inset: auto; margin: 40px 0 22px; font-size: 20.8vw; }
  .hero-photo { position: relative; grid-row: 3; inset: auto; width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .hero-photo img { position: absolute; inset: 0; object-position: 50% 100%; }
  .hero-bottom { position: static; grid-row: 4; width: 100%; margin-top: 26px; }
  .hero-bottom p { max-width: 28ch; }
}

/* Upcoming dates and speaker invitations. Events are maintained in the HTML. */
.events { border-bottom: 1px solid var(--line); }
.events-heading, .events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--column-gap); }
.events-heading { align-items: start; }
.speaker-invite p { color: var(--muted); line-height: 1.85; max-width: 37ch; }
.speaker-invite .text-link { margin-top: 12px; }
.speaker-invite small { display: block; margin-top: 12px; font-size: 11px; color: var(--muted); }
.events-grid { margin-top: 65px; }
.calendar-panel[hidden], .event-card[hidden], .events-empty[hidden] { display: none; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.calendar-toolbar h3 { font: 34px/1.15 var(--serif); letter-spacing: -.02em; text-transform: capitalize; }
.calendar-nav { display: flex; gap: 8px; }
.calendar-nav button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: none; font-size: 20px; }
.calendar-nav button:hover { background: var(--ink); color: var(--paper); }
.calendar { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 20px; }
.calendar th { color: var(--muted); font-weight: 400; font-size: 11px; padding-bottom: 14px; }
.calendar td { text-align: center; padding: 3px 0; height: 48px; font-size: 14px; font-variant-numeric: tabular-nums; }
.calendar td > time, .calendar td > button { width: 39px; height: 39px; margin: 0 auto; display: grid; place-items: center; }
.calendar td > time { color: #77736b; }
.calendar td > button { font: inherit; border: 0; background: var(--ink); color: var(--paper); border-radius: 50%; }
.calendar [aria-current="date"] { outline: 1px solid var(--line); outline-offset: 3px; border-radius: 50%; }
.calendar-legend { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); margin-top: 20px; }
.calendar-legend span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.agenda-label { height: 63px; padding-bottom: 22px; display: flex; align-items: center; font-size: 11px; letter-spacing: .08em; }
.event-card { border-top: 1px solid var(--line); padding-top: 24px; }
.event-card + .event-card { margin-top: 30px; }
.event-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 10px; }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 11px; color: var(--muted); }
.event-meta time { color: var(--accent); font-size: 14px; }
.event-card h3 { font: clamp(30px, 3.2vw, 48px)/1.08 var(--serif); letter-spacing: -.025em; margin-top: 24px; }
.event-card p { font-size: 14px; line-height: 1.85; color: var(--muted); margin-top: 22px; }
.events-empty { font: 30px/1.2 var(--serif); padding-top: 24px; border-top: 1px solid var(--line); }
.events-note { font-size: 12px; line-height: 1.75; color: var(--muted); margin-top: 30px; }
.contact-speaker { display: inline-block; padding: 0; margin-top: 20px; font-size: 13px; line-height: 1.7; color: #c2beb6; border: 0; border-bottom: 1px solid #797368; background: none; text-align: left; }
.speaker-invite .speaker-trigger { border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.speaker-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100svh - 40px); padding: 45px; border: 0; background: var(--paper); color: var(--ink); }
.speaker-dialog::backdrop { background: #171614b8; }
.dialog-close { position: sticky; top: 0; float: right; margin: -25px -25px 0 0; z-index: 2; border: 0; border-radius: 50%; background: var(--paper); width: 38px; height: 38px; font-size: 30px; }
.speaker-dialog h2 { margin: 28px 0 20px; font-size: clamp(34px, 5.5vw, 58px); }
.speaker-demo-note { max-width: none; font-size: 13px; color: var(--muted); line-height: 1.7; }
#speaker-form { display: grid; gap: 20px; margin-top: 28px; }
#speaker-form label { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
#speaker-form input, #speaker-form select, #speaker-form textarea { width: 100%; min-width: 0; border: 1px solid #c8c5bc; padding: 12px; font: 15px/1.5 var(--sans); color: var(--ink); background: transparent; border-radius: 0; }
#speaker-form textarea { resize: vertical; }
#speaker-form input:focus-visible, #speaker-form textarea:focus-visible, #speaker-form select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.speaker-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.draft-button { display: flex; justify-content: space-between; gap: 20px; border: 0; padding: 15px 18px; background: var(--ink); color: var(--paper); font-size: 14px; text-align: left; }
.invitation-draft { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.invitation-draft[hidden] { display: none; }
.invitation-draft h3 { font: 30px/1.15 var(--serif); }
#invitation-text { white-space: pre-wrap; max-width: none; font-size: 14px; line-height: 1.8; margin-top: 20px; }
#copy-invitation { background: none; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0; font-size: 13px; }
#invitation-status { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .header nav { gap: 17px; } .header nav a { font-size: 12px; } }
@media (max-width: 760px) {
  .events-heading, .events-grid { grid-template-columns: 1fr; gap: 35px; }
  .events-grid { margin-top: 40px; }
  .events-heading h2 { font-size: 14vw; }
  .event-card h3 { font-size: 36px; }
  .calendar-toolbar h3 { font-size: 31px; }
  .speaker-dialog { padding: 35px 24px; }
  .dialog-close { margin: -20px -10px 0 0; }
  .speaker-form-row { grid-template-columns: 1fr; gap: 20px; }
}

/* Pointer activation stays clean; keyboard navigation keeps a visible focus cue. */
a:focus:not(:focus-visible), button:focus:not(:focus-visible), summary:focus:not(:focus-visible) { outline: none; }
.circle { overflow: hidden; transition: transform .5s cubic-bezier(.22,1,.36,1), background .35s, color .35s, border-color .35s; }
.circle-arrow { display: block; line-height: 1; }
.explore:is(:hover, :active, .is-hovered) .circle { border-color: transparent; background: var(--ink); color: var(--paper); }
.motion-on .explore.is-hovered .circle-arrow { animation: arrow-roll .65s cubic-bezier(.22,1,.36,1); }
@keyframes arrow-roll {
  0% { transform: translateY(0); opacity: 1; }
  40% { transform: translateY(38px); opacity: 0; }
  41% { transform: translateY(-38px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.text-link, .booking-link, .header-contact, .contact-speaker { position: relative; }
.text-link::after, .booking-link::after, .header-contact::after, .contact-speaker::after {
  content: ''; position: absolute; height: 1px; left: 0; right: 0; bottom: -1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}
:is(.text-link, .booking-link, .header-contact, .contact-speaker).is-hovered::after { transform: scaleX(1); transform-origin: left; }
.motion-on .text-link > span, .motion-on .booking-arrow, .motion-on .header-contact > span,
.motion-on .course-links h3, .motion-on .publication h3 { transition: transform .55s cubic-bezier(.22,1,.36,1), color .35s; }
.header-contact > span { display: inline-block; }
.motion-on :is(.text-link, .header-contact).is-hovered > span { transform: translate(5px,-5px) rotate(8deg); }
.motion-on .booking-link.is-hovered .booking-arrow { transform: translate(8px,-8px) rotate(8deg); }
.motion-on :is(.course-links > a, .publication).is-hovered h3 { transform: translateX(7px); color: var(--accent); }
.motion-on .publication.is-hovered .publication-arrow { transform: translate(7px,-7px); }
.motion-on :is(.calendar-nav button, .back-top, .dialog-close, .draft-button, .calendar td > button) {
  transition: transform .4s cubic-bezier(.22,1,.36,1), color .3s, background .3s, border-color .3s;
}
:is(.calendar-nav button, .back-top).is-hovered { background: var(--ink); color: var(--paper); border-color: transparent; }
.motion-on :is(.calendar-nav button, .back-top).is-hovered { transform: translateY(-3px); }
.motion-on :is(.calendar-nav button, .back-top, .dialog-close, .draft-button, .calendar td > button):active { transform: scale(.94); border-color: transparent; }
.motion-on .draft-button:hover { background: var(--accent); }
.motion-on .dialog-close:hover { transform: rotate(90deg); }
.motion-on .service-list summary h3 { transition: transform .45s cubic-bezier(.22,1,.36,1), color .3s; }
.motion-on .service-list summary:hover h3 { transform: translateX(6px); color: var(--accent); }
.motion-on .speaker-dialog[open] { animation: dialog-entrance .5s cubic-bezier(.22,1,.36,1); }
@keyframes dialog-entrance { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
.motion-on .calendar tbody tr { animation: calendar-entrance .45s both cubic-bezier(.22,1,.36,1); }
.motion-on .calendar tbody tr:nth-child(2) { animation-delay: .035s; }
.motion-on .calendar tbody tr:nth-child(3) { animation-delay: .07s; }
.motion-on .calendar tbody tr:nth-child(4) { animation-delay: .105s; }
.motion-on .calendar tbody tr:nth-child(5) { animation-delay: .14s; }
@keyframes calendar-entrance { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.photo-loading::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 20%, #f1f0ec38 50%, transparent 80%);
  animation: photo-loading 1.8s infinite ease-in-out;
}
@keyframes photo-loading { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.practice-image { overflow: hidden; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none !important; transition: none !important; }

/* Course arrows share the title row and keep their position during interaction. */
.course-links > a, .course-links > a + a {
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-rows: 36px auto;
  align-content: start;
  column-gap: 24px;
  min-height: 230px;
}
.course-links > a > span { grid-column: 1 / -1; }
.course-links h3 { grid-column: 1; grid-row: 2; }
.course-links i { grid-column: 2; grid-row: 2; width: 28px; height: 28px; align-self: center; }
.course-links i svg { width: 100%; height: 100%; display: block; }
.course-links a:hover i, .motion-on .course-links > a.is-hovered i,
.motion-on .course-links > a.is-hovered h3 { transform: none; }
.course-links a:is(:hover, .is-hovered) i { color: var(--accent); }
@media (min-width: 761px) and (max-width: 1050px) {
  .course-links > a, .course-links > a + a {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr) 28px;
    grid-template-rows: auto; align-items: center; min-height: 140px; gap: 30px;
  }
  .course-links > a > span { grid-column: 1; }
  .course-links h3 { grid-column: 2; grid-row: 1; }
  .course-links i { grid-column: 3; grid-row: 1; }
}
@media (max-width: 760px) {
  .course-links > a, .course-links > a + a { grid-template-rows: auto auto; gap: 18px 20px; min-height: 0; }
}

/* A compact masthead and a shared baseline below the opening portrait. */
:root.fonts-fallback { --serif: Georgia, serif; --sans: Arial, sans-serif; }
.fonts-pending :is(h1, h2, h3, .story-number, .credentials span, .academy-word, .footer-name) { opacity: 0 !important; }
:root { --header-height: 64px; }
.header { height: var(--header-height); border-bottom: 0; gap: 28px; }
.brand { width: 222px; min-height: 44px; flex-shrink: 0; letter-spacing: 0; }
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.hero-dot { display: inline-block; transform-origin: 50% calc(50% + .285em); backface-visibility: hidden; }
.hero-dot-baseline { display: inline-block; width: 0; height: 0; padding: 0; margin: 0; vertical-align: baseline; }
.hero-scroll-shell { padding-bottom: 0; }
.hero-scroll-content { position: relative; }
.motion-off .hero-dot { opacity: 1 !important; transform: none !important; }
.footer-name { display: flex; align-items: center; width: 320px; max-width: 100%; min-height: 44px; }
.footer-tail { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; margin-top: 30px; }
.footer-tail .medical-note { margin: 0; max-width: 76ch; }
.agency-credit { display: inline-flex; align-items: center; justify-self: end; gap: 16px; min-height: 44px; }
.agency-credit-mark { width: 64px; height: auto; flex: 0 0 64px; }
.agency-credit-copy { display: grid; gap: 3px; white-space: nowrap; }
.agency-credit-label { color: var(--muted); font-size: 10px; line-height: 1.5; letter-spacing: .04em; }
.agency-credit-name { color: var(--ink); font-size: 13px; line-height: 1.6; transition: color .3s ease; }
.agency-credit-name strong { font-weight: 500; }
.agency-credit:is(:hover, :focus-visible) .agency-credit-name { color: var(--accent); }
@media (max-width: 760px) {
  .footer-tail { grid-template-columns: minmax(0, 1fr); gap: 25px; margin-top: 25px; }
  .agency-credit { justify-self: start; }
}
.header nav { gap: clamp(18px, 2.5vw, 36px); }
.header nav a { padding-block: 12px; }
.header-contact { border-bottom: 0; padding-block: 12px; white-space: nowrap; }
.header-contact span { margin-left: 16px; }
.header-contact::after { bottom: 7px; }
.about { border-top: 0; padding-top: clamp(56px, 6vw, 80px); }
.hero-signoff { margin-inline: var(--gutter); padding-top: 24px; }
.hero-signoff-caption {
  max-width: none; margin: 0 0 20px auto; width: fit-content;
  font-size: 11px; line-height: 1.6; letter-spacing: .11em;
  color: var(--muted); text-align: right;
}
.hero-signoff-rule {
  display: block; position: relative; height: 1px; width: 100%;
  color: var(--line); transform-origin: left center; pointer-events: none;
}
.hero-signoff-rule svg { display: block; position: absolute; inset: 50% 0 auto; width: 100%; height: 28px; transform: translateY(-50%); overflow: visible; z-index: 4; }
.hero-rule-wake { color: #a79a8c; }
.motion-off .hero-rule-wake { opacity: 0 !important; }
.motion-off .hero-scroll-content { transform: none !important; }
.motion-off .hero-scroll-shell { padding-bottom: 0 !important; }
.motion-off .hero-signoff-rule { transform: none !important; color: var(--line) !important; }
.motion-off .hero-signoff-caption { opacity: 1 !important; transform: none !important; }
.about .section-label > span:first-child { display: inline-flex; align-items: center; gap: 16px; }
.about .section-label > span:first-child::before { content: ''; width: 24px; height: 2px; flex: 0 0 auto; background: var(--accent); }
@media (min-width: 701px) {
  .hero { height: min(920px, calc(100svh - var(--header-height))); min-height: 550px; }
  .hero-top { padding-top: 30px; }
  .hero h1 { font-size: clamp(96px, min(13.1vw, 23svh), 240px); }
  .hero-bottom { bottom: 40px; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .hero h1 { top: 20%; font-size: min(13.1vw, 20svh); }
}
@media (max-width: 900px) and (min-width: 701px) {
  .header { gap: 18px; }
  .header nav { gap: 16px; }
  .header-contact { font-size: 12px; }
  .header-contact span { margin-left: 8px; }
  .brand { width: 180px; }
}
@media (max-width: 700px) {
  :root { --header-height: 60px; }
  .header { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: 14px; }
  .brand { width: 188px; max-width: 100%; }
  .header-contact { margin: 0; }
  .header-contact span { margin-left: 8px; }
  .menu-toggle { width: 32px; height: 44px; align-items: flex-end; }
  .mobile-menu { top: var(--header-height); }
  .hero { padding-top: 20px; padding-bottom: 0; }
  .hero-index { top: 20px; }
  .hero h1 { margin-top: 32px; }
  .about .section-label > span:first-child { gap: 10px; }
  .about .section-label > span:first-child::before { width: 16px; }
  .hero-signoff { padding-top: 24px; }
  .hero-signoff-caption { margin-left: 0; margin-bottom: 18px; font-size: 10px; letter-spacing: .08em; text-align: left; }
}
@media (max-width: 760px) {
  .footer-name { width: min(280px, calc(100% - 75px)); }
}
@media (max-width: 380px) {
  .header { gap: 10px; }
  .header-contact span { display: none; }
}
