/* ==========================================================================
   Thunder Mountain Homes — Design System
   Premium: Arial Black display, spaced all-caps Montserrat accents, glassmorphic
   pill buttons, rounded imagery, generous whitespace, no divider lines.
   ========================================================================== */

:root {
  --paper: #faf9f6;
  --char: #26282c;
  --char-dim: #74767c;
  --ink: #0c0d0f;
  --cloud: #f7f6f2;
  --accent: #a9c87d;         /* brand sage — CMYK 35/15/50/0 */
  --accent-hi: #b9d48f;
  --accent-deep: #7c9a52;

  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Arial Black", "Arial Bold", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-overlay: "proxima-nova", "Proxima Nova", "Montserrat", sans-serif;

  --radius: 20px;
  --radius-sm: 14px;
  --header-h: 96px;

  --glass-shadow: 0 8px 32px rgba(12, 13, 15, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--char);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.25;
}

.display {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  line-height: 1.04;
}

h2 { font-size: clamp(1.7rem, 3.1vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }

/* Accent label (Montserrat, spaced all caps) */
.kicker {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  color: var(--char-dim);
  max-width: 60ch;
}

p + p { margin-top: 1em; }

/* ---------- Layout ---------- */
.container {
  width: min(1240px, 90vw);
  margin-inline: auto;
}

section { position: relative; }

.section-pad { padding: clamp(110px, 16vh, 200px) 0; }
.section-pad-sm { padding: clamp(80px, 11vh, 130px) 0; }

/* ---------- Buttons: glassmorphic pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 34px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease,
              box-shadow 0.35s ease, transform 0.35s ease;
}

.btn.btn-solid {
  background: rgba(169, 200, 125, 0.88);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
}
.btn.btn-solid:hover {
  background: rgba(185, 212, 143, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(12, 13, 15, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(38, 40, 44, 0.14);
  color: var(--char);
  box-shadow: var(--glass-shadow);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(38, 40, 44, 0.28);
  transform: translateY(-2px);
}

/* ghost pills sitting on imagery become true glass */
.hero .btn-ghost,
.photo-band .btn-ghost,
.cta-banner .btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(247, 246, 242, 0.45);
  color: var(--cloud);
}
.hero .btn-ghost:hover,
.photo-band .btn-ghost:hover,
.cta-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(247, 246, 242, 0.75);
}

.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(5px); }

.btn::before {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 34px;
  right: 34px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn { position: relative; }
.btn:hover::before { transform: scaleX(1); }

/* Quiet text links: animated underline, left to right */
.text-link,
.card-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--char);
  padding-bottom: 6px;
}
.text-link::after,
.card-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.text-link:hover::after,
.card-link:hover::after,
.project-card:hover .card-link::after,
.service-card:hover .card-link::after { transform: scaleX(1); }

.text-link .arrow,
.card-link .arrow { color: var(--accent-deep); transition: transform 0.3s ease; }
.text-link:hover .arrow,
.card-link:hover .arrow,
.project-card:hover .card-link .arrow,
.service-card:hover .card-link .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s ease;
}

.site-header.scrolled {
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(12, 13, 15, 0.08);
  height: 80px;
}

.header-inner {
  width: min(1400px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img { height: 46px; width: auto; }
.brand .logo-black { display: none; }
.scrolled .brand .logo-white { display: none; }
.scrolled .brand .logo-black { display: block; }

.main-nav { display: flex; align-items: center; gap: 38px; }

.main-nav a {
  position: relative;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cloud);
  padding: 6px 0;
  transition: color 0.3s ease;
}
.scrolled .main-nav a { color: var(--char); }

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }

