/* ==========================================================================
   H.I.C. Corporation — site stylesheet
   ========================================================================== */

:root {
  --ink: #111214;
  --ink-2: #4a4c50;
  --ink-3: #8a8c90;
  --line: #e2e2e0;
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --red: #d2141c;            /* from the logo mark; used only as a marker */

  --jp: Arial, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --num: var(--jp);

  --max: 1320px;
  --side: clamp(20px, 5vw, 80px);
  --header: 88px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) { :root { --header: 64px; } }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
html:lang(en) body { line-height: 1.7; letter-spacing: 0.005em; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; line-height: 1.4; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.container { width: min(100% - var(--side) * 2, var(--max)); margin-inline: auto; }
.num { font-family: var(--num); letter-spacing: 0.01em; }

.skip {
  position: absolute; left: 8px; top: -80px; z-index: 200;
  padding: 8px 14px; background: var(--ink); color: #fff; font-size: 13px;
}
.skip:focus { top: 8px; }

/* Underline that draws in on hover */
.u-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding-bottom: 6px;
  font-size: 15px; font-weight: 500;
}
.u-link::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease);
}
.u-link:hover::before { transform: scaleX(0); transform-origin: left; animation: u-redraw 0.9s var(--ease) 0.25s forwards; }
@keyframes u-redraw { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
.u-link .arrow { display: inline-block; font-family: var(--num); transition: transform 0.5s var(--ease); }
.u-link:hover .arrow { transform: translateX(6px); }

/* ---------- header ---------- */

.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header);
  transition: height 0.5s var(--ease), background-color 0.5s, box-shadow 0.5s;
}
.header.is-scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-dark:not(.is-scrolled) { color: #fff; }
.header-inner {
  display: flex; align-items: center; gap: 48px;
  width: min(100% - var(--side) * 2, var(--max)); height: 100%; margin-inline: auto;
}
.header-logo { margin-right: auto; }
.header-logo img { width: 190px; mix-blend-mode: multiply; transition: width 0.5s var(--ease); }
.is-scrolled .header-logo img { width: 160px; }
.header-nav ul { display: flex; gap: 40px; font-size: 14px; font-weight: 500; }
.header-nav a, .header-lang { position: relative; padding-block: 6px; }
.header-nav a::after, .header-lang::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.header-nav a:hover::after, .header-lang:hover::after,
.header-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-lang { font-family: var(--num); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; }
.menu-btn { display: none; }

@media (max-width: 767px) {
  .header-logo img, .is-scrolled .header-logo img { width: 140px; }
  .header.is-scrolled { height: 56px; }
  .header-nav, .header-lang { display: none; }
  .menu-btn {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 0; border: 0; background: none; cursor: pointer;
    font-family: var(--num); font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  }
  .menu-btn i { position: relative; width: 22px; height: 8px; }
  .menu-btn i::before, .menu-btn i::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform 0.5s var(--ease), top 0.5s var(--ease);
  }
  .menu-btn i::before { top: 0; }
  .menu-btn i::after { top: 6.5px; }
  .menu-open .menu-btn i::before { top: 3.25px; transform: rotate(20deg); }
  .menu-open .menu-btn i::after { top: 3.25px; transform: rotate(-20deg); }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header) var(--side) 48px;
  background: var(--paper);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease), visibility 0s 0.7s;
}
.menu-open .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.7s var(--ease); }
.menu li { overflow: hidden; }
.menu li a {
  display: block; padding-block: 10px;
  font-size: 30px; font-weight: 500;
  transform: translateY(110%); transition: transform 0.7s var(--ease);
}
.menu-open .menu li a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: 0.06s; }
.menu-open .menu li:nth-child(3) a { transition-delay: 0.12s; }
.menu-open .menu li:nth-child(4) a { transition-delay: 0.18s; }
.menu .menu-lang a { font-family: var(--num); font-size: 18px; letter-spacing: 0.1em; color: var(--ink-3); }
.menu-open { overflow: hidden; }
.menu-open .header { background: transparent; box-shadow: none; color: var(--ink); }

/* ---------- motion primitives ---------- */
/* Only active when JS has run and motion is allowed (.motion on <html>). */

.motion [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 1s);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Lines rise out of a mask */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines .line > span { display: inline-block; }
.motion .lines .line > span { transform: translateY(110%); transition: transform 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 0.07s); }
.motion .lines.is-in .line > span { transform: none; }

