/* ==========================================================================
   CONSTRUX — luxury residential construction
   Design tokens, layout and motion.
   ========================================================================== */

:root {
  /* Near-black with a slight green cast, per the design direction. */
  --bg:        #0a0c0b;
  --bg-2:      #10130f;
  --bg-3:      #171b16;
  --fg:        #f2f0ea;
  --fg-dim:    #9ba29a;
  --fg-faint:  #868c85;
  /* Bright orange for fills, marks and text-on-dark (5.8:1 on --bg). */
  --accent:    #ff4d18;
  /* Buttons carry white label text, which needs a darker orange to clear
     WCAG AA 4.5:1 — this is 4.65:1 against #fff. */
  --accent-btn:    #d63c0d;
  --accent-btn-hv: #b32d08;
  --accent-dk: #d63c0d;
  --line:      rgba(242, 240, 234, 0.12);
  --line-soft: rgba(242, 240, 234, 0.06);

  --font-display: "Goldman", "Arial Black", system-ui, sans-serif;
  --font-ui: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --maxw: 1440px;
  --radius: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Fixed nav height plus breathing room, so an anchor jump (nav link,
     "Explore residential" deep link, skip link) doesn't land a heading
     directly under the sticky bar. */
  --nav-offset: 96px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id] { scroll-margin-top: var(--nav-offset); }

/* Small tick-mark eyebrow used throughout the design. */
.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0;
}
.eyebrow::before {
  content: "///";
  display: block;
  color: var(--fg);
  letter-spacing: -0.05em;
  margin-bottom: 0.35rem;
}
.eyebrow--right { text-align: right; }

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--accent-btn);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 52px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 0;
  padding: 0.5rem 0.5rem 0.5rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset,
              0 8px 20px rgba(0, 0, 0, 0.28);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn:hover {
  background: var(--accent-btn-hv);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset,
              0 12px 26px rgba(0, 0, 0, 0.36);
}
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset; }

/* Solid tile rather than a translucent black square — on orange the old
   rgba(0,0,0,.28) read as a detached dark box instead of part of the button. */
.btn__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  flex: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover .btn__icon { background: rgba(255, 255, 255, 0.26); transform: translate(2px, -2px); }
.btn__icon svg { width: 14px; height: 14px; }

