/* =========================================================
   LANTZ CONSTRUCTION — "Blueprint & Timber"
   Palette : blueprint navy + drafting vellum + warm oak
   Type    : Archivo (display) / IBM Plex Sans (body) / IBM Plex Mono (data)
   Signature: architectural dimension lines
   ========================================================= */

:root {
  --ink:      #12202e;   /* blueprint near-black navy */
  --ink-2:    #1b3145;   /* raised navy */
  --slate:    #38506a;   /* mid blue-slate */
  --steel:    #6f8299;   /* muted blueprint line */
  --vellum:   #e7e6df;   /* cool drafting paper (page bg) */
  --paper:    #f4f3ee;   /* card / raised paper */
  --oak:      #b4763c;   /* warm timber accent */
  --oak-deep: #96602e;
  --line:     #c7c8c1;   /* hairline on light */
  --line-ink: rgba(255,255,255,.14); /* hairline on dark */
  --text:     #1a2836;
  --text-mut: #55636f;
  --text-inv: #eef0ee;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--vellum);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1rem; font-family: var(--font-mono); font-size: .8rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; border-radius: 2px; }

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin: 0 0 1.1rem;
}
.hero .eyebrow, .area .eyebrow { color: var(--oak); }

.section { padding: clamp(4rem, 9vw, 8rem) var(--pad); max-width: var(--maxw); margin-inline: auto; }
.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
.section__note { font-size: .78rem; color: var(--text-mut); letter-spacing: .04em; margin-top: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .95rem 1.6rem; border: 1.5px solid var(--ink); cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--text-inv); }
.btn--solid:hover { background: var(--oak); border-color: var(--oak); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--text-inv); transform: translateY(-2px); }
.btn--full { width: 100%; }
.btn--sm { padding: .7rem 1.1rem; font-size: .74rem; }

/* ---------- SIGNATURE: dimension lines ---------- */
.dim { display: flex; align-items: center; gap: .55rem; color: var(--steel); }
.dim--h { width: 100%; margin-top: 2.75rem; }
.dim__line { flex: 1; height: 1px; background: currentColor; }
.dim__tick { width: 1px; height: 12px; background: currentColor; flex: none; }
.dim__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; white-space: nowrap; color: var(--steel); }
.dim--v { position: absolute; top: 1.25rem; bottom: 1.25rem; right: -1px; flex-direction: column; width: 12px; }
.dim--v .dim__line { width: 1px; height: auto; }
.dim--v .dim__tick { width: 12px; height: 1px; }
.dim--v .dim__label { writing-mode: vertical-rl; letter-spacing: .18em; color: rgba(238,240,238,.8); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem var(--pad);
  background: color-mix(in srgb, var(--vellum) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand__mark { color: var(--oak); flex: none; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: -.01em; text-transform: uppercase; }
.brand__sub { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mut); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-mut); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { color: var(--ink) !important; border-bottom: 1.5px solid var(--oak); padding-bottom: 2px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s var(--ease); }

.mobile-menu { display: none; flex-direction: column; padding: 1rem var(--pad) 1.5rem; background: var(--vellum); border-bottom: 1px solid var(--line); position: sticky; top: 62px; z-index: 99; }
.mobile-menu a { font-family: var(--font-mono); text-transform: uppercase; font-size: .9rem; letter-spacing: .05em; padding: .85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: var(--ink); color: var(--text-inv); overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-ink) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-ink) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 20%, #000 40%, transparent 100%);
  opacity: .5;
}
.hero__inner {
  position: relative; max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; padding: clamp(3.5rem, 8vw, 7rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.hero__inner > * { min-width: 0; }   /* let grid columns shrink to viewport */
.hero__title {
  font-size: clamp(2.1rem, 7vw, 5.4rem); font-weight: 900; letter-spacing: -.035em; color: #fff;
  margin: .3rem 0 1.5rem; overflow-wrap: break-word;
}
.hero__title-accent { color: var(--oak); }
.hero__lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(238,240,238,.78); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .dim__label { color: var(--steel); }

.hero__panel {
  position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--line-ink);
  background: var(--ink-2); overflow: hidden;
}
.hero__photo {
  position: absolute; inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80");
  background-size: cover; background-position: center;
  filter: saturate(.9) contrast(1.02);
}
.hero__panel-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(180,118,60,.16) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(180,118,60,.16) 1px, transparent 1px);
  background-size: 40px 40px; mix-blend-mode: screen;
}
.hero__panel-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-size: .64rem; letter-spacing: .16em; color: #fff;
  background: rgba(18,32,46,.72); padding: .3rem .55rem; border: 1px solid var(--line-ink);
}

/* =========================================================
   CREDENTIAL BAR
   ========================================================= */
.creds { background: var(--ink-2); color: var(--text-inv); border-top: 1px solid var(--line-ink); }
.creds__row {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(2rem, 4vw, 3rem) var(--pad);
}
.cred { display: flex; flex-direction: column; gap: .45rem; padding-right: 1.5rem; border-left: 1px solid var(--line-ink); padding-left: 1.4rem; }
.cred:first-child { border-left: none; padding-left: 0; }
.cred__num { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--oak); font-weight: 500; letter-spacing: -.01em; }
.cred__label { font-size: .82rem; color: rgba(238,240,238,.7); }

/* =========================================================
   ABOUT
   ========================================================= */
