﻿:root {
  --yellow: #ff6a13;
  --ink: #171717;
  --paper: #f6f1e8;
  --soft: #ded6ca;
  --coral: #ff6a13;
  --cyan: #6f8790;
  --green: #6d7f61;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 23, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  border: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  cursor: pointer;
}

main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

main::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: calc(100vh + clamp(1120px, 76vw, 1400px));
  pointer-events: none;
  content: "";
  background:
    linear-gradient(110deg, rgba(255, 106, 19, 0.16), transparent 42%),
    linear-gradient(290deg, rgba(11, 77, 255, 0.14), transparent 52%);
  mix-blend-mode: multiply;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.2) 24%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.5) 0 13%, transparent 31%),
    radial-gradient(circle at 76% 62%, rgba(255, 255, 255, 0.36) 0 16%, transparent 38%),
    linear-gradient(165deg, #fff1df 0%, var(--yellow) 30%, #ff7d2d 64%, #de4d0d 100%);
  animation: splash-out 0.82s 1.06s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.splash::before,
.splash::after {
  position: absolute;
  inset: -10%;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.splash::before {
  opacity: 0.72;
  background:
    radial-gradient(ellipse at 20% 16%, rgba(255, 255, 255, 0.74) 0 8%, transparent 26%),
    radial-gradient(ellipse at 44% 42%, rgba(255, 255, 255, 0.46) 0 9%, transparent 29%),
    radial-gradient(ellipse at 72% 28%, rgba(255, 255, 255, 0.34) 0 10%, transparent 31%),
    radial-gradient(ellipse at 58% 78%, rgba(255, 255, 255, 0.42) 0 13%, transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%, rgba(255, 255, 255, 0.24));
  filter: blur(18px);
  transform: rotate(-3deg) scale(1.08);
}

.splash::after {
  opacity: 0.38;
  background:
    repeating-radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(8deg, rgba(23, 23, 23, 0.08) 0 1px, transparent 1px 13px);
  mix-blend-mode: screen;
}

.splash__mark {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-family: Raleway, sans-serif;
  font-size: clamp(3.8rem, 13vw, 11rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.9;
  text-shadow: 7px 7px 0 rgba(255, 255, 255, 0.36);
  animation: splash-mark-in 0.62s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash__mark::before {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  pointer-events: none;
  z-index: -1;
  color: rgba(255, 255, 255, 0.82);
  clip-path: inset(0 100% 0 0);
  text-shadow: none;
  transform: translate(-0.18em, 0.1em) skewX(-12deg);
  animation: splash-mark-ghost 0.72s 0.14s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.site-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  pointer-events: none;
}

.brand,
.nav,
.menu-button {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 62px;
  padding: 0 18px;
  font-family: Raleway, sans-serif;
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 800;
}

.brand__burst {
  display: none;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  padding-right: 110px;
  font-family: Raleway, sans-serif;
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.nav a,
.drawer a,
.footer a {
  position: relative;
}

.nav a::after,
.drawer a::after,
.footer a::after {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a.is-current::after,
.drawer a:hover::after,
.drawer a.is-current::after,
.footer a:hover::after {
  transform: scaleX(1);
}

.nav a.is-current,
.drawer a.is-current {
  color: var(--coral);
}

.menu-button {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 31;
  display: flex;
  width: 66px;
  height: 66px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

body.is-scrolled .menu-button,
.menu-button.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body.is-scrolled .menu-button:hover {
  background: var(--yellow);
}

.menu-button span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-button span:nth-child(1) {
  transform: translateY(-8px);
}

.menu-button span:nth-child(3) {
  transform: translateY(8px);
}

.menu-button.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(44, 44, 44, 0.92);
  color: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer nav {
  display: grid;
  gap: 28px;
  text-align: center;
  font-family: Raleway, sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  padding: clamp(42px, 5vw, 76px) clamp(20px, 7.5vw, 96px) 46px;
  overflow: hidden;
}

.hero__stage {
  position: relative;
  margin-bottom: clamp(22px, 2.5vw, 38px);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  display: none;
}

.hero__image {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft);
  border: 3px solid var(--ink);
  box-shadow: 16px 16px 0 var(--ink);
}

.hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scan {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  background:
    repeating-linear-gradient(-30deg, transparent 0 18px, rgba(255, 106, 19, 0.48) 18px 36px),
    linear-gradient(90deg, rgba(11, 77, 255, 0.12), transparent 55%);
  clip-path: polygon(0 0, 44% 0, 22% 100%, 0 100%);
  animation: stripe-slide 2.2s cubic-bezier(0.2, 0.8, 0.1, 1) both;
}

.hero__copy {
  position: absolute;
  left: clamp(18px, 3vw, 42px);
  bottom: clamp(44px, 7vw, 104px);
  z-index: 3;
  width: min(650px, calc(100% - 48px));
}

.eyebrow {
  margin: 0 0 12px;
  font-family: Montserrat, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    0 -1px 0 var(--paper),
    -1px 0 0 var(--paper);
}

.hero h1 {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-size: clamp(3.1rem, 9vw, 9.4rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  -webkit-text-stroke: 0.8px var(--paper);
  paint-order: stroke fill;
  text-shadow:
    0.045em 0.045em 0 var(--yellow),
    0 0 2px var(--paper),
    0 1px 0 var(--paper),
    1px 0 0 var(--paper),
    0 -1px 0 var(--paper),
    -1px 0 0 var(--paper);
}

.hero__copy p:last-child {
  max-width: 560px;
  margin: 18px 0 0;
  padding: 12px 18px;
  font-weight: 700;
  background: color-mix(in srgb, var(--yellow) 92%, var(--paper));
  border-left: 8px solid var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__badge {
  position: absolute;
  right: clamp(-24px, -1.4vw, -14px);
  bottom: clamp(-34px, -2vw, -22px);
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: start;
  width: clamp(126px, 8vw, 152px);
  height: clamp(104px, 7.2vw, 136px);
  padding: 18px 20px;
  color: var(--paper);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 106, 19, 0.16), transparent 48%),
    var(--ink);
  border: 3px solid var(--ink);
  border-radius: 0;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%);
  filter: drop-shadow(12px 14px 0 rgba(255, 106, 19, 0.95)) drop-shadow(0 18px 18px rgba(23, 23, 23, 0.22));
  transform: rotate(-2deg) translate3d(0, 0, 0);
  transition: filter 0.22s ease, transform 0.22s ease;
}

.hero__badge::before {
  position: absolute;
  top: 13px;
  right: 18px;
  width: 16px;
  height: 16px;
  content: "";
  border-top: 3px solid var(--yellow);
  border-right: 3px solid var(--yellow);
}

.hero__badge::after {
  width: 34px;
  height: 3px;
  margin-top: 12px;
  content: "";
  background: var(--yellow);
}

.hero__badge:hover {
  filter: drop-shadow(16px 18px 0 rgba(255, 106, 19, 0.95)) drop-shadow(0 24px 24px rgba(23, 23, 23, 0.26));
  transform: rotate(-5deg) translate(-4px, -8px);
}

.hero__badge span {
  font-family: Montserrat, sans-serif;
  font-size: clamp(0.62rem, 0.7vw, 0.7rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__badge strong {
  font-family: Raleway, sans-serif;
  font-size: clamp(0.98rem, 1.25vw, 1.18rem);
  font-style: italic;
  line-height: 1.05;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(70px, 10vw, 132px) clamp(20px, 7.5vw, 96px);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(30px, 5vw, 62px);
}

.section-heading span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Montserrat, sans-serif;
  font-size: clamp(0.82rem, 1.5vw, 1.25rem);
  letter-spacing: 0.18em;
}

.section-heading span::before {
  width: 46px;
  height: 1px;
  content: "";
  background: currentColor;
}

.section-heading h2 {
  margin: 0;
  color: var(--yellow);
  font-family: Raleway, sans-serif;
  font-size: clamp(3.3rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  mix-blend-mode: multiply;
}

.section-heading--vertical {
  writing-mode: vertical-rl;
}

.section-heading--invert h2 {
  color: var(--paper);
  mix-blend-mode: normal;
}

.intro {
  --intro-media-offset: clamp(14px, 2.4vw, 42px);
  display: grid;
  grid-template-columns: minmax(390px, 1.2fr) minmax(260px, 430px);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding-left: clamp(28px, 3vw, 56px);
}

.intro .section-heading--vertical {
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: start;
  margin: 0 0 0 clamp(-18px, -1vw, -8px);
  pointer-events: none;
}

.intro .section-heading--vertical h2 {
  color: color-mix(in srgb, var(--yellow) 68%, transparent);
  font-size: clamp(5.2rem, 10.8vw, 11.6rem);
  line-height: 0.84;
  opacity: 0.68;
  mix-blend-mode: multiply;
}

.intro .section-heading--vertical span {
  color: var(--paper);
  -webkit-text-stroke: 0.35px rgba(23, 23, 23, 0.75);
  text-shadow: 0 0 1px rgba(23, 23, 23, 0.45);
}

.intro__media {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: min(600px, calc(100% - var(--intro-media-offset)));
  margin-left: var(--intro-media-offset);
  transform: skewY(-5deg);
}

.intro__media::before {
  position: absolute;
  inset: clamp(-42px, -3vw, -30px) clamp(-20px, -1.5vw, -14px);
  z-index: 0;
  content: "";
  background: var(--ink);
  pointer-events: none;
}

.intro__media::after {
  display: none;
}

.intro__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  object-position: 46% 50%;
  transform: skewY(5deg) scale(1.02);
  clip-path: inset(0);
}

.intro__text {
  position: relative;
  z-index: 3;
  grid-column: 2;
  align-self: end;
}

.marker {
  display: table;
  margin: 0 0 10px;
  padding: 4px 16px;
  font-size: clamp(1.2rem, 2.2vw, 1.72rem);
  font-weight: 700;
  line-height: 1.8;
  background: var(--yellow);
}

.marker--white {
  background: var(--paper);
}

.intro__text > p:not(.marker) {
  margin: 18px 0 0;
}

.intro__text > .marker + p:not(.marker) {
  margin-top: 22px;
}

.intro__links {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 22px;
}

.intro__link-group {
  display: grid;
  gap: 9px;
}

.intro__link-group > p {
  margin: 0;
  font-family: Raleway, "Noto Sans JP", sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.intro__link-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.intro__link-button {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: Raleway, "Noto Sans JP", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.intro__link-button:hover,
.intro__link-button:focus-visible {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--yellow);
  transform: translate(3px, 3px);
}

.works {
  z-index: 2;
  background:
    linear-gradient(164deg, transparent 0 80px, var(--soft) 80px calc(100% - 90px), transparent calc(100% - 90px)),
    repeating-linear-gradient(90deg, transparent 0 72px, rgba(23, 23, 23, 0.07) 72px 73px),
    var(--paper);
}

.category {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-bottom: 34px;
}

.category button {
  position: relative;
  font-family: Raleway, sans-serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
}

.category button::after {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  content: "";
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.category button.is-active::after,
.category button:hover::after {
  transform: scaleX(1);
}

.work-feature-grid {
  display: none;
}

.work-archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.work-card {
  position: relative;
  min-width: 0;
  cursor: pointer;
  will-change: transform;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.work-card__thumb::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  padding: 18px;
  place-items: center;
  color: var(--paper);
  content: attr(data-title);
  font-family: Raleway, sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 2.7rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 106, 19, 0.92), rgba(23, 23, 23, 0.78)),
    repeating-linear-gradient(-30deg, transparent 0 18px, rgba(255, 255, 255, 0.18) 18px 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.work-card__thumb::after {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 5px 10px;
  color: var(--ink);
  content: "♯" attr(data-category);
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--paper);
  border: 2px solid var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.work-card:hover .work-card__thumb::before,
.work-card:hover .work-card__thumb::after,
.work-card:focus-visible .work-card__thumb::before,
.work-card:focus-visible .work-card__thumb::after {
  opacity: 1;
}

.work-card:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 6px;
}

.work-card.is-hidden {
  display: none;
}

.work-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 0;
  background-image: url("./assets/works.png");
  background-size: 260% 260%;
  border: 3px solid var(--ink);
  overflow: hidden;
  box-shadow: 7px 7px 0 rgba(23, 23, 23, 0.22);
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.work-card:hover .work-card__thumb {
  transform: translate(-4px, -8px);
  filter: saturate(1.2) contrast(1.08);
  box-shadow: 13px 13px 0 var(--yellow);
}

.work-card__thumb--a {
  background-position: 0 0;
}

.work-card__thumb--b {
  background-position: 100% 0;
}

.work-card__thumb--c {
  background-position: 0 100%;
}

.work-card__thumb--d {
  background-position: 100% 100%;
}

.work-card__thumb--e {
  background-position: 34% 6%;
  filter: hue-rotate(18deg) saturate(1.15);
}

.work-card__thumb--f {
  background-position: 66% 12%;
}

.work-card__thumb--g {
  background-position: 18% 50%;
  filter: contrast(1.08);
}

.work-card__thumb--h {
  background-position: 82% 52%;
}

.work-card__thumb--i {
  background-position: 4% 86%;
  filter: hue-rotate(140deg) saturate(0.95);
}

.work-card__thumb--j {
  background-position: 50% 86%;
}

.work-card__thumb--k {
  background-position: 96% 86%;
  filter: hue-rotate(-30deg) saturate(1.2);
}

.work-card__thumb--l {
  background-position: 24% 24%;
}

.work-card__thumb--m {
  background-position: 72% 26%;
  filter: saturate(1.3);
}

.work-card__thumb--n {
  background-position: 42% 64%;
}

.work-card__thumb--o {
  background-position: 12% 68%;
  filter: hue-rotate(205deg) saturate(0.9);
}

.work-card__thumb--p {
  background-position: 88% 8%;
}

.work-card__thumb--q {
  background-position: 8% 32%;
  filter: contrast(1.16) saturate(1.08);
}

.work-card__thumb--r {
  background-position: 58% 42%;
}

.work-card__thumb--s {
  background-position: 94% 44%;
  filter: hue-rotate(70deg);
}

.work-card__thumb--t {
  background-position: 28% 96%;
}

.work-card__thumb--u {
  background-position: 74% 96%;
}

.work-card__thumb--v {
  background-position: 48% 18%;
  filter: hue-rotate(20deg) contrast(1.08);
}

.work-card__thumb--w {
  background-position: 16% 12%;
}

.work-card__thumb--x {
  background-position: 92% 72%;
  filter: saturate(1.25);
}

.work-card span {
  display: none;
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.work-card h3 {
  display: none;
  margin: 4px 0 0;
  font-family: Raleway, sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.55rem);
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
}

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 78px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.work-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.work-modal__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 106, 19, 0.1), rgba(0, 0, 0, 0.86)),
    rgba(0, 0, 0, 0.86);
}

.work-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.18fr) minmax(280px, 0.82fr);
  width: min(1180px, 100%);
  max-height: min(780px, calc(100vh - 64px));
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--yellow);
  overflow: auto;
  box-shadow: 22px 22px 0 rgba(255, 106, 19, 0.95);
  transform: translateY(22px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.1, 1);
}

.work-modal.is-open .work-modal__panel {
  transform: translateY(0) scale(1);
}

.work-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  background: var(--yellow);
}

