:root {
  --bg: #fbfbfa;
  --surface: rgba(255, 255, 255, .66);
  --surface-strong: rgba(255, 255, 255, .9);
  --ink: #111;
  --muted: #676767;
  --line: rgba(17, 17, 17, .11);
  --line-strong: rgba(17, 17, 17, .2);
  --gold: #b89058;
  --shadow: 0 24px 80px rgba(17, 17, 17, .08);
  --glass-border: rgba(255, 255, 255, .78);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 0 rgba(17, 17, 17, .04);
  --radius: 8px;
  --ease-luxury: cubic-bezier(.16, 1, .3, 1);
  --font-en: "Josefin Sans", "Noto Sans JP", sans-serif;
  --font-ja: "Josefin Sans", "Noto Sans JP", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: #111;
  color: #fff;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background:
    linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.08)),
    rgba(251, 251, 250, .14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 18px 54px rgba(17,17,17,.035);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
  transition: padding .45s ease, background-color .45s ease, border-color .45s ease, box-shadow .45s ease, opacity .45s ease, transform .55s var(--ease-luxury);
}

.site-header.is-scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.34)),
    rgba(251, 251, 250, .64);
  border-bottom: 1px solid rgba(17, 17, 17, .08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 18px 54px rgba(17,17,17,.07);
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.brand,
.site-nav a,
.eyebrow,
.scroll-cue,
.button,
.coming {
  font-family: var(--font-en);
  letter-spacing: 0;
}

.brand {
  display: inline-grid;
  gap: 4px;
  align-items: start;
  font-weight: 500;
  line-height: 1;
}

.brand-main {
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  font-size: 18px;
}

.site-header .brand-main {
  transform: none;
}

.brand-main > span,
.office-info h3 span,
.site-footer p span {
  font-size: .5em;
  font-weight: 400;
  vertical-align: baseline;
}

.brand-sub {
  color: rgba(17, 17, 17, .46);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.12;
  transition: color .35s ease;
}

.brand-amp {
  display: inline-block;
  font-size: .5em;
  line-height: 1;
  transform: translateY(-.08em);
}

.site-header.is-scrolled .brand-sub {
  color: rgba(17, 17, 17, .52);
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  transform: translateY(-1px);
}

.site-nav a {
  position: relative;
  overflow: hidden;
  padding: 5px 18px;
  border-radius: 999px;
  color: #222;
  font-size: 14px;
  font-weight: 400;
  isolation: isolate;
  transition: background-color .34s var(--ease-luxury), color .28s ease, box-shadow .34s var(--ease-luxury), transform .34s var(--ease-luxury);
}

.site-nav a::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: -1;
  height: calc(100% - 8px);
  content: "";
  border-radius: inherit;
  background: #111;
  opacity: 0;
  transform: translateY(-50%) scaleX(0);
  transform-origin: center;
  filter: none;
  transition: opacity .34s ease, transform .44s var(--ease-luxury);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff;
  outline: none;
  box-shadow: none;
  transform: translateY(-1px);
}

.menu-toggle {
  position: relative;
  display: none;
  overflow: hidden;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .65);
}

.menu-toggle span {
  display: block;
  width: 15px;
  height: 1px;
  margin: 5px auto;
  background: #111;
}

.section-full {
  min-height: 100svh;
}

.hero {
  position: relative;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(48px, 5.8vw, 82px) clamp(24px, 7vw, 108px);
}

.hero-video,
.hero-fallback,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-fallback {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 251, 250, .96) 0%, rgba(251, 251, 250, .72) 44%, rgba(251, 251, 250, .3) 100%),
    radial-gradient(circle at 72% 42%, rgba(214, 216, 214, .78), transparent 34%),
    linear-gradient(135deg, #f8f8f8, #e9e9e9);
}

.hero-video[src=""],
.hero-video:not([src]) {
  display: none;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .36) 0%, rgba(0, 0, 0, .18) 38%, rgba(0, 0, 0, .04) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .04) 52%, rgba(0, 0, 0, .28));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(760px, 100%);
  min-height: calc(100svh - clamp(96px, 11.6vw, 164px));
  flex-direction: column;
  justify-content: space-between;
}

