/* Nassery · Bespoke Performance
   Black and white only. Archivo throughout; wide (125%) for headings and labels.
   Motion is progressive: without JS (or with reduced motion) everything is simply visible. */

:root {
  --obsidian: #0A0A0A;
  --black: #000000;
  --graphite: #141414;
  --graphite-2: #1C1C1C;
  --rule: #262626;
  --steel: #8E8E8E;
  --silver: #C8C8C8;
  --white: #FFFFFF;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-pad: clamp(96px, 13vw, 180px);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.intro-active body { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

::selection { background: var(--white); color: var(--obsidian); }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  padding: 12px 18px; background: var(--white); color: var(--obsidian);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Photos: all temporary imagery is rendered in black and white */
.hero-img,
.house-media img,
.service-media img,
.showroom-photo img,
.ethos-media img {
  filter: grayscale(1) contrast(1.1) brightness(0.92);
}

/* ---------- Film grain ---------- */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 250;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Type ---------- */

.label {
  font-size: 12px;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
}

.section-title {
  font-size: clamp(32px, 4.8vw, 66px);
  line-height: 1.04;
  font-weight: 500;
  font-stretch: 125%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Coachline: the brand's three-line device ---------- */

.coachline {
  height: 10px;
  background: repeating-linear-gradient(to bottom, var(--white) 0 2px, transparent 2px 4px);
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), translate 0.35s var(--ease);
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.button-solid { background: var(--white); color: var(--obsidian); }
.button-solid::before { background: var(--obsidian); }
.button-solid:hover { color: var(--white); }
.button-outline { background: transparent; color: var(--white); }
.button-outline::before { background: var(--white); }
.button-outline:hover { color: var(--obsidian); }
.button:hover::before { transform: scaleY(1); transform-origin: top; }

.button-ghost { background: transparent; color: var(--white); border-color: transparent; padding: 0 4px; overflow: visible; }
.button-ghost::before { display: none; }
.button-ghost::after { content: "→"; margin-left: 14px; letter-spacing: 0; transition: transform 0.4s var(--ease); }
.button-ghost:hover::after { transform: translateX(8px); }

/* ---------- Intro ---------- */

.intro { display: none; }
html.intro-active .intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
}
html.intro-active .intro.is-leaving { clip-path: inset(0 0 100% 0); }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.intro-mark { width: clamp(84px, 9vw, 120px); height: auto; overflow: visible; }
.intro-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 1.15s var(--ease-io) forwards;
}
.intro-mark path:nth-child(1) { animation-delay: 0.15s; }
.intro-mark path:nth-child(2) { animation-delay: 0.32s; }
.intro-mark path:nth-child(3) { animation-delay: 0.49s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.intro-word {
  width: clamp(180px, 18vw, 260px);
  opacity: 0;
  transform: translateY(12px);
  animation: intro-word 0.9s var(--ease) 1.35s forwards;
}
@keyframes intro-word { to { opacity: 1; transform: none; } }

/* ---------- Custom cursor ---------- */

.cursor { display: none; }
html.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0; left: 0;
  z-index: 280;
  pointer-events: none;
  mix-blend-mode: difference;
}
html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor label { cursor: none; }
html.has-cursor input,
html.has-cursor textarea { cursor: text; }
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--white); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  display: flex; align-items: center; justify-content: center;
}
.cursor-ring::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--white);
  border-radius: 50%;
  transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s;
}
.cursor-label {
  position: relative;
  font-size: 11px; font-weight: 700; font-stretch: 125%;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--obsidian);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.45s var(--ease);
}
.cursor.is-hover .cursor-ring::before { transform: scale(1.7); }
.cursor.is-view { mix-blend-mode: normal; }
.cursor.is-view .cursor-ring::before { transform: scale(2.6); background: var(--white); }
.cursor.is-view .cursor-label { opacity: 1; transform: scale(1); }
.cursor.is-view .cursor-dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.site-header.is-tucked { transform: translateY(-100%); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 172px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 44px; }
.site-nav ul { display: flex; gap: 36px; }
.site-nav ul a {
  position: relative;
  font-size: 12px; font-weight: 600; font-stretch: 125%;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--silver);
  padding: 12px 0;
  transition: color 0.3s;
}
.site-nav ul a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 4px;
  height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.site-nav ul a:hover { color: var(--white); }
