@charset "UTF-8";

:root {
  --bg: #f6f3ed;
  --surface: #ffffff;
  --surface-2: #eee9df;
  --text: #1d1d1b;
  --muted: #635f57;
  --accent: #8e6841;
  --accent-2: #b89970;
  --line: rgba(29, 29, 27, 0.16);
  --on-accent: #ffffff;
  --display: "Yu Mincho", "Hiragino Mincho ProN", "BIZ UDPMincho", serif;
  --body: "Yu Gothic", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", sans-serif;
  --container: 1180px;
  --reading: 42rem;
  --section-y: clamp(5rem, 10vw, 9rem);
  --radius: 0;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --page-progress: .08;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .025em;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .045em;
  text-wrap: balance;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

p {
  text-wrap: pretty;
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: .75rem 1rem;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.eyebrow {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  gap: .12rem;
  text-decoration: none;
  line-height: 1.2;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.brand small {
  color: var(--accent);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:not(.header-cta)::after {
  content: "";
  position: absolute;
  inset: auto 0 8px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform .35s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--body);
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s var(--ease), background .25s, color .25s;
}

.header-cta {
  min-height: 44px;
  padding-inline: 1.4rem;
}

.button {
  padding: .9rem 1.8rem;
}

.button--ghost {
  background: transparent;
  color: var(--text);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.menu-button span {
  grid-area: 1 / 1;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease);
}

.menu-button span:first-child {
  transform: translateY(-4px);
}

.menu-button span:last-child {
  transform: translateY(4px);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu[hidden] {
  display: none;
}

.page-progress {
  position: fixed;
  top: 76px;
  right: 0;
  z-index: 45;
  width: 3px;
  height: calc((100dvh - 76px) * var(--page-progress));
  background: var(--accent);
  transition: height .6s var(--ease);
}

.hero {
  position: relative;
  min-height: 100dvh;
  padding-top: 76px;
  overflow: hidden;
  display: grid;
  align-items: stretch;
}

.hero__layout {
  width: min(100%, 1580px);
  min-height: calc(100dvh - 76px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(4rem, 8vw, 9rem) clamp(2rem, 4vw, 5rem);
}

.hero__title {
  max-width: 16ch;
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 3.8vw, 3.6rem);
  line-height: 1.36;
  letter-spacing: .055em;
}

.hero__lead {
  max-width: 34rem;
  margin-bottom: 2.2rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero__visual {
  position: relative;
  min-height: 40rem;
  overflow: hidden;
}

.hero__visual picture,
.hero__visual img {
  width: 100%;
  height: 100%;
}

.hero__visual img {
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.hero__caption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.4rem;
  z-index: 2;
  padding: .5rem .75rem;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--surface {
  background: var(--surface);
}

.section--dark {
  color: #f5f1e8;
  background: #171816;
}

.section--dark .section-head__body,
.section--dark .story__body,
.section--dark .profile__body {
  color: rgba(255, 255, 255, .72);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(18rem, 4fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.section-head__title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.section-head__body {
  max-width: var(--reading);
  margin: 0;
  color: var(--muted);
}

.philosophy {
  min-height: 78dvh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 12, 12, .9), rgba(10, 12, 12, .58)),
    var(--philosophy-image) center / cover no-repeat;
  color: #fff;
}

.philosophy__inner {
  max-width: 57rem;
  margin-left: 0;
}

.philosophy h2 {
  max-width: 18ch;
  margin-bottom: 2.5rem;
  font-size: clamp(2.1rem, 3.2vw, 3.25rem);
}

.philosophy__copy {
  max-width: 42rem;
  color: rgba(255, 255, 255, .78);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.service-card {
  position: relative;
  grid-column: span 4;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.service-card:nth-child(2) {
  transform: translateY(2.5rem);
}

.service-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.service-card:hover img {
  transform: scale(1.035);
}

.service-card__body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.service-card__number,
.value-card__number {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .94rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: repeat(2, minmax(15rem, auto));
  gap: 1rem;
}

.value-card {
  position: relative;
  min-height: 18rem;
  padding: clamp(1.6rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.value-card:first-child {
  grid-row: 1 / 3;
  min-height: 38rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .76)),
    var(--value-image) center / cover no-repeat;
}

.value-card:first-child p {
  color: rgba(255, 255, 255, .78);
}

.value-card h3 {
  margin-bottom: .8rem;
  font-size: clamp(1.35rem, 2.5vw, 2.3rem);
}

.value-card p {
  max-width: 33rem;
  margin-bottom: 0;
  color: var(--muted);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: center;
}

.profile__image {
  position: relative;
}

.profile__image::before {
  content: "";
  position: absolute;
  inset: -1rem 1rem 1rem -1rem;
  border: 1px solid var(--accent);
  pointer-events: none;
}

.profile__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile__title {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 3.4vw, 3.5rem);
}

.profile__title span {
  display: block;
}

.profile__name-latin {
  margin-top: .5rem;
  font-family: var(--body);
  font-size: .54em;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .08em;
  white-space: nowrap;
}

.profile__role {
  margin-bottom: 2rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.profile__body {
  max-width: var(--reading);
  color: var(--muted);
}

.story {
  min-height: 88dvh;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 12, 12, .92) 0%, rgba(10, 12, 12, .72) 48%, rgba(10, 12, 12, .22) 100%),
    var(--story-image) center / cover no-repeat;
}

.story__inner {
  width: min(100%, 48rem);
}

.story__title {
  max-width: 18ch;
  margin-bottom: 2.5rem;
  font-size: clamp(2.1rem, 3.2vw, 3.25rem);
}

.story__body {
  max-width: 42rem;
  color: rgba(255, 255, 255, .78);
}

.story__body p:last-child,
.profile__body p:last-child {
  margin-bottom: 0;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.link-card {
  position: relative;
  min-height: 12rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .3s var(--ease),
    border-color .3s var(--ease),
    background-color .3s var(--ease),
    box-shadow .3s var(--ease);
}

.link-card::after {
  content: "↗";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--accent);
  font-size: 1.4rem;
  transition: transform .3s var(--ease);
}

.link-card:hover::after {
  transform: translate(.2rem, -.2rem);
}

@media (hover: hover) and (pointer: fine) {
  .link-card:hover {
    z-index: 1;
    transform: translateY(-4px) scale(1.01);
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
    background-color: color-mix(in srgb, var(--accent) 7%, transparent);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 17%, transparent);
  }
}

.link-card:focus-visible {
  z-index: 2;
  outline: 2px solid var(--accent);
  outline-offset: -3px;
  transform: translateY(-3px);
  background-color: color-mix(in srgb, var(--accent) 7%, transparent);
}

.link-card:focus-visible::after {
  transform: translate(.2rem, -.2rem);
}

.link-card:active {
  transform: translateY(0) scale(.985);
}

.link-card small {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.link-card strong {
  display: block;
  margin-bottom: .6rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  font-weight: 500;
}

.link-card span {
  display: block;
  max-width: 31rem;
  color: var(--muted);
  font-size: .9rem;
}

.final-message {
  min-height: 75dvh;
  display: grid;
  place-items: center;
  text-align: center;
}

.final-message__inner {
  max-width: 52rem;
}

.final-message h2 {
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: clamp(2.1rem, 3.2vw, 3.25rem);
}

.final-message p {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.site-footer {
  padding-block: 4rem 2rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
}

.footer-meta {
  text-align: right;
  color: var(--muted);
  font-size: .78rem;
}

.footer-meta a {
  display: inline-block;
  min-height: 44px;
  padding-block: .55rem;
  text-underline-offset: .25em;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* BLACK — architecture / measured darkness */
body[data-theme="black"] {
  --bg: #111311;
  --surface: #171a18;
  --surface-2: #20231f;
  --text: #f2efe8;
  --muted: #b8b5ad;
  --accent: #ba9a6a;
  --accent-2: #6f846b;
  --line: rgba(255, 255, 255, .14);
  --on-accent: #111311;
}

body[data-theme="black"] .hero__visual {
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

body[data-theme="black"] .hero::before,
body[data-theme="tec"] .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
}

body[data-theme="black"] .section--surface,
body[data-theme="black"] .service-card,
body[data-theme="black"] .value-card {
  background-color: var(--surface);
}

/* ELEGANT — editorial ribbon */
body[data-theme="elegant"] {
  --bg: #f7f0ec;
  --surface: #fffaf7;
  --surface-2: #eadbd8;
  --text: #362b2c;
  --muted: #756568;
  --accent: #9b5f69;
  --accent-2: #c79ba1;
  --line: rgba(93, 61, 66, .18);
  --on-accent: #fff;
}

body[data-theme="elegant"] .hero__copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -16vw;
  bottom: 16%;
  width: 42vw;
  height: 4.5rem;
  transform: rotate(-7deg);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}

body[data-theme="elegant"] .hero__visual {
  margin: 2.5rem 2.5rem 2.5rem 0;
  border-radius: 50% 50% 2rem 2rem / 18% 18% 2rem 2rem;
}

body[data-theme="elegant"] .service-card {
  border-radius: 14rem 14rem 1rem 1rem;
}

body[data-theme="elegant"] .service-card__image {
  border-radius: inherit;
}

/* EXECUTIVE — private ledger */
body[data-theme="executive"] {
  --bg: #0f1822;
  --surface: #172331;
  --surface-2: #203042;
  --text: #f5f1e7;
  --muted: #bbc3c9;
  --accent: #c79b5a;
  --accent-2: #7f9caf;
  --line: rgba(231, 214, 184, .18);
  --on-accent: #111923;
}

body[data-theme="executive"] .section {
  counter-increment: section;
}

body[data-theme="executive"] main {
  counter-reset: section;
}

body[data-theme="executive"] .section::after {
  content: "0" counter(section);
  position: absolute;
  top: 2rem;
  right: max(1.5rem, calc((100vw - var(--container)) / 2));
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: .75rem;
  letter-spacing: .2em;
}

body[data-theme="executive"] .service-card,
body[data-theme="executive"] .value-card {
  background: var(--surface);
}

body[data-theme="executive"] .hero__visual {
  border-left: 1px solid var(--accent);
}

/* FEMININE — botanical atelier */
body[data-theme="feminine"] {
  --bg: #fff7f4;
  --surface: #fffdfb;
  --surface-2: #f5e4e6;
  --text: #49353b;
  --muted: #806d72;
  --accent: #a75f77;
  --accent-2: #7b986f;
  --line: rgba(119, 77, 89, .16);
  --on-accent: #fff;
  --display: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

body[data-theme="feminine"] .hero__visual {
  margin: 1.5rem;
  clip-path: ellipse(68% 76% at 62% 48%);
}

body[data-theme="feminine"] .service-card:nth-child(1) {
  border-radius: 48% 48% 1.2rem 1.2rem;
}

body[data-theme="feminine"] .service-card:nth-child(2) {
  border-radius: 1.2rem 48% 48% 1.2rem;
}

body[data-theme="feminine"] .service-card:nth-child(3) {
  border-radius: 1.2rem 1.2rem 48% 48%;
}

/* JAPAN — tea room / shoji */
body[data-theme="japan"] {
  --bg: #f1eee5;
  --surface: #faf8f1;
  --surface-2: #e4dfd1;
  --text: #292c28;
  --muted: #66675f;
  --accent: #536650;
  --accent-2: #a37c49;
  --line: rgba(52, 62, 51, .18);
  --on-accent: #fff;
}

body[data-theme="japan"] .hero::after {
  content: "";
  position: absolute;
  inset: 76px 0 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5vw 12.5vw;
}

body[data-theme="japan"] .hero__visual {
  margin: 3rem 3rem 3rem 0;
}

body[data-theme="japan"] #business .section-head__title {
  writing-mode: vertical-rl;
  justify-self: start;
}

body[data-theme="japan"] #business .section-head {
  align-items: start;
}

body[data-theme="japan"] .service-card {
  border-width: 1px 0 0;
  background: transparent;
}

/* NATURAL — seasonal table */
body[data-theme="natural"] {
  --bg: #f4f1e5;
  --surface: #fffdf5;
  --surface-2: #e0e3ce;
  --text: #334039;
  --muted: #657168;
  --accent: #667d56;
  --accent-2: #b46f4c;
  --line: rgba(57, 75, 64, .17);
  --on-accent: #fff;
  --radius: 2rem;
}

body[data-theme="natural"] .hero__visual {
  margin: 2rem 2rem 2rem 0;
  border-radius: 48% 1rem 48% 1rem;
}

body[data-theme="natural"] .service-card,
body[data-theme="natural"] .value-card,
body[data-theme="natural"] .link-card {
  border-radius: var(--radius);
}

body[data-theme="natural"] .business-grid {
  padding: 1rem;
  border-radius: 3rem;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

/* POP — learning cards */
body[data-theme="pop"] {
  --bg: #fff9e9;
  --surface: #ffffff;
  --surface-2: #dfefff;
  --text: #21325a;
  --muted: #5b6784;
  --accent: #ef6d4d;
  --accent-2: #2f79d6;
  --line: rgba(33, 50, 90, .18);
  --on-accent: #fff;
  --display: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --radius: 1.4rem;
}

body[data-theme="pop"] .hero {
  background:
    radial-gradient(circle at 14% 28%, #ffd85f 0 4rem, transparent 4.1rem),
    radial-gradient(circle at 46% 84%, #a9dcff 0 6rem, transparent 6.1rem),
    var(--bg);
}

body[data-theme="pop"] .hero__visual {
  margin: 1rem;
  border-radius: 2rem 8rem 2rem 8rem;
  transform: rotate(1deg);
}

body[data-theme="pop"] .service-card {
  border: 2px solid var(--text);
  border-radius: var(--radius);
  box-shadow: .6rem .6rem 0 var(--accent-2);
}

body[data-theme="pop"] .service-card:nth-child(2) {
  box-shadow: .6rem .6rem 0 #ffd85f;
}

body[data-theme="pop"] .service-card:nth-child(3) {
  box-shadow: .6rem .6rem 0 #8dd5b2;
}

/* TEC — operational rail */
body[data-theme="tec"] {
  --bg: #071419;
  --surface: #0d2026;
  --surface-2: #123039;
  --text: #eaf6f3;
  --muted: #a4b9b6;
  --accent: #42d0b0;
  --accent-2: #73a9ff;
  --line: rgba(117, 220, 199, .18);
  --on-accent: #071419;
  --display: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

body[data-theme="tec"] .hero__visual {
  clip-path: polygon(9% 0, 100% 0, 100% 91%, 0 100%);
}

body[data-theme="tec"] .hero__title span {
  display: block;
}

@media (min-width: 981px) {
  body[data-theme="tec"] .hero {
    isolation: isolate;
    background: #071419;
  }

  body[data-theme="tec"] .hero::before {
    z-index: 1;
    opacity: .16;
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, #000 0 48%, transparent 70%);
  }

  body[data-theme="tec"] .hero__layout {
    position: relative;
    width: 100%;
    display: block;
  }

  body[data-theme="tec"] .hero__visual {
    position: absolute;
    z-index: -2;
    inset: 0;
    min-height: 0;
    clip-path: none;
  }

  body[data-theme="tec"] .hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, #071419 0%, rgba(7, 20, 25, .98) 23%, rgba(7, 20, 25, .88) 39%, rgba(7, 20, 25, .2) 64%, transparent 78%),
      linear-gradient(180deg, rgba(7, 20, 25, .16), transparent 45%, rgba(7, 20, 25, .18));
    pointer-events: none;
  }

  body[data-theme="tec"] .hero__visual img {
    object-position: center center;
  }

  body[data-theme="tec"] .hero__copy {
    width: min(62rem, 54vw);
    min-height: calc(100dvh - 76px);
    padding: clamp(3rem, 6vh, 5rem) clamp(2.5rem, 3vw, 4rem);
    padding-left: max(3rem, calc((100vw - var(--container)) / 2));
    justify-content: center;
  }

  body[data-theme="tec"] .hero__copy::after {
    content: "";
    position: absolute;
    top: 8%;
    right: 0;
    bottom: 8%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--accent) 18% 82%, transparent);
    opacity: .72;
  }

  body[data-theme="tec"] .hero__title {
    max-width: none;
    margin-bottom: 1.5rem;
    font-size: clamp(2.75rem, 3vw, 3.6rem);
    line-height: 1.28;
    letter-spacing: .025em;
  }

  body[data-theme="tec"] .hero__title span {
    white-space: nowrap;
  }

  body[data-theme="tec"] .hero__title span + span {
    margin-top: .2em;
  }

  body[data-theme="tec"] .hero__lead {
    max-width: 37rem;
    margin-bottom: 1.75rem;
  }

}

body[data-theme="tec"] .service-card {
  background:
    linear-gradient(135deg, rgba(66, 208, 176, .08), transparent 45%),
    var(--surface);
}

body[data-theme="tec"] .service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 2px solid var(--accent);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .55s var(--ease);
  pointer-events: none;
}

body[data-theme="tec"] .service-card:hover::after {
  transform: scaleX(1);
}

/* WHITE — calm modular order */
body[data-theme="white"] {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --surface-2: #e8eee9;
  --text: #29332f;
  --muted: #68726d;
  --accent: #6e897b;
  --accent-2: #c49b75;
  --line: rgba(41, 51, 47, .14);
  --on-accent: #fff;
  --radius: .5rem;
}

body[data-theme="white"] .hero__layout {
  grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
}

body[data-theme="white"] .hero__visual {
  margin: 2.5rem 2.5rem 2.5rem 0;
}

body[data-theme="white"] .hero__visual img {
  object-position: right center;
}

body[data-theme="white"] .service-card {
  border-top: .45rem solid var(--accent);
}

body[data-theme="white"] .values-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}

body[data-theme="white"] .value-card:first-child {
  grid-row: auto;
  min-height: 24rem;
}

@media (min-width: 981px) {
  body[data-theme="elegant"] .hero__title,
  body[data-theme="tec"] .hero__title {
    max-width: 18ch;
    font-size: clamp(2.4rem, 3.4vw, 3.25rem);
  }
}

@media (hover: hover) {
  .hero:hover .hero__visual img {
    transform: scale(1.018);
  }
}

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

  .menu-button {
    display: grid;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 1.5rem 2rem;
    background: var(--bg);
  }

  .mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-menu a {
    display: flex;
    min-height: 62px;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.35rem;
    text-decoration: none;
  }

  .mobile-menu small {
    color: var(--accent);
    font-family: var(--body);
    font-size: .6rem;
    letter-spacing: .18em;
  }

  .mobile-menu a.mobile-menu__cta {
    min-height: 54px;
    margin-top: 1rem;
    padding-inline: 1rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    background: var(--accent);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 24%, transparent);
    color: var(--on-accent);
    font-family: var(--body);
    font-size: 1rem;
    font-weight: 700;
  }

  .mobile-menu a.mobile-menu__cta small {
    color: inherit;
  }

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

  .hero__copy {
    min-height: 50dvh;
    padding: 6rem 1.5rem 3rem;
  }

  .hero__visual {
    min-height: 54dvh;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  body[data-theme="japan"] #business .section-head__title {
    min-height: 0;
    writing-mode: horizontal-tb;
  }

  .service-card {
    grid-column: span 6;
  }

  .service-card:last-child {
    grid-column: 4 / 10;
  }

  .service-card:nth-child(2) {
    transform: none;
  }

  .profile {
    gap: 3rem;
  }
}

@media (max-width: 700px) {
  :root {
    --section-y: 4.75rem;
  }

  body {
    line-height: 1.82;
  }

  .container {
    width: min(calc(100% - 2.25rem), var(--container));
  }

  .header-inner {
    min-height: 64px;
  }

  .page-progress {
    top: 64px;
  }

  .brand strong {
    font-size: .9rem;
  }

  .hero {
    min-height: 92dvh;
    padding-top: 64px;
  }

  .hero__layout {
    position: relative;
    min-height: calc(92dvh - 64px);
    display: flex;
    align-items: flex-end;
  }

  .hero__copy {
    z-index: 3;
    width: 100%;
    min-height: 0;
    padding: 8rem 1.25rem 2.2rem;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 10, .78) 58%, rgba(8, 10, 10, .92) 100%);
  }

  .hero__visual {
    position: absolute;
    inset: 0;
    min-height: 0;
    margin: 0 !important;
    border-radius: 0 !important;
    clip-path: none !important;
    transform: none !important;
  }

  .hero__visual picture,
  .hero__visual img {
    position: absolute;
    inset: 0;
  }

  .hero__visual img {
    object-position: center;
  }

  .hero__caption {
    display: none;
  }

  .hero__title {
    max-width: 100%;
    margin-bottom: 1.2rem;
    font-size: clamp(1.8rem, 8.6vw, 2.15rem);
    line-height: 1.42;
  }

  .hero__lead {
    max-width: 30rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, .82);
    font-size: .92rem;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .button {
    flex: 1 1 100%;
  }

  .hero__actions .button--ghost {
    border-color: rgba(255, 255, 255, .65);
    color: #fff;
  }

  body[data-theme="tec"] .hero {
    min-height: 100dvh;
  }

  body[data-theme="tec"] .hero__layout {
    min-height: calc(100dvh - 64px);
  }

  body[data-theme="tec"] .hero__copy {
    padding-top: 11rem;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 20, 25, .38) 25%, rgba(7, 20, 25, .94) 52%, #071419 100%);
  }

  body[data-theme="tec"] .hero__title {
    font-size: clamp(1.75rem, 7.9vw, 2.05rem);
  }

  body[data-theme="tec"] .hero__visual img {
    object-position: 64% center;
  }

  .philosophy {
    min-height: 92dvh;
    background:
      linear-gradient(180deg, rgba(10, 12, 12, .38), rgba(10, 12, 12, .92) 74%),
      var(--philosophy-image) center / cover no-repeat;
    align-items: end;
  }

  .philosophy h2 {
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 2rem);
  }

  .section-head {
    margin-bottom: 2.75rem;
  }

  .section-head__title {
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 2rem);
  }

  .business-grid {
    display: flex;
    width: auto;
    margin-inline: -1.125rem;
    padding: .25rem 1.125rem 1.25rem;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .business-grid::-webkit-scrollbar {
    display: none;
  }

  .service-card,
  .service-card:last-child {
    flex: 0 0 82%;
    grid-column: auto;
    scroll-snap-align: center;
    border-radius: var(--radius);
  }

  body[data-theme="pop"] .service-card {
    margin-bottom: .75rem;
  }

  .service-card__body {
    padding: 1.35rem;
  }

  .values-grid,
  body[data-theme="white"] .values-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: .75rem;
  }

  .value-card,
  .value-card:first-child,
  body[data-theme="white"] .value-card:first-child {
    grid-row: auto;
    min-height: 17rem;
    padding: 1.25rem;
  }

  .value-card:first-child {
    grid-column: 1 / 3;
    min-height: 70dvh;
  }

  .value-card p {
    font-size: .86rem;
  }

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

  .profile__image {
    width: 88%;
    margin-inline: auto;
  }

  .profile__copy {
    width: 88%;
    margin-left: auto;
  }

  .profile__title {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .story {
    min-height: 100dvh;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(10, 12, 12, .14), rgba(10, 12, 12, .94) 65%),
      var(--story-image) center / cover no-repeat;
  }

  .story__title {
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 2rem);
  }

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

  .link-card {
    min-height: 13.5rem;
    padding: 1.2rem;
  }

  .link-card::after {
    top: 1rem;
    right: 1rem;
  }

  .link-card strong {
    font-size: 1.15rem;
  }

  .link-card span {
    font-size: .78rem;
    line-height: 1.65;
  }

  .final-message {
    min-height: 82dvh;
    text-align: left;
  }

  .final-message h2 {
    max-width: 100%;
    margin-left: 0;
    font-size: clamp(1.75rem, 8vw, 2rem);
  }

  .final-message p {
    margin-left: 0;
  }

  .final-message .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
  }

  body[data-theme="elegant"] .hero__copy::after,
  body[data-theme="japan"] .hero::after {
    display: none;
  }
}

@media (max-width: 390px) {
  .links-grid {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 11rem;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