.hero-brand-block {
  align-self: flex-start;
}

.hero-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-family: var(--font-en);
  font-size: clamp(34px, 3.6vw, 42px);
  font-weight: 400;
  line-height: 1;
}

.hero-logo span {
  display: inline-block;
  font-size: .5em;
  font-weight: 400;
  line-height: 1;
  transform: translateY(.02em);
}

.hero-tagline {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .58);
  font-family: var(--font-en);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 300;
  line-height: 1.2;
}

.hero-amp {
  display: inline-block;
  font-size: .5em;
  line-height: 1;
  transform: translateY(-.08em);
}

.hero-copy {
  width: min(720px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, .36);
  font-family: var(--font-en);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 300;
  line-height: 1.4;
}

.scroll-cue {
  position: absolute;
  right: clamp(22px, 5vw, 72px);
  bottom: 36px;
  z-index: 2;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  writing-mode: vertical-rl;
}

.scroll-cue::after {
  display: block;
  width: 1px;
  height: 58px;
  margin: 14px auto 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.78), transparent);
  opacity: .82;
  transform-origin: top;
  animation: scroll-line-flow 2.2s var(--ease-luxury) infinite;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(22px, 2.9vw, 41px) 0 clamp(44px, 5.8vw, 82px);
}

.section-heading {
  --heading-line-gap: clamp(16px, 2vw, 22px);
  position: relative;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding-bottom: var(--heading-line-gap);
  margin-bottom: var(--heading-line-gap);
}

.section-heading::before,
.section-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  height: 1px;
  content: "";
  pointer-events: none;
}

.section-heading::after {
  width: clamp(104px, 14vw, 192px);
  background: linear-gradient(90deg, rgba(17, 17, 17, .5), rgba(17, 17, 17, .16), rgba(17, 17, 17, 0));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.section-heading::before {
  width: 46px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.88), transparent);
  opacity: 0;
  transform: translateX(-36px) scaleX(.4);
  filter: drop-shadow(0 0 8px rgba(17,17,17,.18));
}

.projects .section-heading {
  margin-bottom: calc(var(--heading-line-gap) * 2);
}

.section-heading.reveal {
  opacity: 1;
  clip-path: none;
  filter: none;
  transform: none;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  opacity: 1;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 300;
  line-height: 1;
  transform: none;
  filter: none;
}

.section-heading h2::after {
  display: none;
  content: none;
}

.section-heading.is-visible::after {
  animation: section-line-in 1.05s var(--ease-luxury) .12s both;
}

.section-heading.is-visible::before {
  animation: section-line-sheen 1.2s var(--ease-luxury) .32s both;
}

.profile {
  padding-top: clamp(88px, 11.6vw, 164px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.profile-copy p {
  margin: 0 0 18px;
}

.profile-name {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.35;
}

.profile-name span {
  color: var(--muted);
  font-size: .58em;
}

.profile-title {
  color: var(--muted);
  font-size: 14px;
}

.glass-panel,
.profile-panel,
.service-card,
.team-panel,
.office-panel {
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .46)),
    linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(17, 17, 17, .03));
  border-radius: var(--radius);
  box-shadow: var(--shadow), var(--glass-highlight);
  backdrop-filter: blur(22px) saturate(1.18);
}

.profile-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 48vw, 620px);
  padding: clamp(28px, 6vw, 70px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .68)),
    linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(17, 17, 17, .025));
}

.profile-panel::before {
  position: absolute;
  top: calc(32% + var(--parallax-y, 0px));
  right: clamp(12px, 4vw, 86px);
  z-index: 0;
  width: clamp(320px, 35vw, 520px);
  aspect-ratio: 2 / 3;
  content: "";
  background: url("../images/profile.webp") center / contain no-repeat;
  filter: saturate(.82) brightness(1.08) contrast(.94);
  opacity: .43;
  pointer-events: none;
  transform: translateY(-47%);
  -webkit-mask-image: radial-gradient(ellipse at 52% 42%, #000 0%, #000 46%, rgba(0,0,0,.72) 58%, transparent 78%);
  mask-image: radial-gradient(ellipse at 52% 42%, #000 0%, #000 46%, rgba(0,0,0,.72) 58%, transparent 78%);
}

.profile-panel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 38%, rgba(255,255,255,.24) 72%, rgba(255,255,255,.58) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.34));
  pointer-events: none;
}

