:root {
  /* Hex fallback for browsers without oklch() support; overridden below when supported. */
  --bg: #040905;
  --bg-alt-1: #121914;
  --bg-alt-2: #0D130F;
  --bg-alt-3: #0F1611;
  --text: #F6F5F3;
  --accent: #34582C;
  --accent-hover: #9DC494;
  --nav-link: #CBCFCC;
  --hero-sub: #C2C5C2;
  --hero-eyebrow: #86B37D;
  --eyebrow: #9DC494;
  --trust: #B3B9B4;
  --body-copy: #AEB2AE;
  --contact-sub: #838884;
  --label: #7D827E;
  --footer-sub: #7D827E;
  --success-copy: #949A95;
  --error: #DD8364;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@supports (color: oklch(1 0 0)) {
  :root {
    --bg: oklch(0.13 0.015 155);
    --bg-alt-1: oklch(0.205 0.014 155);
    --bg-alt-2: oklch(0.18 0.013 155);
    --bg-alt-3: oklch(0.19 0.013 155);
    --text: oklch(0.97 0.003 90);
    --accent: oklch(0.42 0.08 140);
    --accent-hover: oklch(0.78 0.08 140);
    --nav-link: oklch(0.85 0.005 150);
    --hero-sub: oklch(0.82 0.005 150);
    --hero-eyebrow: oklch(0.72 0.09 140);
    --eyebrow: oklch(0.78 0.08 140);
    --trust: oklch(0.78 0.01 150);
    --body-copy: oklch(0.76 0.008 150);
    --contact-sub: oklch(0.62 0.008 150);
    --label: oklch(0.6 0.008 150);
    --footer-sub: oklch(0.6 0.008 150);
    --success-copy: oklch(0.68 0.01 150);
    --error: oklch(0.7 0.12 40);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: white; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: white; padding: 12px 20px;
  z-index: 100; font-family: 'Work Sans', sans-serif; font-size: 14px;
}
.skip-link:focus { left: 8px; top: 8px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

#main-content {
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
  overflow-x: hidden;
  width: 100%;
}

/* Shared bits */
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.eyebrow-center { justify-content: center; }
.eyebrow-line { width: 36px; height: 1px; background: linear-gradient(90deg, var(--eyebrow), transparent); }
.eyebrow-line-fade { background: linear-gradient(90deg, transparent, var(--eyebrow)); }
.eyebrow-label { font-size: 12px; letter-spacing: 0.32em; color: var(--eyebrow); font-weight: 600; }
.eyebrow-label-hero { color: var(--hero-eyebrow); font-weight: 700; }

.section-title {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: 0;
  max-width: 700px; text-wrap: pretty;
}
.section-title-center { text-align: center; max-width: 640px; margin: 0 auto 20px; font-size: clamp(34px, 5vw, 54px); line-height: 1.05; }

.btn {
  display: inline-block; font-size: 13px; letter-spacing: 0.08em; font-weight: 600;
  border-radius: 2px; transition: all 0.35s var(--ease); cursor: pointer; border: none;
  font-family: 'Work Sans', sans-serif;
}
.btn-primary { background: var(--accent); color: white; padding: 18px 32px; }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-3px); box-shadow: 0 16px 34px -10px rgba(52,88,44,0.6); box-shadow: 0 16px 34px -10px oklch(0.42 0.08 140 / 0.6); }
.btn-outline { border: 1px solid rgba(255,255,255,0.3); border: 1px solid oklch(1 0 0 / 0.3); color: white; padding: 18px 32px; }
.btn-outline:hover { border-color: rgba(255,255,255,0.75); border-color: oklch(1 0 0 / 0.75); transform: translateY(-3px); background: rgba(255,255,255,0.04); background: oklch(1 0 0 / 0.04); }
.btn-lg { padding: 18px 32px; }

