:root {
  --bg: #030303;
  --bg-soft: #080808;
  --surface: #0e0e0f;
  --surface-2: #151517;
  --line: rgba(232, 235, 238, 0.12);
  --line-strong: rgba(232, 235, 238, 0.26);
  --text: #f4f5f5;
  --muted: #a7aaad;
  --dim: #6f7378;
  --silver: #d7dade;
  --red: #8f1e1e;
  --red-soft: rgba(143, 30, 30, 0.42);
  --shadow: rgba(0, 0, 0, 0.72);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #020202 0%, var(--bg) 48%, #050505 100%);
  background-size: 96px 96px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scrollbar-color: rgba(232, 235, 238, 0.36) #070707;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #070707;
  border-left: 1px solid var(--line);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(232, 235, 238, 0.52), rgba(232, 235, 238, 0.18));
  border: 2px solid #070707;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(232, 235, 238, 0.28));
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.page-texture {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.24;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 20rem),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1.2px);
  background-size: auto, 100% 4px, 18px 18px;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, #000 0%, transparent 76%);
}

.cursor-light {
  position: fixed;
  left: var(--pointer-x, 50vw);
  top: var(--pointer-y, 42vh);
  z-index: 1;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  opacity: 0.38;
  background: radial-gradient(circle, rgba(214, 220, 226, 0.13), rgba(143, 30, 30, 0.07) 28%, transparent 62%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
  transition: opacity 240ms ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px clamp(18px, 3vw, 46px);
  background: rgba(2, 2, 2, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}

.site-nav a {
  color: var(--dim);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--silver);
}

.section-band {
  position: relative;
  padding-inline: clamp(18px, 6vw, 132px);
}

.hero {
  min-height: 100svh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: clamp(76px, 8vh, 118px);
  padding-bottom: clamp(92px, 11vh, 142px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  perspective: 1200px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #020202 0%, rgba(2, 2, 2, 0.68) 27%, rgba(2, 2, 2, 0.34) 50%, rgba(2, 2, 2, 0.74) 74%, #020202 100%),
    linear-gradient(180deg, rgba(2, 2, 2, 0.38) 0%, rgba(2, 2, 2, 0.34) 50%, #020202 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--dim), transparent);
}

.hero-samurai {
  position: absolute;
  top: -84px;
  left: 50%;
  z-index: -2;
  width: min(1060px, 84vw);
  height: auto;
  max-width: none;
  transform: translate3d(calc(-50% + var(--hero-drift-x, 0px)), var(--hero-drift-y, 0px), 0) scale(var(--hero-scale, 1));
  opacity: 0.78;
  filter: grayscale(0.08) contrast(1.16) brightness(0.76);
  will-change: transform, opacity;
  transition: opacity 260ms ease;
}

.hero-copy {
  width: min(720px, 100%);
  margin-inline: auto;
  text-align: center;
  transform: translate3d(var(--copy-drift-x, 0px), calc(clamp(76px, 10vh, 138px) + var(--copy-drift-y, 0px)), 0);
  will-change: transform;
}

.kanji-mark {
  position: absolute;
  right: clamp(20px, 7vw, 120px);
  bottom: clamp(82px, 10vw, 150px);
  z-index: -1;
  color: rgba(232, 235, 238, 0.035);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(8rem, 18vw, 18rem);
  line-height: 1;
  transform: translate3d(0, var(--kanji-drift-y, 0px), 0);
  user-select: none;
}

.retro-rail {
  position: absolute;
  top: 52%;
  z-index: 0;
  color: rgba(232, 235, 238, 0.34);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.retro-rail::before,
.retro-rail::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 58px;
  margin: 12px auto;
  background: linear-gradient(transparent, rgba(232, 235, 238, 0.28), transparent);
}

.rail-left {
  left: clamp(18px, 4vw, 62px);
}

.rail-right {
  right: clamp(18px, 4vw, 62px);
}

.work {
  position: relative;
}

.section-stamp {
  position: absolute;
  top: 22px;
  right: clamp(18px, 4vw, 70px);
  color: rgba(143, 30, 30, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.availability {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 520px);
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.58);
  padding: 7px 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: normal;
  box-shadow: 0 0 34px rgba(232, 235, 238, 0.04);
}

.availability span {
  width: 5px;
  height: 5px;
  background: #b9c7c2;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(4rem, 9.2vw, 8.8rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.84;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.14;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy > p:not(.availability) {
  max-width: 620px;
  margin-inline: auto;
  color: #c9cccf;
  font-size: clamp(0.98rem, 1.45vw, 1.16rem);
}

.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-tags button,
.filter-button,
.button {
  border-radius: 999px;
}

.hero-tags button {
  border: 1px solid var(--line);
  padding: 8px 13px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-tags button:hover,
.hero-tags button:focus-visible {
  border-color: rgba(232, 235, 238, 0.36);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  box-shadow: 0 0 28px rgba(232, 235, 238, 0.08);
}

.scroll-cue {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.work,
.profile,
.contact {
  scroll-margin-top: 78px;
  padding-top: clamp(74px, 9vw, 132px);
  padding-bottom: clamp(74px, 9vw, 132px);
}

.section-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 860px);
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 650px;
}

.section-number {
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
}

.filter-button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.filter-button.active {
  border-color: #fff;
  background: #f1f2f3;
  color: #030303;
}

.filter-button:hover:not(.active) {
  border-color: var(--line-strong);
  color: var(--text);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.project-card {
  position: relative;
  min-width: 0;
  min-height: 340px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: transform 260ms ease, border-color 220ms ease, opacity 220ms ease, box-shadow 260ms ease;
  transform: translateY(16px);
  opacity: 0;
  will-change: transform, opacity;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.88));
  pointer-events: none;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--card-x, 50%) var(--card-y, 50%), rgba(232, 235, 238, 0.2), transparent 24rem),
    linear-gradient(135deg, transparent, rgba(143, 30, 30, 0.08));
  transition: opacity 180ms ease;
}

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

