/* ==========================================================================
   Studio NØSa — Design & Code Practice
   01. Tokens
   02. Reset / Base
   03. Utilities
   04. Header / Navigation
   05. Mobile menu
   06. Hero
   07. Marquee
   08. Sections / Intro
   09. Works
   10. Philosophy
   11. CTA
   12. Footer
   13. Inner page hero
   14. Project index
   15. About
   16. Contact / Form
   17. Responsive
   18. Reduced motion / Print
   ========================================================================== */

/* 01. Tokens
   ========================================================================== */
:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --bg-3: #141416;
  --ink: #f0ede6;
  --ink-2: #b8b3a9;
  --muted: #8d8980;
  --line: rgba(240, 237, 230, 0.13);
  --line-2: rgba(240, 237, 230, 0.3);
  --accent: #d7f56a;
  --accent-ink: #0a0a0b;

  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Noto Sans JP", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", "Yu Mincho", serif;
  --mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --header-h: 78px;
  --gutter: clamp(20px, 4.2vw, 64px);
  --gap: clamp(16px, 2.4vw, 40px);
  --section-pad: clamp(80px, 11vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --fs-body: clamp(0.95rem, 0.18vw + 0.9rem, 1.06rem);
  --fs-label: 0.64rem;
}

/* 02. Reset / Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

body.menu-open {
  overflow: hidden;
}

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 03. Utilities
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 18px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.label {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.label::before {
  content: "";
  flex: none;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.label--bare::before {
  display: none;
}

.accent {
  color: var(--accent);
}

.nowrap {
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.text-link svg {
  width: 11px;
  height: 11px;
  transition: transform 0.45s var(--ease);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link:hover svg {
  transform: translate(3px, -3px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 30px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.45s var(--ease);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

/* Scroll reveal */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* 04. Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.76);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  white-space: nowrap;
}

.brand svg {
  width: 21px;
  height: 21px;
  flex: none;
}

.brand:hover svg {
  color: var(--accent);
}

