/* NCMA design option A, "Red disc". paf "Night ops" dark theme; signal-red is the accent fill (client brand:
   red, black, white), always with white text. Parallax layers per hero: 柔道 outline (slowest), outline ring,
   red disc (slow), Neil cut-out (near page speed). Cut-out throws drift across section edges; the photo wall
   is four columns at four speeds. Phone first; desktop from 900px. */

:root {
  color-scheme: dark;
  --hangar: #12161c;
  --hangar-raised: #1c222b;
  --ink: #eceef1;
  --muted: #a3adb8;
  --gold: #e8b931;
  --ink-on-gold: #14181f;
  --gunmetal: #3a4756;
  --steel: #8392a3;
  --line: rgb(131 146 163 / .28);
  --kicker: var(--gold);
  --focus: var(--gold);
  --rim: drop-shadow(0 0 1px rgb(236 238 241 / .35)) drop-shadow(0 16px 22px rgb(0 0 0 / .55));
}

/* ---------- Header ---------- */
.topbar {
  position: fixed; z-index: 50; inset: 0 0 auto;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgb(18 22 28 / .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-name { font: 700 19px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 16px; }
.menu a {
  position: relative; padding: 12px 0; text-decoration: none;
  font: 700 16px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
  background: var(--signal-red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.menu a:hover::after { transform: scaleX(1); }
.menu .menu-book { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--signal-red); color: var(--on-fill); }
.menu .menu-book::after { content: none; }
@media (max-width: 759px) { .brand-name { display: none; } }
@media (max-width: 374px) { .menu { gap: 12px; } .menu a { font-size: 15px; letter-spacing: .05em; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100svh;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}
.hero-copy { position: relative; z-index: 5; padding: 16px var(--gutter) 0; }
.hero-id { display: flex; align-items: center; gap: 12px; }
.hero-roundel { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .55)); }
.kicker-sub { color: var(--muted); letter-spacing: .1em; }
.hero h1 {
  margin-top: 10px; font: 700 clamp(44px, 13.2vw, 112px)/.88 var(--display); letter-spacing: .005em; text-transform: uppercase;
}
.hero-sub { margin-top: 10px; font: 500 18px/24px var(--sans); }
.values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.values li {
  padding: 5px 8px 4px; border: 1px solid var(--line); background: rgb(28 34 43 / .7);
  font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.offer { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--muted); }
.actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 10px; }
.actions .btn { padding: 0 12px; }
.btn-text { grid-column: 1 / -1; justify-self: start; min-height: 40px; padding: 0 !important; color: var(--ink); }
.btn-text:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero-stage { position: relative; z-index: 0; flex: 1 0 380px; margin-top: 6px; --disc: min(92vw, 50svh, 470px); }
.ring, .disc, .kanji, .hero-neil, .hero-tag { position: absolute; will-change: transform; }
.disc, .ring { left: 58%; top: 50%; border-radius: 50%; }
.disc {
  z-index: 1; width: var(--disc); height: var(--disc); margin: calc(var(--disc) / -2) 0 0 calc(var(--disc) / -2);
  background: var(--signal-red);
  transform: translate3d(0, calc(var(--p, 0) * -38svh), 0);
}
.ring {
  z-index: 0; --r: calc(var(--disc) * 1.24); width: var(--r); height: var(--r); margin: calc(var(--r) / -2) 0 0 calc(var(--r) / -2);
  border: 1px solid rgb(131 146 163 / .42);
  transform: translate3d(0, calc(var(--p, 0) * -24svh), 0);
}
.kanji { /* 柔道, outlined, the slowest layer; system Mincho face */
  z-index: 2; left: calc(var(--gutter) - 6px); top: 2%; margin: 0;
  writing-mode: vertical-rl; font: 600 min(38vw, 21svh, 190px)/1 var(--jp); letter-spacing: 0;
  color: transparent; -webkit-text-stroke: 1.5px rgb(236 238 241 / .5);
  transform: translate3d(0, calc(var(--p, 0) * -62svh), 0);
  pointer-events: none; user-select: none;
}
.hero-neil { /* the subject; bottom edge sits on the red bar below */
  z-index: 3; left: 58%; bottom: 0; height: 100%; max-height: 720px; width: auto; max-width: none;
  transform: translate3d(-50%, calc(var(--p, 0) * -8svh), 0);
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45));
}
.hero-tag {
  z-index: 4; left: var(--gutter); bottom: 60px; display: flex; flex-direction: column; gap: 3px;
  padding: 7px 9px 6px; background: rgb(18 22 28 / .84); border-left: 3px solid var(--signal-red);
  font: 500 11px/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  transform: translate3d(0, calc(var(--p, 0) * -8svh), 0);
}
.hero-tag span + span { color: var(--muted); }

