@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Jost:wght@300;400;500;600&display=swap");

:root {
  /* ===== Warm luxury palette — brown / gold / turquoise / beige =====
     (Client revision: replaces the previous green + black scheme with a
      light, premium, TARC-inspired look. --black is intentionally a deep
      warm espresso — it is used as both ink and the dark section base.) */
  --black: #241c15;        /* deep warm espresso (text + dark sections) */
  --charcoal: #2e2419;     /* warm brown */
  --dark: #3d3022;         /* warm brown */
  --grey-700: #574c41;     /* warm-neutral body text */
  --grey-500: #8a7f72;     /* muted warm grey */
  --grey-400: #a89d8f;
  --grey-300: #cabfb0;
  --grey-200: #e4dccd;
  --grey-100: #efe9dd;
  --off-white: #faf6ef;    /* warm off-white */
  --cream: #f2e9da;        /* soft beige */
  --beige: #e9dcc7;        /* warm neutral background */
  --stone: #d6c8af;        /* deeper warm greige — premium anchor (footer / bands) */
  --white: #ffffff;
  --accent: #b3893f;       /* antique gold (primary accent) */
  --accent-light: #d4b06a; /* champagne gold */
  --accent-dark: #8a6526;  /* bronze */
  --accent-rgb: 179, 137, 63;
  --turquoise: #2fa39a;    /* turquoise (secondary accent) */
  --turquoise-light: #45b8af;
  --turquoise-rgb: 47, 163, 154;
  /* Timeless luxury type system — elegant serif headings, clean sans body,
     refined wide-tracked labels (replaces the previous futuristic mono). */
  --serif: "Playfair Display", "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "Jost", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.5s var(--ease);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--grey-700);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
}

/* Grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  height: 50px;
  padding: 0;
  border-bottom: 1px solid rgba(36, 28, 21, 0.06);
}

.site-header.scrolled .header-inner {
  height: 50px;
}

.site-header.scrolled .logo-icon {
  color: var(--black);
}

.site-header.scrolled .logo-name {
  color: var(--black);
}

.site-header.scrolled .logo-sep {
  color: var(--grey-300);
}

.site-header.scrolled .logo-on-dark {
  display: none;
}

.site-header.scrolled .logo-on-light {
  display: block;
}

.site-header.scrolled .nav-links a {
  color: var(--grey-500);
}

.site-header.scrolled .nav-links a:hover {
  color: var(--black);
}

.site-header.scrolled .menu-toggle span {
  background: var(--black);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2rem !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-img {
  height: 80px;
  width: 100px;
  display: block;
  transition: var(--transition);
  object-fit: cover;
  position: relative;
  left: -30px;
}

.logo-on-light {
  display: none;
}

.site-header.scrolled .logo-img {
  height: 40px;
}

.site-footer .logo-img {
  height: 78px;
  width: auto;          /* keep the wordmark's natural 2.27:1 ratio */
  max-width: 100%;
  object-fit: contain;  /* show the whole logo — never crop it */
  left: 0;              /* cancel the header's -30px optical shift */
}

.logo-icon {
  width: 26px;
  height: 30px;
  color: var(--white);
  transition: var(--transition);
  flex-shrink: 0;
}

.logo-icon .mark-s {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.logo-icon .mark-accent {
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: square;
}

.logo-name {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.22em;
  transition: var(--transition);
}

.logo-sep {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0 0.1rem;
  transition: var(--transition);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  transition: var(--transition);
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--white);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-links a:not(.nav-cta).active {
  color: var(--white);
}

.nav-links a:not(.nav-cta).active::after {
  width: 100%;
}

.site-header.scrolled .nav-links a:not(.nav-cta).active {
  color: var(--black);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.6rem !important;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.04em !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(179, 137, 63, 0.25);
}

.site-header.scrolled .nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

/* ===================================================================
   ====== HERO — MODERN EDITORIAL VIDEO BANNER (homepage) ===========
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: var(--black);
  overflow: hidden;
}

/* Video bg */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-bg video,
.hero-video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) contrast(1.08) brightness(0.85);
  transform: scale(1.04);
  animation: heroVidPan 24s ease-in-out infinite alternate;
}

@keyframes heroVidPan {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.5%, -0.5%, 0);
  }
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* background:
    linear-gradient(
      180deg,
      rgba(36, 28, 21, 0.42) 0%,
      rgba(36, 28, 21, 0.12) 35%,
      rgba(36, 28, 21, 0.32) 70%,
      rgba(36, 28, 21, 0.72) 100%
    ),
    radial-gradient(
      ellipse at 30% 60%,
      rgba(179, 137, 63, 0.18) 0%,
      transparent 60%
    ); */
}

/* Subtle grid overlay (architectural feel) */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 8.33% 8.33%;
  mix-blend-mode: overlay;
}

/* Top frame: edition strip */
.hero-frame-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 6.5rem clamp(2rem, 4vw, 3.5rem) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hero-frame-top > * {
  pointer-events: auto;
}

.hero-live {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  background: rgba(36, 28, 21, 0.25);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}

.hero-live-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(47, 163, 154, 0.7);
  animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(47, 163, 154, 0.6);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(47, 163, 154, 0);
  }
}

.hero-live-text {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.hero-live-count {
  color: rgba(255, 255, 255, 0.4);
  padding-left: 0.6rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-edition {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  /* color: rgba(255, 255, 255, 0.4); */
  color: #fff;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.35s forwards;
}

.hero-edition .sep {
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-edition strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

/* Side rail (vertical scroll cue) */
.hero-siderail {
  position: absolute;
  left: clamp(1.25rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.2s forwards;
}

.hero-siderail-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Main content */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  align-self: center;
  padding: 9rem clamp(2rem, 4vw, 3.5rem) 13rem;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  color:rgb(255, 174, 0);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.5s forwards;
  margin-top: 30px;
}

.hero-tag::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent-light);
}

.hero-tag::after {
  content: "/ 26";
  font-weight: 400;
  opacity: 1.5;
  padding-left: 0.5rem;
  color:rgb(255, 174, 0);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 2.5rem;
  max-width: 1100px;
}

.hero-line {
  display: block;
  /* overflow: hidden; */
}

.hero-line > span {
  display: block;
  transform: translateY(110%);
  animation: heroReveal 1.2s var(--ease) forwards;
}

.hero-line:nth-child(1) > span {
  animation-delay: 0.65s;
}

.hero-line:nth-child(2) > span {
  animation-delay: 0.8s;
}

.hero-line:nth-child(3) > span {
  animation-delay: 0.95s;
}

@keyframes heroReveal {
  to {
    transform: translateY(0);
  }
}

.hero-line-meta {
  font-family: var(--mono);
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 2.5;
}

.hero-line-meta span.dot {
  color: var(--accent-light);
  margin: 0 0.35em;
}

.hero-line-lg {
  font-size: clamp(1rem, 8.5vw, 8rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero-line-lg em {
  font-style: italic;
  color: var(--grey-300);
  position: relative;
}

.hero-line-lg em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12em;
  height: 0.045em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: emUnderline 1.4s var(--ease) 1.6s forwards;
}

@keyframes emUnderline {
  to {
    transform: scaleX(1);
  }
}

/* Meta row: text + side stack */
.hero-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  max-width: 76%;
  margin-bottom: 2.75rem;
}

.hero-text {
  font-size: 0.95rem;
  /* color: rgba(255, 255, 255, 0.5); */
  color: #fff;
  line-height: 1.85;
  max-width: 460px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.3s forwards;
}

.hero-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  /* padding-left: 1.25rem; */
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.45s forwards;
  margin-right: 20px;
}

