/* MY TATE ROUTE / Route-scoped portfolio styles. */
.mtr {
  --mtr-paper: #f7f3ec;
  --mtr-ink: #221f1c;
  --mtr-muted: #5e564f;
  --mtr-line: #cec3b7;
  --mtr-red: #a41e2a;
  --mtr-dark: #24201e;
  color: var(--mtr-ink);
  background: var(--mtr-paper);
  font: 400 1rem/1.62 var(--portfolio-font-body, system-ui, -apple-system, "Segoe UI", sans-serif);
  color-scheme: light;
}
.mtr, .mtr *, .mtr *::before, .mtr *::after { box-sizing: border-box; }
.mtr :where(p, h1, h2, h3, figure, dl, dd, ol) { margin: 0; }
.mtr :where(h1, h2, h3) {
  font-family: var(--portfolio-font-editorial, Georgia, "Times New Roman", serif);
  font-weight: 500;
  line-height: 1.03;
  text-wrap: balance;
}
.mtr h2 { font-size: clamp(2.45rem, 5.6vw, 4.6rem); letter-spacing: -.057em; max-width: 18ch; }
.mtr h3 { font-size: clamp(1.55rem, 2.5vw, 2.12rem); letter-spacing: -.038em; }
.mtr a { color: var(--mtr-red); text-decoration-thickness: .08em; text-underline-offset: .2em; }
.mtr a:hover { text-decoration-thickness: .15em; }
.mtr a:focus-visible, .mtr h2:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.mtr [id] { scroll-margin-top: var(--portfolio-scroll-offset, 4.5rem); }
.mtr-wrap { width: min(calc(100% - clamp(2rem, 8vw, 8rem)), 72rem); margin-inline: auto; }
.mtr-kicker { color: var(--mtr-red); font-weight: 750; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; margin-block-end: .85rem; }
.mtr-hero { padding-block: clamp(2.7rem, 7vw, 6.5rem); background: #f0e9df; border-bottom: 1px solid var(--mtr-line); }
.mtr-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 6vw, 5.5rem); align-items: center; }
.mtr h1 { color: var(--mtr-red); font-size: clamp(4.3rem, 9.5vw, 9rem); line-height: .87; letter-spacing: -.075em; }
.mtr h1 span { color: var(--mtr-ink); }
.mtr-subtitle { font-size: clamp(1.16rem, 2.5vw, 1.55rem); max-width: 27ch; margin-top: 1.2rem; }
.mtr-disclosure { font-size: .85rem; color: var(--mtr-muted); max-width: 43ch; margin-top: .65rem; }
.mtr-button { display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; text-decoration: none; font-weight: 700; margin-top: 1.2rem; padding: .5rem .78rem; border: 1px solid currentColor; }
.mtr-button:hover { background: var(--mtr-red); color: white; }
.mtr-hero-figure svg, .mtr-hero-image { width: 100%; height: auto; display: block; }
.mtr-hero-figure figcaption { padding-top: .55rem; color: var(--mtr-muted); font-size: .82rem; }
.mtr-facts { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1rem 1.8rem; padding-block: 1.5rem; border-bottom: 1px solid var(--mtr-line); }
.mtr-facts dt, .mtr-metrics dt { color: var(--mtr-red); font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.mtr-facts dd { margin-top: .3rem; }
.mtr-section { padding-block: clamp(2.6rem, 6vw, 5.2rem); }
.mtr-section + .mtr-section { border-top: 1px solid var(--mtr-line); }
.mtr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 6vw, 5rem); }
.mtr-prose p + p { margin-top: .8rem; }
.mtr-journey { background: var(--mtr-dark); color: #fff8ed; padding-block: clamp(2.8rem, 6.5vw, 5.8rem); }
.mtr-journey .mtr-kicker { color: #ff9fa3; }
.mtr-journey h2 { max-width: 24ch; }
.mtr-stops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin-top: 2.1rem; }
.mtr-stops li { position: relative; padding: 1.45rem .9rem .25rem 0; min-width: 0; border-top: 2px solid #f1717c; }
.mtr-stops li::before { content: ""; position: absolute; width: .67rem; height: .67rem; left: 0; top: -.39rem; border-radius: 50%; background: #fff8ed; border: 2px solid #f1717c; }
.mtr-stops p { margin-top: .55rem; }
.mtr-stop-number { color: #ff9fa3; display: block; font-weight: 750; font-size: .81rem; margin-bottom: .35rem; }
.mtr-channel { color: #dfc9bf; font-size: .78rem; font-weight: 650; display: block; margin-top: .8rem; }
.mtr-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: 1.4rem; }
.mtr-metrics > div { padding: 1.2rem; border-top: 2px solid var(--mtr-red); background: #efe6db; min-width: 0; }
.mtr-metrics strong { display: block; margin-top: .47rem; font-size: 1.16rem; line-height: 1.28; }
.mtr-metrics p { margin-top: .5rem; }
.mtr-note { color: var(--mtr-muted); margin-top: 1.15rem; max-width: 74ch; }
.mtr-footer { border-top: 1px solid var(--mtr-line); padding-block: 2rem 3rem; }
.mtr-footer p { font: 500 clamp(1.65rem, 4vw, 3.1rem)/1.08 var(--portfolio-font-editorial, Georgia, "Times New Roman", serif); letter-spacing: -.035em; max-width: 34ch; }
.mtr-footer > span { display: block; margin-top: .8rem; color: var(--mtr-muted); font-size: .87rem; }
@media (max-width: 850px) {
  .mtr-stops { display: block; padding-left: .35rem; }
  .mtr-stops li { margin-left: .1rem; border-top: 0; border-left: 2px solid #f1717c; padding: 0 0 1.55rem 1.15rem; }
  .mtr-stops li::before { top: .25rem; left: -.39rem; }
  .mtr-stops li:last-child { border-left-color: transparent; padding-bottom: 0; }
}
@media (max-width: 680px) {
  .mtr-hero-grid, .mtr-facts, .mtr-split, .mtr-metrics { grid-template-columns: minmax(0, 1fr); }
  .mtr h1 { font-size: clamp(3.75rem, 16vw, 6.6rem); }
  .mtr-hero-figure { max-width: 34rem; }
}
@media print {
  .mtr, .mtr-hero, .mtr-journey, .mtr-metrics > div { background: white; color: #1b1816; }
  .mtr-journey .mtr-kicker, .mtr-stop-number, .mtr-channel { color: #5e262b; }
  .mtr-button { display: none; }
  .mtr-section, .mtr-stops li, .mtr-metrics > div { break-inside: avoid; }
}

/* ── Portfolio integration (devonhollawell.com) ──
   Site fonts, 16px minimum for readable text, fixed-header offset, route-line draw. */
.mtr {
  --portfolio-font-body: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --portfolio-font-editorial: 'Very Vogue', 'Playfair Display', Georgia, serif;
  --portfolio-scroll-offset: 7rem;
}
.mtr :where(h1, h2, h3) { font-weight: 400; }
.mtr h1 { letter-spacing: -.035em; line-height: .86; }
.mtr h2 { letter-spacing: -.025em; }
.mtr h3 { letter-spacing: -.01em; }
.mtr-footer p { font-weight: 400; letter-spacing: -.02em; }
.mtr-hero { padding-block-start: calc(clamp(2.7rem, 7vw, 6.5rem) + 88px); }
.mtr-kicker, .mtr-disclosure, .mtr-hero-figure figcaption, .mtr-facts dt, .mtr-metrics dt,
.mtr-stop-number, .mtr-channel, .mtr-footer > span { font-size: 1rem; }
.mtr-route { stroke-dasharray: 760; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mtr-route { stroke-dashoffset: 760; animation: mtrDraw 2.4s cubic-bezier(0.16,1,0.3,1) .5s forwards; }
  .mtr-route-stops circle { opacity: 0; animation: mtrPop .5s ease forwards; }
  .mtr-route-stops circle:nth-child(1) { animation-delay: .6s; }
  .mtr-route-stops circle:nth-child(2) { animation-delay: 1s; }
  .mtr-route-stops circle:nth-child(3) { animation-delay: 1.4s; }
  .mtr-route-stops circle:nth-child(4) { animation-delay: 1.8s; }
  .mtr-route-stops circle:nth-child(5) { animation-delay: 2.2s; }
}
@keyframes mtrDraw { to { stroke-dashoffset: 0; } }
@keyframes mtrPop { to { opacity: 1; } }
.mtr #mtr-journey { scroll-margin-top: 10rem; }

/* ── Deck visuals: gallery concept image + disconnected journey ── */
.mtr-gallery { margin: 0; background: var(--mtr-paper); padding-block: clamp(2rem, 4vw, 3.5rem) 0; }
.mtr-gallery-frame { overflow: hidden; height: clamp(320px, 52vw, 720px); }
.mtr-gallery-frame img { display: block; width: 100%; height: 118%; margin-top: -9%; object-fit: cover; will-change: transform; }
.mtr-gallery figcaption { padding-top: .7rem; color: var(--mtr-muted); font-size: 1rem; }
.mtr-disconnect { margin-top: 1.6rem; padding: 1.2rem 1.3rem 1.4rem; background: #efe6db; border-top: 2px solid var(--mtr-red); }
.mtr-disconnect figcaption { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.mtr-disconnect ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 0; }
.mtr-disconnect li { padding: .35rem .9rem; border: 1px solid var(--mtr-line); border-radius: 99px; background: #fff; font-size: 1rem; font-weight: 600; }
.mtr-disconnect li.is-red { color: var(--mtr-red); background: #f7f3ec; }
.mtr-disconnect li { position: relative; }
.mtr-disconnect li + li { margin-left: 1.9rem; }
.mtr-disconnect li + li::before { content: ""; position: absolute; left: -1.6rem; top: 50%; width: 1.3rem; border-top: 1px dashed #8d8479; }
