/* a-arafa.com — design tokens carried over from the Source Files masterclass site */
@font-face {
  font-family: 'RealVhs';
  src: url('../fonts/RealVhs.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --blue: #1B1BD6;
  --gray: #D6D6DA;
  --white: #FFFFFF;
  --line: rgba(214, 214, 218, 0.55);
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.85);

  --font-body: 'DM Mono', ui-monospace, monospace;
  --font-display: 'RealVhs', 'VT323', ui-monospace, monospace;

  --track-label: 0.14em;
  --pad: 22px 16px 26px;
  --max: 980px;
}
html[lang="ja"] {
  --font-body: 'DM Mono', 'M PLUS 1 Code', ui-monospace, monospace;
  --font-display: 'RealVhs', 'DotGothic16', 'VT323', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--blue); }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 14px; line-height: 1.6; letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  padding: 14px 14px 60px;
  min-height: 100vh;
}
html[lang="ja"] body { line-height: 1.8; letter-spacing: 0.02em; }

a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--blue); background: var(--gray); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
::selection { background: var(--gray); color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
}
.lang { display: flex; gap: 0; border: 1px solid var(--gray); }
.lang a, .lang span { padding: 2px 10px; text-decoration: none; }
.lang [aria-current] { background: var(--gray); color: var(--blue); }

/* ---------- tab nav ---------- */
.tabs {
  position: sticky; top: 0; z-index: 5;
  display: flex; margin-top: 22px;
  border: 1px solid var(--gray); background: var(--blue);
}
.tabs a {
  flex: 1; text-align: center; text-decoration: none;
  padding: 14px 6px; min-height: 48px;
  font-size: 12px; text-transform: uppercase; letter-spacing: var(--track-label);
  border-right: 1px solid var(--gray);
}
.tabs a:last-child { border-right: 0; }
.tabs a:hover, .tabs a.is-active { background: var(--gray); color: var(--blue); }
.tabs .n { opacity: 0.7; }
@media (max-width: 560px) {
  .tabs a { font-size: 11px; letter-spacing: 0.08em; padding: 12px 2px; }
  .tabs .n, .tabs .dash { display: none; }
}

