/* Version B: "Your specialists are already in the building." Gallery / catalog.
   Palette: warm white, the logo's cream, a pale sage from the logo's light green, the site's own deep blue. */
@font-face { font-family: "Josefin Sans"; src: url("fonts/JosefinSans-300-600.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/Roboto-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  --white: #fbf8f1;
  --cream: #f1e7c8;
  --sage: #dcebdc;
  --ink: #14261e;
  --ink-soft: #4a5a52;
  --blue: #003388;
  --sc-canvas: #fbf8f1;
  --sc-surface: #f1e7c8;
  --sc-ink: #14261e;
  --sc-ink-soft: #4a5a52;
  --sc-accent: #003388;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Josefin Sans", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --sc-font-text: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(1.1rem, 4.6vw, 5rem);
  --bar: 64px;
  --r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.55 var(--sc-font-text); overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--sc-font-display); font-weight: 300; margin: 0; }

.concept { position: fixed; right: 0.7rem; bottom: 0.7rem; z-index: 40; margin: 0; padding: 0.3rem 0.55rem; background: var(--ink); color: var(--white); font: 500 0.78rem/1.2 var(--sc-font-text); }

/* nav: the index of departments */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar); background: var(--cream); border-bottom: 1px solid rgba(20, 38, 30, 0.35); display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem); padding: 0 var(--gut); }
.bar__logo img { height: 46px; width: auto; }
.bar__index { display: flex; gap: clamp(0.8rem, 1.7vw, 1.7rem); margin: 0; padding: 0; list-style: none; flex: 1; font-size: 0.92rem; }
.bar__index a { color: var(--ink); text-decoration: none; padding: 0.4rem 0; display: block; position: relative; white-space: nowrap; }
.bar__index a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform 220ms ease; }
.bar__index a:hover::after, .bar__index a[aria-current="true"]::after { transform: scaleX(1); }
.bar__tel { font: 500 1.02rem/1 var(--sc-font-text); color: var(--ink); white-space: nowrap; }
.bar__menu { display: none; }

/* 1 hero: object one */
.hero { padding: clamp(2.6rem, 9svh, 6rem) var(--gut) clamp(1.6rem, 4svh, 3rem); }
.hero h1 { max-width: 13.5em; font-size: clamp(2.5rem, 5.6vw, 5.2rem); line-height: 1.02; letter-spacing: -0.012em; }
.hero__sub { margin: 1.1rem 0 0; max-width: 39em; font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.5; }
.hero__tel { margin: 1.3rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 2.2rem; font: 500 clamp(1.1rem, 1.5vw, 1.35rem)/1.3 var(--sc-font-text); }
.hero__tel a { color: var(--ink); }
.hero__tel span { font-weight: 400; }

