/* ============================================================
   Clémence de la Bretonnerie — shared design system
   ============================================================ */

:root {
  --ground:   oklch(0.945 0.004 85);
  --ground-2: oklch(0.965 0.003 85);
  --ground-3: oklch(0.985 0.002 85);
  --ink:      oklch(0.24 0.006 70);
  --ink-soft: oklch(0.42 0.006 70);
  --faint:    oklch(0.56 0.006 70);
  --rule:     oklch(0.80 0.005 70);
  --rule-soft:oklch(0.86 0.004 80);

  --c-green:  #5aa84b;
  --c-emerald:#2f8f5b;
  --c-cyan:   #28b6cf;
  --c-blue:   #2298d2;
  --c-yellow: #ecb83a;
  --c-amber:  #e69327;
  --c-red:    #e0492f;
  --c-magenta:#d23f86;

  --serif-display: "Space Grotesk", system-ui, sans-serif;
  --serif-body: "Spectral", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='180'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='linear'%20slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='180'%20height='180'%20filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(oklch(0.99 0 0 / 0.55) 0.5px, transparent 0.5px);
  background-size: 180px 180px, 4px 4px;
  background-attachment: fixed, scroll;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.mono-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============================================================
   The signature ring  (homepage)
   ============================================================ */
.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vh, 60px) clamp(18px, 5vw, 40px);
  overflow: hidden;
}
.ring-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(94vmin, 980px);
  aspect-ratio: 1 / 1.06;
  pointer-events: none;
  z-index: 0;
}
.ring-guide { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--rule-soft); }
.ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 5px) calc(100% - 1px), transparent 100%);
  mask: radial-gradient(closest-side, transparent calc(100% - 5px), #000 calc(100% - 5px) calc(100% - 1px), transparent 100%);
  animation: spin 110s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.leaf {
  position: absolute;
  bottom: 7%; left: 50%;
  transform: translateX(-50%);
  width: min(40vmin, 360px);
  color: oklch(0.85 0.01 150);
  opacity: 0.5;
  z-index: 0; pointer-events: none;
}

/* ============================================================
   Homepage hero
   ============================================================ */
.hero {
  position: relative; z-index: 2;
  width: min(760px, 94vw);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.id-row { display: flex; align-items: center; gap: clamp(16px, 3vmin, 26px); text-align: left; }
.portrait {
  width: clamp(96px, 11vmin, 120px);
  height: clamp(96px, 11vmin, 120px);
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  overflow: hidden;
}
.id-text { display: flex; flex-direction: column; }
.name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(30px, 5.2vmin, 52px);
  line-height: 0.98; letter-spacing: -1px;
  margin: 0; padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.role {
  font-size: clamp(15px, 2.1vw, 22px);
  color: var(--ink-soft); margin: 12px 0 0; letter-spacing: 0.2px;
  white-space: nowrap;
}
.role .sep { color: var(--faint); margin: 0 8px; }
.tagline {
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.55; color: var(--ink-soft);
  max-width: 540px; margin: clamp(22px, 4vw, 32px) 0 0;
  text-wrap: balance;
}

/* ============================================================
   Link chips + groups  (shared)
   ============================================================ */
.links { margin: clamp(28px, 5vw, 40px) 0 0; width: 100%; }
.links-rule { height: 1px; background: var(--rule); width: 100%; max-width: 560px; margin: 0 auto 26px; }
.link-group { margin-bottom: 22px; }
.link-group:last-of-type { margin-bottom: 0; }
.group-label {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 15px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--faint);
}
.group-label::before, .group-label::after { content: ""; height: 1px; width: 42px; background: var(--rule); }

.link-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip {
  --dot: var(--faint);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--rule); border-radius: 999px;
  background: var(--ground-2); color: var(--ink);
  text-decoration: none; font-size: 15.5px; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s, border-color .28s, background .28s;
}
.chip svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--ink-soft); transition: color .28s; }
.chip .label { transition: color .28s; }
.chip .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--dot); opacity: 0; transform: scale(0.4); transition: opacity .28s, transform .28s; }
.chip:hover, .chip:focus-visible {
  transform: translateY(-3px); border-color: var(--dot);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10); background: #fff; outline: none;
}
.chip:hover svg, .chip:focus-visible svg { color: var(--dot); }
.chip:hover .dot, .chip:focus-visible .dot { opacity: 1; transform: scale(1); }

.footnote { margin: 26px 0 0; font-style: italic; font-size: 15px; color: var(--faint); }

/* ============================================================
   Sub-pages
   ============================================================ */
.subnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  background: oklch(0.945 0.004 85 / 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.subnav a.home {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink-soft);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  transition: color .2s;
}
.subnav a.home:hover { color: var(--ink); }
.subnav .page-tag { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.subnav .page-tag .pdot { width: 8px; height: 8px; border-radius: 999px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.sub-hero { padding: clamp(48px, 9vw, 96px) 0 clamp(28px, 5vw, 44px); position: relative; }
.sub-hero .accent-bar { width: 56px; height: 4px; border-radius: 999px; margin-bottom: 22px; }
.sub-kicker { margin-bottom: 14px; }
.sub-title {
  font-family: var(--serif-display); font-weight: 500;
  font-size: clamp(42px, 8vw, 92px); line-height: 0.96; letter-spacing: -1.5px;
  margin: 0; text-wrap: balance;
}
.sub-intro {
  font-style: italic; font-size: clamp(19px, 2.8vw, 27px); line-height: 1.5;
  color: var(--ink-soft); max-width: 660px; margin: clamp(18px, 3vw, 26px) 0 0; text-wrap: pretty;
}
.sub-intro a, .prose a {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: var(--rule);
  transition: text-decoration-color .2s;
}
.sub-intro a:hover, .prose a:hover { text-decoration-color: currentColor; }

.section-rule { height: 1px; background: var(--rule); margin: clamp(34px, 6vw, 56px) 0; }

/* item list */
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(18px, 3vw, 30px); }
.item { display: flex; gap: 14px; align-items: flex-start; }
.item .ibullet { width: 9px; height: 9px; border-radius: 999px; flex: 0 0 auto; margin-top: 9px; }
.item h3 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 4px; letter-spacing: -0.3px; }
.item p { margin: 0; font-size: clamp(15px, 1.9vw, 17.5px); color: var(--ink-soft); line-height: 1.5; text-wrap: pretty; }

/* prose sections */
.prose { max-width: 680px; }
.prose h2 { font-family: var(--serif-display); font-weight: 500; font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.5px; margin: 0 0 14px; }
.prose p { font-size: clamp(16px, 2.1vw, 19.5px); line-height: 1.62; color: var(--ink-soft); margin: 0 0 16px; text-wrap: pretty; }