.brand svg {
  transition: color 0.4s var(--ease);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-block: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link .n {
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link[aria-current="page"] .n {
  color: var(--accent);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 95;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 05. Mobile menu
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(var(--gutter) + 8px);
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.mobile-menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.66rem;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mobile-menu-top .label {
  color: var(--muted);
}

.mobile-menu-note {
  text-align: right;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--muted);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: clamp(14px, 3vw, 22px) 0;
  border-top: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 1px solid var(--line);
}

.m-num {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.m-en {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 7vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.m-jp {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.mobile-menu-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(32px, 6vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}

.mobile-menu-foot a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}

/* 06. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(20px, 4vh, 48px));
  padding-bottom: clamp(24px, 4vh, 44px);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto 35%;
  height: 90vh;
  background: radial-gradient(
    50% 50% at 50% 40%,
    rgba(215, 245, 106, 0.07),
    rgba(215, 245, 106, 0) 70%
  );
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-top .status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-top .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(215, 245, 106, 0.1);
}

.hero-title {
  margin-top: clamp(30px, 7vh, 84px);
  font-size: clamp(2.3rem, 6.25vw, 6.25rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.055em;
  margin-bottom: -0.055em;
}

.hero-title .line > span {
  display: block;
  animation: line-up 1.25s var(--ease) both;
  animation-delay: var(--d, 0s);
}

.hero-title .line--serif {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  font-size: 1.05em;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: var(--accent);
  padding-bottom: 0.19em;
  margin-bottom: -0.14em;
}

@keyframes line-up {
  from {
    transform: translateY(116%);
  }
  to {
    transform: translateY(0);
  }
}

.hero-title .line--serif .line-inner {
  padding-left: 0.04em;
}

.hero-foot {
  margin-top: auto;
  padding-top: clamp(28px, 4.5vh, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  border-top: 1px solid var(--line);
  animation: fade-up 1.2s var(--ease) both;
  animation-delay: 0.55s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-quote .label {
  margin-bottom: 12px;
}

.hero-quote p:last-child {
  font-family: var(--mincho);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  line-height: 2;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  justify-self: end;
  max-width: 30em;
}

.hero-meta > p {
  font-size: clamp(0.84rem, 0.95vw, 0.92rem);
  line-height: 1.95;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.4s;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-line {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: var(--line);
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 14px;
  background: var(--accent);
  animation: scroll-drop 2.6s var(--ease) infinite;
}

@keyframes scroll-drop {
  0% {
    transform: translateY(-16px);
  }
  70%,
  100% {
    transform: translateY(42px);
  }
}

/* 07. Marquee
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(14px, 1.8vw, 24px);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.9em;
  padding-right: 0.9em;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--ink-2);
}

.marquee-track .sep {
  color: var(--accent);
  font-size: 0.7em;
  letter-spacing: 0;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* 08. Sections / Intro
   ========================================================================== */
.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section-head > .label {
  grid-column: 1 / 4;
  padding-bottom: 0.5em;
}

.section-head > .section-title,
.section-head > .section-head-main {
  grid-column: 4 / 13;
}

.section-title {
  font-size: clamp(1.8rem, 3.8vw, 3.35rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.015em;
}

.section-head-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head-main .text-link {
  margin-bottom: 0.65em;
}

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px) var(--gap);
  align-items: start;
}

.split .lead {
  grid-column: 1 / 8;
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  line-height: 2.1;
  color: var(--ink-2);
}

.service-list {
  grid-column: 9 / 13;
}

.service-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.service-list li:first-child {
  border-top: 1px solid var(--line);
}

.service-list .s-num {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.service-list .s-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.7rem;
  transition: transform 0.4s var(--ease), color 0.4s;
}

.service-list li:hover .s-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* 09. Works
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(44px, 6vw, 96px) var(--gap);
}

.work--full {
  grid-column: 1 / 13;
}

.work--half {
  grid-column: span 6;
}

.work--half:nth-child(3) {
  margin-top: clamp(20px, 4vw, 56px);
}

.work-link {
  display: block;
}

.work-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}

.work--full .work-media {
  aspect-ratio: 16 / 8.4;
}

.work--half .work-media {
  aspect-ratio: 4 / 3;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.8s var(--ease);
}

.work-link:hover .work-media img {
  transform: scale(1.035);
  filter: brightness(1.08);
}

.work-view {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(240, 237, 230, 0.3);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.work-link:hover .work-view,
.work-link:focus-visible .work-view {
  opacity: 1;
  transform: translateY(0);
}

.work-info {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.work-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.work-index {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.work-row h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
  transition: color 0.4s var(--ease);
}

.work-link:hover .work-row h3 {
  color: var(--accent);
}

.work-year {
  margin-left: auto;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.work-desc {
  margin-top: 10px;
  font-size: 0.84rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 44em;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.work-tags li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--muted);
  opacity: 0.6;
}

/* 10. Philosophy
   ========================================================================== */
.section--philosophy {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.section--philosophy .wrap {
  position: relative;
  z-index: 1;
}

.spell-ring {
  position: absolute;
  top: 50%;
  right: -14%;
  width: min(78vw, 780px);
  height: auto;
  color: var(--ink);
  opacity: 0.13;
  pointer-events: none;
  animation: spell-spin 180s linear infinite;
}

@keyframes spell-spin {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.philosophy-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 80px) var(--gap);
  align-items: end;
  margin-top: clamp(28px, 4vw, 56px);
}

.philosophy-quote {
  grid-column: 1 / 8;
  font-family: var(--mincho);
  font-size: clamp(1.7rem, 3.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.02em;
}

.philosophy-quote em {
  font-style: normal;
  color: var(--accent);
}

.philosophy-aside {
  grid-column: 9 / 13;
  padding-bottom: 0.4em;
}

.philosophy-en {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  line-height: 1.35;
  color: var(--ink-2);
}

.philosophy-text {
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: 0.86rem;
  line-height: 2;
  color: var(--muted);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(56px, 8vw, 110px);
}

.principles li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}

.principles .num {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.principles h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}

.principles p {
  font-size: 0.84rem;
  line-height: 1.95;
  color: var(--muted);
}

/* 11. CTA
   ========================================================================== */
.section--cta {
  padding-block: clamp(84px, 12vw, 180px);
}

.cta-title {
  margin-top: clamp(24px, 3.5vw, 44px);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7.3vw, 6.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.cta-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) var(--gap);
  align-items: end;
  margin-top: clamp(34px, 5vw, 60px);
}

.cta-row > p {
  grid-column: 1 / 5;
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--muted);
}

.cta-mail-wrap {
  grid-column: 6 / 13;
}

.cta-mail {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  font-size: clamp(1.05rem, 2.2vw, 1.9rem);
  letter-spacing: 0.01em;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  word-break: break-all;
}

.cta-mail .arrow-circle {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75em;
  height: 1.75em;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
    color 0.4s var(--ease), transform 0.5s var(--ease);
}

.cta-mail .arrow-circle svg {
  width: 0.55em;
  height: 0.55em;
}

.cta-mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.cta-mail:hover .arrow-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(45deg);
}