/* ---------- window panel (details/summary) ---------- */
.panel { border: 1px solid var(--gray); margin-top: 18px; }
.panel > summary {
  list-style: none; cursor: pointer; user-select: none;
  background: var(--gray); color: var(--blue);
  padding: 8px 14px; font-size: 12px;
  text-transform: uppercase; letter-spacing: var(--track-label);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.panel > summary::-webkit-details-marker { display: none; }
.caret { display: inline-block; transition: transform .15s; }
.panel:not([open]) .caret { transform: rotate(-90deg); }
.panel-body { padding: var(--pad); }
.panel-body.flush { padding: 0; }
.first { margin-top: 26px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; margin: 0;
}
h1.display {
  font-size: clamp(56px, 14vw, 132px); line-height: 0.8; letter-spacing: -0.01em;
}
html[lang="ja"] h1.display { line-height: 0.95; }
h1 .sub {
  display: block; font-size: 0.34em; line-height: 1.1;
  margin-top: 0.3em; letter-spacing: 0.02em;
}
.h2 { font-size: clamp(30px, 6.6vw, 50px); line-height: 1.05; letter-spacing: 0.02em; }
.h3 { font-size: clamp(24px, 4.8vw, 34px); line-height: 1.05; letter-spacing: 0.02em; }
.lede { margin: 14px 0 0; font-size: clamp(15px, 2.4vw, 18px); max-width: 52ch; text-wrap: pretty; }
.big { margin: 0; font-size: clamp(16px, 3vw, 22px); line-height: 1.45; max-width: 46ch; text-wrap: pretty; }
.label {
  font-size: 11px; letter-spacing: var(--track-label);
  color: var(--muted); text-transform: uppercase;
}
.tag { background: var(--gray); color: var(--blue); padding: 1px 6px; }
.muted { color: var(--muted); }
p { margin: 14px 0 0; max-width: 60ch; }
p:first-child { margin-top: 0; }
.cursor { display: inline-block; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

/* ---------- hero ---------- */
.meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px 24px; margin-top: 24px;
}
.meta > div > div:last-child { margin-top: 4px; }

/* ---------- rows (list items with rules) ---------- */
.rows { display: grid; gap: 0; margin-top: 18px; }
.rows > * { border-top: 1px solid var(--line); padding: 11px 0; }
.rows.no-top > *:first-child { border-top: 0; }

/* ---------- work ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px; margin-top: 18px;
}
.work-grid > .card { grid-column: span 2; }
.work-grid > .card.wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .work-grid > .card { grid-column: span 3; } }
@media (max-width: 620px) { .work-grid > .card { grid-column: 1 / -1; } }
.card { border: 1px solid var(--gray); display: flex; flex-direction: column; margin: 0; }
.card .bar {
  background: var(--gray); color: var(--blue);
  padding: 6px 12px; font-size: 11px; letter-spacing: var(--track-label);
  text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px;
}
.card .frame { border-bottom: 1px solid var(--gray); background: var(--gray); overflow: hidden; }
.card .frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.card.wide .frame img { aspect-ratio: 16 / 9; }
.card:hover .frame img { transform: scale(1.025); }
@media (prefers-reduced-motion: reduce) { .card:hover .frame img { transform: none; } }
.card figcaption { padding: 14px 12px 16px; }
.card figcaption p { margin-top: 8px; color: var(--soft); }

.set-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--gray); }
.set-strip img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 26px; align-items: start; }
.portrait { border: 1px solid var(--gray); }
.portrait img { width: 100%; filter: grayscale(1) contrast(1.05); }
.portrait .cap { padding: 6px 10px; font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; border-top: 1px solid var(--gray); }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 320px; } }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 26px; margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { border: 1px solid var(--line); padding: 2px 8px; font-size: 12px; }

/* ---------- events ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--gray); width: fit-content; max-width: 100%; }
.filters button {
  background: transparent; color: var(--white); border: 0; border-right: 1px solid var(--gray);
  padding: 8px 12px; min-height: 40px; font: inherit; font-size: 11px;
  text-transform: uppercase; letter-spacing: var(--track-label); cursor: pointer; border-radius: 0;
}
.filters button:last-child { border-right: 0; }
.filters button:hover, .filters button[aria-pressed="true"] { background: var(--gray); color: var(--blue); }

.events { list-style: none; margin: 18px 0 0; padding: 0; }
.events li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 18px;
  border-top: 1px solid var(--line); padding: 11px 0; align-items: baseline;
}
.events li[hidden] { display: none; }
.events .yr { color: var(--muted); }
.events .where { display: block; color: var(--muted); font-size: 13px; }
.events .kind { font-size: 11px; letter-spacing: var(--track-label); text-transform: uppercase; border: 1px solid var(--line); padding: 0 6px; white-space: nowrap; }
.events li.feature .what { font-weight: 500; }
.events li.feature .kind { background: var(--gray); color: var(--blue); border-color: var(--gray); }
@media (max-width: 520px) {
  .events li { grid-template-columns: 44px minmax(0, 1fr); }
  .events .kind { grid-column: 2; justify-self: start; }
}

/* ---------- masterclass recap ---------- */
.recap { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1px; background: var(--gray); border-bottom: 1px solid var(--gray); }
.recap img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.recap img:first-child { aspect-ratio: auto; }
@media (max-width: 620px) { .recap { grid-template-columns: 1fr 1fr; } .recap img:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; } }

/* ---------- buttons / contact ---------- */
.btn {
  display: inline-block; background: var(--white); color: var(--blue);
  border: 1px solid var(--white); padding: 14px 20px; min-height: 48px;
  font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: var(--track-label);
  text-decoration: none; cursor: pointer; border-radius: 0;
}
.btn:hover { background: var(--gray); border-color: var(--gray); color: var(--blue); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--gray); }
.btn.ghost:hover { background: var(--gray); color: var(--blue); }
.cta-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.contact-inv { background: var(--gray); color: var(--blue); }
.contact-inv a { color: var(--blue); }
.contact-inv a:hover { background: var(--blue); color: var(--gray); }
.contact-inv .btn { background: var(--blue); color: var(--gray); border-color: var(--blue); }
.contact-inv .btn:hover { background: transparent; color: var(--blue); }
.contact-inv .h2 { font-size: clamp(52px, 12vw, 100px); line-height: 0.9; }