.hero-meta-stack > span:first-child {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  /* color: rgba(255, 255, 255, 0.3); */
  color: #fff;
}

.hero-meta-stack > span:last-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1.55s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Featured project floating card (right) */
.hero-featured {
  position: absolute;
  right: clamp(1.5rem, 3vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 290px;
  background: rgba(36, 28, 21, 0.55);
  backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 1.5rem 1.4rem;
  opacity: 0;
  animation: heroFeatureIn 1s var(--ease) 1.7s forwards;
}

@keyframes heroFeatureIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

.hero-featured::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.hero-featured::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.hero-featured-label {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero-featured-label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
}

.hero-featured h4 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

.hero-featured-loc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  margin-bottom: 1.4rem;
}

.hero-featured-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-featured-meta dt {
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  align-self: center;
}

.hero-featured-meta dd {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: right;
}

.hero-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  transition: var(--transition);
  padding-top: 0.25rem;
}

.hero-featured-link:hover {
  color: var(--accent-light);
  gap: 0.85rem;
}

.hero-featured-link::after {
  content: "→";
  font-size: 0.85rem;
}

/* CTA buttons */
.btn-play {
  background: none;
  cursor: pointer;
  font-family: var(--sans);
}

.btn-play .play-icon {
  font-size: 0.65rem;
}

.btn-play.playing {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--white);
  padding: 1rem 2.4rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-light);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(179, 137, 63, 0.3);
}

.btn-primary .arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  color: var(--white);
  padding: 1rem 2.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--dark);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.15);
}

/* Bottom strip — stats ticker + scroll cue */
.hero-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 1.5rem clamp(2rem, 4vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(36, 28, 21, 0.38) 100%
  );
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.85s forwards;
}

.hero-stats-strip {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.hero-stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--white);
  line-height: 1;
}

.hero-stat-item > span:last-child {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.35);
}

.hero-stat-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-cue .dot {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.hero-scroll-cue .dot::before {
  content: "";
  width: 1px;
  height: 9px;
  background: var(--accent-light);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(-3px);
    opacity: 0.6;
  }

  50% {
    transform: translateY(3px);
    opacity: 1;
  }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
  position: relative;
      display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--grey-200);
}

.stat-number {
  font-family: var(--serif);
  font-size: 3.2rem;
  color: var(--black);
  display: inline-block;
  line-height: 1;
  margin-bottom: 0.5rem;
  /* Equal-width digits + a reserved width (set in JS) stop the centred number
     from shifting as digits are added while the counter runs. */
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--grey-400);
}

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.25rem 0;
  background: var(--black);
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marqueeScroll 45s linear infinite;
}

.marquee-item {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.marquee-dot {
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(7.5rem, 14vw, 13rem) 0;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--grey-500);
  max-width: 500px;
  line-height: 1.85;
  font-weight: 300;
}

/* ===== ABOUT (Editorial) ===== */
.about {
  background: var(--off-white);
}

.about-top {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.about-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 900px;
}

.headline-img {
  display: inline-block;
  width: clamp(100px, 14vw, 180px);
  height: clamp(42px, 5vw, 62px);
  overflow: hidden;
  border-radius: 100px;
  vertical-align: middle;
  margin: 0 0.15em;
  position: relative;
  top: -2px;
}

.headline-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(1); */
  transition: filter 0.6s ease;
}

.headline-img:hover img {
  filter: grayscale(0);
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.about-stat-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--black);
  display: block;
  line-height: 1;
}

.about-stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--grey-400);
  margin-top: 0.35rem;
  display: block;
}

.about-stat {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--grey-200);
}

.about-text p {
  font-size: 1.05rem;
  color: var(--grey-500);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  margin: 2rem 0 2.5rem;
}

.about-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 22px;
  padding-top: 4px;
}

.about-feature h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 0.15rem;
  font-weight: 400;
}

.about-feature p {
  font-size: 0.82rem;
  color: var(--grey-500);
  line-height: 1.55;
}

/* ===== PORTFOLIO PREVIEW ===== */
.portfolio-preview {
  background: var(--white);
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--grey-100);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 260px;
  gap: 6px;
}

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card:nth-child(1) {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

.project-card:nth-child(2) {
  grid-column: 8 / 13;
  grid-row: 1 / 2;
}

.project-card:nth-child(3) {
  grid-column: 8 / 13;
  grid-row: 2 / 3;
}

.project-card:nth-child(4) {
  grid-column: 1 / 6;
  grid-row: 3 / 4;
}

.project-card:nth-child(5) {
  grid-column: 6 / 13;
  grid-row: 3 / 4;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(1) contrast(1.05); */
  transition:
    filter 0.8s ease,
    transform 1.2s var(--ease);
}

.project-card:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  padding: 1.75rem;
  background: linear-gradient(
    to top,
    rgba(36, 28, 21, 0.6) 0%,
    transparent 55%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  background: linear-gradient(
    to top,
    rgba(36, 28, 21, 0.74) 0%,
    rgba(36, 28, 21, 0.05) 60%
  );
}

.project-type {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-light);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.project-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.project-location {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

.project-arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateY(0);
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--black);
  padding: 0.85rem 1.8rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
}

.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== SERVICES (homepage list) ===== */
.services {
  background: var(--off-white);
}

.services-header {
  margin-bottom: 4rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--grey-200);
}

.service-item {
  display: grid;
  grid-template-columns: 60px 1fr 1.5fr 40px;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--grey-200);
  transition: var(--transition);
  cursor: pointer;
}

.service-item:hover {
  padding-left: 1.5rem;
  background: rgba(36, 28, 21, 0.015);
}

