/* Rebecca Flynn - app shell
   Palette pulled from the studio's own brand: the plum of the logo and the lilac-grey of Rebecca's portrait backdrop. */
:root {
  --plaster: #F5F1F4;
  --surface: #FFFFFF;
  --lilac: #EBE2E9;
  --lilac-deep: #DDD0D8;
  --ink: #24182A;
  --graphite: #66596B;
  --plum: #722982;
  --plum-press: #5C1F6A;
  --plum-tint: #F3E9F4;
  --hair: rgba(36, 24, 42, 0.1);
  --hair-strong: rgba(36, 24, 42, 0.16);

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

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --bar-h: 52px;
  --tab-h: 58px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--plaster);
  scroll-padding-top: calc(var(--safe-t) + var(--bar-h) + 56px);
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
svg { width: 24px; height: 24px; flex: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2.5px solid var(--plum); outline-offset: 3px; border-radius: 10px; }

.skip {
  position: fixed; left: 12px; top: calc(var(--safe-t) + 8px); z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- App bar ---------- */
.appbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  padding: var(--safe-t) calc(var(--safe-r) + 8px) 0 calc(var(--safe-l) + 12px);
  background: rgba(245, 241, 244, 0);
  border-bottom: 0.5px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}
.appbar.is-compact {
  background: rgba(245, 241, 244, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom-color: var(--hair-strong);
}
.appbar.is-flush { border-bottom-color: transparent; }
.appbar__inner { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.appbar__mark { display: block; border-radius: 9px; }
.appbar__mark img { width: 32px; height: 32px; border-radius: 9px; }
.appbar__title {
  position: absolute; left: 50%; transform: translate(-50%, 4px);
  font-weight: 500; font-size: 17px; letter-spacing: 0.005em;
  opacity: 0; transition: opacity 0.18s, transform 0.18s var(--ease);
  white-space: nowrap; pointer-events: none;
}
.appbar.is-compact .appbar__title { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Buttons ---------- */
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-grid; place-items: center; flex: none;
  text-decoration: none; transition: transform 0.12s var(--ease), background-color 0.12s;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn--tint { color: var(--plum); }
.icon-btn--tint { background: var(--plum-tint); width: 40px; height: 40px; margin: 2px; }
.icon-btn--ghost { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); width: 40px; height: 40px; }
.icon-btn--soft { background: rgba(36, 24, 42, 0.07); color: var(--ink); width: 34px; height: 34px; margin: 5px; }
.icon-btn--soft svg { width: 18px; height: 18px; }
.icon-btn--glass { background: rgba(0, 0, 0, 0.28); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.icon-btn:active { transform: scale(0.9); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 16.5px; letter-spacing: 0.005em; text-decoration: none;
  transition: transform 0.12s var(--ease), background-color 0.15s;
  -webkit-user-select: none; user-select: none;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(0.96); }
.btn--plum { background: var(--plum); color: #fff; }
.btn--plum:active { background: var(--plum-press); }
.btn--light { background: #fff; color: var(--plum); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.textlink {
  display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 2px;
  color: var(--plum); font-weight: 500; font-size: 16px; text-decoration: none;
}
.textlink svg { width: 18px; height: 18px; }
.textlink:active { opacity: 0.55; }

/* ---------- Views ---------- */
.views {
  padding: calc(var(--safe-t) + var(--bar-h)) calc(var(--safe-r) + var(--gutter)) calc(var(--safe-b) + var(--tab-h) + 32px) calc(var(--safe-l) + var(--gutter));
  max-width: 720px; margin: 0 auto;
}
.view.is-entering { animation: view-in 0.24s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.largetitle { padding: 6px 0 18px; }
.largetitle__h { font-weight: 400; font-size: 34px; line-height: 1.08; letter-spacing: -0.012em; }
.largetitle__sub { text-wrap: balance; margin-top: 8px; color: var(--graphite); font-size: 16px; line-height: 1.45; max-width: 34ch; }
.home-wordmark { font-weight: 300; font-size: 36px; line-height: 1.04; letter-spacing: -0.01em; }
.home-wordmark span { display: block; }
.home-wordmark span:first-child { color: var(--plum); font-weight: 400; }
.home-wordmark span:last-child { color: #8A8189; }

/* ---------- Stories ---------- */
.stories {
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--gutter)) 18px; padding: 2px var(--gutter) 4px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.stories::-webkit-scrollbar { display: none; }
.story-ring {
  display: grid; justify-items: center; gap: 6px; flex: none; width: 72px;
  scroll-snap-align: start; scroll-margin-left: var(--gutter);
  font-size: 12.5px; font-weight: 500; color: var(--ink); text-align: center;
  transition: transform 0.14s var(--ease);
}
.story-ring:active { transform: scale(0.93); }
.story-ring__ring {
  width: 70px; height: 70px; border-radius: 50%; padding: 2.5px;
  background: conic-gradient(from 200deg, var(--plum), #B07BBB, var(--plum));
}
.story-ring.is-seen .story-ring__ring { background: var(--lilac-deep); }
.story-ring__img { width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid var(--plaster); object-fit: cover; }
.story-ring:focus-visible { outline-offset: 2px; border-radius: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; border-radius: 26px; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 5; background: #6d5a52; color: #fff;
  display: flex; align-items: flex-end;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24, 12, 28, 0) 22%, rgba(24, 12, 28, 0.5) 48%, rgba(24, 12, 28, 0.86) 100%);
}
.hero__body { padding: 22px 20px 20px; display: grid; gap: 10px; justify-items: start; }
.hero__h { font-weight: 400; font-size: 27px; line-height: 1.14; letter-spacing: -0.008em; max-width: 17ch; text-wrap: balance; }
.hero__p { font-size: 16px; line-height: 1.45; opacity: 0.92; max-width: 30ch; }
.hero .btn { margin-top: 6px; }

/* ---------- Blocks ---------- */
.block { margin-top: 36px; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; }
.block__h { font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.004em; }
.block__tools { display: flex; align-items: center; gap: 8px; }
.block__lede { color: var(--graphite); margin: -2px 0 14px; max-width: 46ch; }
.group__h { font-weight: 500; font-size: 15px; color: var(--graphite); margin: 0 4px 8px; }
.only-fine { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 600px) { .only-fine { display: inline-grid; } }

/* ---------- Chips ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair-strong);
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background-color 0.15s, color 0.15s, transform 0.12s var(--ease);
  position: relative;
}
/* extend the hit area to 44px without growing the chip */
.chip::after { content: ""; position: absolute; inset: -3px 0; }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Rails (carousels) ---------- */
.rail {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
  scroll-padding-inline: var(--gutter);
}
.rail::-webkit-scrollbar { display: none; }
.card {
  flex: none; width: 76%; max-width: 320px; scroll-snap-align: start;
  text-decoration: none; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; align-self: start;
  transition: transform 0.14s var(--ease);
}
.card:active { transform: scale(0.97); }
.card__media { display: block; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--lilac); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__badge {
  position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px 5px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  background: rgba(255, 255, 255, 0.9); color: var(--plum);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card__badge svg { width: 15px; height: 15px; }
.card__title { display: block; margin-top: 10px; font-weight: 500; font-size: 16.5px; line-height: 1.3; }
.card__meta { display: block; margin-top: 2px; color: var(--graphite); font-size: 14px; }
.rail-empty { color: var(--graphite); padding: 24px 0; }

.rail--sketch .sketch { flex: none; width: 84%; max-width: 420px; scroll-snap-align: start; }
.sketch img { width: 100%; aspect-ratio: 1024 / 727; object-fit: cover; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); }

/* ---------- Segmented control ---------- */
.segmented {
  --n: 4; --i: 0;
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr);
  padding: 3px; border-radius: 12px; background: var(--lilac); margin-bottom: 12px;
}
.segmented::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / var(--n)); border-radius: 9px; background: var(--surface);
  box-shadow: 0 1px 3px rgba(36, 24, 42, 0.14), 0 0 0 0.5px rgba(36, 24, 42, 0.06);
  transform: translateX(calc(100% * var(--i)));
  transition: transform 0.28s var(--ease);
}
.seg {
  position: relative; z-index: 1; min-height: 38px; border-radius: 9px;
  font-size: 15px; font-weight: 500; color: var(--graphite);
  transition: color 0.2s;
}
.seg[aria-selected="true"] { color: var(--ink); }
.seg:active { opacity: 0.6; }

/* ---------- Before / after ---------- */
.ba-card { background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); }
.ba {
  position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--lilac);
  touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: ew-resize;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: #fff; background: rgba(24, 12, 28, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none;
}
.ba__tag--before { left: 12px; }
.ba__tag--after { right: 12px; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15); pointer-events: none; }
.ba__handle {
  position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--plum);
  box-shadow: 0 4px 16px rgba(24, 12, 28, 0.28); transition: transform 0.14s var(--ease);
}
.ba__handle svg { width: 22px; height: 22px; }
.ba.is-dragging .ba__handle { transform: scale(1.1); }
.ba__handle:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 50%; }
.ba.is-swapping .ba__img { animation: fade-in 0.3s var(--ease); }
@keyframes fade-in { from { opacity: 0.2; } to { opacity: 1; } }
.ba-card__foot {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 16px; min-height: 60px; text-align: left;
}
.ba-card__foot:active { background: var(--plaster); }
.ba-card__foot > svg { color: var(--graphite); width: 20px; height: 20px; }
.ba-card__title { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; }
.ba-card__meta { display: block; color: var(--graphite); font-size: 14px; }