.profile-panel .profile-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
}

.profile-assets {
  display: grid;
  gap: 14px;
  width: min(620px, 100%);
  margin-top: 30px;
}

.profile-assets img {
  width: 100%;
  border-radius: 8px;
  filter: drop-shadow(0 14px 28px rgba(17, 17, 17, .08));
  transform: translateY(calc(var(--parallax-y, 0px) * -.12));
  transition: transform .45s ease-out;
}

.office-info h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 300;
}

.service-intro {
  width: min(780px, 100%);
  margin-bottom: clamp(28px, 5vw, 56px);
}

.service-intro h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
}

.service-amp {
  display: inline-block;
  font-size: .5em;
  line-height: 1;
  transform: translateY(-.08em);
}

.service-lead {
  margin: 4px 0 20px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 2;
}

.service-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 34px);
}

.service-card {
  display: grid;
  gap: 0;
  align-content: start;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .66)),
    #f6f6f5;
  padding: 0;
}

.service-card:first-child {
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    #050505;
}

.service-card picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.service-card:first-child picture,
.service-card:first-child img {
  background: #050505;
  box-shadow: 0 0 0 1px #050505;
}

.service-card img {
  width: 100%;
  height: auto;
  border-radius: 0 0 var(--radius) var(--radius);
  object-fit: contain;
  background: transparent;
  cursor: default;
  transform: none;
  transition: transform .45s ease-out;
}

.service-card img:hover {
  transform: none;
}

.service-card-copy {
  width: min(420px, 100%);
  padding: clamp(14px, 2vw, 22px);
}

.service-card-copy p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.05;
}

.service-card-copy h3 {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 300;
  line-height: 1.55;
}

.service-card:first-child .service-card-copy p {
  color: #fff;
}

.service-card:first-child .service-card-copy h3 {
  color: rgba(255,255,255,.62);
}

.team-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  overflow: hidden;
  padding: clamp(22px, 4vw, 48px);
}

.team-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 300;
  line-height: 2;
}

.team-copy p {
  margin: clamp(18px, 2.8vw, 34px) 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 2;
}

.team-video-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  background: #050505;
  box-shadow: 0 24px 70px rgba(17, 17, 17, .14), inset 0 1px 0 rgba(255,255,255,.16);
}

.team-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
}

.office-panel {
  position: relative;
  display: grid;
  min-height: clamp(320px, 42vw, 500px);
  align-items: start;
  justify-items: start;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.3) 36%, rgba(255,255,255,.02) 100%),
    url("../images/office.webp") center / cover no-repeat;
  background-position:
    center,
    center calc(50% + var(--parallax-y, 0px));
}

.office-panel .office-info {
  position: relative;
  z-index: 1;
  transform: translate(-32px, -88px);
}

.project-timeline {
  display: grid;
  width: min(720px, 100%);
  gap: 38px;
  margin-top: -10px;
}

.project-era h3 {
  margin: 0;
  color: #6c6c6c;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.project-era p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0 12px 18px;
  color: #696969;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.24;
}

.project-era p span {
  color: #aaa;
  font-size: .82em;
  transform: translateY(-1px);
}

.project-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-left: 62px;
}

.project-icon {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  clip-path: inset(0 round 14px);
  cursor: pointer;
  line-height: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    box-shadow .35s ease,
    opacity .65s ease var(--reveal-delay, 0ms),
    transform .65s cubic-bezier(.16, 1, .3, 1) var(--reveal-delay, 0ms);
}

.project-icon:hover,
.project-icon:focus-visible {
  box-shadow: none;
  outline: none;
  transform: translateY(-4px);
}

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

.project-icon.is-visible:hover,
.project-icon.is-visible:focus-visible {
  transition-delay: 0ms;
  transform: translateY(-4px);
}

.project-icon img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  clip-path: inset(0 round 14px);
}

.project-icon::after {
  display: none;
}

.project-meta {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 13px;
}

.office-info address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.68;
}