.work-modal__close span {
  position: absolute;
  width: 28px;
  height: 3px;
  background: var(--ink);
}

.work-modal__close span:first-child {
  transform: rotate(45deg);
}

.work-modal__close span:last-child {
  transform: rotate(-45deg);
}

.work-modal__visual {
  --work-modal-visual-gutter: clamp(18px, 3vw, 38px);
  min-height: 460px;
  padding: var(--work-modal-visual-gutter);
  background:
    repeating-linear-gradient(-30deg, transparent 0 20px, rgba(255, 106, 19, 0.2) 20px 40px),
    linear-gradient(90deg, rgba(11, 77, 255, 0.18), transparent 60%),
    #111;
}

.work-modal__thumb {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background-image: url("./assets/works.png");
  background-size: 220% 220%;
  background-position: center;
  border: 4px solid var(--paper);
}

.work-modal__gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 3vw, 38px);
  background:
    linear-gradient(90deg, rgba(255, 106, 19, 0.12), transparent 42%),
    #111;
  border-top: 3px solid var(--yellow);
}

.work-modal__gallery[hidden] {
  display: none;
}

.work-modal__media-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: zoom-in;
  outline: none;
}

.work-modal__media-item img,
.work-modal__media-item video {
  display: block;
  width: 100%;
  max-height: min(54vh, 540px);
  object-fit: contain;
  background: var(--ink);
  border: 4px solid var(--paper);
  transition:
    filter 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

.work-modal__media-item:hover img,
.work-modal__media-item:hover video,
.work-modal__media-item:focus-visible img,
.work-modal__media-item:focus-visible video {
  border-color: var(--yellow);
  filter: brightness(0.82) contrast(1.05);
  transform: scale(1.015);
}

.work-modal__media-item.is-video::after {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  color: var(--ink);
  font-family: Montserrat, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  content: "VIDEO";
  background: var(--yellow);
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 70px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.media-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.media-lightbox__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 106, 19, 0.14), rgba(0, 0, 0, 0.92)),
    rgba(0, 0, 0, 0.92);
}