.site-nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { min-height: 44px; padding: 0 22px; white-space: nowrap; }
@media (max-width: 1100px) {
  .site-nav { gap: 30px; }
  .site-nav ul { gap: 24px; }
}

.menu-toggle {
  display: none;
  width: 48px; height: 48px; margin-right: -12px;
  background: none; border: 0; color: var(--white); cursor: pointer;
}
.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block; width: 26px; height: 2px; margin: 0 auto;
  background: currentColor;
  transition: transform 0.35s var(--ease), background-color 0.2s;
}
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before,
.menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -8px; }
.menu-toggle-lines::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-8px) rotate(-45deg); }

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

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--black);
}

.hero-media { position: absolute; inset: -6% 0 -6% 0; will-change: transform; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
  scale: 1.05;
}
html.js .hero-img { scale: 1.22; transition: scale 3.2s var(--ease); }
html.js.is-loaded .hero-img { scale: 1.05; }

.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 42%, rgba(0,0,0,0.12) 75%),
    linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0) 45%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 22%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: clamp(36px, 6vh, 64px);
}

.hero-title {
  /* "PERFORMANCE." is about 10.5em wide: sized so it always fits the 1280px container */
  font-size: clamp(30px, 8.4vw, 120px);
  line-height: 0.94;
  font-weight: 500;
  font-stretch: 125%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: block; }
html.js .hero-title .line > span { transform: translateY(110%); transition: transform 1.3s var(--ease); }
html.js .hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
html.js.is-loaded .hero-title .line > span { transform: none; }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-top: 6px;
}
.hero-copy { display: flex; flex-direction: column; gap: 30px; }
.hero-lead { max-width: 540px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--silver); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }

html.js .fade-up { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
html.js.is-loaded .fade-up { opacity: 1; transform: none; }
html.js.is-loaded .hero-label { transition-delay: 0.35s; }
html.js.is-loaded .hero-copy { transition-delay: 0.55s; }
html.js.is-loaded .scroll-cue { transition-delay: 0.8s; }

.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.scroll-cue-text {
  font-size: 11px; font-weight: 600; font-stretch: 125%;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--silver);
  writing-mode: vertical-rl;
}
.scroll-cue-line { position: relative; width: 1px; height: 72px; background: rgba(255,255,255,0.2); overflow: hidden; }
.scroll-cue-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: var(--white);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

.hero > .coachline { position: relative; }
html.js .coachline-draw { transform: scaleX(0); transform-origin: left center; transition: transform 1.8s var(--ease-io) 0.5s; }
html.js.is-loaded .coachline-draw { transform: scaleX(1); }

/* ---------- Ticker ---------- */

.marquee {
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--rule);
  background: var(--black);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee span {
  font-size: clamp(52px, 9vw, 148px);
  line-height: 1;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.marquee .outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.75); }
.marquee .sep { color: var(--steel); margin: 0 0.35em; font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: var(--section-pad) 0; position: relative; }
.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(56px, 8vw, 104px); }

/* Parallax figures: the image is taller than its frame and slides inside it */
.house-media,
.service-media {
  position: relative;
  overflow: hidden;
  background: var(--graphite);
}
.house-media img,
.service-media img {
  position: absolute;
  left: 0; top: -10%;
  width: 100%; height: 120%;
  object-fit: cover;
}

/* The house */

.house-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}
.house-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.house-title { font-size: clamp(30px, 3.5vw, 52px); }
.house-text { max-width: 520px; color: var(--silver); font-size: clamp(16px, 1.3vw, 18px); }
.house-media { aspect-ratio: 4 / 5; }

/* Services */

.services { background: var(--obsidian); }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.service-row + .service-row { margin-top: clamp(96px, 12vw, 168px); }
.service-row-flip .service-media { order: 2; }
.service-media { aspect-ratio: 5 / 4; }
.service-body { display: flex; flex-direction: column; gap: 22px; }
.service-body > p:not(.service-number) { color: var(--silver); max-width: 460px; }

