: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);
  transition: padding .45s ease, background-color .45s ease, border-color .45s ease;
}

.site-header.is-scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
  background: rgba(251, 251, 250, .76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

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

.brand {
  font-size: 18px;
  font-weight: 500;
}

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

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

.site-nav a {
  position: relative;
  overflow: hidden;
  padding: 5px 18px;
  border-radius: 999px;
  color: #222;
  font-size: 14px;
  font-weight: 400;
  transition: background-color .28s ease, color .28s ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}

.site-nav a:hover::after {
  transform: scaleX(0);
  transform-origin: left;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #111;
  color: #fff;
  outline: none;
}

.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: center;
  overflow: hidden;
  padding: 120px 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%),
    url("../images/hero-fallback.png") center / cover no-repeat,
    radial-gradient(circle at 78% 24%, rgba(184, 144, 88, .14), transparent 32%),
    #fbfbfa;
}

.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;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
}

.hero-title {
  width: min(980px, 100%);
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5.3vw, 76px);
  font-weight: 300;
  line-height: 1.22;
}

.hero-times {
  display: inline-block;
  font-size: .72em;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-.06em) scaleX(.82);
}

.hero-copy {
  width: min(520px, 100%);
  margin: 34px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
}

.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: 54px;
  margin: 14px auto 0;
  content: "";
  background: linear-gradient(rgba(255, 255, 255, .5), transparent);
}

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

.section-heading {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding-bottom: 18px;
  margin-bottom: clamp(44px, 6.4vw, 76px);
}

.section-heading::after {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: clamp(92px, 13vw, 180px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(17, 17, 17, .42), rgba(17, 17, 17, .08));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.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 1s var(--ease-luxury) .12s both;
}

.profile {
  padding-top: clamp(44px, 5.8vw, 82px);
}

.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,
.contact-form,
.profile-panel,
.service-card,
.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(34px, 8vw, 126px);
  z-index: 0;
  width: clamp(320px, 35vw, 520px);
  aspect-ratio: 2 / 3;
  content: "";
  background: url("../images/profile_a.png") 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 12px;
  font-size: 22px;
  font-weight: 300;
}

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

.service-intro h3 {
  margin: 0;
  font-size: clamp(26px, 3.7vw, 48px);
  font-weight: 300;
  line-height: 1.18;
}

.service-lead {
  margin: 16px 0 20px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.6;
}

.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:first-child img {
  display: block;
  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);
}

.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.jpg") 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(-10px, -56px);
}

.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: 18px;
  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;
}

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

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 42px);
}

.contact-form label {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 13px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .25s ease;
}

.contact-form input,
.contact-form select {
  height: 44px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
}

.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: 1fr;
  align-items: center;
  justify-items: center;
  min-height: 86px;
  padding: 0 clamp(24px, 7vw, 108px);
  background: #050505;
  color: #fff;
}

.site-footer small {
  justify-self: center;
}

.site-footer small {
  margin: 0;
  color: #fff;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
  opacity: 1;
  text-align: center;
  transform: none;
  filter: none;
}

.project-modal {
  --modal-outer-gap: 16px;
  --modal-inset: clamp(22px, 4vw, 42px);
  --modal-flow-gap: 10px;
  --modal-tight-gap: 7px;
  position: fixed;
  top: var(--modal-outer-gap);
  right: var(--modal-outer-gap);
  bottom: auto;
  left: var(--modal-outer-gap);
  width: auto;
  max-width: none;
  height: auto;
  max-height: calc(100svh - (var(--modal-outer-gap) * 2));
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 40px 120px rgba(0,0,0,.24);
  backdrop-filter: blur(28px);
  opacity: 0;
  transform: translateY(28px) scale(.965);
  filter: blur(8px);
  transition:
    opacity .42s ease,
    transform .52s cubic-bezier(.16, 1, .3, 1),
    filter .42s ease;
}

.project-modal[open] {
  opacity: 1;
  transform: translateY(0) 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: translateY(18px) 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: translateY(34px) scale(.955);
    filter: blur(10px);
  }
}

.project-modal::backdrop {
  background: rgba(250, 250, 249, .78);
  backdrop-filter: blur(14px) saturate(1.08);
  opacity: 1;
  transition: opacity .42s ease, backdrop-filter .42s ease;
}

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

.modal-close {
  position: absolute;
  top: var(--modal-inset);
  right: var(--modal-inset);
  z-index: 2;
  display: block;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  top: 17px;
  left: 10px;
  width: 14px;
  height: 1px;
  content: "";
  background: #111;
}

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

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

.modal-body {
  padding: var(--modal-inset);
}

.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.modal-detail {
  min-width: 0;
  padding-right: calc(36px + var(--modal-flow-gap));
}

.modal-visual {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
}

.modal-visual img {
  width: 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(24px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.modal-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  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;
  overflow-wrap: anywhere;
}

.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 {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
  margin: var(--modal-flow-gap) 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 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  min-height: 38px;
  margin: var(--modal-flow-gap) 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 {
  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);
  }
  100% {
    opacity: .24;
    transform: scaleX(1);
  }
}

@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 {
    padding: 18px 20px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    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: 16px 18px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    align-items: end;
    padding: 112px 22px 88px;
  }

  .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));
  }

  .hero-title {
    font-size: 38px;
  }

  .scroll-cue {
    display: none;
  }

  .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: 26px;
  }

  .service-lead {
    margin: 12px 0 18px;
    font-size: 18px;
  }

  .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 img {
    aspect-ratio: auto;
  }

  .service-card-copy {
    padding: 16px;
  }

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

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

  .profile-panel {
    min-height: 620px;
    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: -14px;
    right: -8px;
    width: min(78vw, 340px);
    opacity: .54;
    transform: none;
  }

  .profile-panel::after {
    background:
      linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.38) 72%, rgba(255,255,255,.2) 100%),
      linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.5));
  }

  .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: 10px;
    --modal-inset: 10px;
    --modal-flow-gap: 6px;
    --modal-tight-gap: 4px;
  }

  .modal-close {
    top: var(--modal-inset);
    right: var(--modal-inset);
    width: 30px;
    height: 30px;
  }

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

  .modal-body {
    padding: var(--modal-inset);
  }

  .modal-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-detail {
    padding-right: 0;
  }

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

  .modal-visual img {
    width: 100%;
    max-height: 42svh;
    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.35;
  }

  .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: var(--modal-flow-gap) 0;
  }

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

  .client-logos {
    gap: 6px;
    min-height: 28px;
    margin: var(--modal-flow-gap) 0;
  }

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

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 6px;
    padding: 24px;
  }

  .site-footer small {
    justify-self: center;
  }
}
