:root {
  --ink: #111;
  --muted: #565656;
  --line: #d8d8d8;
  --side: clamp(22px, 4vw, 72px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  /* Desktop wheel snapping is handled in script.js. CSS snap alone cannot
     reliably stop at project headings because every project is taller than
     the viewport. */
  scroll-snap-type: none;
}
body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: "HarmonyOS Sans SC", "PingFang SC", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 1px solid #111; outline-offset: 5px; }

.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 var(--side);
  border-bottom: 1px solid transparent;
  background: rgba(255,255,255,.96);
}
.site-header.scrolled { border-color: var(--line); }
.brand, .index-trigger {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.index-trigger {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: center;
  white-space: nowrap;
}
.index-trigger span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

.index-panel {
  position: fixed;
  z-index: 55;
  top: 0;
  right: 0;
  width: min(620px, 100%);
  height: 100dvh;
  overflow-y: auto;
  padding: 104px clamp(24px, 5vw, 64px) 48px;
  background: #fff;
  transform: translateX(102%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.index-panel.open { transform: none; }
.index-panel > p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.index-panel > div { border-top: 1px solid var(--ink); }
.index-panel button {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  width: 100%;
  border: 0;
  padding: 22px 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
  text-decoration: none;
}
.index-panel button strong {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.1;
}
.index-panel strong > span,
.index-panel strong small {
  display: block;
}
.index-panel strong small {
  margin-top: 6px;
  color: var(--muted);
  font-size: .52em;
  font-weight: 500;
  line-height: 1.25;
}
.backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.18);
}

.overview-arrow {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-variant-emoji: text;
  line-height: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  padding: 102px var(--side) 34px;
  background: #fff;
}
.hero-role {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-role { grid-column: 1 / -1; }
.hero-name {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  padding-bottom: 0;
}
.hero h1 {
  margin: 0;
  font-size: clamp(92px, 19vw, 350px);
  font-weight: 500;
  line-height: .76;
  letter-spacing: -.075em;
}
.hero-tagline {
  margin: clamp(66px, 8vh, 92px) 0 0;
  color: #666;
  font-size: clamp(28px, 2vw, 40px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.hero button {
  position: absolute;
  right: var(--side);
  top: 70%;
  transform: translateY(-50%);
  display: flex;
  gap: 28px;
  border: 0;
  border-bottom: 1px solid;
  padding: 0 0 5px;
  background: none;
  color: #666;
  cursor: pointer;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.overview { min-height: 100svh; padding: clamp(110px, 16vh, 190px) var(--side) 70px; }
.eyebrow {
  margin: 0 0 clamp(70px, 12vh, 140px);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.overview ol { margin: 0; padding: 0; list-style: none; }
.overview li { border-top: 1px solid var(--ink); }
.overview li:last-child { border-bottom: 1px solid var(--ink); }
.overview button {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  width: 100%;
  border: 0;
  padding: clamp(22px, 3.5vh, 40px) 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.overview strong {
  font-size: clamp(40px, 6.8vw, 106px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.055em;
}

.discipline { background: #fff; }
.discipline-header {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, .55fr);
  grid-template-rows: auto 1fr;
  gap: 32px;
  min-height: 78svh;
  padding: clamp(120px, 17vh, 200px) var(--side) 70px;
  border-top: 1px solid var(--ink);
}
.discipline-header > span {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 500;
}
.discipline-header > div {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}
.discipline-header h2 {
  margin: 0;
  font-size: clamp(58px, 8vw, 132px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.06em;
}
.discipline-header h2:first-child {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: -.03em;
}
.discipline-header p {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}

.hero,
.overview,
.discipline-header,
.project {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.project { padding: 0 0 clamp(120px, 16vw, 250px); scroll-margin-top: 0; }
.project-header {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 8vw, 150px);
  align-items: start;
  margin: 0 var(--side);
  padding: clamp(88px, 13vh, 150px) 0 clamp(64px, 8vw, 110px);
}
.project-title { display: block; }
.project h3 {
  margin: 0;
  font-size: clamp(25px, 2.6vw, 42px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.project h3 small {
  display: block;
  margin-top: 12px;
  font-size: clamp(14px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.case-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin: 0;
  padding: 0;
}
.case-copy h4 {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case-copy p, .project-description {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}
.project-description { max-width: 820px; }

.gallery { border: 0; }
.gallery-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  padding: 0 var(--side) 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gallery-viewport {
  overflow-x: auto;
  padding-left: var(--side);
  background: #fff;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-stage { position: relative; }
.gallery-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0 0 2px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity .2s ease;
}
.gallery-prev { left: var(--side); }
.gallery-next { right: var(--side); }
.gallery-nav:hover { opacity: .78; }
.gallery-nav:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}
.gallery-track {
  display: flex;
  gap: 0;
  width: max-content;
  padding: 0 0 38px;
  background: #fff;
}
.gallery-set { display: flex; gap: 0; }
.gallery-set figure {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.gallery-set img {
  display: block;
  width: auto;
  height: min(68vh, 760px);
  max-width: none;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, .55fr);
  gap: 32px;
  align-items: end;
  min-height: 68svh;
  padding: clamp(120px, 17vh, 200px) var(--side) 70px;
  background: #fff;
}
.contact-section h2 {
  margin: 0;
  font-size: clamp(58px, 8vw, 132px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.06em;
}
.contact-section a {
  justify-self: stretch;
  color: var(--ink);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-section a:hover { text-decoration: underline; text-underline-offset: 5px; }

.contact-widget {
  position: fixed;
  z-index: 45;
  right: var(--side);
  bottom: 28px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.contact-toggle {
  width: 58px;
  height: 58px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  padding: 0;
  background: #fff;
  cursor: pointer;
  box-shadow: none;
}
.contact-toggle:hover { background: #fff; color: var(--ink); }
.contact-toggle svg {
  display: block;
  width: 21px;
  height: 21px;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.close-icon {
  display: none;
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
}
.contact-widget.open .phone-icon { display: none; }
.contact-widget.open .close-icon { display: block; }
.contact-bubble {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 2.5vw, 36px);
  min-width: min(430px, calc(100vw - 112px));
  padding: 22px 26px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.12);
  opacity: 0;
  transform: translateX(8px) scale(.98);
  transform-origin: right center;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.contact-bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}
.contact-widget.open .contact-bubble {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.contact-bubble p {
  flex: 0 0 auto;
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-bubble a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.contact-bubble a:hover { text-decoration: underline; text-underline-offset: 4px; }
footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 300px;
  padding: 60px var(--side);
  border-top: 1px solid var(--ink);
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
footer button { border: 0; border-bottom: 1px solid; padding: 0 0 4px; background: none; cursor: pointer; }

@media (max-width: 760px) {
  html { scroll-snap-type: none; }
  .site-header { height: 58px; }
  .index-trigger { gap: 12px; }
  .index-trigger span { width: 18px; height: 18px; }
  .hero { padding-top: 86px; }
  .hero h1 {
    font-size: clamp(64px, 22vw, 96px);
    line-height: .98;
    white-space: nowrap;
  }
  .hero-tagline { margin-top: 42px; font-size: 11px; line-height: 1.4; }
  .hero button {
    top: 86px;
    transform: none;
  }
  .overview button { grid-template-columns: 42px 1fr 18px; }
  .overview strong { font-size: clamp(38px, 12vw, 64px); }
  .overview-arrow { justify-self: end; font-size: 15px; }
  .discipline-header { display: block; min-height: 68svh; padding-top: 100px; }
  .discipline-header > span { display: block; margin-bottom: 70px; }
  .discipline-header p { margin-top: 40px; }
  .project-header { display: block; padding-top: 86px; }
  .project-title { margin-bottom: 46px; }
  .project h3 { font-size: clamp(26px, 8vw, 40px); }
  .case-copy { display: block; padding-left: 0; }
  .case-copy > div + div { margin-top: 48px; }
  .project-description { padding-left: 0; }
  .gallery-track { padding-bottom: 24px; }
  .gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .gallery-prev { left: 14px; }
  .gallery-next { right: 14px; }
.gallery-set figure {
  flex: 0 0 auto;
}

.gallery-set img {
  width: auto;
  height: 58vh;
  max-width: none;
}
  .contact-section {
    display: block;
    min-height: 56svh;
    padding-top: 110px;
  }
  .contact-section h2 { font-size: clamp(58px, 17vw, 96px); }
  .contact-section a {
    display: block;
    margin-top: 56px;
    text-align: left;
  }
  .contact-widget { right: 22px; bottom: 20px; }
  .contact-toggle { width: 52px; height: 52px; }
  .contact-bubble {
    gap: 14px;
    min-width: min(330px, calc(100vw - 96px));
    padding: 17px 18px;
  }
  .contact-bubble a { font-size: 12px; }
}
