/* Portfolio home — Figma 169:2737 tokens + component type scale. */
:root {
  /* from Figma variables */
  --portfolio-blue: #0870ca;
  --portfolio-link: #116af8;
  --portfolio-ink: #343434;
  --portfolio-paper: #f7f7f7;
  --portfolio-soft: #f5f5f5;
  --portfolio-gray: #b3b3b3;
  --portfolio-dark-gray: #7b7b7b;
  --portfolio-line: #b3b3b3;
  --portfolio-radius: 13.33px;
  --portfolio-radius-card: 26.67px;
  --portfolio-max: 1600px;
  /* Match header wordmark/nav text inset — not the outer pill box. */
  --content-inset: clamp(16px, 4.4vw, 84px);
  --section-width: min(calc(100% - (var(--content-inset) * 2)), var(--portfolio-max));
  --font-display: "Rammetto One", "Arial Black", sans-serif;
  --font-serif: "Libre Baskerville", "Times New Roman", "Songti SC", serif;
  --font-en: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Zen Kaku Gothic New", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html {
  overflow-x: clip;
}

body.one-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--portfolio-ink);
  background: var(--portfolio-paper);
  font-family: var(--font-en);
  font-weight: 300;
  letter-spacing: .02em;
}

body.one-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px var(--content-inset);
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  pointer-events: none;
}
body.one-page .site-header--nav-only nav {
  pointer-events: auto;
}

body.one-page .menu-toggle {
  display: none !important;
}

body.one-page .wordmark {
  display: none;
}

/* Home-only brand mark (not in sticky nav). */
.hero-wordmark {
  position: absolute;
  top: 28px;
  left: var(--content-inset);
  z-index: 5;
  color: var(--portfolio-blue);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
}

/* Figma 169:2710 — frosted outer pill; always expanded (no hamburger). */
body.one-page .site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  min-height: 47.5px;
  max-width: min(100%, 520px);
  margin-left: auto;
  padding: 6px 6px 6px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(8, 112, 202, .2);
  border-radius: 9999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(8, 107, 230, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transition:
    background-color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}
body.one-page .site-header nav::-webkit-scrollbar { display: none; }

body.one-page .site-header nav a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 6px 13px 4px;
  color: var(--portfolio-ink);
  border-radius: 9999px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .7px;
  line-height: 21px;
  background: transparent;
  transition: color .28s ease, background-color .28s ease, opacity .2s ease;
}