.contact-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.button {
  position: relative;
  overflow: hidden;
  justify-self: start;
  min-width: 154px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.08)),
    rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(17, 17, 17, .1), var(--glass-highlight);
  color: #111;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.2);
  transition: box-shadow .3s ease, transform .3s ease;
}

.button:hover {
  box-shadow: 0 20px 44px rgba(17, 17, 17, .14), var(--glass-highlight);
  transform: translateY(-2px);
}

.button::after,
.project-icon::after,
.menu-toggle::after,
.site-nav a::before {
  position: absolute;
  top: var(--press-y, 50%);
  left: var(--press-x, 50%);
  z-index: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(255,255,255,.72), rgba(255,255,255,0) 70%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
}

.button.is-pressing::after,
.project-icon.is-pressing::after,
.menu-toggle.is-pressing::after,
.site-nav a.is-pressing::before {
  animation: liquid-press .62s var(--ease-luxury);
}

.button > *,
.project-icon > *,
.menu-toggle > *,
.site-nav a {
  isolation: isolate;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 8px 24px;
  align-items: end;
  min-height: 74px;
  padding: 12px clamp(20px, 5vw, 72px) 10px;
  background: #030303;
  color: #fff;
}

.footer-brand {
  grid-column: 1;
  justify-self: start;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.footer-logo span,
.site-footer small span {
  display: inline-block;
  font-size: .5em;
  font-weight: 400;
  line-height: 1;
  transform: translateY(.02em);
}

.footer-tagline {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .42);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.12;
}


.footer-amp {
  display: inline-block;
  font-size: .5em;
  line-height: 1;
  transform: translateY(-.08em);
}

.footer-mail {
  grid-column: 3;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-self: end;
  margin-top: 0;
  color: #fff;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.2;
  text-decoration: none;
  transition: color .28s ease, transform .28s ease;
}

.footer-mail img {
  width: 18px;
  height: auto;
  flex: 0 0 auto;
  pointer-events: none;
  user-select: none;
}

.footer-mail span {
  user-select: text;
  -webkit-user-select: text;
}

.footer-mail:hover,
.footer-mail:focus-visible {
  color: rgba(255, 255, 255, .72);
  outline: none;
  transform: translateY(-1px);
}

.site-footer small {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0;
  color: #fff;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.2;
  opacity: 1;
}

.project-modal {
  --modal-outer-gap: 24px;
  --modal-inset: clamp(22px, 4vw, 42px);
  --modal-flow-gap: 10px;
  --modal-tight-gap: 7px;
  position: fixed;
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(1120px, calc(100vw - (var(--modal-outer-gap) * 2)));
  max-width: none;
  height: auto;
  max-height: calc(100svh - (var(--modal-outer-gap) * 2));
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translate(-50%, -46%) scale(.965);
  filter: blur(8px);
  transition:
    opacity .42s ease,
    transform .58s cubic-bezier(.16, 1, .3, 1),
    filter .42s ease;
}

.project-modal[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0);
}

.project-modal[open] .modal-visual {
  animation: modal-visual-in .72s var(--ease-luxury) both;
}

.project-modal[open] .modal-detail {
  animation: modal-detail-in .78s var(--ease-luxury) .08s both;
}

.project-modal.is-closing {
  opacity: 0;
  transform: translate(-50%, -47%) scale(.97);
  filter: blur(8px);
}

.project-modal.is-closing .modal-layout {
  opacity: 0;
  transform: translateY(10px) scale(.985);
  transition: opacity .24s ease, transform .28s ease;
}

@starting-style {
  .project-modal[open] {
    opacity: 0;
    transform: translate(-50%, -44%) scale(.955);
    filter: blur(10px);
  }
}

.project-modal::backdrop {
  background:
    radial-gradient(circle at 52% 45%, rgba(255,255,255,.34), rgba(255,255,255,0) 34%),
    rgba(250, 250, 249, .62);
  backdrop-filter: blur(18px) saturate(1.16);
  -webkit-backdrop-filter: blur(18px) saturate(1.16);
  opacity: 1;
  transition: opacity .42s ease, backdrop-filter .42s ease;
}