.service-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.service-item h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--black);
  font-weight: 400;
  transition: var(--transition);
}

.service-item:hover h3 {
  color: var(--accent);
}

.service-item p {
  font-size: 0.88rem;
  color: var(--grey-500);
  line-height: 1.65;
  font-weight: 300;
}

.service-arrow {
  color: var(--grey-300);
  font-size: 1.1rem;
  transition: var(--transition);
  justify-self: end;
}

.service-item:hover .service-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: var(--black);
}

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-subtitle {
  color: rgba(255, 255, 255, 0.35);
}

.t-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.t-counter {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.1em;
  min-width: 50px;
  text-align: center;
}

.t-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: none;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.t-slide {
  display: none;
}

.t-slide.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  animation: tFade 0.6s var(--ease);
}

@keyframes tFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.t-quote-col {
  padding-right: 2rem;
}

.t-quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 2.5rem;
  position: relative;
}

.t-quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: -3rem;
  left: -0.5rem;
  line-height: 1;
}

.t-author {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

.t-role {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 0.3rem;
}

.t-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.t-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(1) contrast(1.05); */
}

.t-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== CTA TICKER ===== */
.cta-ticker-section {
  background: var(--black);
  overflow: hidden;
  /* Containment boundary: the stats counter's reflows can't invalidate this
     section's layout/paint, so the ticker animation stays on its own rail. */
  contain: layout paint;
}

.cta-ticker {
  padding: clamp(2.5rem, 8vw, 3rem) 0;
  overflow: hidden;
  white-space: nowrap;
}

.cta-ticker-track {
  display: inline-flex;
  align-items: center;
  animation: ctaTicker 30s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* Freeze the scroll while hovering so the hovered word stops sliding out
   from under the cursor — that motion is what made :hover thrash/flicker. */
.cta-ticker:hover .cta-ticker-track {
  animation-play-state: paused;
}

.cta-ticker-text {
  font-family: var(--serif);
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 400;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.25);
  color: transparent;
  letter-spacing: -0.03em;
  padding: 0 0.15em;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.cta-ticker-text:hover {
  color: var(--white);
  -webkit-text-stroke-color: var(--white);
}

.cta-ticker-text em {
  font-style: italic;
}

.cta-ticker-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 0.2em;
}

@keyframes ctaTicker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.cta-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.cta-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-bar-inner p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  max-width: 420px;
  line-height: 1.7;
}

/* ===== CONTACT (homepage) ===== */
.contact-section {
  background: var(--off-white);
  padding: clamp(6rem, 12vw, 9rem) 0;
  border-top: 1px solid var(--grey-200);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact-info-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-info-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.contact-info h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--black);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-info > p {
  font-size: 0.92rem;
  color: var(--grey-500);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--grey-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-text span {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--grey-400);
  margin-bottom: 0.2rem;
}

.contact-detail-text p {
  font-size: 0.88rem;
  color: var(--black);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group .invalid-feedback {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: #e02b2b;
  min-height: 0;
  margin-top: 0.3rem;
}

.form-group .invalid-feedback:empty {
  margin-top: 0;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-bottom-color: #e02b2b;
}

.form-group label {
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey-400);
  display: block;
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey-200);
  padding: 0.7rem 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--grey-300);
  font-weight: 300;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  color: var(--grey-400);
}

.form-submit {
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  padding: 3.25rem 0 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(4rem, 8vw, 8rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1.5rem;
  max-width: 300px;
  font-weight: 300;
}

.footer-links-grid {
  display: flex;
  gap: clamp(5rem, 7vw, 8rem);
}

.footer-col h4 {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.85rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-col a.active {
  color: var(--white);
}

.footer-col a.active::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 0.5rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-contact-item .icon-sm {
  color: var(--accent);
  font-size: 0.5rem;
  margin-top: 5px;
}

.footer-contact-link {
  color: inherit;
  transition: color 0.4s var(--ease);
}

.footer-contact-link:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition:
    opacity 0.7s ease 0.2s,
    visibility 0.7s ease 0.2s;
}

.preloader.done {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: 200px;
  height: auto;
  display: block;
  opacity: 0.95;
}

.preloader-text {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    background 0.35s ease,
    opacity 0.35s ease;
  opacity: 0;
}

.cursor-dot.visible {
  opacity: 1;
}

.cursor-dot.hovering {
  width: 52px;
  height: 52px;
  background: transparent;
  border: 1.5px solid var(--accent);
  mix-blend-mode: normal;
}

@media (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

/* ===================================================================
   ====== PAGE HERO V2 — INNER PAGES (editorial spread) =============
   =================================================================== */
.page-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: stretch;
  background: var(--black);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(0.85) contrast(1.08) brightness(0.85); */
  transform: scale(1.05);
  animation: heroVidPan 30s ease-in-out infinite alternate;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(36, 28, 21, 0.35) 0%,
      rgba(36, 28, 21, 0.1) 35%,
      rgba(36, 28, 21, 0.35) 75%,
      rgba(36, 28, 21, 0.72) 100%
    ),
    radial-gradient(
      ellipse at 25% 70%,
      rgba(179, 137, 63, 0.15) 0%,
      transparent 65%
    );
}

.page-hero .hero-grid-overlay {
  background-size: 10% 10%;
}

/* Top frame for page hero */
.page-hero-frame-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 7.5rem clamp(2rem, 4vw, 3.5rem) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
}

.page-hero-frame-top .hero-edition,
.page-hero-frame-top .hero-live {
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.3s forwards;
}

/* Side rail meta */
.page-hero-siderail {
  position: absolute;
  left: clamp(1.25rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 4;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1s forwards;
}

.page-hero-siderail-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Main content layout: left text + right meta panel */
.page-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 9rem clamp(2rem, 4vw, 3.5rem) 10rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  align-self: end;
}

.page-hero-content > .hero-tag {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.45s forwards;
}

.page-hero-content > .hero-tag::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent-light);
}

.page-hero-content > .hero-tag::after {
  color: rgb(255, 174, 0);
}

.page-hero-content h1 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.page-hero-content h1 .hero-line > span {
  display: block;
  transform: translateY(110%);
  animation: heroReveal 1.2s var(--ease) 0.65s forwards;
}

.page-hero-content h1 .hero-line-lg {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.page-hero-content h1 .hero-line-lg em {
  font-style: italic;
  color: var(--grey-300);
}

.page-hero-content .hero-text {
  font-size: 0.95rem;
  /* color: rgba(255, 255, 255, 0.5); */
  color: #fff;
  line-height: 1.85;
  max-width: 480px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 1s forwards;
  margin-bottom: 2rem;
  margin-left: 5px;
}

/* Right meta panel (replaces breadcrumb) */
.page-hero-side {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.2s forwards;
  padding-bottom: 50px;
}

.page-hero-side-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.page-hero-side-block > span:first-child {
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.32);
}