.nav-item { position: relative; }
.nav-item.has-dropdown > a { padding-right: 16px; }
.nav-item.has-dropdown > a::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}
.nav-item.has-dropdown:hover > a::before { transform: translateY(-40%) rotate(225deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 200px;
  padding: 14px 0;
  border-radius: var(--radius-sm);
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(38, 40, 44, 0.08);
  box-shadow: 0 24px 60px rgba(12, 13, 15, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 120;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: block;
  padding: 9px 26px !important;
  font-size: 0.72rem;
  color: var(--char) !important;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.dropdown a::after { display: none !important; }
.dropdown a:hover { color: var(--accent-deep) !important; padding-left: 32px !important; }

@media (max-width: 900px) {
  .dropdown { display: none; }
  .nav-item.has-dropdown > a { padding-right: 0; }
  .nav-item.has-dropdown > a::before { display: none; }
}

.main-nav a.nav-cta {
  margin-left: 8px;
  padding: 12px 26px;
  color: var(--ink);
}
.scrolled .main-nav a.nav-cta { color: var(--ink); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 30px;
  margin-inline: auto;
  border-radius: 2px;
  background: var(--cloud);
  transition: transform 0.35s ease, opacity 0.35s ease, background 0.3s ease;
}
.scrolled .nav-toggle span { background: var(--char); }
.nav-toggle[aria-expanded="true"] span { background: var(--cloud); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 200;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(12, 13, 15, 0.9);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; }

  .main-nav a,
  .scrolled .main-nav a { font-size: 1.25rem; letter-spacing: 0.28em; color: var(--cloud); }
  .main-nav a.nav-cta,
  .scrolled .main-nav a.nav-cta { color: var(--ink); margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  color: var(--cloud);
}

.hero.hero-short { min-height: 64svh; }

.hero-bg {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Rotating hero slideshow */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease;
}
.hero-slide.active {
  opacity: 1;
  animation: slow-zoom 9s ease-out forwards;
}
@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}

.hero-dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12, 13, 15, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(247, 246, 242, 0.18);
}
.hero-dots button {
  position: relative;
  width: 44px;
  height: 4px;
  border: none;
  border-radius: 99px;
  background: rgba(247, 246, 242, 0.3);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.hero-dots button span {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: 99px;
  background: var(--cloud);
}
.hero-dots button.active span { animation: dot-fill 6.5s linear forwards; }
@keyframes dot-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .hero-dots button.active span { animation: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active { animation: none; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,13,15,0.5) 0%, rgba(12,13,15,0.18) 55%, rgba(12,13,15,0.05) 100%),
    linear-gradient(180deg, rgba(12,13,15,0.3) 0%, rgba(12,13,15,0.05) 45%, rgba(12,13,15,0.55) 100%);
}

.hero h1 { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35); }
.hero .lead {
  font-family: var(--font-overlay);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: rgba(247, 246, 242, 0.93);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
}
.hero .kicker { color: var(--cloud); text-shadow: 0 1px 14px rgba(0,0,0,0.35); }

.hero-content {
  width: min(1240px, 90vw);
  margin-inline: auto;
  padding-bottom: clamp(80px, 13vh, 150px);
  padding-top: calc(var(--header-h) + 40px);
}

.hero .lead { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  right: min(4vw, 60px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 246, 242, 0.75);
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 56px;
  background: rgba(247, 246, 242, 0.75);
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { transform: none !important; }
  .hero-scroll::after { animation: none; }
}

/* ---------- Section headers ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(60px, 9vh, 100px); }
.section-head .lead { margin-top: 20px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 64px 56px;
}

.service-card { border: none; padding-top: 0; }

.service-card .card-media {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--glass-shadow);
}
.service-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .card-media img { transform: scale(1.05); }

.service-card .num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.22em;
}

.service-card h3 { margin: 14px 0 12px; }

.service-card p { color: var(--char-dim); font-size: 0.95rem; }

.service-card .card-link { margin-top: 22px; }

/* ---------- Full-bleed photo band ---------- */
.photo-band {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  isolation: isolate;
  color: var(--cloud);
}
@media (max-width: 900px), (hover: none) {
  .photo-band { background-attachment: scroll; }
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12,13,15,0.66) 0%, rgba(12,13,15,0.3) 55%, rgba(12,13,15,0.1) 100%);
}
.photo-band > .container { position: relative; z-index: 1; }
.photo-band .lead { font-family: var(--font-overlay); color: rgba(247, 246, 242, 0.92); }
.photo-band .kicker { color: var(--cloud); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 48px;
  text-align: center;
}

.stat .value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1;
  color: var(--char);
}
.stat .value .suffix { color: var(--accent-deep); }

.stat .label {
  margin-top: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--char-dim);
}

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(52px, 8vw, 120px);
  align-items: center;
}
.split.flip .split-media { order: 2; }

.split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.split-media:hover img { transform: scale(1.04); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .split-media { aspect-ratio: 16 / 11; }
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(56px, 8vw, 96px) clamp(36px, 4vw, 60px);
}
@media (max-width: 820px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card { display: block; }

.project-card .project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
.project-card .project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-media img { transform: scale(1.05); }

.project-card .project-meta { padding-top: 26px; border: none; padding-bottom: 0; }

.project-card .project-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.project-card h3 { margin-top: 10px; transition: color 0.3s ease; }
.project-card:hover h3 { color: var(--accent-deep); }

.project-card .project-desc {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--char-dim);
  max-width: 46ch;
}

.project-card .card-link { margin-top: 18px; }

