/* ============================================================
   BuildersCo — buildersco.co.uk
   Dark & luxe. Near-black, spotlit work, bronze + brick red.
   ============================================================ */

:root {
  --bg: #0d0e10;
  --bg-2: #131518;
  --bg-3: #191c20;
  --bg-4: #21242a;
  --head: #ffffff;
  --ink: #eae7df;
  --muted: #9a9da4;
  --muted-2: #6c6f77;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --red: #cb4a3d;
  --red-600: #b13a2e;
  --red-tint: rgba(203, 74, 61, 0.14);
  --gold: #c6a877;
  --gold-soft: rgba(198, 168, 119, 0.5);
  --radius: 4px;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75);
  --glow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-head: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --edge: clamp(1.25rem, 5vw, 5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: 1300px; margin: 0 auto; padding-inline: var(--edge); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--head);
}
.display {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.73rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-soft); }
.eyebrow.center { justify-content: center; }
.eyebrow.solo::before { display: none; }

section { position: relative; z-index: 2; padding: clamp(4.5rem, 9vw, 9rem) 0; }
section[id] { scroll-margin-top: 84px; }
h2, h3, .cat-label h2 { text-wrap: balance; }
.lead, .sdesc, .sec-head p { text-wrap: pretty; }

.sec-top {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding-top: 1.6rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.sec-num { font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; color: var(--gold); }
.sec-top .eyebrow { color: var(--muted); }
.sec-top .eyebrow::before { display: none; }

.sec-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head .lead { margin-top: 1.4rem; font-size: 1.18rem; color: var(--muted); }

/* ---------- Buttons ---------- */

.btn {
  --bg-btn: var(--red);
  --fg-btn: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 1.95rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  background: var(--bg-btn);
  color: var(--fg-btn);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, color 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; position: relative; z-index: 2; transition: transform 0.4s var(--ease); }
.btn span { position: relative; z-index: 2; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: 1; background: #fff; transform: translateY(101%); transition: transform 0.5s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--bg); }
.btn:hover::after { transform: translateY(0); }
.btn:hover svg.arrow { transform: translateX(4px); }

.btn-line {
  --bg-btn: transparent;
  --fg-btn: #fff;
  border-color: var(--line-2);
}
.btn-line::after { background: #fff; }
.btn-line:hover { color: var(--bg); border-color: #fff; }

.btn-gold { --bg-btn: var(--gold); --fg-btn: #16130d; }
.btn-gold::after { background: #fff; }
.btn-gold:hover { color: #16130d; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  transition: padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(13, 14, 16, 0.72);
  backdrop-filter: blur(16px) saturate(130%);
}
.site-header.scrolled .header-in { padding: 0.8rem 0; border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-2); transition: width 0.4s var(--ease), height 0.4s var(--ease); }
.brand-name { font-family: var(--font-head); font-weight: 900; font-size: 1.32rem; letter-spacing: -0.03em; line-height: 1; }
.brand-name b { color: var(--red); font-weight: 900; }
.brand-tag { display: block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.site-header.scrolled .brand img { width: 38px; height: 38px; }

.main-nav { display: flex; align-items: center; gap: 2.3rem; }
.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 4px 0;
  transition: color 0.3s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 1.4rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.98rem; color: #fff; white-space: nowrap; transition: color 0.3s; }
.nav-phone svg { width: 17px; height: 17px; color: var(--red); }
.nav-phone:hover { color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; background: none; border: 0; cursor: pointer; padding: 0 10px; z-index: 90; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #000;
  overflow: hidden;
  z-index: 2;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/hero-door.jpg") center 42% / 100% auto no-repeat;
  transform: scale(1.08);
  animation: heroZoom 20s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
/* Spotlight vignette — frames the photo without altering it */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 70% 35%, transparent 0%, rgba(8, 9, 10, 0.35) 55%, rgba(8, 9, 10, 0.9) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(76deg, rgba(8, 9, 10, 0.94) 22%, rgba(8, 9, 10, 0.55) 55%, rgba(8, 9, 10, 0.15) 100%),
              linear-gradient(0deg, rgba(8, 9, 10, 0.95) 1%, rgba(8, 9, 10, 0) 42%);
}
.hero-inner { position: relative; z-index: 3; padding-top: 8rem; padding-bottom: 2.4rem; width: 100%; }
.hero-eyebrow { margin-bottom: 1.9rem; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin: 2rem 0 2.7rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.6; color: rgba(255, 255, 255, 0.8); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-side {
  position: absolute;
  top: 50%; right: clamp(1rem, 2.5vw, 2.2rem);
  z-index: 3;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  display: flex; align-items: center; gap: 1.2rem;
}
.hero-side::after { content: ""; width: 1px; height: 60px; background: var(--gold-soft); }

.hero-meta {
  position: relative; z-index: 3;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 1rem;
}
.hero-meta .m { padding: 1.5rem 1.6rem 1.6rem 0; border-right: 1px solid var(--line); }
.hero-meta .m:nth-child(3) { border-right: 0; }
.hero-meta .m strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #fff; }
.hero-meta .m span { font-size: 0.8rem; color: var(--muted-2); letter-spacing: 0.04em; }
.hero-scroll { display: flex; align-items: center; justify-content: flex-end; gap: 0.7rem; padding: 1.5rem 0; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted-2); }
.hero-scroll svg { width: 16px; height: 16px; color: var(--gold); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* ---------- Marquee ---------- */

.marquee { position: relative; z-index: 2; background: var(--bg-2); padding: 1.15rem 0; overflow: hidden; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 1.2rem; padding: 0 1.7rem; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: rgba(255,255,255,0.7); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Services (editorial list) ---------- */

.services { background: var(--bg); }
.srv-list { border-top: 1px solid var(--line); }
.srow {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.05fr) 3rem;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(0.8rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.5s var(--ease), padding-left 0.5s var(--ease);
}
.srow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); }
.srow:hover { background: var(--bg-2); padding-left: clamp(1.4rem, 3vw, 2.6rem); }
.srow:hover::before { transform: scaleY(1); }
.snum { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; color: var(--muted-2); transition: color 0.4s; }
.srow:hover .snum { color: var(--gold); }
.sname { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.sdesc { color: var(--muted); font-size: 0.98rem; }
.sarrow { justify-self: end; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; color: #fff; opacity: 0.5; transition: opacity 0.4s, background 0.4s, transform 0.4s var(--ease); }
.sarrow svg { width: 18px; height: 18px; }
.srow:hover .sarrow { opacity: 1; background: var(--red); border-color: var(--red); transform: rotate(-45deg); }

/* ---------- Work / gallery ---------- */

.work { background: var(--bg-2); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 20vw, 235px);
  gap: clamp(0.5rem, 1vw, 0.85rem);
}
.g-item {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: var(--bg-3); border-radius: var(--radius);
  box-shadow: var(--glow);
}
.g-item.feature { grid-column: span 2; grid-row: span 2; }
.g-item.feature img { object-position: center 40%; }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.6s; }
.g-item:hover img { transform: scale(1.06); }
.g-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem; text-align: left;
  background: linear-gradient(transparent 35%, rgba(6, 7, 8, 0.9));
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.g-item:hover .g-overlay { opacity: 1; }
.g-cat { font-weight: 600; font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); transform: translateY(10px); transition: transform 0.5s var(--ease); }
.g-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: #fff; line-height: 1.2; margin-top: 0.35rem; transform: translateY(10px); transition: transform 0.5s 0.05s var(--ease); }
.g-item:hover .g-cat, .g-item:hover .g-title { transform: translateY(0); }
.g-view { position: absolute; top: 1.1rem; right: 1.1rem; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.35); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.25); display: grid; place-items: center; opacity: 0; transform: scale(0.8); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.g-view svg { width: 18px; height: 18px; color: #fff; }
.g-item:hover .g-view { opacity: 1; transform: scale(1); }
.work-more { margin-top: 3rem; display: flex; justify-content: center; }

/* Gallery page: category blocks */
.cat-block { margin-bottom: clamp(3rem, 6vw, 5rem); }
.cat-label { display: flex; align-items: baseline; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.cat-label h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cat-label .count { font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; color: var(--gold); }

/* Interior page hero */
.page-hero { position: relative; padding: clamp(9rem, 16vw, 13rem) 0 clamp(3.5rem, 6vw, 5rem); overflow: hidden; z-index: 2; background: #000; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../img/hero-door.jpg") center 42% / 100% auto no-repeat; opacity: 0.5; transform: scale(1.05); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(100% 100% at 30% 20%, rgba(8,9,10,0.6), rgba(8,9,10,0.96)); }
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 900; letter-spacing: -0.035em; margin-top: 1.3rem; }
.page-hero h1 em { font-style: normal; color: var(--gold); }
.page-hero p { color: rgba(255,255,255,0.75); margin-top: 1.2rem; max-width: 58ch; font-size: 1.12rem; }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 7, 8, 0.97); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: min(1120px, 92vw); max-height: 82vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 40px 90px rgba(0,0,0,0.7); }
.lb-caption { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.85); font-size: 0.95rem; text-align: center; width: 90%; letter-spacing: 0.02em; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.2); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background 0.25s, transform 0.25s; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: 1.4rem; }
.lb-next { right: 1.4rem; }
.lb-close { top: 1.5rem; right: 1.5rem; transform: none; }
.lb-close:hover { transform: rotate(90deg); background: var(--red); border-color: var(--red); }

/* ---------- About ---------- */

.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about-figure { position: relative; }
.about-figure img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.about-figure .stamp { position: absolute; bottom: -1.6rem; left: -1.6rem; background: var(--red); color: #fff; padding: 1.5rem 1.7rem; border-radius: var(--radius); max-width: 250px; box-shadow: var(--shadow); }
.about-figure .stamp b { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; display: block; line-height: 1; }
.about-figure .stamp span { font-size: 0.85rem; opacity: 0.92; display: block; margin-top: 0.4rem; }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p { color: var(--muted); margin-bottom: 1.1rem; }
.about-points { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.about-points li { display: flex; gap: 0.9rem; align-items: flex-start; font-weight: 500; color: var(--ink); }
.about-points svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }

/* ---------- Contact ---------- */

.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 5vw, 5rem); }
.contact-intro h2 { margin-bottom: 1.3rem; }
.contact-intro > p { color: var(--muted); font-size: 1.15rem; max-width: 42ch; }
.contact-list { list-style: none; display: grid; gap: 0.2rem; margin-top: 2.4rem; }
.contact-list li a, .contact-list li .row { display: flex; gap: 1.1rem; align-items: center; padding: 1.15rem 0; border-top: 1px solid var(--line); color: #fff; transition: color 0.3s; }
.contact-list li:last-child a, .contact-list li:last-child .row { border-bottom: 1px solid var(--line); }
.contact-list .c-icon { width: 24px; height: 24px; color: var(--gold); flex: none; }
.contact-list .c-icon svg { width: 24px; height: 24px; }
.contact-list strong { display: block; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 3px; }
.contact-list .val { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.contact-list a:hover .val { color: var(--gold); }

.contact-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.6rem); box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.contact-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.05rem; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.4rem; color: var(--ink); }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.98rem;
  background: var(--bg); color: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted-2); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198,168,119,0.18); }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 0.3rem; }
