:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0c0e;
  --panel: #111419;
  --panel-soft: #171b21;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f3f1eb;
  --muted: rgba(243, 241, 235, 0.68);
  --quiet: rgba(243, 241, 235, 0.44);
  --accent: #a7332e;
  --accent-soft: rgba(167, 51, 46, 0.22);
  --warm: #c6ad87;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  --radius: 6px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 4%, rgba(167, 51, 46, 0.14), transparent 28rem),
    linear-gradient(180deg, #050505 0%, #070809 46%, #030303 100%);
  color: var(--text);
  font-family:
    "SF Pro Display",
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    system-ui,
    sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  content: "";
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 49;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.18) 46%, transparent 52%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  transform: translateX(-30%);
  animation: light-scan 9s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.cursor-light {
  position: fixed;
  left: var(--cursor-x, 50vw);
  top: var(--cursor-y, 50vh);
  z-index: 48;
  width: 520px;
  height: 520px;
  pointer-events: none;
  opacity: 0.38;
  background: radial-gradient(circle, rgba(198, 173, 135, 0.22), rgba(167, 51, 46, 0.08) 34%, transparent 68%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  transition: opacity 260ms ease;
}

body.is-pointer-idle .cursor-light {
  opacity: 0.14;
}

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

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

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--text);
  color: #050505;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.2));
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 42px);
  white-space: nowrap;
  color: rgba(243, 241, 235, 0.78);
  font-size: 14px;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 19px;
  width: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transition: width 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.hero-section {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 92px) 72px;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 76px 0 0 34%;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.05) translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0);
  animation: hero-drift 16s ease-out both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.72) 34%, rgba(5, 5, 5, 0.08) 78%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.9) 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.fine-title {
  margin: 0 0 18px;
  color: var(--warm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(54px, 9vw, 136px);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 0.94;
}

.hero-copy {
  max-width: 440px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 18px;
  font-size: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff7f3;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-note {
  position: absolute;
  right: clamp(20px, 5vw, 76px);
  bottom: clamp(28px, 6vw, 86px);
  z-index: 3;
  width: min(360px, calc(100vw - 40px));
  border-left: 1px solid var(--accent);
  padding-left: 20px;
  color: var(--muted);
}

.hero-note span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.hero-note p {
  margin: 0;
  font-size: 14px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 64px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.58fr);
  gap: clamp(24px, 7vw, 110px);
  align-items: end;
  margin-bottom: 40px;
}

.section-head h2,
.studio-copy h2,
.hotel-content h2,
.contact-content h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 350;
  line-height: 1.05;
}

.section-head p:last-child,
.studio-copy p,
.hotel-content > p,
.contact-content p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}

.rail-wrap {
  position: relative;
}

.project-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 23vw);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding-bottom: 12px;
}

.project-rail::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transform-style: preserve-3d;
  perspective: 800px;
}

.project-card::before {
  position: absolute;
  inset: -1px;
  z-index: 2;
  content: "";
  border-radius: var(--radius);
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.26), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.84) contrast(1.06);
  transform: rotateX(calc(var(--tilt-y, 0) * 1deg)) rotateY(calc(var(--tilt-x, 0) * -1deg)) translateZ(0);
  transition: transform 420ms ease, filter 420ms ease, box-shadow 420ms ease;
}

.project-card:focus-visible {
  outline: 1px solid var(--warm);
  outline-offset: 8px;
}

.project-card:hover::before,
.project-card:focus-visible::before {
  opacity: 1;
}

.project-card:hover img {
  transform: rotateX(calc(var(--tilt-y, 0) * 1deg)) rotateY(calc(var(--tilt-x, 0) * -1deg)) translateZ(16px) scale(0.985);
  filter: saturate(1) contrast(1.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52);
}

