/* Sakuga portfolio: paper, ink, lavender, hot pink. */
:root {
  --paper: #fbfaff;
  --paper-2: #f1efff;
  --ink: #1d1a4a;
  --dim: #6f6a9e;
  --soft: #b8b3ff;
  --pri: #8f8df7;
  --acc: #ff5fa8;
  --line: #1d1a4a;
  --shadow: 6px 7px 0 var(--soft);
  --r: 18px;
  --head: "Nunito", "Avenir Next", system-ui, sans-serif;
  --jp: "Dela Gothic One", "Hiragino Sans", "Yu Gothic", sans-serif;
  /* tune the library to this palette */
  --sk-pri: #8f8df7; --sk-acc: #ff5fa8; --sk-ink: #1d1a4a; --sk-soft: #b8b3ff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 16px/1.6 "Nunito", system-ui, sans-serif; overflow-x: clip;
  background-image: radial-gradient(rgba(143,141,247,.16) 1.2px, transparent 1.4px);
  background-size: 18px 18px;
}
body.locked { overflow: hidden; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

/* ── gate ── */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--paper);
  background-image: radial-gradient(rgba(143,141,247,.25) 1.4px, transparent 1.6px); background-size: 16px 16px;
  transition: opacity .5s ease, visibility .5s; }
.gate.out { opacity: 0; visibility: hidden; }
.gate-inner { display: grid; justify-items: center; gap: 70px; padding-block: 60px; }
.gate-ep { font: 900 italic 15px var(--head); letter-spacing: .4em; color: var(--dim); }

/* ── nav ── */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1120px, 100% - 24px); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 14px; background: rgba(251,250,255,.92); backdrop-filter: blur(8px);
  border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 6px 0 var(--soft); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 900 italic 20px var(--head); }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; font-style: normal; font-size: 17px; }