body.one-page .site-header nav a:hover { opacity: .72; transform: none; }
body.one-page .site-header nav a[aria-current="location"]:not(.nav-cta) {
  color: var(--portfolio-ink);
  background: transparent;
  font-weight: 700;
}
body.one-page .site-header nav a.nav-cta {
  min-height: 31.5px;
  padding: 6px 14px 6px 13px;
  gap: 12px;
  color: #fff;
  background: var(--portfolio-link);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .7px;
  line-height: 19.5px;
}
body.one-page .site-header nav a.nav-cta span {
  display: inline-grid;
  place-items: center;
  width: 11px;
  height: 9px;
  margin-left: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
body.one-page .site-header nav a.nav-cta[aria-current="location"],
body.one-page .site-header nav a.nav-cta:hover {
  color: #fff;
  background: var(--portfolio-link);
  opacity: 1;
}

/* When scrolling over blue sections (projects / contact), invert chrome like ETOHA. */
body.one-page .site-header[data-on-dark="true"] .wordmark { color: #fff; }
body.one-page .site-header[data-on-dark="true"] nav {
  border-color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}
body.one-page .site-header[data-on-dark="true"] nav a:not(.nav-cta) { color: #fff; }
body.one-page .site-header[data-on-dark="true"] nav a[aria-current="location"]:not(.nav-cta) {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}
body.one-page .site-header[data-on-dark="true"] nav a.nav-cta {
  color: var(--portfolio-blue);
  background: #fff;
}
body.one-page .site-header[data-on-dark="true"] nav a.nav-cta span { color: var(--portfolio-blue); }
body.one-page .site-header[data-on-dark="true"] nav a.nav-cta[aria-current="location"],
body.one-page .site-header[data-on-dark="true"] nav a.nav-cta:hover {
  color: var(--portfolio-blue);
  background: #fff;
  opacity: 1;
}

body.one-page .hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Fill the viewport width; keep a readable hero height without locking a fixed canvas. */
  height: 100svh;
  min-height: min(100svh, 900px);
  max-height: none;
  aspect-ratio: auto;
  padding: 0;
  color: var(--portfolio-ink);
  background: var(--portfolio-paper);
  justify-content: initial;
  gap: 0;
  overflow: hidden;
}

body.one-page .hero::before,
body.one-page .hero::after {
  content: none;
  display: none;
  animation: none;
}

.hero-cta {
  position: absolute;
  left: max(24px, 4.5vw);
  bottom: max(28px, 6vh);
  z-index: 3;
  width: 11.8052%;
  aspect-ratio: 226.66 / 127.98;
  animation: portfolio-float 5.4s ease-in-out infinite;
  display: block;
  pointer-events: auto;
  text-decoration: none;
}

.hero-cta__balloon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.hero-cta__text,
.hero-cta__arrow { position: absolute; z-index: 1; color: #fff; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; }
.hero-cta__text { left: 20.37%; top: 32.29%; font-size: clamp(10px, 1.1094vw, 21.3px); line-height: 1.5; letter-spacing: .0556vw; white-space: nowrap; }
.hero-cta__arrow { left: 80.59%; top: 40.62%; font-size: clamp(9px, .76vw, 14.7px); line-height: 1; }
.hero-cta__flower { position: absolute; z-index: 2; object-fit: contain; pointer-events: none; }
.hero-cta__flower--top { width: 24.7%; height: 44%; right: -2.9%; top: -18.7%; }
.hero-cta__flower--bottom { width: 18.8%; height: 33.5%; left: 0; bottom: -33.5%; }

.portfolio-title {
  position: absolute;
  z-index: 2;
  left: max(16px, 3vw);
  right: max(16px, 3vw);
  top: 50%;
  bottom: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  max-width: calc(100% - 2 * max(16px, 3vw));
  margin: 0;
  box-sizing: border-box;
  transform: translateY(-54%);
  color: #0971e7;
  font-family: var(--font-display);
  /* Scale to available width so PORTFOLIO never forces horizontal scroll. */
  font-size: clamp(32px, calc((100vw - 64px) / 9.2), 200px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: clamp(0px, .8vw, 20px);
  text-align: center;
}

.portfolio-title > span,
.portfolio-title > span:nth-child(n) {
  flex: 1 1 .58em;
  min-width: 0;
  width: auto;
  height: auto;
  background: none;
  border: 0;
  border-radius: 0;
  transform: none;
  text-shadow: none;
}

/* Full collage offset — keep photos inside side margins. */
.portfolio-title.is-letter-collage {
  left: max(16px, 2vw);
  right: max(16px, 2vw);
  transform: translateY(-50%);
}

/* When reversed: hide glyph visually but keep its layout box (title height / IO). */
body.one-page .letter-flip.is-flipped .letter-text,
html:not(.ocean-motion-paused):not([data-motion="paused"]) body.one-page .letter-flip.is-flipped .letter-text,
html:not(.ocean-motion-paused):not([data-motion="paused"]) body.one-page .letter-asset-ready:hover .letter-flip.is-flipped .letter-text,
html:not(.ocean-motion-paused):not([data-motion="paused"]) body.one-page .letter-asset-ready:focus-within .letter-flip.is-flipped .letter-text {
  opacity: 0 !important;
  visibility: hidden !important;
  color: transparent !important;
  pointer-events: none !important;
}

.letter-flip {
  position: static;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  perspective: none;
}

body.one-page .letter-flip.is-flipped {
  padding-inline: 0;
}

.hero-play {
  position: absolute;
  right: max(24px, 4vw);
  bottom: max(28px, 5vh);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px 8px 14px;
  color: var(--portfolio-ink);
  border: 1px solid #fff;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(2px);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s ease, background-color .2s ease;
}
.hero-play__triangle {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--portfolio-blue);
}
.hero-play__label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .7px;
  line-height: 1;
}
.hero-play:hover,
.hero-play:focus-visible {
  opacity: .78;
  background: rgba(255, 255, 255, .78);
}

.button, .button--solid, .button--ghost { color: var(--portfolio-link); }

/* Reverse collage: Figma 172:1043 canvas coords via --letter-* (vw). */
body.one-page .letter-flip .letter-image[data-letter-index],
body.one-page .letter-image[data-letter-index] {
  position: fixed !important;
  inset: auto !important;
  left: var(--letter-left);
  top: var(--letter-top);
  right: auto;
  bottom: auto;
  z-index: 3;
  display: block;
  width: var(--letter-size) !important;
  height: var(--letter-size) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: normal !important;
  backface-visibility: visible;
  transform: rotate(var(--letter-rotation, 0deg)) scale(.94) !important;
  transform-origin: center center;
  transition: opacity 260ms ease, transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html:not(.ocean-motion-paused):not([data-motion="paused"]) body.one-page .letter-asset-ready:hover .letter-image[data-letter-index],
html:not(.ocean-motion-paused):not([data-motion="paused"]) body.one-page .letter-asset-ready:focus-within .letter-image[data-letter-index],
html:not(.ocean-motion-paused):not([data-motion="paused"]) body.one-page .letter-flip.is-flipped .letter-image[data-letter-index],
body.one-page .letter-flip.is-flipped .letter-image[data-letter-index] {
  opacity: 1;
  transform: rotate(var(--letter-rotation, 0deg)) scale(1) !important;
}

.internship-section {
  position: relative;
  /* Figma 169:2061 — top scoop 133.33, paper soft, ~160 side inset via wrap */
  padding: clamp(96px, 7.6vw, 147px) 0 clamp(120px, 9.7vw, 187px);
  background: rgba(245, 245, 245, .8);
  border: 1px solid #fff;
  border-radius: clamp(64px, 6.94vw, 133.33px) clamp(64px, 6.94vw, 133.33px) 0 0;
  backdrop-filter: blur(2px);
}

.section-wrap { width: var(--section-width); margin-inline: auto; }
.section-topline { color: var(--portfolio-ink); border-color: var(--portfolio-line); }
.section-kicker,
.project-index__kicker {
  margin: 18px 0 0;
  color: var(--portfolio-ink);
  font-family: var(--font-en);
  font-size: 18.7px;
  font-weight: 300;
  letter-spacing: .933px;
  line-height: 28px;
}
.section-title {
  margin: 0;
  color: var(--portfolio-ink);
  font-family: var(--font-display);
  /* Figma INTERNSHIP / PROJECTS — Rammetto 60 */
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.section-title span {
  display: none;
}
/* Directory — photo ~viewport height; left column matches that height */
.directory-section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100svh;
  height: 100svh;
  padding: clamp(88px, 11vh, 112px) var(--content-inset) clamp(28px, 4vh, 48px);
  background: var(--portfolio-paper);
  box-sizing: border-box;
}
.directory-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) auto;
  gap: clamp(28px, 3.5vw, 56px);
  align-items: stretch;
  width: var(--section-width);
  height: min(calc(100svh - 8.5rem), 820px);
  max-height: min(calc(100svh - 8.5rem), 820px);
  margin-inline: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.directory-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 5.5vh, 64px);
  align-self: stretch;
  width: min(100%, 30rem);
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 8px 0 4px;
  background: transparent;
}
.directory-intro {
  display: grid;
  gap: clamp(22px, 3vh, 32px);
  max-width: 34rem;
}
.directory-eyebrow {
  margin: 0 0 18px;
  color: var(--portfolio-dark-gray);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
}
.directory-name {
  margin: 0;
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: clamp(48px, 5.6vw, 72px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.directory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.directory-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--portfolio-ink);
  border-radius: 9999px;
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  background: transparent;
}
.directory-pill--solid {
  border-color: var(--portfolio-ink);
  color: var(--portfolio-ink);
  font-weight: 700;
}
.directory-pill--line {
  border-color: var(--portfolio-ink);
  border-radius: 9999px;
  color: var(--portfolio-ink);
  font-weight: 500;
}
.directory-bio {
  max-width: 32rem;
  width: 100%;
  margin: 0;
  color: var(--portfolio-dark-gray);
  font-family: var(--font-jp);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 500;
  letter-spacing: .25px;
  line-height: 1.75;
}
.directory-nav {
  display: grid;
  gap: clamp(22px, 3vh, 32px);
  margin: 0;
  padding: 0;
}
.directory-nav__item {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 12px;
  align-items: baseline;
  color: var(--portfolio-ink);
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.directory-nav__item span {
  color: var(--portfolio-gray);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
}
.directory-nav__item strong {
  font-family: var(--font-en);
  font-size: clamp(26px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.1;
}
.directory-nav__item:hover,
.directory-nav__item:focus-visible {
  color: var(--portfolio-link);
  transform: translateX(4px);
}
.directory-nav__item:hover span,
.directory-nav__item:focus-visible span {
  color: var(--portfolio-link);
}
.directory-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
  width: auto;
  margin-top: 0;
  margin-bottom: clamp(12px, 2vh, 28px);
  padding-top: 0;
  transform: translateY(-12px);
}
.directory-links a {
  color: var(--portfolio-dark-gray);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .2s ease;
}
.directory-links a:hover,
.directory-links a:focus-visible {
  color: var(--portfolio-link);
}
.directory-links a.is-pending,
.directory-links__pending {
  color: var(--portfolio-dark-gray);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  opacity: .45;
  pointer-events: none;
  cursor: default;
}
.directory-links__action {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--portfolio-dark-gray);
  font: inherit;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .2s ease;
}
.directory-links__action:hover,
.directory-links__action:focus-visible {
  color: var(--portfolio-link);
}
.contact-card {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s ease;
}
.contact-card.is-open {
  pointer-events: auto;
  opacity: 1;
}
.contact-card__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 40, 90, .42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.contact-card__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 380px);
  padding: clamp(28px, 4vw, 36px);
  border-radius: var(--portfolio-radius-card);
  background: var(--portfolio-blue);
  color: #fff;
  box-shadow: 0 28px 64px rgba(8, 40, 90, .28);
  transform: translateY(12px) scale(.98);
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}
.contact-card.is-open .contact-card__panel {
  transform: translateY(0) scale(1);
}
.contact-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.contact-card__close:hover,
.contact-card__close:focus-visible {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .65);
}
.contact-card__eyebrow {
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .78;
}
.contact-card__title {
  margin: 8px 0 20px;
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .04em;
}
.contact-card__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-card__list li {
  display: grid;
  gap: 4px;
}
.contact-card__label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .72;
}
.contact-card__list a {
  color: #fff;
  font-family: var(--font-jp);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .28);
  width: fit-content;
  padding-bottom: 2px;
  transition: border-color .2s ease, opacity .2s ease;
}
.contact-card__list a:hover,
.contact-card__list a:focus-visible {
  border-color: rgba(255, 255, 255, .85);
  opacity: .92;
}
body.contact-card-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-card__panel {
    transition: none;
  }
  .contact-card__panel {
    transform: none;
  }
}
.directory-photo {
  position: relative;
  align-self: center;
  flex: 0 1 auto;
  height: min(100%, calc(100svh - 8.5rem));
  width: auto;
  aspect-ratio: 3 / 4;
  max-height: 100%;
  max-width: min(40vw, 480px);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.directory-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  background: transparent;
}