.media-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  max-height: calc(100vh - clamp(36px, 10vw, 140px));
  padding:
    clamp(64px, 6vw, 86px)
    clamp(82px, 8vw, 112px)
    clamp(22px, 3vw, 36px);
  overflow: hidden;
  background: var(--ink);
  border: 3px solid var(--yellow);
  box-shadow: 18px 18px 0 rgba(255, 106, 19, 0.95);
}

.media-lightbox__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--yellow);
}

.media-lightbox__close span {
  position: absolute;
  width: 27px;
  height: 3px;
  background: var(--ink);
}

.media-lightbox__close span:first-child {
  transform: rotate(45deg);
}

.media-lightbox__close span:last-child {
  transform: rotate(-45deg);
}

.media-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  place-items: center;
  width: 58px;
  height: 78px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(255, 106, 19, 0.95);
  opacity: 0.88;
  transform: translateY(-50%);
}

.media-lightbox.has-multiple .media-lightbox__nav {
  display: grid;
}

.media-lightbox__nav--prev {
  left: 18px;
}

.media-lightbox__nav--next {
  right: 18px;
}

.media-lightbox__nav span {
  display: block;
  width: 18px;
  height: 18px;
  border-top: 4px solid var(--ink);
  border-right: 4px solid var(--ink);
}