.form-note { font-size: 0.8rem; color: var(--muted-2); margin-top: 0.9rem; text-align: center; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg); color: var(--muted); padding: clamp(3.5rem, 6vw, 5.5rem) 0 2.5rem; position: relative; z-index: 2; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-brand .brand-name { color: #fff; font-size: 1.5rem; font-family: var(--font-head); font-weight: 900; letter-spacing: -0.03em; }
.footer-brand .brand-name b { color: var(--red); }
.footer-brand p { max-width: 34ch; margin-top: 1rem; font-size: 0.96rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 1.1rem; }
.footer-col a, .footer-col span { display: block; color: var(--muted); padding: 0.32rem 0; transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: 1.3rem; font-weight: 600; color: #fff; }
.footer-social svg { width: 18px; height: 18px; color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; padding-top: 1.6rem; font-size: 0.82rem; color: var(--muted-2); }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }
.reveal[data-delay="4"] { transition-delay: 0.28s; }
.reveal[data-delay="5"] { transition-delay: 0.35s; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .g-item.feature { grid-column: span 2; grid-row: span 2; }
  .g-item.wide { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-side { display: none; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 350px);
    background: var(--bg-2); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0; padding: 6rem var(--edge) 2rem;
    transform: translateX(100%); transition: transform 0.45s var(--ease);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { color: #fff; font-size: 1.5rem; font-family: var(--font-head); font-weight: 700; padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-phone span { display: none; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(6,7,8,0.6); z-index: 70; }

  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta .m:nth-child(2) { border-right: 0; }
  .hero-meta .m:nth-child(3) { border-top: 1px solid var(--line); }
  .hero-scroll { display: none; }
  .hero-actions .btn { flex: 1; justify-content: center; }

  .srow { grid-template-columns: 2.6rem 1fr auto; gap: 1rem 1.1rem; }
  .sdesc { grid-column: 2 / -1; }
  .sarrow { display: none; }

  .work-grid { grid-template-columns: 1fr; grid-auto-rows: 60vw; }
  .g-item.feature, .g-item.tall, .g-item.wide { grid-column: auto; grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .about-figure .stamp { left: 1rem; bottom: -1rem; }
}