/* ---------- Project detail ---------- */
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  border: none;
  padding: 0;
}
.project-facts .fact {
  padding: 22px 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(38, 40, 44, 0.08);
  box-shadow: var(--glass-shadow);
}
.project-facts .fact .fact-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--char-dim);
}
.project-facts .fact .fact-value {
  margin-top: 4px;
  font-weight: 700;
  font-size: 1.05rem;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(56px, 8vh, 90px);
  border: none;
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #efece6;
  border-radius: var(--radius-sm);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
@media (max-width: 720px) {
  .gallery-item.wide { grid-column: span 1; }
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(247, 246, 242, 0.2);
  border-radius: 999px;
  color: #f7f6f2;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.25s ease, color 0.25s ease;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.18); color: var(--accent); }

.lb-close {
  top: 22px; right: 26px;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 12px 24px;
}
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  line-height: 1;
  width: 56px;
  height: 56px;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

.lb-count {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: rgba(247, 246, 242, 0.7);
}

/* ---------- Testimonials ---------- */
.testimonial {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.testimonial blockquote {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--char);
}
.testimonial cite {
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-family: var(--font-script);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--char-dim);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 44px);
}
.t-card {
  text-align: left;
  padding: 44px 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(38, 40, 44, 0.07);
  box-shadow: var(--glass-shadow);
}
.t-card .t-pull {
  font-family: var(--font-script);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--accent-deep);
}
.t-card p { margin-top: 16px; font-size: 0.93rem; color: var(--char-dim); }
.t-card cite {
  display: block;
  margin-top: 18px;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--char-dim);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  padding: clamp(110px, 16vh, 180px) 0;
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
  color: var(--cloud);
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(12, 13, 15, 0.58);
}
.cta-banner h2 { margin-bottom: 18px; }
.cta-banner .lead {
  font-family: var(--font-overlay);
  margin-inline: auto;
  margin-bottom: 40px;
  color: rgba(247, 246, 242, 0.92);
}
.cta-banner .kicker { color: var(--cloud); }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 52px;
}
.process-step { border: none; padding-top: 0; }
.process-step .num {
  font-family: var(--font-script);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent-deep);
  letter-spacing: 0.14em;
}
.process-step h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.process-step p { color: var(--char-dim); font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(56px, 8vw, 110px);
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-form { display: grid; gap: 24px; }

.field { display: grid; gap: 9px; }
.field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--char-dim);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font);
  font-size: 0.98rem;
  color: var(--char);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(38, 40, 44, 0.1);
  border-radius: var(--radius-sm);
  padding: 17px 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(169, 200, 125, 0.2);
}
.field textarea { resize: vertical; min-height: 130px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.form-status { font-size: 0.9rem; color: var(--accent-deep); font-weight: 600; min-height: 1.4em; }

.contact-info h3 { margin-bottom: 6px; }
.contact-info .info-block { padding: 24px 0; border: none; }
.contact-info .info-block:first-child { padding-top: 0; }
.contact-info a:hover { color: var(--accent-deep); }
.contact-info p { color: var(--char-dim); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px 0 30px;
  background: var(--ink);
  color: var(--cloud);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(247, 246, 242, 0.55); font-size: 0.93rem; max-width: 34ch; }

.site-footer h4 {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(247, 246, 242, 0.5);
  margin-bottom: 18px;
}
.site-footer li { margin-bottom: 10px; }
.site-footer li a { font-size: 0.93rem; transition: color 0.25s ease; }
.site-footer li a:hover { color: var(--accent); }

.footer-muted { color: rgba(247, 246, 242, 0.5); font-size: 0.9rem; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 0;
  border: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(247, 246, 242, 0.45);
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.page-hero .hero-content { padding-bottom: clamp(56px, 9vh, 100px); }

/* ---------- Utility ---------- */
.text-accent { color: var(--accent-deep); }
.bg-raised { background: transparent; }
.mt-lg { margin-top: clamp(44px, 7vh, 80px); }
.script { font-family: var(--font-script); text-transform: uppercase; letter-spacing: 0.14em; }

/* ---------- Premium touches ---------- */
::selection { background: var(--accent); color: var(--ink); }

.project-card .project-media,
.service-card .card-media {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease;
}
.project-card:hover .project-media,
.service-card:hover .card-media {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(12, 13, 15, 0.2);
}

/* Word-stagger entrance for hero display text */
.display .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.display .word.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .display .word { opacity: 1; transform: none; transition: none; }
}

/* Footer bottom: quiet centered line */
.footer-bottom {
  justify-content: center !important;
  text-align: center;
  letter-spacing: 0.06em;
}

/* ---------- Areas list (index) ---------- */
.areas-list { display: grid; gap: clamp(28px, 4vh, 40px); }
.area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(38, 40, 44, 0.07);
  box-shadow: var(--glass-shadow);
}
.area-row .area-info h3 a { transition: color 0.3s ease; }
.area-row .area-info h3 a:hover { color: var(--accent-deep); }
.area-row .area-info p { margin-top: 6px; font-size: 0.94rem; color: var(--char-dim); max-width: 60ch; }
.area-row .area-btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 720px) {
  .area-row { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .area-row .area-btn { white-space: normal; width: 100%; text-align: center; }
}

/* ---------- Service list (hover reveal) ---------- */
.service-list { display: grid; gap: 20px; }

.service-row {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(38, 40, 44, 0.07);
  box-shadow: var(--glass-shadow);
}

.service-row-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-row-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 13, 15, 0.74) 0%, rgba(12, 13, 15, 0.3) 65%, rgba(12, 13, 15, 0.12) 100%);
}

