/* ==========================================================================
   שוטוקאן כפר גנים — גלי אורנים (Shōtō)
   Palette: deep orange-brown (the gi belt / hinoki lacquer), warm black, cream.
   No image files anywhere — the only ornament is an inline-SVG wave hairline.
   ========================================================================== */

:root {
  --ink:        #12110F;   /* warm near-black — headings, dark bands */
  --umber:      #43241A;   /* structural dark brown */
  --clay:       #7A3A22;   /* links and secondary accents */
  --rust:       #C73724;   /* primary — CTA, labels, the wave */
  --rust-dark:  #9E2A1A;   /* CTA hover */
  --ember:      #E96A58;   /* the accent that survives a black background */
  --paper-deep: #E8E2D6;   /* cream tint band */
  --paper:      #F2EFE7;   /* page — cream, deliberately not white */
  --paper-hi:   #FFFDF8;   /* cards, panels */
  --line:       #DED6C6;
  --line-2:     #C6B79F;   /* hairlines on tint */
  --muted:      #6C6962;   /* fine print */
  --body:       #4F4B45;   /* body text: warm grey, softer than ink */

  --shell: 1120px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --sect-y: clamp(3.25rem, 8vw, 6rem);

  --serif: "Frank Ruhl Libre", "Narkisim", "David Libre", Georgia, serif;
  --sans: "Assistant", "Arial Hebrew", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* the signature: waves in the pines, drawn once, reused everywhere */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M0 8 Q 11 0 22 8 T 44 8' fill='none' stroke='%23C73724' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --wave-pale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M0 8 Q 11 0 22 8 T 44 8' fill='none' stroke='%23C6B79F' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  /* the same wave, in ember — the rust one disappears against a dark band */
  --wave-ember: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='12' viewBox='0 0 44 12'%3E%3Cpath d='M0 8 Q 11 0 22 8 T 44 8' fill='none' stroke='%23E96A58' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 400 clamp(1rem, 0.97rem + 0.2vw, 1.075rem)/1.75 var(--sans);
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.18; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--clay); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--umber); }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gap); }

