/* =============================================================
   HALDEN — Architecture studio landing page
   Design tokens + global styles
   ============================================================= */

:root {
  /* Type families */
  --hd-font-display: 'Archivo', sans-serif;
  --hd-font-body: 'Space Grotesk', system-ui, sans-serif;

  /* Ink (dark surfaces) */
  --hd-ink-900: #10100f;
  --hd-ink-800: #16160f;
  --hd-ink-700: #191915;
  --hd-ink-600: #1c1c16;

  /* Paper (light surfaces) */
  --hd-paper-100: #eae7e1;
  --hd-paper-200: #d8d3c6;
  --hd-paper-300: #c9c3b5;

  /* Sage (accent) */
  --hd-accent: #7d8a6f;
  --hd-accent-press: #6b785e;

  /* Concrete (mid neutrals, used on paper) */
  --hd-concrete-500: #5b5f57;
  --hd-concrete-400: #8a8276;
  --hd-concrete-300: #9a9a9a;

  /* Text on dark */
  --hd-text-strong: #eae7e1;
  --hd-text-body: rgba(234, 231, 225, 0.82);
  --hd-text-muted: rgba(234, 231, 225, 0.6);
  --hd-text-soft: rgba(234, 231, 225, 0.7);
  --hd-text-faint: rgba(234, 231, 225, 0.4);

  /* Text on paper */
  --hd-ink-text: #16160f;
  --hd-paper-body: #3a3a30;

  /* Hairlines */
  --hd-line-on-dark: rgba(234, 231, 225, 0.16);
  --hd-line-on-dark-soft: rgba(234, 231, 225, 0.13);
  --hd-line-on-dark-strong: rgba(234, 231, 225, 0.4);
  --hd-line-on-paper: rgba(22, 22, 15, 0.2);

  /* Tracking */
  --hd-track-label: 0.2em;

  /* Motion */
  --hd-dur-ui: 0.4s;
  --hd-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Page rhythm */
  --hd-pad-x: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--hd-ink-900);
  color: var(--hd-text-strong);
  font-family: var(--hd-font-body);
  font-weight: 400;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--hd-accent); color: var(--hd-ink-900); }

@keyframes hldn-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   NAVIGATION
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 2.4vw, 26px) var(--hd-pad-x);
  mix-blend-mode: difference;
  color: #ffffff;
  pointer-events: none;
}
.nav a { pointer-events: auto; text-decoration: none; color: inherit; }
.nav__brand {
  font-family: var(--hd-font-display);
  font-weight: 800;
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  align-items: center;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav__links a { position: relative; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--hd-dur-ui) var(--hd-ease-out);
}
.nav__links a:hover::after { width: 100%; }

/* Hamburger toggle — hidden on desktop, revealed at the mobile breakpoint.
   Lives inside the blend-mode nav so the bars invert over any background. */
.nav__toggle {
  display: none;
  pointer-events: auto;
  background: none;
  border: none;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle-bars {
  display: block;
  position: relative;
  width: 28px;
  height: 14px;
}
.nav__bar {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.4s var(--hd-ease-out), opacity 0.25s var(--hd-ease-out);
}
.nav__bar:nth-child(1) { top: 0; }
.nav__bar:nth-child(2) { top: 6px; }
.nav__bar:nth-child(3) { top: 12px; }
.is-nav-open .nav__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-nav-open .nav__bar:nth-child(2) { opacity: 0; }
.is-nav-open .nav__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Full-screen mobile menu overlay — sits below the nav bar (so the brand
   and toggle stay visible) and is shown only within the mobile breakpoint. */
.nav-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--hd-ink-900);
  flex-direction: column;
  justify-content: center;
  padding: clamp(96px, 16vh, 150px) var(--hd-pad-x) clamp(34px, 6vh, 56px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.45s var(--hd-ease-out),
              transform 0.45s var(--hd-ease-out),
              visibility 0.45s;
}
.is-nav-open .nav-menu { opacity: 1; visibility: visible; transform: none; }