/* HEADER */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
#site-header.scrolled {
  background: rgba(4,9,5,0.9);
  background: oklch(0.13 0.015 155 / 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.header-inner {
  max-width: 1440px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 18px clamp(20px, 4vw, 48px);
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.brand-sub { font-size: 14px; letter-spacing: 0.06em; color: var(--accent-hover); font-weight: 500; margin-top: 2px; }

.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-desktop a:not(.btn) { font-size: 14px; letter-spacing: 0.02em; color: var(--nav-link); }
.nav-desktop .btn { padding: 11px 22px; font-size: 13px; }
.nav-desktop .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(52,88,44,0.55); box-shadow: 0 10px 24px -8px oklch(0.42 0.08 140 / 0.55); }

.hamburger {
  display: none; flex-direction: column; gap: 6px; background: none; border: none;
  cursor: pointer; padding: 8px;
}
.burger-line { width: 22px; height: 2px; background: white; transition: transform 0.3s; }
#menu-toggle.open .burger-line-1 { transform: translateY(4px) rotate(45deg); }
#menu-toggle.open .burger-line-2 { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  display: none; padding-top: 90px;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 28px; padding: 40px; }
.mobile-menu-brand { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 24px; margin-bottom: 4px; }
.mobile-link { font-family: 'Archivo', sans-serif; font-size: 32px; font-weight: 600; }
.mobile-cta { margin-top: 12px; padding: 16px 26px; font-size: 14px; text-align: center; }

@media (max-width: 859px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
}

/* HERO */
.hero { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; background: var(--bg); pointer-events: none;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,9,5,0.25) 0%, transparent 30%, rgba(4,9,5,0.95) 100%);
  background: linear-gradient(180deg, oklch(0.13 0.015 155 / 0.25) 0%, transparent 30%, oklch(0.13 0.015 155 / 0.95) 100%);
}

.hero-content-wrap {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.1s var(--ease) 0.15s, transform 1.1s var(--ease) 0.15s;
  will-change: opacity, transform;
}
.hero-content-wrap.is-visible { opacity: 1; transform: translateY(0); }
.hero-content {
  background: var(--bg); max-width: 1440px; margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 48px) clamp(64px, 10vw, 120px);
}
.hero-title {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(40px, 7.5vw, 92px); line-height: 1.02; letter-spacing: 0;
  max-width: 820px; text-wrap: pretty;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px); color: var(--hero-sub); max-width: 520px;
  margin-top: 32px; line-height: 1.65; font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

/* TRUST STRIP */
.trust-strip {
  background: linear-gradient(180deg, var(--bg-alt-1), var(--bg-alt-2));
  border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08);
  border-top: 1px solid oklch(1 0 0 / 0.08); border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.trust-strip-inner {
  max-width: 1440px; margin: 0 auto; padding: 26px clamp(20px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; align-items: center;
}
.trust-item { font-size: 12px; letter-spacing: 0.14em; color: var(--trust); font-weight: 500; }
.trust-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.15); background: oklch(1 0 0 / 0.15); }

/* Generic scroll reveal */
[data-reveal] {
  opacity: 0; transform: translateY(36px) scale(0.975);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0) scale(1); }

/* SERVICES */
.services-head { max-width: 1440px; margin: 0 auto; padding: clamp(100px, 14vw, 160px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 80px); }

.services-grid {
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(100px, 14vw, 160px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; }
.service-tile-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: var(--bg-pos, center); background-repeat: no-repeat;
  transition: transform 1.2s var(--ease);
}
.service-tile:hover .service-tile-img { transform: scale(1.06); }

.bg-linings    { background-image: url('./assets/walls-ceiling.jpg'); }
.bg-flushing   { background-image: url('./assets/flushing.jpg'); }
.bg-cornice    { background-image: url('./assets/cornice.jpg'); }
.bg-insulation { background-image: url('./assets/insulation.jpg'); }
.bg-rondo      { background-image: url('./assets/rondo.jpg'); }
.bg-level5     { background-image: url('./assets/level5.jpg'); }

@media (max-width: 640px) {
  .bg-linings    { background-image: url('./assets/walls-ceiling-mobile.jpg'); }
  .bg-flushing   { background-image: url('./assets/flushing-mobile.jpg'); }
  .bg-cornice    { background-image: url('./assets/cornice-mobile.jpg'); }
  .bg-insulation { background-image: url('./assets/insulation-mobile.jpg'); }
  .bg-rondo      { background-image: url('./assets/rondo-mobile.jpg'); }
  .bg-level5     { background-image: url('./assets/level5-mobile.jpg'); }
}