.brand em { color: var(--acc); font-style: normal; }
.links { display: flex; gap: 0; border: 2.5px solid var(--ink); background: #fff; border-radius: 14px; overflow: hidden; }
.links a { padding: 8px 18px; border-radius: 0; text-decoration: none; font-weight: 800; font-size: 14px; border-left: 2.5px solid var(--ink); }
.links a:first-child { border-left: 0; border-radius: 10px 0 0 10px; }
.links a:last-child { border-radius: 0 10px 10px 0; }
.links a:hover { background: var(--paper-2); }
.links a.on { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .nav { flex-wrap: wrap; padding: 8px 10px; } .links { width: 100%; overflow-x: auto; scrollbar-width: none; } .links::-webkit-scrollbar { display: none; } .links a { flex: 1 1 0; text-align: center; padding: 8px 2px; font-size: 12.5px; } .hero { padding-top: 170px; } }

/* ── hero ── */
.hero { position: relative; min-height: 88svh; padding: 96px 0 0; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.speed { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1; opacity: .55;
  background: repeating-conic-gradient(from 0deg at 72% 38%, rgba(143,141,247,.28) 0 2deg, transparent 2deg 9deg);
  -webkit-mask-image: radial-gradient(circle at 72% 38%, transparent 14%, #000 70%); mask-image: radial-gradient(circle at 72% 38%, transparent 14%, #000 70%); }
.kanji { position: absolute; z-index: -1; font-family: var(--jp); color: var(--ink); opacity: .07; user-select: none; line-height: 1; }
.k1 { font-size: 320px; right: -20px; top: 60px; }
.k2 { font-size: 200px; left: -30px; bottom: 120px; color: var(--acc); opacity: .1; }
.k3 { font-size: 150px; left: 44%; top: 40px; opacity: .06; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; flex: 1; padding-block: 34px 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; box-shadow: 3px 3px 0 var(--soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2fd47c; box-shadow: 0 0 0 4px rgba(47,212,124,.25); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47,212,124,0); } }
.title { margin: 22px 0 18px; font: 900 italic clamp(48px, 7.4vw, 96px)/.94 var(--head); letter-spacing: -.03em; }
.title .line { display: block; overflow: hidden; padding: 0 .08em .08em 0; }
.title .line > span { display: inline-block; transform: translateY(105%); transition: transform .8s cubic-bezier(.2,.9,.2,1); }
.title .line:nth-child(2) > span { transition-delay: .1s; }
.ready .title .line > span { transform: none; }
.title b { color: var(--acc); -webkit-text-stroke: 0; }
.lede { max-width: 560px; font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: #3b3870; }
.lede mark { background: linear-gradient(transparent 32%, var(--soft) 32%, var(--soft) 80%, transparent 80%); color: inherit; padding: 0 3px; font-weight: 900; }
.lede strong { color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 18px 16px; margin: 34px 0 22px; padding-bottom: 6px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-proof li { min-width: 132px; padding: 9px 12px; background: rgba(255,255,255,.86); border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--soft); }
.hero-proof b { display: block; font: 900 italic 18px/1 var(--head); color: var(--acc); }
.hero-proof span { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.where { font-size: 14px; color: var(--dim); font-weight: 700; }
.where span { margin: 0 6px; color: var(--acc); }

.stat-card { background: #fff; border: 3px solid var(--ink); border-radius: 22px; padding: 22px 22px 14px; box-shadow: var(--shadow); transform: rotate(1.6deg); }
.stat-title { font: 900 italic 22px var(--head); display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.stat-title small { font: 400 12px var(--jp); color: var(--acc); font-style: normal; letter-spacing: .1em; }
.stats { list-style: none; margin: 0; padding: 0; }
.stats li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 14px; padding: 14px 0; border-top: 2px dashed #d8d5f5; }
.stats li:first-child { border-top: 0; }
.stats b { font: 900 italic 42px/1 var(--head); min-width: 108px; color: var(--ink); letter-spacing: -.02em; }
.stats li:nth-child(odd) b { color: var(--acc); }
.stats span { font-size: 14px; font-weight: 700; line-height: 1.3; color: #3b3870; }
@media (max-width: 880px) {
  .hero { min-height: auto; padding-top: 112px; }
  .hero-grid { grid-template-columns: 1fr; }
  .stat-card { transform: none; }
  .k1 { font-size: 220px; }
}

.marquee { background: var(--ink); color: #fff; border-block: 3px solid var(--ink); transform: rotate(-1.2deg) scale(1.03); margin-bottom: 18px; overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 28px; padding: 14px 0; font: 900 italic 18px var(--head); letter-spacing: .06em; white-space: nowrap; animation: slide 38s linear infinite; }
.marquee-track span:nth-child(even) { color: var(--acc); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── sections ── */
.sec { padding: 110px 0; position: relative; }
.sec.alt { background: var(--paper-2); border-block: 3px solid var(--ink); }
.sec-tag { display: inline-flex; align-items: center; gap: 10px; font: 900 italic 14px var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.sec-tag span { background: var(--ink); color: #fff; padding: 2px 10px; border-radius: 999px; letter-spacing: .05em; }
.sec-title { font: 900 italic clamp(34px, 5vw, 58px)/1.02 var(--head); letter-spacing: -.02em; }
.sec-title em { color: var(--acc); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 24px; margin-bottom: 44px; }
.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .two { grid-template-columns: 1fr; gap: 28px; } .sec { padding: 80px 0; } }

/* anime battle entrances: injected per section by main.js */
.hero, .sec { --battle-accent: var(--acc); }
.sec { overflow: clip; isolation: isolate; }
.hero > .wrap, .hero > .marquee, .sec > .wrap { position: relative; z-index: 2; }
.battle-fx { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; contain: layout paint; }
.battle-speed { position: absolute; inset: -35%; opacity: 0; transform: scale(.68) rotate(-5deg); background: repeating-conic-gradient(from 0deg at var(--battle-x, 72%) 48%, color-mix(in srgb, var(--battle-accent) 34%, transparent) 0 1deg, transparent 1deg 7deg); -webkit-mask-image: radial-gradient(circle at var(--battle-x, 72%) 48%, transparent 0 8%, #000 28%, transparent 72%); mask-image: radial-gradient(circle at var(--battle-x, 72%) 48%, transparent 0 8%, #000 28%, transparent 72%); }
.battle-flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(circle at var(--battle-x, 72%) 48%, rgba(255,255,255,.95) 0 3%, color-mix(in srgb, var(--battle-accent) 36%, transparent) 8%, transparent 32%); }
.battle-slash { position: absolute; left: -35%; top: 43%; width: 170%; height: 13px; opacity: 0; transform: rotate(-9deg) scaleX(.08); transform-origin: 44% 50%; border-block: 2px solid var(--ink); background: linear-gradient(90deg, transparent 4%, var(--battle-accent) 28%, #fff 49%, var(--battle-accent) 70%, transparent 96%); box-shadow: 0 0 18px color-mix(in srgb, var(--battle-accent) 60%, transparent); }
.battle-slash.two { top: 57%; height: 7px; transform: rotate(7deg) scaleX(.08); filter: hue-rotate(24deg); }
.battle-sfx { position: absolute; right: clamp(12px, 5vw, 72px); top: 9%; opacity: 0; transform: translate(70px,-15px) rotate(-8deg) scale(1.55); color: #fff; font: 400 clamp(54px, 9vw, 122px)/.8 var(--jp); letter-spacing: -.08em; -webkit-text-stroke: 4px var(--ink); text-shadow: 8px 8px 0 var(--battle-accent); white-space: nowrap; }
.battle-sfx small { display: block; margin: 15px 8px 0 0; color: var(--ink); font: 900 italic 12px var(--head); letter-spacing: .28em; text-align: right; -webkit-text-stroke: 0; text-shadow: none; }
.battle-shards i { --a: calc(var(--i) * 51deg); position: absolute; left: var(--battle-x, 72%); top: 48%; width: 8px; height: 30px; opacity: 0; border: 2px solid var(--ink); border-radius: 999px; background: var(--battle-accent); transform: rotate(var(--a)) translateY(-10px); }
.battle-shards i:nth-child(even) { width: 14px; height: 14px; background: #fff; }
.battle-hit .battle-speed { animation: battle-speed .9s cubic-bezier(.1,.75,.2,1) both; }
.battle-hit .battle-flash { animation: battle-flash .62s ease-out both; }
.battle-hit .battle-slash { animation: battle-slash .76s cubic-bezier(.15,.8,.2,1) .08s both; }
.battle-hit .battle-slash.two { animation-delay: .18s; }
.battle-hit .battle-sfx { animation: battle-sfx 1.15s cubic-bezier(.2,1.5,.35,1) .2s both; }
.battle-hit .battle-shards i { animation: battle-shard .86s cubic-bezier(.12,.8,.2,1) calc(.08s + var(--i) * .025s) both; }
@keyframes battle-speed { 0% { opacity: 0; transform: scale(.55) rotate(-8deg); } 24% { opacity: .72; } 100% { opacity: 0; transform: scale(1.12) rotate(0); } }
@keyframes battle-flash { 0%,100% { opacity: 0; } 16% { opacity: .88; } 42% { opacity: .15; } }
@keyframes battle-slash { 0% { opacity: 0; transform: rotate(-9deg) scaleX(.05); } 32% { opacity: 1; } 72% { opacity: .8; transform: rotate(-9deg) scaleX(1); } 100% { opacity: 0; transform: rotate(-9deg) translateX(35%) scaleX(1); } }
@keyframes battle-sfx { 0% { opacity: 0; transform: translate(70px,-15px) rotate(-8deg) scale(1.55); } 28%,70% { opacity: .92; transform: translate(0,0) rotate(-5deg) scale(1); } 100% { opacity: 0; transform: translate(-18px,8px) rotate(-3deg) scale(.94); } }
@keyframes battle-shard { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-150px) scale(.35); } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* about */
.about-body p { font-size: 18px; font-weight: 600; color: #3b3870; }
.edu { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.edu li { list-style: none; }
.edu button { width: 100%; display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; padding: 16px 18px; background: #fff; color: inherit; text-align: left; font: inherit; cursor: pointer; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 4px 5px 0 var(--soft); transition: transform .22s cubic-bezier(.3,1.6,.5,1), box-shadow .22s; }
.edu button:hover, .edu button:focus-visible { transform: translate(-2px,-4px); box-shadow: 7px 8px 0 var(--soft); }
.edu-logo { width: 84px; height: 84px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 16px; background: #fff; box-shadow: 3px 4px 0 var(--soft); }
.edu-logo img { width: 100%; height: 100%; object-fit: contain; padding: 9px; display: block; }
.edu-yr { display: block; font: 900 italic 13px var(--head); color: var(--acc); margin-bottom: 2px; }
.edu strong { display: block; font-size: 17px; }
.edu em { display: block; font-style: normal; font-weight: 700; color: var(--dim); font-size: 14px; }
.edu small { display: block; margin-top: 4px; font-weight: 700; font-size: 13px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card { background: #fff; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s; animation: pop .45s cubic-bezier(.3,1.5,.5,1) backwards; }
.card:hover { transform: translate(-3px, -5px) rotate(-.6deg); box-shadow: 10px 12px 0 var(--soft); }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(12px); } }
.card-media { position: relative; aspect-ratio: 16 / 10; border-bottom: 3px solid var(--ink); border-radius: 15px 15px 0 0; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.06); }
.card[data-id="mauzi"] { border-radius: 26px; }
.card[data-id="mauzi"] .card-media { border-radius: 23px 23px 0 0; padding: 18px; background: linear-gradient(145deg, #e7fbf7, var(--paper-2)); }
.card[data-id="mauzi"] .card-media img { object-fit: contain; border-radius: 50%; }
.card-media.kj { display: grid; place-items: center; background:
  repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.14) 0 6deg, transparent 6deg 14deg), linear-gradient(135deg, var(--ink), #3a36a8); }
.card-media.kj:nth-of-type(n) { color: #fff; }
.kj-char { font: 400 clamp(64px, 9vw, 96px)/1 var(--jp); color: #fff; text-shadow: 4px 4px 0 var(--acc); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--acc); color: #fff; font: 900 italic 12px var(--head); padding: 4px 11px; border: 2.5px solid var(--ink); border-radius: 999px; letter-spacing: .03em; transform: rotate(-3deg); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-sub { font: 800 12px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.card h3 { font: 900 italic 25px/1.1 var(--head); letter-spacing: -.01em; }
.card-date { font-size: 12.5px; font-weight: 800; color: var(--acc); }
.card p { font-size: 14.5px; font-weight: 600; color: #3b3870; line-height: 1.5; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.tags li { list-style: none; font-size: 12px; font-weight: 800; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); }
.tags { padding-left: 0; margin-bottom: 0; }
.card a.go { margin-top: 10px; font-weight: 900; font-size: 14px; color: var(--ink); text-decoration-color: var(--acc); text-decoration-thickness: 3px; text-underline-offset: 3px; width: fit-content; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 38px; }
.load-more-wrap [hidden] { display: none !important; }

/* journey */
.journey-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 26px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 4px; background: repeating-linear-gradient(var(--ink) 0 10px, transparent 10px 18px); border-radius: 4px; }
.t-item { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; cursor: pointer; transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .25s; background: #fff; border: 3px solid var(--ink); border-radius: var(--r); padding: 18px 22px; box-shadow: 5px 6px 0 var(--soft); animation: pop .45s cubic-bezier(.3,1.5,.5,1) backwards; }
.t-item::before { content: ""; position: absolute; left: -30px; top: 24px; width: 20px; height: 20px; border-radius: 50%; background: var(--acc); border: 3.5px solid var(--ink); }
.t-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.t-role { font: 900 italic 22px/1.15 var(--head); }
.t-when { font: 800 13px var(--head); color: var(--acc); letter-spacing: .04em; }
.t-org { font-weight: 800; color: var(--dim); margin-top: 2px; }
.t-short { margin-top: 8px; font-weight: 700; color: #3b3870; }
.t-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: #3b3870; }
.t-list li::marker { color: var(--acc); }
.t-list, .t-short { transition: opacity .3s; }
.compact .t-list { display: none; }
.timeline:not(.compact) .t-short { display: none; }

/* honors */
.honors { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.honor { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--r); padding: 22px 20px 20px 22px; box-shadow: 5px 6px 0 var(--soft); transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.honor:hover { transform: translate(-2px,-4px) rotate(-.8deg); }
.honor .no { position: absolute; top: -16px; right: 14px; font: 900 italic 34px var(--head); color: var(--paper-2); -webkit-text-stroke: 2.5px var(--ink); }
.honor h3 { font: 900 italic 19px/1.2 var(--head); margin-bottom: 6px; padding-right: 30px; }
.honor p { font-size: 14px; font-weight: 700; color: var(--dim); }
.honor.star { background: var(--ink); color: #fff; grid-column: span 2; box-shadow: 6px 7px 0 var(--acc); }
.honor.star p { color: var(--soft); }
.honor.star h3 { font-size: clamp(24px, 3vw, 32px); }
.honor.star .no { color: var(--acc); -webkit-text-stroke-color: #fff; }
@media (max-width: 600px) { .honor.star { grid-column: auto; } }

/* contact */
.contact { position: relative; }
.contact-lede { margin-top: 18px; font-size: 18px; font-weight: 600; color: #3b3870; max-width: 440px; }
.direct { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; }
.plain { font-weight: 900; text-decoration-color: var(--acc); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.form { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 22px; padding: 28px; background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: var(--shadow); }
.form::before { content: ""; position: absolute; z-index: -2; inset: -70%; opacity: 0; pointer-events: none; background: repeating-conic-gradient(from 8deg at 76% 42%, rgba(143,141,247,.2) 0 1.2deg, transparent 1.2deg 8deg); transition: opacity .35s; }
.form::after { content: ""; position: absolute; z-index: -1; width: 180%; height: 54px; left: -190%; top: 33%; pointer-events: none; transform: rotate(-12deg); background: linear-gradient(90deg, transparent, rgba(255,95,168,.08), rgba(255,95,168,.5), #fff, transparent); transition: left .65s cubic-bezier(.2,.8,.2,1); }
.form:focus-within::before, .form:hover::before { opacity: 1; }
.form:focus-within::after { left: 120%; }
.form.sending { animation: form-charge .75s ease-in-out infinite alternate; }
.form.sent { animation: form-impact .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes form-charge { to { box-shadow: 8px 10px 0 var(--acc), 0 0 0 6px rgba(143,141,247,.15); } }
@keyframes form-impact { 35% { transform: translate(-4px,-3px) rotate(-.4deg); box-shadow: 13px 14px 0 var(--acc); } 70% { transform: translate(3px,1px) rotate(.2deg); } }
.form-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 2px dashed #d8d5f5; }
.form-kicker { display: block; color: var(--acc); font: 900 11px var(--head); letter-spacing: .18em; text-transform: uppercase; }
.form-head h3 { margin-top: 3px; font: 900 italic 28px/1 var(--head); }
.inbox-live { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 5px 10px; border: 2px solid var(--ink); border-radius: 999px; font-size: 11px; font-weight: 900; }
.inbox-live i { width: 8px; height: 8px; border-radius: 50%; background: #2fd47c; box-shadow: 0 0 0 4px rgba(47,212,124,.2); animation: pulse 1.8s infinite; }
.contact-types { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.contact-types legend { grid-column: 1 / -1; padding: 0; margin-bottom: 8px; font: 900 13px var(--head); }
.contact-types label { position: relative; cursor: pointer; }
.contact-types input { position: absolute; opacity: 0; pointer-events: none; }
.contact-types label span { min-height: 72px; display: grid; align-content: center; padding: 10px 11px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 13px; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.contact-types label:hover span { transform: translateY(-3px); box-shadow: 3px 4px 0 var(--soft); }
.contact-types input:checked + span { background: var(--ink); color: #fff; box-shadow: 4px 5px 0 var(--acc); transform: translateY(-2px); }
.contact-types b { font: 900 italic 14px var(--head); }
.contact-types small { margin-top: 2px; font-size: 10.5px; font-weight: 700; color: var(--dim); }
.contact-types input:checked + span small { color: var(--soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .budget > span { font: 900 12px var(--head); letter-spacing: .04em; }
.field em { color: var(--acc); font-style: normal; }
.field span small { float: right; color: var(--dim); font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; color: var(--ink); background: var(--paper); border: 2.5px solid var(--ink); border-radius: 13px; padding: 12px 13px; font: 700 14px var(--head); box-shadow: 3px 4px 0 var(--soft); outline: 0; transition: transform .2s, border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 118px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { transform: translate(-1px,-2px); border-color: var(--acc); box-shadow: 5px 6px 0 var(--soft); }
.field-message { position: relative; }
.field-message > small { position: absolute; right: 12px; bottom: 9px; padding: 1px 6px; border-radius: 999px; background: #fff; color: var(--dim); font-size: 10px; font-weight: 800; }
.brief-row { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: end; }
.budget { display: grid; gap: 14px; padding-bottom: 5px; }
.budget > span { display: flex; justify-content: space-between; gap: 12px; }
.budget output { color: var(--acc); font-weight: 900; }
.budget input { width: 100%; accent-color: var(--acc); cursor: ew-resize; }
.email-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 12px 0; border-block: 2px dashed #d8d5f5; }
.checks label { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 800; }
.checks input { width: 20px; height: 20px; accent-color: var(--acc); }
.form-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-action p { color: var(--dim); font-size: 10.5px; font-weight: 700; line-height: 1.35; text-align: right; }
.anime-send { position: relative; overflow: hidden; min-width: 180px; display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; padding: 13px 16px; border: 3px solid var(--ink); border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 5px 6px 0 var(--acc); font: 900 italic 15px var(--head); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.anime-send::before { content: ""; position: absolute; inset: 0; transform: translateX(-110%) skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transition: transform .55s; }
.anime-send:hover { transform: translate(-2px,-3px); box-shadow: 8px 9px 0 var(--acc); }
.anime-send:hover::before { transform: translateX(110%) skewX(-22deg); }
.anime-send i { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--acc); font-style: normal; }
.anime-send:disabled { cursor: wait; opacity: .7; }
.anime-burst { position: absolute; z-index: 8; right: 18%; bottom: 42px; width: 1px; height: 1px; pointer-events: none; }
.anime-burst i { --a: calc(var(--i) * 36deg); position: absolute; width: 8px; height: 24px; border: 2px solid var(--ink); border-radius: 999px; background: var(--acc); transform: rotate(var(--a)) translateY(-8px); animation: burst-ray .8s cubic-bezier(.15,.8,.25,1) forwards; }
.anime-burst i:nth-child(3n) { background: var(--soft); height: 17px; }
@keyframes burst-ray { 70% { opacity: 1; } to { opacity: 0; transform: rotate(var(--a)) translateY(-105px) scale(.35); } }
@media (max-width: 560px) { .row, .brief-row { grid-template-columns: 1fr; } .contact-types { grid-template-columns: 1fr; } .form { padding: 22px 16px 26px; } .form-action { align-items: stretch; flex-direction: column; } .form-action p { text-align: left; } }

/* footer */
.foot { background: var(--ink); color: #fff; margin-top: 0; }
.foot-thanks { padding: 84px 0 76px; text-align: center; }
.foot-big { font: 400 clamp(52px, 10vw, 112px)/1 var(--jp); color: #fff; text-shadow: 5px 5px 0 var(--acc); }
.foot-big small { display: block; font: 800 17px var(--head); color: var(--soft); text-shadow: none; margin-top: 18px; }
.foot-credits { background: #14123a; border-top: 3px solid var(--acc); padding: 20px 0; }
.foot-credits-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.foot-note { font-size: 13px; color: var(--soft); font-weight: 600; margin: 0; }
.foot-note a { color: #fff; }
.copy { margin: 0; font-size: 13px; color: var(--soft); font-weight: 700; }

#toast { position: fixed; left: 50%; bottom: 20px; z-index: 90; margin-left: -118px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .title .line > span { opacity: 1; transform: none; transition: none; }
  .marquee-track, .dot, .card, .t-item { animation: none; }
  .battle-fx { display: none; }
}

/* boxier tabs: tighter corners via the library's exposed parts */
sakuga-tabs::part(tabs) { border-radius: 0; }
sakuga-tabs::part(indicator) { border-radius: 0; }

/* hero campus chips */
.where { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.where .chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 6px; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--soft); color: var(--ink); font-size: 13px; font-weight: 800; }
.where .chip img { width: 30px; height: 30px; object-fit: contain; display: block; }

/* title stays on two lines; stats rows hug the content (tooltip reserves 60px above itself) */
.title { font-size: clamp(44px, 6.3vw, 84px); }
.title .line { white-space: nowrap; }
.stats sakuga-tooltip { margin-top: -56px; align-self: end; }
.stats li { padding: 12px 0 10px; }

/* kind words */
.voices { margin-top: 56px; }
.voices-title { font: 900 italic 26px var(--head); margin-bottom: 18px; }
.voice-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.voice { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 22px 22px 18px; box-shadow: 5px 6px 0 var(--soft); display: flex; flex-direction: column; gap: 10px; }
.voice-q { font: 800 19px/1.5 var(--body, "Nunito", system-ui, sans-serif); color: var(--ink); margin: 0; }
.voice-en { font-size: 13.5px; font-weight: 700; color: var(--dim); margin: 0; }
.voice-by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 2px dashed var(--soft); }
.voice-av { width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font: 900 14px var(--head); border: 2.5px solid var(--ink); flex: none; }
.voice-by b { display: block; font-weight: 900; font-size: 15px; }
.voice-by small { display: block; font-weight: 700; font-size: 12.5px; color: var(--dim); }

.voice-todo { align-self: flex-start; font: 900 11px var(--head); letter-spacing: .06em; text-transform: uppercase; color: #8a4b00; background: #ffe9a8; border: 2px dashed #c98a00; border-radius: 999px; padding: 3px 10px; }
.honor-moment { margin: 36px 0 0; max-width: 360px; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 5px 6px 0 var(--soft); transform: rotate(-1deg); }
.honor-moment img { display: block; width: 100%; height: auto; }
.honor-moment figcaption { padding: 10px 14px; font-weight: 800; font-size: 13px; color: var(--dim); border-top: 3px solid var(--ink); }
.voices-title { display: none; }
.sec#voices .voice-list { margin-top: 40px; }

/* top project flag */
.top-flag { position: absolute; top: 12px; right: 12px; background: #ffd23f; color: var(--ink); font: 900 italic 12px var(--head); padding: 4px 11px; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 3px 0 var(--ink); }
.voices { margin-top: 64px; }
.voices .voices-title { display: block; }

/* stack + github */
.stack-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; margin-top: 40px; align-items: start; }
.stack-groups { display: grid; gap: 22px; }
.stack-group h3 { font: 900 italic 18px var(--head); margin: 0 0 10px; }
.stack-group .tags { margin: 0; }
.stack-group .tags li { font-size: 14px; padding: 7px 13px; }
.gh-card { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 22px; box-shadow: 6px 7px 0 var(--soft); display: grid; gap: 16px; }
.gh-head { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.gh-head img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); }
.gh-head b { display: block; font: 900 italic 19px var(--head); }
.gh-head small { font-weight: 800; color: var(--dim); }
.gh-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gh-stats li { background: var(--paper-2); border: 2.5px solid var(--ink); border-radius: 12px; padding: 8px 10px; text-align: center; }
.gh-stats b { display: block; font: 900 italic 22px var(--head); color: var(--acc); }
.gh-stats span { font-size: 11px; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.gh-sub { margin: 0; font: 900 12px var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.gh-repos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gh-repos a { display: grid; gap: 2px; padding: 10px 12px; border: 2.5px solid var(--ink); border-radius: 12px; text-decoration: none; color: inherit; background: #fff; transition: transform .15s, box-shadow .15s; }
.gh-repos a:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--soft); }
.gh-repos b { font-weight: 900; font-size: 15px; }
.gh-repos span { font-size: 12.5px; font-weight: 700; color: var(--dim); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gh-repos small { font-weight: 800; font-size: 11.5px; color: var(--acc); }
.gh-card .m-btn { justify-self: start; }
@media (max-width: 860px) { .stack-grid { grid-template-columns: 1fr; } }

/* stack row + visual GitHub card (full width) */
.stack-grid { grid-template-columns: 1fr; gap: 28px; }
.stack-groups { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 28px; }
.gh-card { padding: 26px; gap: 20px; }
.gh-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.gh-top .gh-stats { flex: 1 1 360px; }
.gh-top .m-btn { margin-left: auto; }
.gh-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; padding: 4px 2px 8px; }
.gh-heat i { width: 12px; height: 12px; border-radius: 3px; background: #ece9ff; }
.gh-heat i.pad { background: transparent; }
.gh-heat i.l1 { background: #ffc4e0; }
.gh-heat i.l2 { background: #ff8fc4; }
.gh-heat i.l3 { background: #ff5fa8; }
.gh-heat i.l4 { background: #1d1a4a; }
.gh-lang-bar { display: flex; height: 12px; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.gh-lang ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gh-lang li { font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.gh-lang li i, .gh-repos small i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.gh-lang li small { color: var(--dim); font-weight: 800; }
.gh-repos { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.gh-repos small { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.voice-ctx { font-size: 12px; font-weight: 800; color: var(--acc); margin: 0; letter-spacing: .02em; }

.gh-top .gh-stats span { white-space: nowrap; letter-spacing: .02em; font-size: 10.5px; }

/* phones: keep the GitHub card inside the viewport */
.stack-grid > *, .gh-card, .gh-top > * { min-width: 0; }
.gh-repos { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
@media (max-width: 640px) {
  .gh-card { padding: 18px; }
  .gh-top { gap: 14px; }
  .gh-top .gh-stats { flex: 1 1 100%; gap: 8px; }
  .gh-top .gh-stats span { white-space: normal; font-size: 10px; }
  .gh-top .m-btn { margin-left: 0; }
  .gh-stats b { font-size: 20px; }
}
