/* docshubin.ru — персональная редакционная страница. Токены описаны в DESIGN.md. */

:root{
  --paper:#FBFAF8;
  --surface:#FFFFFF;
  --surface-sunk:#F4F2EE;
  --ink:#14181D;
  --ink-2:#41474F;
  --muted:#6B727B;
  --line:#E4E0D9;
  --line-strong:#CCC6BC;
  --accent:#0B4CA8;
  --accent-ink:#08356F;
  --accent-wash:#EDF2FA;
  --accent-wash-strong:#DCE8F8;
  --focus:#0B4CA8;

  --mark-rh:#075FEA;
  --mark-vr:#018D9B;
  --mark-event:#37627A;

  --sans:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;

  --shell:1480px;
  --gutter:clamp(20px,4vw,48px);
  --section:clamp(56px,6.5vw,96px);
  --section-rule-gap:clamp(28px,3.25vw,48px);
  --header-h:64px;
  --anchor-offset:calc(var(--header-h) + 16px);
  --mobile-contact-inset:12px;
  --mobile-contact-size:44px;

  --r-s:4px;
  --r-m:10px;
  --r-l:14px;

  --ease:cubic-bezier(.22,1,.36,1);
  --t-fast:.18s;
  --t-mid:.28s;
  --t-slow:.42s;
  --hero-resource-inline-start:20px;
  --hero-resource-inline-end:28px;
}

*,*::before,*::after{box-sizing:border-box}

html{
  -webkit-text-size-adjust:100%;
  /* No overflow container on the root: overflow-x here makes html/body a scroll
     container and silently disables position:sticky in the projects column. */
  scroll-behavior:auto;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:clip;
}

img,svg{display:block;max-width:100%}
img{height:auto}

h1,h2,h3,h4{margin:0;font-weight:700;line-height:1.1;letter-spacing:-.02em;text-wrap:balance}
p{margin:0;text-wrap:pretty}
ul,ol{margin:0;padding:0;list-style:none}

a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-ink)}

:where(a,button,[tabindex]):focus-visible{
  outline:2px solid var(--focus);
  outline-offset:2px;
  border-radius:var(--r-s);
}

.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

#foundation,#rhclub,#vrmclab,#medical-events{scroll-margin-top:var(--anchor-offset)}
#clinical-practice{scroll-margin-top:calc(var(--header-h) + 10px)}
#foundation-title,#projects-title,#profile-title,#contacts-title{scroll-margin-top:calc(var(--header-h) + 9px)}

.skip{
  position:absolute;
  left:0;
  top:0;
  /* Hidden by clipping rather than by an off-screen offset: a -9999px element
     widens the document, which previously forced overflow-x on the root and
     silently disabled position:sticky. */
  clip-path:inset(50%);
  transform:translateY(-100%);
  z-index:100;
  padding:12px 18px;
  background:var(--ink);
  color:#fff;
  border-radius:0 0 var(--r-m) 0;
}
.skip:focus{clip-path:none;transform:none;color:#fff}

/* ---------- controls ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:0 22px;
  border:1px solid transparent;
  border-radius:var(--r-m);
  font:inherit;
  font-size:15.5px;
  font-weight:600;
  letter-spacing:-.005em;
  cursor:pointer;
  transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);
}
.btn-solid{background:var(--accent);color:#fff}
.btn-solid:hover{background:var(--accent-ink);color:#fff}
.btn-line{background:var(--accent-wash);color:var(--accent-ink);border-color:var(--accent)}
.btn-line:hover,.btn-line:focus-visible{background:var(--accent-wash-strong);border-color:var(--accent-ink);color:var(--accent-ink)}
.btn .arw{transition:transform var(--t-fast) var(--ease)}
.btn:hover .arw{transform:translateX(3px)}

.link-arrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  font-size:15.5px;
  font-weight:600;
  color:var(--accent);
  border-bottom:1px solid transparent;
  transition:color var(--t-fast) var(--ease);
}
.link-arrow .arw{transition:transform var(--t-fast) var(--ease)}
.link-arrow:hover{color:var(--accent-ink)}
.link-arrow:hover .arw{transform:translateX(3px)}

/* ---------- header ---------- */

.hdr{
  position:fixed;
  inset:0 0 auto;
  z-index:60;
  background:transparent;
  border-bottom:1px solid transparent;
  transition:background var(--t-mid) var(--ease),border-color var(--t-mid) var(--ease);
  padding-top:env(safe-area-inset-top);
}
.hdr.is-stuck{
  background:rgba(251,250,248,.92);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom-color:var(--line);
}
.hdr-in{
  display:flex;
  align-items:center;
  gap:clamp(16px,3vw,40px);
  min-height:var(--header-h);
}
.hdr-brand{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  color:var(--ink);
  font-weight:700;
  font-size:16.5px;
  letter-spacing:-.018em;
  white-space:nowrap;
}
.hdr-brand:hover{color:var(--ink)}
.hdr-brand-mark{width:20px;height:20px;flex:none}

.nav{display:flex;align-items:center;gap:clamp(14px,2vw,28px);margin-inline-start:auto}
.nav a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:14.5px;
  font-weight:500;
  color:var(--ink-2);
  transition:color var(--t-fast) var(--ease);
}
.nav a::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:12px;
  height:1px;
  background:var(--ink);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform var(--t-fast) var(--ease);
}
.nav a:hover,.nav a[aria-current="true"]{color:var(--ink)}
.nav a:hover::after,.nav a[aria-current="true"]::after{transform:scaleX(1)}