/* ---------- footer ---------- */
.foot {
  margin-top: 26px; padding-top: 8px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- How to Kill a Flower: cover ---------- */
.flower { display: block; border-bottom: 1px solid var(--gray); }
.flower .hero { width: 100%; height: auto; }

/* About is the opening panel */
h1.about-name { font-size: clamp(52px, 11vw, 104px); line-height: 0.85; letter-spacing: -0.01em; }
html[lang="ja"] h1.about-name { font-size: clamp(40px, 8vw, 76px); line-height: 1; }
.rows.bio { margin-top: 20px; }
.rows.bio > div { padding: 12px 0; text-wrap: pretty; }
.rows.bio .tag { margin-right: 2px; }

/* ---------- Work subsections ---------- */
.subnav a {
  padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center;
  font-size: 11px; text-transform: uppercase; letter-spacing: var(--track-label);
  text-decoration: none; border-right: 1px solid var(--gray);
}
.subnav a:last-child { border-right: 0; }
.work-sec { margin-top: 30px; scroll-margin-top: 70px; }
.subhead {
  margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--gray);
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 6vw, 46px); line-height: 1; letter-spacing: 0.02em;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
}
.subhead .n { font-family: var(--font-body); font-size: 12px; letter-spacing: var(--track-label); opacity: .7; }
.subhead .muted { font-family: var(--font-body); font-size: 12px; letter-spacing: var(--track-label); margin-left: auto; }
.work-grid > .card.half { grid-column: span 3; }
.work-grid > .card.span4 { grid-column: span 4; }
@media (max-width: 900px) { .work-grid > .card.span4 { grid-column: 1 / -1; } }
@media (max-width: 620px) { .work-grid > .card.half { grid-column: 1 / -1; } .subhead .muted { margin-left: 0; width: 100%; } }
.work-grid > .card.third .frame img { aspect-ratio: 16 / 10; }
.work-grid > .card.third { grid-column: span 2; }
@media (max-width: 900px) { .work-grid > .card.third { grid-column: span 3; } }
@media (max-width: 620px) { .work-grid > .card.third { grid-column: 1 / -1; } }
.card.wide .frame img[src*="cairo-code"] { aspect-ratio: auto; }

/* ---------- YouTube thumbnails ---------- */
.frame.play { display: block; position: relative; text-decoration: none; }
.frame.play:hover { background: none; }
.frame.play img, .work-grid > .card.third .frame.play img, .card.wide .frame.play img { aspect-ratio: 16 / 9; }
.frame.play::after {
  content: '\25B6'; position: absolute; left: 12px; bottom: 12px;
  background: var(--gray); color: var(--blue); border: 1px solid var(--blue);
  font-size: 13px; line-height: 1; padding: 9px 12px 8px 13px;
}
.frame.play:hover::after { background: var(--blue); color: var(--gray); border-color: var(--gray); }
.card.wide .frame.play { border-bottom: 1px solid var(--gray); }
.card.natural .frame img { aspect-ratio: auto; }
.work-grid > .card.half .frame.play img { aspect-ratio: 16 / 9; }