.service-row-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 28px;
  padding: 40px clamp(28px, 4vw, 56px);
  transition: padding 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  transition: color 0.4s ease;
}

.service-row-desc {
  grid-column: 1;
  max-width: 58ch;
  font-size: 0.95rem;
  color: var(--char-dim);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease 0.1s, color 0.4s ease, margin 0.55s ease;
}

.service-arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(38, 40, 44, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--char);
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.service-row:hover .service-row-bg { opacity: 1; transform: scale(1); }
.service-row:hover .service-row-inner { padding-top: 76px; padding-bottom: 76px; }
.service-row:hover h3 { color: var(--cloud); }
.service-row:hover .service-row-desc { max-height: 170px; opacity: 1; color: rgba(247, 246, 242, 0.92); margin-top: 14px; }
.service-row:hover .service-arrow { background: #ffffff; color: var(--ink); border-color: #ffffff; transform: translateX(4px); }

/* touch devices: show expanded state statically */
@media (hover: none) {
  .service-row-bg { opacity: 1; transform: none; }
  .service-row h3 { color: var(--cloud); }
  .service-row-desc { max-height: none; opacity: 1; color: rgba(247, 246, 242, 0.92); margin-top: 12px; }
  .service-arrow { background: rgba(255,255,255,0.9); color: var(--ink); border-color: transparent; }
}

/* ---------- Contact hero with form card ---------- */
.contact-hero { align-items: center; }

.contact-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1300px, 92vw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 44px;
}

.contact-hero h1 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.35);
}
.contact-hero .lead { margin-top: 18px; }

.contact-quick { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-top: 26px; }
.contact-quick a {
  color: var(--cloud);
  font-weight: 600;
  border-bottom: 1px solid rgba(247, 246, 242, 0.4);
  padding-bottom: 3px;
  transition: border-color 0.3s ease;
}
.contact-quick a:hover { border-color: var(--cloud); }

.form-card {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(12, 13, 15, 0.32);
  padding: clamp(20px, 3vh, 32px) clamp(20px, 2.2vw, 32px);
  color: var(--char);
}

/* compact form inside the card so everything fits above the fold */
.form-card .contact-form { gap: 12px; }
.form-card .field { gap: 4px; }
.form-card .field label { font-size: 0.6rem; letter-spacing: 0.14em; }
.form-card .field input,
.form-card .field select,
.form-card .field textarea {
  padding: 10px 13px;
  font-size: 0.9rem;
  border-radius: 10px;
  background: #ffffff;
}
.form-card .field textarea { min-height: 52px; }
.form-card .field-row { gap: 12px; }
.form-card .btn { width: 100%; padding: 13px 30px; }
.form-card .form-status { min-height: 0; font-size: 0.8rem; }
.form-card .form-status:empty { display: none; }

@media (max-width: 900px) {
  .contact-hero { min-height: auto; }
  .contact-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 64px;
  }
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px;
}
.contact-meta h3 { margin-bottom: 8px; }
.contact-meta p { color: var(--char-dim); }
.contact-meta a { transition: color 0.25s ease; }
.contact-meta a:hover { color: var(--accent-deep); }

/* ---------- Mobile: center everything ---------- */
@media (max-width: 720px) {
  section, .site-footer { text-align: center; }
  .lead,
  .section-head,
  .container [style*="max-width"],
  .project-card .project-desc,
  .area-row .area-info p,
  .service-row-desc,
  .footer-brand p,
  .footer-brand img { margin-inline: auto; }
  .hero-actions,
  .contact-quick,
  .project-facts { justify-content: center; }
  .project-facts .fact { width: 100%; }
  .project-nav { flex-direction: column; align-items: center; }
  .area-row { align-items: center; }
  .t-card { text-align: center; }
  .service-row-inner { grid-template-columns: 1fr; justify-items: center; }
  .service-arrow { grid-row: 3; grid-column: 1; margin-top: 22px; }
  .photo-band::after,
  .service-row-bg::after { background: rgba(12, 13, 15, 0.58); }
  .contact-form { text-align: left; }
}