.project-card div {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.project-card span {
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.project-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 420;
  line-height: 1.28;
}

.project-card small {
  color: var(--accent);
  font-size: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-card:hover small,
.project-card:focus-visible small {
  opacity: 1;
  transform: translateY(0);
}

.rail-button {
  position: absolute;
  top: 40%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.rail-button:hover,
.rail-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(167, 51, 46, 0.74);
}

.rail-button svg,
.lightbox-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-prev {
  left: -18px;
}

.rail-next {
  right: -18px;
}

.studio-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(340px, 1fr) minmax(240px, 0.56fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: stretch;
}

.studio-copy {
  align-self: center;
}

.studio-copy h2 {
  font-size: clamp(34px, 4.1vw, 58px);
}

.studio-copy p + p {
  margin-top: 18px;
}

.studio-image {
  margin: 0;
  min-height: 540px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.studio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-principles {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  padding: clamp(22px, 3vw, 34px);
}

.studio-principles img {
  width: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.studio-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.process-sticky {
  position: sticky;
  top: 110px;
  align-self: start;
  border-top: 1px solid var(--accent);
  padding-top: 22px;
}

.process-sticky span {
  color: var(--warm);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.process-sticky h3 {
  margin: 18px 0 14px;
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 360;
  line-height: 1.16;
}

.process-sticky p {
  margin: 0;
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 74px minmax(180px, 0.4fr) minmax(260px, 1fr);
  gap: 22px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  padding: clamp(18px, 2.4vw, 28px);
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}

.process-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(167, 51, 46, 0.58);
  background: rgba(167, 51, 46, 0.07);
}

.process-list span,
.advisory-grid span {
  color: var(--warm);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.process-list h3,
.advisory-grid h3 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 430;
  line-height: 1.28;
}

.process-list p,
.advisory-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.hotel-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 78px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.hotel-media {
  position: sticky;
  top: 104px;
  align-self: start;
  min-height: 620px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hotel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.hotel-content > p {
  max-width: 740px;
  margin-top: 24px;
}

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.advisory-grid article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
  padding: 24px;
}

.advisory-grid article:last-child {
  grid-column: span 2;
  min-height: auto;
}

.advisory-grid h3 {
  margin-top: 20px;
}

.advisory-grid p {
  margin-top: 12px;
}

.gallery-section {
  border-top: 1px solid var(--line);
}

.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, 18vw);
  gap: 12px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(5, 5, 5, 0.58), transparent 58%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.05);
  transition: transform 520ms ease, filter 520ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.08);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.contact-section {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: clamp(76px, 10vw, 136px) clamp(20px, 6vw, 92px);
}

.contact-image {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}

.contact-section::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.96), rgba(5, 5, 5, 0.72) 44%, rgba(5, 5, 5, 0.3));
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.contact-content p {
  max-width: 600px;
  margin-top: 22px;
}

.contact-placeholders {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.contact-placeholders a,
.contact-placeholders span {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 11px 14px;
  color: var(--muted);
  font-size: 14px;
  backdrop-filter: blur(12px);
}

.contact-placeholders a:hover,
.contact-placeholders a:focus-visible {
  border-color: rgba(183, 54, 49, 0.7);
  background: rgba(183, 54, 49, 0.16);
  color: var(--warm);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 24px;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  overflow: hidden;
}

.project-modal[hidden] {
  display: none;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(22px);
}

.project-modal-shell {
  position: absolute;
  inset: clamp(10px, 2vw, 28px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 2%, rgba(167, 51, 46, 0.14), transparent 34rem),
    linear-gradient(180deg, rgba(12, 13, 15, 0.98), rgba(4, 4, 4, 0.98));
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.78);
  clip-path: inset(0 0 0 0 round var(--radius));
  animation: modal-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-close {
  position: sticky;
  top: 18px;
  left: calc(100% - 68px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 18px 18px 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.project-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.project-modal-hero {
  position: relative;
  min-height: min(70vh, 760px);
  display: grid;
  align-items: end;
  margin-top: -66px;
  overflow: hidden;
}

.project-modal-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.92) contrast(1.05);
}

.project-modal-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.96), rgba(4, 4, 4, 0.42) 52%, rgba(4, 4, 4, 0.18)),
    linear-gradient(0deg, rgba(4, 4, 4, 0.98), transparent 52%);
}

.project-modal-copy {
  position: relative;
  z-index: 2;
  width: min(900px, 88vw);
  padding: clamp(32px, 6vw, 88px);
}

.project-modal-copy h2 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 330;
  line-height: 1.04;
  text-wrap: balance;
}