/* ---------- Red bars between sections ---------- */
.redbar {
  position: relative; display: flex; gap: 14px; align-items: center; min-height: 26px; padding: 5px var(--gutter);
  background: var(--signal-red); color: var(--on-fill);
  font: 500 11px/14px var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.redbar span:first-child { opacity: .8; }

/* ---------- Sections ---------- */
.section { position: relative; padding: 64px var(--gutter); background: var(--hangar); }
.wrap { position: relative; max-width: 1200px; margin: 0 auto; }
.section-head { position: relative; z-index: 1; max-width: 40rem; margin-bottom: 28px; }
.section-head .kicker { margin-bottom: 8px; }
h2 { font: 700 clamp(34px, 9.6vw, 64px)/.95 var(--display); letter-spacing: .005em; text-transform: uppercase; }
.section-sub { margin-top: 12px; color: var(--muted); max-width: 60ch; }

/* Cut-outs drifting across section edges: above every section, never clipped by a box. The wrapper stays
   put (it carries data-parallax, so its --p keeps updating); only the image inside moves. */
.drift { position: absolute; z-index: 6; pointer-events: none; }
.drift img {
  width: 100%; max-width: none; height: auto; filter: var(--rim); will-change: transform;
  transform: translate3d(calc(var(--p, 0) * var(--dx, 20vw)), calc(var(--p, 0) * var(--dy, -50px)), 0);
}
.drift-throw { --dx: 26vw; --dy: 0px; width: 180px; top: -40px; right: -20px; }
.drift-throw img { /* right side of the source frame is cropped: fade it */
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 22%); mask-image: linear-gradient(to left, transparent 0, #000 22%);
}
.drift-randori { --dx: -16vw; --dy: -40px; width: 116px; top: -170px; right: 6px; }
.drift-kata { --dx: 18vw; --dy: -70px; width: 112px; top: -156px; right: 8px; }
.drift-tomoe { --dx: -20vw; --dy: -40px; width: 150px; bottom: -120px; left: -10px; }

/* ---------- Classes ---------- */
.classes { padding-top: 156px; }
.class-grid { display: grid; gap: 12px; }
.class-card {
  position: relative; display: grid; align-content: start; gap: 10px; padding: 18px;
  background: var(--hangar-raised); border: 1px solid var(--line); border-top: 3px solid var(--signal-red);
}
.slot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.days { display: inline-flex; gap: 4px; }
.days span {
  padding: 5px 7px 4px; border-radius: var(--radius-sm); background: var(--signal-red); color: var(--on-fill);
  font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
}
.days-plain span { background: var(--gunmetal); }
.time { font: 500 22px/1 var(--mono); letter-spacing: -.01em; }
.class-card h3 { font: 600 24px/28px var(--display); text-transform: uppercase; }
.facts { font: 500 13px/20px var(--mono); color: var(--muted); }
.facts li { position: relative; padding-left: 16px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 6px; background: var(--steel); clip-path: var(--chevron); transform: rotate(90deg); }
.note { margin-top: 18px; font: 500 12px/18px var(--mono); color: var(--muted); }
.also { margin-top: 8px; max-width: 70ch; }
.also a { text-underline-offset: 3px; }

/* ---------- Venue: photo band (the band edge clips its own background photo) ---------- */
.venue { position: relative; overflow: hidden; overflow: clip; min-height: 640px; padding: 140px var(--gutter) 40px; background: #0b0e12; }
.venue-photo { position: absolute; inset: -14% 0; transform: translate3d(0, calc(var(--p, 0) * -9%), 0); will-change: transform; }
.venue-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.venue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 22 28 / .1), rgb(18 22 28 / .3) 45%, rgb(18 22 28 / .8)); pointer-events: none; }
.venue-card {
  position: relative; z-index: 2; max-width: 460px; padding: 22px; background: rgb(28 34 43 / .94);
  border: 1px solid var(--line); border-top: 3px solid var(--signal-red);
}
.venue-card .kicker { margin-bottom: 8px; }
.venue-card h2 { font-size: clamp(32px, 8.4vw, 52px); }
.venue-card address { margin-top: 14px; font: 500 16px/24px var(--mono); font-style: normal; }
.venue-days { margin: 16px 0; border-top: 1px solid var(--line); }
.venue-days div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.venue-days dt { font: 500 13px/24px var(--mono); text-transform: uppercase; color: var(--muted); }
.venue-note { margin-bottom: 16px; font-size: 15px; line-height: 22px; color: var(--muted); }
.venue-caption {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 14px; margin: 0;
  font: 500 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Head coach ---------- */
.coach-grid { display: grid; gap: 22px; }
.coach-head { max-width: 60rem; margin-bottom: 0; }
.coach-photos { position: relative; height: clamp(360px, 108vw, 520px); }
.cp { position: absolute; margin: 0; will-change: transform; }
.cp img { width: 100%; box-shadow: 0 18px 34px rgb(0 0 0 / .45); }
.cp-main { left: 0; top: 0; width: 76%; z-index: 1; transform: translate3d(0, calc(var(--p, 0) * 18px), 0); }
.cp-belt { right: 0; top: 40%; width: 46%; z-index: 2; transform: translate3d(0, calc(var(--p, 0) * -70px), 0); }
.cp-japan { left: 8%; bottom: 0; width: 38%; z-index: 3; transform: translate3d(0, calc(var(--p, 0) * -120px), 0); }
.cp img { border: 1px solid var(--line); }
.cp-n, .cp-captions span {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--radius-sm);
  background: var(--signal-red); color: var(--on-fill); font: 500 12px/1 var(--mono);
}
.cp-n { position: absolute; left: 8px; top: 8px; }
.cp-captions { display: grid; gap: 8px; font: 500 12px/18px var(--mono); color: var(--muted); }
.cp-captions li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.coach-text { display: grid; gap: 16px; }
.coach-text > p { max-width: 62ch; }
.creds { padding: 16px 18px; background: var(--hangar-raised); border: 1px solid var(--line); }
.creds .kicker { margin-bottom: 8px; }
.creds ul { display: grid; font: 500 14px/20px var(--mono); }
.creds li { position: relative; padding: 8px 0 8px 20px; border-bottom: 1px solid var(--line); }
.creds li:last-child { border-bottom: 0; }
.creds li::before { content: ""; position: absolute; left: 0; top: 14px; width: 11px; height: 8px; background: var(--signal-red); clip-path: var(--chevron); }
.lineage {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--steel); background: rgb(28 34 43 / .5);
}
.lineage img { width: 96px; filter: grayscale(1); }
.lineage .kicker { color: var(--muted); margin-bottom: 4px; }
.lineage h3 { font: 600 22px/26px var(--display); text-transform: uppercase; margin-bottom: 6px; }
.lineage p:last-child { font-size: 15px; line-height: 22px; color: var(--muted); }