/* gallery */
/* masonry-style gallery: 3 columns, each photo keeps its true orientation */
/* uniform aligned grid: equal cells, cross-browser stable (Safari/Samsung) */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 16px); align-items: start;
}
.gallery .g-cell, .gallery .gallery-embed {
  width: 100%; margin: 0;
}
.g-cell { position: relative; aspect-ratio: 3 / 4; }
.gallery image-slot { width: 100%; height: 100%; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.g-cell image-slot { width: 100%; height: 100%; }
.gallery-embed { display: block; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* drag-to-reorder */
.g-handle {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; cursor: grab; touch-action: none;
  background: oklch(1 0 0 / 0.82); color: var(--ink);
  border: 1px solid var(--rule-soft); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s, background .2s;
}
.g-cell:hover .g-handle, .gallery-embed:hover .g-handle, .lb-item:hover .g-handle, .g-handle:focus-visible { opacity: 1; }
.g-handle:active { cursor: grabbing; }
.g-handle:hover { background: #fff; }
@media (hover: none) { .g-handle { opacity: 0.9; } }
.g-dragging { opacity: 0.45; outline: 2px dashed var(--accent, #2f8f5b); outline-offset: 2px; border-radius: 7px; }
.g-sorting { cursor: grabbing; }
.g-sorting image-slot { pointer-events: none; }

/* quote */
.pull {
  font-family: var(--serif-display); font-weight: 500;
  font-size: clamp(26px, 4.6vw, 46px); line-height: 1.18; letter-spacing: -0.5px;
  margin: 0; max-width: 880px; text-wrap: balance;
}
.pull .mark { font-size: 1.2em; vertical-align: -0.1em; }

/* outbound link button */
.out-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  text-decoration: none; font-size: 17px; color: var(--ground-3);
  background: var(--ink); border: 1px solid var(--ink);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s;
}
.out-link:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.18); background: oklch(0.18 0.006 70); }
.out-link.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.out-link.ghost:hover { background: #fff; }

/* cross-links + footer */
.crosslinks { padding: clamp(40px, 7vw, 72px) 0 0; }
.crosslinks .group-label { justify-content: flex-start; }
.crosslinks .group-label::before { display: none; }
.crosslinks .link-grid { justify-content: flex-start; }

.footer {
  margin-top: clamp(48px, 8vw, 90px);
  border-top: 1px solid var(--rule-soft);
  padding: 28px 0 40px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; justify-content: space-between;
}
.footer .sig { font-family: var(--serif-display); font-size: 22px; font-weight: 500; }
.footer-left { display: flex; flex-direction: column; gap: 5px; }
.footer-made { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); }
.footer-mail { margin-top: 4px; font-family: var(--serif-display); font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 1px; width: fit-content; transition: border-color .2s; }
.footer-mail:hover, .footer-mail:focus-visible { border-color: var(--ink); outline: none; }
.footer .mono-eyebrow a { text-decoration: none; }
.footer .mono-eyebrow a:hover { color: var(--ink); }

/* hub footer — made-in line + contact */
.hub-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(48px, 9vh, 96px); text-align: center; }
.hub-foot-line { width: 40px; height: 1px; background: var(--rule); }
.hub-foot-made { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--faint); }
.hub-foot-mail { font-family: var(--serif-display); font-size: clamp(18px, 3vw, 23px); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; transition: border-color .2s; }
.hub-foot-mail:hover, .hub-foot-mail:focus-visible { border-color: var(--ink); outline: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 700px) {
  .id-row { flex-direction: column; gap: 16px; text-align: center; }
  .name { border-bottom: none; padding-bottom: 0; white-space: normal; font-size: clamp(32px, 8.5vw, 44px); text-wrap: balance; }
  .id-text { align-items: center; }
  .name::after { content: ""; display: block; width: 84px; height: 1px; background: var(--rule); margin: 14px auto 0; }
  .ring-wrap { width: 132vmin; aspect-ratio: 1/1.2; }
  .gallery image-slot { grid-column: span 6 !important; }
  .role { white-space: normal; }
}
@media (max-width: 460px) {
  .gallery image-slot { grid-column: span 12 !important; }
  .chip { font-size: 14.5px; padding: 8px 14px 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring { animation: none; }
  .v2-arc { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   HUB  —  identity + "Beyond the work" cards
   Two layouts toggled via body[data-layout]; two card styles via
   body[data-cards]. Shares the .id-row / .name / .role / .tagline
   primitives with the original hero.
   ============================================================ */
.hub {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 96px) var(--pad) clamp(64px, 10vh, 120px);
  min-height: 100vh;
}
.hub .ring-wrap { z-index: 0; }
.hub-hero { position: relative; z-index: 1; width: 100%; }
.hub-id { position: relative; z-index: 2; }
.hub .quick {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: clamp(24px, 4vw, 36px) 0 0;
}
.hub .quick .chip { background: var(--ground-3); }

.beyond { position: relative; z-index: 2; }
.beyond-head {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--faint);
  margin: clamp(46px, 8vh, 92px) 0 clamp(22px, 3.5vw, 36px);
}
.beyond-head .bh-line { height: 1px; background: var(--rule); flex: 1; }
.beyond-head .bh-line.short { max-width: 64px; flex: 0 0 64px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.card {
  --dot: var(--faint);
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 13px;
  background: var(--ground-2); overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s, background .3s;
}
.card:hover, .card:focus-visible {
  transform: translateY(-5px); border-color: var(--dot);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10); background: #fff; outline: none;
}
.card-img { width: 100%; aspect-ratio: 5 / 4; border-radius: 0; box-shadow: none; }
.card-body {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num ico go" "title title title" "line line line";
  align-items: center;
  gap: 7px 10px;
  padding: clamp(15px, 1.6vw, 19px) clamp(16px, 1.7vw, 20px) clamp(17px, 1.8vw, 21px);
}
.card-num { grid-area: num; font-family: var(--mono); font-size: 11px; color: var(--faint); transition: color .3s; }
.card-ico { grid-area: ico; color: var(--ink-soft); display: inline-flex; transition: color .3s; justify-self: start; }
.card-title { grid-area: title; font-family: var(--serif-display); font-weight: 600; font-size: clamp(20px, 2.3vw, 25px); letter-spacing: -0.4px; margin: 2px 0 0; line-height: 1.05; }
.card-line { grid-area: line; margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.card-go { grid-area: go; color: var(--faint); display: inline-flex; opacity: 0; transform: translateX(-5px); transition: opacity .3s, transform .3s, color .3s; }
.card { position: relative; }
.card-soon {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; line-height: 1;
  background: oklch(0.99 0 0 / 0.86); color: var(--ink-soft);
  border: 1px solid var(--rule-soft); backdrop-filter: blur(4px);
}
.card:hover .card-num, .card:focus-visible .card-num { color: var(--dot); }
.card:hover .card-ico, .card:focus-visible .card-ico { color: var(--dot); }
.card:hover .card-go, .card:focus-visible .card-go { opacity: 1; transform: none; color: var(--dot); }

/* ---- compact card style (thumbnail beside text) ---- */
body[data-cards="compact"] .card-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
body[data-cards="compact"] .card { flex-direction: row; align-items: stretch; gap: 0; }
body[data-cards="compact"] .card-img { width: clamp(96px, 11vw, 116px); aspect-ratio: 1; flex: 0 0 auto; align-self: stretch; height: auto; }
body[data-cards="compact"] .card-body { flex: 1; grid-template-areas: "num ico go" "title title title" "line line line"; }

/* hub corner logo */
.hub-logo {
  position: absolute; top: clamp(18px, 3vw, 32px); right: clamp(18px, 3vw, 32px);
  z-index: 5;
  width: clamp(72px, 8.5vw, 96px);
  height: clamp(72px, 8.5vw, 96px);
  display: block; object-fit: contain;
  opacity: 0.82;
  mix-blend-mode: multiply;
  transition: opacity .25s;
}
.hub-logo:hover { opacity: 1; }
@media (max-width: 700px) { .hub-logo { display: none; } }

/* ---- centered layout (signature ring) ---- */
body[data-layout="centered"] .hub { display: flex; flex-direction: column; align-items: center; text-align: center; }
body[data-layout="centered"] .hub-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: min(96vh, 1180px); overflow: hidden;
}
body[data-layout="centered"] .hub .ring-wrap { width: min(80vw, 980px); aspect-ratio: 1 / 1; }
body[data-layout="centered"] .hub-id { width: min(620px, 72vw); display: flex; flex-direction: column; align-items: center; }
body[data-layout="centered"] .hub .id-row { text-align: left; }
body[data-layout="centered"] .hub .tagline { margin-top: clamp(22px, 4vw, 32px); }
body[data-layout="centered"] .hub .quick { justify-content: center; }
body[data-layout="centered"] .beyond { width: 100%; max-width: 1080px; }
body[data-layout="centered"] .beyond-head .bh-line { flex: 1; max-width: 130px; }
body[data-layout="centered"] .beyond-head .bh-line.short { flex: 1; max-width: 130px; }
body[data-layout="centered"] .beyond-head { justify-content: center; margin-top: clamp(8px, 2vh, 28px); }

/* ---- editorial layout (asymmetric split, no ring) ---- */
body[data-layout="editorial"] .hub {
  display: grid;
  grid-template-columns: minmax(290px, 36%) 1fr;
  gap: clamp(34px, 5vw, 84px);
  align-items: start;
  max-width: 1280px;
  text-align: left;
}
body[data-layout="editorial"] .ring-wrap { display: none; }
body[data-layout="editorial"] .hub-hero {
  position: sticky; top: clamp(40px, 7vh, 96px);
}
body[data-layout="editorial"] .hub-id {
  display: flex; flex-direction: column; align-items: flex-start;
}
body[data-layout="editorial"] .hub .id-row { flex-direction: column; align-items: flex-start; gap: 20px; }
body[data-layout="editorial"] .hub .name { border-bottom: none; padding-bottom: 0; font-size: clamp(38px, 4.4vw, 60px); }
body[data-layout="editorial"] .hub .id-text { gap: 6px; }
body[data-layout="editorial"] .hub .tagline { margin-top: 18px; max-width: 420px; text-align: left; }
body[data-layout="editorial"] .hub .quick { justify-content: flex-start; }
body[data-layout="editorial"] .beyond-head { margin-top: 0; }
body[data-layout="editorial"] .beyond-head .bh-line:last-child { max-width: 130px; }
body[data-layout="editorial"] .card-grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
body[data-layout="editorial"][data-cards="compact"] .card-grid { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  body[data-layout="editorial"] .hub { grid-template-columns: 1fr; gap: clamp(34px, 6vw, 56px); }
  body[data-layout="editorial"] .hub-hero { position: static; }
  body[data-layout="editorial"] .hub .id-row { flex-direction: row; align-items: center; }
}
@media (max-width: 540px) {
  body[data-layout="editorial"] .hub .id-row { flex-direction: column; align-items: flex-start; }
  body[data-cards="compact"] .card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Signature thread line (top of every sub-page)
   ============================================================ */
.thread { height: 2px; width: 100%; opacity: 0.92; }

/* block / section labels */
.block-label { display: flex; align-items: center; gap: 11px; margin: clamp(26px, 4vw, 40px) 0 16px; }
.block-label .bl-dash { width: 24px; height: 2px; border-radius: 2px; flex: 0 0 auto; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 5vw, 44px); }

/* ============================================================
   Before / after slider
   ============================================================ */
.ba {
  position: relative; width: 100%;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  --pos: 50%;
  touch-action: none; user-select: none;
  background: var(--ground-2);
}

/* before/after flanked by two side photos (sides ≈ 80% of center, centered) */
.ba-row {
  display: grid; grid-template-columns: 0.8fr 1fr 0.8fr;
  align-items: center; gap: clamp(10px, 2vw, 22px);
  max-width: 1040px; margin: 0 auto;
}
.ba-row .ba { width: 100%; max-width: none; margin: 0; }
.ba-side {
  position: relative; width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
@media (max-width: 640px) {
  .ba-row { grid-template-columns: 1fr 1fr; align-items: start; }
  .ba-row .ba { grid-column: 1 / -1; order: -1; max-width: 420px; margin: 0 auto; }
  .ba-side { aspect-ratio: 4 / 5; height: auto; }
}
.ba-layer { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.ba-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag {
  position: absolute; bottom: 12px; z-index: 4;
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #fff; background: rgba(20,18,16,0.62);
  padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
  pointer-events: none;
}
.ba-tag-b { left: 12px; }
.ba-tag-a { right: 12px; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 5;
  width: 2px; background: #fff; transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.10);
  cursor: ew-resize; touch-action: none;
}
.ba-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--rule);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: grid; place-items: center; cursor: ew-resize; padding: 0;
}
.ba-handle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ba-grip { display: flex; align-items: center; color: var(--ink); }
.ba-grip svg:first-child { transform: rotate(180deg); margin-right: -7px; }
.ba-dragging { cursor: ew-resize; }

/* ============================================================
   Captioned photo story
   ============================================================ */
.photo-story { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2.2vw, 26px); }
.ps-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ps-fig image-slot { width: 100%; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.ps-fig figcaption { font-size: clamp(14.5px, 1.7vw, 16.5px); line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.ps-tag { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 5px; }

/* ============================================================
   Horizontal photo strip
   ============================================================ */
.photo-strip {
  display: flex; gap: clamp(12px, 1.6vw, 18px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 0 14px; margin: 4px 0 0;
  scrollbar-width: thin;
}
.photo-strip image-slot {
  flex: 0 0 clamp(190px, 26vw, 268px);
  scroll-snap-align: start; height: auto;
  border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ============================================================
   SoundCloud embeds
   ============================================================ */
.embeds { display: grid; gap: clamp(14px, 2vw, 22px); }
.sc-embed { margin: 0; }
.sc-embed iframe { display: block; border-radius: 10px; border: 1px solid var(--rule); background: var(--ground-3); }
.sc-embed figcaption { margin-top: 10px; }

/* Instagram reel — vertical player, centred, capped so it reads like a phone */
.ig-embed { margin: 0; display: flex; flex-direction: column; align-items: center; }
.ig-embed iframe { display: block; width: 100%; max-width: 380px; border-radius: 12px; border: 1px solid var(--rule); background: var(--ground-3); }
.ig-embed figcaption { margin-top: 10px; text-align: center; }

/* embedded PDF (résumé, references) */
.pdf-embed { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.pdf-frame { width: 100%; height: min(118vh, 1080px); border: 1px solid var(--rule); border-radius: 8px; background: var(--ground-3); box-shadow: 0 2px 14px rgba(0,0,0,0.06); }
.pdf-open { align-self: flex-start; white-space: nowrap; }
.pdf-pages { display: flex; flex-direction: column; gap: 16px; min-height: 200px; }
.pdf-page { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 8px; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,0.06); display: block; }
.pdf-loading { color: var(--faint); padding: 28px 0; }

/* coming soon */
.coming-soon {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: clamp(34px, 7vw, 72px) 0;
}
.cs-badge { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); }
.cs-inline {
  font-family: var(--mono); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--faint);
}
.tt-none { text-transform: none; }
.prose p .cs-inline { display: inline-block; }

/* ============================================================
   Gigs / events list
   ============================================================ */
.gigs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.gig { border-top: 1px solid var(--rule-soft); }
.gig:last-child { border-bottom: 1px solid var(--rule-soft); }
.gig-link {
  display: grid; grid-template-columns: clamp(120px, 22%, 190px) 1fr auto;
  align-items: center; gap: clamp(14px, 3vw, 32px);
  padding: clamp(16px, 2.2vw, 22px) 4px; text-decoration: none; color: var(--ink);
  transition: padding-left .25s cubic-bezier(.2,.7,.3,1);
}
a.gig-link:hover, a.gig-link:focus-visible { padding-left: 12px; outline: none; }
.gig-date {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft);
}
.gig-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.gig-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gig-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(18px, 2.1vw, 23px); letter-spacing: -0.3px; line-height: 1.1; }
.gig-venue { font-size: 14px; color: var(--faint); }
.gig-go { color: var(--faint); display: inline-flex; transition: color .25s, transform .25s; }
a.gig-link:hover .gig-go { color: var(--dot, var(--ink)); transform: translateX(3px); }
.gig { --dot: var(--c-red); }
@media (max-width: 560px) {
  .gig-link { grid-template-columns: 1fr auto; row-gap: 6px; }
  .gig-date { grid-column: 1 / -1; }
}.cs-dot { width: 9px; height: 9px; border-radius: 999px; }
.cs-line {
  margin: 0; font-family: var(--serif-display); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 3vw, 30px); line-height: 1.3; color: var(--faint); text-wrap: balance;
}

