/* ============================================================
   HTSTUDIO — 西安黄涛建筑设计有限公司
   Editorial architecture site
   ============================================================ */

:root {
  --paper: #F4F2ED;
  --paper-2: #EAE7E0;
  --ink: #15140F;
  --ink-2: #302E27;
  --muted: #7C766A;
  --line: rgba(21, 20, 15, 0.14);
  --line-2: rgba(21, 20, 15, 0.30);
  --clay: #96522F;
  --night: #121110;
  --night-2: #1B1A17;

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --max: 1500px;
  --gut: clamp(20px, 4.2vw, 72px);
  --head: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: var(--ink); color: var(--paper); }

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

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

.container {
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
}

.meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

section[id] { scroll-margin-top: calc(var(--head) + 4px); }

figcaption {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- reveal ---------- */
html.js [data-r] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
html.js [data-r].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #F6F4EE;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease);
}

.header__in {
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
  height: var(--head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header.is-solid {
  background: rgba(244, 242, 237, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.header__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.header.is-solid .header__progress { opacity: 0.85; }

/* brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  height: 22px;
  width: auto;
  filter: invert(1);
  transition: filter 0.45s var(--ease);
}

.header.is-solid .brand__logo { filter: none; }

.brand__name {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  line-height: 1.4;
  padding-left: 14px;
  border-left: 1px solid currentColor;
  opacity: 0.66;
  white-space: nowrap;
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding-block: 6px;
  opacity: 0.86;
  transition: opacity 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}

.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); }

.header__end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__cta {
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 9px 18px;
  border: 1px solid currentColor;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.header__cta:hover {
  background: currentColor;
  color: var(--ink);
}
.header.is-solid .header__cta:hover { color: var(--paper); }

/* menu button */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 23px; }

body.is-menu .menu-btn span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.is-menu .menu-btn span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* header over the dark menu */
body.is-menu .header {
  background: transparent;
  box-shadow: none;
  color: var(--paper);
}
body.is-menu .brand__logo { filter: invert(1); }
body.is-menu .header__progress { opacity: 0; }

/* ============================================================
   MENU OVERLAY
   ============================================================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--night);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-2);
  visibility: hidden;
}
body.is-menu .menu {
  clip-path: inset(0 0 0 0);
  visibility: visible;
}

.menu__in {
  height: 100%;
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
  padding: calc(var(--head) + 40px) 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.45;
  border-bottom: 1px solid rgba(244, 242, 237, 0.14);
  padding-bottom: 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
body.is-menu .menu__nav a { opacity: 1; transform: none; }
body.is-menu .menu__nav a:nth-child(1) { transition-delay: 0.16s; }
body.is-menu .menu__nav a:nth-child(2) { transition-delay: 0.21s; }
body.is-menu .menu__nav a:nth-child(3) { transition-delay: 0.26s; }
body.is-menu .menu__nav a:nth-child(4) { transition-delay: 0.31s; }
body.is-menu .menu__nav a:nth-child(5) { transition-delay: 0.36s; }

.menu__nav span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--clay);
}

.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 242, 237, 0.62);
}
.menu__foot p { margin-top: 4px; }

/* ============================================================
   HERO
   ============================================================ */
.hero__media {
  position: relative;
  height: clamp(430px, 66vh, 740px);
  overflow: hidden;
  background: var(--night);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  animation: heroIn 1.6s var(--ease) both;
}

@keyframes heroIn {
  from { transform: scale(1.06); opacity: 0.55; }
  to { transform: scale(1); opacity: 1; }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 9, 0.48) 0%, rgba(10, 10, 9, 0.05) 26%, rgba(10, 10, 9, 0) 44%, rgba(10, 10, 9, 0.72) 100%);
  pointer-events: none;
}

.hero__cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - var(--gut) * 2, var(--max));
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(246, 244, 238, 0.8);
  text-transform: uppercase;
}
.hero__cap span + span::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 22px;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.5;
}