/* Image wipes open from the top */
.motion [data-wipe] { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.motion [data-wipe].is-in { clip-path: inset(0 0 0 0); }
.motion [data-wipe] img { scale: 1.12; transition: scale 2.2s var(--ease); }
.motion [data-wipe].is-in img { scale: 1; }

/* ---------- home: key visual ---------- */
/* The photograph leads; the company's description sits under a rule
   like a catalogue caption. */

.kv { padding-top: var(--header); }
.kv-inner {
  display: flex; flex-direction: column;
  width: min(100% - var(--side) * 2, var(--max));
  min-height: calc(100svh - var(--header));
  margin-inline: auto;
}
.kv-photo { flex: 1; display: grid; place-items: center; padding-block: 8px 28px; }
.kv-photo img {
  width: auto;
  max-width: min(100%, 1180px);
  max-height: calc(100svh - var(--header) - 210px);
  mix-blend-mode: multiply;
  filter: brightness(1.025);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 94%, transparent), linear-gradient(transparent, #000 5%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 94%, transparent), linear-gradient(transparent, #000 5%, #000 92%, transparent);
  mask-composite: intersect;
}
.kv-cap {
  position: relative;
  display: flex; justify-content: space-between; align-items: end; gap: 40px;
  padding: 20px 0 44px;
}
.kv-cap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink);
  transform-origin: left;
}
.kv-text { max-width: 38em; font-size: 14px; font-weight: 500; line-height: 2; letter-spacing: 0.06em; }
html:lang(en) .kv-text { max-width: 44em; line-height: 1.75; letter-spacing: 0.005em; }
.kv-meta { flex: none; text-align: right; font-family: var(--num); font-size: 13px; line-height: 1.9; letter-spacing: 0.14em; color: var(--ink-3); }

/* load-in: photo settles, the rule draws, the caption follows */
.motion .kv-photo img { opacity: 0; translate: 0 24px; scale: 1.03; transition: opacity 1.6s var(--ease) 0.2s, translate 2s var(--ease) 0.2s, scale 2s var(--ease) 0.2s; }
.motion .is-loaded .kv-photo img { opacity: 1; translate: none; scale: 1; }
.motion .kv-cap::before { transform: scaleX(0); transition: transform 1.4s var(--ease) 0.7s; }
.motion .is-loaded .kv-cap::before { transform: scaleX(1); }
.motion .kv-cap > * { opacity: 0; transition: opacity 1.2s var(--ease) 1.2s; }
.motion .is-loaded .kv-cap > * { opacity: 1; }

@media (max-width: 767px) {
  .kv-inner { min-height: 0; }
  .kv-photo { margin-inline: calc(var(--side) * -1); padding-block: 16px 20px; }
  .kv-photo img { max-width: 100%; max-height: none; width: 100%; }
  .kv-cap { flex-direction: column; align-items: start; gap: 16px; padding-bottom: 8px; }
  .kv-meta { text-align: left; }
}

/* ---------- section heads ---------- */

.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(30px, 3.2vw, 48px); font-weight: 500; letter-spacing: 0.06em; line-height: 1.3; }
.en-label { display: block; margin-bottom: 12px; font-family: var(--num); font-size: 13px; font-weight: 500; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; }

/* ---------- home: products ---------- */

.h-note { margin-left: 0.6em; color: var(--ink-3); font-size: 14px; font-weight: 400; letter-spacing: 0.04em; vertical-align: 0.4em; }

