/* Cornerstone Remodeling and Construction — design tokens */
:root {
  --bg: #0f1114;
  --bg-elevated: #181c22;
  --bg-card: #1e242c;
  --text: #f2efe8;
  --text-muted: #9aa3b0;
  --accent: #d4a054;
  --accent-bright: #f0c878;
  --accent-deep: #a67c2e;
  --accent-glow: rgba(212, 160, 84, 0.45);
  --line: rgba(242, 239, 232, 0.1);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 8px 32px rgba(212, 160, 84, 0.22);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
  --mobile-bar-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #f0c878;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' 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;
  right: 0;
  z-index: 100;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  background: rgba(15, 17, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.site-header.is-scrolled {
  background: rgba(15, 17, 20, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.nav-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-backdrop[hidden] {
  display: block;
  visibility: hidden;
}

.nav-backdrop.visible[hidden] {
  visibility: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg);
  border-radius: 10px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 0.1rem;
}

.logo-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.logo-tagline {
  font-weight: 500;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
}

.site-nav a.is-active {
  position: relative;
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .site-nav a.is-active {
    background: rgba(212, 160, 84, 0.12);
    border-color: rgba(212, 160, 84, 0.25);
    color: var(--accent-bright);
  }

  .site-nav a.is-active::after {
    display: none;
  }
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  z-index: 101;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:active {
  background: rgba(212, 160, 84, 0.15);
  border-color: rgba(212, 160, 84, 0.4);
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s, width 0.35s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(212, 160, 84, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.45rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 999px;
  box-shadow: var(--shadow-accent);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(212, 160, 84, 0.12);
  aspect-ratio: 4 / 3;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(212, 160, 84, 0.5), transparent 40%, transparent 60%, rgba(212, 160, 84, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(15, 17, 20, 0.5));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.accent-line {
  font-style: italic;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-deep));
  color: var(--bg);
  box-shadow: var(--shadow-accent);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-primary:hover {
  color: var(--bg);
  box-shadow: 0 16px 48px rgba(212, 160, 84, 0.4);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

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

.btn-wide {
  width: 100%;
  margin-top: 1.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-stats dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.hero-stats a {
  color: var(--text);
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-track span:nth-child(odd) {
  color: var(--accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head--line h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 1.25rem;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-note {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(212, 160, 84, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.service-card:hover::before,
.service-card:focus-within::before {
  transform: scaleY(1);
}

.service-icon {
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(212, 160, 84, 0.35);
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* Showcase */
.showcase {
  background: var(--bg-elevated);
  position: relative;
}

.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 84, 0.03), transparent);
  pointer-events: none;
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.showcase figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.showcase img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.showcase figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--text);
}

.showcase-copy h2 {
  color: var(--text);
}

/* Gallery */
.gallery-hint {
  display: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: -1.5rem 0 1rem;
  letter-spacing: 0.05em;
}

.gallery-scroll {
  overflow: visible;
}

.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  position: relative;
  display: block;
}

.gallery-item img {
  width: 100%;
  transition: transform 0.5s var(--ease), filter 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.gallery-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
  opacity: 0;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  background: rgba(0, 0, 0, 0.35);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-item--wide img {
  aspect-ratio: 16 / 9;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.video-card .video-poster {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-card p {
  padding: 0.85rem 1rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.video-play {
  position: absolute;
  inset: 0;
  bottom: 2.5rem;
  z-index: 2;
  border: none;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s;
  min-height: 48px;
  touch-action: manipulation;
}

.video-play:hover,
.video-play:active {
  background: rgba(0, 0, 0, 0.45);
}

.video-card:active .play-icon {
  transform: scale(0.92);
}

.play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: transform 0.2s var(--ease-snap);
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 10px solid transparent;
  border-left: 16px solid var(--bg);
  margin-left: 3px;
}

/* About */
.about-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
}

.about-copy h2 {
  color: var(--text);
}

.about-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

.about-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Contact */
.contact-panel {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  width: 120%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(212, 160, 84, 0.08), transparent 70%);
  pointer-events: none;
}

.contact-intro h2 {
  color: var(--text);
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  text-align: left;
}

.contact-link {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.3s, transform 0.3s;
}

.contact-link:hover {
  border-color: var(--accent);
  transform: translateX(4px);
  color: var(--text);
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-static {
  cursor: default;
}

.contact-static:hover {
  transform: none;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(1rem, var(--safe-top)) 1rem max(4rem, var(--safe-bottom));
  touch-action: pan-y pinch-zoom;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  touch-action: none;
}

.lightbox-img {
  max-height: min(78vh, 720px);
  max-width: 92vw;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.2s var(--ease);
}

.lightbox-img.is-swapping {
  opacity: 0.4;
}

.lightbox-counter {
  position: fixed;
  bottom: max(1.25rem, var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  border: 1px solid var(--line);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  touch-action: manipulation;
  z-index: 3;
}

.lightbox-close:active {
  transform: scale(0.94);
}

.lightbox-prev:active {
  transform: translateY(-50%) scale(0.94);
}

.lightbox-next:active {
  transform: translateY(-50%) scale(0.94);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  color: var(--bg);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Video modal */
.video-modal {
  border: none;
  padding: 0;
  max-width: min(960px, 92vw);
  width: 100%;
  background: transparent;
  margin: auto;
}

.video-modal::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.video-modal-player {
  width: 100%;
  max-height: 70dvh;
  border-radius: var(--radius);
  background: #000;
}

/* Mobile sticky bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  padding: 0.65rem 1rem calc(0.65rem + var(--safe-bottom));
  gap: 0.65rem;
  background: rgba(15, 17, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}

.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s, background 0.2s;
  touch-action: manipulation;
}

.mobile-bar-btn:active {
  transform: scale(0.97);
}

.mobile-bar-call {
  flex: 0 0 auto;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.mobile-bar-quote {
  flex: 1;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: var(--bg);
  box-shadow: var(--shadow-accent);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    max-height: 52vh;
  }

  .showcase-inner {
    grid-template-columns: 1fr;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .logo-name {
    font-size: 0.8rem;
  }

  .logo-tagline {
    font-size: 0.5rem;
    letter-spacing: 0.06em;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.25rem 1.25rem 2rem;
    background: var(--bg-elevated);
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.4s var(--ease);
    z-index: 99;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.05rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
  }

  .site-nav a:active {
    background: rgba(212, 160, 84, 0.1);
    border-color: rgba(212, 160, 84, 0.2);
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: var(--bg) !important;
    border: none;
    box-shadow: var(--shadow-accent);
  }

  .site-nav .nav-cta:active {
    transform: scale(0.98);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + var(--safe-top) + 1.25rem);
    padding-bottom: 2rem;
    gap: 1.5rem;
  }

  .hero-media {
    max-height: none;
    margin-inline: -0.25rem;
    border-radius: var(--radius);
    aspect-ratio: 5 / 4;
  }

  .hero-content {
    padding: 1.25rem;
    margin-top: -2.5rem;
    margin-inline: 0.5rem;
    background: rgba(15, 17, 20, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .hero-lead {
    font-size: 1rem;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    text-align: center;
  }

  .hero-stats > div {
    padding: 0.65rem 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid var(--line);
  }

  .hero-stats dd {
    font-size: 0.8rem;
  }

  .hero-stats dt {
    font-size: 0.62rem;
  }

  .section {
    padding-block: clamp(3rem, 8vw, 5rem);
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .service-card {
    padding: 1.35rem 1.35rem 1.35rem 1.5rem;
  }

  .service-card::before {
    transform: scaleY(1);
  }

  .showcase-copy {
    order: -1;
    text-align: center;
  }

  .showcase-copy .section-label,
  .section-head--line h2::after {
    margin-inline: auto;
  }

  .gallery-hint {
    display: block;
  }

  .gallery-scroll {
    margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem));
    padding-inline: clamp(1.25rem, 4vw, 3rem);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-scroll::-webkit-scrollbar {
    display: none;
  }

  .gallery-grid {
    display: flex;
    flex-direction: row;
    gap: 0.85rem;
    columns: unset;
    width: max-content;
    padding-bottom: 0.5rem;
  }

  .gallery-item {
    flex: 0 0 min(78vw, 300px);
    margin-bottom: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .gallery-item--wide {
    flex-basis: min(88vw, 340px);
  }

  .gallery-item::after {
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
  }

  .gallery-item img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    height: 100%;
  }

  .gallery-item--wide img {
    aspect-ratio: 4 / 5;
  }

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

  .video-card {
    scroll-snap-align: start;
  }

  .play-icon {
    width: 64px;
    height: 64px;
  }

  .contact-panel {
    padding: 2rem 1.25rem;
  }

  .contact-link {
    min-height: 56px;
    justify-content: center;
  }

  .contact-link:active {
    transform: scale(0.99);
    border-color: var(--accent);
  }

  .lightbox-prev,
  .lightbox-next {
    width: 56px;
    height: 56px;
    bottom: calc(4.5rem + var(--safe-bottom));
    top: auto;
    transform: none;
  }

  .lightbox-prev:active,
  .lightbox-next:active {
    transform: scale(0.94);
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-close {
    top: max(0.75rem, var(--safe-top));
    right: 0.75rem;
    width: 48px;
    height: 48px;
  }

  .lightbox-img {
    max-height: 65dvh;
  }

  .video-modal {
    max-width: 100vw;
    width: 100%;
    padding: 1rem;
    margin: 0;
  }

  .video-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: calc(2rem + var(--mobile-bar-h) + var(--safe-bottom));
  }

  .mobile-bar {
    display: flex;
  }

  body.nav-open .mobile-bar,
  body:has(.lightbox:not([hidden])) .mobile-bar,
  body:has(.video-modal[open]) .mobile-bar {
    display: none;
  }

  main {
    padding-bottom: calc(var(--mobile-bar-h) + var(--safe-bottom));
  }

  .marquee {
    padding: 0.75rem 0;
  }

  .marquee-track {
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .mobile-bar-label {
    display: none;
  }

  .mobile-bar-call {
    padding: 0 1rem;
  }
}

@media (hover: none) {
  .service-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .gallery-item:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