/* ============================================================
   Activities strip — tagline + minimalist glyph row
   ============================================================ */
.activities { padding: clamp(6px, 2vw, 16px) 0 clamp(10px, 2vw, 20px); }
.act-tagline {
  display: flex; align-items: center; gap: 12px; margin: 0 0 clamp(18px, 3vw, 26px);
  font-family: var(--serif-display); font-style: italic; font-weight: 400;
  font-size: clamp(17px, 2.2vw, 22px); color: var(--ink-soft);
}
.act-rule { width: 28px; height: 2px; border-radius: 2px; flex: 0 0 auto; }
.act-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(9, 1fr); gap: clamp(8px, 1.4vw, 16px);
}
.act-item {
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
}
.act-ico {
  width: 54px; height: 54px; display: grid; place-items: center; color: var(--ink);
  border: 1px solid var(--rule-soft); border-radius: 50%;
  background: var(--ground-3); transition: transform .2s, border-color .2s;
}
.act-item:hover .act-ico { transform: translateY(-2px); border-color: var(--ink-soft); }
.act-label { font-size: 12px; color: var(--faint); letter-spacing: 0.1px; line-height: 1.2; }
@media (max-width: 820px) { .act-row { grid-template-columns: repeat(5, 1fr); row-gap: 18px; } }
@media (max-width: 460px) { .act-row { grid-template-columns: repeat(3, 1fr); } .act-ico { width: 48px; height: 48px; } }

