/* =========================================================
   Greymatter Buildcon LLP — redesigned site
   Editorial architecture studio aesthetic
   ========================================================= */

:root {
  --ink: #121416;
  --ink-soft: #33383a;
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --white: #ffffff;
  --brass: #b8955a;
  --brass-light: #d9bc85;
  --muted: #6d7274;
  --line: rgba(18, 20, 22, 0.13);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(18, 20, 22, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4, p { margin-top: 0; }

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

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

.container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 76px);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Reveal animation ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease var(--d, 0s), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(18, 20, 22, 0.06);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { flex: 0 0 auto; display: block; }
.brand img {
  width: 148px;
  height: auto;
  mix-blend-mode: multiply;
}
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(16px, 2.3vw, 34px); }
.nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--brass);
  transition: right 0.3s;
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-light); }
.btn-ghost { border-color: rgba(246, 244, 239, 0.35); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.07); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2c3133; }
.header-cta { padding: 12px 18px; white-space: nowrap; }
.btn-full { width: 100%; margin-top: 6px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-top: 118px;
  padding-bottom: 30px;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.65) contrast(1.06) brightness(0.72);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 12, 0.88) 0%, rgba(9, 11, 12, 0.58) 52%, rgba(9, 11, 12, 0.28) 100%),
    linear-gradient(0deg, rgba(9, 11, 12, 0.85) 0%, transparent 44%);
}
.hero-inner, .hero-foot { position: relative; z-index: 2; }
.hero-inner { padding-block: clamp(56px, 9vh, 110px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: var(--brass);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.75; }
.eyebrow.light { color: var(--brass-light); }
.hero h1 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 8.1vw, 7.6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.hero h1 em { color: var(--brass-light); font-style: italic; }
.hero-copy {
  max-width: 54ch;
  margin: 32px 0 0;
  color: rgba(246, 244, 239, 0.8);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  color: rgba(246, 244, 239, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.scroll-cue span { display: inline-block; margin-left: 6px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.quick-stats { display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 64px); }
.quick-stats li { min-width: 90px; }
.quick-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}
.quick-stats span {
  display: block;
  margin-top: 7px;
  color: rgba(246, 244, 239, 0.6);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Section basics ---------- */
.section { padding-block: clamp(88px, 11vw, 158px); }
.section-head { margin-bottom: clamp(44px, 5vw, 68px); }
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 34px 60px;
}
.display {
  max-width: 23ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.027em;
}
.display-soft { color: var(--muted); }
.section-note { max-width: 42ch; margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Studio ---------- */
.studio { background: var(--paper); }
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: start;
}
.brand-plate {
  display: inline-block;
  padding: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.brand-plate img { width: min(100%, 250px); height: auto; }
.place-note {
  margin: 28px 0 8px;
  color: var(--brass);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.intro-note { max-width: 34ch; margin: 0; color: var(--muted); font-size: 15px; }
.studio-cards { display: grid; gap: 18px; }
.info-card {
  padding: clamp(26px, 3.4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.info-card:hover { border-color: var(--brass); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-label {
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}
.info-card p:last-child {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.45;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(52px, 7vw, 84px) 0 0;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stat-strip li { padding: 0 24px 0 0; border-right: 1px solid var(--line); }
.stat-strip li + li { padding-left: 28px; }
.stat-strip li:last-child { border-right: 0; }
.stat-strip strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
}
.stat-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Work ---------- */
.work { background: var(--white); }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: clamp(34px, 4vw, 52px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.filter {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter span { margin-left: 5px; opacity: 0.5; }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(46px, 5vw, 76px) clamp(24px, 3.2vw, 50px);
}
.project-card.is-hidden { display: none; }
.project-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s;
}
.project-card:hover .project-media img { transform: scale(1.055); }
.status {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.status--completed::before { background: #5c8a63; }
.status--ongoing::before { background: var(--brass); }
.status--proposed::before { background: #8b9296; }
.media-index {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 22px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.media-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .media-arrow,
.project-media:focus-visible .media-arrow { opacity: 1; transform: none; }
.project-body { padding-top: 22px; }
.project-meta {
  margin: 0 0 10px;
  color: var(--brass);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.project-body h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.012em;
}
.project-location { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.project-desc { max-width: 55ch; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.72; }

/* ---------- Services ---------- */
.services { background: var(--paper); }
.services-list { border-top: 1px solid var(--line); }
.service-item { border-bottom: 1px solid var(--line); }
.service-heading { margin: 0; }
.service-trigger {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 28px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.service-num { color: var(--brass); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
.service-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.25s;
}
.service-trigger:hover .service-title { color: #82683d; }
.service-icon {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  transition: transform 0.3s, background-color 0.3s, color 0.3s, border-color 0.3s;
}
.service-trigger[aria-expanded="true"] .service-icon {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.service-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.42s ease; }
.service-panel.open { grid-template-rows: 1fr; }
.service-panel > div { overflow: hidden; }
.service-panel-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px 40px;
  padding: 0 0 32px 74px;
}
.service-panel-inner p { max-width: 62ch; margin: 0; color: var(--muted); }
.text-link {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--brass);
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.text-link:hover { color: #82683d; }

/* ---------- Philosophy ---------- */
.philosophy {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.philosophy::before {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  right: -18vw;
  top: -30vw;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 0 0 8vw rgba(255, 255, 255, 0.015), 0 0 0 16vw rgba(255, 255, 255, 0.01);
  pointer-events: none;
}
.philosophy-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
}
.philosophy-copy {
  max-width: 42ch;
  margin: 0;
  color: rgba(246, 244, 239, 0.72);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.55;
}
.philosophy-lines p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.1vw, 5.6rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.philosophy-lines p:nth-child(2) { padding-left: clamp(0px, 4vw, 60px); color: var(--brass-light); }
.philosophy-lines p:nth-child(3) { padding-left: clamp(0px, 8vw, 120px); }

/* ---------- Journey ---------- */
.journey { background: var(--paper); }
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 40px;
  left: 112px;
  width: 1px;
  background: var(--line);
}
.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 36px;
  padding-bottom: clamp(38px, 4vw, 56px);
}
.milestone:last-child { padding-bottom: 0; }
.year {
  margin: 0;
  padding-top: 2px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1;
  text-align: right;
}
.body { position: relative; padding-left: 2px; }
.body::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 11px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--brass);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 5px var(--paper);
}
.body h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
}
.body p { max-width: 62ch; margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Team ---------- */
.team { background: var(--white); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 30px);
}
.team-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s;
}
.team-card:hover .team-media img { transform: scale(1.045); filter: grayscale(0); }
.team-info { padding-top: 20px; }
.role {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.team-info h3 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 400;
  line-height: 1.22;
}
.team-info a {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.team-info a:hover { color: var(--ink); border-bottom-color: var(--brass); }

/* ---------- Contact ---------- */
.contact { background: var(--paper-2); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: start;
}
.contact-intro .display { max-width: 12ch; font-size: clamp(2.7rem, 5.6vw, 4.9rem); }
.contact-dl { margin-top: clamp(38px, 5vw, 60px); }
.contact-dl > div { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-dl dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact-dl dd { font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.contact-dl dd a { border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.contact-dl dd a:hover { border-bottom-color: var(--brass); }

.contact-form {
  padding: clamp(26px, 3.6vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field label span { color: #ac5340; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a9e9f; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184, 149, 90, 0.16);
}
.field.invalid input, .field.invalid textarea { border-color: #ac5340; }
.field-error { display: block; min-height: 0; color: #ac5340; font-size: 12px; }
.field-error:not(:empty) { padding-top: 6px; }
.form-error { margin: 0 0 14px; color: #ac5340; font-size: 13px; }
.form-success {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--brass);
  background: rgba(184, 149, 90, 0.11);
  font-size: 14px;
  line-height: 1.6;
}
.form-success strong, .form-success span { display: block; }
.form-success a { display: inline-block; margin-top: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(72px, 8vw, 112px) 28px;
  background: #0d0f10;
  color: rgba(246, 244, 239, 0.7);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: clamp(54px, 6vw, 80px);
}
.wordmark {
  display: inline-block;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.wordmark span { color: var(--brass); }
.footer-sub { margin: 10px 0 0; color: var(--brass-light); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.footer-copy { max-width: 42ch; margin: 26px 0 0; font-size: 14px; }
.footer-top h2 {
  margin: 4px 0 22px;
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-top ul { display: grid; gap: 12px; font-size: 14px; }
.footer-top a { transition: color 0.25s; }
.footer-top a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--brass-light); }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background-color 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--brass); }

/* ---------- Project modal ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 48px);
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(7, 9, 10, 0.82); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  width: min(100%, 1040px);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}
.modal-close:hover { background: var(--brass); }
.modal-media { min-height: 380px; background: var(--paper-2); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: clamp(28px, 4vw, 58px); }
.modal-content h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 400;
  line-height: 1.12;
}
.modal-location { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.modal-desc { margin: 0 0 30px; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .philosophy-grid { grid-template-columns: 1fr; gap: 44px; }
  .philosophy-lines p { white-space: normal; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-top { grid-template-columns: 1.2fr 1fr; }
  .footer-top > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 72px; }
  .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 20px clamp(20px, 5vw, 76px) 30px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(18, 20, 22, 0.09);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .nav a::after { display: none; }
  .studio-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-intro .display { max-width: 18ch; }
  .hero { padding-top: 100px; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 132px; padding-bottom: 34px; }
  .hero-inner { padding-block: 46px 60px; }
  .hero h1 { font-size: clamp(2.9rem, 12vw, 4.6rem); }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 26px; }
  .quick-stats { gap: 26px 38px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .stat-strip li:nth-child(2) { border-right: 0; }
  .stat-strip li:nth-child(3), .stat-strip li:nth-child(4) { padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; }
  .projects-grid { grid-template-columns: 1fr; gap: 46px; }
  .timeline::before { left: 5px; }
  .milestone { grid-template-columns: 1fr; gap: 8px; padding-left: 30px; }
  .year { text-align: left; }
  .body::before { left: -30px; }
  .service-trigger { grid-template-columns: 38px 1fr 32px; gap: 12px; }
  .service-panel-inner { padding-left: 50px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 38px; }
  .footer-top > div:last-child { grid-column: auto; }
  .modal-panel { grid-template-columns: 1fr; max-height: 90vh; }
  .modal-media { min-height: 0; height: 270px; }
  .modal-content { padding: 26px; }
}

@media (max-width: 520px) {
  .brand img { width: 124px; }
  .display { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.6rem); }
  .hero-actions .btn { width: 100%; }
  .filter { padding: 8px 13px; font-size: 9px; }
  .team-grid { grid-template-columns: 1fr; gap: 36px; }
  .philosophy-lines p { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
