:root {
  --wine: #4b0f24;
  --ribbon: #d9232e;
  --pink: #ff9dbf;
  --blush: #ffd3e2;
  --milk: #fff8f5;
  --gold: #f0bd55;
  --head: "Jua", "Apple SD Gothic Neo", sans-serif;
  --head-weight: 400;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { background: var(--wine); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wine);
  background: var(--milk);
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  word-break: keep-all;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h2, h3, nav, .line, .dm { font-family: var(--head); font-weight: var(--head-weight); }
html[lang="ja"] {
  --head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --head-weight: 900;
}
html[lang="ja"] body {
  font-family: "Zen Maru Gothic", "Hiragino Sans", sans-serif;
  font-weight: 500;
  word-break: normal;
  line-break: strict;
}
html[lang="en"] body { word-break: normal; }
h2, h3, .line { text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.18; }
h3 { font-size: 1.5rem; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--ribbon); outline-offset: 3px; }

/* Hero: the mascot lying on her wordmark is the whole idea. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px var(--gutter) clamp(36px, 6vh, 72px);
  text-align: center;
  background-color: var(--pink);
}
nav {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 22px;
  font-size: 1.125rem;
}
nav a { text-decoration: none; }
nav a:hover { color: var(--ribbon); }
nav { align-items: center; }
.languages {
  display: flex;
  border: 2px solid var(--wine);
  border-radius: 999px;
  overflow: hidden;
  background: var(--milk);
}
.languages button {
  padding: 2px 11px;
  border: 0;
  background: transparent;
  color: var(--wine);
  font: inherit;
  font-size: .9375rem;
  cursor: pointer;
}
.languages button:hover { background: var(--blush); }
.languages button[aria-pressed="true"] { background: var(--wine); color: var(--milk); }
.languages button:focus-visible { outline-offset: -4px; }

.mark { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; align-items: center; }
h1 { width: 100%; }
h1 img {
  width: min(720px, 100%, 62svh * 1.43);
  height: auto;
  margin: 0 auto;
  animation: flop .7s cubic-bezier(.2, 1.5, .4, 1) both;
}
@keyframes flop {
  from { transform: translateY(-28px) scale(.94); }
  to { transform: none; }
}
.line { margin-top: 18px; font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.22; }
.sub { margin-top: 14px; max-width: 32em; }

.sticker {
  position: absolute;
  z-index: 1;
  width: clamp(150px, 15.5vw, 240px);
  border: 7px solid var(--milk);
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--wine), 9px 11px 0 3px var(--wine);
  overflow: hidden;
  transition: transform .18s;
}
.sticker img { width: 100%; height: auto; }
.sticker.left { left: clamp(16px, 5vw, 92px); top: 17%; transform: rotate(-8deg); }
.sticker.right { right: clamp(16px, 5vw, 92px); top: 30%; transform: rotate(7deg); }
.sticker.left:hover { transform: rotate(-4deg) scale(1.03); }
.sticker.right:hover { transform: rotate(3deg) scale(1.03); }

/* Motion: the paw pattern drifts on its own layer so it never repaints the hero. */
.hero::before {
  content: "";
  position: absolute;
  inset: -120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ffb4cf'%3E%3Cellipse cx='30' cy='40' rx='11' ry='9'/%3E%3Ccircle cx='15' cy='27' r='4.5'/%3E%3Ccircle cx='25' cy='20' r='4.5'/%3E%3Ccircle cx='36' cy='20' r='4.5'/%3E%3Ccircle cx='46' cy='27' r='4.5'/%3E%3Cellipse cx='90' cy='100' rx='11' ry='9'/%3E%3Ccircle cx='75' cy='87' r='4.5'/%3E%3Ccircle cx='85' cy='80' r='4.5'/%3E%3Ccircle cx='96' cy='80' r='4.5'/%3E%3Ccircle cx='106' cy='87' r='4.5'/%3E%3C/g%3E%3C/svg%3E");
  animation: paw-drift 48s linear infinite;
}
@keyframes paw-drift {
  to { transform: translate(120px, -120px); }
}
.sticker {
  translate: calc(var(--px, 0) * var(--depth)) calc(var(--py, 0) * var(--depth));
  transition: transform .18s, translate .35s ease-out;
}
.sticker.left { --depth: 22px; }
.sticker.right { --depth: -30px; }
.paw-stamp {
  position: fixed;
  z-index: 20;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  pointer-events: none;
  animation: stamp .75s ease-out forwards;
}
@keyframes stamp {
  0% { transform: rotate(var(--tilt)) scale(.3); opacity: 0; }
  18% { transform: rotate(var(--tilt)) scale(1.15); opacity: 1; }
  30% { transform: rotate(var(--tilt)) scale(1); opacity: 1; }
  65% { transform: rotate(var(--tilt)) scale(1); opacity: 1; }
  100% { transform: rotate(var(--tilt)) scale(1); opacity: 0; }
}
.strip article { position: relative; }
.hint {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--milk);
  color: var(--wine);
  font-size: .875rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.previewing .hint { opacity: 1; }
.previewing video { cursor: pointer; }