.internship-layout {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-top: clamp(28px, 3.5vw, 48px);
}
.internship-layout--cards-only {
  grid-template-columns: 1fr;
  max-width: min(720px, 100%);
  margin-inline: auto;
}
.internship-portrait {
  position: sticky;
  top: clamp(96px, 12vh, 128px);
  overflow: hidden;
  border-radius: var(--portfolio-radius-card);
  background: var(--portfolio-blue);
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 640px);
  box-shadow: 0 18px 48px rgba(8, 40, 90, .12);
}
.internship-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.internship-section .experience-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(16px, 2vw, 22px);
  padding-top: 0;
  min-height: 0;
}
.internship-section .experience,
.internship-section .experience--reverse {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(24px, 3vw, 36px);
  background: rgba(255, 255, 255, .48);
  border: none !important;
  border-radius: var(--portfolio-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(8, 48, 96, .07);
  outline: none;
  transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease;
}
.internship-section .experience:first-child {
  z-index: 2;
  transform: rotate(-.8deg);
  margin-right: 0;
}
.internship-section .experience:nth-child(2) {
  z-index: 1;
  transform: rotate(.9deg);
}
.internship-section .experience:hover,
.internship-section .experience:focus-within {
  z-index: 3;
  transform: rotate(0deg) translateY(-4px);
  background: rgba(255, 255, 255, .66);
  box-shadow:
    0 18px 40px rgba(8, 48, 96, .1),
    0 0 0 1px rgba(17, 106, 248, .2),
    0 0 12px rgba(17, 106, 248, .16),
    0 0 24px rgba(17, 106, 248, .07),
    inset 0 1px 0 rgba(255, 255, 255, .65);
}
@media (prefers-reduced-motion: reduce) {
  .internship-section .experience:hover,
  .internship-section .experience:focus-within {
    transform: none;
  }
}
.experience-list {
  display: grid;
  gap: clamp(48px, 4.5vw, 67px);
  padding-top: clamp(40px, 3.5vw, 67px);
}
.experience,
.experience--reverse {
  position: relative;
  display: grid;
  /* Figma Component 5: left copy ~40% / right media ~55% */
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: stretch;
  min-height: clamp(420px, 52vw, 821px);
  padding: clamp(28px, 4vw, 78px) clamp(24px, 4vw, 79px);
  background: #fff;
  border: 1px solid #b3b3b3 !important;
  border-radius: var(--portfolio-radius);
  box-shadow: none;
  outline: none;
}
.internship-section .experience-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  min-height: 0;
}
.internship-section .experience-copy .index-number {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid rgba(8, 112, 202, .16);
  border-radius: 999px;
  background: rgba(231, 243, 253, .92);
  color: var(--portfolio-blue);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.35;
}
.internship-section .experience-copy h3 {
  margin: 0;
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
}
.internship-section .experience-copy p,
.internship-section .experience-summary {
  margin: 0;
  max-width: none;
  color: #5a6472;
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .2px;
}

.experience--reverse { grid-template-columns: minmax(0, 1.35fr) minmax(0, .92fr); }
.experience--reverse .experience-copy { order: 2; }
.experience--reverse .experience-media { order: 1; }
.experience-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  padding: 24px 0 0;
}
.experience-copy .index-number {
  color: var(--portfolio-link);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .8px;
  line-height: 24px;
}
.experience-copy h3 {
  margin: 0;
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.4;
}
.experience-copy p,
.experience-copy li {
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: 18.7px;
  font-weight: 500;
  letter-spacing: .933px;
  line-height: 33.6px;
}
.experience-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.experience-copy li {
  position: relative;
  padding-left: 1.1em;
}
.experience-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portfolio-link);
}
.experience-media {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 280px;
  aspect-ratio: 879 / 552;
  padding: clamp(20px, 3vw, 42px);
  overflow: hidden;
  color: #fff;
  background: var(--portfolio-blue);
  border-radius: var(--portfolio-radius);
}

.experience-media::before,
.experience-media::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .34;
}