/* ============================================================
   Lightbox gallery — portrait slots, click to enlarge w/ legend
   ============================================================ */
.lb-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 14px); align-items: start;
}
.lb-item { position: relative; margin: 0; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 3; }
.lb-holder { position: relative; height: 100%; }
.lb-holder image-slot { width: 100%; height: 100%; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
@media (max-width: 760px) { .lb-gallery { grid-template-columns: repeat(2, 1fr); } }
.lb-zoom {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; cursor: pointer;
  background: oklch(1 0 0 / 0.82); color: var(--ink);
  border: 1px solid var(--rule-soft); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s, background .2s;
}
.lb-holder:hover .lb-zoom, .g-cell:hover .lb-zoom, .lb-zoom:focus-visible { opacity: 1; }
.lb-zoom:hover { background: #fff; }
.lb-legend { font-size: 14px; color: var(--ink-soft); line-height: 1.5; text-wrap: pretty; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: clamp(20px, 5vw, 64px);
  background: oklch(0.16 0.004 70 / 0.9); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100%; }
.lb-img {
  max-width: min(86vw, 720px); max-height: 76vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lb-cap {
  font-family: var(--serif-display); font-style: italic; font-size: clamp(15px, 2vw, 19px);
  color: oklch(0.97 0 0); text-align: center; max-width: 60ch; text-wrap: balance;
}
.lb-close {
  position: fixed; top: 20px; right: 22px; z-index: 2001;
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border-radius: 12px; color: var(--ink); background: var(--ground-3);
  border: 1px solid var(--rule); font-size: 24px; line-height: 1;
}
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 2001;
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  border-radius: 999px; color: var(--ink); background: var(--ground-3);
  border: 1px solid var(--rule); transition: background .2s, transform .2s;
}
.lb-nav:hover { background: #fff; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-prev svg { transform: rotate(180deg); }
.lb-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 700px) {
  .lb-nav { width: 42px; height: 42px; bottom: 22px; top: auto; transform: none; }
  .lb-prev { left: 50%; margin-left: -52px; }
  .lb-next { right: 50%; margin-right: -52px; }
}
@media (prefers-reduced-motion: reduce) { .lightbox { backdrop-filter: none; } }

/* ============================================================
   References — testimonials grouped by company
   ============================================================ */
.ref-group {
  display: grid; grid-template-columns: 220px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(26px, 4vw, 40px) 0;
  border-top: 1px solid var(--rule-soft);
}
.ref-group:first-of-type { border-top: none; }
.ref-rail { position: sticky; top: 92px; align-self: start; height: fit-content; }
.ref-logo { width: 120px; margin-bottom: 16px; }
.ref-logo image-slot { width: 120px; height: 64px; }
.ref-company { font-family: var(--serif-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 25px); letter-spacing: -0.4px; margin: 0 0 6px; line-height: 1.08; }
.ref-role { margin: 0 0 4px; font-size: 15px; color: var(--ink-soft); }
.ref-dates { color: var(--faint); }

.ref-list { display: flex; flex-direction: column; gap: 16px; }
.ref-card {
  background: var(--ground-3); border: 1px solid var(--rule-soft); border-radius: 12px;
  padding: clamp(18px, 2.4vw, 26px);
}
.ref-byline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 11px; margin-bottom: 12px; }
.ref-tick { width: 18px; height: 2px; border-radius: 2px; align-self: center; }
.ref-name { font-weight: 600; font-size: 16px; color: var(--ink); white-space: nowrap; }
.ref-title { font-size: 14px; color: var(--faint); }
.ref-quote {
  margin: 0; font-family: var(--serif-display); font-weight: 400; font-style: italic;
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.62; color: var(--ink-soft);
  text-wrap: pretty;
}
.ref-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ref-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 500; line-height: 1;
  background: var(--ink); color: var(--ground-3); border: 1px solid var(--ink);
  transition: opacity .2s, background .2s, color .2s, border-color .2s;
}
.ref-btn:hover { opacity: .9; }
.ref-btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.ref-btn.ghost:hover { border-color: var(--ink); opacity: 1; }
.ref-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 700px) {
  .ref-group { grid-template-columns: 1fr; gap: 18px; padding: 26px 0; }
  .ref-rail { position: static; display: flex; align-items: center; gap: 16px; }
  .ref-logo { margin-bottom: 0; }
}
@media (max-width: 700px) { .pdf-frame { height: 78vh; } }