/* About */
.about {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  background: var(--milk);
}
.about-head img {
  width: clamp(136px, 15vw, 208px);
  height: auto;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--wine), 6px 8px 0 3px var(--wine);
}
.about-head h2 { margin-top: 18px; color: var(--wine); }
.about-role { margin-top: 8px; font-size: 1.1875rem; }
.about-years { margin-top: 2px; color: var(--ribbon); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.links a {
  display: block;
  padding: 5px 15px;
  border: 2px solid var(--wine);
  border-radius: 999px;
  font-family: var(--head);
  font-weight: var(--head-weight);
  text-decoration: none;
}
.links a:hover { background: var(--pink); }
.statement {
  max-width: 24em;
  font-family: var(--head);
  font-weight: var(--head-weight);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.32;
}
.about-body > p:not(.statement) { margin-top: 16px; max-width: 38em; }
.about-body h3 { margin-top: 28px; }
.done { margin-top: 10px; max-width: 42em; }
.done li { padding: 8px 0; border-top: 1px solid rgb(75 15 36 / .2); }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin: 30px 0 0; }
.skills dt { font-family: var(--head); font-weight: var(--head-weight); font-size: 1.1875rem; color: var(--ribbon); }
.skills dd { margin: 2px 0 0; }

/* Works: columns at 9:9:16 make all three films the same height. */
.works { padding: clamp(56px, 8vw, 104px) var(--gutter); background: var(--wine); color: var(--milk); }
.works h2 { color: var(--pink); }
.strip {
  display: grid;
  grid-template-columns: 9fr 9fr 16fr;
  gap: clamp(18px, 2.4vw, 36px);
  margin-top: clamp(24px, 3vw, 40px);
}
.strip article { min-width: 0; }
.strip video {
  width: 100%;
  height: auto;
  border: 5px solid var(--milk);
  border-radius: 12px;
  background: #000;
}
.strip article:nth-child(-n+2) video { aspect-ratio: 9 / 16; }
.strip article:nth-child(3) video { aspect-ratio: 16 / 9; }
.strip article:nth-child(3) { display: grid; align-content: start; }
.strip h3 { margin-top: 16px; }
.meta { margin-top: 2px; font-size: .9375rem; color: var(--gold); }
.meta + p { margin-top: 8px; max-width: 30em; }

/* Tools */
.tools { padding: clamp(56px, 8vw, 104px) var(--gutter); background: var(--blush); }
.tools-head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 4vw, 64px); align-items: end; }
.board {
  margin-top: clamp(28px, 4vw, 48px);
  border: 3px solid var(--wine);
  border-radius: 14px;
  box-shadow: 10px 12px 0 var(--wine);
  overflow: hidden;
}
.board img { width: 100%; height: auto; }
.steps {
  counter-reset: step;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 34px;
  font-family: var(--head);
  font-size: 1.125rem;
}
.steps li {
  counter-increment: step;
  padding: 4px 16px 4px 6px;
  border-radius: 999px;
  background: var(--milk);
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--wine);
  color: var(--milk);
  font-size: .85em;
}
.steps li span { display: inline; }
.points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 40px;
}
.points h3 { font-size: 1.3125rem; }
.points p { margin-top: 6px; }

/* Hire */
.hire { padding: clamp(56px, 8vw, 104px) var(--gutter); background: var(--milk); }
.jobs { display: grid; grid-template-columns: 5fr 4fr 4fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(24px, 3vw, 40px); }
.jobs li {
  padding: clamp(24px, 3vw, 40px);
  border: 3px solid var(--wine);
  border-radius: 18px;
}
.jobs .pink { background: var(--pink); }
.jobs .milk { background: #fff; }
.jobs .gold { background: var(--gold); }
.jobs h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.jobs p { margin-top: 12px; }
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.address { margin-top: 12px; }
.dm.alt { background: transparent; color: var(--wine); box-shadow: inset 0 0 0 3px var(--wine); }
.dm.alt:hover { background: var(--pink); }
.dm {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--wine);
  color: var(--milk);
  font-size: 1.3125rem;
  text-decoration: none;
}
.dm:hover { background: var(--ribbon); }

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 28px var(--gutter);
  background: var(--wine);
  color: var(--milk);
  font-size: .9375rem;
}
footer img { width: 150px; height: auto; }

