:root {
  --ink: #121212;
  --ink-soft: #4b4f58;
  --navy: #1f2533;
  --navy-2: #2a3245;
  --paper: #fbfafa;
  --paper-2: #f3f3f3;
  --orange: #fb9728;
  --orange-dark: #e07f12;
  --orange-text: #b8620a;
  --line: #e2e2e4;
  --white: #ffffff;
  --radius: 6px;
  --max: 1180px;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-text); font-weight: 800; margin-bottom: .8em; display: block;
}
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  background: var(--orange); color: var(--navy); text-decoration: none;
  font-weight: 800; border: 2px solid var(--orange); transition: background .2s, color .2s;
  cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.topbar { background: var(--ink); color: #d6d8de; text-align: center; font-size: .85rem; padding: 7px 16px; }
.topbar a { color: var(--orange); text-decoration: none; font-weight: 700; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--white);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: block; }
.logo img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--orange); }
.nav-links .btn { padding: 10px 18px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--white); }

/* Hero */
.hero {
  position: relative; min-height: min(82vh, 780px); display: flex; align-items: flex-end;
  color: var(--white); background: #2a2420 center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,24,34,.78) 0%, rgba(20,24,34,.45) 50%, rgba(20,24,34,.05) 100%),
    linear-gradient(180deg, rgba(20,24,34,0) 50%, rgba(20,24,34,.5) 100%);
}
.hero .wrap { position: relative; padding-bottom: 80px; padding-top: 120px; }
.hero h1 { max-width: 760px; }
.hero p { font-size: 1.2rem; max-width: 560px; opacity: .92; }
.hero .eyebrow { color: var(--orange); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.rating { margin-top: 26px; font-size: .95rem; opacity: .9; }
.stars { color: var(--orange); letter-spacing: 2px; margin-right: 6px; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.alt { background: var(--paper-2); }
.dark { background: var(--navy); color: var(--paper); }
.dark .eyebrow { color: var(--orange); }
.dark .section-head p { color: #c3c7d1; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.service img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.service div { padding: 22px 24px 26px; }
.service p { color: var(--ink-soft); margin: 0; }

/* Featured grid */
.featured { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; grid-auto-flow: dense; }
.featured a { overflow: hidden; border-radius: var(--radius); background: var(--line); }
.featured img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.featured a:hover img { transform: scale(1.04); }
.featured .tall { grid-row: span 2; }
.featured .wide { grid-column: span 2; }
.center { text-align: center; margin-top: 40px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { border-top: 2px solid var(--orange); padding-top: 20px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 2rem; color: var(--orange); display: block; margin-bottom: 8px;
}
.step p { color: #c3c7d1; margin: 0; }

/* About */
.about { max-width: 760px; }
.about ul { padding-left: 1.2em; color: var(--ink-soft); }
.about li { margin-bottom: .4em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-info p { color: var(--ink-soft); }
.contact-info dl { margin: 28px 0 0; }
.contact-info dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); font-weight: 800; }
.contact-info dd { margin: 2px 0 18px; font-size: 1.1rem; }
.contact-info dd a { text-decoration: none; }
form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--paper); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.hidden { display: none; }

/* Footer */
.site-footer { background: var(--navy); color: #c3c7d1; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 20px; font-size: .85rem; }
.site-footer a { color: var(--orange); text-decoration: none; }

/* Gallery page */
.page-head { padding: 72px 0 32px; }
.page-head p { color: var(--ink-soft); max-width: 620px; font-size: 1.08rem; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filters a {
  border: 1px solid var(--line); background: var(--white); padding: 8px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.filters a:hover { border-color: var(--orange); }
.filters a.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery { columns: 4 260px; column-gap: 12px; padding-bottom: 80px; }
.gallery a { display: block; margin-bottom: 12px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: auto; transition: opacity .3s, transform .5s; }
.gallery a:hover img { transform: scale(1.03); }
.load-more { text-align: center; padding-bottom: 80px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(18,22,32,.96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #c3c7d1; font-size: .9rem; }

/* Responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: 1fr 1fr; }
  .featured { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--navy); padding: 20px; gap: 18px;
  }
  .nav-links.open { display: flex; }
  .services, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero::before { background: linear-gradient(180deg, rgba(20,24,34,.55) 0%, rgba(20,24,34,.82) 100%); }
  .topbar-text { display: none; }
  .wrap { padding: 0 16px; }
  form { padding: 22px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
}

/* Pricing page: frame the calculator and match it to the brand */
.pricing-head { padding-bottom: 8px; }
.pricing-wrap { max-width: 800px; padding-bottom: 80px; }
.pricing-wrap #bir-calc {
  --bg-accent: #fff1e0; --text-accent: var(--navy); --border-accent: var(--orange);
  --surface-1: #f3f3f5; --surface-2: #ffffff; --text-primary: var(--ink); --text-secondary: var(--ink-soft);
  --border: var(--line); --text-success: #2e6a57;
  max-width: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 24px 28px 28px; font-family: var(--sans);
}
.pricing-wrap #bir-calc h3 { font-family: var(--serif); }
.pricing-wrap #bir-calc .lb { font-weight: 600; }
.pricing-wrap #bir-calc .m { background: var(--paper-2); }
.pricing-wrap #bir-calc .m.w { background: var(--navy); color: var(--white); }
.pricing-wrap #bir-calc .m.w small { color: #c3c7d1; }
.pricing-wrap #bir-calc .m.w b { font-family: var(--serif); font-size: 30px; color: var(--orange); }
.pricing-wrap #bir-calc .cta { background: var(--orange); color: var(--navy); font-weight: 800; }
.pricing-wrap #bir-calc .cta:hover { background: var(--orange-dark); }
.price-cta { text-align: center; }
.price-cta p { color: #c3c7d1; max-width: 560px; margin: 0 auto 24px; }
@media (max-width: 720px) {
  .pricing-wrap #bir-calc { padding: 16px; border-radius: 8px; }
}

/* Service cards link to that service's photos */
a.service { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.service:hover { border-color: var(--orange); box-shadow: 0 10px 28px rgba(31, 37, 51, .12); transform: translateY(-3px); }
a.service img { transition: transform .5s; }
a.service:hover img { transform: scale(1.04); }
.service { overflow: hidden; }
.service .see-more { display: inline-block; margin-top: 12px; font-weight: 800; font-size: .92rem; color: var(--orange-text); }
a.service:hover .see-more { text-decoration: underline; }

/* Our work: featured projects with captions */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--line); color: var(--white); text-decoration: none; }
.project.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover img { transform: scale(1.04); }
.project-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  background: linear-gradient(180deg, rgba(20,24,34,0) 0%, rgba(20,24,34,.82) 100%);
}
.project-cap span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--orange); margin-bottom: 2px; }
.project-cap h3 { margin: 0; font-size: 1.15rem; color: var(--white); }
.project.big .project-cap { padding: 60px 26px 22px; }
.project.big .project-cap h3 { font-size: 1.6rem; }
@media (max-width: 900px) {
  .projects { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .projects { grid-template-columns: 1fr; }
  .project.big { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .project.big .project-cap { padding: 40px 18px 16px; }
  .project.big .project-cap h3 { font-size: 1.15rem; }
}

/* Pricing: inset vs frameless diagrams */
.pricing-wrap #bir-calc .style-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.pricing-wrap #bir-calc .sc {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 14px 14px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: 10px;
}
.pricing-wrap #bir-calc .sc:hover { border-color: var(--orange); }
.pricing-wrap #bir-calc .sc.on { border-color: var(--orange); background: #fff8ef; box-shadow: inset 0 0 0 1px var(--orange); }
.pricing-wrap #bir-calc .sc svg { width: 100%; max-width: 190px; height: auto; display: block; margin-bottom: 4px; }
.pricing-wrap #bir-calc .sc b { font-family: var(--serif); font-size: 17px; }
.pricing-wrap #bir-calc .sc span { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.pricing-wrap #bir-calc .sc-key { display: flex; align-items: center; gap: 6px; }
.pricing-wrap #bir-calc .sc-swatch { width: 14px; height: 6px; background: var(--orange); border: 1px solid var(--navy); display: inline-block; }
@media (max-width: 480px) {
  .pricing-wrap #bir-calc .sc { padding: 10px 8px 12px; }
  .pricing-wrap #bir-calc .sc span { font-size: 12px; }
}

/* Hero: short version of the text on phones so the photo stays visible */
.lede-short, .rating-short { display: none; }
@media (max-width: 720px) {
  .hero { min-height: 82vh; }
  .hero::before { background: linear-gradient(180deg, rgba(20,24,34,0) 22%, rgba(20,24,34,.62) 48%, rgba(20,24,34,.9) 100%); }
  .hero h1, .hero .hero-lede { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
  .hero .wrap { padding-top: 0; padding-bottom: 36px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 2.2rem; margin-bottom: .3em; }
  .hero .hero-lede { font-size: 1.05rem; margin-bottom: 0; }
  .lede-long, .rating-long { display: none; }
  .lede-short, .rating-short { display: inline; }
  .hero-actions { margin-top: 18px; gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn { padding: 12px 16px; font-size: .95rem; flex: 1; text-align: center; }
  .rating { margin-top: 14px; font-size: .88rem; }
}

/* Project case-study pages */
.case-head { padding-bottom: 28px; }
.case-head h1 { margin-bottom: .25em; }
.back-link { display: inline-block; margin-bottom: 18px; font-weight: 700; font-size: .92rem; color: var(--ink-soft); text-decoration: none; }
.back-link:hover { color: var(--orange-text); }
.case-hero { display: block; border-radius: 10px; overflow: hidden; background: var(--line); }
.case-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.case-body { padding: 72px 0 56px; }
.case-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.case-story p { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.case-facts { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.case-facts h3 { font-size: 1.1rem; }
.case-facts ul { list-style: none; padding: 0; margin: 0 0 24px; }
.case-facts li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; }
.case-facts li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.case-photos { columns: 2 320px; column-gap: 16px; padding-bottom: 88px; }
.case-photos a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: var(--line); }
.case-photos img { width: 100%; height: auto; transition: transform .6s; }
.case-photos a:hover img { transform: scale(1.03); }
.case-next { text-align: center; }
.case-next-link { color: var(--white); text-decoration: none; display: inline-block; }
.case-next-link h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 6px 0 20px; transition: color .2s; }
.case-next-link:hover h2 { color: var(--orange); }
@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .case-hero img { aspect-ratio: 4 / 3; }
  .case-body { padding: 48px 0 32px; }
  .case-photos { columns: 1; }
}
.project-cap em { display: block; font-style: normal; font-weight: 700; font-size: .85rem; color: #e9eaee; margin-top: 4px; opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.project:hover .project-cap em, .project:focus-visible .project-cap em { opacity: 1; transform: none; }
@media (hover: none) { .project-cap em { opacity: 1; transform: none; } }

/* Homepage: craftsmanship close-ups */
.detail-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.detail { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--line); color: var(--white); text-decoration: none; }
.detail img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.detail:hover img { transform: scale(1.06); }
.detail span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .85rem; font-weight: 700;
  background: linear-gradient(180deg, rgba(20,24,34,0), rgba(20,24,34,.78));
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .detail-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* Scroll motion (added by script.js) */
.reveal-pending, a.reveal-pending { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-pending.in, a.reveal-pending.in { opacity: 1; transform: none; }
/* Hero text eases in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: heroIn .9s ease both; }
  .hero .wrap > *:nth-child(2) { animation-delay: .08s; }
  .hero .wrap > *:nth-child(3) { animation-delay: .16s; }
  .hero .wrap > *:nth-child(4) { animation-delay: .24s; }
  .hero .wrap > *:nth-child(5) { animation-delay: .32s; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