.page-hero-side-block > span:last-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.page-hero-side-block > span:last-child a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.page-hero-side-block > span:last-child a:hover {
  color: var(--accent-light);
}

/* Bottom strip for page hero (breadcrumb + scroll) */
.page-hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  padding: 1.5rem clamp(2rem, 4vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, transparent, rgba(36, 28, 21, 0.35));
  backdrop-filter: blur(4px);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.4s forwards;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
}

.page-hero-breadcrumb a:hover {
  color: var(--accent-light);
}

.page-hero-breadcrumb .sep {
  color: var(--accent);
}

.page-hero-pagenum {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-hero-pagenum strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero-pagenum-line {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

/* ===================================================================
   ====== ABOUT PAGE (Editorial spread) =============================
   =================================================================== */
.about-story {
  background: var(--white);
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-story-text {
  position: relative;
}

.about-story-text h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--black);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  letter-spacing: -0.015em;
}

.about-story-text p {
  font-size: 1rem;
  color: var(--grey-500);
  line-height: 1.95;
  margin-bottom: 1.4rem;
  font-weight: 300;
}

.about-story-text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 4.5rem;
  float: left;
  line-height: 0.85;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--accent);
  font-weight: 400;
}

.about-story-img {
  position: relative;
  height: 580px;
  overflow: hidden;
}

.about-story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(0.7) contrast(1.05); */
  transition:
    filter 0.7s ease,
    transform 1.2s var(--ease);
}

.about-story-img:hover img {
  /* filter: grayscale(0); */
  transform: scale(1.04);
}

.about-story-img::before {
  content: "Berkeley Square / Mayfair";
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--white);
  padding: 0.5rem 0.85rem;
  background: rgba(36, 28, 21, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-story-img::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  
}

/* Pull quote block (editorial flourish) */
.about-pullquote {
  background: var(--cream);
  padding: clamp(4rem, 4vw, 7rem) 0;
}

.about-pullquote-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.about-pullquote-mark {
  font-family: var(--serif);
  font-size: 8rem;
  color: var(--accent);
  line-height: 0.8;
  opacity: 0.85;
}

.about-pullquote q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--black);
  line-height: 1.35;
  quotes: none;
  display: block;
  margin-bottom: 2rem;
  letter-spacing: -0.012em;
}

.about-pullquote-author {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey-500);
}

.about-pullquote-author strong {
  color: var(--black);
  font-weight: 600;
}

.about-pullquote-author .sep {
  color: var(--accent);
  margin: 0 0.5em;
}

/* Keep pullquote author on one line at small screens */
@media (max-width: 375px) {
  .about-pullquote-author {
    white-space: nowrap;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }
  .about-pullquote-author .sep {
    margin: 0 0.35em;
  }
}

/* Values */
.values-section {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.values-section::before {
  content: "Principles";
  position: absolute;
  right: 2rem;
  top: 4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(6rem, 16vw, 16rem);
  color: rgba(179, 137, 63, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid var(--grey-200);
  border-left: 1px solid var(--grey-200);
}

.value-card {
  background: var(--off-white);
  padding: 2.5rem 2rem 2.75rem;
  border-right: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  z-index: 0;
}

.value-card > * {
  position: relative;
  z-index: 1;
}

.value-card:hover::before {
  transform: translateY(0);
}

.value-card:hover {
  box-shadow: 0 24px 60px -20px rgba(36, 28, 21, 0.08);
}

.value-card-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.value-card-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grey-200);
}

.value-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--black);
  font-weight: 400;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--grey-500);
  line-height: 1.75;
  font-weight: 300;
}

/* Team */
.team-section {
  background: var(--white);
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.team-card {
  position: relative;
  cursor: pointer;
}

.team-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(1) contrast(1.05); */
  transition:
    filter 0.6s ease,
    transform 0.9s var(--ease);
}

.team-card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 28, 21, 0.4), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.team-card-num {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--white);
  letter-spacing: 0.2em;
  background: rgba(36, 28, 21, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.6rem;
}

.team-card:hover .team-card-img img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.team-card:hover .team-card-img::before {
  opacity: 1;
}

.team-card h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--black);
  font-weight: 400;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.team-card span {
  font-family: var(--mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--grey-400);
}

/* Timeline (vertical magazine spread style) */
.timeline-section {
  background: var(--cream);
  position: relative;
}

.timeline {
  position: relative;
  padding-left: 0;
  margin-top: 3.5rem;
  max-width: 1000px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  position: relative;
}

.timeline-grid::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--grey-200) 5%,
    var(--grey-200) 95%,
    transparent
  );
}

.timeline-item {
  display: contents;
}

.timeline-year-col {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  padding: 1.5rem 0;
  position: relative;
}

.timeline-year-col::after {
  content: "";
  position: absolute;
  top: 1.85rem;
  right: -8px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--accent);
  background: var(--cream);
  border-radius: 50%;
  z-index: 2;
}

.timeline-content {
  padding: 1.5rem 0 3rem clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--grey-200);
}

.timeline-item:last-child .timeline-content {
  border-bottom: none;
  padding-bottom: 1rem;
}

.timeline-content h4 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--black);
  font-weight: 400;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--grey-500);
  line-height: 1.75;
  font-weight: 300;
  max-width: 540px;
}

.timeline-content-meta {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--grey-400);
  margin-top: 0.85rem;
}

/* ===================================================================
   ====== PORTFOLIO PAGE ============================================
   =================================================================== */
.portfolio-intro {
  background: var(--white);
  padding: clamp(3rem, 4vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}

.portfolio-intro-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--grey-100);
}

.portfolio-intro-text {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 44ch;
}

/* Stats wrap on their own (3 → 2 → 1) so they never collapse to a sparse
   single tall column; each sits under a refined hairline. */
.portfolio-intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding-top: 0.5rem;
}

.portfolio-intro-meta-item {
  flex: 1 1 120px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--grey-200);
}

.portfolio-intro-meta-item > span:first-child {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--grey-400);
}

.portfolio-intro-meta-item > span:last-child {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  color: var(--black);
  line-height: 1.1;
}

.portfolio-page {
  background: var(--white);
  padding-top: 0;
  padding-bottom: 0px;
}

.portfolio-filters {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  align-items: center;
}

.portfolio-filters-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--grey-400);
  margin-right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.portfolio-filters-label::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--grey-200);
}