.hdr-side{display:flex;align-items:center;gap:12px}

.lang{display:inline-flex;align-items:center;gap:2px}
.lang a{
  display:inline-grid;
  place-items:center;
  min-width:36px;
  min-height:44px;
  padding-inline:6px;
  font-family:var(--mono);
  font-size:12px;
  font-weight:500;
  letter-spacing:.06em;
  color:var(--muted);
  transition:color var(--t-fast) var(--ease);
}
.lang a[aria-pressed="true"]{color:var(--ink)}
.lang a:hover{color:var(--ink)}
.lang-sep{width:1px;height:14px;background:var(--line-strong)}

.hdr-cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 16px;
  border:1px solid var(--accent);
  border-radius:var(--r-m);
  font-size:14.5px;
  font-weight:600;
  color:var(--accent-ink);
  transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);
}
.hdr-cta{background:var(--accent-wash)}
.hdr-cta:hover,.hdr-cta:focus-visible{background:var(--accent-wash-strong);border-color:var(--accent-ink);color:var(--accent-ink)}
.mobile-contact{display:none}

.nav-toggle{display:none}

/* ---------- hero ---------- */

/* Vertical rhythm here is tied to viewport height, not just width: on short
   windows (a 1080p screen at 125% scaling leaves ~780px) the hero must still
   fit its call-to-action above the fold. */
.hero{
  padding-top:calc(var(--header-h) + clamp(16px,3.2svh,48px));
  padding-bottom:clamp(20px,3svh,44px);
}
.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  justify-content:space-between;
  gap:clamp(24px,3vw,48px);
  align-items:stretch;
}
.hero-copy{display:flex;flex-direction:column;justify-content:flex-start;gap:0}
.hero-copy > :last-child{margin-bottom:0}
.hero h1{
  font-size:clamp(38px,5.4vw,72px);
  font-weight:800;
  line-height:.96;
  letter-spacing:-.032em;
  margin-bottom:clamp(24px,7svh,68px);
}
.hero h1 .given,.hero h1 .family{display:block;font:inherit;letter-spacing:inherit}
/* The surname carries the brand colour rather than a larger size, so the name
   stays one type size while the family name still leads. */
.hero h1 .family{color:var(--accent)}
.hero-lead{
  max-width:none;
  font-size:clamp(17px,1.35vw,20px);
  line-height:1.55;
  color:var(--ink-2);
  margin-bottom:clamp(20px,6svh,60px);
}
.hero-directions{
  max-width:none;
  margin-top:clamp(48px,10svh,108px);
}
.hero-directions-list{border-top:1px solid var(--line)}
.hero-directions-list li{
  border-bottom:1px solid var(--line);
}
.hero-directions-list a{
  display:grid;
  grid-template-columns:minmax(138px,1fr) minmax(0,1.45fr) auto;
  gap:12px;
  align-items:center;
  padding-block:10px;
  padding-inline:var(--hero-resource-inline-start) var(--hero-resource-inline-end);
  color:var(--ink-2);
  font-size:13.5px;
  line-height:1.45;
  transition:color var(--t-fast) var(--ease),background var(--t-fast) var(--ease);
}
.hero-directions-list b{color:var(--ink);font-size:13.5px;font-weight:700;letter-spacing:-.01em}
.hero-directions-list .arw{transition:transform var(--t-fast) var(--ease)}
.hero-directions-list a:hover{color:var(--accent-ink);background:var(--accent-wash)}
.hero-directions-list a:hover .arw{transform:translateX(3px)}

.hero-visual{position:relative;justify-self:end;width:fit-content;max-width:100%}
.hero-portrait{
  /* figure carries a default 40px inline margin, which pushed the portrait
     right of its own caption. */
  margin:0;
  position:relative;
  /* Softened corners: the hard rectangle read as a raw crop against the rest
     of the page, which uses rounded media surfaces. */
  border-radius:var(--r-m);
  overflow:hidden;
}
.hero-portrait img{
  display:block;
  width:auto;
  max-width:100%;
  height:clamp(532px,calc(100svh - var(--header-h) - clamp(40px,5svh,56px) - clamp(60px,8svh,100px)),900px);
  aspect-ratio:4/5;
  object-fit:cover;
  object-position:50% 22%;
  /* Rounded on the image itself: a transformed ancestor (the reveal animation)
     makes Safari ignore the figure's overflow clip. */
  border-radius:var(--r-m);
}
/* ---------- credentials ---------- */

/* The credentials close the first screen as four editorial facts on the page,
   not as a separately branded KPI band. */
.creds{margin-bottom:clamp(40px,4.4vw,64px)}
.creds + .sec{padding-top:0}
.creds-in{padding-block:clamp(22px,2.4vw,32px) 0}
.creds-list{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-rows:auto auto auto;
  gap:clamp(20px,2.6vw,40px);
  row-gap:8px;
}
.fact{
  display:grid;
  min-width:0;
  grid-row:span 3;
  grid-template-rows:subgrid;
  align-items:start;
}
.fact + .fact{border-left:1px solid var(--line);padding-left:clamp(20px,2.6vw,40px)}
.fact-anchor{font-size:clamp(30px,2.1vw,36px);font-weight:800;line-height:1;letter-spacing:-.045em;color:var(--ink)}
.fact-anchor-words{white-space:normal}
.fact b{
  font-size:clamp(15px,1.05vw,17px);
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.015em;
}
.fact span{font-size:14px;line-height:1.48;color:var(--muted)}