/* the lobby: the one film, scrubbed */
.lobby__frame { position: absolute; inset: calc(var(--bar) + 2.2svh) var(--gut) 4svh; border-radius: var(--r); overflow: hidden; background: #2b2a26; }
.tag { position: absolute; left: 1rem; bottom: 1rem; z-index: 3; margin: 0; padding: 0.3rem 0.6rem; background: var(--white); color: var(--ink); font-size: 0.82rem; line-height: 1.3; border-radius: 4px; }

/* 2 in this building */
.board { min-height: 100svh; display: grid; align-content: center; padding: clamp(3.5rem, 11svh, 7rem) var(--gut); }
.board__in { max-width: 860px; margin: 0 auto; }
.board h2 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.08; margin-bottom: 1.1rem; }
.board ul { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid rgba(20, 38, 30, 0.22); }
.board li > img, .mono { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; }
.mono { display: grid; place-items: center; background: var(--blue); color: #fff; font: 500 0.82rem/1 var(--sc-font-text); font-style: normal; }
.board__what { font: 400 clamp(1.2rem, 1.9vw, 1.65rem)/1.2 var(--sc-font-display); padding-top: 0.2em; }
.board__who { display: inline-flex; align-items: center; gap: 0.6rem; min-width: 11.5rem; justify-content: space-between; padding: 0.6rem 0.85rem; background: var(--blue); color: #fff; text-decoration: none; font: 500 0.88rem/1.1 var(--sc-font-text); border-radius: 4px; }
.board__who::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 180ms ease; }
.board__who:hover::after { transform: translateX(3px) rotate(45deg); }

/* 3 the surgical center */
.center { min-height: 100svh; display: grid; align-content: center; padding: clamp(2rem, 6svh, 4rem) var(--gut) clamp(3.5rem, 11svh, 7rem); }
.center__in { width: 100%; max-width: 1180px; min-height: min(74svh, 44rem); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r); overflow: hidden; background: var(--sage); }
.center__text { padding: clamp(1.8rem, 4vw, 3.6rem); align-self: center; }
.center h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.06; }
.center__text p { margin: 1rem 0 0; font-size: 0.98rem; max-width: 30em; }
.center__tel { display: inline-block; margin-top: 1.4rem; padding: 0.75rem 1rem; background: var(--blue); color: #fff; font-weight: 500; text-decoration: none; border-radius: 4px; }
.center__pic { position: relative; min-height: 22rem; }
.center__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 4 walk the corridor */
.corridor { background: var(--white); }
.corridor__stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; padding-top: calc(var(--bar) + 2.5svh); padding-bottom: 3svh; }
.corridor__head { text-align: center; padding: 0 var(--gut); }
.corridor h2 { font-size: clamp(1.9rem, 3.4vw, 3.1rem); line-height: 1.05; }
.corridor__sub { margin: 0.5rem 0 0; font-size: 0.98rem; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.tabs button { font: 500 0.86rem/1 var(--sc-font-text); color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 4px; padding: 0.6rem 0.95rem; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.tabs button[aria-current="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.rail { align-items: stretch; gap: 3vw; padding: 2.5svh 22vw 0; height: 100%; }
.door { flex: none; width: 56vw; max-height: 62svh; display: grid; grid-template-columns: 1.08fr 1fr; border-radius: var(--r); overflow: hidden; background: var(--cream); --open: 1; }
.door__label { padding: clamp(1.2rem, 2.4vw, 2.4rem); display: flex; flex-direction: column; justify-content: center; }
.door__label h3 { font: 400 clamp(1.5rem, 2.5vw, 2.3rem)/1.06 var(--sc-font-display); }
.door__label dl { margin: 1.1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.92rem; line-height: 1.4; }
.door__label dt { font: 500 0.74rem/1.9 var(--sc-font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.door__label dd { margin: 0; }
.door__room { position: relative; overflow: hidden; background: var(--sage); display: grid; place-items: center; }
.door__in { text-align: center; padding: 1rem; }
.door__in img { width: min(180px, 46%); height: auto; aspect-ratio: 1; margin: 0 auto; border: 6px solid var(--white); }
.door__in--trio { display: flex; gap: 0.6rem; justify-content: center; }
.door__in--trio img { width: 30%; margin: 0; border-width: 4px; }
.door__in--still { position: absolute; inset: 0; padding: 0; }
.door__in--still img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border: 0; }
.door__mono { width: min(180px, 46%); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; background: var(--white); color: var(--blue); font: 300 3.2rem/1 var(--sc-font-display); border: 6px solid var(--white); outline: 1px solid rgba(20, 38, 30, 0.25); }
.door__name { margin: 0.7rem 0 0; font-size: 0.86rem; }
.door__leaf { position: absolute; inset: 0; z-index: 2; background: var(--blue); color: #fff; display: grid; place-items: center; transform: translateX(calc(var(--open) * -101%)); will-change: transform; }
.door__leaf::after { content: ""; position: absolute; right: 9%; top: 46%; width: 3px; height: 12%; background: rgba(255, 255, 255, 0.75); border-radius: 2px; }
.door__plate { padding: 0.5rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.7); font: 400 clamp(0.8rem, 1.05vw, 1rem)/1.2 var(--sc-font-display); letter-spacing: 0.2em; text-transform: uppercase; text-align: center; max-width: 78%; }
.floor { position: absolute; left: 0; right: 0; bottom: 1.6svh; height: 2px; background: rgba(0, 51, 136, 0.18); }
.floor i { position: absolute; inset: 0; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--sc-p, 0)); }

/* 5 what patients say */
.book { background: var(--cream); padding: clamp(3rem, 9svh, 5.5rem) 0 clamp(3rem, 9svh, 5.5rem); border-block: 1px solid rgba(20, 38, 30, 0.3); }
.book__top { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gut); }
.book h2 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: 1.08; }
.book__nav { display: flex; gap: 0.5rem; }
.book__nav button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color 160ms ease, color 160ms ease; }
.book__nav button:hover { background: var(--ink); color: var(--cream); }
.book__nav svg { width: 0.9rem; height: 0.9rem; }
.book__rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16.5rem, 1fr); gap: 1.1rem; margin: 1.4rem 0 0; padding: 0 var(--gut) 0.4rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; }
.book__rail::-webkit-scrollbar { display: none; }
.note { scroll-snap-align: start; margin: 0; background: var(--white); border: 1px solid var(--ink); border-radius: 14px; padding: 1.4rem 1.3rem 1.2rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 19rem; }
.note p { margin: 0; font: 500 clamp(1.18rem, 1.5vw, 1.42rem)/1.16 var(--sc-font-display); }
.note footer { margin-top: 1.6rem; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }
.book__rating { margin: 1.3rem 0 0; padding: 0 var(--gut); font-size: 0.92rem; }

