/* ==========================================================================
   Makenna Brakefield — portfolio
   Simple, Notion-inspired layout: white page, dark ink, color only in
   imagery, tags and a few quiet accents.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #1f1f1d;
  --ink-soft: #3d3c39;
  --muted: #6f6d68;
  --line: #e8e6e1;
  --soft: #f7f6f3;
  --cream: #fbf4de;
  --accent: #2d49c4;
  --highlight: #fde68a;

  --tag-gray-bg: #efeeeb;   --tag-gray: #55534e;
  --tag-blue-bg: #e5edfb;   --tag-blue: #1f4a8a;
  --tag-green-bg: #e3f1e8;  --tag-green: #2a6843;
  --tag-yellow-bg: #fbf0cc; --tag-yellow: #735400;
  --tag-pink-bg: #f9e4ee;   --tag-pink: #8a2f5b;
  --tag-purple-bg: #efe8f8; --tag-purple: #5b3d91;
  --tag-orange-bg: #fbe8da; --tag-orange: #8a461a;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1040px;
  --gutter: 24px;
  --radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-color: rgba(31, 31, 29, 0.3); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; }

/* Draft marker — anything Makenna still needs to supply or confirm.
   Remove the class (or the element) once filled in. */
.todo {
  background: var(--highlight);
  color: #5a4300;
  font-family: var(--sans);
  font-size: 0.85em;
  font-style: normal;
  padding: 1px 6px;
  border-radius: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { white-space: nowrap; font-weight: 600; text-decoration: none; font-size: 15px; letter-spacing: -0.005em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { font-size: 14px; text-decoration: none; color: var(--ink-soft); padding: 6px 10px; border-radius: 6px; }
.nav a:hover { background: var(--soft); color: var(--ink); }

/* ---------- Buttons ---------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 9px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--soft); border-color: #d9d7d1; color: var(--ink); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--solid:hover { background: #3a3936; border-color: #3a3936; color: #fff; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 12px; }
.hero .role { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--ink-soft); margin-bottom: 24px; font-style: italic; }
.hero .lede { font-size: 18px; color: var(--ink-soft); max-width: 580px; border-left: 3px solid var(--ink); padding-left: 18px; margin-bottom: 28px; }
.hero .meta { font-size: 14px; color: var(--muted); margin-top: 18px; }
.headshot { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 2rem; }
.section-head p { color: var(--muted); font-size: 15px; margin: 0; max-width: 460px; }

/* ---------- Work cards ---------- */

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { color: inherit; border-color: #dcdad4; box-shadow: 0 8px 28px rgba(31, 31, 29, 0.08); transform: translateY(-2px); }
.card-media { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.card-media > * { width: 100%; height: 100%; object-fit: cover; border-radius: 0; border: 0; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-org { font-size: 13px; color: var(--muted); }
.card h3 { font-size: 1.4rem; }
.card p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.card .tags { margin-top: auto; padding-top: 8px; }

.card--wide { grid-column: 1 / -1; flex-direction: row; }
.card--wide .card-media { flex: 0 0 46%; aspect-ratio: auto; min-height: 260px; }
.card--wide .card-body { padding: 28px 32px; justify-content: center; }
.card--wide h3 { font-size: 1.75rem; }

/* ---------- Tags ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 4px; background: var(--tag-gray-bg); color: var(--tag-gray); white-space: nowrap; }
.tag--blue { background: var(--tag-blue-bg); color: var(--tag-blue); }
.tag--green { background: var(--tag-green-bg); color: var(--tag-green); }
.tag--yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow); }
.tag--pink { background: var(--tag-pink-bg); color: var(--tag-pink); }
.tag--purple { background: var(--tag-purple-bg); color: var(--tag-purple); }
.tag--orange { background: var(--tag-orange-bg); color: var(--tag-orange); }

/* ---------- How I work ---------- */

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { background: var(--soft); border-radius: var(--radius); padding: 24px; }
.principle .num { font-family: var(--serif); font-size: 15px; color: var(--muted); margin-bottom: 10px; }
.principle h3 { font-size: 1.3rem; margin-bottom: 8px; }
.principle p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Health thread ---------- */

.health { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; margin-bottom: 32px; }
.health h2 { font-size: 2rem; }
.health .body { font-size: 17px; color: var(--ink-soft); }

/* ---------- Experience ---------- */

.xp { display: grid; gap: 0; }
.xp-item { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.xp-item:first-child { padding-top: 0; }
.xp-when { font-size: 14px; color: var(--muted); padding-top: 3px; }
.xp-item h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; margin-bottom: 2px; }
.xp-org { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.xp-item p { font-size: 15px; color: var(--ink-soft); }
.xp-roles { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.xp-roles li { padding: 3px 0 3px 16px; position: relative; }
.xp-roles li::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 1px; background: #bdbbb5; }
.xp-roles strong { color: var(--ink-soft); font-weight: 500; }

.edu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.edu-block { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; font-size: 15px; }
.edu-block h3 { font-family: var(--sans); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.edu-block ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }

/* ---------- More work list ---------- */

.more-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.more-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.more-list .kind { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- Testimonials ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--cream); border-radius: var(--radius); padding: 24px; margin: 0; font-size: 15px; color: var(--ink-soft); }
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 17px; font-style: italic; line-height: 1.55; color: var(--ink); }
.quote figcaption { font-size: 14px; }

/* ---------- Contact / footer ---------- */

.contact { padding: 72px 0 56px; border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: center; }
.contact .headshot { width: 96px; }
.contact h2 { font-size: 2rem; margin-bottom: 6px; }
.contact p { color: var(--ink-soft); margin: 0; }
.site-footer { padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Placeholders (swap for real images) ---------- */

.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  aspect-ratio: var(--ar, 16 / 10);
  padding: 16px;
  border: 1px dashed #d4d2cb; border-radius: 8px;
  background: repeating-linear-gradient(135deg, #f6f5f1 0 14px, #f0efea 14px 28px);
  color: #85837c; font-size: 13px; line-height: 1.4;
}
.ph--round { border-radius: 50%; aspect-ratio: 1; }

/* ==========================================================================
   Case study pages
   ========================================================================== */

.cs-top { padding-top: 28px; }
.crumb { font-size: 14px; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--ink); }

.cs-cover { margin: 20px 0 36px; }
.cs-cover .ph, .cs-cover img { --ar: 21 / 9; border-radius: var(--radius); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

.cs-title { font-size: clamp(2.2rem, 5vw, 3.25rem); margin-bottom: 14px; }
.cs-summary { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--ink-soft); max-width: 760px; margin-bottom: 32px; line-height: 1.45; }

/* Notion-style property table */
.props { display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--line); margin-bottom: 8px; font-size: 15px; }
.props dt, .props dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.props dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.props dd { color: var(--ink); }

.cs-body { padding-top: 24px; padding-bottom: 24px; }
.cs-section { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.cs-section:first-child { border-top: 0; }
.cs-section > h2 { font-size: 1.5rem; }
.cs-section .content { font-size: 17px; color: var(--ink-soft); max-width: 680px; }
.cs-section .content h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink); margin: 28px 0 8px; letter-spacing: 0; }
.cs-section .content h3:first-child { margin-top: 0; }
.cs-section .content ul { padding-left: 20px; margin: 0 0 1em; }
.cs-section .content li { margin-bottom: 6px; }

.cs-wide { padding-top: 8px; padding-bottom: 40px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 48px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--soft); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.steps li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.gallery .span-2 { grid-column: span 2; }
.gallery img { border-radius: 8px; width: 100%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.stat .value { font-family: var(--serif); font-size: 2.1rem; line-height: 1.1; color: var(--ink); margin-bottom: 4px; }
.stat .label { font-size: 14px; color: var(--muted); }

.callout { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; font-size: 16px; color: var(--ink-soft); }
.callout--cream { background: var(--cream); }
.callout strong { color: var(--ink); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.pair .callout h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }

.next-link {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none;
}
.next-link .label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.next-link .title { font-family: var(--serif); font-size: 1.6rem; }
.next-link .arrow { font-size: 1.6rem; transition: transform 0.2s; }
.next-link:hover .arrow { transform: translateX(4px); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero .hero-photo { order: -1; width: 160px; }
  .principles, .quotes { grid-template-columns: 1fr; }
  .health { grid-template-columns: 1fr; gap: 16px; }
  .card--wide { flex-direction: column; }
  .card--wide .card-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .card--wide .card-body { padding: 18px 20px 20px; }
  .cs-section { grid-template-columns: 1fr; gap: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .span-2 { grid-column: span 2; }
  .more-list { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .hero { padding: 40px 0 48px; }
  .work-grid, .edu, .pair { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; gap: 6px; }
  .xp-item { grid-template-columns: 1fr; gap: 4px; }
  .props { grid-template-columns: 120px 1fr; }
  .stats--3 { grid-template-columns: 1fr 1fr; }
  .gallery, .gallery--2 { grid-template-columns: 1fr; }
  .gallery .span-2 { grid-column: auto; }
  .nav { gap: 0; flex-wrap: nowrap; }
  .nav a { padding: 6px 6px; font-size: 13px; }
  .nav .hide-sm { display: none; }
  .brand { font-size: 14px; }
}

/* ==========================================================================
   Real media
   ========================================================================== */

img.headshot { object-position: 50% 22%; background: var(--soft); }
.contact img.headshot { width: 96px; height: 96px; }

.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.card-media--type {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 28px; background: var(--cream);
}
.card-media--type .big { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.05; color: var(--ink); }
.card-media--type .small { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }

.cs-cover img { border-radius: var(--radius); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* Photo grid with natural aspect ratios */
.masonry { columns: 3; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; break-inside: avoid; }
.masonry img, .masonry video { width: 100%; border-radius: 8px; }
.masonry figcaption, .shot-set figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Documents (briefs, slides, shot lists) */
.doc { margin: 0; }
.doc img { width: 100%; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 18px rgba(31, 31, 29, 0.06); background: #fff; }
.doc figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.doc a { display: block; }

/* Phone-sized frames for emails and social posts */
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.frames figure { margin: 0; }
.frame {
  display: block; width: 100%; aspect-ratio: 348 / 480; object-fit: cover; object-position: top;
  border-radius: 14px; border: 1px solid var(--line); background: var(--soft);
  box-shadow: 0 6px 22px rgba(31, 31, 29, 0.08);
}
.frames figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.frames figcaption strong { display: block; color: var(--ink); font-weight: 600; }

/* A tall email shown in a scrollable column */
.email-scroll {
  max-height: 720px; overflow-y: auto; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(31, 31, 29, 0.08); background: #111;
}
.email-scroll img { width: 100%; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.split--flip { grid-template-columns: 340px minmax(0, 1fr); }

/* Campaign timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.timeline li { position: relative; padding: 24px 10px 0 0; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.timeline li:last-child::before { background: var(--ink); }
.timeline .when { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); display: block; }
.timeline .what { color: var(--muted); }

/* Brief summary facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fact { border-top: 2px solid var(--ink); padding-top: 12px; font-size: 15px; color: var(--ink-soft); }
.fact h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.fact ul { margin: 0; padding-left: 18px; }

.shot-set { margin-bottom: 48px; }
.shot-set:last-child { margin-bottom: 0; }
.shot-set-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.shot-set-head h3 { font-size: 1.4rem; }
.shot-set-head p { margin: 0; font-size: 14px; color: var(--muted); }
.row { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 12px; }
.row img, .row video { width: 100%; height: 100%; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; border-radius: 8px; }
.pano { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 8px; overflow: hidden; }
.pano img { width: 100%; }

@media (max-width: 860px) {
  .masonry { columns: 2; }
  .split, .split--flip { grid-template-columns: 1fr; gap: 24px; }
  .split .email-scroll { max-width: 360px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .frames { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
.card-media--trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 18px 0; background: var(--cream); align-items: end; }
.card-media--trio img { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: top; border-radius: 8px 8px 0 0; box-shadow: 0 4px 14px rgba(31,31,29,.12); }
.card--wide .card-media { position: relative; min-height: 340px; }
.card--wide .card-media > img { position: absolute; inset: 0; }
.card-media--trio { align-items: start; }
.card-media--trio img { height: auto; aspect-ratio: 348 / 480; }
@media (max-width: 860px) {
  .card--wide .card-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (min-width: 861px) { .frames--5 { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.stats--2 { grid-template-columns: repeat(2, 1fr); max-width: 520px; }

/* Website case study */
.plan-doc { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; background: #fff; }
.plan-row { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.plan-row:first-child { border-top: 0; }
.plan-row > span { padding: 14px 18px; }
.plan-row > span:first-child { background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 500; }
.plan-row > span:last-child { color: var(--ink-soft); line-height: 1.6; }
.plan-meta > span:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--ink); }
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pages figure { margin: 0; }
.page-scroll { height: 560px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 22px rgba(31,31,29,.08); background: #fff; }
.page-scroll img { width: 100%; }
.pages figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; display: flex; justify-content: space-between; }
.pages figcaption strong { color: var(--ink); font-weight: 600; }
.pull { margin: 0 0 20px; padding-left: 18px; border-left: 3px solid var(--ink); font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.pull cite { display: block; margin-top: 8px; font-family: var(--sans); font-size: 13px; font-style: normal; color: var(--muted); }
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.article { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, box-shadow .2s; }
.article:hover { color: inherit; border-color: #d9d7d1; box-shadow: 0 6px 20px rgba(31,31,29,.06); }
.article .kind { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.article h3 { font-size: 1.2rem; margin: 6px 0; }
.article p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) {
  .pages { grid-template-columns: 1fr; }
  .page-scroll { height: 480px; }
  .articles { grid-template-columns: 1fr; }
  .plan-row { grid-template-columns: 1fr; }
}

/* Horizontal photo scroller */
.scroller-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: thin; }
.scroller-track img { flex: 0 0 auto; height: 420px; width: auto; border-radius: 8px; scroll-snap-align: start; }
.scroller-track--seamless { gap: 0; }
.scroller-track--seamless img { height: 380px; border-radius: 0; }
.scroller-track--seamless img:first-child { border-radius: 8px 0 0 8px; }
.scroller-track--seamless img:last-child { border-radius: 0 8px 8px 0; }
.scroller-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.scroller-ui { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.scroller-hint { font-size: 13px; color: var(--muted); }
.scroller-btns { display: flex; gap: 8px; }
.scroller-btns button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 16px; cursor: pointer; }
.scroller-btns button:hover { background: var(--soft); }
.carousel-label { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.carousel-label a { font-weight: 400; color: var(--muted); }
@media (max-width: 640px) {
  .scroller-track img { height: 300px; }
  .scroller-track--seamless img { height: 280px; }
  .scroller-btns { display: none; }
}
.yt { display: block; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.yt:hover .yt-play { transform: scale(1.08); }
.mosaic { display: grid; grid-template-columns: 2fr 3fr; gap: 12px; }
.mosaic img { width: 100%; height: 420px; object-fit: cover; border-radius: 8px; }
@media (max-width: 640px) { .mosaic { grid-template-columns: 1fr; } .mosaic img { height: auto; } }

/* Cropped screen-recording videos: show only the post's video area */
.vcrop { position: relative; display: block; width: 100%; aspect-ratio: var(--ar); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #111; padding: 0; cursor: pointer; box-shadow: 0 6px 22px rgba(31,31,29,.08); }
.vcrop video { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); max-width: none; object-fit: fill; }
.vplay { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.55); transition: opacity .2s; }
.vplay::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.vcrop.is-playing .vplay { opacity: 0; }
.frames--3 { grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; align-items: start; gap: 28px; }
@media (max-width: 640px) { .frames--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Email series: five scrollable emails side by side */
.series { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; overflow-x: auto; padding: 8px 0 6px; margin-top: 8px; }
.series figure { margin: 0; }
.series .email-scroll { max-height: 520px; background: #fff; }
.series figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.series figcaption strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .series { grid-template-columns: repeat(5, 220px); } }
