/*
Theme Name: IFBI Craft
Theme URI: https://ifbiconstruction.com
Author: IFBI Construction
Description: A refined, responsive theme for an independent carpentry and construction business.
Version: 1.2.1
Text Domain: ifbi-craft
*/

:root {
  --ink: #17201b;
  --ink-soft: #3e4942;
  --forest: #193a2b;
  --forest-light: #24533e;
  --oak: #c89250;
  --oak-light: #e3bd83;
  --cream: #f3f0e8;
  --cream-dark: #e9e3d6;
  --paper: #fffdf8;
  --white: #fff;
  --line: rgba(23, 32, 27, 0.14);
  --shadow: 0 24px 70px rgba(24, 35, 28, 0.12);
  --radius: 3px;
  --container: 1200px;
  --header-height: 88px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

p { margin: 0 0 1.35rem; }

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(3.25rem, 7vw, 7rem); }
h2 { font-size: clamp(2.4rem, 4.5vw, 4.7rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }

button,
input,
select,
textarea { font: inherit; }

.container { width: min(calc(100% - 44px), var(--container)); margin-inline: auto; }
.container-narrow { width: min(calc(100% - 44px), 850px); margin-inline: auto; }
.section { padding: clamp(5rem, 9vw, 9rem) 0; }
.section-compact { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.section-cream { background: var(--cream); }
.section-forest { color: var(--white); background: var(--forest); }
.text-link { font-size: 0.79rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.28rem; }
.lead { max-width: 700px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.65; }
.eyebrow { display: inline-flex; max-width: 100%; align-items: center; gap: 0.65rem; margin-bottom: 1.25rem; color: var(--forest); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.eyebrow::before { width: 30px; height: 1px; content: ""; background: var(--oak); }
.eyebrow-light { color: var(--oak-light); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 0.65rem 1rem; color: var(--white); background: var(--forest); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 54px;
  padding: 0.85rem 1.55rem;
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--forest);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button:hover { background: var(--forest-light); border-color: var(--forest-light); transform: translateY(-2px); }
.button-outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.55); }
.button-outline:hover { color: var(--ink); background: var(--white); border-color: var(--white); }
.button-light { color: var(--forest); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); background: transparent; }
.button-small { min-height: 44px; padding: .65rem 1.1rem; font-size: .68rem; }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled,
body:not(.home):not(.has-photo-hero) .site-header { color: var(--ink); background: rgba(255,253,248,.96); box-shadow: 0 8px 34px rgba(25,42,32,.08); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: .82rem; color: inherit; text-decoration: none; }
.custom-logo-link { line-height: 0; }
.custom-logo { width: auto; max-width: 240px; max-height: 64px; }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; width: 49px; height: 49px; overflow: hidden; color: var(--white); background: var(--forest); border: 1px solid rgba(255,255,255,.6); }
.brand-mark span { display: grid; place-items: center; font-family: Georgia, serif; font-size: .75rem; line-height: 1; }
.brand-mark span:first-child { border-right: 1px solid rgba(255,255,255,.5); }
.brand-type { display: grid; line-height: 1; }
.brand-type strong { font-family: Georgia, serif; font-size: 1.08rem; font-weight: 400; letter-spacing: .04em; }
.brand-type small { margin-top: .45rem; font-size: .51rem; font-weight: 800; letter-spacing: .18em; }
.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav .menu { display: flex; align-items: center; gap: 1.45rem; padding: 0; margin: 0; list-style: none; }
.primary-nav .menu a { position: relative; padding: 1.9rem 0; font-size: .71rem; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.primary-nav .menu a::after { position: absolute; right: 0; bottom: 1.55rem; left: 0; height: 1px; content: ""; background: var(--oak); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.primary-nav .menu a:hover::after,
.primary-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.site-header:not(.is-scrolled) .nav-cta { color: var(--ink); background: var(--white); border-color: var(--white); }
body:not(.home):not(.has-photo-hero) .site-header .nav-cta,
.site-header.is-scrolled .nav-cta { color: var(--white); background: var(--forest); border-color: var(--forest); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 11px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] > span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: min(920px, 100svh); align-items: end; overflow: hidden; color: var(--white); background: var(--ink); }
.hero::before { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(10,24,17,.86) 0%, rgba(10,24,17,.62) 37%, rgba(10,24,17,.12) 72%), linear-gradient(0deg, rgba(8,16,12,.45), transparent 50%); }
.hero-image { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { position: relative; z-index: 2; min-width: 0; max-width: 820px; padding-top: calc(var(--header-height) + 5rem); padding-bottom: clamp(14.5rem, 25vh, 17rem); }
.hero h1 { max-width: 760px; font-size: clamp(3rem, 5.5vw, 5.8rem); }
.hero h1 em { color: var(--oak-light); font-style: italic; }
.hero-copy { max-width: 610px; margin: 1.5rem 0 2.3rem; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-proof { position: absolute; z-index: 3; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); width: min(50%, 720px); color: var(--ink); background: var(--paper); }
.proof-item { padding: 1.4rem 1.7rem; border-left: 1px solid var(--line); }
.proof-item strong { display: block; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 400; }
.proof-item span { color: var(--ink-soft); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.intro-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.intro-copy h2 { max-width: 720px; }
.intro-aside { padding-top: 3.8rem; }
.intro-aside p { color: var(--ink-soft); font-size: 1.12rem; }
.rule-link { display: inline-flex; margin-top: 1rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 320px; padding: 2.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); transition: background 200ms ease, transform 200ms ease; }
.service-card:hover { z-index: 2; background: var(--white); transform: translateY(-5px); box-shadow: var(--shadow); }
.service-number { display: block; margin-bottom: 3.6rem; color: var(--oak); font-family: Georgia, serif; font-style: italic; }
.service-card h3 { max-width: 240px; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.service-icon { position: absolute; top: 1.9rem; right: 1.9rem; width: 36px; height: 36px; opacity: .48; }

.split-feature { display: grid; grid-template-columns: 1.02fr .98fr; min-height: 650px; }
.split-image { min-height: 520px; background: #d8d0c2; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 7rem); color: var(--white); background: var(--forest); }
.split-content h2 { max-width: 600px; }
.split-content p { max-width: 590px; color: rgba(255,255,255,.74); }

.process-list { margin-top: 3.8rem; counter-reset: steps; }
.process-item { display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 2rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--line); counter-increment: steps; }
.process-item::before { content: "0" counter(steps); color: var(--oak); font-family: Georgia, serif; font-size: 1.25rem; font-style: italic; }
.process-item h3 { margin: 0; }
.process-item p { margin: 0; color: var(--ink-soft); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 0; }
.work-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 330px 330px; gap: 16px; }
.work-card { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.work-card:first-child { grid-row: 1 / 3; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.work-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(5,14,9,.72), transparent 62%); }
.work-card:hover img { transform: scale(1.035); }
.work-meta { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 2rem; }
.work-meta span { display: block; margin-bottom: .45rem; color: var(--oak-light); font-size: .66rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.work-meta h3 { margin: 0; }

.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: rgba(255,255,255,.18); }
.promise { padding: 2.5rem; background: var(--forest); }
.promise strong { display: block; margin-bottom: .75rem; color: var(--oak-light); font-family: Georgia, serif; font-size: 1.3rem; font-weight: 400; }
.promise p { margin: 0; color: rgba(255,255,255,.72); font-size: .94rem; }

.page-hero { padding: calc(var(--header-height) + clamp(5rem, 10vw, 9rem)) 0 clamp(4.5rem, 8vw, 7.5rem); background: var(--cream); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.75rem, 5vw, 4.9rem); }
.page-hero .lead { max-width: 740px; margin-top: 1.6rem; }
.page-hero-dark { color: var(--white); background: var(--forest); }
.page-hero-dark .lead { color: rgba(255,255,255,.72); }
.page-hero-photographic { position: relative; display: grid; min-height: min(760px, 82svh); align-items: end; overflow: hidden; padding: 0; color: var(--white); background: var(--ink); }
.page-hero-photographic::after { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(9,22,15,.9) 0%, rgba(9,22,15,.7) 40%, rgba(9,22,15,.12) 78%), linear-gradient(0deg, rgba(7,16,11,.52), transparent 55%); }
.page-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-photographic .page-hero-content { position: relative; z-index: 2; padding-top: calc(var(--header-height) + 6rem); padding-bottom: clamp(4.5rem, 8vw, 7rem); }
.page-hero-photographic h1 { max-width: 820px; text-wrap: balance; }
.page-hero-photographic .lead { color: rgba(255,255,255,.8); }
.photo-label { display: inline-block; margin-top: 1.2rem; color: rgba(255,255,255,.55); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.capabilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.capability { padding: clamp(2rem, 4vw, 3.5rem); background: var(--paper); }
.capability-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.capability-head span { color: var(--oak); font-family: Georgia, serif; font-style: italic; }
.capability h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.capability ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem 1.5rem; padding: 1.4rem 0 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.capability li { position: relative; padding-left: 1rem; color: var(--ink-soft); font-size: .91rem; }
.capability li::before { position: absolute; top: .65em; left: 0; width: 5px; height: 5px; content: ""; background: var(--oak); border-radius: 50%; }
.card-photo { position: relative; height: 165px; margin: 1.5rem 0 0; overflow: hidden; background: var(--cream-dark); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.card-photo:hover img { transform: scale(1.035); }
.card-photo figcaption,
.about-detail-photo figcaption,
.contact-detail-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 2rem .85rem .65rem; color: rgba(255,255,255,.88); background: linear-gradient(0deg, rgba(7,17,11,.78), transparent); font-size: .59rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.value { padding-top: 1.5rem; border-top: 2px solid var(--oak); }
.value p { color: var(--ink-soft); }

.timeline { position: relative; max-width: 950px; margin: 4rem auto 0; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 35px; width: 1px; content: ""; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 2rem; padding-bottom: 3.5rem; }
.timeline-number { z-index: 1; display: grid; place-items: center; width: 70px; height: 70px; color: var(--white); background: var(--forest); border: 8px solid var(--paper); border-radius: 50%; font-family: Georgia, serif; font-style: italic; }
.timeline-content { padding: .75rem 0 0; }
.timeline-content p { color: var(--ink-soft); }
.timeline-photo { position: relative; width: calc(100% - 102px); height: 225px; margin: 0 0 3.5rem 102px; overflow: hidden; background: var(--cream-dark); }
.timeline-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline-photo figcaption { position: absolute; right: 0; bottom: 0; padding: .65rem .9rem; color: var(--white); background: rgba(17,31,23,.86); font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery-item { position: relative; grid-column: span 6; min-height: 480px; overflow: hidden; background: var(--cream-dark); }
.gallery-item:nth-child(3n + 1) { grid-column: span 7; }
.gallery-item:nth-child(3n + 2) { grid-column: span 5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-caption { position: absolute; right: 0; bottom: 0; left: 0; padding: 3.5rem 2rem 1.7rem; color: var(--white); background: linear-gradient(0deg, rgba(7,17,11,.85), transparent); }
.gallery-caption span { color: var(--oak-light); font-size: .65rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gallery-caption h2 { margin: .25rem 0 0; font-size: 1.65rem; }
.gallery-note { padding: 1rem 1.2rem; margin-bottom: 2rem; color: #654f2d; background: #f7ecd8; border-left: 3px solid var(--oak); font-size: .88rem; }

.about-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 9vw, 9rem); align-items: center; }
.about-image { min-height: 640px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.signature { margin-top: 2rem; color: var(--forest); font-family: Georgia, serif; font-size: 1.5rem; font-style: italic; }
.about-detail-photo { position: relative; width: 72%; height: 175px; margin: 2rem 0 1rem auto; overflow: hidden; background: var(--cream-dark); }
.about-detail-photo img { width: 100%; height: 100%; object-fit: cover; }

.contact-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 8vw, 8rem); }
.contact-panel { position: sticky; top: calc(var(--header-height) + 2rem); align-self: start; }
.contact-list { padding: 0; margin: 2.5rem 0 0; list-style: none; }
.contact-list li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contact-list span { display: block; margin-bottom: .25rem; color: var(--ink-soft); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-list a { text-decoration: none; }
.contact-detail-photo { position: relative; height: 190px; margin: 1.75rem 0 2rem; overflow: hidden; background: var(--cream-dark); }
.contact-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.contact-form { padding: clamp(2rem, 5vw, 4rem); background: var(--cream); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.field input,
.field select,
.field textarea { width: 100%; min-height: 55px; padding: .85rem 1rem; color: var(--ink); background: var(--paper); border: 1px solid #cbc4b7; border-radius: 0; outline: 0; transition: border .18s ease, box-shadow .18s ease; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(25,58,43,.12); }
.checkbox { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: start; font-size: .85rem; }
.checkbox input { width: 18px; height: 18px; margin-top: .25rem; accent-color: var(--forest); }
.form-note { margin: 1.2rem 0 0; color: var(--ink-soft); font-size: .78rem; }
.form-status { padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 3px solid; }
.form-status.success { color: #17472e; background: #e1f1e7; border-color: #2b7a4d; }
.form-status.error { color: #6b2c25; background: #f5e5e2; border-color: #a94b40; }
.website-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.content-area { padding: calc(var(--header-height) + 4rem) 0 6rem; }
.entry-content > * { max-width: 780px; margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: var(--container); }
.entry-content a { color: var(--forest-light); }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }

.footer-cta { padding: 3.5rem 0; color: var(--white); background: #b3793d; }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-cta h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); }
.site-footer { padding: 5rem 0 1.5rem; color: rgba(255,255,255,.78); background: #111a15; }
.footer-grid { display: grid; grid-template-columns: 1.8fr .7fr 1fr; gap: clamp(3rem, 8vw, 8rem); padding-bottom: 4rem; }
.brand-inverse { color: var(--white); }
.footer-brand p { max-width: 520px; margin: 1.8rem 0 0; color: rgba(255,255,255,.58); }
.site-footer h3 { margin-bottom: 1.2rem; color: var(--white); font-family: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin: .65rem 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--oak-light); }
.footer-contact li { color: rgba(255,255,255,.62); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; }
.footer-bottom p { margin: 0; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

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

@media (max-width: 1060px) {
  :root { --header-height: 76px; }
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; top: var(--header-height); right: 0; bottom: 0; left: 0; display: block; padding: 2rem 22px 4rem; color: var(--ink); background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .2s ease, transform .2s ease, visibility .2s; overflow-y: auto; }
  .admin-bar .primary-nav { top: calc(var(--header-height) + 32px); }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav .menu { display: block; }
  .primary-nav .menu li { border-bottom: 1px solid var(--line); }
  .primary-nav .menu a { display: block; padding: 1rem 0; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; letter-spacing: -.02em; text-transform: none; }
  .primary-nav .menu a::after { display: none; }
  .primary-nav .nav-cta { width: 100%; margin-top: 1.5rem; color: var(--white) !important; background: var(--forest) !important; border-color: var(--forest) !important; }
  .hero-proof { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 280px; }
  .split-feature { grid-template-columns: 1fr; }
  .split-image { max-height: 640px; }
  .footer-grid { grid-template-columns: 1.4fr .6fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .primary-nav { top: calc(var(--header-height) + 46px); }
  .intro-grid,
  .about-split,
  .contact-layout { grid-template-columns: 1fr; }
  .intro-aside { padding-top: 0; }
  .services-grid,
  .capabilities,
  .values-grid,
  .promise-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-number { margin-bottom: 2.5rem; }
  .process-item { grid-template-columns: 55px 1fr; }
  .process-item p { grid-column: 2; }
  .timeline-photo { width: calc(100% - 70px); height: 210px; margin-left: 70px; }
  .work-grid { display: block; }
  .work-card { min-height: 440px; margin-bottom: 14px; }
  .gallery-item,
  .gallery-item:nth-child(n) { grid-column: 1 / -1; min-height: 460px; }
  .about-image { min-height: 520px; }
  .contact-panel { position: static; }
  .footer-cta-inner { display: block; }
  .footer-cta .button { margin-top: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid > :last-child { grid-column: auto; }
}

@media (max-width: 560px) {
  :root { --header-height: 70px; }
  body { font-size: 16px; }
  .container, .container-narrow { width: min(calc(100% - 32px), var(--container)); }
  .brand-type small { display: none; }
  .hero { min-height: 780px; }
  .hero::before { background: linear-gradient(90deg, rgba(10,24,17,.88), rgba(10,24,17,.36)), linear-gradient(0deg, rgba(8,16,12,.55), transparent 55%); }
  .hero-image { object-position: 62% center; }
  .hero-content { padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 3.25rem); overflow-wrap: anywhere; }
  .hero .eyebrow { display: flex; align-items: flex-start; font-size: .64rem; letter-spacing: .13em; line-height: 1.5; }
  .hero .eyebrow::before { flex: 0 0 30px; margin-top: .7em; }
  .page-hero h1 { font-size: clamp(2.55rem, 11vw, 3.2rem); }
  .page-hero-photographic { min-height: 700px; }
  .page-hero-photographic::after { background: linear-gradient(90deg, rgba(9,22,15,.9), rgba(9,22,15,.4)), linear-gradient(0deg, rgba(7,16,11,.65), transparent 60%); }
  .page-hero-photo { object-position: 63% center; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 1.5rem; }
  .capability ul { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .timeline::before { left: 25px; }
  .timeline-item { grid-template-columns: 50px 1fr; gap: 1rem; }
  .timeline-number { width: 50px; height: 50px; border-width: 5px; }
  .timeline-photo { width: calc(100% - 60px); height: 190px; margin-left: 60px; }
  .about-detail-photo { width: 84%; height: 155px; }
  .gallery-item, .gallery-item:nth-child(n) { min-height: 360px; }
  .footer-bottom { display: block; }
  .footer-bottom a { display: inline-block; margin-top: .65rem; }
}