.experience-media::before { inset: 11% 14%; transform: rotate(-16deg); }
.experience-media::after { inset: 35% -6%; transform: rotate(13deg); }
.experience-media span {
  position: relative;
  z-index: 2;
  font-family: var(--font-en);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.02em;
}
.experience-media small {
  position: relative;
  z-index: 2;
  margin-top: 10px;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
}
.experience--reverse .experience-media { background: #dcecf8; color: var(--portfolio-blue); }

.projects-section {
  --project-pages: 3;
  --stage-inset: clamp(96px, 19.45svh, 233px);
  --stage-card-h: min(733px, calc(100svh - (var(--stage-inset) * 2)));
  position: relative;
  height: auto;
  min-height: 0;
  padding: 0 0 var(--stage-inset);
  color: #fff;
  background: var(--portfolio-blue);
  overflow: visible !important;
}

body.one-page .projects-stage {
  --stage-inset: clamp(96px, 19.45svh, 233px);
  --stage-card-h: min(733px, calc(100svh - (var(--stage-inset) * 2)));
  top: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: calc(var(--stage-card-h) + (var(--stage-inset) * 2));
  /* Figma 1200 stage: title + card share the same top inset (~233) */
  padding-top: var(--stage-inset) !important;
  padding-bottom: var(--stage-inset) !important;
  padding-left: var(--content-inset);
  padding-right: var(--content-inset);
  box-sizing: border-box;
  overflow: visible;
}

.project-brand-backdrop,
.projects-section .project-brand-backdrop,
.projects-heading,
.projects-section .section-topline,
.project-index__eyebrow,
.project-index__note,
.water-cut {
  display: none !important;
}

body.one-page .project-browser {
  flex: 0 0 auto;
  display: block;
  width: min(100%, var(--portfolio-max));
  max-width: none;
  margin: 0;
  padding: 0 !important;
  min-height: 0;
  height: var(--stage-card-h);
}

body.one-page .project-layout {
  display: grid;
  /* Figma left rail 657 / right 943 of 1600 */
  grid-template-columns: minmax(220px, 41fr) minmax(0, 59fr);
  align-items: start !important;
  align-content: start;
  width: 100%;
  height: var(--stage-card-h);
  gap: clamp(24px, 3vw, 48px);
  margin: 0;
  min-height: 0;
}

body.one-page .project-index {
  position: relative;
  top: auto;
  align-self: start !important;
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 0 !important;
  max-width: 420px;
  height: auto;
}

.project-index__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.project-index__title span { display: none; }
.project-index__kicker {
  margin: 0;
  color: #fff;
  font-family: var(--font-en);
  font-size: 18.7px;
  font-weight: 300;
  letter-spacing: .933px;
  line-height: 28px;
}

/* Project pills: Chinese-only single line (content preference); Figma width 327. */
.project-selectors {
  position: relative;
  display: grid !important;
  gap: 14px !important;
  width: 100%;
  max-width: 420px;
  margin-top: clamp(36px, 5.5svh, 64px);
}
.project-selectors::before,
.project-selectors::after {
  content: none !important;
  display: none !important;
}
.project-selectors button {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  width: 100%;
  min-height: 74px;
  min-width: 0;
  padding: 12px 22px 12px 18px !important;
  color: #fff;
  text-align: left;
  white-space: normal;
  border: 1.5px solid rgba(255, 255, 255, .92) !important;
  border-radius: 9999px !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, .92) !important;
  background: transparent !important;
  font-family: var(--font-jp);
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.project-selectors__no {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
}
.project-selectors__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.project-selectors__name {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}
.project-selectors__sub {
  max-width: 100%;
  overflow: visible;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.35;
  white-space: normal;
  text-overflow: ellipsis;
  opacity: .9;
}
.project-selectors button[aria-pressed="true"] {
  color: var(--portfolio-blue) !important;
  background: #fff !important;
  border-color: #fff !important;
}
.project-selectors button[aria-pressed="true"] .project-selectors__sub {
  opacity: .72;
}

/* Right card: ETOHA SERVICE — full-size card swings up from below the frame. */
body.one-page .project-case-list {
  position: relative;
  align-self: start !important;
  width: 100%;
  height: var(--stage-card-h) !important;
  max-width: none;
  margin: 0;
  gap: 0;
  perspective: 1400px;
  transform-style: flat;
  isolation: isolate;
  overflow: visible;
}
body.one-page .project-entry {
  --card-motion: 1.05s;
  --card-ease: cubic-bezier(.16, 1, .3, 1);
  --card-enter-x: 12%;
  --card-enter-y: 108%;
  --card-enter-rot: 9deg;
  --project-copy-band: clamp(108px, 24%, 152px);
  position: absolute !important;
  inset: 0;
  z-index: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  min-height: 0;
  height: 100%;
  padding: 0 !important;
  overflow: hidden;
  color: var(--portfolio-ink);
  background: #fff;
  border: 1px solid #b3b3b3;
  border-radius: var(--portfolio-radius-card);
  box-shadow: 0 18px 42px rgba(8, 40, 90, .12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: 100% 100%;
  transform: translate3d(var(--card-enter-x), var(--card-enter-y), 0)
    rotate(var(--card-enter-rot));
  backface-visibility: hidden;
  transition:
    transform var(--card-motion) var(--card-ease),
    opacity calc(var(--card-motion) * .92) var(--card-ease),
    visibility 0s linear var(--card-motion),
    box-shadow .45s ease;
  will-change: transform, opacity;
}
body.one-page .project-entry.is-current {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotate(0deg);
  box-shadow: 0 22px 48px rgba(8, 40, 90, .16);
  transition-delay: 0s, 0s, 0s, 0s;
}
body.one-page .project-entry.is-leaving {
  z-index: 2;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform-origin: 18% 8%;
  transform: translate3d(-3%, -96%, 0) rotate(-3.5deg);
  transition-duration: calc(var(--card-motion) * .78);
  transition-delay: 0s, 0s, 0s, 0s;
}
body.one-page .project-entry.is-entering:not(.is-current) {
  z-index: 4;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform-origin: 100% 100%;
  transform: translate3d(var(--card-enter-x), var(--card-enter-y), 0)
    rotate(var(--card-enter-rot));
  transition-delay: 0s, 0s, 0s, 0s;
}
body.one-page .project-entry.is-entering.is-current {
  z-index: 4;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform-origin: 100% 100%;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition-delay: 0s, 0s, 0s, 0s;
}
/* Reverse waterfall: current card slides straight up; the previous card rises smoothly from below. */
body.one-page [data-projects-root][data-direction="previous"] {
  --card-motion-reverse: .52s;
  --card-ease-reverse: cubic-bezier(.22, .92, .28, 1);
}
body.one-page [data-projects-root][data-direction="previous"] .project-entry.is-leaving {
  z-index: 5;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform-origin: center center;
  transform: translate3d(0, -108%, 0) rotate(0deg);
  transition-duration: var(--card-motion-reverse);
  transition-timing-function: var(--card-ease-reverse);
  transition-delay: 0s, 0s, 0s, 0s;
}
body.one-page [data-projects-root][data-direction="previous"] .project-entry.is-entering:not(.is-current) {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform-origin: center center;
  transform: translate3d(0, 108%, 0) rotate(0deg);
  transition: none;
}
body.one-page [data-projects-root][data-direction="previous"] .project-entry.is-entering.is-current {
  z-index: 3;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform-origin: center center;
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition:
    transform var(--card-motion-reverse) var(--card-ease-reverse),
    opacity var(--card-motion-reverse) linear,
    visibility 0s linear,
    box-shadow .3s ease;
  transition-delay: 0s, 0s, 0s, 0s;
}
body.one-page .project-entry:hover { box-shadow: 0 22px 48px rgba(8, 40, 90, .16); }
body.one-page [data-projects-root].is-project-transitioning .project-entry:hover {
  box-shadow: 0 18px 42px rgba(8, 40, 90, .12);
}
.project-art {
  grid-row: 1;
  min-height: 0;
  height: 100%;
  margin: 12% 12% 0;
  border-radius: 0;
  align-self: center;
}
.project-entry__number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 117px;
  height: 117px;
  margin: 0;
  color: #fff;
  background: #1a1a1a;
  border-radius: 0 0 var(--portfolio-radius-card) 0;
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 24px;
}
.project-entry__copy {
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  padding: 24px clamp(28px, 4vw, 93px) clamp(28px, 4vw, 76px);
  align-self: end;
}
.project-entry__title {
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: clamp(22px, 2.2vw, 34.7px);
  font-weight: 700;
  letter-spacing: 1.73px;
  line-height: 1.35;
}
.project-entry__summary {
  flex: 1 1 220px;
  max-width: 36ch;
  margin: 0;
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .4px;
  line-height: 1.6;
}
.project-entry__open {
  margin-top: 0;
  color: var(--portfolio-link);
  font-family: var(--font-jp);
  font-size: 18.7px;
  font-weight: 500;
  letter-spacing: 1.87px;
  line-height: 18.67px;
  white-space: nowrap;
}
.project-entry__kind,
.project-entry__number {
  display: none !important;
}
.project-entry__date {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 40px);
  color: var(--portfolio-ink);
  font-family: var(--font-en);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}