/* reel sitting inside the photo gallery — fill the grid cell, vertical */
.gallery-embed { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.gallery-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border: 1px solid var(--rule); border-radius: 6px; }

/* ============================================================
   Collaborative playlist block
   ============================================================ */
.playlist {
  border: 1px solid var(--rule); border-radius: 16px;
  background: var(--ground-2);
  padding: clamp(22px, 3vw, 36px);
}
.pl-title { font-family: var(--serif-display); font-weight: 500; font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.5px; margin: 10px 0 8px; }
.pl-note { margin: 0; font-size: clamp(15px, 2vw, 18px); line-height: 1.55; color: var(--ink-soft); max-width: 560px; text-wrap: pretty; }
.pl-list { list-style: none; padding: 0; margin: clamp(18px, 3vw, 26px) 0 0; }
.pl-track { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule-soft); }
.pl-track:first-child { border-top: 1px solid var(--rule-soft); }
.pl-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.pl-name { font-size: clamp(15.5px, 2vw, 18px); }
.pl-by { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.6px; color: var(--faint); }
.pl-add { margin-top: clamp(20px, 3vw, 28px); }

/* split layout: playlist + local sketch pad */
.playlist--split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(22px, 3vw, 40px); align-items: start; }
.playlist--split .pl-main { min-width: 0; }
.sketch { display: flex; flex-direction: column; gap: 10px; }
.sketch-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sketch-clear {
  appearance: none; cursor: pointer; flex: 0 0 auto;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-soft); background: var(--ground-3); border: 1px solid var(--rule);
  border-radius: 999px; padding: 7px 13px; transition: color .2s, border-color .2s, background .2s;
}
.sketch-clear:hover, .sketch-clear:focus-visible { color: var(--ink); border-color: var(--ink-soft); background: #fff; outline: none; }
.sketch-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--faint); text-wrap: pretty; }
.sketch-stage { position: relative; border: 1px solid var(--rule); border-radius: 12px; background: var(--ground-3); overflow: hidden; aspect-ratio: 4 / 3; }
.sketch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; display: block; }