.filter-btn {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.3rem;
  border: 1px solid var(--grey-200);
  border-radius: 100px;
  background: none;
  color: var(--grey-500);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Featured project card (top of portfolio grid) */
.portfolio-featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  /* height: 520px; */
}

.portfolio-featured-img {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

.portfolio-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(0.6) contrast(1.05); */
  transition:
    filter 0.7s ease,
    transform 1.2s var(--ease);
}

.portfolio-featured-img:hover img {
  filter: grayscale(0);
  transform: scale(1.03);
}

.portfolio-featured-img::before {
  content: "Featured";
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--white);
  padding: 0.45rem 0.85rem;
  background: var(--accent);
}

.portfolio-featured-info {
  background: var(--off-white);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.portfolio-featured-info::before {
  content: "01 / 09";
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--grey-400);
}

.portfolio-featured-cat {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.portfolio-featured-cat::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.portfolio-featured-info h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.portfolio-featured-info > p {
  font-size: 0.95rem;
  color: var(--grey-500);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 380px;
}

.portfolio-featured-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  margin-bottom: 1.75rem;
}

.portfolio-featured-meta dt {
  font-family: var(--mono);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--grey-400);
}

.portfolio-featured-meta dd {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--black);
  margin-top: 0.2rem;
}

.portfolio-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--black);
  transition: var(--transition);
  font-weight: 600;
}

.portfolio-featured-link:hover {
  color: var(--accent);
  gap: 0.85rem;
}

.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-full-grid .project-card {
  height: 380px;
  position: relative;
}

.portfolio-full-grid .project-card:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
}

.portfolio-full-grid .project-card.hidden {
  display: none;
}

.portfolio-full-grid .project-card .project-num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--white);
  letter-spacing: 0.22em;
  background: rgba(36, 28, 21, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================================================================
   ====== SERVICES PAGE =============================================
   =================================================================== */
.service-detail {
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  position: relative;
  overflow: hidden;
}

.service-detail:nth-child(even) {
  background: var(--off-white);
}

.service-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.service-detail:nth-child(even) .service-detail-inner {
  grid-template-columns: 1.1fr 1fr;
  direction: rtl;
}

.service-detail:nth-child(even) .service-detail-inner > * {
  direction: ltr;
}

.service-detail-text {
  position: relative;
}

.service-detail-text .section-label {
  margin-bottom: 1.25rem;
}

.service-detail-text .section-label .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  margin-right: 0.25rem;
}

.service-detail-text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--black);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.service-detail-text > p {
  font-size: 1rem;
  color: var(--grey-500);
  line-height: 1.95;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.service-detail-text ul {
  margin: 1.5rem 0 2rem;
  border-top: 1px solid var(--grey-200);
}

.service-detail-text li {
  font-size: 0.92rem;
  color: var(--grey-700);
  line-height: 1.65;
  font-weight: 400;
  padding: 0.95rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: padding-left 0.4s var(--ease);
}

.service-detail-text li:hover {
  padding-left: 2.5rem;
  color: var(--black);
}

.service-detail-text li::before {
  content: counter(li-count, decimal-leading-zero) ".";
  counter-increment: li-count;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.service-detail-text ul {
  counter-reset: li-count;
}

.service-detail-img {
  position: relative;
  height: clamp(380px, 55vh, 540px);
  overflow: hidden;
}

.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(0.7) contrast(1.05); */
  transition:
    filter 0.7s ease,
    transform 1.2s var(--ease);
}

.service-detail-img:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.service-detail-img::after {
  content: "";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.service-detail-img-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--white);
  padding: 0.5rem 0.85rem;
  background: rgba(36, 28, 21, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Process section */
.process-section {
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.process-section::before {
  content: "Process";
  position: absolute;
  left: -1rem;
  top: 4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(6rem, 18vw, 16rem);
  color: rgba(255, 255, 255, 0.025);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.process-section .section-title {
  color: var(--white);
}

.process-section .section-subtitle {
  color: rgba(255, 255, 255, 0.4);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.process-step {
  padding: 2.5rem 1.5rem 2.5rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: var(--transition);
}

.process-step:last-child {
  border-right: none;
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.015);
  padding-left: 1.5rem;
}

.process-step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.5rem;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.process-step h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.process-step p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
  font-weight: 300;
}

.process-step-meta {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.process-step-meta::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--accent);
}

/* ===================================================================
   ====== CONTACT PAGE ==============================================
   =================================================================== */
.contact-page {
  background: var(--off-white);
  padding-top: clamp(5rem, 8vw, 7rem);
}

.contact-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grey-200);
}

.contact-full-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact-info {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.contact-form {
  background: var(--white);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--grey-200);
  position: relative;
}

.contact-form::before {
  content: "Enquiry №01";
  position: absolute;
  top: -0.7rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--grey-400);
  background: var(--off-white);
  padding: 0 0.75rem;
}

.offices-section {
  background: var(--white);
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--grey-200);
  border-left: 1px solid var(--grey-200);
}

.office-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  transition: var(--transition);
  position: relative;
  /* Clip the sliding overlay so it can only ever paint inside the card. */
  overflow: hidden;
}

.office-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--off-white);
  transform: translateY(100%);
  /* GPU-friendly, settles cleanly. (Was 3s — it crawled sub-pixels for
     seconds, which read as shaking/flicker behind the text.) */
  transition: transform 0.6s var(--ease);
  -webkit-transition: -webkit-transform 0.6s var(--ease);
  will-change: transform;
  backface-visibility: hidden;
  z-index: 0;
  /* Overlay must never intercept the pointer — keeps :hover rock-steady. */
  pointer-events: none;
}

.office-card > * {
  position: relative;
  z-index: 1;
}

.office-card:hover::before {
  transform: translateY(0);
}

/* Keep the scroll-reveal smooth: the base .office-card transition (all .5s)
   would otherwise clobber .reveal's tuned opacity/transform timing. */
.office-card.reveal {
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.office-card-num {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.25em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.office-card-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grey-200);
}

.office-card h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--black);
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.012em;
}

.office-card p {
  font-size: 0.88rem;
  color: var(--grey-500);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.office-card .office-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.office-card .office-phone::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.map-section {
  background: var(--off-white);
}

.map-embed {
  width: 100%;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--grey-200);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
  transition: filter 0.5s var(--ease);
}

.map-embed:hover iframe {
  filter: grayscale(0);
}

@media (max-width: 768px) {
  .map-embed iframe {
    height: 340px;
  }
}

.map-placeholder {
  width: 100%;
  height: 480px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 6% 6%;
}

.map-placeholder::after {
  content: "◆";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(179, 137, 63, 0.6);
  animation: mapPulse 2s ease-in-out infinite;
}