.project-entry__lead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(72%, 520px);
}
.project-entry__lead .project-entry__summary {
  flex: none;
  max-width: 42ch;
  color: #5a6472;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .2px;
}
.project-entry .project-entry__copy {
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.project-entry--corner-title .project-art {
  grid-row: 1;
  margin: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.project-entry--corner-title .project-entry__copy {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  grid-row: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(24px, 4vw, 48px) clamp(22px, 3.5vw, 40px);
}
.project-entry--corner-title .project-entry__lead {
  max-width: min(72%, 520px);
}
body.one-page .project-entry--minimal {
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
}
.project-entry--minimal .project-art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding:
    clamp(28px, 4vw, 44px)
    clamp(14px, 2.5vw, 28px)
    clamp(2px, 0.6vw, 6px);
  height: 100%;
  min-height: 0;
  max-height: none;
  background: transparent !important;
  overflow: visible;
  box-sizing: border-box;
}
.project-entry--minimal .project-art::before,
.project-entry--minimal .project-art::after {
  content: none !important;
  display: none !important;
}
.project-entry--minimal .project-art__device-group {
  position: relative;
  flex: 0 1 auto;
  --device-max-h: clamp(200px, calc(var(--stage-card-h, 480px) * 0.46), 320px);
  width: min(88%, calc(var(--device-max-h) * 1.55), 520px);
  height: auto;
  max-height: min(100%, var(--device-max-h));
  aspect-ratio: 1.55 / 1;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
  transform: none;
}
.project-entry--minimal .project-art__laptop,
.project-entry--minimal .project-art__phone {
  position: absolute;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}
.project-entry--minimal .project-art__laptop {
  left: 0;
  bottom: 0;
  width: 88%;
  max-width: 88%;
  max-height: 100%;
}
.project-entry--minimal .project-art__phone {
  left: 56%;
  bottom: 0;
  width: 26%;
  max-width: 28%;
  max-height: 70%;
}
body.one-page .project-entry .project-art {
  margin: 0;
  overflow: visible;
}
body.one-page .project-entry--minimal .project-art,
body.one-page .project-entry--minimal .project-art--devices {
  overflow: visible !important;
}
body.one-page .project-entry--corner-title .project-art--cutout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 28px) clamp(10px, 1.5vw, 16px);
  overflow: hidden;
  box-sizing: border-box;
}
body.one-page .project-entry--corner-title .project-art--phones.project-art--cutout {
  padding: clamp(28px, 4.5vw, 44px) clamp(14px, 2.5vw, 24px) clamp(10px, 1.5vw, 16px);
}
body.one-page .project-entry--corner-title .project-art--photo.project-art--cutout {
  padding: clamp(28px, 4.5vw, 48px) clamp(14px, 2.5vw, 28px) clamp(8px, 1.2vw, 14px);
}
body.one-page .project-entry--corner-title .project-art__phone-group {
  width: min(100%, 420px);
  max-height: none;
  transform: none;
  transform-origin: center center;
}
body.one-page .project-entry--corner-title .project-art--cutout .project-art__shot {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  max-width: min(88%, 480px);
  max-height: min(100%, clamp(200px, 30vh, 320px));
  margin: 0 auto;
  object-fit: contain;
  transform: none;
  transform-origin: center center;
  filter: none;
}
body.one-page .project-entry--corner-title .project-art--photo.project-art--cutout .project-art__shot {
  max-width: min(84%, 440px);
  max-height: min(100%, clamp(180px, 28vh, 300px));
}
body.one-page .project-art--sales {
  display: grid;
  place-items: center;
  padding: 14% 12% 22%;
  transform: scale(0.8);
  transform-origin: center 42%;
}
.project-entry--minimal .project-entry__copy {
  padding-top: 4px;
  padding-bottom: clamp(18px, 3vw, 40px);
}

@media (prefers-reduced-motion: reduce) {
  body.one-page .project-entry {
    transition: opacity .18s ease;
    transform: none !important;
  }
  body.one-page .project-entry.is-current,
  body.one-page .project-entry.is-leaving,
  body.one-page .project-entry.is-entering { transform: none !important; }
}