/* ---------- Quotes ---------- */
.quotes {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
}
.quotes::-webkit-scrollbar { display: none; }
.quotes:focus-visible { outline-offset: -2px; }
.quote {
  flex: none; width: calc(100% - 20px); scroll-snap-align: start;
  background: var(--surface); border-radius: 22px; padding: 22px 20px 18px;
  box-shadow: 0 0 0 1px var(--hair); display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
}
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.48; color: var(--ink); }
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption { font-size: 14px; font-weight: 500; color: var(--graphite); }
.dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--lilac-deep); transition: background-color 0.2s, width 0.2s; }
.dots span.is-on { background: var(--plum); width: 18px; border-radius: 4px; }

/* ---------- Lists (iOS grouped) ---------- */
.list { background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); }
.list > li + li > .row { box-shadow: inset 0 0.5px 0 var(--hair-strong); }
.list > li.row + li.row { border-top: 0.5px solid var(--hair-strong); }
.row {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 14px 10px 16px;
  text-decoration: none; color: var(--ink);
}
a.row:active { background: var(--plaster); }
.row__num {
  width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum-tint); color: var(--plum); font-weight: 500; font-size: 15px;
}
.row__icon { width: 22px; height: 22px; color: var(--plum); }
.row__ico-wrap { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--plum-tint); color: var(--plum); flex: none; }
.row__ico-wrap svg { width: 20px; height: 20px; }
.row__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.row__title { font-weight: 500; font-size: 16px; line-height: 1.3; }
.row__sub { color: var(--graphite); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.row__chev { width: 18px; height: 18px; color: #A79DAA; }
.list--plain { background: none; box-shadow: none; border-radius: 0; counter-reset: s; display: grid; gap: 2px; }
.list--plain li { counter-increment: s; display: flex; align-items: baseline; gap: 12px; padding: 6px 4px; }
.list--plain li::before { content: counter(s); color: var(--plum); font-weight: 500; min-width: 14px; }

/* ---------- Meet card ---------- */
.meet {
  display: grid; grid-template-columns: 38% 1fr; background: var(--lilac); border-radius: 24px; overflow: hidden;
  text-decoration: none; color: var(--ink); transition: transform 0.14s var(--ease);
}
.meet:active { transform: scale(0.98); }
.meet__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; min-height: 250px; }
.meet__body { padding: 18px 16px 10px; display: flex; flex-direction: column; gap: 8px; }
.meet__h { font-weight: 500; font-size: 20px; }
.meet__quote { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.42; }
.meet__creds { font-size: 13.5px; color: var(--graphite); }
.meet__link { margin-top: auto; }

/* ---------- Footer ---------- */
.foot { margin-top: 44px; padding: 8px 0 8px; display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--graphite); font-size: 14px; }
.foot img { width: 180px; opacity: 0.9; }