.project-card:nth-child(1),
.project-card:nth-child(2),
.project-card:nth-child(3),
.project-card:nth-child(13) {
  grid-column: span 2;
  min-height: 520px;
}

.project-card:nth-child(1) {
  grid-row: span 2;
  min-height: 640px;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-10px) scale(1.026);
  border-color: transparent;
  outline: none;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 42px rgba(232, 235, 238, 0.08);
}

.project-card:hover::after,
.project-card:focus-visible::after {
  opacity: 1;
}

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

.project-card picture,
.project-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.project-card img {
  object-fit: cover;
  background: #080808;
  filter: grayscale(0.18) saturate(0.88) contrast(1.08);
  transition: transform 420ms ease, filter 420ms ease;
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.095);
  filter: grayscale(0) saturate(1.02) contrast(1.1);
}

.project-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 60px 18px 18px;
}

.project-info span,
#modal-category {
  color: var(--silver);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-info h3 {
  color: #fff;
  text-transform: uppercase;
}

.project-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(232, 235, 238, 0.7);
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.profile {
  background:
    linear-gradient(90deg, rgba(143, 30, 30, 0.08), transparent 28%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head,
.profile-layout,
.contact > * {
  transform: translateY(18px);
  opacity: 0;
  transition: transform 520ms ease, opacity 520ms ease;
}

.section-head.is-visible,
.profile-layout.is-visible,
.contact > .is-visible {
  transform: translateY(0);
  opacity: 1;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(26px, 5vw, 76px);
}

.artist-statement {
  max-width: 560px;
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.profile-card {
  position: relative;
  display: grid;
  gap: 22px;
  align-content: start;
  margin-top: clamp(-112px, -6vw, -82px);
  min-height: clamp(320px, 34vw, 520px);
  border: 1px solid var(--line);
  background: #050505;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.78) 36%, rgba(5, 5, 5, 0.38) 70%, rgba(5, 5, 5, 0.16) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.15), rgba(5, 5, 5, 0.88)),
    url("assets/imported/profile-linkedin-bg.png") center / cover no-repeat;
  filter: brightness(1);
  transform: scale(1);
  transition: transform 420ms ease, filter 220ms ease;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 42%, rgba(232, 235, 238, 0.12), transparent 22rem);
  background-size: 100% 4px, auto;
  mix-blend-mode: screen;
  opacity: 0.52;
  transition: opacity 220ms ease;
}

.profile-card:hover {
  border-color: rgba(232, 235, 238, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 0 42px rgba(232, 235, 238, 0.08);
}

.profile-card:hover::before {
  filter: brightness(1.14);
  transform: scale(1.055);
}

.profile-card:hover::after {
  opacity: 0.7;
}

.profile-card p {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  margin: 0;
  color: rgba(244, 245, 245, 0.86);
  font-size: 1rem;
}

.tool-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 520px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-list li {
  border: 1px solid rgba(232, 235, 238, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.profile-link:hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.career-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(28px, 5vw, 76px);
  border-block: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(143, 30, 30, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.015);
}

.career-item {
  min-height: 260px;
  padding: clamp(18px, 2.4vw, 34px);
  border-right: 1px solid var(--line);
}

.career-item span {
  display: block;
  margin-bottom: 26px;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.career-item h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.career-item h3 a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.career-item h3 a:hover {
  color: var(--silver);
  text-shadow: 0 0 22px rgba(232, 235, 238, 0.18);
}

.career-item p {
  margin: 0;
  color: rgba(232, 235, 238, 0.66);
  font-size: 0.92rem;
  line-height: 1.65;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.contact h2 {
  max-width: 820px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line-strong);
  padding: 0 18px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  box-shadow: inset 0 0 0 1px transparent;
}

.button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 235, 238, 0.54);
  box-shadow: 0 0 30px rgba(232, 235, 238, 0.09);
}

.button.primary {
  background: #f1f2f3;
  color: #030303;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.035);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background: #050505;
  overflow: auto;
}

.modal.is-open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 0;
  background: #050505;
}

.modal-gallery {
  display: grid;
  align-content: start;
  gap: 8px;
  width: min(100%, 1680px);
  margin-inline: auto;
  padding: 8px clamp(8px, 1.4vw, 18px) 28px;
  overflow: auto;
  background: #020202;
  scroll-behavior: smooth;
  scrollbar-color: rgba(232, 235, 238, 0.32) #020202;
  scrollbar-width: thin;
}

.project-render {
  margin: 0;
  background: #020202;
}

.project-story {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(24px, 5vw, 82px);
  align-items: start;
  margin: clamp(10px, 2vw, 22px) 0 clamp(18px, 3vw, 40px);
  padding: clamp(28px, 5vw, 72px) clamp(18px, 5vw, 86px);
  border-block: 1px solid rgba(232, 235, 238, 0.14);
  background:
    linear-gradient(90deg, rgba(124, 20, 19, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

.project-story-kicker {
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-story-body {
  max-width: 920px;
}

.project-story-body p {
  margin: 0;
  color: rgba(232, 235, 238, 0.78);
  font-size: clamp(1rem, 1.15vw, 1.28rem);
  line-height: 1.72;
}

.project-story-body p + p {
  margin-top: 1.05em;
}

.project-render img {
  width: 100%;
  height: auto;
  min-height: 220px;
  max-height: none;
  object-fit: contain;
  background: #020202;
}

.modal-copy {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.9);
  padding: 16px clamp(16px, 3vw, 56px) 16px clamp(164px, 15vw, 220px);
  backdrop-filter: blur(18px);
}

.modal-copy h3 {
  grid-column: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 3rem);
  font-weight: 950;
  line-height: 0.98;
  text-transform: uppercase;
}

.modal-copy > p {
  margin: 0;
}

.modal-copy #modal-category {
  display: none;
}

.modal-copy #modal-description {
  display: none;
}

.gallery-count {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.modal-close {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  min-width: 132px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 5, 5, 0.78);
  color: var(--text);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
}

.modal-close::before {
  content: "←";
  margin-right: 8px;
}

@media (max-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .profile-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .profile-card {
    margin-top: 0;
  }

  .hero-samurai {
    width: min(1120px, 132vw);
    top: -60px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 11px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 0.68rem;
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
    padding-top: 132px;
    padding-bottom: 92px;
  }

  .hero-samurai {
    top: 70px;
    width: 158vw;
    opacity: 0.62;
  }

  .cursor-light,
  .kanji-mark,
  .retro-rail {
    display: none;
  }

  .availability {
    max-width: calc(100vw - 48px);
    font-size: 0.58rem;
    letter-spacing: 0.11em;
    line-height: 1.35;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 5rem);
  }

  .hero-copy > p:not(.availability) {
    max-width: 34ch;
    font-size: 0.94rem;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

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

  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(13) {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 430px;
  }

  .button {
    width: 100%;
  }

  .modal-copy {
    grid-template-columns: 1fr;
    padding: 62px 18px 14px;
  }

  .gallery-count {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
  }

  .project-story {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 18px;
  }
}

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

  .hero-samurai,
  .hero-copy,
  .kanji-mark {
    transform: none;
  }

  .hero-samurai {
    transform: translateX(-50%);
  }
}