.hero__body {
  padding-top: clamp(34px, 4.4vw, 68px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 7.6vw, 6.6rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin-top: clamp(18px, 2.4vw, 34px);
  text-wrap: balance;
}

.hero__cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  margin-top: clamp(28px, 4vw, 56px);
  padding-top: clamp(20px, 2.4vw, 30px);
  border-top: 1px solid var(--line);
}

.hero__lead {
  grid-column: 1 / 7;
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 46ch;
}

.hero__meta {
  grid-column: 8 / 13;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-self: start;
}

.hero__meta dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero__meta dd {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
}

/* ============================================================
   SECTION MARK / HEAD
   ============================================================ */
.sec-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
}
.sec-mark::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.sec-mark span { color: var(--clay); letter-spacing: 0.12em; }

.sec-mark--light { color: rgba(244, 242, 237, 0.55); }
.sec-mark--light span { color: #C08A5E; }

.sec-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: end;
  padding-bottom: clamp(30px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 4.4vw, 64px);
}
.sec-head .sec-mark { grid-column: 1 / 4; align-self: start; padding-top: 10px; }
.sec-title {
  grid-column: 4 / 9;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
}
.sec-note {
  grid-column: 10 / 13;
  text-align: right;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 2.1;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================================
   STATEMENT
   ============================================================ */
.statement {
  padding-block: clamp(72px, 9vw, 140px) clamp(64px, 8vw, 120px);
}

.statement__text {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 3.1rem);
  line-height: 1.62;
  letter-spacing: 0.01em;
  margin-top: clamp(26px, 3vw, 42px);
  max-width: 24em;
  text-wrap: balance;
}
.statement__text em {
  font-style: normal;
  color: var(--clay);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.08em;
}

.statement__cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  margin-top: clamp(34px, 4.4vw, 62px);
}
.statement__cols p {
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 2.05;
  color: var(--ink-2);
}
.statement__cols p:nth-child(1) { grid-column: 1 / 5; }
.statement__cols p:nth-child(2) { grid-column: 6 / 10; }

/* ============================================================
   WORKS / PROJECTS
   ============================================================ */
.works { padding-bottom: clamp(72px, 9vw, 140px); }

.project + .project { margin-top: clamp(68px, 8vw, 124px); }

.project__head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: clamp(12px, 2vw, 28px);
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.project__idx {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--clay);
}

.project__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.project__meta {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 2;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
  text-transform: uppercase;
}

.project__main { overflow: hidden; }
.project__main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project__split {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(18px, 2.4vw, 30px);
  align-items: start;
}

.project__text { padding-top: 4px; }

.project__desc {
  font-size: 14px;
  line-height: 2.05;
  color: var(--ink-2);
  max-width: 36ch;
}

.project__facts {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.project__facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.project__facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.project__facts dd { text-align: right; }

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

.project__offset {
  margin: clamp(24px, 3vw, 44px) 0 0;
}
.project__offset img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.project__pair {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(16px, 2.4vw, 40px);
  align-items: start;
  margin-top: clamp(18px, 2.4vw, 30px);
}
.project__pair-a img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.project__pair-b { margin-top: clamp(24px, 5vw, 72px); }
.project__pair-b img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.project__split--b {
  grid-template-columns: 4fr 7fr;
  margin-top: clamp(26px, 4vw, 52px);
}

.project__quote { align-self: end; padding-bottom: 6px; }
.project__quote p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--ink);
  max-width: 22em;
}

/* project index */
.index {
  margin-top: clamp(56px, 7vw, 100px);
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.index__types {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  letter-spacing: 0.14em;
}

.index__note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.index__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: gap 0.35s var(--ease), border-color 0.35s var(--ease);
}
.index__link:hover { gap: 14px; border-color: var(--ink); }

/* ============================================================
   PROCESS (dark)
   ============================================================ */
.process {
  background: var(--night);
  color: var(--paper);
  padding-block: clamp(72px, 9vw, 140px);
}

.process__in {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
}