/* ---------- Portfolio ---------- */
.stickybar {
  position: sticky; top: calc(var(--safe-t) + var(--bar-h)); z-index: 5;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px 0 0;
  background: rgba(245, 241, 244, 0.86);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
}
.stickybar .chips { margin: 0; }
.stickybar.is-stuck { box-shadow: 0 0.5px 0 var(--hair-strong); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 8px; }
.grid .card { width: auto; max-width: none; }
.grid .card__media { aspect-ratio: 3 / 4; border-radius: 16px; }
.grid .card__title { font-size: 15px; }
.grid .card__meta { font-size: 13px; }
.grid .card__badge { font-size: 11.5px; left: 8px; top: 8px; padding: 4px 8px 4px 6px; }
.grid .card__badge svg { width: 13px; height: 13px; }
.grid .card.is-feature { grid-column: 1 / -1; }
.grid .card.is-feature .card__media { aspect-ratio: 16 / 11; border-radius: 20px; }
.grid .card.is-feature .card__title { font-size: 17px; }

.cta-card { margin-top: 36px; padding: 24px 20px; border-radius: 24px; background: var(--plum); color: #fff; display: grid; gap: 10px; justify-items: start; }
.cta-card__h { font-weight: 400; font-size: 24px; line-height: 1.18; }
.cta-card p { opacity: 0.9; max-width: 42ch; }
.cta-card .btn { margin-top: 8px; background: #fff; color: var(--plum); }

/* ---------- Process ---------- */
.timeline { position: relative; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; position: relative; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 19.5px; top: 46px; bottom: -14px; width: 1px; background: var(--lilac-deep);
}
.step__num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum); color: #fff; font-weight: 500; font-size: 17px; margin-top: 4px;
}
.step__body { background: var(--surface); border-radius: 20px; padding: 16px 18px 18px; box-shadow: 0 0 0 1px var(--hair); }
.step__h { font-weight: 500; font-size: 20px; line-height: 1.25; }
.step__lede { margin-top: 4px; color: var(--graphite); }
.ticks { margin-top: 12px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 24px; line-height: 1.4; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.3em; width: 12px; height: 7px;
  border-left: 1.8px solid var(--plum); border-bottom: 1.8px solid var(--plum); transform: rotate(-45deg);
}
.note { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--plum-tint); color: var(--plum-press); font-size: 14.5px; line-height: 1.4; }