.btn--ghost {
  --btn-bg: var(--bg-3);
  --btn-fg: var(--fg);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: #22271f; box-shadow: 0 10px 24px rgba(0,0,0,0.3); }
.btn--ghost .btn__icon { background: var(--accent); color: #fff; }
.btn--ghost:hover .btn__icon { background: var(--accent); }

/* ------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem var(--gutter);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 12, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
}
.brand__mark { width: 20px; height: 20px; flex: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__links a {
  display: block;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--fg-dim);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a.is-active {
  background: var(--bg-3);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.nav__end { display: flex; align-items: center; gap: 1.35rem; }
.nav__cta { font-size: 0.875rem; }
.nav__cta:hover { color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  max-height: 1100px;
  overflow: hidden;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Favour the lit house and dirt line over the empty black sky — the plate's
     top third is near-black and was reading as dead space. */
  object-position: 58% 74%;
  z-index: 1;
  will-change: transform;
}

/* Vignette so the type and UI keep their contrast over the plate. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10,12,11,0.72) 0%, rgba(10,12,11,0) 26%),
    linear-gradient(to top,    rgba(10,12,11,0.92) 0%, rgba(10,12,11,0) 42%);
}

.hero__word {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 21vw, 20rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  background: linear-gradient(to bottom, #ffffff 6%, #cfcdc6 46%, #6f716b 99%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  will-change: transform;
}

/* The excavator is a transparent cut-out sitting in front of the word —
   the depth trick from the design, done with real layers so it parallaxes. */
.hero__machine {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 6%;
  width: min(1240px, 92vw);
  max-height: 74svh;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(-50%);
  filter: drop-shadow(0 42px 60px rgba(0, 0, 0, 0.75));
  will-change: transform;
  pointer-events: none;
}

.hero__ui {
  position: absolute;
  z-index: 5;
  inset: auto 0 0 0;
  padding: 0 var(--gutter) clamp(1.75rem, 5vh, 3.25rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin-inline: auto;
}

.hero__card {
  background: rgba(18, 21, 18, 0.5);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem;
  max-width: 21rem;
}
.hero__card p {
  margin: 0 0 1.1rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------- generic block */

.block { padding-block: clamp(4.5rem, 11vh, 8.5rem); }

.section-head { display: grid; gap: 0.75rem; }

h2.display {
  margin: 0;
  font-size: clamp(2rem, 5.2vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 400;
}
h2.display em { font-style: normal; color: var(--accent); }

/* ----------------------------------------------------------------- about */

.about__grid {
  display: grid;
  grid-template-columns: minmax(6rem, 0.4fr) minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.about__copy { display: grid; gap: 1.6rem; justify-items: start; }

.lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.6;
  color: var(--fg-dim);
}

.about__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 34rem;
  border-top: 1px solid var(--line);
}
.about__points li {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0 1rem 1.6rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--fg-dim);
  line-height: 1.5;
}
/* Accent tick echoing the /// eyebrow motif. */
.about__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 9px;
  height: 2px;
  background: var(--accent);
}
.about__points b {
  color: var(--fg);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.about__media { display: grid; gap: 1.25rem; align-content: start; }
.about__media figure { margin: 0; display: grid; gap: 0.6rem; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.about__media figcaption {
  font-size: 0.8125rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* -------------------------------------------------------- before / after */

.compare__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-2);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.compare__frame.is-dragging { cursor: grabbing; }
.compare__frame.is-dragging .compare__grip { transform: translate(-50%, -50%) scale(1.08); }
.compare__frame img { pointer-events: none; -webkit-user-drag: none; }
.compare__after, .compare__before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The "before" image is full-frame-size, same as "after" — clip-path reveals
   only the left --pos of it, so neither image is ever squeezed/rescaled as
   the handle moves, only more or less of the (already full-size) before
   image becomes visible. */
.compare__before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.compare__handle {
  position: absolute;
  inset: 0 auto 0 var(--pos, 50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 4;
}
.compare__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
.compare__grip svg { width: 11px; height: 11px; }
.compare__grip.is-focused {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Keyboard-only control: focusable via Tab, but pointer-transparent so the
   frame's own pointer handling drives dragging. A range input cannot be
   dragged reliably as a full-size overlay — its thumb would need zero width
   to track the cursor exactly. */
.compare__range {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  width: 100%;
  height: 2px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare__tag {
  position: absolute;
  z-index: 2;
  top: 1rem;
  padding: 0.32rem 0.7rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(18, 21, 18, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  pointer-events: none;
}
.compare__tag--before { left: 1rem; }
.compare__tag--after { right: 1rem; }
.compare__caption { margin: 1rem 0 0; font-size: 0.8125rem; color: var(--fg-dim); }

/* -------------------------------------------------------------- timeline */

/* The tall track drives the scroll; the stage pins to the viewport. */
.timeline__track { height: 460vh; position: relative; }

.timeline__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.timeline__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: var(--bg-2);
}

.timeline__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10,12,11,0.86) 0%, rgba(10,12,11,0) 46%),
    linear-gradient(to bottom, rgba(10,12,11,0.5) 0%, rgba(10,12,11,0) 24%);
}

.timeline__inset {
  position: absolute;
  z-index: 3;
  inset: clamp(4.5rem, 9vh, 7rem) var(--gutter) clamp(4.5rem, 8vh, 6rem);
  max-width: var(--maxw);
  margin-inline: auto;
  border-left: 1px solid rgba(242, 240, 234, 0.22);
  border-right: 1px solid rgba(242, 240, 234, 0.22);
  pointer-events: none;
}

.timeline__label {
  position: absolute;
  z-index: 4;
  top: clamp(4.9rem, 9.6vh, 7.6rem);
  right: calc(var(--gutter) + 1.25rem);
}

.timeline__phases {
  position: absolute;
  z-index: 4;
  left: calc(var(--gutter) + 1.5rem);
  bottom: clamp(6.5rem, 12vh, 9rem);
  display: grid;
}
.phase {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.phase.is-live { opacity: 1; transform: none; }
.phase h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.85rem, 4.6vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.phase span {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  background: rgba(18, 21, 18, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg);
}

.timeline__bar {
  position: absolute;
  z-index: 4;
  left: calc(var(--gutter) + 1.5rem);
  right: calc(var(--gutter) + 1.5rem);
  bottom: clamp(3rem, 6vh, 4.25rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.timeline__seg {
  position: relative;
  height: 20px;
  background: rgba(242, 240, 234, 0.16);
  border-radius: 1px;
  overflow: hidden;
}
.timeline__seg i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  background: var(--accent);
  border-radius: 1px;
}
.timeline__seg b {
  position: absolute;
  z-index: 2;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--fg);
  mix-blend-mode: difference;
}

.timeline__hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(1rem, 2.6vh, 1.75rem);
  transform: translateX(-50%);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  transition: opacity 0.4s;
}

/* ----------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 2.5vw, 2rem);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-size: clamp(1.85rem, 4vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}
.stat b sup { color: var(--accent); font-size: 0.5em; top: -0.6em; }
.stat p { margin: clamp(2.5rem, 6vw, 3.75rem) 0 0; font-size: 0.875rem; color: var(--fg-dim); }

/* -------------------------------------------------------------- services */

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.service {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.service__art { position: relative; overflow: hidden; }
.service__art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.service:hover .service__art img { transform: scale(1.04); }
.service h3 {
  position: absolute;
  z-index: 2;
  top: 1.15rem;
  left: 1.35rem;
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
  mix-blend-mode: normal;
}
.service__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 1.35rem;
}
.service__foot p { margin: 0; font-size: 0.875rem; color: var(--fg-dim); max-width: 24rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.icon-btn:hover { background: var(--accent-dk); transform: translate(2px, -2px); }
.icon-btn svg { width: 13px; height: 13px; }

/* -------------------------------------------------------------- projects */

.projects__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: clamp(1.75rem, 4.5vw, 2.75rem);
}

.filter-tabs {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.filter-tab {
  padding: 0.5rem 1.15rem;
  border: 0;
  background: none;
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--fg-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter-tab:hover { color: var(--fg); }
.filter-tab.is-active {
  background: var(--bg-3);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.project {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.project img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project:hover img { transform: scale(1.045); }
.project__bar {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(to top, rgba(10, 12, 11, 0.9), rgba(10, 12, 11, 0));
}
.project__bar span { font-size: 0.9375rem; color: var(--fg); }
.projects__empty { margin: 2rem 0 0; color: var(--fg-dim); font-size: 0.9375rem; }

/* ----------------------------------------------------------- testimonials */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.6rem;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.testimonial blockquote {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}
.testimonial img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial figcaption span { font-size: 0.8125rem; color: var(--fg-dim); line-height: 1.4; }
.testimonial b { color: var(--fg); font-weight: 500; }

/* ----------------------------------------------------------------- trust */

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 2.25rem;
  margin: 0;
  padding: 1.85rem 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: var(--fg-dim);
}
.trust svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* ---------------------------------------------------------------- footer */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 78% 8%, rgba(255, 77, 24, 0.16) 0%, rgba(255, 77, 24, 0) 55%),
    var(--bg-2);
  border: 1px solid var(--line-soft);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: clamp(2.5rem, 8vw, 6rem);
  grid-template-columns: 1fr auto;
  align-items: start;
}
.cta__mark { width: clamp(88px, 12vw, 148px); height: auto; color: var(--accent); }
.cta__meta { display: grid; gap: 1.4rem; justify-items: end; text-align: right; }
.cta__meta p { margin: 0; font-size: 0.875rem; line-height: 1.6; }
.cta__meta .muted { color: var(--fg-dim); }
.cta__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 6vw, 4rem);
}
.cta__foot h2 {
  margin: 0;
  font-size: clamp(2rem, 6.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ---------------------------------------------------------- contact form */

.contact-form {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.field input, .field select, .field textarea {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  resize: vertical;
}
.field select { appearance: auto; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
.field.has-error input, .field.has-error textarea {
  outline: 2px solid #ff6b4a;
  outline-offset: 1px;
}
.field--submit { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.contact-form__note { margin: 0; font-size: 0.8125rem; color: var(--fg-dim); }
.contact-form__note.is-error { color: #ff8a68; }

.colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 2rem 2.75rem;
  font-size: 0.8125rem;
  color: var(--fg-faint);
}
.colophon ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.colophon a:hover { color: var(--fg); }

/* Demo disclosure — this is a portfolio piece for a fictional company, and
   the page must not read as a real builder making real claims. */
.disclosure {
  margin: 0 0 3rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-2);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 62rem;
}
.disclosure b { color: var(--fg); font-weight: 500; }
.disclosure a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------- back-to-top */

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  transition: background 0.2s, transform 0.2s var(--ease), opacity 0.3s;
}
.back-to-top:hover { background: var(--accent-btn); border-color: transparent; transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }
.back-to-top svg { width: 15px; height: 15px; }

/* -------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 3.5rem 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 6, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__panel { position: relative; z-index: 1; width: min(1100px, 94vw); }
.lightbox__figure {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.lightbox__figure img { width: 100%; max-height: 68vh; object-fit: contain; background: #000; }
.lightbox__figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
}
.lightbox__title { font-size: 1rem; font-weight: 500; }
.lightbox__meta { font-size: 0.8125rem; color: var(--fg-dim); flex: 1 1 12rem; }
.lightbox__count { font-size: 0.75rem; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.lightbox__close {
  position: absolute;
  top: -3.25rem;
  right: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--fg);
  cursor: pointer;
}
.lightbox__close svg { width: 15px; height: 15px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(18, 21, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
}
.lightbox__nav svg { width: 16px; height: 16px; }
.lightbox__nav--prev { left: -1.5rem; }
.lightbox__nav--next { right: -1.5rem; }
.lightbox__nav--prev svg { transform: scaleX(-1); }

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

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat p { margin-top: 2rem; }
  .testimonials { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 62px var(--gutter) auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
    border-radius: var(--radius);
    background: rgba(10, 12, 11, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.85rem 1rem; border-radius: var(--radius); }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .hero__ui { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero__since { align-self: flex-end; }
  .hero__machine { width: 132vw; bottom: 16%; max-height: 52svh; }
  .hero__word { top: 32%; }
  .about__media { grid-template-columns: 1fr; }

  .services { grid-template-columns: 1fr; gap: 1rem; }
  .projects__grid { grid-template-columns: 1fr; }
  .projects__head { align-items: flex-start; }
  .cta { grid-template-columns: 1fr; }
  .cta__meta { justify-items: start; text-align: left; }
  .contact-form { grid-template-columns: 1fr; }

  .timeline__track { height: 400vh; }
  .timeline__inset { border: 0; }
  .timeline__phases, .timeline__bar { left: var(--gutter); }
  .timeline__bar { right: var(--gutter); }

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

  .lightbox__nav--prev { left: 0.5rem; }
  .lightbox__nav--next { right: 0.5rem; }
  .lightbox__close { top: 0.5rem; right: 0.5rem; }
  .back-to-top { right: 1rem; bottom: 1rem; }

  :root { --nav-offset: 76px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat p { margin-top: 1.25rem; }
  .timeline__seg b { display: none; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; text-align: center; padding-inline: 0.5rem; }
  .trust { gap: 0.75rem 1.25rem; }
  .compare__grip { width: 36px; height: 36px; }
}

/* --------------------------------------------------------- reduced motion */

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