/* ---------- sections ---------- */

/* One rhythm unit per boundary: sections lead with the gap and never add a
   trailing one, so adjacent sections cannot stack two full --section pads. */
.sec{padding-block:var(--section) 0}
.sec h2{font-size:clamp(28px,3.4vw,46px);letter-spacing:-.025em}

/* Standalone rules divide one section rhythm across both sides of the line.
   Internal hairlines remain component-local and deliberately use no rule gap. */
main > .rule{height:1px;background:var(--line);border:0;margin:var(--section-rule-gap) 0 0}
main > .rule + .sec{padding-top:var(--section-rule-gap)}
#foundation + .rule{margin-top:clamp(24px,2vw,40px)}

/* ---------- clinical foundation ---------- */

/* Heading and copy live in one column so the taller photograph beside them
   cannot stretch the grid rows apart and open a gap under the heading. */
.found-grid{
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:clamp(28px,5vw,72px);
  align-items:start;
}
.found-copy h2{font-size:clamp(28px,3.4vw,46px);letter-spacing:-.025em;margin-bottom:clamp(20px,2.4vw,30px)}
.found-copy p{max-width:64ch;color:var(--ink-2);margin-bottom:18px}
.found-copy p:last-child{margin-bottom:0}
.foundation-facts-title{margin:clamp(24px,3vw,32px) 0 0;font-size:15px;font-weight:650;letter-spacing:-.01em;color:var(--ink)}
.foundation-facts{margin-top:12px;border-top:1px solid var(--line)}
.foundation-facts li{display:grid;grid-template-columns:minmax(108px,140px) minmax(0,1fr);gap:12px 20px;padding:14px 0;border-bottom:1px solid var(--line)}
.foundation-facts b{font-family:var(--sans);font-size:15px;font-weight:700;line-height:1.4;letter-spacing:normal;color:var(--accent);text-transform:none}
.foundation-facts span{font-size:14.5px;line-height:1.55;color:var(--ink-2)}

@media (min-width:901px){
  .creds{margin-bottom:32px}
  .creds-in{padding-top:24px}
  .found-grid{grid-template-columns:minmax(0,1fr) minmax(580px,620px);gap:clamp(32px,3.5vw,48px)}
  .found-copy h2{font-size:clamp(40px,3vw,44px);margin-bottom:18px}
  .found-copy p{font-size:15.5px;line-height:1.5;margin-bottom:10px}
  .foundation-facts-title{margin-top:18px;font-size:14px}
  .foundation-facts{margin-top:8px}
  .foundation-facts li{align-items:center;gap:8px 16px;padding-block:7px}
  .foundation-facts b{font-size:14px}
  .foundation-facts span{font-size:14px;line-height:1.45}
  #foundation .media img{height:470px;object-fit:cover;object-position:50% 45%}
  #foundation[data-clinical-viewport-fill] + .rule{margin-top:20px}
  #foundation[data-clinical-viewport-fill] .found-grid{height:var(--clinical-content-height);align-items:stretch}
  #foundation[data-clinical-viewport-fill] .found-copy{display:flex;min-height:0;flex-direction:column}
  #foundation[data-clinical-viewport-fill] .foundation-facts{display:grid;min-height:0;flex:1;grid-template-rows:repeat(4,minmax(0,1fr))}
  #foundation[data-clinical-viewport-fill] .foundation-facts li{min-height:0;align-content:center}
  #foundation[data-clinical-viewport-fill] .media,#foundation[data-clinical-viewport-fill] .media picture,#foundation[data-clinical-viewport-fill] .media img{height:100%}
}

.media{
  margin:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-l);
  overflow:hidden;
}
.event-gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:clamp(24px,3vw,32px)}
.event-gallery img{aspect-ratio:3/2;object-fit:cover}
.media img{
  width:100%;
  height:auto;
  /* iOS Safari drops the parent's overflow clip once an ancestor is transformed
     (the reveal animation), so the corners are rounded on the image itself. */
  border-radius:calc(var(--r-l) - 1px);
  transition:transform var(--t-slow) var(--ease);
}
.media:hover img{transform:scale(1.015)}

/* ---------- projects ---------- */

