/* Kinbaku Touch, v8 (Nov 2026) */
:root {
  --ink: #111;
  --white: #fff;
  --taupe: #958377;
  --taupe-dark: #7d6c61;
  --stone: #d0cdc6;
  --cream: #f3efe9;
  --earth: #322a27;
  --black: #000;
  --line: #d9d1c9;
  --label: #74645a;        /* small taupe text on white and cream */
  --label-stone: #5e5047;  /* small taupe text on stone grey */
  --label-dark: #b7a79b;   /* small taupe text on earth and black */
  --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gutter: clamp(20px, 11.3vw, 176px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.12; text-wrap: balance; }
p { margin: 0 0 18px; }
.jp { font-family: var(--jp); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px 12px; z-index: 100; }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }
section[id] { scroll-margin-top: 24px; }

.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin: 0 0 14px; line-height: 1.4; }
.lede { font-style: italic; font-size: 22px; line-height: 1.45; margin-bottom: 22px; }
.meta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); margin: -6px 0 22px; line-height: 1.5; }
.text-link { color: var(--taupe); text-underline-offset: 4px; }

/* Buttons */
.btn { display: inline-block; background: var(--taupe); color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 17px; line-height: 1; padding: 21px 40px; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--taupe-dark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 34px 60px; color: var(--white); }
.site-header.is-light { position: relative; color: var(--ink); }
.site-nav { display: flex; gap: 26px; font-size: 17px; }
.site-nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.logo img { width: 64px; height: auto; }
.social { justify-self: end; display: flex; }
.social a { display: inline-flex; }
.icon { width: 20px; height: 20px; }