.process__media { grid-column: 1 / 6; }
.process__media img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: contrast(1.05);
}
.process__tag {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(244, 242, 237, 0.45);
  text-transform: uppercase;
}

.process__body { grid-column: 7 / 13; }

.process__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.3;
  margin-top: 22px;
  letter-spacing: 0.02em;
}

.process__lead {
  margin-top: 24px;
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 2;
  color: rgba(244, 242, 237, 0.7);
  max-width: 44ch;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(20px, 2.6vw, 40px);
  margin-top: clamp(34px, 4vw, 54px);
  border-top: 1px solid rgba(244, 242, 237, 0.16);
}
.steps li {
  padding: 22px 0 26px;
  border-bottom: 1px solid rgba(244, 242, 237, 0.16);
}
.steps li:nth-last-child(-n+2) { border-bottom: 0; }

.steps__n {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #C08A5E;
}
.steps h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  margin: 10px 0 8px;
}
.steps p {
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(244, 242, 237, 0.58);
  max-width: 30ch;
}

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise { padding-block: clamp(72px, 9vw, 140px); }

.rows { border-top: 0; }

.row {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 0.85fr);
  gap: clamp(14px, 2vw, 34px);
  align-items: center;
  padding: clamp(24px, 2.6vw, 36px) clamp(0px, 1.6vw, 24px);
  border-bottom: 1px solid var(--line);
  transition: color 0.45s var(--ease);
}

.row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease);
}
.row:hover::before { transform: scaleY(1); }
.row > * { position: relative; z-index: 1; }
.row:hover { color: var(--paper); }
.row:hover .row__n { color: #C08A5E; }
.row:hover .row__desc,
.row:hover .row__tags { color: rgba(244, 242, 237, 0.62); }

.row__n {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--clay);
  transition: color 0.45s var(--ease);
}

.row__title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.row__desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 40ch;
  transition: color 0.45s var(--ease);
}

.row__tags {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
  text-transform: uppercase;
  transition: color 0.45s var(--ease);
}

/* ============================================================
   STUDIO
   ============================================================ */
.studio {
  padding-block: clamp(64px, 8vw, 120px);
  background: var(--paper-2);
}

.studio__in {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
}

.studio__left { grid-column: 1 / 7; }

.studio__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.42;
  margin-top: 22px;
  max-width: 12em;
  text-wrap: balance;
}

.studio__left > p {
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 2.05;
  color: var(--ink-2);
  max-width: 40ch;
  margin-top: 20px;
}

.studio__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(20px, 2.4vw, 36px);
  margin-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--line);
}
.studio__facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}
.studio__facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.studio__facts dd {
  font-size: 13px;
  text-align: right;
}

.studio__figure { grid-column: 8 / 13; }
.studio__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-block: clamp(72px, 9vw, 140px); }

.contact__title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  line-height: 1.24;
  letter-spacing: 0.01em;
  margin-top: clamp(20px, 2.6vw, 34px);
  text-wrap: balance;
}

.contact__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 48px);
  margin-top: clamp(44px, 5vw, 76px);
}
.contact__block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact__big {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  letter-spacing: 0.02em;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.contact__big:hover { border-color: var(--clay); color: var(--clay); }
.contact__big--mail { word-break: break-all; }
.contact__big--text { border-bottom: 0; }

.contact__sub {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 8px;
}

.contact__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(44px, 5vw, 76px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: background-color 0.4s var(--ease), gap 0.4s var(--ease);
}
.btn svg { width: 14px; height: 14px; }
.btn:hover { background: var(--clay); gap: 20px; }

.contact__hours {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--night);
  color: rgba(244, 242, 237, 0.72);
  padding-block: clamp(40px, 5vw, 64px) 28px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid rgba(244, 242, 237, 0.14);
}

.footer__brand img {
  height: 26px;
  width: auto;
  filter: invert(1);
  opacity: 0.9;
}