.project-modal::before {
  position: absolute;
  inset: -20px;
  z-index: 0;
  content: "";
  border: 1px solid rgba(255,255,255,.62);
  border-radius: calc(var(--radius) + 20px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,.08)),
    radial-gradient(circle at 18% 14%, rgba(255,255,255,.52), rgba(255,255,255,0) 30%),
    rgba(255,255,255,.12);
  box-shadow: 0 34px 100px rgba(17,17,17,.16), inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  pointer-events: none;
}

.project-modal.is-closing::backdrop {
  opacity: 0;
  backdrop-filter: blur(0);
}

.modal-close {
  position: absolute;
  right: -18px;
  bottom: -46px;
  z-index: 3;
  display: block;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 1px solid rgba(17, 17, 17, .12);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17,17,17,.16), inset 0 1px 0 rgba(255,255,255,.86);
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  transform: none;
  transition: transform .32s var(--ease-luxury), box-shadow .32s ease, background-color .32s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: #fff;
  box-shadow: 0 22px 54px rgba(17,17,17,.22), inset 0 1px 0 rgba(255,255,255,.92);
  outline: none;
  transform: translateY(-2px) scale(1.04);
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 19px;
  left: 12px;
  width: 14px;
  height: 1px;
  content: "";
  background: #111;
  transition: background-color .28s ease;
}

.modal-close:hover::before,
.modal-close:hover::after,
.modal-close:focus-visible::before,
.modal-close:focus-visible::after {
  background: #111;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

.modal-body {
  position: relative;
  z-index: 1;
  max-height: calc(100svh - (var(--modal-outer-gap) * 2));
  overflow: auto;
  padding: var(--modal-inset);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 40px 120px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.82);
  backdrop-filter: blur(28px) saturate(1.12);
  -webkit-backdrop-filter: blur(28px) saturate(1.12);
}

.modal-layout {
  display: grid;
  grid-template-areas:
    "visual main"
    "logos roles"
    ". credit";
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: var(--modal-flow-gap) clamp(24px, 4vw, 54px);
  align-items: start;
}

.modal-main {
  grid-area: main;
  min-width: 0;
}

.modal-visual {
  grid-area: visual;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
}

.modal-visual img {
  width: 100%;
  height: 100%;
  max-height: calc(100svh - (var(--modal-outer-gap) * 2) - (var(--modal-inset) * 2));
  object-fit: contain;
}

.modal-body h3 {
  margin: 0;
  font-size: clamp(22px, 2.55vw, 36px);
  font-weight: 600;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.modal-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  align-items: baseline;
  margin: var(--modal-tight-gap) 0 var(--modal-flow-gap);
}

.modal-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-period {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.modal-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--modal-flow-gap);
}

.modal-list {
  margin: 0 0 var(--modal-flow-gap);
  padding: 0;
  list-style: none;
}

.modal-list li {
  display: flex;
  gap: 1.25px;
  align-items: center;
  margin-bottom: 1.75px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  min-width: 0;
}

.modal-list li img {
  flex: 0 0 auto;
  width: clamp(28px, 3vw, 42px);
  height: clamp(28px, 3vw, 42px);
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(17, 17, 17, .12));
}

.modal-list li span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.role-icons {
  grid-area: roles;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
  align-self: start;
  min-width: 0;
  margin: 0;
}

.role-icon {
  display: inline-grid;
  width: 86px;
  height: 30px;
  flex: 0 1 86px;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.9), rgba(246,248,249,.58));
  box-shadow: 0 10px 24px rgba(17, 17, 17, .08);
  color: #545454;
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-logos {
  grid-area: logos;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-self: start;
  min-height: 38px;
  margin: 0;
}

.client-logo {
  display: block;
  width: clamp(82px, 8vw, 118px);
  height: 38px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255,255,255,.68);
  padding: 5px 8px;
  filter: drop-shadow(0 8px 18px rgba(17, 17, 17, .06));
}

.modal-credit {
  grid-area: credit;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(.982);
  transition:
    opacity .9s ease var(--reveal-delay, 0ms),
    transform .95s var(--ease-luxury) var(--reveal-delay, 0ms),
    filter .95s ease var(--reveal-delay, 0ms),
    clip-path .95s var(--ease-luxury) var(--reveal-delay, 0ms);
  clip-path: inset(8% 0 0 0 round 4px);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  clip-path: inset(0 0 0 0 round 0);
  filter: blur(0);
}