/* ---------- About ---------- */
.profile { display: grid; grid-template-columns: 96px 1fr; gap: 6px 16px; align-items: center; }
.profile__img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; box-shadow: 0 0 0 3px var(--plaster), 0 0 0 5px var(--plum); }
.profile__name { font-weight: 500; font-size: 22px; line-height: 1.2; }
.profile__creds { color: var(--plum); font-weight: 500; font-size: 15px; }
.profile__role { color: var(--graphite); font-size: 14.5px; }
.profile__stats {
  grid-column: 1 / -1; margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--hair);
}
.profile__stats div { display: flex; flex-direction: column-reverse; align-items: center; padding: 12px 4px; }
.profile__stats div + div { border-left: 0.5px solid var(--hair-strong); }
.profile__stats dt { font-size: 13.5px; color: var(--graphite); }
.profile__stats dd { font-weight: 500; font-size: 22px; line-height: 1.2; }
.prose { margin-top: 24px; display: grid; gap: 14px; max-width: 60ch; }
.prose__lead { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.45; }
.photo-card { background: var(--surface); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); }
.photo-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-card__body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.photo-card__h { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 18px; }
.photo-card__h svg { color: var(--plum); width: 22px; height: 22px; }
.photo-card p { color: var(--graphite); font-size: 15px; }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: start;
  padding: 0 calc(var(--safe-r) + 6px) var(--safe-b) calc(var(--safe-l) + 6px);
  height: calc(var(--tab-h) + var(--safe-b));
  background: rgba(250, 248, 250, 0.92);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  border-top: 0.5px solid var(--hair-strong);
}
.tabbar__brand, .tabbar__contact { display: none; }
.tab {
  height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: #847A88; font-size: 11px; font-weight: 500; letter-spacing: 0.01em;
  -webkit-user-select: none; user-select: none; transition: color 0.15s;
}
.tab > svg { margin: 3px 0; }
.tab svg { width: 26px; height: 26px; transition: transform 0.16s var(--ease); }
.tab:active svg { transform: scale(0.86); }
.tab[aria-current="page"] { color: var(--plum); }
.tab[aria-current="page"] svg path, .tab[aria-current="page"] svg rect, .tab[aria-current="page"] svg circle { stroke-width: 2; }
.tab:focus-visible { outline-offset: -4px; }
.tab--book { color: var(--plum); }
.tab__fab {
  width: 44px; height: 32px; border-radius: 12px; display: grid; place-items: center;
  background: var(--plum); color: #fff; transition: transform 0.14s var(--ease), background-color 0.14s;
}
.tab__fab svg { width: 21px; height: 21px; }
.tab--book:active .tab__fab { transform: scale(0.9); background: var(--plum-press); }
.tab--book:active svg { transform: none; }