.projects{padding-bottom:0}
.projects-grid{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:clamp(32px,5vw,80px);
  align-items:start;
}
.projects-aside{
  position:sticky;
  top:calc(var(--header-h) + 8px);
}
.projects-aside h2{font-size:clamp(25px,1.9vw,30px);margin-bottom:18px}
.projects-aside p{font-size:15.5px;line-height:1.6;color:var(--ink-2);margin-bottom:20px}
.projects-active-brand{margin:0 0 24px;padding:0}
.projects-active-brand[hidden]{display:none}
.projects-active-brand-frame{position:relative;height:120px}
.projects-active-brand-item{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-start;opacity:0;pointer-events:none;transition:opacity .16s var(--ease)}
.projects-active-brand[data-active-project="rhclub"] [data-project-brand="rhclub"],.projects-active-brand[data-active-project="vrmclab"] [data-project-brand="vrmclab"],.projects-active-brand[data-active-project="medical-events"] [data-project-brand="medical-events"]{opacity:1}
.projects-active-brand-item img{display:block;max-width:100%;width:auto;object-fit:contain;object-position:left center}
.projects-active-brand-item[data-project-brand="rhclub"] img{height:76px}
.projects-active-brand-item[data-project-brand="vrmclab"] img{height:94px}
.projects-active-brand-item[data-project-brand="medical-events"] img{height:81px}
.projects-quote{margin:0;padding:16px 0 0 14px;border-top:1px solid var(--line);border-left:2px solid var(--accent)}
.projects-quote p{margin:0;color:var(--ink);font-size:16px;line-height:1.55;font-weight:600;letter-spacing:-.012em}
.projects-quote footer{margin-top:8px;color:var(--muted);font-size:13.5px;line-height:1.45;font-weight:500}

.chapters{display:grid;gap:clamp(48px,6vw,88px);position:relative}

.chapter{position:relative;padding-left:clamp(32px,4vw,48px)}
.chapter::before{
  content:'';
  position:absolute;
  left:0;
  top:6px;
  bottom:0;
  width:1px;
  background:var(--line);
}
.chapter-rail-dot{
  position:absolute;
  left:-4px;
  top:6px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--chapter-mark,var(--accent));
  transform:translateY(var(--chapter-dot-offset,0px));
  transition:none;
  will-change:transform;
}
.chapter-rh{--chapter-mark:var(--mark-rh)}
.chapter-vr{--chapter-mark:var(--mark-vr)}
.chapter-event{--chapter-mark:var(--mark-event)}

.chapter-identity{display:grid;gap:6px;margin-bottom:clamp(22px,2.6vw,30px)}
.chapter-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;min-width:0}
.chapter-mark{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start}
.chapter-mark img{display:block;max-width:100%;object-fit:contain;object-position:left center}
.chapter-rh .chapter-mark img{width:clamp(90px,8vw,108px);height:auto}
.chapter-vr .chapter-mark img{width:clamp(42px,4vw,54px);height:auto}
.chapter-event .chapter-mark img{width:clamp(100px,9vw,120px);height:auto}
.js .projects-aside.is-project-aside-ready + .chapters .chapter-mark{display:none}

.chapter h3{
  font-size:clamp(23px,2.4vw,34px);
  letter-spacing:-.025em;
  margin:0;
  max-width:22ch;
}
.chapter-lead{max-width:38ch;color:var(--muted);font-size:15px;line-height:1.5;margin:0}
.chapter-body{max-width:70ch;color:var(--ink-2);margin-bottom:clamp(22px,2.6vw,30px)}

.points{
  display:grid;
  gap:0;
  margin-bottom:clamp(24px,3vw,32px);
  border-top:1px solid var(--line);
}
.points li{padding:16px 0;border-bottom:1px solid var(--line)}
.points b{
  display:block;
  font-size:16px;
  font-weight:650;
  letter-spacing:-.01em;
  margin-bottom:4px;
}
/* No max-width here: the card already constrains the line, and a second limit
   wrapped short captions early while leaving the row half empty. */
.points span{display:block;font-size:15px;line-height:1.6;color:var(--muted)}
.point-link{position:relative;display:block;min-height:44px;padding:16px 44px 16px 0;color:inherit;transition:color var(--t-fast) var(--ease),padding-inline-start var(--t-fast) var(--ease)}
.point-link:hover,.point-link:focus-visible{padding-inline-start:12px;color:var(--accent)}
.point-link .arw{position:absolute;top:50%;right:0;transform:translateY(-50%);transition:transform var(--t-fast) var(--ease)}
.point-link:hover .arw,.point-link:focus-visible .arw{transform:translate(3px,-50%)}

.chapter .media{margin-bottom:clamp(20px,2.4vw,28px)}

.chapter-person{
  padding-left:14px;
  border-left:2px solid var(--chapter-mark,var(--accent));
  font-size:15px;
  line-height:1.6;
  color:var(--ink-2);
  margin-bottom:clamp(20px,2.4vw,26px);
}
.chapter-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px}
/* ---------- profile ---------- */

.profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(28px,5vw,72px);
  align-items:start;
}
/* Heading, copy and photograph start on the same line, so the picture reads as
   the opening of the block rather than a panel hung beside the text. */
.profile-media figure{margin:0}
.profile-media img{aspect-ratio:4/3;object-fit:cover;object-position:50% 45%}
.profile-copy h2{font-size:clamp(25px,2.4vw,36px);letter-spacing:-.025em;margin:0 0 16px;max-width:30ch;text-wrap:balance}
.profile-copy p{max-width:64ch;color:var(--ink-2);margin-bottom:18px}
.profile-link{margin-top:clamp(20px,2.4vw,26px)}

/* ---------- summit ---------- */

/* This block continues the Experience section rather than opening a new topic,
   so it sits closer than a full section rhythm. */