@media (max-width: 760px) {
  .playlist--split { grid-template-columns: 1fr; }
  .sketch-stage { aspect-ratio: 16 / 10; }
}

@media (max-width: 700px) {
  .photo-story .ps-fig { grid-column: span 12 !important; }
}
@media (max-width: 460px) {
  .beyond-head .bh-line { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .chip, .out-link, .ba-handle { transition: none; }
}

/* ============================================================
   Scroll cue (hub hero → "Beyond the work")
   ============================================================ */
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(16px, 4vh, 38px);
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: var(--faint);
  font-family: var(--mono); font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  transition: opacity .4s, color .25s;
}
.scroll-cue svg { width: 22px; height: 22px; animation: scrollBob 1.8s ease-in-out infinite; }
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--ink); outline: none; }
.scroll-cue.hide { opacity: 0; pointer-events: none; }
@keyframes scrollBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue svg { animation: none; } }

/* back to top (bottom of hub) */
.back-top {
  display: inline-flex; align-items: center; gap: 9px;
  margin: clamp(40px, 7vh, 72px) auto 0;
  padding: 11px 18px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft);
  background: var(--ground-3); border: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  transition: color .2s, border-color .2s, background .2s;
}
.back-top svg { width: 16px; height: 16px; }
.back-top:hover, .back-top:focus-visible { color: var(--ink); border-color: var(--ink-soft); background: #fff; outline: none; }
body[data-layout="centered"] .back-top { display: flex; width: fit-content; }

/* ============================================================
   Mobile burger + slide-in nav drawer (hub)
   ============================================================ */
.burger {
  position: fixed; top: 14px; left: 14px; z-index: 1300;
  width: 46px; height: 46px; display: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  background: var(--ground-3); border: 1px solid var(--rule); border-radius: 13px;
  cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.burger span {
  width: 19px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .26s cubic-bezier(.2,.7,.3,1), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 1280;
  background: rgba(22,20,18,0.34); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed; top: 0; left: 0; height: 100%; z-index: 1290;
  width: min(84vw, 322px);
  background: var(--ground-2); border-right: 1px solid var(--rule);
  box-shadow: 0 0 50px rgba(0,0,0,0.16);
  transform: translateX(-100%); transition: transform .3s cubic-bezier(.2,.7,.3,1);
  padding: 64px 22px 28px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 24px;
}
.nav-drawer.open { transform: none; }
.nav-drawer .nav-sig {
  font-family: var(--serif-display); font-weight: 500; font-size: 21px;
  letter-spacing: -0.4px; line-height: 1.05; margin: 0; text-wrap: balance;
}
.nav-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--ground-3); border: 1px solid var(--rule); color: var(--ink);
  font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.nav-group-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--faint); margin: 0 0 8px;
}
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 6px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--serif-display); font-size: 18.5px; font-weight: 500;
  transition: padding-left .24s cubic-bezier(.2,.7,.3,1);
}
.nav-link:last-child { border-bottom: none; }
.nav-link .nl-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.nav-link svg { width: 18px; height: 18px; color: var(--ink-soft); flex: 0 0 auto; }
.nav-link:hover, .nav-link:focus-visible { padding-left: 12px; outline: none; }