.nav-menu__links { display: flex; flex-direction: column; gap: clamp(6px, 1.6vh, 16px); }
.nav-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
  color: var(--hd-text-strong);
  font-family: var(--hd-font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 12vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: color var(--hd-dur-ui) var(--hd-ease-out);
}
.nav-menu__links a span {
  font-family: var(--hd-font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: var(--hd-track-label);
  color: var(--hd-accent);
}
.nav-menu__links a:hover,
.nav-menu__links a:focus-visible { color: var(--hd-accent); }

.nav-menu__foot {
  margin-top: clamp(40px, 8vh, 90px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--hd-text-muted);
}
.nav-menu__foot a { text-decoration: none; color: var(--hd-text-soft); }

/* =============================================================
   GENERIC SECTION HELPERS
   ============================================================= */
.section {
  padding: clamp(70px, 11vh, 160px) var(--hd-pad-x);
}
.section--dark { background: var(--hd-ink-900); }
.section--paper { background: var(--hd-paper-100); color: var(--hd-ink-text); }
.section--rule { border-top: 1px solid var(--hd-line-on-dark-soft); }

.overline {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  letter-spacing: var(--hd-track-label);
  text-transform: uppercase;
  color: var(--hd-accent);
}
.overline--ink { color: var(--hd-concrete-500); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(34px, 5vh, 60px);
}
.section-head .overline,
.section-head .overline--ink { flex: none; }

.display-h2 {
  margin: 0;
  font-family: var(--hd-font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(96px, 13vh, 170px) var(--hd-pad-x) clamp(34px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: -12% 0 -12% 0;
  z-index: 0;
  background: url('../assets/imagery/copper-wave-roof.jpg') center / cover no-repeat;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(16, 16, 15, 0.62) 0%,
    rgba(16, 16, 15, 0.12) 38%,
    rgba(16, 16, 15, 0.82) 100%);
}
.hero__meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: var(--hd-track-label);
  text-transform: uppercase;
  color: var(--hd-text-muted);
}
.hero__meta div { line-height: 1.7; }
.hero__meta div:first-child { max-width: 30ch; }
.hero__meta div:last-child { text-align: right; }

.hero__body { position: relative; z-index: 2; }
.hero__title {
  margin: 0;
  font-family: var(--hd-font-display);
  font-weight: 800;
  line-height: 0.84;
  letter-spacing: -0.035em;
  font-size: clamp(2.38rem, 9.8vw, 8.75rem); /* 70% of original 3.4rem / 14vw / 12.5rem */
  text-transform: uppercase;
}
.hero__title > span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.02em;
}
.hero__line { display: block; }
.hero__line--accent { color: var(--hd-accent); }

.hero__lede {
  margin-top: clamp(22px, 3vh, 40px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__lede p {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--hd-text-body);
}

/* =============================================================
   OUTLINE BUTTON (hero CTA)
   ============================================================= */
.btn-outline {
  text-decoration: none;
  color: var(--hd-text-strong);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: var(--hd-track-label);
  text-transform: uppercase;
  border: 1px solid var(--hd-line-on-dark-strong);
  padding: 14px 22px;
  white-space: nowrap;
  transition: background var(--hd-dur-ui) var(--hd-ease-out),
              color var(--hd-dur-ui) var(--hd-ease-out);
}
.btn-outline:hover { background: var(--hd-paper-100); color: var(--hd-ink-900); }
.btn-outline span { transition: transform var(--hd-dur-ui) var(--hd-ease-out); }
.btn-outline:hover span { transform: translateX(3px); }

/* =============================================================
   MANIFESTO
   ============================================================= */
.manifesto {
  padding: clamp(78px, 13vh, 190px) var(--hd-pad-x);
}
.manifesto__lead {
  margin: clamp(40px, 7vh, 90px) 0 0;
  max-width: 24ch;
  font-family: var(--hd-font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.accent { color: var(--hd-accent); }

.stats {
  margin-top: clamp(46px, 7vh, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 56px);
  max-width: 1100px;
}
.stat__value {
  font-family: var(--hd-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
}
.stat__label {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--hd-text-muted);
  line-height: 1.5;
}

/* =============================================================
   SELECTED WORK
   ============================================================= */
.work__title { white-space: normal; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 2.6vw, 44px);
}
.card { text-decoration: none; color: inherit; display: block; }
.card--wide { grid-column: span 2; }

.card__frame {
  position: relative;
  overflow: hidden;
  background-color: var(--hd-ink-600);
}
.card__frame--alt { background-color: var(--hd-ink-700); }
.card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.02);
  transition: transform 0.9s var(--hd-ease-out);
}
.card:hover .card__frame img { transform: scale(1.04); }

.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-16-9  { aspect-ratio: 16 / 9; }
.ratio-4-5   { aspect-ratio: 4 / 5; }
.ratio-21-9  { aspect-ratio: 21 / 9; }
.ratio-3-2   { aspect-ratio: 3 / 2; }

/* parallax inner layer */
.parallax {
  position: absolute;
  inset: -12% 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(0.12) contrast(1.02);
}