/* ---------- Gradings: four staggered columns at four speeds ---------- */
.gradings { padding-bottom: 120px; }
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 64px; align-items: start; }
.wall-col { display: flex; flex-direction: column; gap: 10px; will-change: transform; transform: translate3d(0, calc(var(--p, 0) * var(--k, 40) * .5px), 0); }
.wall-col:nth-child(even) { margin-top: 56px; }
.wall figure img { width: 100%; border: 1px solid var(--line); }
.wall figcaption { padding-top: 6px; font: 500 11px/15px var(--mono); color: var(--muted); }

/* ---------- Japan and masterclasses ---------- */
.japan { position: relative; }
.japan-band { position: relative; overflow: hidden; overflow: clip; height: clamp(300px, 56svh, 600px); background: #0b0e12; }
.japan-photo { position: absolute; inset: -16% 0; transform: translate3d(0, calc(var(--p, 0) * -10%), 0); will-change: transform; }
.japan-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.japan-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 22 28 / 0) 30%, rgb(18 22 28 / .92)); }
.japan-head { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 24px; max-width: 1200px; margin: 0 auto; }
.japan-head .kicker { margin-bottom: 8px; }
.japan-body { padding-top: 28px; }
.japan-lede { max-width: 64ch; margin-bottom: 30px; font-size: 17px; line-height: 26px; }
.row-title { margin: 0 0 12px; font: 600 24px/28px var(--display); text-transform: uppercase; }
.card-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 34px; }
.pcard { background: var(--hangar-raised); border: 1px solid var(--line); }
.pcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pcard figcaption { padding: 10px 12px 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.pcard b { display: block; margin-bottom: 2px; font: 600 19px/22px var(--display); text-transform: uppercase; color: var(--ink); }

/* ---------- Aylwin Judo Club ---------- */
.aylwin { padding-bottom: 96px; }
.aylwin-grid { display: grid; gap: 24px; }
.aylwin-id { display: flex; align-items: center; gap: 16px; }
.aylwin-badge { width: 104px; height: 104px; flex: none; object-fit: contain; padding: 6px; border-radius: 50%; background: #fff; }
.aylwin-id .kicker { margin-bottom: 6px; }
.aylwin-text { display: grid; gap: 16px; }
.aylwin-lede { font-size: 18px; line-height: 27px; }
.history { border-left: 2px solid var(--signal-red); padding-left: 16px; display: grid; gap: 12px; }
.history li { position: relative; display: grid; gap: 2px; }
.history li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; background: var(--signal-red); border-radius: 50%; }
.history b { font: 500 13px/18px var(--mono); text-transform: uppercase; color: var(--muted); }
.facts-panel { border-top: 1px solid var(--line); }
.facts-panel div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts-panel dt { font: 500 12px/24px var(--mono); text-transform: uppercase; color: var(--muted); }
.facts-panel dd { overflow-wrap: anywhere; }
.facts-panel a { text-underline-offset: 3px; }
.bjc dd { display: flex; align-items: center; gap: 10px; }
.bjc img { width: 52px; height: 48px; object-fit: contain; padding: 3px; background: #fff; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-row .btn { text-transform: none; letter-spacing: .02em; }
.aylwin-utsuri { display: none; }

/* ---------- Judo links and social media ---------- */
.links { border-top: 1px solid var(--line); }
.socials { padding-top: 8px; }
.link-cards, .social-grid { display: grid; gap: 12px; }
.link-cards a, .social-grid a {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; text-decoration: none;
  background: var(--hangar-raised); border: 1px solid var(--line); transition: border-color .15s ease, transform .15s ease;
}
.link-cards a { border-top: 3px solid var(--signal-red); }
.link-cards a:hover, .social-grid a:hover { border-color: var(--steel); transform: translateY(-2px); }
.lc-place { font: 500 12px/16px var(--mono); text-transform: uppercase; color: var(--muted); }
.link-cards b, .social-grid b { font: 600 24px/28px var(--display); text-transform: uppercase; }
.lc-line { color: var(--muted); }
.lc-url, .social-grid span { font: 500 13px/18px var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.lc-url { margin-top: auto; padding-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.social-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.social-grid a { padding: 14px; }
.social-grid b { font-size: 21px; line-height: 24px; }
.social-grid small { font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- Contact and footer ---------- */
.contact { padding-bottom: 80px; }
.contact-grid { display: grid; gap: 8px; }
.contact-card { padding: 18px; background: var(--hangar-raised); border: 1px solid var(--line); }
.contact-card .actions { margin: 0 0 14px; }
.footer {
  padding: 40px var(--gutter) calc(64px + env(safe-area-inset-bottom)); border-top: 3px solid var(--signal-red);
  text-align: center; color: var(--muted); font-size: 14px;
}
.footer-marks { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 16px; }
.footer-marks img { width: 80px; height: 80px; }
.footer-marks .footer-badge { object-fit: contain; padding: 5px; border-radius: 50%; background: #fff; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin: 8px 0 14px; }
.footer-links a {
  padding-bottom: 3px; border-bottom: 2px solid var(--signal-red); color: var(--ink); text-decoration: none;
  font: 700 18px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.fine { margin: 4px 0; font: 500 12px/18px var(--mono); }
.footer .credit { margin-top: 10px; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drift-throw { width: 260px; top: -60px; }
  .classes { padding-top: 200px; }
  .drift-randori { width: 170px; top: -230px; }
  .drift-kata { width: 150px; top: -210px; }
  .drift-tomoe { width: 210px; bottom: -170px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); min-height: max(100svh, 760px);
  }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 32px 0 96px var(--gutter); }
  .hero-id { gap: 20px; }
  .hero-roundel { width: 128px; height: 128px; }
  .hero h1 { margin-top: 18px; font-size: clamp(64px, 7.2vw, 112px); }
  .hero-sub { margin-top: 14px; font-size: 22px; line-height: 30px; }
  .values { margin-top: 16px; }
  .values li { font-size: 13px; padding: 6px 10px 5px; }
  .offer { margin-top: 20px; font-size: 16px; }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
  .actions .btn { padding: 0 20px; }
  .btn-text { margin-left: 6px; }
  .hero-stage { grid-column: 2; grid-row: 1; margin: 0; --disc: min(45vw, 74svh, 720px); }
  .disc, .ring { left: 52%; top: 50%; }
  .hero-neil { left: 52%; height: min(94%, 860px); }
  .kanji { left: auto; right: var(--gutter); top: 5%; font-size: min(15vw, 30svh, 290px); -webkit-text-stroke-width: 2px; }
  .hero-tag { left: 8px; bottom: 28px; }
  .redbar { min-height: 30px; font-size: 12px; }

  .section { padding: 96px var(--gutter); }
  .classes { padding-top: 120px; }
  .section-head { margin-bottom: 40px; }
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .class-card { padding: 22px; }
  .time { font-size: 26px; }

  .venue { min-height: 760px; padding: 200px var(--gutter) 80px; }
  .venue-card { margin-left: max(0px, calc((100% - 1200px) / 2)); padding: 30px; }

  .coach-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 56px; row-gap: 24px; align-items: start; }
  .coach-head { grid-column: 1 / -1; }
  .coach-photos { grid-column: 1; grid-row: 2; height: 640px; }
  .cp-captions { grid-column: 1; grid-row: 3; }
  .coach-text { grid-column: 2; grid-row: 2 / span 2; }
  .lineage { grid-template-columns: 120px minmax(0, 1fr); }
  .lineage img { width: 120px; }

  .gradings { padding-bottom: 150px; }
  .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 18px; }
  .wall-col { gap: 18px; transform: translate3d(0, calc(var(--p, 0) * var(--k, 40) * 1px), 0); }
  .wall-col:nth-child(even) { margin-top: 64px; }
  .wall figcaption { font-size: 12px; }

  .japan-head { bottom: 40px; }
  .japan-body { padding-top: 40px; }
  .card-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

  .aylwin-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 56px; align-items: start; }
  .aylwin-id { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; }
  .aylwin-badge { width: 150px; height: 150px; }
  .aylwin-text { grid-column: 2; grid-row: 1 / span 2; }
  .aylwin-utsuri { /* bottom edge of the source frame is cropped: fade it */
    display: block; grid-column: 1; grid-row: 2; justify-self: center; width: min(100%, 330px); height: auto;
    filter: var(--rim); will-change: transform; transform: translate3d(0, calc(var(--p, 0) * -90px), 0);
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 20%), linear-gradient(to left, transparent 0, #000 16%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to top, transparent 0, #000 20%), linear-gradient(to left, transparent 0, #000 16%);
    mask-composite: intersect;
  }
  .drift-throw { --dx: -24vw; --dy: -20px; width: 380px; top: -196px; left: 33vw; right: auto; }
  .drift-randori { width: 210px; top: -300px; right: 5vw; }
  .drift-kata { width: 190px; top: -280px; right: 8vw; }
  .drift-tomoe { width: 260px; bottom: -200px; left: 3vw; }

  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .contact-card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu a::after, .link-cards a, .social-grid a { transition: none; }
}