.media-lightbox__nav--prev span {
  transform: rotate(-135deg);
}

.media-lightbox__nav--next span {
  transform: rotate(45deg);
}

.media-lightbox__nav:hover,
.media-lightbox__nav:focus-visible {
  background: var(--paper);
  opacity: 1;
}

.media-lightbox__content {
  display: grid;
  place-items: center;
  min-height: min(58vh, 680px);
}

.media-lightbox__content img,
.media-lightbox__content video {
  display: block;
  width: 100%;
  max-height: calc(100vh - clamp(170px, 19vw, 250px));
  object-fit: contain;
  background: var(--ink);
}

.work-modal__body {
  padding: clamp(34px, 5vw, 72px) clamp(28px, 4vw, 56px);
}

.work-modal__category {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  color: var(--ink);
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--yellow);
}

.work-modal__body h2 {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.9;
}

.work-modal__description {
  margin: 28px 0 0;
  line-height: 2;
}

.work-modal__meta {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.work-modal__meta div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.work-modal__meta dt {
  color: var(--yellow);
  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-modal__meta dd {
  margin: 0;
}

body.is-modal-open {
  overflow: hidden;
}

.member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.member-card {
  display: grid;
  grid-template-columns: 86px minmax(160px, 220px) 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 106, 19, 0.18), transparent 42%),
    var(--soft);
  border: 3px solid var(--ink);
  border-top: 10px solid var(--yellow);
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.18);
}