/* ---------- Swipe gallery ---------- */
.carousel { position: relative; }
.carousel .track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.carousel .track img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2 !important; object-fit: cover; scroll-snap-align: start; user-select: none; }
.card:hover .carousel .track img { transform: none; }
.car-nav {
  position: absolute; right: 10px; bottom: 10px;
  display: flex; align-items: center;
  background: var(--blue); color: var(--white);
  font-size: 11px; letter-spacing: var(--track-label); line-height: 1;
}
.car-btn {
  background: none; border: 0; color: inherit; font: inherit; font-size: 15px;
  width: 26px; height: 24px; padding: 0; cursor: pointer; border-radius: 0;
}
.car-btn:hover:not([disabled]) { background: var(--gray); color: var(--blue); }
.car-btn[disabled] { opacity: .3; cursor: default; }
.car-count { padding: 0 4px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .carousel .track { scroll-behavior: auto; } }
.carousel.spreads { background: var(--gray); }
.carousel.spreads .track img { aspect-ratio: 3200 / 1086 !important; object-fit: contain; }
.carousel:not(.spreads) .track img[src*="cairo-code-app"] { aspect-ratio: 16 / 9 !important; }
.carousel .track img.ui { aspect-ratio: 16 / 9 !important; object-fit: contain; background: #000; }
.frame.app-shot { background: var(--gray); }
.frame.app-shot img { aspect-ratio: auto !important; }
.card:hover .frame.app-shot img { transform: none; }
a.frame.app-shot { display: block; position: relative; text-decoration: none; }
a.frame.app-shot:hover { background: var(--gray); }
.carousel.photos { background: var(--gray); border-bottom: 1px solid var(--gray); }
.carousel.photos .track img { aspect-ratio: 3 / 2 !important; object-fit: contain; }
.carousel.photos .track > .slide { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2; position: relative; scroll-snap-align: start; background: var(--gray); overflow: hidden; }
.carousel.photos .track > .slide img { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; max-width: none; aspect-ratio: auto !important; object-fit: contain; scroll-snap-align: none; flex: none; }
.carousel.photos .track > .slide.pair img { width: 50% !important; }
.carousel.photos .track > .slide.pair img + img { left: auto; right: 0; }

.carousel.photos .track > .slide.pair img { object-fit: cover; object-position: center; }
.contact-inv .display.talk { font-family: 'DM Mono', ui-monospace, monospace; font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(40px, 9vw, 76px); }
/* Name at the top: same face as "Let's talk" */
h1.about-name { font-family: 'DM Mono', 'M PLUS 1 Code', ui-monospace, monospace; font-weight: 500; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(44px, 9vw, 84px); }
html[lang="ja"] h1.about-name { letter-spacing: 0; font-size: clamp(36px, 7vw, 64px); line-height: 1.1; }
.topbar .lang { margin-left: auto; }
.topbar { border-bottom: 0; padding-bottom: 0; }
.tabs { margin-top: 10px; }
.about-side .edu { margin-top: 18px; }
.about-side .edu .rows { margin-top: 8px; font-size: 13px; }
@media (max-width: 720px) { .about-side { max-width: 320px; } .about-side .portrait { max-width: none; } }
/* Balance: narrower portrait column so the left side doesn't outgrow the bio */
.about { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 28px; }
.about-side .edu { margin-top: 14px; }
.about-side .edu .rows > * { padding: 8px 0; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } }
/* Divider between portrait/education and the roles */
.about { gap: 0; }
.about > .about-side { padding-right: 28px; }
.about > :last-child { border-left: 1px solid var(--line); padding-left: 28px; }
@media (max-width: 720px) {
  .about > .about-side { padding-right: 0; padding-bottom: 22px; }
  .about > :last-child { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
}
/* Education rows line up with the last bio rows (desktop; sizes set by site.js) */
.about-side .edu .rows { font-size: inherit; }
.about-side .edu .rows > * { padding: 12px 0; box-sizing: border-box; }
@media (min-width: 721px) { .about { align-items: start; } }
/* Full-width card with the image beside the text (portrait covers) */
@media (min-width: 621px) {
  .card.side { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .card.side .bar { grid-column: 1 / -1; }
  .card.side .frame { border-bottom: 0; border-right: 1px solid var(--gray); }
  .card.side .frame img { aspect-ratio: 4 / 5; }
  .card.side figcaption { align-self: end; padding: 18px 18px 20px; }
}
.top-contact a { text-decoration: none; text-transform: none; letter-spacing: 0.04em; }
.top-contact a:hover { text-decoration: underline; background: none; color: var(--white); }
.top-contact .sep { opacity: .5; margin: 0 4px; }
a.link-frame { display: block; text-decoration: none; }
a.link-frame:hover { background: none; }

/* ---------- Illustrations: horizontal scroll strip ---------- */
.illus { position: relative; border-bottom: 1px solid var(--gray); background: var(--gray); }
.illus-track {
  display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--blue) var(--gray);
}
.illus-track::-webkit-scrollbar { height: 6px; }
.illus-track::-webkit-scrollbar-track { background: var(--gray); }
.illus-track::-webkit-scrollbar-thumb { background: var(--blue); }
.illus-track:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.illus-track img { flex: 0 0 auto; height: clamp(300px, 46vw, 460px); width: auto; scroll-snap-align: start; user-select: none; }
.illus .car-nav { bottom: 16px; }
@media (hover: none) { .illus .car-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .illus-track { scroll-behavior: auto; } }
/* Quieter play badge on video thumbnails */
.frame.play::after {
  left: 10px; bottom: 10px; font-size: 9px; padding: 5px 6px 5px 7px; line-height: 1;
  background: rgba(27, 27, 214, 0.75); color: var(--white); border: 0; opacity: .85;
}
.frame.play:hover::after { background: var(--blue); color: var(--white); border: 0; opacity: 1; }
/* Play badge: triangle only */
.frame.play::after, .frame.play:hover::after {
  background: none; border: 0; padding: 0; left: 12px; bottom: 10px;
  font-size: 14px; color: var(--white); text-shadow: 0 0 6px rgba(0,0,0,.55);
}
.frame.play::after { opacity: .85; }
.frame.play:hover::after { opacity: 1; }

/* ---------- Mobile fixes ---------- */
.tabs a { display: flex; align-items: center; justify-content: center; gap: 4px; line-height: 1.15; }
.tabs .short { display: none; }
@media (max-width: 560px) {
  .tabs a { font-size: 10px; letter-spacing: 0.06em; padding: 10px 2px; min-height: 44px; }
  .tabs .full { display: none; }
  .tabs .short { display: inline; }
  .topbar { font-size: 10px; letter-spacing: 0.06em; gap: 8px; align-items: center; }
  .topbar .lang a, .topbar .lang span { padding: 2px 7px; }
}
/* Work switcher: equal boxes, never wraps */
.subnav { display: flex; width: 100%; }
.subnav a { flex: 1 1 0; justify-content: center; text-align: center; padding: 8px 4px; }
@media (max-width: 560px) { .subnav a { font-size: 10px; letter-spacing: 0.06em; } }

/* Gallery arrows: left and right only */
[data-carousel] .car-nav { position: static; background: none; }
[data-carousel] .car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; font-size: 18px; line-height: 1;
  background: rgba(27, 27, 214, 0.7); color: var(--white);
}
[data-carousel] .car-btn.prev { left: 8px; }
[data-carousel] .car-btn.next { right: 8px; }
[data-carousel] .car-btn:hover:not([disabled]) { background: var(--blue); color: var(--white); }
[data-carousel] .car-btn[disabled] { opacity: 0; pointer-events: none; }
/* Gallery arrows: bare chevrons, no box (incl. mobile tap highlight) */
[data-carousel] .car-btn,
[data-carousel] .car-btn:hover:not([disabled]),
[data-carousel] .car-btn:active,
[data-carousel] .car-btn:focus {
  background: none; color: var(--white); border: 0; box-shadow: none; outline: none;
  font-size: 26px; width: 34px; height: 44px;
  text-shadow: 0 0 6px rgba(0, 0, 0, .6), 0 0 2px rgba(0, 0, 0, .5);
  -webkit-tap-highlight-color: transparent;
}
[data-carousel] .car-btn:focus-visible { outline: 1px solid var(--white); outline-offset: -4px; }

