:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6d6d6d;
  --line: #dedede;
  --pink: #ff3cac;
  --violet: #784ba0;
  --blue: #2b86c5;
  --teal: #00c8a0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "Noto Sans JP", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: flex;
  flex-direction: column;
}

.hero { order: 1; }
.magic-area { order: 2; }
.about { order: 3; }
.ux-principle { order: 4; }
.skills { order: 5; }
.career { order: 6; }
.contact { order: 7; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 3.5vw;
  mix-blend-mode: difference;
  color: #ffffff;
}

.identity {
  display: grid;
  gap: 6px;
  font-size: clamp(18px, 1.55vw, 25px);
  font-weight: 900;
  letter-spacing: .02em;
}

.identity small {
  font-family: "Space Mono", monospace;
  font-size: clamp(11px, .88vw, 14px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--blue), var(--teal), var(--pink));
  background-size: 220%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient 5s ease-in-out infinite alternate;
}

nav {
  display: flex;
  gap: clamp(16px, 2.2vw, 36px);
  font-family: "Space Mono", monospace;
  font-size: clamp(13px, 1.05vw, 16px);
  text-transform: uppercase;
}

nav a,
nav span {
  position: relative;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 178px 3.5vw 248px;
  overflow: hidden;
}

.hero h1 {
  position: relative;
  margin-top: 0;
  font-size: clamp(72px, 15vw, 230px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: 0;
}

.hero-word {
  display: block;
  width: max-content;
  padding: 0 .04em .16em 0;
  letter-spacing: 0;
}

.magic-word {
  margin-top: -.47em;
  overflow: visible;
}

.hero-char {
  display: inline-block;
  margin-right: .004em;
  padding-bottom: .08em;
  line-height: 1.08;
  vertical-align: top;
  opacity: 0;
  filter: blur(14px);
  animation: gather-char 1.15s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero-char:last-child {
  margin-right: 0;
}

.like-word .hero-char:nth-child(3),
.magic-word .hero-char:nth-child(2) {
  margin-right: -.022em;
}

.hero-char:nth-child(2) { animation-delay: .08s; }
.hero-char:nth-child(3) { animation-delay: .16s; }
.hero-char:nth-child(4) { animation-delay: .24s; }
.hero-char:nth-child(5) { animation-delay: .32s; }

.magic-word .hero-char:nth-child(1) { animation-delay: 1.05s; }
.magic-word .hero-char:nth-child(2) { animation-delay: 1.13s; }
.magic-word .hero-char:nth-child(3) { animation-delay: 1.21s; }
.magic-word .hero-char:nth-child(4) { animation-delay: 1.29s; }
.magic-word .hero-char:nth-child(5) { animation-delay: 1.37s; }

.magic-word {
  position: relative;
  padding-right: .08em;
}

.magic-word .hero-char {
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--blue), var(--teal), var(--pink));
  background-size: 500%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.magic-word .hero-char:nth-child(1) { background-position: 0% 50%; }
.magic-word .hero-char:nth-child(2) { background-position: 22% 50%; }
.magic-word .hero-char:nth-child(3) { background-position: 44% 50%; }
.magic-word .hero-char:nth-child(4) { background-position: 66% 50%; }
.magic-word .hero-char:nth-child(5) { background-position: 88% 50%; }

.magic-word .hero-char:nth-child(3) {
  padding-bottom: .2em;
  line-height: 1.16;
}

.char-from-left {
  --start-x: -46vw;
  --start-y: 0;
  --start-r: -18deg;
}

.char-from-right {
  --start-x: 46vw;
  --start-y: 0;
  --start-r: 18deg;
}

.char-from-top {
  --start-x: 0;
  --start-y: -42vh;
  --start-r: -12deg;
}

.char-from-bottom {
  --start-x: 0;
  --start-y: 42vh;
  --start-r: 12deg;
}

.hero-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 6px;
}