#profile .member-card:first-child {
  background:
    linear-gradient(145deg, rgba(255, 106, 19, 0.18), transparent 42%),
    var(--soft);
}

#profile .member-card:first-child .member-card__portrait {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 10px 8px 0 var(--yellow);
}

.member-card__portrait {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin-bottom: 20px;
  color: var(--paper);
  font-family: Raleway, sans-serif;
  font-size: 3rem;
  font-style: italic;
  font-weight: 800;
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 10px 8px 0 var(--yellow);
}

.member-card h3 {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 800;
}

.member-card p {
  margin: 0;
}

.profile-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid rgba(23, 23, 23, 0.22);
}

.profile-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-list span {
  display: inline-flex;
  justify-content: center;
  padding: 3px 7px;
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--paper);
}

.profile-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: Montserrat, "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
  line-height: 1.35;
}

.profile-list p {
  margin: 3px 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.ability-tags,
.software-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.software-groups {
  display: grid;
  gap: 18px;
}

.software-groups h4 {
  margin: 0 0 8px;
  font-family: Montserrat, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ability-tags span,
.software-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  font-family: Montserrat, "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(23, 23, 23, 0.18);
}

.software-list span {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
}

.contact {
  background:
    repeating-linear-gradient(-30deg, transparent 0 28px, rgba(23, 23, 23, 0.12) 28px 30px),
    var(--yellow);
}

.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.contact h2 {
  margin: 0 0 16px;
  font-family: Raleway, sans-serif;
  font-size: clamp(4rem, 11vw, 10rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.9;
}

.contact a {
  display: inline-block;
  padding: 14px 22px;
  color: var(--paper);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--paper);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 7.5vw, 96px);
  font-family: Montserrat, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.1, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes splash-out {
  0% {
    transform: translateY(0);
  }
  100% {
    visibility: hidden;
    transform: translateY(-100%);
  }
}

@keyframes splash-mark-in {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    filter: blur(10px);
    transform: translateY(22px) skewX(-12deg);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: blur(0);
    transform: translateY(0) skewX(-8deg);
  }
}