.card__caption {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: var(--hd-track-label);
  text-transform: uppercase;
  color: var(--hd-text-faint);
}
.card__caption--ink { color: rgba(22, 22, 15, 0.45); }
.card__index {
  position: absolute;
  right: 16px; top: 14px;
  z-index: 2;
  font-family: var(--hd-font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.card__title {
  margin: 0;
  font-family: var(--hd-font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--hd-ease-out);
  padding-bottom: 2px;
}
.card__title--sm { font-size: clamp(1.3rem, 2.2vw, 2rem); }
.card:hover .card__title { background-size: 100% 1px; }
.card__meta {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hd-text-muted);
  white-space: nowrap;
}
.card__tags {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hd-text-muted);
}
.card__single { margin-top: 18px; }

/* =============================================================
   PROJECT IN FOCUS (paper)
   ============================================================= */
.project__title {
  margin: 0;
  font-family: var(--hd-font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9.5vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.project__title span { color: var(--hd-concrete-500); }

.project__facts {
  margin-top: clamp(30px, 4vh, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(20px, 2.5vw, 40px);
  border-top: 1px solid var(--hd-line-on-paper);
  border-bottom: 1px solid var(--hd-line-on-paper);
  padding: clamp(22px, 3vh, 34px) 0;
}
.fact__label {
  font-size: 10px;
  letter-spacing: var(--hd-track-label);
  text-transform: uppercase;
  color: var(--hd-concrete-500);
  margin-bottom: 8px;
}
.fact__value {
  font-family: var(--hd-font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.5vw, 19px);
}

.project__hero {
  margin-top: clamp(30px, 5vh, 64px);
  position: relative;
  overflow: hidden;
  background-color: var(--hd-paper-200);
}

.project__text {
  margin-top: clamp(34px, 5vh, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.project__lead {
  margin: 0;
  font-family: var(--hd-font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.project__copy { display: flex; flex-direction: column; gap: 18px; }
.project__copy p {
  margin: 0;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.65;
  color: var(--hd-paper-body);
}

.project__pair {
  margin-top: clamp(28px, 4vh, 52px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}
.project__pair > div {
  position: relative;
  overflow: hidden;
  background-color: var(--hd-paper-200);
}
.project__pair img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   MARQUEE
   ============================================================= */
.marquee {
  background: var(--hd-ink-900);
  overflow: hidden;
  border-top: 1px solid var(--hd-line-on-dark-soft);
  border-bottom: 1px solid var(--hd-line-on-dark-soft);
  padding: clamp(18px, 3vh, 30px) 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: hldn-marquee 26s linear infinite;
  font-family: var(--hd-font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--hd-accent);
}
.marquee__track span { padding: 0 0.4em; }

/* =============================================================
   STUDIO
   ============================================================= */
.studio { padding: clamp(78px, 12vh, 180px) var(--hd-pad-x); }
.studio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(34px, 5vw, 80px);
  align-items: start;
}
.studio__lead {
  margin: 0;
  font-family: var(--hd-font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.studio__copy {
  margin: clamp(26px, 4vh, 44px) 0 0;
  max-width: 52ch;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.68;
  color: var(--hd-text-soft);
}
.studio__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--hd-ink-700);
}
.studio__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.12) contrast(1.02); }

/* =============================================================
   PRACTICE (services, paper)
   ============================================================= */
.practice__list { border-top: 1px solid var(--hd-line-on-paper); }
.practice__item {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(22px, 3.4vh, 40px) 0;
  border-bottom: 1px solid var(--hd-line-on-paper);
  flex-wrap: wrap;
}
.practice__num {
  font-family: var(--hd-font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--hd-concrete-500);
  width: 42px;
  flex: none;
}
.practice__name {
  margin: 0;
  flex: 1;
  min-width: 240px;
  font-family: var(--hd-font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.practice__desc {
  margin: 0;
  flex: 1;
  min-width: 220px;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hd-paper-body);
}

/* =============================================================
   AWARDS & PRESS
   ============================================================= */
.awards__list { border-top: 1px solid var(--hd-line-on-dark); }
.award {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 40px);
  padding: clamp(16px, 2.4vh, 26px) 0;
  border-bottom: 1px solid var(--hd-line-on-dark);
  flex-wrap: wrap;
}
.award__year {
  font-family: var(--hd-font-display);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--hd-accent);
  width: 60px;
  flex: none;
}
.award__title {
  flex: 1;
  min-width: 220px;
  font-family: var(--hd-font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: -0.01em;
  transition: color var(--hd-dur-ui) var(--hd-ease-out);
}
.award:hover .award__title { color: var(--hd-accent); }
.award__project {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hd-text-muted);
}

.press {
  margin-top: clamp(40px, 6vh, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hd-text-faint);
}
.press strong { color: var(--hd-text-soft); font-weight: 400; }

/* =============================================================
   CONTACT FOOTER
   ============================================================= */
.footer {
  background: var(--hd-ink-900);
  padding: clamp(80px, 13vh, 180px) var(--hd-pad-x) clamp(34px, 5vh, 56px);
  border-top: 1px solid var(--hd-line-on-dark);
}
.footer__cta { text-decoration: none; color: inherit; display: block; }
.footer__headline {
  margin: 0;
  font-family: var(--hd-font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 13vw, 11rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.footer__email {
  margin-top: clamp(28px, 4vh, 48px);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(15px, 2vw, 24px);
  font-family: var(--hd-font-display);
  font-weight: 500;
  border-bottom: 1px solid var(--hd-line-on-dark-strong);
  padding-bottom: 8px;
  transition: gap var(--hd-dur-ui) var(--hd-ease-out);
}
.footer__cta:hover .footer__email { gap: 22px; }

.footer__grid {
  margin-top: clamp(56px, 9vh, 120px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--hd-line-on-dark);
  padding-top: clamp(28px, 4vh, 44px);
}
.footer__label {
  font-size: 10px;
  letter-spacing: var(--hd-track-label);
  text-transform: uppercase;
  color: var(--hd-accent);
  margin-bottom: 12px;
}
.footer__grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hd-text-soft);
}
.footer__links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer__links a {
  text-decoration: none;
  color: var(--hd-text-soft);
  width: fit-content;
  transition: color var(--hd-dur-ui) var(--hd-ease-out);
}
.footer__links a:hover { color: var(--hd-text-strong); }

.footer__base {
  margin-top: clamp(46px, 7vh, 90px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__wordmark {
  font-family: var(--hd-font-display);
  font-weight: 800;
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__copy {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hd-text-faint);
}

/* =============================================================
   PROJECT DETAIL PAGE (project.html)
   ============================================================= */
.project-page__over { align-items: center; }
.project-page__back {
  text-decoration: none;
  color: var(--hd-concrete-500);
  transition: color var(--hd-dur-ui) var(--hd-ease-out);
}
.project-page__back:hover { color: var(--hd-ink-text); }

.project-page__foot {
  margin-top: clamp(40px, 7vh, 88px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--hd-line-on-paper);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Interior / Exterior sections. */
.project-block { margin-top: clamp(46px, 8vh, 104px); }
.project-block[hidden] { display: none; }
.project-block__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 40px);
  border-top: 1px solid var(--hd-line-on-paper);
  padding-top: clamp(22px, 3.4vh, 38px);
  margin-bottom: clamp(24px, 3.5vh, 44px);
}
.project-block__title {
  margin: 0;
  flex: none;
  font-family: var(--hd-font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.project-block__note {
  margin: 0;
  flex: 1;
  min-width: 240px;
  max-width: 52ch;
  text-align: right;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.6;
  color: var(--hd-paper-body);
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.project-gallery > div {
  position: relative;
  overflow: hidden;
  background-color: var(--hd-paper-200);
}
.project-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Outline button on a paper (light) surface. */
.btn-outline--ink {
  color: var(--hd-ink-text);
  border-color: rgba(22, 22, 15, 0.4);
}
.btn-outline--ink:hover {
  background: var(--hd-ink-900);
  color: var(--hd-paper-100);
  border-color: var(--hd-ink-900);
}

/* =============================================================
   SCROLL REVEAL — initial hidden state (JS removes via GSAP).
   Hidden only when JS + motion are available, so no-JS users see content.
   ============================================================= */
.js [data-reveal],
.js [data-reveal-group] > * {
  will-change: transform, opacity;
}

/* =============================================================
   RESPONSIVE — tablet & mobile adjustments
   ============================================================= */

/* Mobile & small tablet: swap the inline nav links for the hamburger menu. */
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav-menu { display: flex; }
}

/* Work grid: below ~two 300px columns, `auto-fit` collapses to a single
   track, but the `span 2` wide cards force an extra implicit column —
   leaving the narrow cards misaligned and the wide cards overflowing.
   Collapse to one full-width column and neutralise the span. */
@media (max-width: 620px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-grid .card--wide { grid-column: auto; }
}

/* Phones */
@media (max-width: 600px) {
  /* Project-in-focus: stack the detail image pair instead of squeezing
     them into two columns. */
  .project__pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Interior/Exterior note reads left-aligned once it wraps under the title. */
  .project-block__note { text-align: left; }
}