.about__body { max-width: 60ch; display: flex; flex-direction: column; gap: 1.4rem; }
.about__lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.25; letter-spacing: -.015em; color: var(--ink); }
.about__body p:not(.about__lead):not(.about__sign) { color: var(--text-mut); }
.about__sign { color: var(--oak-deep); font-size: .9rem; letter-spacing: .04em; margin-top: .6rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: .7rem; transition: background .25s var(--ease); position: relative; }
.svc:hover { background: #fff; }
.svc__idx { font-size: .8rem; color: var(--oak); letter-spacing: .1em; border: 1px solid var(--line); width: 2rem; height: 2rem; display: grid; place-items: center; }
.svc h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
.svc p { font-size: .95rem; color: var(--text-mut); }

/* =========================================================
   PROCESS
   ========================================================= */
.process { background: var(--ink); color: var(--text-inv); max-width: none; }
.process .section__head, .process .steps { max-width: var(--maxw); margin-inline: auto; }
.process .section__title { color: #fff; }
.process .eyebrow { color: var(--oak); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); }
.step { background: var(--ink); padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 1.4rem; }
.step__num { font-size: 2rem; font-weight: 500; color: var(--oak); letter-spacing: -.02em; }
.step__body h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.step__body p { font-size: .92rem; color: rgba(238,240,238,.72); }

/* =========================================================
   WORK
   ========================================================= */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.tile { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile__photo {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-color: var(--ink-2);
  background-image: linear-gradient(rgba(180,118,60,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(180,118,60,.14) 1px, transparent 1px);
  background-size: 34px 34px;
  transition: transform .6s var(--ease);
}
.tile:hover .tile__photo { transform: scale(1.04); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: .6rem;
  font-size: .8rem; color: #fff; padding: .7rem .85rem;
  background: linear-gradient(transparent, rgba(18,32,46,.85));
}
.tile figcaption .mono { font-size: .62rem; letter-spacing: .12em; color: var(--oak); border: 1px solid rgba(255,255,255,.25); padding: .15rem .35rem; }

/* =========================================================
   SERVICE AREA
   ========================================================= */
.area { background: var(--paper); max-width: none; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.area__inner { max-width: var(--maxw); margin-inline: auto; padding: clamp(4rem, 9vw, 8rem) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.area .eyebrow { color: var(--oak-deep); }
.area__lede { color: var(--text-mut); max-width: 42ch; margin: 1.5rem 0 2rem; }
.towns { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.towns li { font-family: var(--font-mono); font-size: .95rem; padding: .85rem .2rem; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; gap: .7rem; }
.towns li::before { content: "+"; color: var(--oak); font-weight: 500; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { max-width: none; background: var(--ink); color: var(--text-inv); }
.contact__grid { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact .section__title { color: #fff; }
.contact .eyebrow { color: var(--oak); }
.contact__lede { color: rgba(238,240,238,.78); max-width: 40ch; margin: 1.3rem 0 2.5rem; }
.contact__meta { display: grid; gap: 1.6rem; }
.contact__meta dt { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin-bottom: .35rem; }
.contact__meta dd { margin: 0; color: #fff; }
.contact__meta a { border-bottom: 1px solid var(--oak); }
.tag { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--oak); padding: .1rem .4rem; vertical-align: middle; margin-left: .3rem; }

.contact__form { background: var(--ink-2); border: 1px solid var(--line-ink); padding: clamp(1.5rem, 3vw, 2.4rem); display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(238,240,238,.75); }
.field input, .field textarea {
  background: var(--ink); border: 1px solid var(--line-ink); color: #fff;
  font-family: var(--font-body); font-size: 1rem; padding: .8rem .9rem; border-radius: 0; resize: vertical;
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--steel); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--oak); }
.form__note { font-size: .66rem; color: var(--steel); letter-spacing: .05em; margin-top: .3rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--ink); color: var(--text-inv); border-top: 1px solid var(--line-ink); padding: clamp(2.5rem, 5vw, 4rem) var(--pad); }
.foot__top { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-ink); }
.brand--foot { color: #fff; }
.brand--foot .brand__name { font-size: 1rem; }
.foot .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.foot .btn--ghost:hover { background: #fff; color: var(--ink); }
.foot__meta { max-width: var(--maxw); margin: 1.5rem auto 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: .72rem; letter-spacing: .06em; color: var(--steel); }

/* =========================================================
   MOTION — scroll reveal
   ========================================================= */
/* Below-the-fold sections: JS adds .reveal, so without JS they stay visible. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Hero: pure-CSS load animation — never depends on JS, always ends visible. */
.hero-anim { opacity: 0; transform: translateY(18px); animation: heroIn .7s var(--ease) forwards; }
.hero__copy .hero-anim:nth-child(1) { animation-delay: .05s; }
.hero__copy .hero-anim:nth-child(2) { animation-delay: .13s; }
.hero__copy .hero-anim:nth-child(3) { animation-delay: .21s; }
.hero__copy .hero-anim:nth-child(4) { animation-delay: .29s; }
.hero__copy .hero-anim:nth-child(5) { animation-delay: .37s; }
.hero__panel.hero-anim { animation-delay: .18s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-anim { opacity: 1 !important; transform: none !important; animation: none !important; }
  .tile:hover .tile__photo { transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { aspect-ratio: 16 / 10; max-height: 360px; order: -1; }
  .creds__row { grid-template-columns: 1fr 1fr; gap: 1.5rem 0; }
  .cred:nth-child(3) { border-left: none; padding-left: 0; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .area__inner, .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open + .mobile-menu, .mobile-menu.is-open { display: flex; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .tile--wide { grid-column: span 2; }
  .towns { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .creds__row { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1; }
}