@keyframes mapPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.map-placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 36px));
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.map-placeholder-corner {
  position: absolute;
  padding: 0.85rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.map-placeholder-corner.tl {
  top: 0;
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.map-placeholder-corner.tr {
  top: 0;
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.map-placeholder-corner.bl {
  bottom: 0;
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.map-placeholder-corner.br {
  bottom: 0;
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===================================================================
   ====== RESPONSIVE ================================================
   =================================================================== */
@media (max-width: 1440px) {
  .hero-content,
  .page-hero-content {
    padding-left: 5rem;
  }
  .page-hero-frame-top {
    max-width: 1402px;
  }
  .header-inner {
    padding-right: 3.5rem !important;
  }

  .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(5.5rem, 4vw, 3.5rem);
  }
}
@media (max-width: 1200px) {
  .hero-meta-row {
    max-width: 70%;
  }
}
@media (max-width: 1156px) {
  .hero-meta-row {
    max-width: 100%;
  }
}
@media (max-width: 1180px) {
  .hero-featured {
    display: none;
  }

  .hero-content {
    padding-right: 4rem;
    padding-bottom: 12rem;
  }
}

@media (max-width: 1024px) {
  .services-list .service-item {
    grid-template-columns: 50px 1fr 40px;
  }
  .page-hero-content {
    padding-top: 10rem;
  }
  .service-item p {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .stat:nth-child(2)::after {
    display: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 280px;
    gap: 5px;
  }

  .project-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .project-card:nth-child(2),
  .project-card:nth-child(3),
  .project-card:nth-child(4),
  .project-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-top {
    flex-direction:row;
    gap: 2rem;
  }

  .t-slide.active {
    grid-template-columns: 1fr;
  }

  .t-quote-col {
    padding-top: 1.5rem;
  }

  .t-quote::before {
    top: -2.5rem;
    left: 0;
    font-size: 6rem;
  }

  .t-image {
    height: 300px;
  }

  .cta-ticker-text {
    font-size: clamp(3rem, 8vw, 6rem);
  }

  .cta-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-hero-content {
    grid-template-columns: 1fr;
  }

  .page-hero-side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    justify-content: center;
    text-align: center;
  }

  .page-hero-side-block {
    align-items: center;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-story-img {
    height: 420px;
  }

  .about-pullquote-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-pullquote-mark {
    font-size: 5rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-grid {
    grid-template-columns: 90px 1fr;
  }

  .portfolio-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .portfolio-intro-meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio-featured {
    grid-template-columns: 1fr;
    height: auto;
  }

  .portfolio-featured-img {
    height: 400px;
  }

  .portfolio-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-full-grid .project-card {
    height: 320px;
  }

  .service-detail-inner {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
    direction: ltr !important;
  }

  .service-detail-img {
    height: 380px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }

  .process-step {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .contact-full-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    position: static;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-content .hero-text {
    color: rgba(255, 255, 255, 1.8);
  }
  .page-hero-content h1 .hero-line-lg em {
    color: #d7d7d7;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 90px;
  }

  .site-header.scrolled .logo-img {
    height: 40px;
    left: 0;
  }

  .site-header .logo-img {
    height: 84px;
    left: -40px;
    position: relative;
  }
  .site-header .logo-img {
    height: 84px;
    left: -40px;
    position: relative;
  }
  .preloader-logo {
    width: 200px;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(36, 28, 21, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
  }

  /* Hamburger morphs into an X while the menu is open (it already toggles
     the menu closed on click, so this gives a working cross). */
  .nav-links.active ~ .menu-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-links.active ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav-links.active ~ .menu-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav-links a {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
  }

  /* Mobile menu: hover/active uses accent instead of white */
  .nav-links a:not(.nav-cta):hover,
  .nav-links a:not(.nav-cta).active,
  .site-header.scrolled .nav-links a:not(.nav-cta).active {
    color:white!important;
  }

  .menu-toggle {
    display: flex;
    z-index: 101;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding: 8rem 1.5rem 11rem;
  }

  .hero-frame-top {
    padding: 5.5rem 1.5rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hero-edition {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .hero-edition .sep {
    width: 8px;
  }

  .hero-siderail {
    display: none;
  }

  .hero-meta-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-meta-stack {
    padding-left: 0;
    border-left: none;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    align-items: flex-start;
  }

  .hero-stats-strip {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-stat-num {
    font-size: 1.2rem;
  }

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

  .stat::after {
    display: none !important;
  }

  .about-text {
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
    justify-items: stretch;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-feature {
    justify-content: flex-start;
    text-align: left;
  }

  .about-stats {
    /* display: grid; */
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
  }

  .about-stat {
    padding-bottom: 1.25rem;
  }

  .about-stat-num {
    font-size:36px;
  }


  .headline-img {
    width: 80px;
    height: 34px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .project-card:nth-child(1) {
    grid-column: 1;
    grid-row: auto;
  }

  .services-list .service-item {
    grid-template-columns: 40px 1fr auto;
    gap: 0.75rem;
    padding: 1.5rem 0;
  }

  .service-item h3 {
    font-size: 1.2rem;
  }

  .portfolio-header,
  .testimonials-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-links-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section {
    padding: 5.5rem 0;
  }

  .t-quote {
    font-size: 1.2rem;
    padding-top: 2.5rem;
  }

  /* The slider clips overflow; keep the quote mark inside the element box
     (instead of -3rem above it) so it stays visible on tablet/phone widths. */
  .t-quote::before {
    top: 0;
    left: -0.25rem;
    font-size: 4.5rem;
  }

  /* Stack the hero blocks in normal flow on mobile so the absolutely
     positioned frame/bottom strips can't overlap the title text. */
  .page-hero {
    min-height: 70vh;
    flex-direction: column;
  }

  .page-hero-content {
    padding: 8rem 1.5rem 2.5rem;
  }

  .page-hero-content h1 .hero-line-lg {
    font-size: clamp(1.2rem, 8vw, 3.2rem);
  }

  .page-hero-frame-top {
    position: relative;
    padding: 8rem 1.5rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .page-hero-bottom {
    position: relative;
    margin-top: auto;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
  }

  .page-hero-siderail {
    display: none;
  }

  .timeline-grid {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
  }

  .timeline-grid::before {
    left: 60px;
  }

  .timeline-year-col {
    font-size: 1.3rem;
  }

  .timeline-content {
    padding: 1rem 0 2rem 1.5rem;
  }

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

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

  .portfolio-intro-meta {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-full-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    flex-wrap: wrap;
    align-items: center;
  }

  .portfolio-filters-label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.75rem;
  }

  .filter-btn {
    font-size: 0.55rem;
    padding: 0.5rem 1rem;
  }
}
@media (max-width: 767px) {
  .container {
    padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  }
}

/* ===================================================================
   ====== PROJECT DETAIL PAGE =======================================
   =================================================================== */

/* Project Hero */
.project-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  overflow: hidden;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.project-hero-bg {
  position: absolute;
  inset: 0;
}

.project-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(0.85) contrast(1.05); */
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(36, 28, 21, 0.72) 0%,
    rgba(36, 28, 21, 0.25) 60%,
    rgba(36, 28, 21, 0.42) 100%
  );
}

.project-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.project-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  /* color: rgba(255, 255, 255, 0.5); */
  color: var(--accent-light);
  margin-bottom: 2.5rem;
  transition: var(--transition);
}

.project-back:hover {
  color: var(--accent-light);
  transform: translateX(-4px);
}

.project-hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 1rem 0 1.25rem;
}

.project-hero-title em {
  font-style: italic;
  color: var(--grey-300);
}

.project-hero-location {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  /* color: rgba(255, 255, 255, 0.4); */
  color: var(--accent-light);
  text-align: left;
}

/* Project meta strip */
.project-meta-section {
  background: var(--off-white);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--grey-200);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.project-meta-item {
  padding: 1rem 1.5rem;
  border-right: 1px solid var(--grey-200);
}

.project-meta-item:last-child {
  border-right: none;
}

.project-meta-item span {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--grey-400);
  margin-bottom: 0.5rem;
}

.project-meta-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
}

/* Project body */
.project-body {
  background: var(--white);
}

.project-body-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.project-sidebar {
  position: sticky;
  top: 6rem;
  align-self: start;
  padding-top: 0.5rem;
}

.project-dl {
  margin-top: 1.5rem;
  border-top: 1px solid var(--grey-200);
}

.project-dl dt {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--grey-400);
  padding-top: 1rem;
  padding-bottom: 0.4rem;
}

.project-dl dd {
  font-size: 0.9rem;
  color: var(--black);
  font-weight: 400;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--grey-100);
  margin-left: 0;
}

.project-dl dd:last-child {
  border-bottom: none;
}

.project-content .project-lede {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  color: var(--black);
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.project-content p {
  font-size: 1rem;
  color: var(--grey-500);
  line-height: 1.95;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.project-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--black);
  font-weight: 400;
  margin: 2rem 0 1rem;
  letter-spacing: -0.012em;
}

/* Gallery */
.project-gallery-section {
  background: var(--white);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 280px;
  gap: 6px;
}

.project-gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.project-gallery-item .gallery-link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(0.7) contrast(1.05); */
  transition:
    filter 0.7s ease,
    transform 1.2s var(--ease);
}

.project-gallery-item:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}

/* Next project */
.project-next {
  background: var(--off-white);
  /* padding: clamp(4rem, 8vw, 6rem) 0; */
  border-top: 1px solid var(--grey-200);
}

.project-next-link {
  display: block;
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
}

.project-next-link:hover {
  transform: translateY(-4px);
}

.project-next-meta {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}

.project-next-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.project-next-title em {
  font-style: italic;
  color: var(--accent);
}

.project-next-loc {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey-400);
}

/* Responsive */
@media (max-width: 1024px) {
  .project-meta-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-meta-item:nth-child(3) {
    border-right: none;
  }

  .project-meta-item {
    border-bottom: 1px solid var(--grey-200);
  }

  .project-meta-item:nth-last-child(-n + 3) {
    border-bottom: none;
  }

  .project-body-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-sidebar {
    position: static;
  }

  .project-gallery-item {
    grid-column: 1 / 13 !important;
  }
}
@media (max-width: 999px) {
  .footer-top {
    flex-direction: column;
    gap: 3rem;
  }
}
@media (max-width: 991px) {
  .footer-brand {
    width: 100%;
    text-align: center;
    padding-left: 0px;
  }
  footer .logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    justify-content: center;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-links-grid {
    display: grid;
    gap: 0 3rem;
    width: 100%;
    grid-template-columns: auto auto auto;
    padding-left: 0;
    justify-content: center;
    text-align: center;
  }

  

@media (max-width: 768px) {
  .project-hero {
    min-height: 60vh;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-meta-item:nth-child(odd) {
    border-right: 1px solid var(--grey-200);
  }

  .project-meta-item:nth-child(even) {
    border-right: none;
  }

  .project-meta-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .footer-brand {
    width: 100%;
    text-align: center;
    padding-left: 0;
  }
  .site-header .logo-img {
    height: 58px;
    left: 0;
    position: relative;
  }
  .footer-links-grid {
    padding-left: 0;
  }
  .site-footer {
    background: var(--black);
    padding: 2.25rem 0 0;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575px) {
  .footer-links-grid {
    display: grid;
    gap: 0;
    width: 100%;
    grid-template-columns: 50% 50%;
  }
}
@media (max-width: 480px) {
  .footer-links-grid {
    display: grid;
    gap: 0;
    width: 100%;
    grid-template-columns: 100%;
    text-align: center;
  }
  .footer-col a {
    margin-bottom: 0rem;
    justify-content: center;
    flex-grow: 1;
  }
  .footer-col h4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 400;
  }
  .footer-contact-item .icon-sm {
    display: none;
  }
  .footer-top {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-top {
    padding-bottom: 1rem;
  }
  .footer-col a {
    font-size: 0.82rem;
    padding: 0 10px;
    display: inline-block;
  }
}

/* ===== 404 PAGE ===== */
.hero-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.hero-404::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--cream) 100%);
  opacity: 0.5;
}

.hero-404-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-404-content {
  padding: 2rem 0;
}

.error-code {
  font-family: var(--mono);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.15;
  letter-spacing: -0.05em;
}

.hero-404 h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-404-subtitle {
  font-size: 1.25rem;
  color: var(--grey-500);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-404-description {
  font-size: 1rem;
  color: var(--grey-400);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-404-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-404-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-illustration {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.error-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.error-text {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.3em;
  z-index: 1;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

/* Helpful Links Section */
.helpful-links-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--white);
}

.helpful-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.helpful-card {
  background: var(--off-white);
  padding: 2.5rem;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid var(--grey-200);
}

.helpful-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(36, 28, 21, 0.08);
  border-color: var(--accent);
}

.helpful-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.helpful-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.helpful-card p {
  font-size: 0.95rem;
  color: var(--grey-500);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.helpful-card ul {
  list-style: none;
}

.helpful-card li {
  margin-bottom: 0.5rem;
}

.helpful-card a {
  color: var(--grey-700);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
}

.helpful-card a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Search form in 404 */
.helpful-card .search-form {
  margin-top: 1rem;
}

.helpful-card .search-form label {
  display: none;
}

.helpful-card .search-form input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--white);
}

.helpful-card .search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(179, 137, 63, 0.1);
}

.helpful-card .search-form input[type="submit"] {
  display: none;
}

/* 404 Page Responsive */
@media (max-width: 1024px) {
  .hero-404-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-404-content {
    order: 2;
  }

  .hero-404-visual {
    order: 1;
  }

  .hero-404-actions {
    justify-content: center;
  }

  .helpful-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-404 {
    min-height: 70vh;
  }

  .error-illustration {
    width: 200px;
    height: 200px;
  }

  .error-circle {
    width: 180px;
    height: 180px;
  }

  .error-text {
    font-size: 1.5rem;
  }

  .helpful-card {
    padding: 2rem;
  }

  .team-card-img {
    margin-bottom: 5px;
  }

  .team-card h4 {
    margin-bottom: 0px;
    line-height: 1.4rem;
  }

  .about-pullquote-inner {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .form-message span {
    font-size: 14px;
  }
}
  @media (max-width: 1024px) {
    .footer-col a.active::before {
        width: 5px !important;
    }
}
@media (max-width: 1024px) {
    .about-stats {
        flex-direction: row !important;
        /* gap: 16.5rem !important; */
    }
}
.footer-bottom a:hover {
  color: #fff;
}

@media (max-width: 320px) {
  .portfolio-preview .portfolio-header a {
    width: 100%;
    font-size: 14px;
    padding: 0.85rem 2.8rem;
  }
  .portfolio-intro-text{
    font-size: 16px;
  }
}

@media screen and (max-width: 575px) {
  .section {
    padding: 2.5rem 0;
  }
  .stats-bar {
    padding: 2rem 0;
  }
}

@media (max-width: 320px) {
    .hero-line-lg em {
        font-size: 38px !important;
    }
}
@media (max-width: 420px) {
    .service-item h3 {
        font-size: 15px  !important;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 0px !important;
    }
}
@media (max-width: 768px) {
    .footer-top {
        padding-bottom: 0 !important;
    }
}

@media screen and (width: 1920px) and (height: 940px) {
    .page-hero {
        min-height: 50vh !important;
    }
}

/* Privacy policy / page content left alignment */
.page-content-section,
.page-content-section .section-label,
.page-content-body,
.page-content-body * {
    text-align: center !important;
}

/* Remove process-step borders under 768px */
@media (max-width: 768px) {
    .process-steps {
        border-top: none !important;
        border-left: none !important;
    }
    .process-step {
        border-right: none !important;
        border-bottom: none !important;
        /* Nudge card content slightly to the right for better balance */
        padding: 1.75rem 1rem 1.75rem 1.25rem !important;
        cursor: pointer;
    }
    /* Disable hover effect on touch/mobile widths */
    .process-step:hover {
        background: transparent !important;
        padding-left: 1.25rem !important;
    }
}

/* Page hero side block text all white */
.page-hero-side-block > span:first-child,
.page-hero-side-block > span:last-child,
.page-hero-side-block > span:last-child a {
    color: #fff !important;
}

/* Center hero content at 575px and below */
@media (max-width: 575px) {
    .hero-content {
        justify-items: center !important;
        text-align: center !important;
    }
    .hero-content > * {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Center align everything inside page hero content */
.page-hero-content {
    justify-items: center !important;
    text-align: center !important;
}
.page-hero-content {
    justify-content: center !important;
}
.page-hero-content .hero-text {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* About page section subtitle (p) font size from 575px down to 320px */
@media (min-width: 320px) and (max-width: 575px) {
    .values-section .section-subtitle,
    .team-section .section-subtitle,
    .portfolio-preview .section-subtitle,
    .about-story .section-subtitle {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
}

/* Reduce privacy policy page font size from 991px down to 320px */
@media (min-width: 320px) and (max-width: 991px) {
    .page-content-body,
    .page-content-body p,
    .page-content-body li {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
    .page-content-body h1 {
        font-size: 24px !important;
    }
    .page-content-body h2 {
        font-size: 15px !important;
        margin-bottom: 10px;
            margin-top: 10px;
    }
    .page-content-body h3 {
        font-size: 18px !important;
    }
    .page-content-body h4 {
        font-size: 16px !important;
    }
}

@media screen and (width: 2560px) and (height: 1440px) {
    .social-rail {
        top: 23% !important;
    }
}

@media screen and (width: 2560px) and (height: 1440px) {
    .page-hero {
        min-height: 40vh !important;
    }
}

@media (max-width: 575px) {
    .about-story-text p {
        font-size: 14px !important;
    }
}

@media screen and (width: 1280px) and (height: 1040px) {
    .social-rail {
        top: 30% !important;
    }
}
@media screen and (width: 1280px) and (height: 1040px) {
    .page-hero {
        min-height: 52vh !important;
    }
}
@media (max-width: 480px) {
    .about-text p {
        margin-bottom: 0px !important;
    }
}

@media screen and (width: 2560px) and (height: 1440px) {
    .container {
        max-width: 2300px !important;
    }
}

/* Terms of Service hero title centered at 1920x1200 */
@media screen and (width: 1920px) and (height: 1200px) {
    .page-id-194 .page-hero-content h1 .hero-line-lg {
        text-align: center !important;
    }
}
.offices-section {
    padding: clamp(-1rem, 12vw, 4rem) 0 !important;
}
@media (max-width: 320px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0 !important;
  }
  .stats-grid {
    gap: 1rem !important;
  }
  .footer-col a {
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 0.85rem;
    vertical-align: top;
  }
}
@media (min-width: 1920px) {
    .page-hero {
        min-height: 50vh !important;
    }

    .social-rail {
        top: 35% !important;
    }
}
@media (max-width: 820px) {
    .process-section::before {
      left: 64px !important;
    }
}
@media (max-width: 768px) {
    .testimonials-header {
        margin-bottom: 0px !important;
        
    }
    .process-section::before {
      display: none !important;
    }
}
@media (max-width: 320px) {
    .stat-label {
        font-size: 11px !important;
        letter-spacing: 0px !important;
    }
}
@media (min-width: 1530px) {
    .site-footer {
        padding: 0 !important;
    }
    .cta-bar {
      padding: clamp(2rem, 4vw, 2rem) 0;
    }
}
}
@media (max-width: 420px) {
    .about-stat-label {
        font-size: 10px !important;
    }
}
@media (min-width: 1920px) and (min-height: 1200px) {
    .social-rail {
        top: 30% !important;
    }
    .page-hero {
    min-height: 45vh !important;
    }
}