.lineup { padding-block: clamp(96px, 14vh, 160px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; height: 100%;
  padding: 28px 28px 26px;
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.card:hover { border-color: var(--ink); }
.card-img { display: grid; place-items: center; height: 200px; margin-bottom: 24px; }
/* old-site photos are small: shown no larger than about their own size */
.card-img img { width: auto; height: auto; max-width: 100%; max-height: 200px; }
.card h3 { font-size: 20px; font-weight: 500; letter-spacing: 0.06em; }
.card p { flex: 1; margin-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.card-go { align-self: flex-end; margin-top: 20px; font-family: var(--num); font-size: 18px; transition: transform 0.5s var(--ease); }
.card:hover .card-go { transform: translateX(6px); }

@media (max-width: 899px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card-img { height: 160px; }
  .card-img img { max-height: 160px; }
}

/* ---------- home: history (compact timeline) ---------- */

.history { padding-bottom: clamp(96px, 14vh, 160px); }
.tl { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; padding-top: 28px; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); transform-origin: left; }
.motion .tl::before { transform: scaleX(0); transition: transform 1.6s var(--ease); }
.motion .tl.is-in::before { transform: scaleX(1); }
.tl li { position: relative; }
.tl li::before { content: ""; position: absolute; left: 0; top: -32px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.tl time { display: block; margin-bottom: 12px; font-family: var(--num); font-size: 26px; font-weight: 500; line-height: 1; }
.tl p { color: var(--ink-2); font-size: 14px; line-height: 1.8; }
html:lang(en) .tl p { line-height: 1.6; }

@media (max-width: 1023px) {
  .tl { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 28px; }
  .tl::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; transform-origin: top; }
  .motion .tl::before { transform: scaleY(0); }
  .motion .tl.is-in::before { transform: scaleY(1); }
  .tl li { display: grid; grid-template-columns: 4.5em 1fr; align-items: baseline; padding-bottom: 20px; }
  .tl li:last-child { padding-bottom: 0; }
  .tl li::before { left: -28px; top: 0.45em; }
  .tl time { margin: 0; font-size: 20px; }
}

/* ---------- home: company outline ---------- */

.outline { padding-block: clamp(120px, 16vh, 200px); }
.history + .outline { padding-top: 0; }
.outline-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--side); }
.outline .sec-head { grid-column: 1 / span 4; display: block; margin: 0; }
.outline .sec-head .u-link { margin-top: 40px; }
.outline dl { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
.outline dl div { display: grid; grid-template-columns: 9em 1fr; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.outline dt { color: var(--ink-3); font-size: 14px; }
@media (max-width: 1023px) { .outline .sec-head, .outline dl { grid-column: 1 / -1; } }
@media (max-width: 599px) { .outline dl div { grid-template-columns: 1fr; gap: 2px; padding-block: 16px; } }

/* ---------- sub pages ---------- */

.page-hero { padding-top: calc(var(--header) + clamp(48px, 9vh, 120px)); }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 72px); font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; }
html:lang(en) .page-hero h1 { letter-spacing: -0.01em; }
.page-hero-lead { max-width: 40em; margin-top: 36px; color: var(--ink-2); }
.page-hero-photo { position: relative; height: clamp(220px, 36vw, 520px); margin-top: clamp(56px, 8vh, 96px); overflow: hidden; background: var(--paper-2); }
.page-hero-photo img {
  position: absolute; left: 0; top: -12%; width: 100%; height: 124%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  filter: brightness(1.025);
  will-change: transform;
}

.anchors { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 40px; font-size: 14px; font-weight: 500; }
.anchors a { position: relative; padding-bottom: 4px; }
.anchors a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.anchors a:hover::after { transform: scaleX(1); transform-origin: left; }

.sec { padding-top: clamp(96px, 14vh, 160px); }
.sec:last-child { padding-bottom: clamp(96px, 14vh, 160px); }
.sec-title { margin-bottom: 48px; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: 0.06em; }

.message { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--side); }
.message-text { grid-column: 5 / -1; max-width: 40em; }
.message-text p + p { margin-top: 1.4em; }
.message .sign { margin-top: 40px; text-align: right; }
.message .policy { grid-column: 1 / span 4; grid-row: 1; }
.policy h3 { margin-bottom: 16px; font-size: 14px; color: var(--ink-3); }
.policy li { padding-block: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; }
.policy li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 1023px) { .message-text, .message .policy { grid-column: 1 / -1; grid-row: auto; } }

.table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.table th, .table td { padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { width: 12em; padding-right: 24px; color: var(--ink-3); font-size: 14px; font-weight: 500; }
@media (max-width: 599px) {
  .table tr { display: block; padding-block: 16px; border-bottom: 1px solid var(--line); }
  .table th, .table td { display: block; width: auto; padding: 0; border: 0; }
}

/* History list: a line that draws down as you scroll */
.timeline { position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 9em; top: 0; width: 1px; }
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after { height: calc(var(--p, 0) * 100%); background: var(--ink); }
.timeline li { display: grid; grid-template-columns: 9em 1fr; align-items: baseline; padding-block: 20px; }
.timeline time { font-family: var(--num); font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; line-height: 1; }
.timeline p { position: relative; padding-left: 40px; }
.timeline p::before {
  content: ""; position: absolute; left: -4px; top: 0.8em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink-3); transition: background-color 0.4s, box-shadow 0.4s;
}
.timeline li.is-in p::before { background: var(--ink); box-shadow: none; }
@media (max-width: 599px) {
  .timeline::before, .timeline::after { left: 4.2em; }
  .timeline li { grid-template-columns: 4.2em 1fr; }
  .timeline time { font-size: 22px; }
  .timeline p { padding-left: 24px; font-size: 15px; }
}

.list { padding-left: 1.3em; list-style: disc; }
.list li + li { margin-top: 6px; }
.biz li { display: grid; grid-template-columns: 3em 1fr; padding-block: 18px; border-bottom: 1px solid var(--line); }
.biz li:first-child { border-top: 1px solid var(--ink); }
.biz .num { color: var(--ink-3); }