.service-tile-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(4,9,5,0.1) 0%, rgba(4,9,5,0.25) 55%, rgba(4,9,5,0.88) 100%);
  background: linear-gradient(180deg, oklch(0.13 0.015 155 / 0.1) 0%, oklch(0.13 0.015 155 / 0.25) 55%, oklch(0.13 0.015 155 / 0.88) 100%);
}
.service-tile-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 3vw, 36px);
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.service-tile-content.is-visible { opacity: 1; transform: translateY(0); }
.service-word {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(30px, 4.2vw, 56px); line-height: 0.95; letter-spacing: 0;
}
.service-desc { font-size: 14px; color: #BBBFBC; color: oklch(0.8 0.005 150); font-weight: 300; max-width: 320px; margin-top: 8px; }

/* INSTAGRAM */
.instagram-section { background: var(--bg-alt-3); text-align: center; padding: clamp(72px, 10vw, 120px) clamp(20px, 4vw, 48px); }
.instagram-copy { font-size: 16px; color: var(--body-copy); line-height: 1.7; font-weight: 300; max-width: 480px; margin: 0 auto 36px; }

/* APPROACH */
.approach-section {
  max-width: 1440px; margin: 0 auto; padding: clamp(100px, 14vw, 200px) clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(48px, 7vw, 100px);
  align-items: center;
}
.approach-img-wrap { height: clamp(320px, 40vw, 560px); overflow: hidden; transition: box-shadow 0.5s ease; }
.approach-img-wrap:hover { box-shadow: 0 24px 50px -16px rgba(0,1,0,0.6); box-shadow: 0 24px 50px -16px oklch(0.05 0.01 155 / 0.6); }
.approach-img-inner { width: 100%; height: 100%; transition: transform 0.8s var(--ease); overflow: hidden; }
.approach-img-wrap:hover .approach-img-inner { transform: scale(1.04); }
.approach-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.approach-title { font-size: clamp(30px, 4.6vw, 58px); line-height: 1.08; overflow-wrap: break-word; margin-bottom: 32px; }
.approach-copy { font-size: 16.5px; color: var(--body-copy); line-height: 1.8; font-weight: 300; margin-bottom: 22px; }
.approach-copy-last { margin-bottom: 0; }

/* CONTACT */
.contact-grid {
  max-width: 1440px; margin: 0 auto; padding: clamp(100px, 14vw, 200px) clamp(20px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(48px, 7vw, 100px);
}
.contact-title { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin-bottom: 16px; }
.contact-sub { font-size: 14.5px; color: var(--contact-sub); margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-label { font-size: 11px; letter-spacing: 0.12em; color: var(--label); }
.contact-value { font-size: 17px; font-weight: 500; display: inline-block; }

.contact-success {
  border: 1px solid rgba(255,255,255,0.12);
  border: 1px solid oklch(1 0 0 / 0.12); padding: 48px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 320px;
}
.contact-success-title { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 24px; margin-bottom: 10px; }
.contact-success-copy { font-size: 15px; color: var(--success-copy); line-height: 1.6; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 11px; letter-spacing: 0.08em; color: var(--label); }
.form-field input, .form-field textarea {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid oklch(1 0 0 / 0.2);
  color: white; font-size: 15px; padding: 8px 0; font-family: 'Work Sans', sans-serif; resize: none;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent-hover); }
.form-submit { align-self: flex-start; margin-top: 16px; }
.form-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.contact-error { font-size: 13.5px; color: var(--error); margin-top: -6px; }
.contact-error a { text-decoration: underline; }

/* FOOTER */
.site-footer { border-top: 1px solid rgba(255,255,255,0.08); border-top: 1px solid oklch(1 0 0 / 0.08); }
.footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 40px clamp(20px, 4vw, 48px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand-name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px; }
.footer-brand-sub { font-size: 11px; letter-spacing: 0.14em; color: var(--label); margin-top: 2px; }
.footer-legal { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-copyright { font-size: 13px; color: var(--label); }
.footer-license { font-size: 12px; letter-spacing: 0.08em; color: var(--footer-sub); }