/* ---------- Mobile audit fixes ---------- */
@media (max-width: 620px) {
  /* RealVhs has small glyphs: size it up on phones */
  .h3.display { font-size: 34px; line-height: 1; }
  .subhead { font-size: 40px; }
  .card figcaption { padding: 16px 16px 18px; }
}
/* Illustrations arrows: same bare chevrons as the galleries */
.illus .car-nav { position: static; background: none; }
.illus .car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: none; border: 0; color: var(--white); font-size: 26px; width: 34px; height: 44px;
  text-shadow: 0 0 6px rgba(0,0,0,.6), 0 0 2px rgba(0,0,0,.5); -webkit-tap-highlight-color: transparent;
}
.illus .car-btn.prev { left: 6px; } .illus .car-btn.next { right: 6px; }
.illus .car-btn:hover:not([disabled]) { background: none; color: var(--white); }
.illus .car-btn[disabled] { opacity: 0; pointer-events: none; }
@media (hover: none) { .illus .car-nav { display: block; } }
@media (max-width: 620px) {
  html[lang="ja"] .subhead { font-size: 24px; }
  html[lang="ja"] .h3.display { font-size: 30px; }
}
.panel-body > .work-sec:first-child { margin-top: 0; }
/* Work subheads: title left, tagline right on desktop; stacked on phones */
.subhead { align-items: baseline; justify-content: space-between; }
.subhead .muted { margin-left: 0; text-align: right; }
@media (max-width: 620px) {
  .subhead { flex-direction: column; align-items: flex-start; gap: 6px; line-height: 0.9; }
  .subhead .muted { text-align: left; width: auto; }
}