.reveal-surface {
  transform: translateY(34px) scale(.965);
  filter: blur(10px) saturate(.92);
}

.reveal-surface.is-visible {
  transform: translateY(0) scale(1);
  filter: blur(0) saturate(1);
}

.project-icon.reveal {
  transform: translateY(18px) scale(.985);
  transition:
    box-shadow .35s ease,
    opacity .65s ease var(--reveal-delay, 0ms),
    transform .65s var(--ease-luxury) var(--reveal-delay, 0ms),
    filter .65s ease var(--reveal-delay, 0ms);
}

.project-icon.reveal.is-visible {
  transform: translateY(0) scale(1);
}

.project-icon.reveal.is-visible:hover,
.project-icon.reveal.is-visible:focus-visible {
  transform: translateY(-4px) scale(1.02);
}

@keyframes liquid-press {
  0% {
    opacity: .48;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes section-line-in {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  55% {
    opacity: .42;
  }
  100% {
    opacity: .38;
    transform: scaleX(1);
  }
}

@keyframes section-line-sheen {
  0% {
    opacity: 0;
    transform: translateX(-36px) scaleX(.35);
  }
  34% {
    opacity: .62;
  }
  100% {
    opacity: 0;
    transform: translateX(clamp(104px, 14vw, 192px)) scaleX(.9);
  }
}

@keyframes scroll-line-flow {
  0% {
    opacity: 0;
    transform: scaleY(0) translateY(-8px);
  }
  36% {
    opacity: .9;
    transform: scaleY(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scaleY(.28) translateY(18px);
  }
}

@keyframes modal-visual-in {
  0% {
    opacity: 0;
    transform: translateX(-22px) scale(.985);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes modal-detail-in {
  0% {
    opacity: 0;
    transform: translateX(22px);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

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

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .site-header {
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
  }

  .site-header .brand {
    justify-items: start;
    text-align: left;
  }

  .site-header .brand-main {
    transform: none;
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    display: block;
    transform: translateY(-50%);
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    overflow: hidden;
    padding: 4px;
    border: 1px solid rgba(17, 17, 17, .08);
    border-radius: var(--radius);
    background: rgba(255,255,255,.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 16px;
    border-radius: 999px;
    border-bottom: 0;
  }

  .site-nav a::after {
    top: 50%;
    right: 0;
    left: 0;
    height: calc(100% - 8px);
    background: #111;
    transform-origin: center;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: #fff;
    box-shadow: none;
    transform: translateY(-1px);
  }

  .hero {
    align-items: stretch;
    padding: 148px 22px 118px;
  }

  .hero-inner {
    min-height: calc(100svh - 266px);
  }

  .profile {
    padding-top: clamp(680px, 180vw, 1080px);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.42) 72%),
      linear-gradient(90deg, rgba(0,0,0,.32), rgba(0,0,0,.08));
  }

  .scroll-cue {
    right: 18px;
    bottom: 18px;
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.62);
  }

  .scroll-cue::after {
    height: 44px;
    margin-top: 10px;
  }

  .section {
    width: min(100% - 32px, 1120px);
    padding: 22px 0 44px;
  }

  .project-timeline {
    gap: 34px;
  }

  .project-era h3 {
    font-size: 14px;
  }

  .project-era p {
    margin-left: 12px;
    font-size: 14px;
  }

  .project-icons {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-left: 0;
  }

  .project-icon {
    width: min(100%, 320px);
    justify-self: center;
  }

  .service-intro {
    margin-bottom: 28px;
  }

  .service-intro h3 {
    font-size: 14px;
    line-height: 1.9;
  }

  .service-lead {
    margin: 4px 0 18px;
    font-size: 14px;
    line-height: 1.9;
  }

  .service-intro > p:last-child {
    font-size: 14px;
    line-height: 1.9;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    gap: 0;
    padding: 0;
  }

  .service-card picture {
    overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .service-card:nth-child(2),
  .service-card:nth-child(2) picture,
  .service-card:nth-child(2) img {
    background: #fff;
  }

  .service-card img {
    aspect-ratio: auto;
    max-height: calc(100svh - 112px);
    object-fit: contain;
  }

  .service-card-copy {
    padding: 12px 14px 10px;
  }

  .service-card-copy h3 {
    font-size: 14px;
  }

  .service-card-copy p {
    font-size: 32px;
  }

  .team-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .team-copy h3 {
    font-size: 14px;
    line-height: 1.9;
  }

  .team-copy p {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.9;
  }

  .team-video-wrap {
    background: transparent;
    box-shadow: none;
    line-height: 0;
  }

  .team-video {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
    border-radius: inherit;
  }

  .profile-panel {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 28px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.7)),
      linear-gradient(135deg, rgba(255,255,255,.45), rgba(17,17,17,.025));
  }

  .profile-panel::before {
    top: -18px;
    right: -10px;
    width: min(82vw, 360px);
    opacity: .68;
    filter: saturate(.9) brightness(1.04) contrast(1.02);
    transform: none;
  }

  .profile-panel::after {
    background:
      linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 43%, rgba(255,255,255,.24) 72%, rgba(255,255,255,.12) 100%),
      linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.42));
  }

  .modal-list li {
    gap: .75px;
    margin-bottom: 1.25px;
    font-size: 10px;
    line-height: 1.18;
  }

  .modal-list li img {
    width: 20px;
    height: 20px;
  }

  .project-modal {
    --modal-outer-gap: 8px;
    --modal-inset: 13px;
    --modal-flow-gap: 9px;
    --modal-tight-gap: 6px;
  }

  .project-modal::before {
    inset: -8px;
    border-radius: calc(var(--radius) + 8px);
  }

  .modal-close {
    right: -4px;
    bottom: -24px;
    width: 34px;
    height: 34px;
    border-color: rgba(255, 255, 255, .92);
    background: #fff;
    box-shadow: 0 18px 44px rgba(17,17,17,.16), inset 0 1px 0 rgba(255,255,255,.92);
  }

  .modal-close::before,
  .modal-close::after {
    top: 16px;
    left: 10px;
    width: 12px;
  }

  .modal-body {
    max-height: calc(100svh - 72px);
    padding: var(--modal-inset);
  }

  .modal-layout {
    grid-template-areas:
      "visual"
      "logos"
      "main"
      "roles"
      "credit";
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-visual {
    margin-bottom: 0;
  }

  .modal-visual img {
    width: 100%;
    height: auto;
    max-height: 44svh;
    object-fit: contain;
  }

  .modal-body h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.15;
  }

  .modal-subtitle,
  .modal-period,
  .modal-credit {
    font-size: 11px;
    line-height: 1.42;
  }

  .modal-subtitle {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .modal-meta-row {
    gap: 8px;
    margin: var(--modal-tight-gap) 0 var(--modal-flow-gap);
  }

  .modal-columns {
    gap: var(--modal-flow-gap);
  }

  .modal-columns > div > p {
    margin: 0;
    font-size: 11px;
    line-height: 1.38;
  }

  .modal-list {
    margin-bottom: var(--modal-flow-gap);
  }

  .role-icons {
    gap: 6px;
    margin: 0;
  }

  .role-icon {
    width: 74px;
    flex-basis: 74px;
    height: 26px;
    border-radius: 13px;
    font-size: 10px;
  }

  .client-logos {
    gap: 6px;
    min-height: 28px;
    margin: 0;
  }

  .client-logo {
    width: 72px;
    height: 28px;
    padding: 4px 6px;
  }

  .site-footer {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    gap: 8px 12px;
    align-items: end;
    min-height: 0;
    padding: 14px clamp(20px, 5vw, 72px) 12px;
  }

  .footer-brand {
    grid-column: 1;
    justify-self: start;
  }

  .footer-mail {
    grid-column: 2;
    justify-self: end;
    gap: 4px;
    margin-top: 0;
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.12;
    white-space: nowrap;
  }

  .footer-mail img {
    width: 14px;
  }

  .site-footer small {
    grid-column: 1 / -1;
    justify-self: center;
    font-size: 11px;
    text-align: center;
  }
}