.about-section { padding: 0; }
.about-section--profile-board {
  position: relative;
  padding: clamp(72px, 8vw, 112px) 0 clamp(64px, 7vw, 96px);
  background: var(--portfolio-paper);
}
.about-section--profile-board .section-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-board {
  width: 100%;
  padding-top: clamp(28px, 4vw, 48px);
}
.about-board__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.about-board__col--right {
  border-left: 1px solid rgba(8, 112, 202, .14);
  padding-left: clamp(28px, 4vw, 56px);
}
.about-block + .about-block {
  margin-top: clamp(36px, 5vw, 56px);
}
.about-block__head {
  display: flex;
  align-items: baseline;
  gap: clamp(10px, 1.4vw, 18px);
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(8, 112, 202, .14);
}
.about-block__num {
  color: rgba(8, 112, 202, .18);
  font-family: var(--font-en);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.02em;
}
.about-block__title {
  margin: 0;
  color: var(--portfolio-blue);
  font-family: var(--font-jp);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
}
.about-edu-card {
  padding: clamp(18px, 2.4vw, 24px) clamp(18px, 2.4vw, 24px) clamp(18px, 2.4vw, 24px) clamp(20px, 2.6vw, 28px);
  border: 1px solid rgba(8, 112, 202, .12);
  border-left: 4px solid var(--portfolio-blue);
  border-radius: var(--portfolio-radius);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(8, 48, 96, .07);
}
.about-edu-card__date {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(8, 112, 202, .16);
  border-radius: 999px;
  background: rgba(231, 243, 253, .9);
  color: var(--portfolio-blue);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
}
.about-edu-card__school {
  margin: 0 0 8px;
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}
.about-edu-card__meta {
  margin: 0;
  color: var(--portfolio-dark-gray);
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 500;
  line-height: 1.6;
}
.about-timeline {
  list-style: none;
  margin: 0;
  padding: 4px 0 0 22px;
  border-left: 2px solid rgba(8, 112, 202, .28);
}
.about-timeline li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 18px;
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.55;
}
.about-timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--portfolio-link);
  box-shadow: 0 0 0 3px rgba(17, 106, 248, .14);
  transform: translateY(-50%);
}
.about-skill-stack {
  display: grid;
  gap: 14px;
}
.about-skill-card {
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(8, 112, 202, .12);
  border-radius: var(--portfolio-radius);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(8, 48, 96, .07);
}
.about-skill-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.about-skill-card__head h4 {
  margin: 0;
  color: var(--portfolio-blue);
  font-family: var(--font-jp);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
}
.about-skill-card__gems {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.about-skill-card__gems i {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--portfolio-link);
  transform: rotate(45deg);
}
.about-skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-skill-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(8, 112, 202, .16);
  border-radius: 999px;
  background: rgba(231, 243, 253, .72);
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.ocean-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  background: var(--portfolio-blue, #086be6);
  color: #fff;
  transition: opacity .45s ease;
}
.ocean-boot-screen__line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: clamp(2.4rem, 5vw, 3.4rem);
}
.ocean-boot-screen__word {
  font-family: "Rammetto One", Bahnschrift, sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: .08em;
  text-transform: lowercase;
  opacity: .92;
  min-width: 0;
}
.ocean-boot-screen__cursor {
  flex: 0 0 auto;
  width: 4px;
  height: clamp(1.75rem, 4.2vw, 2.75rem);
  margin-top: .08em;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .45);
  animation: boot-cursor-blink .85s step-end infinite;
}
.ocean-boot-screen.is-typing .ocean-boot-screen__cursor,
.ocean-boot-screen.is-typing-complete .ocean-boot-screen__cursor {
  animation: boot-cursor-blink .85s step-end infinite;
}
html[data-ocean-boot="ready"] .ocean-boot-screen__cursor {
  opacity: 0;
  animation: none;
}
@keyframes boot-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.contact-card:not(.is-open) {
  visibility: hidden;
  pointer-events: none;
}
.about-portrait { padding: clamp(72px, 10vw, 144px) 0 clamp(92px, 11vw, 168px); }
.portrait-slot { background: var(--portfolio-blue); }
.sticker-band {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 0;
  margin: 0;
  padding: clamp(36px, 5vw, 64px) 0 clamp(12px, 2vw, 20px);
  overflow: hidden;
  color: var(--portfolio-ink);
  background: var(--portfolio-paper);
  border-top: 1px solid rgba(8, 112, 202, .12);
}
.sticker-band__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, .75fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  margin: 0 auto clamp(8px, 1.2vw, 12px);
}
.sticker-band__head {
  margin: 0;
}
.sticker-band__copy {
  max-width: 46rem;
  margin: 14px 0 0;
  color: var(--portfolio-ink);
  font-family: var(--font-jp);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 500;
  letter-spacing: .4px;
  line-height: 1.65;
}
.sticker-band__copy--note {
  margin-top: 8px;
}
.sticker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.sticker-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 16px;
  border: 1px solid rgba(8, 112, 202, .28);
  border-radius: 999px;
  color: var(--portfolio-blue);
  background: #fff;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
}
.sticker-tag.is-accent {
  border-color: var(--portfolio-blue);
  color: #fff;
  background: var(--portfolio-blue);
}
.sticker-tag__cue {
  position: static !important;
  margin-left: 6px;
  font-size: 12px;
  line-height: 1;
  opacity: .8;
}
.sticker-tag:hover .sticker-tag__cue,
.sticker-tag:focus-within .sticker-tag__cue {
  opacity: 1;
}
.sticker-preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(160px, 20vw, 240px);
  overflow: visible;
  pointer-events: none;
}
.sticker-preview-stage__image {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 8px)) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
  background: transparent;
  box-shadow: none;
}
.sticker-band:has(.sticker-tag[data-preview="twitch"]:hover) .sticker-preview-stage__image[data-preview-image="twitch"],
.sticker-band:has(.sticker-tag[data-preview="twitch"]:focus-within) .sticker-preview-stage__image[data-preview-image="twitch"],
.sticker-band:has(.sticker-tag[data-preview="wenchuang"]:hover) .sticker-preview-stage__image[data-preview-image="wenchuang"],
.sticker-band:has(.sticker-tag[data-preview="wenchuang"]:focus-within) .sticker-preview-stage__image[data-preview-image="wenchuang"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.sticker-marquee {
  width: 100%;
  min-height: clamp(72px, 7vw, 104px);
  margin-top: clamp(12px, 2vw, 20px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.sticker-marquee [data-sticker-track] {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: sticker-marquee 48s linear infinite;
}
.sticker-band.has-stickers .sticker-marquee {
  opacity: 1;
}
.sticker-band:not(.has-stickers) .sticker-marquee {
  opacity: 0;
}
.ocean-sticker-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.ocean-sticker {
  display: block;
  width: clamp(72px, 7vw, 104px);
  height: clamp(72px, 7vw, 104px);
  object-fit: contain;
  flex: 0 0 auto;
}
.sticker-band.is-paused .sticker-marquee [data-sticker-track] {
  animation-play-state: paused;
}
@keyframes sticker-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.sticker-band.is-empty {
  min-height: 0;
}
.sticker-band .sticker-empty-copy {
  width: min(calc(100% - 48px), 760px);
  margin: 8px auto 20px;
}
.contact-section .sticker-band {
  z-index: 2;
  display: block;
  grid-template-columns: none;
  background: transparent;
  border-top: 0;
  color: #fff;
  padding: 0;
  overflow: visible;
}
.contact-section .section-title {
  color: #fff;
}
.contact-section .section-kicker {
  color: rgba(255, 255, 255, .78);
}
.contact-section .sticker-band__copy {
  color: #fff;
}
.contact-section .sticker-band__copy--note {
  opacity: .88;
}
.contact-section .sticker-tag {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: transparent;
}
.contact-section .sticker-tag.is-accent {
  border-color: #fff;
  color: var(--portfolio-blue);
  background: #fff;
}
.contact-section .sticker-tag:hover,
.contact-section .sticker-tag:focus-within {
  border-color: #fff;
  background: rgba(255, 255, 255, .14);
}
.contact-section .sticker-tag.is-accent:hover,
.contact-section .sticker-tag.is-accent:focus-within {
  background: #fff;
}
.contact-section .sticker-preview-stage__image {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.contact-section .sticker-band .sticker-empty-copy {
  color: rgba(255, 255, 255, .72);
}
.contact-section .ocean-sticker {
  width: clamp(72px, 7vw, 104px);
  height: clamp(72px, 7vw, 104px);
  background: transparent;
}
.contact-section .ocean-sticker-set {
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding-right: clamp(1rem, 2.5vw, 1.75rem);
}
.contact-section .sticker-marquee {
  margin-top: clamp(8px, 1.2vw, 14px);
}
.contact-section {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: clamp(36px, 4.5vw, 56px) 0 clamp(20px, 2.5vw, 32px);
  color: #fff;
  background: var(--portfolio-blue);
  overflow: visible;
}
.contact-section .section-title {
  font-size: clamp(36px, 3.8vw, 52px);
}
.contact-section .sticker-band__copy {
  margin-top: 12px;
}
.contact-section .sticker-tags {
  margin-top: 14px;
}
.contact-inner { position: relative; z-index: 2; max-width: 720px; }
.contact-inner h2 { font-family: "Zen Kaku Gothic New", "Noto Sans SC", sans-serif; font-weight: 700; font-size: clamp(56px, 8vw, 138px); line-height: .92; }
.contact-inner .eyebrow { color: rgba(255,255,255,.8); }
.contact-inner a { display: inline-flex; margin-top: 42px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.7); font-size: clamp(16px, 1.6vw, 24px); }
.contact-signature { display: block; margin-top: 110px; font-size: 11px; letter-spacing: .16em; opacity: .75; }
.contact-character { position: absolute; left: 50%; top: 12px; z-index: 3; display: grid; place-items: center; width: 72px; height: 72px; transform: translateX(-50%); color: var(--portfolio-blue); border-radius: 50%; background: #fff; font-size: 30px; }


@keyframes portfolio-orbit { from { transform: translate(-2%, 1%) rotate(-2deg) scale(1); } to { transform: translate(2%, -2%) rotate(2deg) scale(1.05); } }
@keyframes portfolio-sheen { from { transform: translateX(-6%) rotate(-2deg); opacity: .35; } to { transform: translateX(6%) rotate(2deg); opacity: .75; } }
@keyframes portfolio-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* Footer removed from home; keep any leftover markup hidden. */
body.one-page .site-footer { display: none !important; }

@media (min-width: 992px) {
  .projects-section {
    min-height: calc(var(--project-pages) * 100svh);
  }
  body.one-page .projects-stage {
    position: sticky !important;
    top: 0;
    z-index: 2;
  }
}

/* Stack project rail above card below desktop; side-by-side crushes pills into dots. */
@media (max-width: 991px) {
  .projects-section {
    height: auto !important;
    min-height: 0 !important;
  }
  body.one-page .projects-stage {
    --stage-inset: clamp(72px, 10vw, 96px);
    --stage-card-h: min(68svh, 520px);
    position: relative !important;
    height: auto;
    min-height: 0;
    padding: clamp(72px, 10vw, 96px) var(--content-inset) clamp(36px, 6vw, 48px) !important;
    overflow: visible;
  }
  body.one-page .project-browser,
  body.one-page .project-layout {
    height: auto;
  }
  body.one-page .project-browser {
    width: min(100%, var(--portfolio-max));
  }
  body.one-page .project-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 0;
  }
  body.one-page .project-index {
    position: static;
    padding-bottom: 0;
    width: 100%;
    gap: 12px;
    max-width: none;
  }
  .project-index__title { font-size: clamp(36px, 10vw, 48px); }
  .project-selectors {
    display: grid;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    gap: 10px;
  }
  .project-selectors::before { display: none; }
  .project-selectors button {
    min-height: 56px;
    padding: 10px 16px 10px 14px;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .project-selectors__copy {
    display: flex !important;
    min-width: 0;
  }
  body.one-page .project-case-list {
    height: var(--stage-card-h) !important;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .project-entry {
    grid-template-columns: 1fr !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .project-entry--minimal .project-art {
    margin: 0;
    padding: clamp(18px, 3.5vw, 26px) 12px 2px;
    max-height: none;
    overflow: visible;
  }
  .project-entry--minimal .project-art__device-group {
    --device-max-h: clamp(190px, calc(var(--stage-card-h, 520px) * 0.44), 280px);
    width: min(92%, calc(var(--device-max-h) * 1.55), 440px);
    max-height: min(100%, var(--device-max-h));
    min-height: 0;
  }
  .project-entry--minimal .project-art__phone {
    left: 54%;
    width: 28%;
    max-height: 68%;
  }
  body.one-page .project-entry--corner-title .project-art--cutout {
    padding: clamp(18px, 3.5vw, 28px) 12px 8px;
    overflow: hidden;
  }
  body.one-page .project-entry--corner-title .project-art--cutout .project-art__shot {
    max-width: min(94%, 380px);
    max-height: clamp(168px, 40vw, 250px);
  }
  body.one-page .project-entry--corner-title .project-art--photo.project-art--cutout .project-art__shot {
    max-width: min(92%, 360px);
    max-height: clamp(156px, 38vw, 230px);
  }
  .project-entry--corner-title .project-entry__copy {
    padding: 12px 18px 20px;
  }
  .project-entry--corner-title .project-entry__lead {
    max-width: 100%;
  }
  .project-entry__copy {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px 22px;
  }
  .project-entry__title { font-size: 20px; letter-spacing: 1px; }
  .project-entry__summary { max-width: none; font-size: 14px; }
}

@media (max-width: 760px) {
  body.one-page .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    background: rgba(247, 247, 247, .92);
    backdrop-filter: blur(10px);
  }
  body.one-page .site-header[data-on-dark="true"] {
    background: rgba(8, 112, 202, .88);
  }
  body.one-page .menu-toggle { display: none !important; }
  body.one-page .wordmark {
    font-size: 12px;
    letter-spacing: .12em;
  }
  /* Always-open compact pill nav — no hamburger. */
  body.one-page .site-header nav {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    max-width: min(78vw, 340px);
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-height: 40px;
    padding: 4px 4px 4px 10px;
    border: 1px solid rgba(8, 112, 202, .2);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 24px rgba(8, 107, 230, .12);
  }
  body.one-page .site-header[data-on-dark="true"] nav {
    border-color: rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
  }
  body.one-page .site-header nav a {
    justify-content: center;
    width: auto;
    flex: 0 0 auto;
    padding: 7px 8px 5px;
    font-size: 10px;
    letter-spacing: .4px;
    line-height: 1.2;
    white-space: nowrap;
  }
  body.one-page .site-header nav a.nav-cta {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 10px;
    gap: 4px;
  }
  body.one-page .site-header nav a.nav-cta span {
    width: auto;
    height: auto;
  }
  body.one-page .hero {
    height: 100svh;
    min-height: 640px;
    aspect-ratio: auto;
    padding: 0 16px;
  }
  .hero-play {
    right: 16px;
    bottom: max(20px, 3.5vh);
    min-height: 36px;
    padding: 6px 12px 6px 10px;
  }
  .sticker-band__layout {
    grid-template-columns: 1fr;
  }
  .sticker-preview-stage {
    min-height: 200px;
  }
  .portfolio-title {
    left: 16px;
    right: 16px;
    top: 46%;
    bottom: auto;
    width: auto;
    font-size: clamp(36px, 11vw, 72px);
    letter-spacing: 0;
    transform: translateY(-50%);
  }
  .portfolio-title.is-letter-collage { left: 10px; right: 10px; }
  .letter-image[data-letter-index] { width: var(--letter-size); height: var(--letter-size); }
  .hero-cta { left: 16px; bottom: max(20px, 3.5vh); width: 148px; }
  .hero-cta__text { font-size: 13px; letter-spacing: .8px; }
  :root {
    --content-inset: 14px;
    --section-width: calc(100% - (var(--content-inset) * 2));
  }
  .section-wrap { width: var(--section-width); }
  .section-title { font-size: clamp(36px, 10vw, 48px); }
  .section-kicker,
  .project-index__kicker { font-size: 16px; letter-spacing: .8px; }
  .directory-section {
    height: auto;
    min-height: 0;
    padding: 88px 14px 28px;
  }
  .directory-shell {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    gap: 24px;
  }
  .directory-copy {
    width: 100%;
    height: auto;
  }
  .directory-photo {
    order: -1;
    width: min(100%, 320px);
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 48vh;
    max-width: none;
    align-self: start;
    background: transparent;
  }
  .directory-name { font-size: clamp(36px, 12vw, 48px); }
  .directory-nav__item strong { font-size: 25px; }
  .directory-links { flex-wrap: nowrap; }
  .internship-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }
  .internship-portrait {
    position: relative;
    top: auto;
    max-height: none;
    aspect-ratio: 4 / 3;
    max-width: 320px;
  }
  .internship-section .experience-list {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: 0;
    padding-top: 0;
  }
  .internship-section .experience,
  .internship-section .experience--reverse {
    flex: 1 1 auto;
    padding: 16px;
    margin: 0;
    transform: none;
    background: rgba(255, 255, 255, .52);
    box-shadow: 0 8px 24px rgba(8, 48, 96, .06);
  }
  .internship-section .experience:first-child { margin-right: 0; }
  .internship-section .experience:nth-child(2) { transform: none; }
  .about-section--profile-board { padding: 56px 0 48px; }
  .about-board { padding-top: 24px; }
  .about-board__grid { grid-template-columns: 1fr; gap: 40px; }
  .about-board__col--right {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(8, 112, 202, .14);
    padding-top: 36px;
  }
  .internship-section .experience:hover,
  .internship-section .experience:focus-within {
    transform: translateY(-2px);
    box-shadow:
      0 12px 28px rgba(8, 48, 96, .08),
      0 0 0 1px rgba(17, 106, 248, .18),
      0 0 10px rgba(17, 106, 248, .14),
      inset 0 1px 0 rgba(255, 255, 255, .62);
  }
  .internship-section .experience-copy h3 { font-size: 20px; }
  .internship-section .experience-copy p { font-size: 14px; line-height: 1.6; }
  .experience, .experience--reverse {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    padding: 20px;
    border: 1px solid #b3b3b3 !important;
  }
  .experience--reverse .experience-copy, .experience--reverse .experience-media { order: initial; }
  .experience-copy { min-height: 0; padding: 8px 0 0; }
  .experience-copy h3 { font-size: 24px; letter-spacing: 1px; }
  .experience-copy p,
  .experience-copy li { font-size: 15px; line-height: 1.7; letter-spacing: .3px; }
  .experience-media { min-height: 200px; aspect-ratio: 1.35; }
  .project-entry__number {
    width: 64px;
    height: 64px;
    font-size: 18px;
  }
  .project-art { min-height: 140px; margin: 10% 8% 0; }
  .about-portrait { grid-template-columns: 1fr; gap: 42px; }
  .portrait-slot { aspect-ratio: 1.1; }
  .contact-section { min-height: 0; padding: 48px 0 56px; }
  .contact-section .ocean-sticker { width: 88px; height: 88px; }
  .contact-character { top: 34px; width: 54px; height: 54px; font-size: 22px; }
  .contact-inner h2 { font-size: clamp(56px, 16vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cta, body.one-page .hero::before, body.one-page .hero::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