@keyframes splash-mark-ghost {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translate(-0.34em, 0.16em) skewX(-16deg);
  }
  42% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 0.24;
    clip-path: inset(0 0 0 0);
    transform: translate(0.16em, 0.06em) skewX(-10deg);
  }
}

@keyframes stripe-slide {
  from {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  to {
    clip-path: polygon(0 0, 44% 0, 22% 100%, 0 100%);
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .intro {
    --intro-media-offset: clamp(24px, 4vw, 56px);
    grid-template-columns: minmax(320px, 1.12fr) minmax(260px, 390px);
  }

  .hero__copy {
    width: min(520px, calc(100% - 170px));
  }

  .hero__badge {
    right: -8px;
    bottom: -22px;
    width: 118px;
    height: 96px;
    padding: 14px;
    filter: drop-shadow(10px 12px 0 rgba(255, 106, 19, 0.95)) drop-shadow(0 16px 16px rgba(23, 23, 23, 0.2));
  }

  .intro__media {
    width: min(560px, calc(100% - var(--intro-media-offset)));
    margin-left: var(--intro-media-offset);
  }

  .intro__text {
    grid-column: 2;
  }

  .work-archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-modal {
    padding: 28px;
  }

  .work-modal__panel {
    display: block;
    grid-template-columns: 1fr;
    width: min(760px, 100%);
    max-height: calc(100vh - 56px);
    box-shadow: 14px 14px 0 rgba(255, 106, 19, 0.95);
  }

  .work-modal__close {
    position: sticky;
    top: 0;
    right: auto;
    z-index: 4;
    margin: 0 0 0 auto;
    box-shadow: -8px 8px 0 var(--ink);
  }

  .work-modal__visual {
    --work-modal-visual-gutter: 24px;
    min-height: 0;
  }

  .work-modal__thumb {
    height: auto;
    min-height: 320px;
    aspect-ratio: 16 / 10;
  }

  .work-modal__gallery {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  .site-header {
    height: 62px;
  }

  .brand {
    height: 58px;
    padding-left: 14px;
    font-size: 1.2rem;
  }

  .brand__burst {
    width: 28px;
    height: 28px;
  }

  .hero {
    min-height: auto;
    padding: 24px 20px 78px;
  }

  .hero__stage {
    margin-bottom: 0;
  }

  .hero__image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__copy {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: -68px;
  }

  .hero__copy p:last-child {
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .hero__badge {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(168px, 48vw);
    height: 62px;
    margin: 34px 0 0 auto;
    padding: 12px;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    filter: drop-shadow(7px 8px 0 rgba(255, 106, 19, 0.92)) drop-shadow(0 12px 14px rgba(23, 23, 23, 0.22));
    transform: rotate(-2deg);
  }

  .hero__badge::before {
    top: 10px;
    right: 15px;
    width: 12px;
    height: 12px;
    border-width: 2px;
  }

  .hero__badge::after {
    width: 26px;
    height: 2px;
    margin-top: 7px;
  }

  .hero__badge span {
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .hero__badge strong {
    font-size: 0.82rem;
  }

  .section {
    padding: 70px 20px;
  }

  .section-heading--vertical {
    writing-mode: horizontal-tb;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro .section-heading--vertical {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: start;
    margin: 0 0 -34px 0;
    writing-mode: horizontal-tb;
  }

  .intro .section-heading--vertical h2 {
    font-size: clamp(3.6rem, 18vw, 6.2rem);
    line-height: 0.86;
    opacity: 0.78;
  }

  .intro .section-heading--vertical span {
    margin-bottom: 8px;
  }

  .intro__media {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin-left: 0;
  }

  .intro__media img {
    aspect-ratio: 5 / 3;
  }

  .intro__text {
    grid-column: auto;
    margin-top: 50px;
  }

  .work-archive,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    grid-template-columns: 1fr;
  }

  .work-card__thumb::before {
    font-size: clamp(1.75rem, 13vw, 4.4rem);
  }

  .work-archive .work-card:nth-child(n) {
    margin-top: 0;
  }

  .work-modal {
    align-items: stretch;
    padding: 16px;
  }

  .work-modal__panel {
    max-height: calc(100vh - 32px);
    box-shadow: 8px 8px 0 rgba(255, 106, 19, 0.95);
  }

  .work-modal__close {
    top: 0;
    right: auto;
    width: 48px;
    height: 48px;
    box-shadow: -6px 6px 0 var(--ink);
  }

  .work-modal__visual {
    --work-modal-visual-gutter: 14px;
  }

  .work-modal__thumb {
    height: auto;
    min-height: 240px;
    aspect-ratio: 4 / 3;
  }

  .work-modal__gallery {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .work-modal__media-item img,
  .work-modal__media-item video {
    max-height: 62vh;
  }

  .media-lightbox {
    padding: 16px;
  }

  .media-lightbox__panel {
    max-height: calc(100vh - 32px);
    padding: 64px 12px 82px;
    box-shadow: 8px 8px 0 rgba(255, 106, 19, 0.95);
  }

  .media-lightbox__close {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
  }

  .media-lightbox__nav {
    top: auto;
    bottom: 12px;
    width: 46px;
    height: 62px;
    box-shadow: 4px 4px 0 rgba(255, 106, 19, 0.95);
    transform: none;
  }

  .media-lightbox__nav--prev {
    left: calc(50% - 58px);
  }

  .media-lightbox__nav--next {
    right: calc(50% - 58px);
  }

  .media-lightbox__nav span {
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .media-lightbox__content {
    min-height: min(52vh, 560px);
  }

  .media-lightbox__content img,
  .media-lightbox__content video {
    max-height: calc(100vh - 190px);
  }

  .work-modal__body {
    padding: 28px 20px 32px;
  }

  .work-modal__body h2 {
    padding-right: 42px;
    font-size: clamp(2.45rem, 14vw, 4.5rem);
  }

  .work-modal__meta div {
    grid-template-columns: 1fr;
    gap: 6px;
  }


  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


