/* Anthony Russomano: personal site. Tokens match the Mano / Manny app (Marketing Graphics Guidelines). */
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-Medium.ttf') format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --blue: #007AFE;
  --blue-deep: #0842B0;
  --blue-light: #2E93FF;
  --navy: #123F94;
  --sky: #1FA3DC;
  --ink: #151519;
  --bg: #F6F5F4;
  --card: #FFFFFF;
  --soft: #ECEBE9;
  --muted: #717077;
  --line: #E2E0DD;
  --gold: #DD9A3C;
  --green: #1F9E6B;
  /* Sourdough page */
  --cream: #F6F0E4;
  --cream-2: #EFE4D0;
  --crust: #C9873F;
  --crust-deep: #93602A;
  --oven: #221E1A;

  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgba(21, 21, 25, .04), 0 8px 30px rgba(21, 21, 25, .06);
  --shadow-blue: 0 18px 40px -18px rgba(0, 122, 254, .55);
  --wrap: 1160px;
  --font: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.kicker--gold { color: var(--crust-deep); }
.kicker--light { color: #9CCBFF; }
.lede { font-size: clamp(18px, 2vw, 21px); color: #45444b; max-width: 620px; }
.muted { color: var(--muted); }
.display { font-size: clamp(44px, 7.4vw, 92px); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.035em; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.eyebrow-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn small { font-size: 11px; font-weight: 600; opacity: .82; letter-spacing: .01em; }
.btn--blue { background: var(--blue); box-shadow: var(--shadow-blue); }
.btn--blue:hover { background: #0a6fe0; }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--white { background: #fff; color: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn .row { display: inline-flex; align-items: center; gap: 8px; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.app-link { display: inline-flex; flex-direction: column; text-decoration: none; }
.app-link > span:first-child { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.app-link small { font-size: 11px; color: var(--muted); font-weight: 600; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 244, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.brand img { width: 34px; height: auto; }
.brand--light { color: #fff; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; color: #3b3a40; transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--soft); }
.nav__links a[aria-current="page"] { color: var(--blue); background: rgba(0, 122, 254, .08); }
.nav__toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: var(--card); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, top .25s; }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav__mobile { padding: 8px 16px 24px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.nav__mobile a:not(.btn) { text-decoration: none; font-weight: 700; font-size: 22px; padding: 10px 4px; }
.nav__mobile .btn { margin-top: 12px; }
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}
@media (min-width: 861px) { .nav__mobile { display: none !important; } }

.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.social { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); transition: transform .2s, color .2s; }
.social:hover { transform: translateY(-2px); color: var(--blue); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials--light .social { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 32px); }
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Home hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__photo { position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 1 / 1.08; background: linear-gradient(160deg, var(--blue-light), var(--blue) 40%, var(--blue-deep)); box-shadow: 0 40px 80px -40px rgba(8, 66, 176, .6); }
.hero__photo img.me { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.hero__badge { position: absolute; left: 18px; bottom: 18px; right: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; line-height: 1.35; }
.hero__badge img { width: 44px; flex: none; }
.hero__name { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.hero__name .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31, 158, 107, .15); }
.hero h1 .accent { color: var(--blue); }
.hero .lede { margin: 22px 0 28px; }
.hero .socials { margin-top: 26px; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__photo { max-width: 460px; } }

/* Doors (home) */
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.door { position: relative; display: flex; flex-direction: column; min-height: 500px; border-radius: var(--radius); padding: 26px; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .3s ease, box-shadow .3s ease; box-shadow: var(--shadow); }
.door:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(21, 21, 25, .35); }
.door h3 { font-size: 27px; margin: 6px 0 8px; }
.door p { font-size: 15px; margin: 0; opacity: .86; max-width: 30ch; }
.door .door__art { position: absolute; right: 0; bottom: 0; width: 100%; height: 44%; object-fit: contain; object-position: center bottom; z-index: -1; transition: transform .4s ease; }
.door:hover .door__art { transform: scale(1.04); }
.door .door__go { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.door .door__go svg { width: 16px; height: 16px; }
.door--story { background: var(--card); }
.door--story .door__art { object-fit: cover; object-position: center 30%; height: 46%; }
.door--bread { background: var(--cream); }
.door--bread .door__art { mix-blend-mode: multiply; object-position: right bottom; }
.door--manny { background: linear-gradient(160deg, var(--blue-light), var(--blue) 45%, var(--blue-deep)); color: #fff; }
.door--manny .door__art { height: 38%; bottom: 40px; object-position: right bottom; right: 16px; width: 70%; }
.door--mano { background: var(--oven); color: #fff; }
.door--mano .door__art { object-position: right bottom; }
@media (max-width: 1000px) { .doors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .doors { grid-template-columns: 1fr; } .door { min-height: 320px; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 28px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(32px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; line-height: 1.4; display: block; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Films */
.film { display: block; text-decoration: none; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); transition: transform .25s; }
.film:hover { transform: translateY(-3px); }
.film__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.film__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.film:hover .film__thumb img { transform: scale(1.04); }
.film__play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.film__play svg { width: 22px; margin-left: 3px; fill: var(--ink); }
.film__body { padding: 16px 20px 20px; }
.film__body b { display: block; font-size: 17px; line-height: 1.3; }
.film__body span { font-size: 14px; color: var(--muted); }

/* Quote band */
.quote-band { background: var(--ink); color: #fff; border-radius: 36px; padding: clamp(40px, 7vw, 88px); position: relative; overflow: hidden; }
.quote-band blockquote { margin: 0; font-size: clamp(28px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; max-width: 18ch; }
.quote-band cite { display: block; margin-top: 22px; font-style: normal; color: rgba(255, 255, 255, .6); font-weight: 600; }
.quote-band img { position: absolute; right: -40px; bottom: -40px; width: min(44%, 420px); opacity: .95; }
@media (max-width: 700px) { .quote-band img { position: static; width: 60%; margin: 28px 0 -60px auto; } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* Story page */
.story-hero { padding: clamp(48px, 8vw, 110px) 0 40px; }
.story-hero .display { max-width: 14ch; }
.chapters-nav { position: sticky; top: 68px; z-index: 40; background: rgba(246, 245, 244, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.chapters-nav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.chapters-nav .wrap::-webkit-scrollbar { display: none; }
.chapters-nav a { flex: none; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: #4b4a50; white-space: nowrap; }
.chapters-nav a.is-active { background: var(--ink); color: #fff; }
.chapter { padding: clamp(56px, 8vw, 100px) 0; scroll-margin-top: 130px; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter__head { display: grid; grid-template-columns: 140px 1fr; gap: 24px; margin-bottom: 36px; }
.chapter__num { font-size: 14px; font-weight: 700; color: var(--muted); padding-top: 10px; }
.chapter__num b { display: block; font-size: 64px; letter-spacing: -0.05em; color: var(--ink); line-height: 1; }
.chapter__body { display: grid; grid-template-columns: 140px minmax(0, 1fr) 300px; gap: 24px 40px; }
.chapter__body .prose { grid-column: 2; }
.chapter__side { grid-column: 3; display: grid; gap: 16px; align-content: start; position: sticky; top: 150px; }
.prose p { font-size: 18px; line-height: 1.72; color: #2c2b31; }
.prose p strong { color: var(--ink); }
.prose h3 { font-size: 22px; margin: 34px 0 12px; }
.pull { margin: 34px 0; padding: 0 0 0 22px; border-left: 4px solid var(--blue); font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.18; }
.pull cite { display: block; font-size: 14px; color: var(--muted); font-style: normal; font-weight: 600; margin-top: 10px; letter-spacing: 0; }
.fact { background: var(--card); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); }
.fact b { display: block; font-size: 30px; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 6px; }
.fact span { font-size: 14px; color: var(--muted); font-weight: 600; line-height: 1.4; display: block; }
.fact--blue { background: var(--blue); color: #fff; }
.fact--blue span { color: rgba(255, 255, 255, .8); }
.sticker { width: 100%; max-width: 260px; mix-blend-mode: multiply; }
.photo { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption, figure.photo + .caption { font-size: 13px; color: var(--muted); padding: 10px 4px 0; }
figure { margin: 0; }
.photo-wide { margin: 34px 0; }
.photo-wide img { border-radius: 24px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.photo-wide figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media (max-width: 1060px) {
  .chapter__body { grid-template-columns: 1fr; }
  .chapter__body .prose, .chapter__side { grid-column: 1; }
  .chapter__side { position: static; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .chapter__head { grid-template-columns: 1fr; gap: 6px; }
  .chapter__num b { font-size: 48px; }
}

/* Timeline */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ''; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--sky)); opacity: .35; }
.tl { display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 14px 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 112px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue); }
.tl time { font-weight: 800; text-align: right; font-size: 15px; padding-top: 2px; }
.tl p { margin: 0; color: #3a393f; }
.tl--big p { font-weight: 700; color: var(--ink); }
.tl--big::before { background: var(--blue); }
@media (max-width: 560px) {
  .timeline::before { left: 7px; }
  .tl { grid-template-columns: 1fr; gap: 2px; padding-left: 30px; }
  .tl::before { left: 1px; top: 18px; }
  .tl time { text-align: left; }
}

/* Manny page */
.manny-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 75% 30%, #4FA6FF 0%, transparent 60%), linear-gradient(170deg, #2E93FF 0%, #007AFE 35%, #0842B0 100%); padding: clamp(56px, 9vw, 120px) 0 0; }
.manny-hero .display { max-width: 12ch; }
.manny-hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.manny-hero .manny-hero__art { grid-column: 2; grid-row: 1 / span 5; margin: 0; }
@media (max-width: 860px) { .manny-hero .wrap { grid-template-columns: 1fr; } .manny-hero .manny-hero__art { grid-column: 1; grid-row: auto; } }
.manny-hero .lede { color: rgba(255, 255, 255, .86); }
.manny-hero__art { position: relative; margin-top: 28px; display: flex; justify-content: center; }
.manny-hero__art img { width: min(440px, 78%); margin-bottom: 60px; filter: drop-shadow(0 40px 60px rgba(4, 30, 90, .45)); }
.bubble-stack { display: grid; gap: 10px; max-width: 420px; }
.bubble { padding: 12px 16px; border-radius: 22px; font-size: 15px; line-height: 1.45; max-width: 88%; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.bubble.is-in { opacity: 1; transform: none; }
.bubble--me { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bubble--manny { justify-self: start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; }
.bubble--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: #b9b8bd; animation: blink 1.2s infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .2s; }
.bubble--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.phone { width: min(220px, 62vw); aspect-ratio: 1206 / 2622; border-radius: 36px; padding: 8px; background: linear-gradient(135deg, #FFFFFF, #D3D6DB 30%, #B7BAC1 50%, #CDD0D6 70%, #F6F7F9); box-shadow: 0 40px 70px -30px rgba(18, 63, 148, .55); position: relative; }
.phone::before { content: ''; position: absolute; inset: 3px; border-radius: 33px; background: #030304; }
.phone img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }
.screens { display: flex; gap: 18px; justify-content: safe center; overflow-x: auto; padding: 20px 4px 34px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.screens figure { flex: none; scroll-snap-align: center; text-align: center; }
.screens figcaption { margin-top: 16px; font-weight: 700; font-size: 15px; }
.screens figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: 14px; max-width: 26ch; margin: 2px auto 0; }
.step-list { counter-reset: step; display: grid; gap: 14px; }
.won-t { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.won-t div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 22px; }
.won-t b { display: block; font-size: 22px; margin-bottom: 6px; letter-spacing: -0.02em; }
.won-t span { color: rgba(255, 255, 255, .75); font-size: 15px; }
@media (max-width: 760px) { .won-t { grid-template-columns: 1fr; } }
.dark { background: var(--ink); color: #fff; }
.dark .lede { color: rgba(255, 255, 255, .75); }
.dark .kicker { color: #6FB4FF; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature img { width: 56px; height: 56px; flex: none; }
.feature b { display: block; font-size: 18px; margin-bottom: 2px; }
.feature span { font-size: 15px; color: var(--muted); }
.family { position: relative; }
.family img { width: min(560px, 100%); margin-inline: auto; }

/* Build log (Manny page timeline cards) */
.build-log { display: grid; gap: 18px; }
.log { display: grid; grid-template-columns: 180px 1fr 200px; gap: 28px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow); }
.log time { font-weight: 800; font-size: 15px; color: var(--blue); }
.log time small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }
.log h3 { font-size: 24px; margin-bottom: 6px; }
.log p { margin: 0; color: #46454b; }
.log img { width: 100%; max-width: 180px; justify-self: end; mix-blend-mode: multiply; }
.log--blue { background: var(--blue); color: #fff; }
.log--blue p, .log--blue time small { color: rgba(255, 255, 255, .82); }
.log--blue time { color: #fff; }
.log--blue img { mix-blend-mode: normal; }
@media (max-width: 760px) { .log { grid-template-columns: 1fr; gap: 10px; } .log img { justify-self: start; max-width: 120px; } }

/* Offer card */
.offer { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; border-radius: 36px; padding: clamp(30px, 5vw, 56px); background: linear-gradient(160deg, #2E93FF, #007AFE 40%, #0842B0); color: #fff; overflow: hidden; position: relative; }
.offer .lede { color: rgba(255, 255, 255, .86); }
.offer ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.offer li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.offer li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; stroke: #9CCBFF; }
.offer img { width: 100%; max-width: 340px; justify-self: center; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .3)); }
.offer .btn--white small { color: var(--muted); opacity: 1; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } .offer img { max-width: 220px; } }
.code-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; border: 1.5px dashed currentColor; background: transparent; color: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 15px; letter-spacing: .06em; cursor: pointer; min-height: 48px; }
.code-chip svg { width: 16px; height: 16px; }
.code-chip.is-copied { border-style: solid; }

/* Mano page */
.mano-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 70px); }
.engine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.engine div { border-radius: var(--radius); padding: 28px; background: var(--card); box-shadow: var(--shadow); }
.engine b { font-size: 40px; letter-spacing: -0.045em; display: block; line-height: 1; margin-bottom: 10px; }
.engine div:nth-child(1) b { color: var(--navy); }
.engine div:nth-child(2) b { color: var(--blue); }
.engine div:nth-child(3) b { color: var(--sky); }
@media (max-width: 700px) { .engine { grid-template-columns: 1fr; } }
.testimonial { display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote { margin: 0; font-size: 18px; line-height: 1.55; font-weight: 600; letter-spacing: -0.01em; }
.testimonial cite { margin-top: auto; font-style: normal; font-size: 14px; color: var(--muted); }
.testimonial cite b { display: block; color: var(--ink); font-size: 15px; }
.person { text-align: left; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: var(--soft); margin-bottom: 14px; }
.person b { display: block; font-size: 18px; }
.person span { font-size: 14px; color: var(--muted); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; stroke: var(--blue); margin-top: 2px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 72px 0 32px; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid h3 { color: #fff; font-size: 14px; letter-spacing: .02em; margin: 6px 0 14px; }
.footer__grid a:not(.brand):not(.social) { display: block; text-decoration: none; padding: 5px 0; font-size: 15px; }
.footer__grid a:not(.brand):not(.social):hover { color: #fff; }
.footer__about p { font-size: 15px; max-width: 34ch; margin: 16px 0 6px; }
.footer__motto { color: #fff; font-weight: 700; }
.footer__about .socials { margin-top: 20px; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ------------ Sourdough ------------ */
body.sd { background: var(--cream); }
body.sd .nav { background: rgba(246, 240, 228, .86); }
body.sd .nav.is-scrolled { border-bottom-color: var(--cream-2); }
.sd-hero { padding: clamp(30px, 5vw, 70px) 0 clamp(40px, 6vw, 70px); }
.sd-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.sd-hero h1 { font-size: clamp(44px, 6.6vw, 84px); letter-spacing: -0.045em; line-height: .96; }
.sd-hero h1 em { font-style: normal; color: var(--crust-deep); }
.sd-hero .lede { margin: 22px 0 28px; color: #4a4238; }
.sd-hero__art { position: relative; }
.sd-hero__art img { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(110, 70, 20, .22)); }
.sd-hero__meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: #6b5f50; font-size: 14px; font-weight: 600; }
.sd-hero__meta span { display: inline-flex; gap: 8px; align-items: center; }
.sd-hero__meta svg { width: 18px; height: 18px; stroke: var(--crust-deep); }
@media (max-width: 860px) { .sd-hero__grid { grid-template-columns: 1fr; } .sd-hero__art { order: -1; } .sd-hero__art img { max-width: 340px; } }

.sd-tabs { position: sticky; top: 68px; z-index: 40; background: rgba(246, 240, 228, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--cream-2); }
.sd-tabs__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; scroll-behavior: smooth; }
.sd-tabs__inner::-webkit-scrollbar { display: none; }
.sd-tabs a { flex: none; text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; color: #5a4f42; white-space: nowrap; border: 1px solid transparent; }
.sd-tabs a:hover { background: rgba(255, 255, 255, .6); }
.sd-tabs a.is-active { background: var(--oven); color: #fff; }
.sd-tabs a .lock { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; opacity: .55; }

.sd-main { padding-bottom: 40px; }
.sd-section { scroll-margin-top: 132px; padding: clamp(48px, 7vw, 84px) 0 0; }
.sd-section > .wrap--narrow > h2, .sd-h2 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.035em; margin-bottom: 14px; }
.sd-num { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--crust-deep); margin-bottom: 10px; }
.sd p { color: #3b342c; }
.sd .lede { color: #4a4238; }
.sd-intro { font-size: 19px; line-height: 1.7; }
.sd-quote { margin: 30px 0; padding: 26px 28px; border-radius: 24px; background: #fff; border-left: 5px solid var(--crust); box-shadow: var(--shadow); }
.sd-quote p { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 8px; color: var(--ink); }
.sd-quote cite { font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); }

.toc { margin: 30px 0 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.toc summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; letter-spacing: .06em; font-size: 13px; text-transform: uppercase; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { width: 20px; height: 20px; transition: transform .25s; }
.toc[open] summary svg { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0 24px 22px; list-style: none; counter-reset: toc; columns: 2; column-gap: 30px; }
.toc li { counter-increment: toc; break-inside: avoid; }
.toc a { display: flex; gap: 12px; padding: 7px 0; text-decoration: none; font-weight: 600; color: #3b342c; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--crust-deep); font-size: 13px; font-weight: 700; padding-top: 2px; min-width: 22px; }
.toc a:hover { color: var(--crust-deep); }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.info { background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); }
.info h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; color: var(--crust-deep); display: flex; gap: 8px; align-items: center; }
.info h4 svg { width: 16px; height: 16px; }
.info p { margin: 0; font-size: 16px; }
@media (max-width: 640px) { .info-row { grid-template-columns: 1fr; } }

.sd-photo { margin: 28px 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--cream-2); }
.sd-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.sd-photo figcaption { background: #fff; padding: 12px 18px; font-size: 14px; color: var(--muted); }

.days { display: grid; gap: 12px; margin: 26px 0; }
.day { display: grid; grid-template-columns: 110px 1fr; gap: 22px; background: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); }
.day__when { font-weight: 800; font-size: 14px; letter-spacing: .02em; color: var(--crust-deep); }
.day__when b { display: block; font-size: 30px; color: var(--ink); letter-spacing: -0.04em; line-height: 1.05; }
.day p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .day { grid-template-columns: 1fr; gap: 6px; } .day__when b { display: inline; font-size: 22px; margin-left: 6px; } }

.trouble { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.trouble div { background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); }
.trouble b { display: block; margin-bottom: 4px; color: var(--ink); }
.trouble p { margin: 0; font-size: 15.5px; }
.trouble--danger { box-shadow: inset 0 0 0 2px #F2A36B, var(--shadow) !important; }
@media (max-width: 640px) { .trouble { grid-template-columns: 1fr; } }

.care { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.care > div { background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.care h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--crust-deep); }
.care .sub { font-size: 14px; color: var(--muted); margin: 2px 0 14px; font-weight: 600; }
.care ol, .steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.care ol li, .steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 16px; line-height: 1.55; color: #3b342c; }
.care ol li::before, .steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--cream); color: var(--crust-deep); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.care .tip { margin-top: auto; padding-top: 16px; }
.care .tip p { background: var(--cream); border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 0; }
@media (max-width: 680px) { .care { grid-template-columns: 1fr; } }

.routine { display: grid; gap: 12px; margin: 24px 0; }
.routine > div { background: #fff; border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); }
.routine h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--crust-deep); margin-bottom: 12px; }
.callout { background: rgba(255, 255, 255, .55); border-left: 4px solid var(--oven); border-radius: 0 18px 18px 0; padding: 16px 20px; margin: 20px 0; }
.callout b { display: block; margin-bottom: 4px; }
.callout p { margin: 0; font-size: 16px; }

.ratio { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin: 18px 0 10px; }
.ratio th, .ratio td { text-align: left; padding: 14px 20px; font-size: 16px; }
.ratio th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--cream-2); }
.ratio td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.ratio tr:nth-child(even) td { background: #fbf8f2; }
.ratio tr.is-mine td { background: #fff3df; }
.ratio tr.is-mine td:last-child::after { content: 'My ratio'; margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--crust-deep); background: var(--cream); padding: 3px 8px; border-radius: 999px; }
.small { font-size: 14px; color: var(--muted); }

/* Recipe card */
.recipe { display: grid; align-items: center; grid-template-columns: 300px 1fr; gap: 0; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); margin: 26px 0; }
.recipe__img { padding: 12px; align-self: center; }
.recipe__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.recipe__ing { padding: 26px 28px; }
.recipe__ing h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--crust-deep); margin-bottom: 12px; }
.ing { list-style: none; padding: 0; margin: 0; }
.ing li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--cream-2); font-size: 16px; }
.ing li:last-child { border-bottom: 0; }
.ing b { min-width: 64px; font-weight: 800; color: var(--ink); }
@media (max-width: 720px) { .recipe { grid-template-columns: 1fr; } .recipe__img img { aspect-ratio: 4 / 3; } }
.phase { margin: 22px 0; }
.phase h4 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 14px; }
.phase h4 svg { width: 22px; height: 22px; stroke: var(--crust-deep); }

/* Gate */
.gate-zone { position: relative; }
.gate-preview { filter: blur(6px); opacity: .55; pointer-events: none; user-select: none; max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); }
.gate { position: relative; margin: -170px auto 0; z-index: 2; background: #fff8ee; border-radius: 30px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 0 0 1px var(--cream-2), 0 30px 70px -30px rgba(110, 70, 20, .4); }
.gate h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; margin: 6px 0 10px; }
.gate form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; margin-top: 20px; }
.gate input { font: inherit; font-size: 16px; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 1.5px solid var(--cream-2); background: #fff; color: var(--ink); min-width: 0; }
.gate input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 122, 254, .15); }
.gate .btn { border-radius: 16px; min-height: 54px; }
.gate .fine { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.gate .err { color: #b4441b; font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.gate ul { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: #5a4f42; }
.gate ul li { display: inline-flex; gap: 6px; align-items: center; }
.gate ul svg { width: 16px; height: 16px; stroke: var(--green); }
@media (max-width: 720px) { .gate form { grid-template-columns: 1fr; } }
[data-gated] { display: none; }
.is-unlocked [data-gated] { display: block; }
.is-unlocked .gate-zone { display: none; }
.unlocked-note { display: none; align-items: center; gap: 10px; margin: 30px 0 0; padding: 14px 18px; border-radius: 16px; background: #e6f5ee; color: #155c40; font-weight: 600; font-size: 15px; }
.unlocked-note svg { width: 20px; height: 20px; stroke: currentColor; }
.is-unlocked .unlocked-note { display: flex; }

/* Variations */
.vars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0; }
.var { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.var img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream-2); }
.var div { padding: 16px 18px 18px; }
.var b { display: block; font-size: 17px; margin-bottom: 4px; }
.var p { font-size: 14.5px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .vars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vars { grid-template-columns: 1fr; } }
.wide-grid { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Manny inline prompt + companion */
.helper { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 22px; background: #fff8ee; box-shadow: inset 0 0 0 1.5px #f0d9b5; margin: 28px 0; }
.helper img { width: 52px; flex: none; }
.helper div { flex: 1; }
.helper b { display: block; font-size: 16px; }
.helper p { margin: 0; font-size: 14.5px; }
@media (max-width: 560px) { .helper { flex-wrap: wrap; } }
.companion { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; background: var(--oven); color: #fff; border-radius: 30px; padding: 30px 34px; margin: 40px 0; overflow: hidden; }
.companion img { width: 100%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
.companion .kicker { color: #F2B866; }
.companion h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.companion p { color: rgba(255, 255, 255, .78); }
.companion .fine { font-size: 14px; color: rgba(255, 255, 255, .6); margin: 12px 0 0; }
.companion .fine b { color: #F2B866; }
@media (max-width: 680px) { .companion { grid-template-columns: 1fr; } .companion img { max-width: 160px; } }

/* Gallery */
.gallery { columns: 3; column-gap: 12px; margin: 26px 0; }
.gallery button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--cream-2); break-inside: avoid; }
.gallery img { width: 100%; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.03); }
@media (max-width: 760px) { .gallery { columns: 2; } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 16, 12, .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; border-radius: 18px; object-fit: contain; }
.lightbox p { color: rgba(255, 255, 255, .8); text-align: center; margin: 14px 0 0; font-weight: 600; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; }
.lightbox__next { right: 18px; top: 50%; }

/* Menu */
.menu-board { background: var(--oven); color: #f6ead6; border-radius: 30px; padding: clamp(26px, 4vw, 44px); margin: 26px 0; }
.menu-board h3 { color: #fff; font-size: 22px; margin: 0 0 14px; }
.menu-board .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.menu-board dl { margin: 0; display: grid; gap: 10px; }
.menu-board dt { font-weight: 800; color: #fff; }
.menu-board dd { margin: 0; font-size: 14.5px; color: rgba(246, 234, 214, .7); }
.menu-board .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-board .chips span { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; }
@media (max-width: 700px) { .menu-board .cols { grid-template-columns: 1fr; } }

/* Modal popup */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(21, 21, 25, .55); backdrop-filter: blur(4px); animation: fade .25s ease; }
.modal[hidden] { display: none; }
.modal__card { position: relative; width: min(460px, 100%); background: #fff; border-radius: 30px; padding: 30px 28px 26px; text-align: center; box-shadow: 0 40px 80px rgba(0, 0, 0, .3); animation: pop .3s ease; }
.modal__card img { width: 120px; margin: -80px auto 6px; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .2)); }
.modal__card h2 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 10px; }
.modal__card p { font-size: 16px; color: #46454b; }
.modal__card ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; text-align: left; }
.modal__card li { display: flex; gap: 10px; background: var(--bg); border-radius: 14px; padding: 10px 14px; font-size: 15px; font-weight: 600; }
.modal__card li svg { width: 18px; height: 18px; flex: none; stroke: var(--blue); margin-top: 3px; }
.modal__card .btn { width: 100%; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; opacity: 0; transition: opacity .25s, transform .25s; z-index: 300; pointer-events: none; }
.toast.is-in { opacity: 1; transform: translateX(-50%); }
.hero h1 .line { display: block; }
.nav__mobile[hidden] { display: none; }

/* Story overview */
.story-overview { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(30px, 6vw, 80px); align-items: start; }
.story-overview .prose h2 { margin: 34px 0 10px; }
.story-overview .prose h2:first-child { margin-top: 0; }
.story-overview .prose a:not(.btn) { color: var(--blue); font-weight: 700; }
.story-photos { display: grid; gap: 14px; position: sticky; top: 90px; }
.story-photos .photo img { aspect-ratio: 4 / 3; }
.story-photos figcaption { padding: 10px 14px 12px; background: var(--card); }
@media (max-width: 900px) { .story-overview { grid-template-columns: 1fr; } .story-photos { position: static; grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .story-photos { grid-template-columns: 1fr; } }

/* Social */
.profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s; }
.profile:hover { transform: translateY(-3px); }
.profile > img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.profile > div { flex: 1; min-width: 0; }
.profile b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.profile__net { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.profile__net svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile--amazon .profile__net { color: #C7511F; }
.profile__go { flex: none; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; }
@media (max-width: 960px) { .profiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .profiles { grid-template-columns: 1fr; } }
.yt-live { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.yt-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-grid a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-grid a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* Build log media */
.log { grid-template-columns: 170px 1fr 240px; }
.log img.log__icon { width: 120px; max-width: 120px; justify-self: center; mix-blend-mode: normal; filter: drop-shadow(0 12px 18px rgba(18, 63, 148, .18)); }
.log img.log__icon--manny { width: 170px; max-width: 170px; }
.log img.log__photo { width: 100%; max-width: 240px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; mix-blend-mode: normal; box-shadow: var(--shadow); }
.log img.log__photo--doc { object-fit: cover; object-position: top center; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.log img.log__photo--round { width: 150px; aspect-ratio: 1; border-radius: 50%; justify-self: center; }
.log img.log__photo--tall { aspect-ratio: 3 / 4; max-width: 170px; justify-self: center; object-position: top; }
@media (max-width: 760px) { .log { grid-template-columns: 1fr; } .log img.log__photo { max-width: 100%; } .log img.log__icon, .log img.log__photo--round, .log img.log__photo--tall { justify-self: start; } }