.summit{padding-top:clamp(28px,3.5vw,48px)}
.summit-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,72px);align-items:start}
.summit-copy{max-width:none}
/* The climb leads at full width, with the two race frames paired underneath:
   a portrait crop would tower over the copy column beside it. */
.summit-gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.summit-gallery > :first-child{grid-column:1 / -1}
.summit-media img{aspect-ratio:4/3;object-fit:cover;object-position:50% 58%}
.summit-media:not(.summit-media-lead) img{aspect-ratio:3/2;object-position:50% 42%}
.summit-copy h2{font-size:clamp(25px,2.4vw,36px);letter-spacing:-.025em;margin:0 0 16px}
.summit-copy p{color:var(--ink-2);margin:0 0 16px}
.summit-copy p:last-child{margin-bottom:0}

/* ---------- contact ---------- */

.contact{
  border-top:1px solid var(--line-strong);
  /* The rule above the block already marks the boundary, so the gap is split
     between margin and padding instead of stacking two full units. */
  margin-top:clamp(32px,3.5vw,48px);
  padding-block:clamp(36px,4vw,52px);
}
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:clamp(28px,5vw,72px);
  row-gap:8px;
  align-items:start;
}
.contact-grid > :first-child{grid-row:span 2}
.contact h2{font-size:clamp(28px,3.4vw,44px);margin-bottom:16px}
.contact-lead{max-width:44ch;color:var(--ink-2)}
.contact-patient{max-width:44ch;margin-top:16px;color:var(--muted);font-size:14px;line-height:1.5}
.contact-patient a{font-weight:600;text-decoration:underline;text-underline-offset:2px}
.contact-list{border-top:1px solid var(--line)}
.contact-row{
  display:grid;
  grid-template-columns:minmax(100px,.72fr) minmax(0,1.3fr) auto;
  align-items:center;
  gap:16px;
  min-height:64px;
  padding:12px 4px;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  transition:padding-inline-start var(--t-fast) var(--ease),color var(--t-fast) var(--ease);
}
.contact-row:hover{padding-inline-start:12px;color:var(--accent)}
.contact-row .lbl{font-size:13px;font-weight:600;color:var(--muted)}
.contact-row .val{font-size:16.5px;font-weight:600;letter-spacing:-.01em}
.contact-row .arw{margin-inline-start:auto;color:var(--muted);transition:transform var(--t-fast) var(--ease)}
.contact-row:hover .arw{transform:translateX(3px);color:var(--accent)}
.contact-save{margin-top:8px}
/* ---------- footer ---------- */

.ftr{
  border-top:1px solid var(--line);
  background:var(--surface-sunk);
  padding-top:clamp(28px,3vw,40px);
  padding-bottom:max(16px,env(safe-area-inset-bottom));
}
.ftr-main{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.72fr);
  gap:clamp(28px,3vw,48px);
  align-items:start;
}
.ftr-person{min-width:0}
.ftr-community{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  align-items:start;
  align-content:start;
  gap:clamp(14px,1.4vw,20px);
  padding-left:clamp(20px,2.4vw,36px);
  border-left:1px solid var(--line-strong);
  color:var(--ink);
  transition:color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);
}
.ftr-community:hover,.ftr-community:focus-visible{color:var(--accent);border-color:var(--accent)}
.ftr-community-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  flex:none;
  overflow:hidden;
}
.ftr-community-mark img{width:52px;height:auto;object-fit:contain}
.ftr-community-body{display:grid;gap:4px;min-width:0}
.ftr-community-name{font-size:16px;font-weight:700;letter-spacing:-.015em}
.ftr-community-note{font-size:14px;line-height:1.5;color:var(--ink-2)}
.ftr-community-link{display:flex;align-items:center;gap:6px;margin-top:2px;font-size:14px;font-weight:600;color:var(--accent)}
.ftr-community-link .arw{transition:transform var(--t-fast) var(--ease)}
.ftr-community:hover .ftr-community-link .arw{transform:translateX(3px)}
.ftr-place{margin-top:4px;max-width:48ch;font-size:14.5px;line-height:1.55;color:var(--muted)}
.ftr-social{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ftr-name{font-size:clamp(22px,2vw,28px);font-weight:700;letter-spacing:-.025em;margin-bottom:6px}
.ftr-role{max-width:42ch;font-size:14.5px;line-height:1.6;color:var(--muted)}
.ftr-documents{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  align-items:start;
  align-content:start;
  max-width:100%;
  padding-left:clamp(20px,2.4vw,36px);
  border-left:1px solid var(--line-strong);
}
.ftr .ftr-documents h2{margin:0}
.ftr-documents ul{display:grid;min-width:0}
.ftr-documents li{display:flex;min-width:0}
.ftr-documents li + li{border-top:1px solid var(--line)}
.ftr h2{
  font-family:var(--mono);
  font-size:11.5px;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:12px;
}
.ftr li a,.ftr li button{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:14.5px;
  line-height:1.4;
  color:var(--ink-2);
  background:none;
  border:0;
  padding:0;
  font-family:inherit;
  text-align:start;
  cursor:pointer;
  transition:color var(--t-fast) var(--ease);
}
.ftr-documents li a,.ftr-documents li button{min-height:44px;padding-block:7px}
.ftr li a:hover,.ftr li button:hover{color:var(--accent)}
.ftr .ftr-social li a{
  gap:8px;
  padding:0 14px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  font-size:14px;
  transition:color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);
}
.ftr .ftr-social li a:hover,.ftr .ftr-social li a:focus-visible{color:var(--accent);border-color:var(--accent)}
.ftr-social svg{width:16px;height:16px;flex:none}
.ftr-bot{
  border-top:1px solid var(--line);
  margin-top:clamp(24px,3vw,40px);
  padding-top:14px;
  font-size:13.5px;
  line-height:1.6;
  color:var(--muted);
}