/* 12. Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 84px);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

.footer-brand {
  grid-column: 1 / 5;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 0.76rem;
  line-height: 1.9;
  color: var(--muted);
}

.footer-brand .footer-social-label {
  margin: 24px 0 10px;
  font-size: 0.58rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  font-size: 0.74rem;
}

.footer-socials a {
  color: var(--ink-2);
  transition: color 0.35s var(--ease);
}

.footer-socials a:hover {
  color: var(--accent);
}

.footer-nav {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.footer-label {
  margin-bottom: 16px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-link {
  display: block;
  width: fit-content;
  padding: 4px 0;
  font-size: 0.82rem;
  color: var(--ink-2);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.footer-link:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-note {
  font-size: 0.8rem;
  line-height: 1.9;
  color: var(--muted);
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(44px, 6vw, 76px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-wordmark {
  margin-top: clamp(28px, 4vw, 56px);
  margin-bottom: -0.17em;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 13vw, 15rem);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 237, 230, 0.2);
  user-select: none;
}

/* 13. Inner page hero
   ========================================================================== */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 118px));
  padding-bottom: clamp(44px, 6.5vw, 90px);
}

.page-hero .label {
  margin-bottom: clamp(26px, 4vw, 52px);
}

.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 40px);
  flex-wrap: wrap;
  font-size: clamp(3.4rem, 12.6vw, 10.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.page-title .jp {
  padding-bottom: 0.95em;
  font-family: var(--sans);
  font-size: clamp(0.66rem, 0.85vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: none;
  color: var(--muted);
  white-space: nowrap;
}

.page-lead {
  max-width: 46em;
  margin-top: clamp(28px, 4vw, 54px);
  font-size: clamp(0.96rem, 1.2vw, 1.1rem);
  line-height: 2.05;
  color: var(--ink-2);
}

.page-index {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 14. Project index
   ========================================================================== */
.project {
  padding-block: clamp(48px, 7vw, 104px);
  border-bottom: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.project-media {
  grid-column: 1 / 8;
  grid-row: 1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-3);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.project:hover .project-media img {
  transform: scale(1.025);
}

.project-body {
  grid-column: 9 / 13;
  grid-row: 1;
}

.project--alt .project-media {
  grid-column: 6 / 13;
}

.project--alt .project-body {
  grid-column: 1 / 5;
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.project-body h2 {
  margin-top: 18px;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.project-sub {
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.35;
  color: var(--ink-2);
}

.project-desc {
  margin-top: 20px;
  font-size: 0.86rem;
  line-height: 2;
  color: var(--muted);
}

.project-meta {
  margin-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.project-meta > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  line-height: 1.7;
}

.project-meta dt {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15em;
}

.project-meta dd {
  color: var(--ink-2);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: clamp(18px, 2.4vw, 28px);
}

/* 15. About
   ========================================================================== */
.about-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px) var(--gap);
  align-items: start;
}

.about-intro .lead {
  grid-column: 1 / 8;
  font-size: clamp(1.12rem, 1.85vw, 1.55rem);
  line-height: 2;
  color: var(--ink-2);
}

.about-intro .facts {
  grid-column: 9 / 13;
}

.facts {
  border-top: 1px solid var(--line-2);
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.7;
}

.facts dt {
  color: var(--muted);
  letter-spacing: 0.04em;
}

.facts dd {
  text-align: right;
  color: var(--ink-2);
}

.about-philosophy {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.about-philosophy .wrap {
  position: relative;
  z-index: 1;
}

.about-philosophy .quote-en {
  max-width: 22em;
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--serif);
  font-size: clamp(2rem, 4.9vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.about-philosophy .quote-en em {
  font-style: italic;
  color: var(--accent);
}

.about-philosophy .quote-jp {
  margin-top: clamp(28px, 3.5vw, 44px);
  max-width: 38em;
  font-family: var(--mincho);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}

.quote-note {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 52em;
  font-size: 0.86rem;
  line-height: 2;
  color: var(--muted);
}

.approach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.approach li {
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}

.approach .num {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.approach h3 {
  margin-top: 12px;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.approach p {
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.95;
  color: var(--muted);
}

.profile {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px) var(--gap);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}

.profile-head {
  grid-column: 1 / 13;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.profile-index {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.profile-role {
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: right;
}

.profile-name {
  grid-column: 1 / 6;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.profile-name span {
  display: block;
  margin-top: 10px;
  font-size: clamp(0.68rem, 0.85vw, 0.8rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-bio {
  grid-column: 7 / 12;
  font-size: 0.92rem;
  line-height: 2;
  color: var(--ink-2);
}

.profile-links {
  grid-column: 7 / 12;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 4px;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px) var(--gap);
}

.cap-group h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
}

.cap-group li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--ink-2);
}

.cap-group li span {
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* 16. Contact / Form
   ========================================================================== */
.mega-mail-wrap {
  margin-top: clamp(32px, 4.5vw, 58px);
}

.mega-mail-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-mail {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  font-size: clamp(1.2rem, 3.4vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 10px;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  word-break: break-all;
}

.mega-mail svg {
  flex: none;
  width: 0.55em;
  height: 0.55em;
  transition: transform 0.5s var(--ease);
}

.mega-mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.mega-mail:hover svg {
  transform: translate(4px, -4px);
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(44px, 6vw, 96px) var(--gap);
  align-items: start;
}

.contact-aside {
  grid-column: 1 / 5;
}

.contact-form-wrap {
  grid-column: 6 / 13;
}

.aside-block {
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}

.aside-block:first-child {
  border-top-color: var(--line-2);
}

.aside-block .label {
  margin-bottom: 12px;
}

.aside-block p,
.aside-block a.aside-link {
  font-size: 0.86rem;
  line-height: 1.9;
  color: var(--ink-2);
}

.aside-block a.aside-link {
  display: inline-block;
  border-bottom: 1px solid var(--line);
  transition: color 0.35s, border-color 0.35s;
  word-break: break-all;
}

.aside-block a.aside-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.aside-block .aside-small {
  margin-top: 10px;
  font-size: 0.72rem;
  line-height: 1.8;
  color: var(--muted);
}

.aside-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 14px);
}

.form-title {
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.field {
  border-bottom: 1px solid var(--line-2);
  padding: 16px 0 8px;
  transition: border-color 0.4s var(--ease);
}

.field:focus-within {
  border-color: var(--accent);
}

.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field label .jp {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--muted);
  opacity: 0.8;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 4px 0 8px;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  outline: none;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238d8980' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}

.field select option {
  background: var(--bg-2);
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #706b63;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(20px, 3vw, 32px);
}

.form-demo {
  font-size: 0.7rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 28em;
}

.form-demo a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}

.form-demo a:hover {
  color: var(--accent);
}

.form-note {
  margin-top: 18px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--accent);
}

.form-note[hidden] {
  display: none;
}

.form-note.is-error {
  color: #ff9a86;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.btn[disabled]:hover {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}

.btn[disabled]:hover svg {
  transform: none;
}

/* 17. Privacy / consent
   ========================================================================== */
.policy-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px) var(--gap);
  align-items: start;
}

.policy-aside {
  grid-column: 1 / 4;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.policy-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 16px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
}

.policy-nav a {
  width: fit-content;
  transition: color 0.35s var(--ease);
}

.policy-nav a:hover {
  color: var(--accent);
}

.policy {
  grid-column: 4 / 11;
  max-width: 46em;
}

.policy > section {
  padding-block: clamp(26px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
}

.policy > section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.policy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.policy p,
.policy li {
  font-size: 0.88rem;
  line-height: 2.05;
  color: var(--ink-2);
}

.policy p + p {
  margin-top: 1em;
}

.policy ul {
  margin: 0.5em 0 1em;
  padding-left: 1.3em;
  list-style: disc;
}

.policy li + li {
  margin-top: 4px;
}

.policy a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.policy a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.policy-contact {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.policy-contact > div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.policy-contact dt {
  color: var(--muted);
}

.policy-contact dd {
  color: var(--ink-2);
  word-break: break-all;
}

.policy .policy-date {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.9;
}

.consent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 0 2px;
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--ink-2);
}

.consent-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.consent-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.consent-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-2);
  transition: background-color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.consent-box::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 1px solid var(--accent-ink);
  border-bottom: 1px solid var(--accent-ink);
  transform: rotate(-45deg) scale(0);
  transition: transform 0.2s var(--ease);
}

.consent-label input:checked + .consent-box {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-label input:checked + .consent-box::after {
  transform: rotate(-45deg) scale(1);
}

.consent-label input:focus-visible + .consent-box {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.consent-link {
  margin-left: auto;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.consent-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 18. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .philosophy-quote {
    grid-column: 1 / 8;
  }

  .philosophy-aside {
    grid-column: 8 / 13;
  }
}

@media (max-width: 1024px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .section-head > .label,
  .section-head > .section-title,
  .section-head > .section-head-main {
    grid-column: auto;
  }

  .section-head > .label {
    padding-bottom: 0;
  }

  .philosophy-body {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 5vw, 48px);
    align-items: start;
  }

  .philosophy-quote,
  .philosophy-aside {
    grid-column: auto;
  }

  .philosophy-aside {
    max-width: 46em;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: clamp(44px, 7vw, 72px);
  }

  .principles li {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 20px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }

  .principles li p {
    flex-basis: 100%;
    max-width: 52em;
  }

  .split .lead,
  .split .service-list {
    grid-column: 1 / 13;
  }

  .service-list {
    max-width: 34em;
  }

  .footer-brand,
  .footer-nav {
    grid-column: 1 / 13;
  }

  .footer-nav {
    margin-top: clamp(36px, 5vw, 56px);
  }

  .about-intro .lead,
  .about-intro .facts {
    grid-column: 1 / 13;
  }

  .about-intro .facts {
    max-width: 34em;
  }

  .profile-name,
  .profile-bio,
  .profile-links {
    grid-column: 1 / 13;
  }

  .profile-head {
    margin-bottom: 14px;
  }

  .profile-bio {
    max-width: 48em;
  }

  .contact-aside,
  .contact-form-wrap {
    grid-column: 1 / 13;
  }

  .contact-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--gap);
    align-items: start;
  }

  .contact-form-wrap {
    order: -1;
    max-width: 46em;
  }

  .policy-aside {
    display: none;
  }

  .policy {
    grid-column: 1 / 13;
    max-width: 48em;
  }

  .cta-row > p {
    grid-column: 1 / 6;
  }

  .cta-mail-wrap {
    grid-column: 6 / 13;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav-desktop {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero-foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-meta {
    justify-self: start;
    max-width: 34em;
  }

  .hero-top .hide-sm {
    display: none;
  }

  .work--half {
    grid-column: 1 / 13;
  }

  .work--half:nth-child(3) {
    margin-top: 0;
  }

  .work--full .work-media,
  .work--half .work-media {
    aspect-ratio: 4 / 3;
  }

  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .project-media,
  .project-body,
  .project--alt .project-media,
  .project--alt .project-body {
    grid-column: auto;
    grid-row: auto;
  }

  .project-media {
    aspect-ratio: 4 / 3;
  }

  .project-desc {
    max-width: 46em;
  }

  .approach {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .approach li {
    padding: 20px 0;
  }

  .approach p {
    max-width: 48em;
  }

  .capabilities {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .cta-row > p,
  .cta-mail-wrap {
    grid-column: auto;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-copy {
    flex-direction: column;
    gap: 8px;
  }

  .page-title .jp {
    padding-bottom: 0.6em;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.05rem, 10.2vw, 3.2rem);
    letter-spacing: -0.04em;
    line-height: 1.02;
  }

  .hero-title .line--serif {
    font-size: 1.02em;
  }

  .hero {
    min-height: 100svh;
    padding-bottom: 28px;
  }

  .hero-quote p:last-child br {
    display: none;
  }

  .hero-meta > p br {
    display: none;
  }

  .marquee-track span {
    font-size: 0.82rem;
  }

  .section {
    padding-block: clamp(64px, 14vw, 96px);
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .label {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .work-view {
    display: none;
  }

  .philosophy-quote {
    font-size: clamp(1.5rem, 7vw, 2.1rem);
    line-height: 1.7;
  }

  .philosophy-quote br {
    display: none;
  }

  .spell-ring {
    right: -46%;
    width: 130vw;
    opacity: 0.1;
  }

  .cta-title {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-title {
    font-size: clamp(2.9rem, 16vw, 4.6rem);
    line-height: 0.88;
  }

  .page-title .jp {
    padding-bottom: 0.4em;
  }

  .contact-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .consent-row {
    align-items: flex-start;
  }

  .consent-link {
    margin-left: 0;
  }

  .field label {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* 19. Reduced motion / Print
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none !important;
    transform: none !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-title .line > span,
  .hero-foot {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-title .line {
    overflow: visible;
  }

  .spell-ring {
    animation: none;
    transform: translateY(-50%);
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .mobile-menu,
  .grain,
  .marquee,
  .scroll-cue,
  .footer-wordmark {
    display: none !important;
  }

  .hero {
    min-height: 0;
    padding-top: 0;
  }

  a {
    text-decoration: underline;
  }
}