.hero-copy {
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.04em;
  opacity: 0;
  animation: copy-reveal 1.15s 2.55s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero-note {
  max-width: none;
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 2;
  opacity: 0;
  animation: copy-reveal 1.15s 3.25s cubic-bezier(.2, .8, .2, 1) forwards;
  white-space: nowrap;
}

.section {
  padding: clamp(100px, 13vw, 200px) 3.5vw;
}

.section h2 {
  font-size: clamp(54px, 9vw, 142px);
  font-weight: 900;
  line-height: .87;
  letter-spacing: -.07em;
}

.about {
  min-height: 72svh;
  display: grid;
  align-items: center;
  padding-top: clamp(80px, 9vw, 130px);
  padding-bottom: clamp(80px, 9vw, 130px);
}

.philosophy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 1.5vw 6vw;
  width: 100%;
}

.philosophy-label {
  grid-column: 1 / -1;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: .2em;
  opacity: 0;
  transform: translateY(14px);
}

.philosophy-title {
  align-self: end;
  width: 100%;
  line-height: 0;
}

.philosophy-title svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.philosophy-title text {
  fill: var(--ink);
  stroke: none;
  font-family: "Inter", sans-serif;
  font-size: 172px;
  font-weight: 900;
  letter-spacing: -.07em;
  paint-order: stroke fill;
}

.philosophy-ja {
  align-self: end;
  padding-bottom: .12em;
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.04em;
  opacity: 0;
  transform: translateY(28px);
}

.philosophy-copy {
  grid-column: 2;
  margin-top: clamp(30px, 4vw, 60px);
  padding-top: 30px;
  border-top: 1px solid var(--ink);
  opacity: 0;
  transform: translateY(28px);
}

.philosophy-copy p {
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 2.1;
}

.philosophy-copy p:first-child {
  margin-bottom: 24px;
  color: var(--ink);
  font-weight: 700;
}

.philosophy.is-visible .philosophy-label {
  animation: philosophy-rise .7s .05s ease forwards;
}

.philosophy.is-visible .philosophy-title text {
  animation: none;
}

.philosophy.is-visible .philosophy-draw-mask {
  animation: philosophy-draw 2.5s .18s cubic-bezier(.45, 0, .2, 1) forwards;
}

.philosophy.is-visible .philosophy-ja {
  animation: philosophy-rise .9s 1.65s cubic-bezier(.2, .8, .2, 1) forwards;
}

.philosophy.is-visible .philosophy-copy {
  animation: philosophy-rise .9s 2.35s cubic-bezier(.2, .8, .2, 1) forwards;
}

.ux-principle {
  --panel-scale: .04;
  --content-opacity: 0;
  --content-offset: 28px;
  min-height: 118svh;
  padding: 0 3.5vw;
  color: #ffffff;
  background: #ffffff;
}

.ux-panel {
  position: sticky;
  top: 20px;
  min-height: calc(100svh - 40px);
  display: grid;
  place-items: center;
  padding: clamp(70px, 9vw, 130px) 3.5vw;
  overflow: hidden;
  border-radius: 32px;
  color: #ffffff;
  background: #111111;
  transform: scale(var(--panel-scale));
  transform-origin: center;
  will-change: transform;
}

.ux-panel-content {
  width: 100%;
  opacity: var(--content-opacity);
  transform: translateY(var(--content-offset));
  will-change: opacity, transform;
}

.principle-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.principle-heading > p {
  margin-bottom: clamp(34px, 4.5vw, 62px);
  color: #ffffff;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: .06em;
}

.principle-message {
  font-size: clamp(54px, 9vw, 142px);
  line-height: 1.12;
}

.principle-line {
  display: block;
  padding-block: .03em;
}