/* Home hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: #000 url("images/shibari-rope-marks-hero.webp") center / cover no-repeat; color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--gutter) 7vh; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 55%, rgba(0,0,0,.25) 100%); }
.hero > * { position: relative; }
.hero-quote { max-width: 640px; margin: 0 0 clamp(48px, 7vh, 80px); font-style: italic; font-size: clamp(21px, 1.8vw, 28px); line-height: 1.38; }
.hero-title { text-align: center; font-size: clamp(14px, 1vw, 16px); letter-spacing: .3em; }

/* Split sections (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5.5vw, 80px); padding: 100px var(--gutter); }
.split.flush { padding: 0; gap: 0; }
.split.flush .split-text { padding: 80px var(--gutter); }
.split h2 { font-size: clamp(34px, 3.2vw, 46px); margin-bottom: 22px; }
.split-text { min-width: 0; max-width: 600px; }
.split-media img { width: 100%; height: auto; }
.split.reverse .split-media { order: -1; }
.on-cream { background: var(--cream); }
.on-earth { background: var(--earth); color: var(--white); }
.on-earth .eyebrow, .on-earth .meta { color: #b7a79b; }

/* Where Rope Takes Me */
.travels { padding: 96px 0 100px; }
.travels-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--gutter); margin-bottom: 40px; }
.travels h2 { font-size: clamp(32px, 2.6vw, 40px); margin-bottom: 10px; }
.travels-head p { margin: 0; max-width: 620px; }
.travels-arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s, color .2s; }
.arrow:hover { background: var(--ink); color: var(--white); }
.events { list-style: none; margin: 0; padding: 0 var(--gutter) 8px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.events::-webkit-scrollbar { display: none; }
.event { position: relative; width: 100%; aspect-ratio: 300 / 390; overflow: hidden; background: var(--earth); color: var(--white); }
.event img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* One treatment for every card, as on the photo cards: image fills the card, dark gradient over the bottom. Poster images get their own gradient baked in before upload. */
.event::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,14,0) 42%, rgba(20,16,14,.86) 100%); }
.event-text { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.event-type { font-size: 11px; letter-spacing: .1em; white-space: nowrap; text-transform: uppercase; color: rgba(255,255,255,.85); line-height: 1.4; }
.event-title { font-size: 26px; line-height: 1.12; }
.event-detail { font-style: italic; font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.4; }

/* Event organizers */
.offerings { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 30px 0 26px; }
.offerings h3 { font-size: 24px; padding-top: 18px; border-top: 1px solid var(--taupe); margin-bottom: 8px; }
.offerings p { font-size: 17px; line-height: 1.7; margin: 0; }

/* Testimonials */
.testimonials { background: var(--stone); padding: 96px var(--gutter) 110px; }
.testimonials h2 { font-size: clamp(32px, 2.6vw, 40px); margin-bottom: 60px; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.t-col { display: grid; gap: 22px; }
.t-item { background: rgba(255,255,255,.42); padding: 34px 32px 30px; }
.t-item p { margin: 0 0 14px; font-size: 17px; line-height: 1.75; }
.t-item .t-high { font-style: italic; font-size: 24px; line-height: 1.3; margin-bottom: 18px; }
.t-item .t-name { font-size: 20px; line-height: 1.3; margin: 14px 0 0; }
.t-name a { color: var(--taupe-dark); font-style: italic; }
.t-body { position: relative; }
.t-item.is-clamped .t-body { max-height: 270px; overflow: hidden; }
.t-item.is-clamped .t-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(rgba(227,225,221,0), #e3e1dd); }
.t-more { display: none; background: none; border: 0; padding: 0; font: inherit; font-size: 16px; color: var(--taupe-dark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.t-item.is-clamped .t-more, .t-item.is-open .t-more { display: inline-block; }
.t-hint { display: none; }

/* Contact */
.contact { background: var(--earth); color: var(--white); padding: 90px var(--gutter) 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact h2 { color: var(--taupe); font-size: clamp(38px, 3vw, 46px); margin-bottom: 40px; }
.contact p { margin: 0 0 24px; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.form { display: grid; gap: 26px; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: 18px; margin-bottom: 14px; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 15px; }
.field .big { font-size: 18px; }
.req { color: rgba(255,255,255,.65); font-size: 14px; margin-left: 6px; }
.field input, .field textarea { width: 100%; background: transparent; color: var(--white); border: 0; border-bottom: 1px solid rgba(255,255,255,.35); font: inherit; padding: 12px 0; border-radius: 0; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--white); }
.form .btn { padding: 20px 32px; justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); text-align: center; padding: 90px 20px 60px; }
.site-footer h3 { font-size: 19px; margin-bottom: 30px; }
.site-footer p { margin: 0; font-size: 18px; }
.site-footer a { color: var(--taupe); }
.site-footer .footer-email { font-size: 26px; }

/* Learn Shibari */
.learn-top { padding-top: 40px; }
.learn-top h1 { font-size: clamp(40px, 4vw, 58px); margin-bottom: 26px; }
.learn-top .intro { font-size: 24px; line-height: 1.45; font-style: italic; }
.section-head { padding: 90px var(--gutter) 0; text-align: center; }
.section-head h2 { font-size: clamp(36px, 3.4vw, 50px); margin-bottom: 10px; }
.section-head p { font-style: italic; font-size: 20px; color: var(--taupe-dark); }
.class-block { border-top: 1px solid var(--line); margin: 0 var(--gutter); padding-left: 0; padding-right: 0; }
.class-block:first-of-type { border-top: 0; }
.closing { font-style: italic; }
.four { padding: 0 var(--gutter) 100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.four article { border-top: 1px solid var(--taupe); padding-top: 20px; }
.four .eyebrow { margin-bottom: 8px; }
.four h3 { font-size: 23px; margin-bottom: 12px; }
.four p { font-size: 16px; line-height: 1.7; margin: 0; }
.organizer-note { text-align: center; padding: 0 var(--gutter) 90px; font-size: 20px; }

/* About */
.page-banner { position: relative; height: 280px; background: #000 url("images/about-banner-rope.webp") center / cover no-repeat; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.about-open h1 { font-size: clamp(40px, 4vw, 58px); margin-bottom: 26px; }
.about-open .split-media img { max-width: 500px; }
.teachers { padding: 40px var(--gutter) 100px; }
.teachers > h2 { font-size: clamp(34px, 3.2vw, 46px); margin-bottom: 50px; }
.teacher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; }
.teacher { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.teacher img { width: 200px; height: auto; }
.teacher h3 { font-size: 27px; margin-bottom: 2px; }
.teacher .jp { color: var(--taupe); font-size: 15px; margin-bottom: 12px; display: block; }
.teacher p { font-size: 16px; line-height: 1.7; margin: 0; }
.tribute { background: var(--stone); }
.tribute h2 { font-size: clamp(30px, 2.8vw, 40px); margin-bottom: 6px; }
.tribute .date { color: var(--taupe-dark); font-size: 15px; letter-spacing: .06em; margin-bottom: 22px; }
.tribute p.t { font-style: italic; font-size: 19px; line-height: 1.7; }
.narrative { max-width: 640px; margin: 0 auto; padding: 100px 20px 30px; }
.pull { max-width: 860px; margin: 0 auto; padding: 50px 20px 60px; text-align: center; font-style: italic; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.35; color: var(--earth); }
.pull::before, .pull::after { content: ""; display: block; width: 60px; height: 1px; background: var(--taupe); margin: 0 auto 36px; }
.pull::after { margin: 36px auto 0; }
.close { max-width: 640px; margin: 0 auto; padding: 10px 20px 110px; }
.years { background: var(--earth); color: var(--white); padding: 100px var(--gutter) 110px; }
.years h2 { font-size: clamp(34px, 3.2vw, 46px); margin-bottom: 44px; }
.year { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.18); }
.year h3 { font-size: 38px; color: #a99a8f; }
.year ul { list-style: none; margin: 0; padding: 0; }
.year li { font-size: 20px; line-height: 1.75; }

/* Simple pages */
.simple { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 160px 20px 80px; background: var(--earth); color: var(--white); }
.simple h1 { font-size: 44px; color: var(--taupe); margin-bottom: 20px; }

/* Responsive */
@media (max-width: 1100px) {
  .teacher-grid { grid-template-columns: 1fr; }
  .four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .site-header { padding: 22px 20px; }
  .site-nav { gap: 16px; font-size: 16px; }
  .logo img { width: 52px; }
  .hero { padding: 0 20px 48px; background-position: 35% center; }
  .split, .split.flush, .contact { grid-template-columns: 1fr; }
  .split { padding: 64px 20px; gap: 32px; }
  .split.flush .split-text { padding: 56px 20px; }
  .split.reverse .split-media, .split .split-media { order: -1; }
  .split.flush .split-media img { max-height: 70vh; width: 100%; object-fit: cover; }
  .class-block { margin: 0 20px; }
  .offerings { grid-template-columns: 1fr; gap: 22px; }
  .travels { padding: 64px 0 72px; }
  .travels-head, .section-head { padding-left: 20px; padding-right: 20px; }
  .travels-arrows { display: none; }
  .events { padding: 0 20px 8px; scroll-padding-left: 20px; gap: 14px; }
  .ev-item { flex-basis: 74%; }
  .testimonials { padding: 72px 0; }
  .testimonials h2 { padding: 0 20px; margin-bottom: 36px; }
  .t-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 8px; scroll-padding-left: 20px; scrollbar-width: none; align-items: flex-start; -webkit-overflow-scrolling: touch; }
  .t-grid::-webkit-scrollbar { display: none; }
  .t-col { display: contents; }
  .t-item { flex: 0 0 84%; scroll-snap-align: start; padding: 28px 24px 26px; }
  .t-item .t-high { font-size: 22px; }
  .t-item.is-clamped .t-body { max-height: 330px; }
  .t-hint { display: block; padding: 0 20px; margin-top: 18px; font-size: 15px; color: rgba(17,17,17,.55); }
  .contact { padding: 72px 20px; gap: 40px; }
  .four { grid-template-columns: 1fr; padding: 0 20px 72px; }
  .page-banner { height: 180px; }
  .about-open .split-media img { max-width: 100%; }
  .teachers { padding: 20px 20px 72px; }
  .teacher { grid-template-columns: 120px 1fr; gap: 18px; }
  .teacher img { width: 120px; }
  .narrative { padding-top: 64px; }
  .years { padding: 72px 20px; }
  .year { grid-template-columns: 1fr; gap: 6px; }
  .year h3 { font-size: 30px; }
  .year li { font-size: 18px; }
}
@media (max-width: 520px) {
  .row { grid-template-columns: 1fr; }
  .site-header { grid-template-columns: 1fr auto; }
  .logo { order: -1; }
  .site-header .social { display: none; }
  .teacher { grid-template-columns: 1fr; }
  .teacher img { width: 100%; max-width: 320px; }
}
.teacher p .jp { display: inline; color: inherit; font-size: inherit; margin: 0; }

/* Contact overlay */
html.has-dialog { overflow: hidden; }
.contact-dialog { border: 0; padding: 0; background: transparent; color: var(--white); width: min(620px, calc(100% - 32px)); max-height: calc(100% - 48px); margin: auto; overflow: visible; }
.contact-dialog::backdrop { background: rgba(14, 11, 10, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cd-card { position: relative; background: var(--earth); padding: 48px 48px 44px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.contact-dialog h2 { color: var(--taupe); font-size: clamp(34px, 3vw, 42px); margin-bottom: 12px; }
.contact-dialog .eyebrow { color: #b7a79b; margin-bottom: 10px; }
.cd-hint { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.82); margin-bottom: 26px; }
.contact-dialog .form { gap: 22px; }
.contact-dialog .field input, .contact-dialog .field textarea { font-size: 17px; }
.cd-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; opacity: .8; }
.cd-close:hover { opacity: 1; }
.cd-error { color: #f1c9bd; font-size: 16px; margin: 0; }
.cd-done { text-align: left; padding: 20px 0 6px; }
.cd-done:focus { outline: none; }
.cd-done p { margin-bottom: 30px; }
.contact-dialog .btn[disabled] { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) {
  .contact-dialog[open] .cd-card { animation: cd-in .28s ease-out; }
  .contact-dialog[open]::backdrop { animation: cd-fade .28s ease-out; }
}
@keyframes cd-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cd-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .contact-dialog { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; }
  .cd-card { min-height: 100%; max-height: 100vh; max-height: 100dvh; padding: 64px 22px 36px; }
  .contact-dialog .field input, .contact-dialog .field textarea { font-size: 16px; }
}

/* About: match Figma v3 (teachers on stone, teacher cards, tribute continues the section) */
.teachers { background: var(--stone); padding: 100px var(--gutter) 60px; }
.teacher-grid { gap: 28px; }
.teacher { background: rgba(255,255,255,.45); padding: 28px; grid-template-columns: 240px 1fr; }
.teacher img { width: 240px; }
.tribute { padding-top: 40px; }
@media (max-width: 900px) {
  .teachers { padding: 64px 20px 40px; }
  .teacher { grid-template-columns: 120px 1fr; padding: 20px; }
  .teacher img { width: 120px; }
}
@media (max-width: 520px) { .teacher { grid-template-columns: 1fr; } .teacher img { width: 100%; max-width: 320px; } }

/* Learn Shibari: Beginners band on stone with class cards (Figma v3) */
.stone-band { background: var(--stone); padding-bottom: 100px; }
.stone-band .class-block { margin: 0; padding: 100px var(--gutter) 80px; border-top: 0; }
.stone-band + .class-block { border-top: 0; }
.stone-band .four { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 0; }
.stone-band .four article { background: rgba(255,255,255,.5); border-top: 0; padding: 40px 40px 44px; }
.stone-band .four h3 { font-size: 30px; }
.stone-band .four p { font-size: 17px; line-height: 1.8; }
@media (max-width: 900px) {
  .stone-band { padding-bottom: 64px; }
  .stone-band .class-block { padding: 64px 20px 48px; }
  .stone-band .four { grid-template-columns: 1fr; gap: 14px; }
  .stone-band .four article { padding: 28px 24px 30px; }
  .stone-band .four h3 { font-size: 25px; }
}
.on-stone { background: var(--stone); }

/* Color rules by background (v8.5). Small taupe text (eyebrows, meta lines, text links, dates, credits)
   steps darker as the background gets darker, and lighter on dark backgrounds, so it reads the same everywhere.
   Large taupe headings (Contact me, Thank you) keep var(--taupe). */
.eyebrow, .meta, .text-link, .section-head p { color: var(--label); }
:is(.testimonials, .teachers, .tribute, .stone-band, .on-stone) :is(.eyebrow, .meta, .text-link, .section-head p, .date, .jp, .t-name a, .t-more) { color: var(--label-stone); }
:is(.on-earth, .contact, .years, .simple, .contact-dialog, .site-footer) :is(.eyebrow, .meta, .text-link) { color: var(--label-dark); }
.site-footer a { color: var(--label-dark); }

/* Event labels: one line on desktop; on phones tighter spacing, and if a label still has to wrap, the date stays together */
@media (max-width: 600px) { .event-type { letter-spacing: .06em; white-space: normal; } }

/* Form: custom error bubble (light card, taupe icon, dark text) */
.field { position: relative; }
.field-error { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 8px 14px 8px 10px; background: #f3efe9; color: #111; font-size: 16px; line-height: 1.3; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.field-error::before { content: ""; position: absolute; top: -14px; left: 14px; border: 7px solid transparent; border-bottom-color: #f3efe9; }
.fe-icon { flex: 0 0 22px; height: 22px; display: grid; place-items: center; background: var(--taupe); color: #fff; font-weight: 600; font-size: 14px; line-height: 1; }
.field [aria-invalid="true"] { border-bottom-color: #f3efe9; }

/* Form: autofilled fields keep the dark field look (no light-blue fill) */
.field input:-webkit-autofill, .field input:-webkit-autofill:hover, .field input:-webkit-autofill:focus, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--white); caret-color: var(--white);
  -webkit-box-shadow: 0 0 0 1000px var(--earth) inset; box-shadow: 0 0 0 1000px var(--earth) inset;
  transition: background-color 9999s ease-out 0s;
}
.field input:autofill { background: transparent; }

/* Upcoming event card: warm label and a softly pulsing dot so it reads as live */
.event.is-upcoming .event-type { color: #f3e3c9; }
.live-dot { position: relative; display: inline-block; width: 7px; height: 7px; margin-right: 9px; vertical-align: 1px; border-radius: 50%; background: #f3e3c9; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #f3e3c9; animation: live-pulse 2.4s ease-out infinite; }
@keyframes live-pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }

/* Contact card: fallback email line under Send */
.form-alt { margin: 4px 0 0; font-size: 15px; color: var(--label-dark); }
.form-alt a { color: var(--white); text-underline-offset: 3px; }
.form-fail { color: #f1c9bd; font-size: 16px; margin: 10px 0 0; }
.form-fail a { color: inherit; }

/* Where Rope Takes Me: timeline. A line runs above the cards; the first card of each year carries the year. */
.ev-item { flex: 0 0 300px; display: flex; flex-direction: column; scroll-snap-align: start; }
.ev-year { position: relative; height: 46px; border-top: 1px solid var(--line); }
.ev-first .ev-year { border-top-color: var(--ink); }
.ev-first .ev-year::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.ev-year b { position: absolute; top: 9px; left: 14px; font-weight: 400; font-size: 24px; line-height: 1; color: var(--ink); }
.travels-nav { display: flex; align-items: center; gap: 36px; }
.year-tabs { display: flex; gap: 22px; font-size: 17px; }
.year-tab { text-decoration: none; color: var(--label); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.year-tab:hover, .year-tab.is-on { color: var(--ink); border-bottom-color: currentColor; }
@media (max-width: 600px) {
  .travels-head { flex-wrap: wrap; }
  .travels-nav { width: 100%; }
  .ev-year { height: 40px; }
  .ev-year b { font-size: 21px; }
}


/* Event row arrows: round, thin chevrons, quiet until hovered; fade out at the ends of the row */
.travels-arrows { gap: 10px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(149, 131, 119, .45); background: transparent; color: var(--label); display: grid; place-items: center; padding: 0; cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.arrow:hover:not(:disabled) { background: var(--taupe); border-color: var(--taupe); color: var(--white); }
.arrow:disabled { opacity: .3; cursor: default; }
.arrow:focus-visible { outline: 2px solid var(--label); outline-offset: 3px; }

/* Event section on stone (4 Nov): taupe labels step darker to stay readable */
.on-stone .year-tab, .on-stone .arrow { color: var(--label-stone); }
.on-stone .year-tab:hover, .on-stone .year-tab.is-on { color: var(--ink); }
.on-stone .arrow { border-color: rgba(94, 80, 71, .4); }
.on-stone .arrow:hover:not(:disabled) { color: var(--white); }

/* Podcast cards in the timeline: whole card links to the episode; headphones badge marks "listen" */
a.event { display: block; text-decoration: none; color: var(--white); }
.listen-badge { position: absolute; top: 16px; right: 16px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 16, 14, .35); border: 1px solid rgba(255, 255, 255, .55); color: var(--white); transition: background .2s, border-color .2s; }
.event-listen { margin-top: 6px; font-size: 14px; letter-spacing: .02em; color: rgba(255, 255, 255, .85); }
a.event:hover .listen-badge, a.event:focus-visible .listen-badge { background: var(--taupe); border-color: var(--taupe); }
a.event:hover .event-listen { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
a.event:focus-visible { outline: 2px solid var(--label-stone); outline-offset: 3px; }

/* Timeline v2 (16 Nov): one continuous line under the whole row. Each year starts with a dot,
   and a short dark stroke that fades into the light line. */
.ev-year { border-top: 0; }
.ev-year::after { content: ""; position: absolute; top: 0; left: 0; right: -20px; height: 1px; background: rgba(94, 80, 71, .3); }
.ev-item:last-child .ev-year::after { right: 0; }
.ev-first .ev-year::after { background: linear-gradient(90deg, var(--ink) 0, var(--ink) 30%, rgba(94, 80, 71, .3) 100%); }
.ev-first .ev-year::before { top: -3px; z-index: 1; }

/* Cards fade out as they slide behind the right margin (a mask on the scrolling row, so
   cards, timeline and text all fade together). The fade lifts at the end of the row. */
.events-wrap { position: relative; }
.events { --fade: 160px; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - var(--gutter) - var(--fade)), rgba(0,0,0,.18) calc(100% - var(--gutter)), transparent calc(100% - var(--gutter) + 24px));
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - var(--gutter) - var(--fade)), rgba(0,0,0,.18) calc(100% - var(--gutter)), transparent calc(100% - var(--gutter) + 24px)); }
.events-wrap.is-end .events { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 600px) {
  .ev-year::after { right: -14px; }
  .events { --fade: 56px; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 20px - var(--fade)), rgba(0,0,0,.15) calc(100% - 20px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 20px - var(--fade)), rgba(0,0,0,.15) calc(100% - 20px), transparent 100%); }
}