/* ============================================================
   Mobile refinements for the centered hub — placed last so they
   win over the HUB rules defined above (equal specificity).
   ============================================================ */
@media (max-width: 700px) {
  /* strip hub padding — hub-hero owns all vertical spacing */
  body[data-layout="centered"] .hub { padding-top: 0; padding-bottom: 0; min-height: 0; }

  /* hero: centered column; ring is absolute behind the text block;
     portrait+name+role+tagline stay in hub-id (inside ring);
     CTAs and scroll-cue are flex children below hub-id */
  body[data-layout="centered"] .hub-hero {
    min-height: 100svh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    overflow: visible; position: relative;
    padding: 6vh 22px 48px;
    gap: 0;
  }
  body[data-layout="centered"] .hub-id {
    width: 100%; max-width: 100%;
    display: flex; flex-direction: column; align-items: center;
    z-index: 2; position: relative;
  }
  body[data-layout="centered"] .hub .id-row {
    flex-direction: column; align-items: center; text-align: center;
    width: 100%; gap: 14px;
  }
  body[data-layout="centered"] .hub .id-text { width: 100%; align-items: center; }

  /* portrait */
  body[data-layout="centered"] .hub .portrait { width: 110px; height: 110px; position: relative; z-index: 2; }

  /* name: large, centered */
  body[data-layout="centered"] .hub .name {
    width: 100%; text-align: center; white-space: normal;
    border-bottom: none; padding-bottom: 0;
    font-size: clamp(28px, 8vw, 38px); line-height: 1.02; text-wrap: balance;
  }

  /* ring: absolute, centered on hub-hero, tall oval wrapping the text block */
  body[data-layout="centered"] .hub .ring-wrap {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) translateY(-4vh);
    width: min(90vw, 348px); aspect-ratio: 1 / 1;
  }
  body[data-layout="centered"] .hub .ring { opacity: 0.55; }
  body[data-layout="centered"] .hub .ring-guide { opacity: 0.55; }

  /* role: stack the two halves on their own centered lines, no middot */
  body[data-layout="centered"] .hub .role {
    white-space: normal; text-align: center; line-height: 1.34;
  }
  body[data-layout="centered"] .hub .role .role-part { display: block; }
  body[data-layout="centered"] .hub .role .sep { display: none; }

  body[data-layout="centered"] .hub .tagline { max-width: 100%; margin-bottom: 0; font-size: clamp(14px, 3.6vw, 17px); }

  /* CTAs: below hub-id, with generous breathing room */
  body[data-layout="centered"] .hub .quick {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; width: 100%; max-width: 320px;
    margin: clamp(40px, 7vh, 60px) auto 0;
    position: relative; z-index: 2;
  }
  body[data-layout="centered"] .hub .quick .chip {
    justify-content: center; min-width: 0;
    padding: 9px 10px; font-size: 14px; gap: 7px;
  }

  /* clear space above "Beyond the work" */
  body[data-layout="centered"] .beyond { margin-top: clamp(40px, 8vh, 68px); }
  body[data-layout="centered"] .hub .beyond-head { margin-top: 0; }

  /* show the burger */
  .burger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer, .nav-scrim, .burger span { transition: none; }
}