/* ---------- consent ---------- */

.consent{
  position:fixed;
  z-index:70;
  left:var(--gutter);
  right:var(--gutter);
  bottom:max(16px,env(safe-area-inset-bottom));
  margin-inline:auto;
  max-width:560px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 16px;
  padding:14px 16px;
  background:var(--ink);
  color:#fff;
  border-radius:var(--r-m);
  box-shadow:0 10px 30px rgba(20,24,29,.18);
}
.consent[hidden]{display:none}
.consent p{flex:1 1 240px;font-size:13.5px;line-height:1.5;color:#E9EBEE}
.consent-actions{display:flex;flex-wrap:wrap;gap:8px}
.consent button{
  min-height:40px;
  padding:0 14px;
  border-radius:var(--r-s);
  border:1px solid rgba(255,255,255,.28);
  background:transparent;
  color:#fff;
  font:inherit;
  font-size:13.5px;
  font-weight:600;
  cursor:pointer;
  transition:background var(--t-fast) var(--ease);
}
.consent button:hover{background:rgba(255,255,255,.12)}
.consent .primary{background:#fff;color:var(--ink);border-color:#fff}
.consent .primary:hover{background:#E9EBEE}
.consent button:focus-visible{outline-color:#fff}

.pref-backdrop{
  position:fixed;
  inset:0;
  z-index:79;
  background:rgba(20,24,29,.44);
}
.pref-backdrop[hidden]{display:none}
html.preferences-open,
body.preferences-open{overflow:hidden}
body.preferences-open{
  position:fixed;
  inset-inline:0;
  width:100%;
}
.pref{
  position:fixed;
  z-index:80;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(560px,calc(100vw - 32px));
  max-height:min(82dvh,720px);
  overflow:auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--r-l);
  box-shadow:0 24px 64px rgba(20,24,29,.24);
  padding:clamp(20px,3vw,28px);
}
.pref[hidden]{display:none}
.pref-head{display:flex;align-items:flex-start;gap:16px;margin-bottom:20px}
.pref-head h2{font-size:20px;margin-bottom:6px}
.pref-head p{font-size:14.5px;color:var(--muted)}
.pref-close{
  margin-inline-start:auto;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:none;
  border:1px solid var(--line);
  border-radius:var(--r-s);
  background:transparent;
  color:var(--ink);
  cursor:pointer;
}
.pref-close:hover{background:var(--surface-sunk)}
.pref-cat{border-top:1px solid var(--line);padding:16px 0}
.pref-cat-head{display:flex;align-items:flex-start;gap:16px}
.pref-cat h3{font-size:16px;margin-bottom:4px}
.pref-cat p{font-size:14px;color:var(--muted)}
.pref-items{margin-top:12px;display:grid;gap:6px}
.pref-items li{
  font-family:var(--mono);
  font-size:11.5px;
  line-height:1.5;
  color:var(--muted);
}
.pref-switch{
  margin-inline-start:auto;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  border:0;
  background:none;
  padding:0;
  font:inherit;
  font-size:13px;
  color:var(--muted);
  cursor:pointer;
  flex:none;
}
.pref-switch[aria-disabled="true"]{cursor:default}
.pref-track{
  position:relative;
  width:42px;
  height:24px;
  border-radius:999px;
  background:var(--line-strong);
  transition:background var(--t-fast) var(--ease);
  flex:none;
}
.pref-track::after{
  content:'';
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  transition:transform var(--t-fast) var(--ease);
}
.pref-switch[aria-checked="true"] .pref-track{background:var(--accent)}
.pref-switch[aria-checked="true"] .pref-track::after{transform:translateX(18px)}
.pref-actions{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);padding-top:20px}
.pref-actions button{
  min-height:44px;
  padding:0 18px;
  border-radius:var(--r-m);
  border:1px solid var(--line-strong);
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:14.5px;
  font-weight:600;
  cursor:pointer;
}
.pref-actions .primary{background:var(--accent);border-color:var(--accent);color:#fff}
.pref-actions .primary:hover{background:var(--accent-ink)}
.pref-actions button:not(.primary):hover{background:var(--surface-sunk)}

/* ---------- reveal ---------- */

.js .rv{opacity:0;transform:translateY(14px)}
.js .projects-aside.rv,.js .found-copy.rv,.js .profile-copy.rv,.js .contact-grid > .rv{transform:none}
.js .rv.is-in{
  opacity:1;
  transform:none;
  transition:opacity var(--t-slow) var(--ease),transform var(--t-slow) var(--ease);
  transition-delay:var(--rv-delay,0ms);
}

/* ---------- responsive ---------- */

@media (max-width:1080px){
  .projects-grid{grid-template-columns:1fr;gap:clamp(28px,4vw,44px)}
  .projects-aside{position:static}
  .projects-aside p{max-width:62ch}
  .projects-active-brand{display:none}
  .js .projects-aside.is-project-aside-ready + .chapters .chapter-mark{display:flex}
  .hero-grid{min-height:0}
}

@media (max-width:900px){
  :root{--header-h:60px}
  .found-grid,.profile-grid,.contact-grid,.summit-grid{grid-template-columns:1fr}
  .contact-grid > :first-child{grid-row:auto}
  .creds-list{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:24px 20px}
  .fact{display:grid;grid-template-rows:subgrid;grid-row:span 3;gap:6px}
  .fact + .fact{border-left:0;padding-left:0}
  .fact:nth-child(even){border-left:1px solid var(--line);padding-left:20px}
  .ftr-main{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,32px)}
  .hero-grid{grid-template-columns:1fr}
  /* Single column: centre the portrait instead of leaving it hard against the
     left edge, now that it no longer sits inside a full-width card. */
  .hero-visual{justify-self:center;max-width:min(420px,100%);order:2}
  .hero-portrait img{width:min(345px,100%);margin-inline:auto}
  .hero-copy{order:1}
}

@media (max-width:1180px){
  .nav{
    position:fixed;
    inset:var(--header-h) 0 auto;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    margin:0;
    padding:8px var(--gutter) 20px;
    background:var(--paper);
    border-bottom:1px solid var(--line);
    transform:translateY(-8px);
    opacity:0;
    pointer-events:none;
    visibility:hidden;
    transition:opacity var(--t-fast) var(--ease),transform var(--t-fast) var(--ease),visibility var(--t-fast) var(--ease);
  }
  .nav[data-open="true"]{transform:none;opacity:1;pointer-events:auto;visibility:visible}
  .nav a{min-height:52px;font-size:16px;border-bottom:1px solid var(--line)}
  .nav a::after{display:none}
  .nav a:last-child{border-bottom:0}
  .nav-toggle{
    display:inline-grid;
    place-items:center;
    width:44px;
    height:44px;
    margin-inline-start:auto;
    border:1px solid var(--line-strong);
    border-radius:var(--r-s);
    background:transparent;
    color:var(--ink);
    cursor:pointer;
  }
}

@media (max-width:760px){
  body{font-size:16.5px}
  .hdr--site .hdr-cta{display:none}
  .mobile-contact{
    position:fixed;
    right:calc(var(--mobile-contact-inset) + env(safe-area-inset-right));
    bottom:calc(var(--mobile-contact-inset) + env(safe-area-inset-bottom));
    z-index:50;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:var(--mobile-contact-size);
    height:var(--mobile-contact-size);
    padding:0;
    border:1px solid var(--line-strong);
    border-radius:50%;
    background:var(--surface);
    color:var(--accent);
    box-shadow:none;
  }
  .mobile-contact:hover,.mobile-contact:focus-visible{border-color:var(--accent);color:var(--accent-ink)}
  .mobile-contact[hidden]{display:none}

  /* Short phone viewports (a 320x568 device) still need the call-to-action
     above the fold, so the stack tightens with the available height. */
  .hero{padding-top:calc(var(--header-h) + clamp(10px,2.4svh,20px))}
  .hero-grid{gap:clamp(12px,2.4svh,20px)}
  .hero h1{margin-bottom:clamp(10px,2svh,16px)}
  .hero-lead{margin-bottom:clamp(10px,1.8svh,14px)}
  .hero-lead{max-width:none}
  .hero-directions{max-width:none}
  .hero-visual{max-width:none}
  .hero-portrait img{aspect-ratio:4/5;object-position:50% 20%}
  .hero-directions{margin-top:18px}
  .hero-directions-list a{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px 12px}
  .hero-directions-list b,.hero-directions-list a > span{grid-column:1}
  .hero-directions-list a > span{grid-row:2}
  .hero-directions-list .arw{grid-column:2;grid-row:1 / -1}

  .creds-in{padding-top:20px}
  .creds-list{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:20px}
  .fact{padding-block:0}
  .fact + .fact{border-top:0}
  .fact:nth-child(even){border-left:1px solid var(--line);padding-left:20px}
  .fact-anchor{font-family:'Segoe UI',Arial,sans-serif;font-size:clamp(21px,6vw,26px)}
  .fact b{font-family:'Segoe UI',Arial,sans-serif;font-weight:700}

  .chapter{padding-left:24px}
  .chapter-identity{gap:4px}
  .chapter-title-row{gap:10px 14px}
  .chapter-rh .chapter-mark img{width:100px}
  .chapter-vr .chapter-mark img{width:46px}
  .chapter-event .chapter-mark img{width:108px}
  .chapter-lead{font-size:14px;line-height:1.45}
  .foundation-facts li{grid-template-columns:1fr;gap:4px}
  .chapter h3{max-width:none}
  /* Single column: the photographs keep their own proportions instead of
     stretching to match a copy column that no longer sits beside them. */
  .profile-copy h2{max-width:none}
  /* One column of photographs: each frame keeps a calm landscape crop rather
     than the tall portrait proportions that suit a desktop side column. */
  /* Portrait crops are capped on a phone: a full-height frame pushes the copy
     that follows it off the screen entirely. */
  .profile-media img{aspect-ratio:auto}
  .hero-portrait img{aspect-ratio:1/1.2;object-fit:cover;object-position:50% 18%}
  .summit-media-lead img{aspect-ratio:1/1.1;object-position:50% 38%}
  .summit-gallery,.event-gallery{gap:10px}
  .contact-row{min-height:60px}
  .ftr-main{grid-template-columns:1fr;gap:28px}
  .ftr-social{gap:8px}
  .ftr-social li{flex:1 1 calc(50% - 4px)}
  .ftr-social a{width:100%;justify-content:center;padding:0 14px}
  .ftr-community{grid-template-columns:46px minmax(0,1fr);gap:12px;padding:16px 0 0;border-top:1px solid var(--line-strong);border-left:0}
  .ftr-community-mark{width:46px;height:46px}
  .ftr-community-mark img{width:42px}
  .ftr-community-link{grid-column:1 / -1}
  .ftr-documents{grid-template-columns:1fr;gap:2px;padding:14px 0 0;border-top:1px solid var(--line-strong);border-left:0}
  .ftr-documents ul{display:grid;gap:0}
  .ftr-documents li + li{border-top:1px solid var(--line)}
  .ftr .ftr-documents h2{padding-top:0;margin-bottom:4px}
  .consent{left:12px;right:12px;padding:12px 14px}
  .consent p{flex-basis:100%}
  .consent-actions{width:100%}
  .consent-actions button{flex:1 1 auto}
  /* Mobile rhythm: sections breathe, and each one opens with a hairline so the
   page reads as separated blocks rather than one continuous column. */
  .sec{padding-block:clamp(40px,8vw,56px)}
  #foundation{padding-bottom:14px}
  .sec + .sec{border-top:1px solid var(--line)}
  .found-grid,.profile-grid,.summit-grid{gap:clamp(24px,7vw,34px)}
  .contact-grid{row-gap:8px}
  .contact-grid > :first-child{margin-bottom:clamp(24px,7vw,34px)}
  .contact{padding-bottom:clamp(24px,3vw,32px)}
  .found-copy h2,.profile-copy h2,.summit-copy h2{font-size:clamp(26px,7.2vw,32px);line-height:1.12}
  .found-copy p,.profile-copy p,.summit-copy p{margin-bottom:18px}
  .foundation-facts-title{margin-top:26px}
}

@media (min-width:901px){
  .hero{display:flex;min-height:100svh;align-items:stretch;padding-top:calc(var(--header-h) + clamp(40px,5svh,56px))}
  .hero-grid{flex:1;align-items:start}
  .hero-directions{display:flex;flex:1;min-height:0;justify-content:flex-end}
  .hero-directions-list{display:grid;flex:none;width:100%;grid-template-rows:repeat(3,clamp(68px,7svh,82px))}
  .hero-directions-list li{min-height:68px}
  .hero-directions-list a{height:100%;min-height:68px}
}


@media (min-width:1081px){
  .hero-copy{
    min-height:clamp(532px,calc(100svh - var(--header-h) - clamp(40px,5svh,56px) - clamp(60px,8svh,100px)),900px);
    justify-content:space-between;
  }
  .hero h1,.hero-lead,.hero-directions{margin:0}
  .hero-directions{display:block;flex:none}
}

@media (min-width:901px) and (max-width:959px){
  .hero-directions-list a{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
  }
  .hero-directions-list b,.hero-directions-list a > span{grid-column:1}
  .hero-directions-list a > span{grid-row:2}
  .hero-directions-list .arw{grid-column:2;grid-row:1 / -1}
}

@media (min-width:901px) and (max-height:820px){
  .hero-copy,.hero-portrait img{height:calc(100svh - var(--header-h) - 84px)}
  .hero h1{margin-bottom:0}
  .hero-lead{margin-bottom:0}
  .hero-directions{margin-top:20px}
}

@media (min-width:901px) and (max-width:959px) and (max-height:820px){
  .hero-directions-list{grid-template-rows:repeat(3,68px)}
}

@media (max-width:760px){
  /* Every project ends with a single full-width action, so the eye lands on one
     target per chapter instead of a stack of competing buttons. */
  .chapter-actions{margin-top:22px;gap:14px}
  .chapter-actions .btn{width:100%;justify-content:center}
  .chapter-detail{margin-top:18px}
}

@media (max-width:400px){
  .hero h1{font-size:clamp(34px,9.6vw,44px)}
  /* The label rides above the value on one line each, with the arrow pinned to
     the right of the value so the row stays two lines instead of three. */
  .contact-row{grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding-block:12px;min-height:0}
  .contact-row .lbl{grid-column:1 / -1}
  .contact-row .val{min-width:0;overflow-wrap:anywhere}
}

/* Very short phones (320x568) stack the two buttons vertically, which alone
   costs ~60px. Trim the tallest optional elements so the primary action still
   lands above the fold. */
@media (max-width:400px) and (max-height:600px){
  .hero h1{font-size:clamp(30px,8.6vw,38px);margin-bottom:10px}
  .hero-lead{font-size:15.5px;margin-bottom:12px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .js .rv{opacity:1;transform:none}
  .chapter-rail-dot{transition:none}
  .projects-active-brand-item{transition:none}
}

@media print{
  .hdr,.consent,.pref,.pref-backdrop{display:none !important}
  body{background:#fff}
}