/* 6 close: the request plate and the directory */
.close { padding: clamp(1rem, 2vw, 1.6rem); }
.plate { background: var(--blue); color: #fff; border-radius: 18px; padding: clamp(1.8rem, 4vw, 3.4rem); display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.5rem clamp(1.5rem, 5vw, 5rem); align-items: end; }
.plate h2 { font-size: clamp(1.9rem, 3.3vw, 3rem); line-height: 1.05; color: #fff; }
.plate__sub { margin: 0.9rem 0 0; font-size: 0.98rem; max-width: 31em; }
.plate__sub a { color: #fff; font-weight: 500; }
.plate form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.6rem; align-items: end; }
.plate label { display: grid; gap: 0.3rem; font-size: 0.8rem; }
.plate input { font: 400 1rem/1.2 var(--sc-font-text); color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 4px; padding: 0.7rem 0.8rem; width: 100%; }
.plate input:focus-visible { outline-color: #fff; }
.plate button { font: 500 0.95rem/1.2 var(--sc-font-text); background: var(--cream); color: var(--ink); border: 0; border-radius: 4px; padding: 0.78rem 1.1rem; cursor: pointer; transition: transform 140ms ease; }
.plate button:active { transform: scale(0.97); }
.plate__note { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 0.88rem; }
.foot { display: grid; grid-template-columns: auto 1fr 1.1fr 1.1fr; gap: 2rem clamp(1.5rem, 4vw, 4rem); padding: clamp(2rem, 4vw, 3rem) clamp(0.6rem, 2.4vw, 2.4rem) 1.2rem; font-size: 0.86rem; line-height: 1.55; }
.foot__logo { width: 170px; height: auto; border-radius: 6px; }
.foot h3 { font: 500 0.78rem/1.4 var(--sc-font-display); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.foot p { margin: 0 0 0.5rem; }
.foot a { color: var(--ink); }
.foot__fine { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; justify-content: space-between; padding-top: 1rem; border-top: 1px solid rgba(20, 38, 30, 0.25); font-size: 0.8rem; }
.foot__fine p { margin: 0; }

/* phone: written from the references' phone screens */
@media (max-width: 860px) {
  :root { --bar: 56px; }
  .bar { gap: 0.8rem; }
  .bar__logo img { height: 40px; }
  .bar__index { display: none; }
  .bar__tel { margin-left: auto; font-size: 0.98rem; }
  .bar__menu { display: block; position: relative; }
  .bar__menu summary { list-style: none; cursor: pointer; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; }
  .bar__menu summary::-webkit-details-marker { display: none; }
  .bar__menu summary i { display: block; width: 1.3rem; height: 2px; background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }
  .bar__menu ul { position: absolute; right: -0.4rem; top: calc(100% + 0.5rem); width: min(78vw, 17rem); margin: 0; padding: 0.4rem 1rem; list-style: none; background: var(--cream); border: 1px solid rgba(20, 38, 30, 0.35); }
  .bar__menu li + li { border-top: 1px solid rgba(20, 38, 30, 0.18); }
  .bar__menu a { display: block; padding: 0.8rem 0; color: var(--ink); text-decoration: none; }
  .hero { padding-top: 2rem; }
  .hero h1 { font-size: clamp(2.2rem, 10.4vw, 2.9rem); }
  .hero__tel { display: grid; gap: 0.35rem; }
  .lobby__frame { inset: calc(var(--bar) + 1.5svh) 0 auto; height: 68svh; border-radius: 0; }
  .lobby__cap { display: block; }
  .board li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 0.7rem; padding: 1.05rem 0; }
  .board li > img, .mono { width: 44px; height: 44px; }
  .center__in { min-height: 0; }
  .board__who { grid-column: 2; justify-self: start; }
  .center { padding-inline: 0; }
  .center__in { grid-template-columns: 1fr; border-radius: 0; }
  .center__pic { min-height: 0; aspect-ratio: 4 / 3; }
  .corridor__stage { display: block; padding: 3.2rem var(--gut) 3rem; }
  .corridor__head { text-align: left; padding: 0; }
  .tabs { display: none; }
  .rail { display: grid !important; gap: 0.9rem; padding: 1.4rem 0 0; height: auto; transform: none !important; }
  .door { width: auto; max-height: none; grid-template-columns: minmax(0, 1fr) 108px; background: var(--white); border: 1px solid rgba(20, 38, 30, 0.3); border-radius: 8px; }
  .door__label { padding: 1rem; }
  .door__label h3 { font-size: 1.45rem; }
  .door__label dl { grid-template-columns: 1fr; gap: 0; margin-top: 0.6rem; font-size: 0.88rem; }
  .door__label dt { margin-top: 0.45rem; }
  .door__in { padding: 0.5rem; }
  .door__in img, .door__mono { width: 84px; border-width: 3px; }
  .door__mono { font-size: 1.7rem; }
  .door__in--trio { flex-direction: column; align-items: center; gap: 0.3rem; }
  .door__in--trio img { width: 54px; }
  .door__in--still img { width: 100%; }
  .door__name { display: none; }
  .door__plate { font-size: 0.62rem; letter-spacing: 0.12em; padding: 0.3rem 0.4rem; max-width: 90%; }
  .floor { display: none; }
  .book__rail { grid-auto-columns: 78vw; }
  .plate { grid-template-columns: 1fr; border-radius: 14px; }
  .plate form { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__logo { grid-column: 1 / -1; }
  .foot > div:nth-child(2) { grid-column: 1 / -1; }
}
@media (min-width: 861px) { .lobby__cap { display: none; } }
.lobby__cap { position: absolute; left: var(--gut); right: var(--gut); top: calc(var(--bar) + 1.5svh + 68svh + 0.9rem); margin: 0; font-size: 1.02rem; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) {
  .door__leaf { transform: translateX(-101%); }
  .floor i { transform: none; }
}

/* after the reviewer round, 2026-12-03 */
/* directory and panel links are plain links; the form's submit stays the one filled button */
.board__who { min-width: 0; min-height: 44px; padding: 0; background: none; color: var(--blue); border-radius: 0; font: 500 1.02rem/1.1 var(--sc-font-text); text-decoration: underline; text-underline-offset: 4px; gap: 0.55rem; }
.center__tel { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.9rem; padding: 0; background: none; border-radius: 0; color: var(--ink); font: 500 clamp(1.1rem, 1.5vw, 1.35rem)/1.3 var(--sc-font-text); text-decoration: underline; text-underline-offset: 4px; }
/* labels in normal case */
.door__label dt { font: 500 0.88rem/1.6 var(--sc-font-text); letter-spacing: 0; text-transform: none; }
.foot h3 { font: 400 1.12rem/1.3 var(--sc-font-display); letter-spacing: 0; text-transform: none; }
.note footer { font-size: 0.88rem; letter-spacing: 0; text-transform: none; }
.book__nav button { width: 2.75rem; height: 2.75rem; }
[data-sc-in]:focus-within { opacity: 1 !important; transform: none !important; }
@media (max-width: 860px) {
  /* the film fills the stage; no caption */
  .lobby__frame { inset: calc(var(--bar) + 1.5svh) 0 4svh; height: auto; }
  /* tap targets of at least 44 px */
  .bar__tel { display: inline-flex; align-items: center; min-height: 44px; }
  .bar__menu summary { width: 2.75rem; height: 2.75rem; }
  .hero__tel { gap: 0; }
  .hero__tel a { display: flex; align-items: center; gap: 0.3em; min-height: 44px; }
  .foot a, .plate p a { display: inline-block; padding-block: 0.8rem; }
  .foot ul { columns: 2; }
  /* the concept label becomes a slim strip at the bottom edge, so it never sits on the text */
  body { padding-bottom: 1.75rem; }
  .concept { left: 0; right: 0; bottom: 0; text-align: center; font-size: 0.74rem; padding: 0.32rem 0.5rem calc(0.32rem + env(safe-area-inset-bottom, 0px)); }
}
/* reduced motion on a wide screen: the corridor is a grid of open doors, every one reachable */
@media (prefers-reduced-motion: reduce) and (min-width: 861px) {
  .corridor__stage { display: block; padding: clamp(3rem, 9svh, 6rem) var(--gut); }
  .rail { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.2rem; padding: 2rem 0 0; height: auto; transform: none !important; }
  .door { width: auto; max-height: none; min-height: 19rem; }
  .floor { display: none; }
}

.plate button, .plate input { min-height: 46px; }
.bar__logo { display: inline-flex; align-items: center; min-height: 44px; }