.principle-line-accent {
  margin-top: .12em;
  background: linear-gradient(90deg, #ff3cac, #784ba0, #2b86c5, #00c8a0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.principle-content {
  display: flex;
  justify-content: center;
  margin-top: clamp(54px, 7vw, 96px);
  color: #c0c0c0;
  font-size: clamp(18px, 1.7vw, 25px);
  line-height: 2;
  text-align: center;
}

.section-dark {
  color: #ffffff;
  background: #111111;
}

.magic-area {
  padding: clamp(100px, 12vw, 180px) 0;
  overflow: hidden;
  border-top-left-radius: clamp(80px, 13vw, 220px);
  color: #ffffff;
  background: #111111;
}

.magic-heading,
.magic-marquee {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(18px);
}

.magic-heading {
  transform: translateY(32px);
}

.magic-area.is-active .magic-heading {
  animation: magic-content-in 1.4s .1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.magic-area.is-active .magic-marquee {
  animation: magic-content-in .8s 1s cubic-bezier(.2, .8, .2, 1) forwards;
}

.magic-heading {
  display: block;
  padding: 0 clamp(32px, 7vw, 110px);
}

.magic-kicker {
  display: block;
  margin-bottom: clamp(30px, 4vw, 58px);
  font-size: clamp(25px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.04em;
}

.magic-heading h2 {
  font-size: clamp(42px, 7vw, 108px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.075em;
  white-space: nowrap;
}

.magic-heading h2 span {
  margin-left: .12em;
  background: linear-gradient(90deg, #ff446c, #ff3cac, #784ba0, #2b86c5, #00c8a0);
  background-size: 220%;
  background-clip: text;
  color: transparent;
  animation: gradient 5s ease-in-out infinite alternate;
}

.magic-marquee {
  --magic-start-offset: max(24px, calc(50vw - min(260px, 17vw)));
  width: 100%;
  margin-top: clamp(70px, 9vw, 130px);
  transform: translateX(var(--magic-start-offset));
}

.magic-track {
  display: flex;
  width: max-content;
  animation: magic-slide 28s linear infinite;
}

.magic-marquee:hover .magic-track,
.magic-marquee:focus-within .magic-track {
  animation-play-state: paused;
}

.magic-set {
  display: flex;
  gap: 24px;
  padding-right: 24px;
}

.magic-card {
  width: clamp(290px, 34vw, 520px);
  aspect-ratio: 1.25;
  outline: none;
  perspective: 1400px;
}

.magic-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.magic-card:hover .magic-card-inner,
.magic-card:focus .magic-card-inner {
  transform: rotateY(180deg);
}

.magic-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3vw, 44px);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.magic-face::before {
  position: absolute;
  inset: -45%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .38) 50%, transparent 60%);
  content: "";
  transform: translateX(-55%) rotate(10deg);
  transition: transform 1s ease;
}

.magic-card:hover .magic-face::before,
.magic-card:focus .magic-face::before {
  transform: translateX(55%) rotate(10deg);
}

.magic-face > * {
  position: relative;
  z-index: 1;
}

.magic-after {
  color: #111111;
  transform: rotateY(180deg);
}

.card-pink .magic-before {
  background: linear-gradient(135deg, #ff174f, #ff3cac 56%, #784ba0);
}

.card-pink .magic-after {
  background: linear-gradient(315deg, #ff174f, #ff87cb 56%, #f2d5ff);
}

.card-blue .magic-before {
  background: linear-gradient(135deg, #173bff, #2b86c5 55%, #00c8d7);
}

.card-blue .magic-after {
  background: linear-gradient(315deg, #1453ff, #70cfff 55%, #d5f8ff);
}

.card-green .magic-before {
  background: linear-gradient(135deg, #007f5f, #00c8a0 55%, #a8eb12);
}

.card-green .magic-after {
  background: linear-gradient(315deg, #00a878, #74e8bd 55%, #e5ff9c);
}

.card-orange .magic-before {
  background: linear-gradient(135deg, #ff4d00, #ff8a00 55%, #ffd000);
}

.card-orange .magic-after {
  background: linear-gradient(315deg, #ff6b00, #ffc06b 55%, #fff0b0);
}

.card-violet .magic-before {
  background: linear-gradient(135deg, #642bff, #9d3cff 55%, #ff3cac);
}

.card-violet .magic-after {
  background: linear-gradient(315deg, #7c4dff, #c99cff 55%, #ffd1ed);
}

.card-label,
.card-action {
  font-family: "Space Mono", monospace;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.card-action {
  align-self: end;
}

.magic-face h3 {
  font-size: clamp(27px, 3.1vw, 48px);
  line-height: 1.25;
  letter-spacing: -.05em;
}

.magic-after > p:last-child {
  width: 100%;
  max-width: none;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.8;
}

.skills-heading {
  text-align: center;
}

.skills-heading h2 {
  font-size: clamp(54px, 9vw, 142px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.07em;
}

.skills-heading p {
  margin-top: 38px;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 2;
}

.process-cycle {
  position: relative;
  isolation: isolate;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(80px, 10vw, 140px) auto 0;
}

.process-cycle::before {
  position: absolute;
  z-index: 0;
  inset: -12% 3%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 60, 172, .08), transparent 34%),
    radial-gradient(circle at 68% 72%, rgba(43, 134, 197, .09), transparent 38%);
  box-shadow:
    0 0 70px rgba(43, 134, 197, .05),
    inset 0 0 50px rgba(255, 60, 172, .03);
  content: "";
  pointer-events: none;
  animation: cycle-orbit 24s linear infinite;
}

.process-step {
  position: relative;
  z-index: 1;
  min-height: 190px;
  padding: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .92);
  border: 0;
  box-shadow: 0 18px 50px rgba(17, 17, 17, .055);
  opacity: 0;
  transform: translateY(18px);
  animation: process-in .7s ease forwards;
  transition: color .4s ease, background-color .4s ease, box-shadow .4s ease;
}

.process-step:nth-child(2) { animation-delay: .08s; }
.process-step:nth-child(3) { animation-delay: .16s; }
.process-step:nth-child(4) { animation-delay: .24s; }
.process-step:nth-child(5) { animation-delay: .32s; }
.process-step:nth-child(6) { animation-delay: .4s; }

.process-step span {
  display: block;
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: 10px;
  transition: color .4s ease, opacity .25s ease, transform .25s ease;
}

.process-step h3 {
  margin-top: 22px;
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.5;
  transform-origin: top left;
  transition: font-size .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.process-step p {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(24px);
  transition: color .4s ease, opacity .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.process-step:hover,
.process-step:focus-visible {
  color: #ffffff;
  background: #111111;
  box-shadow: 0 24px 60px rgba(17, 17, 17, .16);
}

.process-step:hover p,
.process-step:focus-visible p {
  color: #d8d8d8;
}

.process-step:hover h3,
.process-step:focus-visible h3 {
  margin-top: 0;
  font-size: clamp(14px, 1.1vw, 17px);
  transform: translateY(-4px);
}

.process-step:hover span,
.process-step:focus-visible span {
  opacity: 0;
  transform: translateY(-6px);
}

.process-step:hover p,
.process-step:focus-visible p {
  opacity: 1;
  transform: translateY(0);
}

.career {
  border-top: 1px solid var(--line);
}

.career-heading {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: end;
  gap: 7vw;
  margin-top: clamp(80px, 11vw, 160px);
}

.career-heading h2 {
  font-size: clamp(54px, 9vw, 142px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.07em;
}

.career-heading h2 span {
  display: block;
}

.career-heading h2 span + span {
  margin-top: .1em;
}

.career-intro > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.career-controls {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.career-controls.is-hidden {
  display: none;
}

.career-control {
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.career-control:hover,
.career-control:focus-visible {
  color: #ffffff;
  background: var(--ink);
  transform: translateY(-2px);
}

.career-scroll {
  display: grid;
  grid-template-columns: repeat(5, minmax(280px, 1fr));
  gap: 18px;
  margin-top: clamp(70px, 9vw, 130px);
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.career-card {
  min-height: 330px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  background: #ffffff;
  scroll-snap-align: start;
}

.career-card span {
  color: var(--muted);
  font-family: "Space Mono", monospace;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.7;
  letter-spacing: .12em;
}

.career-card span strong {
  color: var(--ink);
  font-size: 1.15em;
  font-weight: 700;
}

.career-card h3 {
  margin-top: 36px;
  font-size: clamp(21px, 2vw, 31px);
  letter-spacing: -.04em;
}

.career-card p {
  align-self: end;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.career-role {
  align-self: end;
  min-height: 5.8em;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-weight: 700;
}

.career-company-single {
  padding-top: 1.9em;
}

.contact {
  min-height: 64svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px 3.5vw 44px;
  color: #ffffff;
  background: #111111;
}

.contact-label {
  margin-top: 0;
  font-size: clamp(18px, 2.2vw, 34px);
  font-weight: 700;
  letter-spacing: -.04em;
}

.contact h2 {
  margin: 18px 0 40px;
  font-size: clamp(62px, 13vw, 190px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: 0;
}

.contact-word {
  display: block;
  width: max-content;
  padding-right: .04em;
}

.contact-word > span {
  display: inline-block;
  margin-right: .004em;
}

.contact-word > span:last-child {
  margin-right: 0;
}

.contact-like > span:nth-child(3),
.contact-magic > span:nth-child(2) {
  margin-right: -.022em;
}

.contact-magic {
  margin-top: -.06em;
  padding-right: .08em;
}

.contact-magic > span {
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--blue), var(--teal), var(--pink));
  background-size: 500%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.contact-magic > span:nth-child(1) { background-position: 0% 50%; }
.contact-magic > span:nth-child(2) { background-position: 18% 50%; }
.contact-magic > span:nth-child(3) { padding-bottom: .2em; background-position: 36% 50%; }
.contact-magic > span:nth-child(4) { background-position: 54% 50%; }
.contact-magic > span:nth-child(5) { background-position: 72% 50%; }
.contact-magic > span:nth-child(6) { background-position: 90% 50%; }

.contact-note {
  margin-top: 0;
  color: #999999;
  font-family: "Space Mono", monospace;
  font-size: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 3.5vw;
  color: #999999;
  background: #111111;
  border-top: 1px solid #292929;
  font-family: "Space Mono", monospace;
  font-size: 8px;
  letter-spacing: .08em;
}

.maria-widget {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 50;
  font-family: "Space Mono", monospace;
}

.maria-trigger {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-left: auto;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.maria-trigger-label {
  margin-bottom: 8px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  background: #ffffff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 12px;
}

.maria-sprite {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: maria-idle 1.4s steps(2, end) infinite;
}

.maria-dialog {
  width: min(360px, calc(100vw - 32px));
  margin-bottom: 12px;
  border: 3px solid var(--ink);
  background: #ffffff;
  box-shadow: 8px 8px 0 var(--ink);
}

.maria-dialog[hidden] {
  display: none;
}

.maria-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, #1557d6, #784ba0, #ff3c9e);
  font-size: 11px;
  font-weight: 700;
}

.maria-close {
  border: 0;
  color: #ffffff;
  background: transparent;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.maria-message {
  min-height: 112px;
  padding: 18px;
}

.maria-speaker {
  margin-bottom: 9px;
  color: #1557d6;
  font-size: 11px;
  font-weight: 700;
}

.maria-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

.maria-next {
  display: block;
  margin-top: 16px;
  margin-left: auto;
  padding: 9px 14px;
  border: 0;
  color: #ffffff;
  background: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.maria-next[hidden] {
  display: none;
}

.maria-next:hover,
.maria-next:focus-visible {
  background: #1557d6;
}

.maria-choices {
  display: grid;
  gap: 1px;
  padding: 1px;
  background: #d9d9d9;
}

.maria-choices button {
  padding: 11px 14px;
  border: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.maria-choices button:hover,
.maria-choices button:focus-visible {
  color: #ffffff;
  background: #1557d6;
}

@keyframes maria-idle {
  to { transform: translateY(-3px); }
}

@keyframes gradient {
  to { background-position: 100% 50%; }
}

@keyframes gather-char {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translate(var(--start-x), var(--start-y)) rotate(var(--start-r)) scale(.72);
  }

  72% {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) rotate(0) scale(1.04);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@keyframes copy-reveal {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(22px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes philosophy-draw {
  to { width: 1000px; }
}

@keyframes philosophy-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes magic-slide {
  to { transform: translateX(-50%); }
}

@keyframes magic-content-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes process-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cycle-orbit {
  to { transform: rotate(360deg); }
}

@media (max-height: 700px) and (min-width: 761px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 54px;
  }

  .hero h1 {
    margin-top: 0;
    font-size: clamp(68px, 12.5vw, 172px);
  }

  .hero-bottom {
    gap: 14px;
    margin-top: 0;
  }

  .hero-copy {
    font-size: clamp(28px, 3.5vw, 48px);
  }

  .hero-note {
    font-size: 13px;
    line-height: 1.7;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 20px;
  }

  nav {
    display: none;
  }

  .hero {
    padding: 108px 20px 64px;
  }

  .hero h1 {
    font-size: clamp(68px, 23vw, 138px);
    line-height: .96;
  }

  .hero-bottom {
    margin-top: 60px;
  }

  .hero-note {
    max-width: 480px;
    white-space: normal;
  }

  .section {
    padding: 100px 20px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .section h2 {
    font-size: clamp(52px, 16vw, 96px);
  }

  .about {
    min-height: auto;
  }

  .philosophy {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .philosophy-label,
  .philosophy-copy {
    grid-column: 1;
  }

  .philosophy-title text {
    font-size: 166px;
  }

  .philosophy-ja {
    padding-bottom: 0;
  }

  .philosophy-copy {
    margin-top: 10px;
  }

  .principle-content {
    display: flex;
  }

  .principle-message {
    font-size: clamp(44px, 13vw, 68px);
  }

  .ux-principle {
    min-height: 112svh;
    padding: 0 12px;
  }

  .ux-panel {
    top: 12px;
    min-height: calc(100svh - 24px);
    padding: 70px 20px;
    border-radius: 22px;
  }

  .career-heading {
    grid-template-columns: 1fr;
  }

  .career-intro {
    margin-top: 30px;
  }

  .process-cycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .process-step {
    min-height: 210px;
    padding: 22px;
  }

  .process-step p {
    right: 22px;
    bottom: 20px;
    left: 22px;
    opacity: 1;
    transform: none;
  }

  .process-step:hover h3,
  .process-step:focus-visible h3 {
    transform: none;
  }

  .process-cycle::before {
    inset: -5% -12%;
  }

  .magic-area {
    padding: 100px 0;
    border-top-left-radius: 72px;
  }

  .magic-heading {
    display: block;
    padding: 0 20px;
  }

  .magic-heading h2 {
    margin-top: 0;
    font-size: clamp(20px, 6.7vw, 32px);
    letter-spacing: -.06em;
  }

  .skills-heading h2 {
    font-size: clamp(28px, 9vw, 44px);
    letter-spacing: -.06em;
    white-space: nowrap;
  }

  .magic-set {
    gap: 14px;
    padding-right: 14px;
  }

  .magic-marquee {
    --magic-start-offset: 9vw;
  }

  .magic-card {
    width: min(82vw, 380px);
  }

  .contact {
    min-height: auto;
    padding: 64px 20px 36px;
  }

  .contact h2 {
    margin: 14px 0 28px;
  }

  .contact-label {
    font-size: clamp(17px, 5vw, 25px);
  }

  footer {
    flex-direction: column;
    padding: 26px 20px;
  }

  .maria-widget {
    right: 12px;
    bottom: 12px;
  }

  .maria-trigger-label {
    display: none;
  }

  .maria-sprite {
    transform: scale(.88);
    transform-origin: bottom right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .ux-principle {
    --panel-progress: 1;
    --panel-scale: 1;
    --content-opacity: 1;
    --content-offset: 0;
    min-height: auto;
  }

  .ux-panel {
    position: relative;
    top: auto;
    min-height: auto;
    transform: none;
  }

  .ux-panel-content {
    opacity: 1;
    transform: none;
  }

  .philosophy-label,
  .philosophy-ja,
  .philosophy-copy {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .philosophy-title text {
    fill: var(--ink);
    stroke: none;
  }

  .philosophy-draw-mask {
    width: 1000px;
  }

  .maria-sprite {
    animation: none;
  }
}