.project-modal-copy p:not(.fine-title) {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.project-modal-copy span {
  display: inline-block;
  margin-top: 28px;
  border-left: 1px solid var(--accent);
  padding-left: 16px;
  color: var(--warm);
  font-size: 14px;
}

.project-modal-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px clamp(18px, 4vw, 64px) 0;
}

.project-image-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  padding: clamp(18px, 4vw, 64px);
}

.project-image-button {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
  cursor: zoom-in;
  animation: image-pop 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--stagger, 0ms);
}

.project-image-button:nth-child(5n + 1) {
  grid-row: span 2;
  min-height: 460px;
}

.project-image-button:nth-child(7n + 3) {
  grid-column: span 2;
}

.project-image-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  transition: transform 600ms ease, filter 600ms ease;
}

.project-image-button span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-width: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  padding: 7px 9px;
  color: var(--text);
  font-size: 11px;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(10px);
}

.project-image-button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 40%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.project-image-button:hover img,
.project-image-button:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.08);
}

.project-image-button:hover::after,
.project-image-button:focus-visible::after {
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(1120px, 94vw);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox figcaption {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1), transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes hero-drift {
  from {
    opacity: 0.45;
    filter: saturate(0.7) contrast(0.92);
  }
  to {
    opacity: 0.82;
    filter: saturate(1) contrast(1);
  }
}

@keyframes light-scan {
  0%,
  18% {
    transform: translateX(-45%);
    opacity: 0;
  }
  42% {
    opacity: 0.13;
  }
  62%,
  100% {
    transform: translateX(38%);
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    clip-path: inset(18% 18% 18% 18% round 22px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0 round var(--radius));
  }
}

@keyframes image-pop {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@supports (animation-timeline: view()) {
  .studio-image img,
  .hotel-media img {
    animation: image-depth linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  @keyframes image-depth {
    from {
      transform: scale(1.08) translateY(-2%);
    }
    to {
      transform: scale(1.08) translateY(2%);
    }
  }
}

@media (max-width: 1100px) {
  .site-header {
    height: auto;
    min-height: 74px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .site-nav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav a {
    padding: 4px 0 8px;
  }

  .site-nav a::after {
    bottom: 3px;
  }

  .hero-media {
    inset: 120px 0 0 18%;
  }

  .section-head,
  .studio-grid,
  .hotel-section,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .studio-image,
  .studio-principles,
  .hotel-media {
    min-height: auto;
  }

  .studio-image {
    aspect-ratio: 16 / 11;
  }

  .hotel-media {
    position: relative;
    top: auto;
    aspect-ratio: 16 / 10;
  }

  .process-sticky {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .brand-lockup span {
    display: none;
  }

  .hero-section {
    min-height: 860px;
    padding-top: 150px;
  }

  .hero-media {
    inset: 248px 0 0 0;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.78) 38%, rgba(5, 5, 5, 0.48) 100%),
      linear-gradient(0deg, rgba(5, 5, 5, 0.95), transparent 42%);
  }

  .hero-note {
    left: 20px;
    right: 20px;
    bottom: 26px;
  }

  .hero-content h1 {
    font-size: clamp(48px, 15vw, 76px);
  }

  .project-rail {
    grid-auto-columns: minmax(220px, 78vw);
  }

  .rail-button {
    display: none;
  }

  .studio-principles img {
    width: 120px;
  }

  .process-list li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .advisory-grid,
  .advisory-grid article:last-child {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .masonry-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .project-modal-shell {
    inset: 0;
    border-radius: 0;
  }

  .project-modal-hero {
    min-height: 560px;
  }

  .project-modal-copy {
    padding: 28px 20px;
  }

  .project-modal-copy h2 {
    font-size: clamp(30px, 8.6vw, 38px);
    line-height: 1.08;
  }

  .project-modal-toolbar {
    justify-content: flex-start;
    padding: 18px 20px 0;
  }

  .project-image-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .project-image-button,
  .project-image-button:nth-child(5n + 1),
  .project-image-button:nth-child(7n + 3) {
    grid-column: auto;
    grid-row: auto;
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-light,
  body::after {
    display: none;
  }
}
