:root {
  --ink: #11110f;
  --paper: #f2f0ea;
  --warm: #d4c5ae;
  --stone: #a89c8d;
  --line: rgba(17, 17, 15, .14);
  --white: #fff;
  --max: 1400px;
  --pad: clamp(22px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--ink); }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: white; color: #111; padding: 12px 16px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad); color: white;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(242, 240, 234, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: .12em; }
.brand img { width: 46px; height: 42px; object-fit: contain; border-radius: 2px; }
.main-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); font-size: 14px; }
.main-nav a { text-decoration: none; position: relative; }
.main-nav > a:not(.nav-quote)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .25s; }
.main-nav > a:hover::after { right: 0; }
.nav-quote { border: 1px solid currentColor; padding: 11px 17px; }
.menu-toggle { display: none; background: none; color: inherit; border: 0; width: 42px; height: 42px; padding: 10px; }
.menu-toggle span { display: block; height: 1px; background: currentColor; margin: 7px 0; transition: transform .25s; }

.hero {
  position: relative; min-height: 100svh; max-width: 1920px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  background: var(--ink); color: white; overflow: hidden;
}
.hero-copy { align-self: center; padding: 130px clamp(36px, 7vw, 128px) 130px var(--pad); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 600; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.hero h1, h2 { font-family: "Manrope", sans-serif; font-weight: 500; letter-spacing: -.055em; }
.hero h1 { margin: 0; font-size: clamp(56px, 7.1vw, 116px); line-height: .91; max-width: 850px; }
.hero h1 em, .contact-copy h2 em { font-family: Georgia, serif; font-weight: 400; }
.hero-lede { max-width: 620px; margin: 34px 0 0; color: rgba(255,255,255,.67); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 0 21px; border: 0; text-decoration: none; cursor: pointer; font-weight: 600; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--warm); color: var(--ink); }
.button-light { background: white; color: var(--ink); }
.text-link { text-decoration: none; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 6px; }
.text-link span { margin-left: 8px; }
.direct-call { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 45px; text-decoration: none; font-size: 14px; letter-spacing: .04em; }
.direct-call span { color: rgba(255,255,255,.5); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.hero-visual { position: relative; min-height: 100svh; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,15,.3), transparent 40%), linear-gradient(0deg, rgba(0,0,0,.26), transparent 45%); pointer-events: none; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-caption { position: absolute; z-index: 2; left: 30px; bottom: 34px; display: flex; gap: 16px; align-items: flex-start; font-size: 12px; }
.hero-caption span { opacity: .55; }
.hero-caption p { margin: 0; line-height: 1.45; }
.material-chip { position: absolute; z-index: 2; top: 118px; right: 28px; width: 150px; background: rgba(17,17,15,.86); padding: 18px; backdrop-filter: blur(8px); }
.material-chip span { display: block; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #eae7e1, #8d8b86); margin-bottom: 34px; }
.material-chip p { margin: 0; font-size: 11px; line-height: 1.45; text-transform: uppercase; letter-spacing: .11em; }
.trust-bar { position: absolute; z-index: 3; left: var(--pad); bottom: 0; width: min(64vw, 980px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.trust-bar div { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px 20px 0; }
.trust-bar strong { font-size: 15px; letter-spacing: .04em; }
.trust-bar span { color: rgba(255,255,255,.46); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

.services-section { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 11vw, 160px) var(--pad); }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; margin-bottom: 70px; }
.section-heading h2 { font-size: clamp(46px, 6vw, 88px); line-height: .98; margin: 0; }
.section-heading > p { margin: 0 0 8px; max-width: 570px; color: #635f58; font-size: 17px; line-height: 1.7; }
.service-list { border-top: 1px solid var(--line); }
.service-card { display: grid; grid-template-columns: 70px 1fr 60px; gap: 30px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.service-number { color: #8a8378; font-size: 12px; }
.service-card h3 { margin: -4px 0 10px; font-family: "Manrope", sans-serif; font-size: clamp(23px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.035em; }
.service-card p { margin: 0; max-width: 750px; color: #68635c; line-height: 1.6; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 22px; }
.capabilities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.capabilities span { border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px; color: #666057; font-size: 12px; }
.work-intro { padding-top: clamp(100px, 12vw, 170px); }
.section-heading.compact { align-items: end; margin-bottom: 42px; }
.section-heading.compact h2 { font-size: clamp(44px, 5vw, 72px); }
.filters { justify-self: end; display: flex; gap: 6px; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: transparent; padding: 10px 14px; cursor: pointer; color: #69635a; }
.filter.active, .filter:hover { background: var(--ink); color: white; }
.gallery { display: grid; grid-template-columns: 1.05fr .95fr; grid-auto-flow: dense; gap: 16px; }
.project { position: relative; min-height: 480px; padding: 0; overflow: hidden; border: 0; background: #d7d1c8; cursor: zoom-in; text-align: left; }
.project.project-wide { min-height: 580px; }
.project.project-tall { grid-row: span 2; min-height: 820px; }
.project > img, .project > video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center bottom; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.62), transparent 42%); }
.project:hover > img, .project:hover > video { transform: scale(1.035); }
.project[hidden] { display: none; }
.project-label { position: absolute; z-index: 2; left: 24px; bottom: 22px; color: white; display: flex; flex-direction: column; gap: 5px; }
.project-label b { font-size: 17px; font-weight: 500; }
.project-label small { color: rgba(255,255,255,.66); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.play { position: absolute; z-index: 3; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: 60px; height: 60px; display: grid; place-items: center; color: white; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(0,0,0,.22); }

.contact-section { background: var(--ink); color: white; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 120px); padding: clamp(90px, 10vw, 150px) var(--pad); }
.contact-copy { align-self: start; position: sticky; top: 120px; }
.eyebrow.light { color: rgba(255,255,255,.65); }
.contact-copy h2 { margin: 0; font-size: clamp(56px, 6.3vw, 96px); line-height: .92; }
.contact-copy > p:not(.eyebrow) { margin: 32px 0; max-width: 520px; color: rgba(255,255,255,.58); line-height: 1.7; }
.contact-copy .service-areas { margin-top: -12px; font-size: 12px; color: rgba(255,255,255,.42); }
.contact-links { display: grid; gap: 1px; max-width: 520px; background: rgba(255,255,255,.12); }
.contact-links a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; background: var(--ink); text-decoration: none; }
.contact-links small { color: rgba(255,255,255,.42); text-transform: uppercase; letter-spacing: .12em; }
.contact-links strong { font-weight: 500; }
.quote-panel { background: #d8c8b1; color: var(--ink); padding: clamp(26px, 4vw, 54px); min-height: 650px; scroll-margin-top: 90px; }
.quote-head { display: flex; justify-content: space-between; align-items: end; }
.quote-head span { text-transform: uppercase; letter-spacing: .14em; font-size: 10px; }
.quote-head h3 { margin: 8px 0 0; font-family: "Manrope", sans-serif; font-size: clamp(32px, 3vw, 46px); font-weight: 500; letter-spacing: -.04em; }
.step-count { font-size: 13px; color: #726857; }
.step-count b { font-size: 22px; color: var(--ink); }
.progress { height: 2px; background: rgba(17,17,15,.16); margin: 28px 0 42px; }
.progress span { display: block; width: 33.333%; height: 100%; background: var(--ink); transition: width .35s ease; }
.form-step { border: 0; padding: 0; margin: 0; display: none; }
.form-step.active { display: block; animation: stepIn .3s ease both; }
.form-step legend { padding: 0; margin-bottom: 25px; font-size: 20px; font-weight: 600; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: flex; min-height: 112px; flex-direction: column; justify-content: space-between; border: 1px solid rgba(17,17,15,.25); padding: 18px; cursor: pointer; font-weight: 600; transition: background .2s, color .2s; }
.choice small { color: #6c6355; font-size: 11px; font-weight: 400; }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.choice input:checked + span { background: var(--ink); color: white; }
.choice input:checked + span small { color: rgba(255,255,255,.58); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(17,17,15,.28); border-radius: 0; background: rgba(255,255,255,.36); color: var(--ink); padding: 14px 12px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: rgba(255,255,255,.62); }
.field textarea { resize: vertical; min-height: 115px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin: 4px 0 0; color: #665d50; font-size: 12px; line-height: 1.5; }
.form-error { min-height: 22px; margin-top: 8px; color: #861f16; font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 18px; }
.button-back { border: 0; background: transparent; cursor: pointer; padding: 15px; text-decoration: underline; text-underline-offset: 4px; }
.quote-result { padding-top: 40px; }
.result-icon { width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; }
.quote-result h3 { font-size: 36px; margin: 30px 0 12px; }
.quote-result p { max-width: 520px; line-height: 1.6; color: #655c4f; }
.result-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; }

footer { display: grid; grid-template-columns: 1fr auto auto auto; gap: 28px; align-items: center; background: #080807; color: rgba(255,255,255,.55); padding: 28px var(--pad); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.footer-brand { color: white; }
.footer-brand img { width: 36px; height: 34px; }
.footer-instagram { color: white; text-decoration: none; }
.footer-instagram:hover { text-decoration: underline; text-underline-offset: 4px; }

.lightbox { width: min(94vw, 1100px); max-width: none; border: 0; padding: 0; background: #111; color: white; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.lightbox-close { position: absolute; z-index: 2; right: 14px; top: 14px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(0,0,0,.3); color: white; font-size: 24px; cursor: pointer; }
.lightbox-nav { position: absolute; z-index: 2; top: 50%; width: 48px; height: 56px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(0,0,0,.42); color: white; font-size: 36px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-media { position: relative; height: min(76vh, 760px); display: grid; place-items: center; background: #090909; }
.lightbox-media img, .lightbox-media video { width: 100%; height: 100%; object-fit: contain; }
.lightbox > p { margin: 0; padding: 16px 20px; }
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: white; color: #111; padding: 12px 17px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: 0 12px 35px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.delay-1 { transition-delay: .12s; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 45%; }
  .hero-copy { padding-left: var(--pad); }
  .trust-bar { width: calc(55% - var(--pad)); }
  .material-chip { display: none; }
  .contact-section { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
  .contact-links { max-width: 720px; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .site-header { padding-top: 10px; padding-bottom: 10px; }
  .menu-toggle { display: block; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 90px 32px; font-size: 28px; transform: translateX(100%); transition: transform .35s ease; }
  .main-nav.open { transform: none; }
  .nav-quote { font-size: 17px; margin-top: 10px; }
  .hero { display: block; min-height: auto; padding-bottom: 120px; }
  .hero-copy { min-height: 72svh; padding: 125px var(--pad) 56px; display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: clamp(55px, 17vw, 82px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .direct-call { margin-top: 28px; }
  .hero-visual { min-height: 67svh; margin: 0 14px; }
  .trust-bar { left: var(--pad); right: var(--pad); bottom: 18px; width: auto; }
  .trust-bar div { padding: 18px 8px 0 0; }
  .trust-bar strong { font-size: 13px; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 46px; }
  .service-card { grid-template-columns: 36px 1fr; gap: 14px; }
  .service-icon { display: none; }
  .section-heading.compact { grid-template-columns: 1fr; }
  .filters { justify-self: start; }
  .gallery { display: block; }
  .project, .project.project-wide, .project.project-tall { width: 100%; min-height: 62svh; margin-bottom: 14px; }
  .contact-section { padding-left: var(--pad); padding-right: var(--pad); }
  .quote-panel { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); }
  .contact-links a { flex-direction: column; gap: 7px; }
  .choice-grid, .field-row { grid-template-columns: 1fr; }
  .choice > span { min-height: 85px; }
  footer { grid-template-columns: 1fr; gap: 8px; }
  footer p { margin: 4px 0; }
  .lightbox { width: 100vw; height: 100dvh; }
  .lightbox-media { height: calc(100dvh - 60px); }
}

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

/* Always-available Instagram shortcut */
.floating-instagram {
  position: fixed;
  right: clamp(16px, 2.3vw, 34px);
  bottom: clamp(16px, 2.3vw, 34px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: linear-gradient(135deg, #833ab4 0%, #c13584 34%, #e1306c 58%, #f77737 82%, #fcaf45 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(17, 17, 15, .24);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.floating-instagram:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(17, 17, 15, .3);
}
.floating-instagram:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.floating-instagram svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.floating-instagram .instagram-dot {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 760px) {
  .floating-instagram {
    width: 54px;
    height: 54px;
    min-height: 54px;
    justify-content: center;
    padding: 0;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .floating-instagram span { display: none; }
}

/* Light premium redesign */
:root {
  --ink: #191916;
  --paper: #f7f6f2;
  --warm: #c7a27b;
  --stone: #8f887d;
  --line: rgba(25, 25, 22, .11);
  --white: #fff;
}

body { background: var(--paper); }

.site-header {
  color: var(--ink);
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-header.scrolled {
  background: rgba(247, 246, 242, .9);
  box-shadow: 0 1px 0 var(--line);
}
.brand img { border-radius: 8px; }
.nav-quote {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  border-radius: 999px;
  padding: 12px 19px;
  transition: transform .2s ease, background .2s ease;
}
.nav-quote:hover { transform: translateY(-2px); background: #33332f; }

.hero {
  max-width: none;
  background:
    radial-gradient(circle at 22% 15%, rgba(199, 162, 123, .15), transparent 27%),
    var(--paper);
  color: var(--ink);
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}
.hero-copy { padding: 145px clamp(42px, 7.5vw, 138px) 150px var(--pad); }
.hero h1 { font-size: clamp(60px, 7vw, 112px); line-height: .92; }
.hero h1 em { color: #8b6848; }
.hero-lede { color: #69655e; max-width: 650px; }
.button { border-radius: 999px; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #35352f; }
.text-link { border-bottom-color: rgba(25,25,22,.28); }
.direct-call span { color: #8a857d; }
.hero-visual {
  min-height: calc(100svh - 116px);
  margin: 94px 26px 22px 0;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(47, 42, 34, .14);
}
.hero-visual::after {
  background: linear-gradient(90deg, rgba(17,17,15,.06), transparent 42%), linear-gradient(0deg, rgba(0,0,0,.32), transparent 45%);
}
.hero-caption { left: 26px; bottom: 24px; }
.material-chip {
  top: 28px;
  right: 28px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 18px;
  box-shadow: 0 16px 35px rgba(0,0,0,.12);
}
.trust-bar {
  bottom: 24px;
  width: min(53vw, 790px);
  border-top-color: rgba(25,25,22,.13);
}
.trust-bar strong { color: var(--ink); }
.trust-bar span { color: #8b867e; }

.services-section {
  max-width: none;
  background: white;
  padding-left: max(var(--pad), calc((100vw - 1400px) / 2));
  padding-right: max(var(--pad), calc((100vw - 1400px) / 2));
}
.section-heading > p { color: #6e6a64; }
.service-list {
  border: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #faf9f6;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 28px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(25,25,22,.2);
  box-shadow: 0 22px 48px rgba(35,31,24,.08);
}
.service-card > div { grid-column: 1 / -1; align-self: end; }
.service-number { color: #9b7653; }
.service-card h3 { font-size: clamp(24px, 2vw, 32px); }
.service-icon { grid-column: 2; grid-row: 1; border-color: rgba(25,25,22,.12); background: white; }
.capabilities { margin-top: 22px; }
.capabilities span { background: #faf9f6; padding: 11px 16px; }
.work-intro { padding-top: clamp(110px, 12vw, 180px); }
.filter { border-radius: 999px; padding: 10px 16px; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project { min-height: 420px; border-radius: 24px; box-shadow: 0 16px 38px rgba(30,27,22,.08); }
.project.project-wide { grid-column: span 2; min-height: 520px; }
.project.project-tall { grid-row: span 2; min-height: 858px; }
.project::after { background: linear-gradient(0deg, rgba(0,0,0,.68), transparent 48%); }
.project-label { left: 26px; bottom: 24px; }

.contact-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.75), transparent 32%),
    #e9e5dd;
  color: var(--ink);
}
.eyebrow.light { color: #736f67; }
.contact-copy h2 em { color: #8b6848; }
.contact-copy > p:not(.eyebrow) { color: #68645d; }
.contact-copy .service-areas { color: #8a857d; }
.contact-links { background: rgba(25,25,22,.12); }
.contact-links a { background: transparent; border-bottom: 1px solid rgba(25,25,22,.12); padding: 19px 0; }
.contact-links small { color: #89847b; }
.quote-panel {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(51,44,34,.12);
}
.progress { background: #e8e3db; }
.progress span { background: #9c7652; }
.choice > span { border-color: rgba(25,25,22,.16); border-radius: 17px; }
.choice input:checked + span { background: var(--ink); }
.field input, .field select, .field textarea {
  border: 1px solid rgba(25,25,22,.1);
  border-radius: 13px;
  background: #f7f6f2;
  padding: 15px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #9c7652; background: white; box-shadow: 0 0 0 3px rgba(156,118,82,.1); }
.button-light { background: var(--ink); color: white; }
.form-note, .quote-result p { color: #746f67; }

footer { background: #191916; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 45%; }
  .hero-visual { margin-right: 18px; }
  .service-list { grid-template-columns: 1fr; }
  .service-card { min-height: 245px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project.project-tall { min-height: 760px; }
}

@media (max-width: 760px) {
  .site-header { padding-top: 11px; padding-bottom: 11px; }
  .main-nav { background: rgba(247,246,242,.98); }
  .hero { padding-bottom: 126px; }
  .hero-copy { min-height: 72svh; padding: 125px var(--pad) 54px; }
  .hero h1 { font-size: clamp(53px, 16vw, 76px); }
  .hero-visual { min-height: 66svh; margin: 0 14px; border-radius: 22px; }
  .trust-bar { bottom: 18px; width: auto; }
  .service-list { grid-template-columns: 1fr; }
  .service-card { min-height: 245px; padding: 24px; }
  .gallery { display: block; }
  .project, .project.project-wide, .project.project-tall { width: 100%; min-height: 62svh; margin-bottom: 14px; }
  .project, .project.project-wide, .project.project-tall { border-radius: 19px; }
  .contact-section { background: #e9e5dd; }
  .quote-panel { border-radius: 24px 24px 0 0; }
}

/* Dark architectural image direction */
:root {
  --ink: #f6f3ed;
  --paper: #111211;
  --warm: #d2a973;
  --stone: #9d968c;
  --line: rgba(255,255,255,.14);
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(12,13,12,.84), rgba(12,13,12,.84)),
    url("./assets/em-tile-modern-hero.png") center / cover fixed;
}

.site-header { color: white; }
.site-header.scrolled {
  color: white;
  background: rgba(12,13,12,.82);
  border-bottom: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
}
.nav-quote { background: var(--warm); color: #161511; border-color: var(--warm); }
.nav-quote:hover { background: #e0bd8e; }

.hero {
  min-height: 100svh;
  display: block;
  background: #111211;
  color: white;
}
.hero-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,7,.92) 0%, rgba(7,8,7,.72) 38%, rgba(7,8,7,.18) 75%, rgba(7,8,7,.15) 100%),
    linear-gradient(0deg, rgba(7,8,7,.68), transparent 55%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1040px;
  padding: 130px var(--pad) 155px;
}
.hero h1 { max-width: 930px; text-shadow: 0 5px 35px rgba(0,0,0,.28); }
.hero h1 em { color: #e6bd88; }
.hero-lede { color: rgba(255,255,255,.72); max-width: 670px; }
.button-dark { background: var(--warm); color: #171511; }
.button-dark:hover { background: #e0bd8e; }
.text-link { border-bottom-color: rgba(255,255,255,.42); }
.direct-call span { color: rgba(255,255,255,.48); }
.trust-bar {
  width: calc(100% - (var(--pad) * 2));
  max-width: 930px;
  border-top-color: rgba(255,255,255,.2);
}
.trust-bar strong { color: white; }
.trust-bar span { color: rgba(255,255,255,.48); }

.services-section {
  max-width: none;
  color: white;
  background: rgba(12,13,12,.88);
  backdrop-filter: blur(12px);
}
.section-heading > p,
.service-card p { color: rgba(255,255,255,.6); }
.service-card {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.13);
  box-shadow: none;
}
.service-card:hover {
  border-color: rgba(210,169,115,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.service-number { color: #d2a973; }
.service-icon { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.capabilities span { color: rgba(255,255,255,.7); background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.filter { color: rgba(255,255,255,.65); border-color: rgba(255,255,255,.14); }
.filter.active, .filter:hover { background: var(--warm); color: #171511; }
.project { background: #252623; box-shadow: 0 16px 50px rgba(0,0,0,.3); }
.quote-panel .button-light {
  background: #191916;
  color: #fff;
  border: 2px solid #191916;
  box-shadow: 0 10px 26px rgba(25,25,22,.18);
}
.quote-panel .button-light:hover,
.quote-panel .button-light:focus-visible {
  background: #9c7652;
  border-color: #9c7652;
  color: #fff;
}

.contact-section {
  color: white;
  background: rgba(10,11,10,.76);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.eyebrow.light,
.contact-copy > p:not(.eyebrow),
.contact-copy .service-areas { color: rgba(255,255,255,.58); }
.contact-copy h2 em { color: #e6bd88; }
.contact-links { background: rgba(255,255,255,.12); }
.contact-links a { color: white; border-bottom-color: rgba(255,255,255,.15); }
.contact-links small { color: rgba(255,255,255,.48); }
.quote-panel { color: #191916; background: rgba(247,245,240,.96); }
.quote-panel .eyebrow { color: #191916; }

@media (max-width: 760px) {
  .main-nav { background: rgba(16,17,16,.98); color: white; }
  .hero { padding-bottom: 120px; }
  .hero-background { object-position: 61% center; }
  .hero-copy { min-height: 100svh; padding: 120px var(--pad) 145px; }
  .hero h1 { font-size: clamp(52px, 16vw, 76px); }
  .trust-bar { width: auto; }
  .contact-section { background: rgba(10,11,10,.88); }
  .trust-bar { grid-template-columns: repeat(2, 1fr); padding-bottom: 4px; }
  .trust-bar div { padding-top: 12px; padding-bottom: 4px; }
}

/* Quote form — high-contrast controls and attachment picker */
.quote-panel {
  color: #121210;
  background: #f8f6f1;
  border-color: #d8d1c6;
}
.quote-panel .quote-head span,
.quote-panel .step-count,
.quote-panel .field > span,
.quote-panel .form-step legend,
.quote-panel .button-back { color: #121210; }
.quote-panel .form-step legend { font-size: 1.25rem; line-height: 1.35; }
.quote-panel .field > span { font-size: .875rem; font-weight: 700; }
.quote-panel .choice > span {
  color: #121210;
  background: #fff;
  border-color: #928b80;
}
.quote-panel .choice small { color: #4e4a43; font-size: .8125rem; }
.quote-panel .choice input:checked + span,
.quote-panel .choice input:checked + span small {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.quote-panel .field input,
.quote-panel .field select,
.quote-panel .field textarea {
  color: #111;
  -webkit-text-fill-color: #111;
  caret-color: #111;
  background: #fff;
  border: 2px solid #91897d;
  font-size: 1rem;
  opacity: 1;
}
.quote-panel .field input::placeholder,
.quote-panel .field textarea::placeholder {
  color: #625d55;
  -webkit-text-fill-color: #625d55;
  opacity: 1;
}
.quote-panel .field select option { color: #111; background: #fff; }
.quote-panel .field input:focus,
.quote-panel .field select:focus,
.quote-panel .field textarea:focus {
  border-color: #6f4d2f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(111,77,47,.16);
}
.quote-panel .button-light,
.quote-panel .button-light:visited {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #121210 !important;
  border-color: #121210 !important;
  opacity: 1 !important;
}
.quote-panel .button-light:hover,
.quote-panel .button-light:focus-visible {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #7b5432 !important;
  border-color: #7b5432 !important;
}
.quote-panel .form-note,
.quote-panel .attachment-help,
.quote-panel .result-file-note,
.quote-panel .quote-result p { color: #4d4942; }
.file-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  margin-top: 6px;
  padding: 15px;
  color: #121210;
  background: #fff;
  border: 2px dashed #81786c;
  border-radius: 13px;
  cursor: pointer;
}
.file-upload:hover,
.file-upload:focus-within { border-color: #6f4d2f; box-shadow: 0 0 0 4px rgba(111,77,47,.12); }
.file-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.file-upload-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #121210;
  font-size: 24px;
  line-height: 1;
}
.file-upload b,
.file-upload small { display: block; }
.file-upload b { font-size: .9375rem; }
.file-upload small { margin-top: 4px; color: #58534c; font-size: .8125rem; line-height: 1.35; }
.file-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.file-list:empty { display: none; }
.file-list span {
  max-width: 100%;
  padding: 7px 10px;
  overflow: hidden;
  color: #24211e;
  background: #e6dfd4;
  border-radius: 999px;
  font-size: .8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-help { margin: 10px 0 0; font-size: .8125rem; line-height: 1.45; }
.result-file-note { padding: 12px 14px; border-left: 3px solid #7b5432; background: #ebe4da; }
.result-actions { flex-wrap: wrap; }

@media (max-width: 760px) {
  .quote-panel { background: #f8f6f1; }
  .file-upload { min-height: 72px; }
}

/* Compact project thumbnails; full-size photography opens in the lightbox. */
.gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.project,
.project.project-wide,
.project.project-tall {
  grid-column: auto;
  grid-row: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
}
.project-label { left: 16px; right: 14px; bottom: 15px; }
.project-label b { font-size: 14px; }
.project-label small { font-size: 9px; }

/* Bright, consistent EM Tile mark on newly added portfolio photography. */
.project-watermarked::before,
.lightbox-media.has-watermark::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 14px;
  top: 14px;
  width: 58px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 12px;
  background: rgba(255,255,255,.94) url("./assets/em-tile-logo.webp?v=2") center / 78% auto no-repeat;
  box-shadow: 0 8px 24px rgba(0,0,0,.2), 0 0 18px rgba(255,255,255,.35);
  pointer-events: none;
}
.project-watermarked .project-label { z-index: 5; }
.lightbox-media.has-watermark::after {
  top: auto;
  right: 22px;
  bottom: 22px;
  width: 86px;
  border-radius: 16px;
}

@media (max-width: 1050px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project,
  .project.project-wide,
  .project.project-tall { min-height: 0; }
}

@media (max-width: 760px) {
  .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .project,
  .project.project-wide,
  .project.project-tall {
    width: auto;
    min-height: 0;
    margin-bottom: 0;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
  }
  .project-label { left: 11px; right: 9px; bottom: 10px; }
  .project-label b { font-size: 12px; line-height: 1.15; }
  .project-label small { display: none; }
  .project-watermarked::before { top: 9px; right: 9px; width: 46px; border-radius: 10px; }
  .lightbox-media.has-watermark::after { right: 14px; bottom: 14px; width: 68px; border-radius: 13px; }
  .lightbox-nav { width: 42px; height: 50px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* Craftsmanship details live outside the project gallery. */
.details-section {
  padding: clamp(90px, 10vw, 150px) var(--pad);
  color: #171815;
  background: #eeeae2;
}
.details-heading {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px 60px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 48px;
}
.details-heading .eyebrow { grid-column: 1 / -1; color: #706a61; }
.details-heading h2 { margin: 0; color: #171815; font-size: clamp(44px, 6vw, 82px); line-height: .96; }
.details-heading h2 em { color: #8b6848; font-weight: 400; }
.details-heading > p:last-child { max-width: 570px; margin: 0 0 6px; color: #625e56; font-size: 17px; line-height: 1.7; }
.details-showcase {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.detail-card {
  grid-column: span 2;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23,24,21,.1);
  border-radius: 22px;
  background: #faf8f4;
  color: #171815;
  cursor: zoom-in;
  text-align: left;
  box-shadow: 0 16px 42px rgba(45,39,31,.08);
  transition: transform .35s ease, box-shadow .35s ease;
}
.detail-card-large { grid-column: span 3; }
.detail-card:hover { transform: translateY(-5px); box-shadow: 0 24px 55px rgba(45,39,31,.14); }
.detail-image { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #c9c3ba; }
.detail-card-large .detail-image { aspect-ratio: 16 / 10; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.detail-card:hover .detail-image img { transform: scale(1.035); }
.detail-copy { display: grid; gap: 9px; padding: 22px 22px 25px; }
.detail-copy small { color: #8b6848; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.detail-copy strong { font-size: 22px; font-weight: 600; line-height: 1.15; }
.detail-copy > span { color: #68635b; font-size: 15px; line-height: 1.55; }
.detail-copy .photo-credit { color: #918a80; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }

@media (max-width: 900px) {
  .details-heading { grid-template-columns: 1fr; }
  .details-heading .eyebrow { grid-column: auto; }
  .detail-card,
  .detail-card-large { grid-column: span 3; }
}

@media (max-width: 600px) {
  .details-section { padding-left: 16px; padding-right: 16px; }
  .details-showcase { grid-template-columns: 1fr; gap: 14px; }
  .detail-card,
  .detail-card-large { grid-column: auto; }
  .detail-image,
  .detail-card-large .detail-image { aspect-ratio: 4 / 3; }
  .detail-copy { padding: 18px 18px 21px; }
  .detail-copy strong { font-size: 20px; }
}

/* 3D editorial experience */
.hero {
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(440px, .92fr) minmax(520px, 1.08fr);
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 40%, rgba(210,169,115,.13), transparent 28%),
    radial-gradient(circle at 18% 5%, rgba(255,255,255,.06), transparent 25%),
    #0d0f0e;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .2;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  pointer-events: none;
}
.hero::after {
  z-index: 0;
  background: linear-gradient(90deg, rgba(8,9,8,.12), transparent 52%, rgba(8,9,8,.14));
}
.hero-copy {
  z-index: 4;
  min-height: 100svh;
  max-width: 900px;
  padding: 135px 30px 170px var(--pad);
}
.hero-kicker {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0 0 20px;
  color: rgba(255,255,255,.48);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-kicker span { color: var(--warm); }
.hero h1 { font-size: clamp(58px, 6.2vw, 108px); }
.hero h1 em { display: inline-block; text-shadow: 0 0 42px rgba(210,169,115,.16); }

.hero-stage {
  --stage-rx: 0deg;
  --stage-ry: 0deg;
  --main-x: 0px;
  --main-y: 0px;
  --detail-x: 0px;
  --detail-y: 0px;
  --front-x: 0px;
  --front-y: 0px;
  position: relative;
  z-index: 3;
  min-height: 100svh;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.stage-grid {
  position: absolute;
  inset: 11% 5% 10% 3%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 36px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    rgba(255,255,255,.018);
  background-size: 48px 48px;
  transform: rotateX(2deg) rotateY(-3deg);
}
.stage-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 25px;
  background: #252723;
  box-shadow: 0 38px 90px rgba(0,0,0,.38);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s ease-out, border-color .3s ease, box-shadow .3s ease;
}
.stage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(3,4,3,.76));
  pointer-events: none;
}
.stage-card img { width: 100%; height: 100%; object-fit: cover; }
.stage-card figcaption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: end;
  color: #fff;
}
.stage-card figcaption span { grid-row: 1 / 3; color: #e6bd88; font-size: 11px; letter-spacing: .12em; }
.stage-card figcaption strong { font-weight: 600; }
.stage-card figcaption small { color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.stage-brand-mark {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  width: 48px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 11px;
  background: rgba(255,255,255,.94) url("./assets/em-tile-logo.webp?v=2") center / 76% auto no-repeat;
  box-shadow: 0 7px 22px rgba(0,0,0,.23), 0 0 16px rgba(255,255,255,.28);
}
.stage-main {
  inset: 14% 7% 14% 4%;
  transform: translate3d(var(--main-x), var(--main-y), 0) rotateX(var(--stage-rx)) rotateY(var(--stage-ry)) rotateZ(-1.3deg);
}
.stage-main img { object-position: 55% center; }
.stage-detail {
  z-index: 3;
  top: 12%;
  right: 1.5%;
  width: clamp(138px, 15vw, 245px);
  aspect-ratio: 4 / 5;
  transform: translate3d(var(--detail-x), var(--detail-y), 85px) rotateX(var(--stage-rx)) rotateY(var(--stage-ry)) rotateZ(4deg);
}
.stage-fireplace {
  z-index: 4;
  right: 8%;
  bottom: 8.5%;
  width: clamp(150px, 17vw, 275px);
  aspect-ratio: 5 / 6;
  transform: translate3d(var(--front-x), var(--front-y), 135px) rotateX(var(--stage-rx)) rotateY(var(--stage-ry)) rotateZ(-4deg);
}
.stage-card:hover { border-color: rgba(230,189,136,.72); box-shadow: 0 44px 100px rgba(0,0,0,.5); }
.stage-seal {
  position: absolute;
  z-index: 6;
  top: 43%;
  left: -14px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 114px;
  height: 114px;
  padding: 16px;
  color: #181713;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(220,181,130,.94);
  box-shadow: 0 22px 48px rgba(0,0,0,.26);
  transform: translate3d(var(--front-x), var(--front-y), 180px) rotate(-8deg);
  backdrop-filter: blur(8px);
}
.stage-seal span { font-family: "Manrope", sans-serif; font-size: 30px; font-weight: 600; letter-spacing: -.08em; }
.stage-seal small { padding-left: 8px; border-left: 1px solid rgba(24,23,19,.35); font-size: 9px; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; }
.stage-hint {
  position: absolute;
  right: 7%;
  bottom: 4%;
  margin: 0;
  color: rgba(255,255,255,.42);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.stage-hint span { color: #e6bd88; font-size: 14px; }

.craft-rail {
  overflow: hidden;
  color: #161713;
  border-top: 1px solid #dab98d;
  border-bottom: 1px solid #dab98d;
  background: #d2a973;
}
.craft-rail > div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 24px;
  padding: 15px 0;
  animation: craftRail 26s linear infinite;
}
.craft-rail span { font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.craft-rail i { font-size: 9px; font-style: normal; }

.service-card,
.project,
.detail-card { transform-style: preserve-3d; }
.service-card { transition: transform .24s ease-out, border-color .3s ease, box-shadow .3s ease; }
.service-card.tilt-active { transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-5px); }
.project:hover { transform: perspective(900px) translateZ(16px) translateY(-5px); box-shadow: 0 28px 65px rgba(0,0,0,.45); }

@keyframes craftRail { to { transform: translateX(-50%); } }

@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(390px, .9fr) minmax(410px, 1.1fr); }
  .hero-copy { padding-right: 18px; }
  .stage-main { inset: 17% 5% 16% 2%; }
  .stage-seal { left: -35px; }
}

@media (max-width: 820px) {
  .hero { display: block; padding-bottom: 124px; }
  .hero-copy { min-height: 82svh; padding: 122px var(--pad) 70px; }
  .hero-stage { min-height: 70svh; margin: 0 10px; }
  .stage-grid { inset: 3% 1% 6%; }
  .stage-main { inset: 5% 3% 8%; }
  .stage-detail { top: 0; right: 0; width: 31vw; max-width: 190px; }
  .stage-fireplace { right: 5%; bottom: 0; width: 34vw; max-width: 205px; }
  .stage-seal { top: 48%; left: 0; width: 92px; height: 92px; }
  .stage-seal span { font-size: 23px; }
  .stage-hint { display: none; }
  .trust-bar { bottom: 18px; }
}

@media (max-width: 520px) {
  .hero-copy { min-height: 78svh; }
  .hero h1 { font-size: clamp(49px, 15vw, 69px); }
  .hero-lede { line-height: 1.55; }
  .hero-stage { min-height: 60svh; }
  .stage-main { inset: 6% 1% 7%; }
  .stage-card { border-radius: 18px; }
  .stage-detail { width: 34vw; }
  .stage-fireplace { width: 37vw; }
  .stage-card figcaption { right: 12px; bottom: 11px; left: 12px; }
  .stage-card figcaption small { display: none; }
  .stage-seal { width: 78px; height: 78px; padding: 12px; }
  .stage-seal span { font-size: 20px; }
  .stage-seal small { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .craft-rail > div { animation: none; }
  .stage-card,
  .stage-seal { transform: none; }
  .service-card.tilt-active { transform: none; }
}

/* Portfolio folders */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: -12px 0 42px;
}
.project-folder {
  position: relative;
  min-width: 0;
  overflow: visible;
  padding: 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
  cursor: pointer;
  text-align: left;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.project-folder::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 18px;
  width: 42%;
  height: 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #171917;
  transition: border-color .25s ease, background .25s ease;
}
.project-folder:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: rgba(210,169,115,.62);
  background: rgba(255,255,255,.075);
  box-shadow: 0 24px 52px rgba(0,0,0,.26);
}
.project-folder:hover::before { border-color: rgba(210,169,115,.62); }
.project-folder.active {
  border-color: #d2a973;
  background: rgba(210,169,115,.12);
  box-shadow: 0 0 0 1px rgba(210,169,115,.18), 0 24px 58px rgba(0,0,0,.28);
}
.project-folder.active::before { border-color: #d2a973; background: #29241d; }
.project-folder:focus-visible { outline: 3px solid rgba(230,189,136,.75); outline-offset: 4px; }
.folder-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  background: #292b28;
}
.folder-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(5,6,5,.34));
}
.folder-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.project-folder:hover .folder-cover img,
.project-folder.active .folder-cover img { transform: scale(1.045); }
.project-folder:not(.active) .folder-cover img { filter: saturate(.78); }
.folder-info {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding: 15px 7px 6px;
}
.folder-info > span { display: grid; gap: 3px; min-width: 0; }
.folder-info b { font-size: 16px; font-weight: 600; line-height: 1.2; }
.folder-info small { overflow: hidden; color: rgba(255,255,255,.46); font-size: 10px; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.folder-info > strong { color: #d2a973; font-family: "Manrope", sans-serif; font-size: 23px; font-weight: 500; line-height: 1; }
.gallery-status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 0 2px 16px;
  border-bottom: 1px solid rgba(255,255,255,.13);
  scroll-margin-top: 110px;
}
.gallery[hidden], .gallery-status[hidden] { display: none; }
.gallery-status-actions { display: flex; align-items: center; gap: 18px; }
.gallery-status-actions button {
  padding: 9px 13px;
  color: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.gallery-status-actions button:hover { color: #171815; border-color: #d2a973; background: #d2a973; }
.gallery-status > [data-current-folder] { font-family: "Manrope", sans-serif; font-size: clamp(25px, 3vw, 40px); font-weight: 500; letter-spacing: -.04em; }
.gallery-status small { color: rgba(255,255,255,.46); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.gallery-status small b { color: #d2a973; font-size: 14px; }
.gallery-status + .gallery { margin-top: 18px; }

@media (max-width: 1050px) {
  .folder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
  .project-folder { padding: 7px; border-radius: 15px; }
  .project-folder::before { top: -6px; left: 14px; height: 12px; }
  .folder-cover { border-radius: 10px; }
  .folder-info { padding: 12px 4px 5px; }
  .folder-info b { font-size: 14px; }
  .folder-info small { display: none; }
  .folder-info > strong { font-size: 19px; }
  .gallery-status { align-items: flex-start; }
  .gallery-status-actions { align-items: flex-end; flex-direction: column; gap: 8px; }
}

/* Installation process */
.process-section {
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(520px, 1.18fr);
  gap: clamp(54px, 8vw, 130px);
  padding: clamp(90px, 11vw, 165px) var(--pad);
  color: #171815;
  background:
    radial-gradient(circle at 12% 16%, rgba(255,255,255,.9), transparent 28%),
    linear-gradient(135deg, #eeeae2, #dfd8cc);
}
.process-intro {
  position: sticky;
  top: 120px;
  align-self: start;
  max-width: 620px;
}
.process-intro .eyebrow { color: #716a60; }
.process-intro h2 {
  margin: 0;
  font-size: clamp(47px, 5.6vw, 84px);
  line-height: .96;
}
.process-intro h2 em { color: #8b6848; font-weight: 400; }
.process-intro > p:not(.eyebrow) {
  max-width: 570px;
  margin: 30px 0;
  color: #625e56;
  font-size: 17px;
  line-height: 1.72;
}
.process-quote-link {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding: 14px 0 9px;
  border-bottom: 1px solid rgba(23,24,21,.34);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.process-quote-link span { color: #8b6848; font-size: 18px; transition: transform .2s ease; }
.process-quote-link:hover span { transform: translate(3px, -3px); }
.process-list {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}
.process-list::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 26px;
  width: 1px;
  background: rgba(23,24,21,.18);
}
.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid rgba(23,24,21,.14);
}
.process-step:first-child { padding-top: 0; }
.process-step:last-child { border-bottom: 0; padding-bottom: 0; }
.process-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #171815;
  border: 1px solid rgba(23,24,21,.22);
  border-radius: 50%;
  background: #e8e2d8;
  font-size: 12px;
  font-weight: 700;
  transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}
.process-step:hover .process-number {
  color: #171511;
  border-color: #b58a5d;
  background: #d2a973;
  transform: scale(1.08);
}
.process-step h3 {
  margin: 2px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -.035em;
}
.process-step p {
  max-width: 680px;
  margin: 0;
  color: #655f57;
  font-size: 16px;
  line-height: 1.67;
}
.process-step > small {
  padding-top: 7px;
  color: #8b6848;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .process-section { grid-template-columns: 1fr; }
  .process-intro { position: static; }
}

@media (max-width: 650px) {
  .process-section { gap: 48px; padding-left: 20px; padding-right: 20px; }
  .process-step { grid-template-columns: 46px 1fr; gap: 16px; padding: 25px 0; }
  .process-list::before { left: 22px; }
  .process-number { width: 46px; height: 46px; }
  .process-step > small { grid-column: 2; padding-top: 0; white-space: normal; }
  .process-step h3 { font-size: 21px; }
  .process-step p { font-size: 15px; }
}

/* Local SEO content, written for customers first and search engines second. */
.local-section {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(520px, 1.1fr);
  gap: clamp(48px, 8vw, 120px);
  padding: clamp(85px, 10vw, 145px) var(--pad);
  color: #f7f4ed;
  background:
    radial-gradient(circle at 14% 14%, rgba(210,169,115,.14), transparent 28%),
    #111311;
}
.local-heading .eyebrow { color: rgba(255,255,255,.56); }
.local-heading h2 {
  margin: 0;
  font-size: clamp(46px, 5.6vw, 82px);
  line-height: .98;
}
.local-heading h2 em { color: #d2a973; font-weight: 400; }
.local-copy { max-width: 760px; }
.local-copy > p {
  margin: 0 0 20px;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.75;
}
.local-areas { display: flex; flex-wrap: wrap; gap: 9px; margin: 32px 0 26px; }
.local-areas span {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}
.local-section .process-quote-link { color: #fff; border-color: rgba(255,255,255,.28); }

@media (max-width: 1000px) {
  .local-section { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .local-section { gap: 34px; padding-left: 20px; padding-right: 20px; }
  .local-copy > p { font-size: 16px; }
}