.skip {
  position: absolute; inset-block-start: -100px; inset-inline-start: 1rem;
  z-index: 20; background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; border-radius: 0 0 6px 6px; text-decoration: none;
}
.skip:focus { inset-block-start: 0; color: #fff; }

/* ── eyebrow (shared) ───────────────────────────────────────────────── */
.eyebrow {
  font: 600 0.8rem/1 var(--sans);
  letter-spacing: 0.16em;
  color: var(--rust);
  text-transform: none;
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow span { font-size: 1.15rem; letter-spacing: 0.1em; opacity: 0.85; }
.eyebrow--light { color: #EF8B78; }

/* ── affiliation strip — the first thing on the page ────────────────── */
.affil {
  background: var(--ink);
  color: #E6DFD2;
  font-size: 0.9rem;
  line-height: 1.5;
}
.affil p {
  margin: 0;
  padding-block: 0.6rem;
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem;
  align-items: baseline; justify-content: center;
  text-align: center;
}
.affil strong { color: #fff; font-weight: 600; }
.affil a {
  color: var(--ember);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}
.affil a:hover { color: #fff; }

/* ── affiliation panel ──────────────────────────────────────────────── */
.org {
  position: relative;
  background: linear-gradient(165deg, var(--paper-hi) 0%, var(--paper-deep) 100%);
  border: 2px solid var(--umber);
  border-radius: 5px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  padding-block-start: clamp(2.5rem, 5vw, 2.75rem);
}
.org__seal {
  position: absolute;
  inset-block-start: 0; inset-inline-start: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--umber);
  color: var(--paper);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.55rem 0.5rem;
  border-radius: 0 0 4px 4px;
}
.org__h {
  font-size: clamp(1.45rem, 1.1rem + 1.9vw, 2.5rem);
  font-weight: 900;
  line-height: 1.22;
  margin-block-end: 1.1rem;
}
.org__h a {
  color: var(--clay);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
.org__h a:hover { color: var(--rust); }

.org__lead {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.16rem);
  max-width: 44rem;
  color: #3B342C;
  margin-block-end: 1.9rem;
}

.org__sh {
  font-size: 0.82rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--rust);
  margin-block-end: 1.1rem;
  padding-block-end: 0.7rem;
  background-image: var(--wave);
  background-repeat: repeat-x;
  background-position: right bottom;
  background-size: 44px 12px;
}

.org__list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.95rem;
  max-width: 46rem;
}
.org__list li {
  padding-inline-start: 1.15rem;
  border-inline-start: 3px solid var(--line-2);
  font-size: 0.99rem;
}
.org__list strong { color: var(--ink); font-weight: 600; }

.org__cta { margin-block-end: 1.1rem; }

.btn--org {
  background: var(--umber);
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.95rem 1.9rem;
  font-size: 1.05rem;
}
.btn--org:hover { background: var(--rust); color: #fff; }
.btn--org span { font-weight: 600; }
.btn--org b {
  font-weight: 400;
  font-size: 0.88rem;
  opacity: 0.85;
  letter-spacing: 0.03em;
}

.org__fine { font-size: 0.92rem; color: var(--muted); max-width: 44rem; }

/* ── top bar ────────────────────────────────────────────────────────── */
.bar {
  background: var(--paper);
  border-block-end: 1px solid var(--line);
  position: sticky; inset-block-start: 0; z-index: 10;
}
.bar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__seal {
  font-size: 1.05rem; line-height: 1;
  color: var(--paper); background: var(--umber);
  padding: 0.42rem 0.3rem;
  border-radius: 3px;
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
}
.brand__txt { display: flex; flex-direction: column; }
.brand__txt strong { font: 700 1.16rem/1.15 var(--serif); color: var(--ink); }
.brand__txt small { font-size: 0.74rem; color: var(--body); letter-spacing: 0.01em; }

.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: 0.94rem; font-weight: 600; color: var(--umber);
  text-decoration: none; padding-block: 0.2rem;
  border-block-end: 2px solid transparent;
}
.nav a:hover { border-block-end-color: var(--rust); }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 88% 0%, #FFFDF8 0%, rgba(255,253,248,0) 58%),
    radial-gradient(85% 70% at 6% 100%, #E3D6C2 0%, rgba(227,214,194,0) 62%),
    linear-gradient(170deg, var(--paper-deep) 0%, #F6F2EA 100%);
  padding-block: clamp(2.75rem, 7vw, 5.25rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__in { position: relative; z-index: 1; max-width: 44rem; }

.hero__h {
  font-size: clamp(2.1rem, 1.35rem + 4.2vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.015em;
  margin-block-end: 1.4rem;
}
.hero__h em {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--clay);
}

.hero__lead {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.19rem);
  max-width: 38rem;
  color: #3B342C;
  margin-block-end: 1.9rem;
}

/* the schedule stamp — the one fact a visitor came for */
.stamp {
  display: flex; flex-wrap: wrap; gap: 0 clamp(1.25rem, 4vw, 2.75rem);
  margin: 0 0 1.9rem;
  padding: 1.05rem clamp(1rem, 3vw, 1.5rem);
  background: rgba(255,253,248,0.82);
  border: 1px solid var(--line-2);
  border-inline-start: 4px solid var(--rust);
  border-radius: 4px;
  backdrop-filter: blur(2px);
}
.stamp > div { padding-block: 0.35rem; }
.stamp dt {
  font: 600 0.73rem/1 var(--sans);
  letter-spacing: 0.13em; color: var(--rust);
  margin-block-end: 0.35rem;
}
.stamp dd {
  margin: 0;
  font: 700 clamp(1rem, 0.95rem + 0.3vw, 1.15rem)/1.3 var(--serif);
  color: var(--ink);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-block-end: 1rem; }
.cta-row--center { justify-content: center; margin-block: 1.75rem 0; }

.btn {
  display: inline-block;
  font: 600 1rem/1.35 var(--sans);
  padding: 0.82rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--go { background: var(--rust); color: #fff; }
.btn--go:hover { background: var(--rust-dark); color: #fff; }

.btn--ghost { border-color: var(--umber); color: var(--umber); background: transparent; }
.btn--ghost:hover { background: var(--umber); color: #fff; }

.btn--line { border-color: var(--ember); color: #F6E9DF; background: transparent; }
.btn--line:hover { background: #F6E9DF; color: var(--ink); }

.hero__note { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* wave edge — the signature, closing the hero */
.wave-edge {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  height: 12px;
  background-image: var(--wave);
  background-repeat: repeat-x;
  background-position: center bottom;
  opacity: 0.55;
}

/* ── generic section ────────────────────────────────────────────────── */
.sect { padding-block: var(--sect-y); }
.sect--tint { background: var(--paper-deep); }

.sect__h {
  font-size: clamp(1.55rem, 1.25rem + 1.5vw, 2.35rem);
  margin-block-end: 0.85rem;
  padding-block-end: 0.85rem;
  background-image: var(--wave);
  background-repeat: repeat-x;
  background-position: right bottom;
  background-size: 44px 12px;
}

.sect__sub {
  max-width: 46rem;
  font-size: clamp(1rem, 0.97rem + 0.25vw, 1.1rem);
  margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}

.fine { font-size: 0.92rem; color: var(--muted); }
.lnk { font-weight: 600; }

/* ── numbered section label (01 · הדרך שלנו) ────────────────────────── */
.slabel {
  display: flex; align-items: center; gap: 0.7rem;
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.16em;
  color: var(--rust);
  margin: 0 0 1.4rem;
}
.slabel span {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--rust);
  padding: 0.3rem 0.45rem;
  border-radius: 3px;
}
.slabel--light { color: var(--ember); }
.slabel--light span { background: var(--ember); color: var(--ink); }

/* ── manifesto ──────────────────────────────────────────────────────── */
.lead {
  font: 700 clamp(1.35rem, 1.05rem + 1.5vw, 2.15rem)/1.35 var(--serif);
  color: var(--ink);
  max-width: 34rem;
  margin-block-end: clamp(1.75rem, 4vw, 2.5rem);
}
/* the highlight is a gradient, not a fill — it sits under the text like ink */
.lead mark { background: linear-gradient(transparent 62%, #F1C6BB 62%); color: inherit; }

.cols2 {
  display: grid; gap: clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  max-width: 52rem;
}

/* ── dark sections ──────────────────────────────────────────────────── */
.sect--dark { background: var(--ink); color: #E7DCD2; }
.sect--dark h2, .sect--dark h3, .sect--dark h4 { color: #fff; }
.sect--dark a { color: var(--ember); }
.sect--dark a:hover { color: #fff; }
.sect__h--light { color: #fff; background-image: var(--wave-ember); }
.sect__sub--light { color: #C9BCB1; }
.sect__h i, .everyone h2 i { font-style: normal; color: var(--rust); }
.sect__h--light i { color: var(--ember); }

/* ── lineage ladder ─────────────────────────────────────────────────── */
.ladder {
  display: grid; gap: clamp(1.4rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}
.ladder__y {
  display: block;
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.12em;
  color: #A79C93;
  font-variant-numeric: tabular-nums;
  margin-block-end: 0.85rem;
}
.ladder__n {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  margin-block-end: 0.9rem;
}
.ladder__n--red { background: var(--rust); border-color: var(--rust); }
.ladder h3 { font-size: 1.12rem; margin-block-end: 0.45rem; }
.ladder p { font-size: 0.94rem; color: #C9BCB1; }

/* ── the four aspects ───────────────────────────────────────────────── */
.aspects {
  list-style: none; margin: 0 0 clamp(1.6rem, 4vw, 2.4rem); padding: 0;
  display: grid; gap: clamp(1.1rem, 3vw, 1.9rem);
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
}
.aspects > li {
  padding-block-start: 1.05rem;
  border-block-start: 2px solid var(--line-2);
}
.aspects__n {
  display: block;
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.14em;
  color: var(--rust);
  font-variant-numeric: tabular-nums;
  margin-block-end: 0.7rem;
}
.aspects h3 { font-size: 1.24rem; margin-block-end: 0.4rem; }
.aspects p { font-size: 0.96rem; }

/* ── "הקראטה שייך לכולם" — the one full-rust band ───────────────────── */
.everyone {
  position: relative;
  background: var(--rust);
  color: #FFE6DF;
  padding-block: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.everyone__in { position: relative; z-index: 1; max-width: 40rem; }
.everyone h2 {
  color: #fff;
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.7rem);
  margin-block-end: 1.1rem;
}
.everyone h2 i { color: #FFD9CF; }
.everyone .eyebrow--light { color: #FFD1C4; }
.everyone__type {
  position: absolute;
  inset-block-start: 50%; inset-inline-start: clamp(-1.5rem, 1vw, 3rem);
  transform: translateY(-50%);
  font-size: clamp(5rem, 15vw, 11rem);
  line-height: 1;
  color: rgba(255,255,255,0.13);
  pointer-events: none; user-select: none;
}

/* ── album grid ─────────────────────────────────────────────────────── */
/* Fixed column counts rather than auto-fit: the tiles are a known 4:3, so
   pinning 2/3/4 keeps `sizes` honest and the browser picks the right file. */
.album {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .album { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 1000px) { .album { grid-template-columns: repeat(4, 1fr); gap: 0.85rem; } }

.tile {
  position: relative; display: block;
  border-radius: 4px; overflow: hidden;
  background: var(--paper-deep);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
}
.tile__cap {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: 1.9rem 0.6rem 0.45rem;
  font: 600 0.78rem/1.35 var(--sans);
  color: #fff;
  background: linear-gradient(transparent, rgba(18,17,15,0.82));
}
.tile:hover, .tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18,17,15,0.22);
}

/* ── lightbox — pure CSS, :target only ──────────────────────────────── */
/* display:none until targeted, so none of the large files are fetched
   until the visitor actually opens one. */
.lb { display: none; }
.lb:target {
  display: grid; place-items: center; align-content: center;
  position: fixed; inset: 0; z-index: 60;
  background: #0A0908;
  padding: clamp(0.5rem, 3vw, 2rem);
}
.lb__bg { position: absolute; inset: 0; }
/* a background can't size itself to the file, so the box is capped both by
   viewport height and by width — keeps portraits tall on a phone without
   leaving a canyon of empty space around a landscape shot */
.lb__img {
  position: relative; z-index: 1;
  width: min(96vw, 1400px);
  max-height: 78vh;
  background: center / contain no-repeat;
}
.lb__cap {
  position: relative; z-index: 1;
  margin: 0.85rem 0 0;
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: center; gap: 0.3rem 0.9rem;
  color: #E7DCD2; font-size: 0.92rem; text-align: center;
}
.lb__cap b { color: #fff; font-weight: 600; }
.lb__cap span { color: var(--ember); font-variant-numeric: tabular-nums; font-size: 0.84rem; }
.lb__cap a { color: #C9BCB1; font-size: 0.84rem; }
.lb__cap a:hover { color: #fff; }

/* z-index above the photo: on a phone the image is 96vw, so the controls
   necessarily sit over it and must stay legible against any picture */
.lb__x, .lb__nav {
  position: absolute; z-index: 3;
  display: grid; place-items: center;
  width: 2.9rem; height: 2.9rem;      /* ≥44px tap target */
  color: #fff; text-decoration: none;
  background: rgba(10,9,8,0.62);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}
.lb__x:hover, .lb__nav:hover { background: var(--rust); border-color: var(--rust); color: #fff; }
.lb__x { inset-block-start: clamp(0.5rem, 2vw, 1.25rem); inset-inline-start: clamp(0.5rem, 2vw, 1.25rem); font-size: 1rem; }
.lb__nav { inset-block-start: 50%; transform: translateY(-50%); font-size: 1.9rem; line-height: 0; padding-block-end: 0.25rem; }
/* RTL: "next" sits on the left, "previous" on the right */
.lb__next { inset-inline-start: clamp(0.4rem, 2vw, 1.5rem); }
.lb__prev { inset-inline-end: clamp(0.4rem, 2vw, 1.5rem); }

/* ── two-column block ───────────────────────────────────────────────── */
.two {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  align-items: start;
}

/* ── schedule table ─────────────────────────────────────────────────── */
.sched {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: 1.25rem;
  background: rgba(255,253,248,0.62);
}
.sched caption {
  text-align: start;
  font: 600 0.9rem/1.5 var(--sans);
  color: var(--rust);
  padding-block-end: 0.7rem;
}
.sched th, .sched td {
  text-align: start;
  padding: 0.72rem 0.8rem;
  border-block-end: 1px solid var(--line);
}
.sched thead th {
  font: 600 0.76rem/1 var(--sans);
  letter-spacing: 0.1em;
  color: var(--umber);
  border-block-end: 1.5px solid var(--line-2);
}
.sched tbody th { font: 700 1.02rem/1.4 var(--serif); color: var(--ink); }
.sched tbody td { font-variant-numeric: tabular-nums; }
.sched tbody tr:last-child th, .sched tbody tr:last-child td { border-block-end: none; }

.addr { font-size: 1.05rem; color: var(--ink); line-height: 1.9; }
.addr strong { font-family: var(--serif); font-size: 1.15rem; }

.map { margin-block: 1rem; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ── memorial (חיים תמר) ────────────────────────────────────────────── */
.memo {
  display: grid; gap: clamp(1.25rem, 4vw, 2.5rem);
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  align-items: start;
}
.memo__photo { margin: 0; }
.memo__photo img {
  display: block; width: 100%; height: auto;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: var(--paper-deep);
}
.memo__photo figcaption {
  font: 400 0.78rem/1.5 var(--sans);
  color: var(--muted);
  padding-block-start: 0.55rem;
}
.overline {
  font: 600 0.76rem/1 var(--sans);
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-block-end: 0.7rem;
}
.overline--light { color: #A79C93; }
.memo__lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  color: var(--ink);
  max-width: 44rem;
  margin-block-end: 1.4rem;
}

/* ── teachers (dark band) ───────────────────────────────────────────── */
.theads {
  display: grid; gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  align-items: start;
  margin-block-end: clamp(1.75rem, 4vw, 2.75rem);
}
.dan5 {
  border-inline-start: 3px solid var(--ember);
  padding-inline-start: 1.1rem;
}
.dan5 strong {
  display: block;
  font: 700 1.15rem/1.2 var(--serif);
  color: var(--ember);
  margin-block-end: 0.4rem;
}
.dan5 p { font-size: 0.93rem; color: #C9BCB1; }

.tcards {
  display: grid; gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
}
.tcard {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 5px;
  padding: 1.25rem;
}
/* the two portraits have different native ratios — Yaniv's is uncropped on
   purpose — so each keeps its own height instead of being forced into a box */
.tcard__photo { margin: 0; }
.tcard__photo img {
  display: block; width: 100%; height: auto;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
}
.tcard__photo a { display: block; border-radius: 4px; }
.tcard__photo figcaption {
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--ember);
  padding-block-start: 0.5rem;
}

.tcard__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 0.8rem; flex-wrap: wrap;
  margin-block-end: 0.8rem;
}
.tcard__role {
  font: 600 0.74rem/1 var(--sans);
  letter-spacing: 0.12em;
  color: var(--ember);
  margin-block-end: 0.4rem;
}
.tcard h3 { font-size: 1.34rem; }
.rank {
  flex: none;
  font: 600 0.76rem/1 var(--sans);
  letter-spacing: 0.08em;
  color: #fff;
  border: 1px solid var(--ember);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
}
.tcard__lead { font-size: 0.97rem; color: #E0D4C9; }

.miles { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.miles li { display: flex; gap: 0.6rem; font-size: 0.92rem; color: #C9BCB1; }
.miles span {
  flex: none;
  font: 600 0.72rem/1.6 var(--sans);
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}
.tcard__tel { margin: 0; }
.tcard__tel a {
  font: 700 1.12rem/1 var(--serif);
  color: #fff;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  border-block-end: 2px solid var(--ember);
  padding-block-end: 2px;
}
.tcard__tel a:hover { border-block-end-color: #fff; }

.more { margin-block-start: clamp(1.75rem, 4vw, 2.5rem); }
.more__grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}
/* no photos for these two — a rust edge carries the row instead of initials */
.more__i {
  display: flex; align-items: center; gap: 0.9rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-inline-start: 3px solid var(--rust);
  border-radius: 4px;
  padding: 0.85rem 1rem;
}
.more__i div { flex: 1 1 auto; }
.more__i p { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.1em; color: #A79C93; margin-block-end: 0.35rem; }
.more__i h4 { font: 700 1.05rem/1.2 var(--serif); color: #fff; margin: 0; }

/* ── article cards ──────────────────────────────────────────────────── */
.cards {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}
.card {
  background: var(--paper-hi);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.3rem;
}
.card h3 { font-size: 1.16rem; margin-block-end: 0.6rem; }
.card h3 a { color: var(--umber); text-decoration: none; }
.card h3 a:hover { color: var(--clay); text-decoration: underline; }
.card p { font-size: 0.97rem; }

/* ── video gallery ──────────────────────────────────────────────────── */
.vids {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}
.vid { margin: 0; }
.vid__box {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
}
.vid__box iframe { display: block; width: 100%; height: 100%; border: 0; }
.vid figcaption { font-size: 0.86rem; color: var(--muted); padding-block-start: 0.5rem; }

/* ── faq ────────────────────────────────────────────────────────────── */
.faq { max-width: 48rem; }
.faq details {
  border-block-end: 1px solid var(--line-2);
  padding-block: 0.95rem;
}
.faq details:first-of-type { border-block-start: 1px solid var(--line-2); }
.faq summary {
  cursor: pointer;
  font: 700 1.06rem/1.45 var(--serif);
  color: var(--ink);
  list-style: none;
  display: flex; align-items: baseline; gap: 0.7rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  flex: none;
  font: 400 1.2rem/1 var(--sans);
  color: var(--rust);
}
.faq details[open] summary::before { content: "–"; }
.faq details p { margin-block: 0.7rem 0; padding-inline-start: 1.4rem; font-size: 0.98rem; }

/* ── closing band ───────────────────────────────────────────────────── */
.closing {
  background:
    var(--wave-ember) repeat-x center top / 44px 12px,
    linear-gradient(160deg, var(--umber) 0%, var(--ink) 100%);
  color: #E7DCD2;
  text-align: center;
}
.closing__in { max-width: 40rem; margin-inline: auto; }
.closing .eyebrow { justify-content: center; }
.closing h2 {
  color: #fff;
  font-size: clamp(1.6rem, 1.25rem + 1.8vw, 2.5rem);
  margin-block-end: 1rem;
}
.closing p { color: #D9CCC0; }

/* ── footer ─────────────────────────────────────────────────────────── */
.foot {
  background: var(--paper);
  border-block-start: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 3rem);
  font-size: 0.92rem;
}
.foot__in {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
}
.foot p { margin-block-end: 0.4rem; }
.foot__name { font: 700 1.08rem/1.4 var(--serif); color: var(--ink); margin-block-end: 0.6rem; }
.foot__name span { color: var(--rust); }
.foot__org {
  font: 700 1.08rem/1.4 var(--serif);
  color: var(--ink);
  margin-block-end: 0.6rem;
}
.foot__org a { text-decoration-thickness: 2px; }
.foot__kw { color: #7A756C; margin-block-start: 0.8rem; }

/* ── narrow screens ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* a wrapping 6-item nav plus a sticky bar would eat a third of a phone
     viewport — let the header scroll away instead */
  .bar { position: static; }
  .bar__in { padding-block: 0.6rem; }
  .nav { gap: 0.3rem 0.9rem; }
  .nav a { font-size: 0.88rem; }
  .brand__txt small { display: none; }
  .stamp { flex-direction: column; gap: 0; }
  .stamp > div + div { border-block-start: 1px solid var(--line); }
  .btn { width: 100%; text-align: center; }
  .btn--org { align-items: center; }
  .affil { font-size: 0.85rem; }
  .affil a { white-space: normal; }
  /* the portraits stack above their text and stay small — a full-bleed photo
     would push the whole bio below the fold on a phone */
  .memo { grid-template-columns: 1fr; gap: 1.1rem; }
  .memo__photo { max-width: 11rem; }
  .tcard { grid-template-columns: 1fr; gap: 1rem; }
  .tcard__photo { max-width: 11rem; }
  .tcard__photo figcaption { text-align: start; }
  /* 誰でも would sit under the paragraph on a phone */
  .everyone__type { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .bar, .vids, .wave-edge { display: none; }
  body { background: #fff; color: #000; }
}

/* ── lightbox sources (generated) ───────────────────────────────────── */
/* One rule per photo. Only the :target rule ever resolves, so exactly one
   large file is fetched — at the moment the visitor opens it, never on load.
   Each rule also carries the photo's own aspect-ratio, so the box fits the
   image exactly (no letterboxing) and is capped by both viewport axes. */
#a01:target .lb__img{aspect-ratio:1320/1260;width:min(96vw,1400px,calc(78vh*1.048));background-image:url("images/album/a01-900.jpg")}
#a02:target .lb__img{aspect-ratio:980/790;width:min(96vw,1400px,calc(78vh*1.241));background-image:url("images/album/a02-900.jpg")}
#a03:target .lb__img{aspect-ratio:1500/1020;width:min(96vw,1400px,calc(78vh*1.471));background-image:url("images/album/a03-900.jpg")}
#a04:target .lb__img{aspect-ratio:1500/547;width:min(96vw,1400px,calc(78vh*2.742));background-image:url("images/album/a04-900.jpg")}
#a05:target .lb__img{aspect-ratio:1390/730;width:min(96vw,1400px,calc(78vh*1.904));background-image:url("images/album/a05-900.jpg")}
#a06:target .lb__img{aspect-ratio:1430/900;width:min(96vw,1400px,calc(78vh*1.589));background-image:url("images/album/a06-900.jpg")}
#a07:target .lb__img{aspect-ratio:1500/941;width:min(96vw,1400px,calc(78vh*1.594));background-image:url("images/album/a07-900.jpg")}
#a08:target .lb__img{aspect-ratio:1040/1270;width:min(96vw,1400px,calc(78vh*0.819));background-image:url("images/album/a08-900.jpg")}
#a09:target .lb__img{aspect-ratio:800/720;width:min(96vw,1400px,calc(78vh*1.111));background-image:url("images/album/a09-900.jpg")}
#a10:target .lb__img{aspect-ratio:720/710;width:min(96vw,1400px,calc(78vh*1.014));background-image:url("images/album/a10-900.jpg")}
#a11:target .lb__img{aspect-ratio:1050/438;width:min(96vw,1400px,calc(78vh*2.397));background-image:url("images/album/a11-900.jpg")}
#a12:target .lb__img{aspect-ratio:631/1080;width:min(96vw,1400px,calc(78vh*0.584));background-image:url("images/album/a12-900.jpg")}
#a13:target .lb__img{aspect-ratio:1500/375;width:min(96vw,1400px,calc(78vh*4.000));background-image:url("images/album/a13-900.jpg")}
#a14:target .lb__img{aspect-ratio:1160/701;width:min(96vw,1400px,calc(78vh*1.655));background-image:url("images/album/a14-900.jpg")}
#a15:target .lb__img{aspect-ratio:1314/769;width:min(96vw,1400px,calc(78vh*1.709));background-image:url("images/album/a15-900.jpg")}

/* wide viewports get the 1500px file; phones keep the 900px one */
@media (min-width: 900px) {
  #a01:target .lb__img{background-image:url("images/album/a01-1500.jpg")}
  #a02:target .lb__img{background-image:url("images/album/a02-1500.jpg")}
  #a03:target .lb__img{background-image:url("images/album/a03-1500.jpg")}
  #a04:target .lb__img{background-image:url("images/album/a04-1500.jpg")}
  #a05:target .lb__img{background-image:url("images/album/a05-1500.jpg")}
  #a06:target .lb__img{background-image:url("images/album/a06-1500.jpg")}
  #a07:target .lb__img{background-image:url("images/album/a07-1500.jpg")}
  #a08:target .lb__img{background-image:url("images/album/a08-1500.jpg")}
  #a09:target .lb__img{background-image:url("images/album/a09-1500.jpg")}
  #a10:target .lb__img{background-image:url("images/album/a10-1500.jpg")}
  #a11:target .lb__img{background-image:url("images/album/a11-1500.jpg")}
  #a12:target .lb__img{background-image:url("images/album/a12-1500.jpg")}
  #a13:target .lb__img{background-image:url("images/album/a13-1500.jpg")}
  #a14:target .lb__img{background-image:url("images/album/a14-1500.jpg")}
  #a15:target .lb__img{background-image:url("images/album/a15-1500.jpg")}
}