/* ---------- Sheets ---------- */
dialog { color: var(--ink); }
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; padding: 0; border: 0;
  width: 100%; max-width: 640px; max-height: calc(100dvh - var(--safe-t) - 10px);
  background: transparent; overflow: visible;
}
.sheet::backdrop { background: rgba(28, 14, 32, 0); transition: background-color 0.3s; }
.sheet.is-open::backdrop { background: rgba(28, 14, 32, 0.42); }
.sheet__panel {
  display: flex; flex-direction: column; max-height: calc(100dvh - var(--safe-t) - 10px);
  background: var(--plaster); border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(28, 14, 32, 0.22);
  transform: translateY(100%); transition: transform 0.42s var(--ease-sheet);
  padding-bottom: var(--safe-b);
  will-change: transform;
  overflow: hidden;
}
.sheet.is-open .sheet__panel { transform: translateY(var(--drag, 0px)); }
.sheet.is-dragging .sheet__panel { transition: none; }
.sheet--tall .sheet__panel { height: calc(100dvh - var(--safe-t) - 10px); }
.sheet__grab { display: grid; place-items: center; height: 18px; flex: none; touch-action: none; cursor: grab; }
.sheet__grab span { width: 38px; height: 5px; border-radius: 3px; background: rgba(36, 24, 42, 0.2); }
.sheet--tall .sheet__grab { position: absolute; top: 0; left: 0; right: 0; height: 22px; z-index: 3; }
.sheet--tall .sheet__grab span { background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 6px rgba(0, 0, 0, 0.25); }
.sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 10px 6px 20px; flex: none; touch-action: none;
}
.sheet__title { font-weight: 500; font-size: 22px; line-height: 1.2; }
.sheet__head--float { position: absolute; top: 14px; right: 6px; z-index: 3; padding: 0; }
.sheet__head--float .icon-btn--soft { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 20px 24px; flex: 1; }
.sheet__body--flush { padding: 0 0 28px; }
.sheet__lede { color: var(--graphite); margin-bottom: 18px; }
.sheet .group__h { margin-top: 24px; }