.service-number {
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  font-weight: 300;
  font-stretch: 125%;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}
.service-title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.service-list { border-top: 1px solid var(--rule); max-width: 460px; }
.service-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.service-list li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 14px; height: 6px; margin-top: -3px;
  background: repeating-linear-gradient(to bottom, var(--white) 0 1px, transparent 1px 2.5px);
}

/* Showroom */

.showroom { position: relative; background: var(--black); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.showroom-pin {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 56px);
  padding: var(--section-pad) 0 clamp(56px, 8vw, 96px);
}
.showroom.is-pinned .showroom-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) 0 36px;
  gap: 36px;
}
.showroom-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.showroom-head > div { display: flex; flex-direction: column; gap: 18px; }
.showroom-count {
  font-size: 13px; font-weight: 600; font-stretch: 125%;
  letter-spacing: 0.24em; color: var(--steel);
}
.showroom-current { color: var(--white); }

.showroom-track {
  display: flex;
  gap: clamp(20px, 2.5vw, 40px);
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.showroom-track::-webkit-scrollbar { display: none; }
.showroom.is-pinned .showroom-track { overflow: visible; scroll-snap-type: none; will-change: transform; }

.showroom-item {
  flex: 0 0 auto;
  width: min(82vw, 880px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-snap-align: start;
  scroll-margin-left: var(--gutter);
}
.showroom.is-pinned .showroom-item { width: min(60vw, calc((100vh - 400px) * 1.6)); }
.showroom-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--graphite); }
.showroom-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease), filter 0.8s var(--ease);
}
.showroom-item:hover .showroom-photo img { scale: 1.06; filter: grayscale(1) contrast(1.15) brightness(1); }

.showroom-item figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; row-gap: 4px; align-items: baseline; }
.build-number {
  grid-row: span 2;
  font-size: 11px; font-weight: 600; font-stretch: 125%;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel);
}
.build-name { font-size: 18px; font-weight: 600; font-stretch: 112%; letter-spacing: 0.06em; }
.build-desc { font-size: 15px; color: var(--silver); }

.showroom-progress { height: 1px; background: var(--rule); }
.showroom-progress span { display: block; height: 100%; background: var(--white); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Process */

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; }
.process-step { display: flex; flex-direction: column; gap: 16px; padding-top: 30px; position: relative; }
.process-step::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(to bottom, var(--white) 0 2px, transparent 2px 4px);
  transform-origin: left;
}
html.js .process-step::before { transform: scaleX(0); transition: transform 1.4s var(--ease-io) 0.2s; }
html.js .process-step.is-visible::before { transform: scaleX(1); }
.process-number {
  margin-top: 10px;
  font-size: clamp(40px, 4vw, 60px); line-height: 1;
  font-weight: 300; font-stretch: 125%;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}
.process-step h3 { font-size: 19px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.16em; text-transform: uppercase; }
.process-step p { color: var(--silver); font-size: 16px; }

/* Ethos */

.ethos {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.ethos-media { position: absolute; inset: 0; overflow: hidden; }
.ethos-media img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; }
.ethos-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.88) 78%); }
.ethos-media img { filter: grayscale(1) contrast(1.15) brightness(1.25); }
.ethos-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  text-align: center;
  padding-top: var(--section-pad); padding-bottom: var(--section-pad);
}
.ethos-quote {
  max-width: 14em;
  font-size: clamp(34px, 6.4vw, 96px);
  line-height: 1.04;
  font-weight: 500;
  font-stretch: 125%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ethos-quote .word { display: inline-block; transition: opacity 0.5s var(--ease), filter 0.5s var(--ease); }
html.js .ethos-quote .word { opacity: 0.14; filter: blur(2px); }
html.js .ethos-quote .word.is-lit { opacity: 1; filter: none; }
.ethos-seal { width: 72px; opacity: 0.85; }

/* Contact */

.contact { background: var(--obsidian); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-lead { color: var(--silver); max-width: 440px; }
.contact-details { margin: 16px 0 0; border-top: 1px solid var(--rule); }
.contact-details > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--rule); }
.contact-details dt { font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.24em; text-transform: uppercase; color: var(--steel); padding-top: 4px; }
.contact-details dd { margin: 0; font-size: 16px; }
.contact-details a { text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color 0.3s; }
.contact-details a:hover { border-color: var(--white); }