@media (max-width: 1240px) {
  .sticker { display: none; }
}
@media (max-width: 1080px) {
  .strip { grid-template-columns: 1fr 1fr; }
  .strip article:nth-child(3) { grid-column: 1 / -1; }
  .points { grid-template-columns: 1fr 1fr; }
  .jobs { grid-template-columns: 1fr; }
  .tools-head { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  nav { left: var(--gutter); right: var(--gutter); justify-content: center; gap: 4px 16px; font-size: 1rem; }
  .strip, .points, .skills { grid-template-columns: 1fr; }
  .strip article:nth-child(-n+2) video { max-width: 320px; }
  .board { box-shadow: 6px 7px 0 var(--wine); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  h1 img { animation: none; }
  .sticker { transition: none; }
  .hero::before, .paw-stamp { animation: none; }
}

/* Color layer: every hue here comes from the artwork (night train, Tokyo bokeh, bell, ribbon). */
:root {
  --night: #171a4a;
  --violet: #6a3fd6;
  --lilac: #e6dcff;
  --sky: #bfe9ff;
  --sky-ink: #0a7aa8;
  --amber: #b55a00;
}

.hero {
  background-image:
    radial-gradient(60% 55% at 12% 15%, #ffd2a6 0, transparent 70%),
    radial-gradient(55% 55% at 90% 12%, #cdbbff 0, transparent 70%),
    radial-gradient(70% 60% at 50% 110%, #ff6fa6 0, transparent 70%);
}
.hero::before { opacity: .6; }

/* Scalloped edges, like the fringe on a stage curtain. Each section rises into the one above. */
.about, .works, .tools, .hire, footer { position: relative; }
.about::before, .works::before, .tools::before, .hire::before, footer::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: radial-gradient(circle at 20px 20px, var(--edge) 20px, transparent 21px) 0 0 / 40px 20px repeat-x;
  pointer-events: none;
}

.about {
  --edge: var(--milk);
  background:
    radial-gradient(38% 45% at 100% 0, #ffd3e2 0, transparent 70%),
    radial-gradient(34% 45% at 0 100%, var(--sky) 0, transparent 70%),
    var(--milk);
}
.about-head h2 { color: var(--violet); }
.statement { color: var(--wine); }
.links a { background: #fff; }
.links a:hover { background: var(--gold); }
.done li { position: relative; padding-left: 20px; }
.done li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ribbon);
}
.done li:nth-child(4n+2)::before { background: var(--violet); }
.done li:nth-child(4n+3)::before { background: var(--sky-ink); }
.done li:nth-child(4n+4)::before { background: var(--gold); }
.skills > div:nth-child(1) dt { color: var(--ribbon); }
.skills > div:nth-child(2) dt { color: var(--violet); }
.skills > div:nth-child(3) dt { color: var(--sky-ink); }
.skills > div:nth-child(4) dt { color: var(--amber); }

/* Works: the night behind the conductor and the Tokyo lights behind the portrait. */
.works {
  --edge: var(--night);
  background:
    radial-gradient(9% 16% at 8% 18%, rgb(240 189 85 / .38) 0, transparent 100%),
    radial-gradient(7% 13% at 92% 12%, rgb(255 157 191 / .42) 0, transparent 100%),
    radial-gradient(11% 20% at 76% 82%, rgb(120 200 255 / .3) 0, transparent 100%),
    radial-gradient(8% 14% at 30% 94%, rgb(255 111 166 / .3) 0, transparent 100%),
    radial-gradient(6% 11% at 54% 8%, rgb(205 187 255 / .34) 0, transparent 100%),
    linear-gradient(160deg, var(--night), #2c1650 62%, var(--wine));
}
.strip article:nth-child(1) video { border-color: var(--gold); }
.strip article:nth-child(2) video { border-color: var(--pink); }
.strip article:nth-child(3) video { border-color: var(--sky); }
.strip article:nth-child(1) .meta { color: var(--gold); }
.strip article:nth-child(2) .meta { color: var(--pink); }
.strip article:nth-child(3) .meta { color: var(--sky); }

.tools {
  --edge: var(--lilac);
  background: linear-gradient(135deg, var(--lilac), #ffd9e8 52%, var(--sky));
}
.tools h2 { color: var(--violet); }
.steps li:nth-child(8n+1)::before { background: var(--ribbon); }
.steps li:nth-child(8n+2)::before { background: #d6417f; }
.steps li:nth-child(8n+3)::before { background: #a83fc4; }
.steps li:nth-child(8n+4)::before { background: var(--violet); }
.steps li:nth-child(8n+5)::before { background: #3f55d6; }
.steps li:nth-child(8n+6)::before { background: var(--sky-ink); }
.steps li:nth-child(8n+7)::before { background: #0c7f6e; }
.steps li:nth-child(8n+8)::before { background: var(--amber); }

.hire {
  --edge: var(--milk);
  background:
    radial-gradient(circle, rgb(255 157 191 / .4) 1.6px, transparent 2px) 0 0 / 20px 20px,
    var(--milk);
}
.hire h2 { color: var(--ribbon); }
.jobs li { transition: transform .15s; }
.jobs li:hover { transform: translateY(-4px) rotate(-.6deg); }
.jobs .pink { background: linear-gradient(145deg, #ff8fb8, #ffb6a3); box-shadow: 7px 8px 0 var(--wine); }
.jobs .milk { background: linear-gradient(145deg, var(--sky), #d9d0ff); box-shadow: 7px 8px 0 var(--night); }
.jobs .gold { background: linear-gradient(145deg, #ffd56b, #ffab5e); box-shadow: 7px 8px 0 #7a3b00; }
.dm { background: var(--night); }
.dm.alt { background: #fff; color: var(--night); box-shadow: inset 0 0 0 3px var(--night); }

footer {
  --edge: var(--night);
  background: linear-gradient(100deg, var(--night), #2c1650 55%, var(--wine));
}

@media (prefers-reduced-motion: reduce) {
  .jobs li { transition: none; }
}