.actions { display: grid; gap: 10px; }
.action {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px;
  border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--hair);
  text-decoration: none; transition: transform 0.12s var(--ease), background-color 0.12s;
}
.action:active { transform: scale(0.98); }
.action svg { width: 24px; height: 24px; color: var(--plum); }
.action__t { display: block; font-weight: 500; font-size: 17px; line-height: 1.25; }
.action__s { display: block; color: var(--graphite); font-size: 14.5px; overflow-wrap: anywhere; }
.action--primary { background: var(--plum); color: #fff; box-shadow: none; }
.action--primary svg, .action--primary .action__s { color: rgba(255, 255, 255, 0.86); }
.action--primary:active { background: var(--plum-press); }

/* Project sheet content */
.pgallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 28px 28px 0 0; overscroll-behavior-x: contain; background: var(--lilac);
}
.pgallery::-webkit-scrollbar { display: none; }
.pgallery figure { flex: none; width: 100%; scroll-snap-align: center; aspect-ratio: 4 / 3.3; background: var(--lilac); }
.pgallery img { width: 100%; height: 100%; object-fit: cover; }
.pgallery-wrap { position: relative; }
.pcount {
  position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(24, 12, 28, 0.55); color: #fff; font-size: 13px; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-variant-numeric: tabular-nums;
}
.pbody { padding: 18px 20px 0; display: grid; gap: 18px; }
.pbody__h { font-weight: 400; font-size: 27px; line-height: 1.14; letter-spacing: -0.008em; }
.pbadge { display: inline-flex; align-items: center; gap: 6px; color: var(--plum); font-weight: 500; font-size: 14.5px; margin-bottom: 6px; }
.pbadge svg { width: 18px; height: 18px; }
.pfacts { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--hair); }
.pfacts div { padding: 10px 14px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 1px; }
.pfacts div + div { border-left: 0.5px solid var(--hair-strong); }
.pfacts dt { font-size: 13px; color: var(--graphite); }
.pfacts dd { font-weight: 500; font-size: 15px; line-height: 1.3; }
.psec h3 { font-weight: 500; font-size: 18px; margin-bottom: 6px; }
.psec p + p { margin-top: 10px; }
.pchallenge { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.46; }
.pstrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; overscroll-behavior-x: contain; }
.pstrip::-webkit-scrollbar { display: none; }
.pstrip img { flex: none; height: 150px; width: auto; border-radius: 12px; scroll-snap-align: start; background: var(--lilac); object-fit: cover; }
.pcta { padding: 8px 20px 0; }
.pcta .btn { width: 100%; }