.access { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.access p + p { margin-top: 1em; }
@media (max-width: 767px) { .access { grid-template-columns: 1fr; } }

.ph {
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  color: #a7a8ab; font-size: 12px; letter-spacing: 0.1em;
}
/* Temporary photographs taken from the previous site (low resolution) */
.ph { overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.fit { background: #fff; }
.ph.fit img { object-fit: contain; }
.newp .ph { max-width: 320px; margin-bottom: 24px; }
.ph.wide { aspect-ratio: 520 / 118; }

/* products page */
.pcat { padding-top: clamp(96px, 14vh, 160px); }
.pcat:last-child { padding-bottom: clamp(96px, 14vh, 160px); }
.pcat-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding-bottom: 20px; margin-bottom: 40px; border-bottom: 1px solid var(--ink); font-size: clamp(28px, 3vw, 44px); letter-spacing: 0.06em; }
.pcat-title span { color: var(--ink-3); font-size: 15px; letter-spacing: 0.04em; }
.pcat-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--side); }
.pcat-intro .lead { grid-column: 1 / span 5; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.6; }
.pcat-intro .lead + p { grid-column: 7 / -1; color: var(--ink-2); }
.pcat-sub { margin: 80px 0 28px; font-size: 20px; letter-spacing: 0.04em; }
.pcat-sub + p { max-width: 46em; margin: -8px 0 32px; color: var(--ink-2); }
@media (max-width: 767px) { .pcat-intro .lead, .pcat-intro .lead + p { grid-column: 1 / -1; } }

.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
.items h4 { margin-top: 18px; font-size: 17px; }
.items p { margin-top: 6px; color: var(--ink-2); font-size: 14px; line-height: 1.85; }
.items.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.items.small h4 { font-size: 14px; font-weight: 400; line-height: 1.7; }

.machine { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; align-items: start; }
.machine + .machine { margin-top: 72px; }
.machine-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.machine-photos figcaption { margin-top: 8px; font-family: var(--num); font-size: 13px; letter-spacing: 0.06em; }
.machine h4 { font-size: 19px; }
.machine h4 + .list { margin-top: 18px; }
.machine h5 { margin: 22px 0 8px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.machine .list { font-size: 15px; }

.newp { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.newp h3 { margin-bottom: 16px; font-size: 20px; }
.newp p, .newp .list { font-size: 15px; color: var(--ink-2); }
.newp p + p, .newp p + .list { margin-top: 1em; }

@media (max-width: 1023px) {
  .items, .items.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine, .newp { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .items { grid-template-columns: 1fr; gap: 40px; }
  .items.small { gap: 28px 16px; }
}

/* ---------- footer ---------- */

.footer { padding-block: 88px 36px; background: var(--paper-2); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px 64px; align-items: start; }
.footer-logo { width: 170px; margin-bottom: 24px; mix-blend-mode: multiply; }
.footer address { color: var(--ink-2); line-height: 1.9; }
.footer nav ul { display: flex; gap: 32px; font-weight: 500; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 72px; padding-top: 24px; border-top: 1px solid #dcdcd9; color: var(--ink-3); font-size: 12px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--num); font-size: 12px; letter-spacing: 0.16em; color: var(--ink); }
.to-top span { display: inline-block; transition: transform 0.5s var(--ease); }
.to-top:hover span { transform: translateY(-4px); }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer nav ul { flex-wrap: wrap; gap: 10px 24px; }
}

/* ---------- prototype notes (remove before launch) ---------- */

.note { display: none; }
.show-notes .note {
  display: inline; margin-left: 0.5em; padding: 1px 6px;
  background: #fff1b8; color: #6b5200;
  font-family: var(--jp); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.6;
}
.show-notes p.note { display: block; width: fit-content; margin: 0 0 16px; }
.proto-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 300;
  padding: 8px 14px; border: 1px solid #bbb; background: #fff; color: #444;
  font: 12px/1.4 var(--jp); cursor: pointer;
}

/* ---------- reduced motion ---------- */
/* Keep fades and the scroll-driven pieces; drop movement and looping animation. */
@media (prefers-reduced-motion: reduce) {
  .motion [data-reveal] { transform: none; }
  .motion .lines .line > span { transform: none; opacity: 0; transition: opacity 1s var(--ease); transition-delay: calc(var(--i, 0) * 0.07s); }
  .motion .lines.is-in .line > span { opacity: 1; }
  .motion [data-wipe] { clip-path: none; opacity: 0; transition: opacity 1.2s var(--ease); }
  .motion [data-wipe].is-in { opacity: 1; }
  .motion [data-wipe] img, .motion [data-wipe].is-in img { scale: 1; }
  .motion .kv-photo img, .motion .is-loaded .kv-photo img { translate: none; scale: 1; }
  .motion .kv-cap::before { transform: none; }
  .motion .tl::before { transform: none; }
}