.footer__nav {
  display: flex;
  gap: clamp(16px, 2vw, 30px);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.footer__nav a { opacity: 0.7; transition: opacity 0.3s var(--ease); }
.footer__nav a:hover { opacity: 1; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(244, 242, 237, 0.42);
  text-transform: uppercase;
}

/* images that rely on aspect-ratio must ignore the height attribute */
.project__main img,
.project__sub img,
.project__offset img,
.project__pair-a img,
.project__pair-b img,
.studio__figure img,
.process__media img { height: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero__lead { grid-column: 1 / 8; }
  .hero__meta { grid-column: 9 / 13; grid-template-columns: 1fr; gap: 12px; }
  .statement__cols p:nth-child(1) { grid-column: 1 / 6; }
  .statement__cols p:nth-child(2) { grid-column: 7 / 12; }
  .row { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.2fr); }
  .row__tags { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .menu-btn { display: block; }
  .header__in { gap: 12px; }

  .hero__cols { grid-template-columns: 1fr; }
  .hero__lead { grid-column: 1 / -1; max-width: none; }
  .hero__meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .sec-head .sec-mark { grid-column: 1 / -1; }
  .sec-title { grid-column: 1 / -1; }
  .sec-note { grid-column: 1 / -1; text-align: left; margin-top: 10px; }

  .statement__cols { grid-template-columns: 1fr; }
  .statement__cols p:nth-child(1),
  .statement__cols p:nth-child(2) { grid-column: 1 / -1; }

  .project__head { grid-template-columns: 40px 1fr; row-gap: 8px; }
  .project__meta { grid-column: 2; text-align: left; }

  .project__split { grid-template-columns: 1fr; }
  .project__desc { max-width: none; }

  .project__pair { grid-template-columns: 1fr; }
  .project__pair-b { margin-top: 20px; }
  .project__pair-b img { aspect-ratio: 4 / 3; }

  .project__split--b { grid-template-columns: 1fr; }
  .project__quote { margin-top: 4px; }

  .process__in { grid-template-columns: 1fr; }
  .process__media { grid-column: 1 / -1; }
  .process__media img { aspect-ratio: 4 / 5; max-width: 520px; }
  .process__body { grid-column: 1 / -1; margin-top: 10px; }

  .studio__in { grid-template-columns: 1fr; }
  .studio__left, .studio__figure { grid-column: 1 / -1; }
  .studio__figure { margin-top: 12px; }
  .studio__figure img { aspect-ratio: 4 / 3; }

  .contact__cols { grid-template-columns: 1fr; gap: 0; }
  .contact__block { padding-block: 18px; }
  .contact__block:first-child { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  :root { --head: 62px; }

  .brand__logo { height: 19px; }
  .brand__name {
    font-size: 8.5px;
    letter-spacing: 0.1em;
    padding-left: 10px;
    white-space: normal;
    max-width: 150px;
    line-height: 1.35;
  }

  .hero__media { height: 58vh; min-height: 340px; }
  .hero__cap { gap: 14px; font-size: 8.5px; letter-spacing: 0.1em; }
  .hero__cap span + span::before { width: 10px; margin-right: 14px; }
  .hero__title { font-size: clamp(2.5rem, 12.5vw, 3.4rem); }
  .hero__meta { grid-template-columns: 1fr 1fr; }

  .statement__text { font-size: clamp(1.55rem, 7.2vw, 2rem); line-height: 1.68; }

  .project__main img { aspect-ratio: 3 / 2; }
  .project__title { font-size: 1.4rem; }
  .project__meta { font-size: 8.5px; }

  .steps { grid-template-columns: 1fr; }
  .steps li:nth-last-child(-n+2) { border-bottom: 1px solid rgba(244, 242, 237, 0.16); }
  .steps li:last-child { border-bottom: 0; }

  .row { grid-template-columns: 34px 1fr; row-gap: 8px; padding-block: 22px; }
  .row__desc { grid-column: 2; }
  .row__title { font-size: 1.3rem; }

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

  .index { flex-direction: column; align-items: flex-start; gap: 20px; }

  .contact__foot { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: space-between; }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html.js [data-r] { opacity: 1; transform: none; }
}