/* ---------- Story viewer ---------- */
.story {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #0d0710; color: #fff; overflow: hidden;
}
.story::backdrop { background: #0d0710; }
.story[open] { animation: story-in 0.26s var(--ease); }
@keyframes story-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.story__frame { position: relative; width: 100%; height: 100%; margin: 0 auto; overflow: hidden; touch-action: none; }
.story__media { position: absolute; inset: 0; }
.story__media .bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) brightness(0.6); }
.story__media .fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story__media .fg.is-pan { object-fit: cover; animation: story-pan var(--frame-ms, 5000ms) linear both; }
.story.is-paused .story__media .fg.is-pan { animation-play-state: paused; }
@keyframes story-pan { from { object-position: 18% 50%; } to { object-position: 82% 50%; } }
@media (prefers-reduced-motion: reduce) { .story__media .fg.is-pan { object-fit: contain; } }
.story__bars { position: absolute; z-index: 3; left: 10px; right: 10px; top: calc(var(--safe-t) + 8px); display: flex; gap: 4px; }
.story__bars span { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.story__bars i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.story__bars .done i { transform: scaleX(1); }
.story__top {
  position: absolute; z-index: 4; left: 0; right: 0; top: calc(var(--safe-t) + 16px);
  display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 12px;
}
.story__who { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.story__who img { width: 32px; height: 32px; border-radius: 50%; }
.story__btns { display: flex; gap: 2px; }
.story__nav { position: absolute; z-index: 2; top: 0; bottom: 0; }
.story__nav--prev { left: 0; width: 32%; }
.story__nav--next { right: 0; width: 68%; }
.story__nav:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 16px; }
.story__frame::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: calc(var(--safe-t) + 110px); background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent); pointer-events: none; }
.story__bottom {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  padding: 48px 16px calc(var(--safe-b) + 18px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
}
.story__cap { font-size: 16px; font-weight: 500; line-height: 1.3; max-width: 22ch; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4); }
.story__bottom .btn { flex: none; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero { aspect-ratio: 16 / 11; }
  .card { width: 44%; }
  .quote { width: calc(60% - 12px); }
  .meet { grid-template-columns: 30% 1fr; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid .card.is-feature { grid-column: auto; }
  .grid .card.is-feature .card__media { aspect-ratio: 3 / 4; border-radius: 16px; }
  .grid .card.is-feature .card__title { font-size: 15px; }
  .sheet__panel { border-radius: 28px 28px 0 0; }
}

/* ---------- Desktop: tab bar becomes a sidebar ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 40px; --side: 264px; }
  html { scroll-padding-top: 24px; }
  .appbar { display: none; }
  .views { margin: 0 0 0 var(--side); max-width: 1080px; padding: 40px var(--gutter) 64px; }
  @media (min-width: 1400px) { .views { margin-left: calc(var(--side) + (100vw - var(--side) - 1080px) / 2 - 20px); } }
  .largetitle { padding: 8px 0 24px; }
  .largetitle__h { font-size: 44px; }
  .home-wordmark { font-size: 52px; }
  .largetitle__sub { font-size: 18px; max-width: 46ch; }

  .tabbar {
    inset: 0 auto 0 0; width: var(--side); height: auto;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 32px 18px 24px; border-top: 0; border-right: 0.5px solid var(--hair-strong);
    background: rgba(250, 248, 250, 0.7);
  }
  .tabbar__brand { display: block; padding: 0 10px 28px; }
  .tabbar__brand img { width: 176px; }
  .tab {
    height: 48px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 14px;
    border-radius: 12px; font-size: 16px; letter-spacing: 0; color: var(--ink);
  }
  .tab svg { width: 22px; height: 22px; color: var(--graphite); }
  .tab:hover { background: rgba(36, 24, 42, 0.05); }
  .tab[aria-current="page"] { background: var(--plum-tint); color: var(--plum); }
  .tab[aria-current="page"] svg { color: var(--plum); }
  .tab--book { order: 10; margin-top: 18px; height: 52px; justify-content: center; background: var(--plum); color: #fff; border-radius: 999px; gap: 8px; }
  .tab--book:hover { background: var(--plum-press); }
  .tab--book .tab__fab { width: auto; height: auto; background: none; }
  .tab--book svg { color: #fff; }
  .tab--book span:last-child::before { content: "Book a free consult"; }
  .tab--book span:last-child { font-size: 0; }
  .tab--book span:last-child::before { font-size: 16px; }
  .tabbar__contact { order: 11; display: grid; gap: 6px; margin-top: auto; padding: 0 10px; font-size: 14px; }
  .tabbar__contact a { color: var(--graphite); text-decoration: none; overflow-wrap: anywhere; }
  .tabbar__contact a:hover { color: var(--plum); }

  .stories { margin: 0 0 24px; padding: 2px 0 4px; gap: 22px; }
  .story-ring { width: 84px; }
  .story-ring__ring { width: 84px; height: 84px; }
  .hero { aspect-ratio: 21 / 9; border-radius: 30px; }
  .hero::after { background: linear-gradient(90deg, rgba(24, 12, 28, 0.82) 0%, rgba(24, 12, 28, 0.6) 38%, rgba(24, 12, 28, 0) 68%); }
  .hero__body { padding: 40px 48px; align-self: center; max-width: 560px; }
  .hero__h { font-size: 38px; max-width: 14ch; }
  .hero__p { font-size: 18px; }
  .block { margin-top: 56px; }
  .block__h { font-size: 26px; }
  .chips, .rail, .quotes { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; scroll-padding-inline: 0; }
  .card { width: calc((100% - 36px) / 4); }
  .rail--sketch .sketch { width: calc((100% - 24px) / 3); }
  .ba-card { display: grid; grid-template-columns: 1fr 300px; }
  .ba { aspect-ratio: 4 / 3; }
  .ba-card__foot { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 16px; padding: 28px; }
  .ba-card__foot:hover .ba-card__title { text-decoration: underline; }
  .ba-card__title { font-size: 20px; }
  .ba-card__foot > svg { display: none; }
  .ba-card .ba-card__cta { display: inline-flex; }
  .ba-card .ba-card__desc { display: block; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink); margin-top: 12px; }
  .ba-card__foot { justify-content: center; }
  .quote { width: calc((100% - 24px) / 3); }
  .dots { display: none; }
  .list--steps { display: grid; grid-template-columns: repeat(3, 1fr); background: none; box-shadow: none; gap: 12px; }
  .list--steps > li { background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--hair); }
  .list--steps > li + li > .row { box-shadow: none; }
  .list--steps .row { height: 100%; }
  .meet { grid-template-columns: 300px 1fr; }
  .meet__body { padding: 32px; justify-content: center; }
  .meet__quote { font-size: 24px; max-width: 30ch; }
  .meet__link { margin-top: 8px; }
  .meet:hover .meet__link { text-decoration: underline; }
  #view-home [data-contact-list] { display: grid; grid-template-columns: repeat(3, 1fr); background: none; box-shadow: none; gap: 12px; }
  #view-home [data-contact-list] > li { background: var(--surface); border-radius: 18px; box-shadow: 0 0 0 1px var(--hair); }
  #view-home [data-contact-list] > li + li > .row { box-shadow: none; }
  .stickybar { margin: 0; top: 0; padding-top: 12px; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
  .card:hover .card__media img { transform: scale(1.03); }
  .card__media img { transition: transform 0.5s var(--ease); }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .step:not(:last-child)::before { left: 48px; right: -16px; top: 24px; bottom: auto; width: auto; height: 1px; }
  .step__num { margin: 4px 0 0; }
  .step__body { height: 100%; }
  .cta-card { padding: 36px; grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; }
  .cta-card .btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  #view-about { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: start; }
  #view-about:not([hidden]) { display: grid; }
  #view-about > .largetitle, #view-about > .profile, #view-about > .prose { grid-column: 1 / -1; }
  #view-about > .profile { grid-template-columns: 140px auto 1fr; }
  #view-about .profile__img { width: 140px; height: 140px; }
  #view-about .profile__stats { grid-column: 3; margin: 0; max-width: 420px; justify-self: end; width: 100%; }
  #view-about .profile__name { font-size: 30px; }
  .prose { max-width: 72ch; }

  .sheet { inset: 0; margin: auto; max-width: 600px; max-height: min(86vh, 860px); }
  .sheet--tall { max-width: 760px; }
  .sheet__panel { border-radius: 28px; max-height: min(86vh, 860px); transform: translateY(24px) scale(0.98); opacity: 0; transition: transform 0.32s var(--ease), opacity 0.2s; }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
  .sheet--tall .sheet__panel { height: min(86vh, 860px); }
  .sheet__grab { visibility: hidden; height: 14px; }
  .pgallery { border-radius: 28px 28px 0 0; }
  .pgallery figure { aspect-ratio: 16 / 10; }
  .story__frame { max-width: min(480px, calc(100vh * 9 / 16)); border-radius: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
.pgallery figure.is-portrait img { object-fit: contain; }
.ba-card__cta, .ba-card__desc { display: none; color: var(--plum); font-weight: 500; align-items: center; gap: 4px; }
.ba-card__cta svg { width: 18px; height: 18px; }