.enquiry-form {
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--graphite);
  border: 1px solid var(--rule);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label,
.field legend { padding: 0; font-size: 11px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.24em; text-transform: uppercase; color: var(--silver); }
.field legend { margin-bottom: 10px; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%; min-height: 52px; padding: 12px 0;
  background: transparent;
  border: 0; border-bottom: 1px solid #3A3A3A; border-radius: 0;
  color: var(--white); font-family: var(--font); font-size: 17px;
  transition: border-color 0.3s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
input:hover, textarea:hover { border-color: var(--steel); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--white); }
input[aria-invalid="true"] { border-bottom-style: dashed; border-color: var(--white); }

.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  border: 1px solid #3A3A3A;
  font-size: 12px; font-weight: 600; font-stretch: 125%; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver);
  transition: all 0.3s var(--ease);
}
.choice:hover span { border-color: var(--steel); color: var(--white); }
.choice input:checked + span { background: var(--white); border-color: var(--white); color: var(--obsidian); }
.choice input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.form-note { font-size: 14px; color: var(--steel); }
.form-status { font-size: 15px; min-height: 1.6em; }

/* Footer */

.site-footer { background: var(--black); overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; }
.footer-top ul { display: flex; flex-wrap: wrap; gap: 12px 34px; }
.footer-top a,
.back-top {
  font-size: 12px; font-weight: 600; font-stretch: 125%;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--silver);
  transition: color 0.3s;
}
.footer-top a:hover { color: var(--white); }
.footer-word { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(32px, 5vw, 56px); }
.footer-word img { width: 100%; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; padding-bottom: 40px;
  border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--steel);
}

/* ---------- Scroll reveals ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

html.js .reveal-img { clip-path: inset(22% 8% 22% 8%); transition: clip-path 1.6s var(--ease-io); }
html.js .reveal-img img { scale: 1.3; transition: scale 2.2s var(--ease); }
html.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }
html.js .reveal-img.is-visible img { scale: 1; }

/* ---------- Reduced motion ----------
   The .reduce-motion class is set in <head> from the visitor's OS setting. */

html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion .grain,
html.reduce-motion .marquee-track,
html.reduce-motion .scroll-cue-line::after { animation: none; }
html.reduce-motion.js .hero-img,
html.reduce-motion.js .reveal-img img { scale: 1.05; transition: none; }
html.reduce-motion.js .hero-title .line > span,
html.reduce-motion.js .fade-up,
html.reduce-motion.js .reveal,
html.reduce-motion.js .reveal-img,
html.reduce-motion.js .coachline-draw,
html.reduce-motion.js .process-step::before { transform: none; opacity: 1; clip-path: none; transition: none; }
html.reduce-motion.js .ethos-quote .word { opacity: 1; filter: none; }

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

@media (max-width: 1080px) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px;
    background: var(--obsidian);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  .site-header:has(.site-nav.is-open) { background: var(--obsidian); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
  .site-nav ul a::after { display: none; }
  .nav-cta { margin-top: 24px; min-height: 52px; }

  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 0; }
  .scroll-cue { display: none; }
  .hero-img { object-position: 60% 50%; }

  .house-grid,
  .service-row,
  .contact-grid { grid-template-columns: 1fr; }
  .service-row-flip .service-media { order: 0; }
  .house-media { aspect-ratio: 4 / 3; }

  .showroom-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .showroom-count { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .label { letter-spacing: 0.2em; }
  .brand img { width: 140px; }
  .process-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-details > div { grid-template-columns: 1fr; gap: 6px; }
  .hero-actions .button-solid { width: 100%; }
  .showroom-item figcaption { grid-template-columns: 1fr; }
  .build-number { grid-row: auto; }
}
