/* Enlightened Remodeling - homepage concept
   Palette taken from their own logo and site CSS:
   #ddac25 gold (ER monogram, owl, awards banner), #2a2a2b charcoal (logo secondary),
   #f8f8f8 light neutral. Nothing here is invented. */

:root {
  --gold: #ddac25;          /* logo gold, verbatim */
  --gold-ink: #785708;      /* their gold deepened; clears 4.5:1 on both light grounds */
  --gold-soft: rgba(221, 172, 37, 0.18);

  --ink: #1d1d1f;           /* their #191b1d / #2a2a2b family, deepened for bands */
  --ink-2: #2a2a2b;         /* their logo charcoal, verbatim */
  --ink-3: #363638;

  --paper: #f2f1ee;         /* their #f8f8f8 neutral, a hair off pure */
  --paper-2: #e7e5e0;
  --white: #ffffff;

  --body: #4a4a4d;          /* 7.8:1 on paper */
  --body-light: #c9c8c4;    /* 10:1 on ink */
  --muted-light: #a9a8a4;   /* 7:1 on ink */
  --hair: rgba(29, 29, 31, 0.16);
  --hair-light: rgba(242, 241, 238, 0.2);

  --display: "Italiana", "Times New Roman", serif;
  --body-face: "Commissioner", "Helvetica Neue", Arial, sans-serif;

  --wrap: min(90%, 1180px);
  --wrap-wide: min(94%, 1480px);
  --nav-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 0.84, 0.44, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--body-face);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.68;
  letter-spacing: 0.002em;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.06;
  margin: 0;
}

p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { width: var(--wrap); margin-inline: auto; }
.wrap-wide { width: var(--wrap-wide); margin-inline: auto; }

.band { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.band--ink { background: var(--ink); color: var(--body-light); }
.band--ink h2, .band--ink h3 { color: var(--white); }
.band--ink-2 { background: var(--ink-2); color: var(--body-light); }
.band--ink-2 h2, .band--ink-2 h3 { color: var(--white); }

/* ---------- archival label ---------- */
.label {
  font-family: var(--body-face);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hair);
  max-width: 180px;
}
.band--ink .label, .band--ink-2 .label { color: var(--gold); }
.band--ink .label::after, .band--ink-2 .label::after { background: var(--hair-light); }

.lede { font-size: clamp(1.06rem, 1.5vw, 1.2rem); color: var(--body); }
.band--ink .lede, .band--ink-2 .lede { color: var(--body-light); }

.h-sec { font-size: clamp(2.15rem, 4.3vw, 3.5rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 52px;
  padding: 0 1.7rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body-face);
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--gold-ink); border-color: var(--gold-ink); color: var(--white); }
.btn:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.btn__mark { width: 18px; height: 1px; background: currentColor; transition: width 0.35s var(--ease); }
.btn:hover .btn__mark { width: 28px; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--onink { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--onink:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn--outlink { background: transparent; color: var(--white); border-color: rgba(242, 241, 238, 0.4); }
.btn--outlink:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.textlink {
  color: var(--gold-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.textlink:hover { border-color: var(--gold-ink); }
.band--ink .textlink, .band--ink-2 .textlink { color: var(--gold); border-bottom-color: rgba(221, 172, 37, 0.35); }
.band--ink .textlink:hover, .band--ink-2 .textlink:hover { border-color: var(--gold); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--hair);
  transition: box-shadow 0.4s var(--ease);
}
.nav__inner {
  width: var(--wrap-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav.is-solid { box-shadow: 0 1px 0 var(--hair), 0 12px 28px -22px rgba(29, 29, 31, 0.5); }

.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand__mark { width: auto; height: 46px; max-width: 52px; object-fit: contain; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__type b {
  font-family: var(--body-face);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.brand__type span {
  font-family: var(--body-face);
  font-size: 0.94rem;
  font-weight: 200;
  letter-spacing: 0.155em;
  color: var(--ink);
  margin-top: 2px;
}

.nav__links { display: flex; align-items: center; gap: 2.1rem; }
.nav__links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-block: 4px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold-ink);
  transition: right 0.35s var(--ease);
}
.nav__links a:hover::after { right: 0; }

.nav__cta { margin-left: 0.6rem; }
.nav__cta .btn { min-height: 46px; padding: 0 1.35rem; font-size: 0.72rem; }

.burger {
  display: none;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--hair); cursor: pointer;
  padding: 0;
}
.burger span { display: block; width: 20px; height: 1px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- mobile drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 1.6rem 7vw 3rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-slow);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }
.drawer__top { display: flex; justify-content: flex-end; }
.drawer__close {
  width: 48px; height: 48px;
  background: none; border: 1px solid rgba(242, 241, 238, 0.3);
  color: var(--paper); cursor: pointer; font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.drawer__links { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 2.5rem; }
.drawer__links a {
  font-family: var(--display);
  font-size: clamp(2rem, 9vw, 2.9rem);
  color: var(--white);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(242, 241, 238, 0.12);
}
.drawer__foot { margin-top: auto; padding-top: 2.5rem; }
.drawer__foot a {
  color: var(--gold); text-decoration: none; display: block;
  font-size: 1.05rem; padding: 9px 0; min-height: 44px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: stretch;
  background: var(--paper);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem clamp(1.6rem, 4.5vw, 5rem) 2.5rem
           max(6vw, calc((100vw - min(94vw, 1480px)) / 2));
}
.hero__eyebrow {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-ink); margin: 0 0 1.6rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.55vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  max-width: 13ch;
  margin: 0;
}
.hero__rule {
  height: 1px; background: var(--gold); margin: 2.1rem 0 1.7rem;
  width: 0; max-width: 220px;
}
.hero__sub {
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
  color: var(--body);
  max-width: 46ch;
  margin: 0 0 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__media { position: relative; overflow: hidden; background: var(--ink); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__tag {
  position: absolute;
  left: 0; bottom: 0;
  max-width: 100%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.85rem 1.4rem;
}
.hero__tag em { font-style: normal; color: var(--gold); }

/* ---------- record strip ---------- */
.record { padding-block: clamp(2.2rem, 4vw, 3.2rem); background: var(--ink); }
.record__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.record__item { border-top: 1px solid var(--hair-light); padding-top: 1.1rem; }
.record__k {
  display: block;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem;
}
.record__v { font-size: 0.98rem; color: var(--body-light); font-weight: 300; }

/* ---------- two-column editorial ---------- */
.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.duo--tight { gap: clamp(2rem, 4vw, 4rem); }
.duo--stretch { align-items: stretch; }

.pillars { margin-top: 2.8rem; }
.pillar { border-top: 1px solid var(--hair); padding: 1.5rem 0; }
.pillar h3 { font-size: 1.6rem; margin-bottom: 0.55rem; }
.pillar p { margin: 0; font-size: 0.98rem; }

.stack { position: relative; }
.stack__a { width: 90%; }
.stack__b {
  width: 56%;
  position: relative;
  margin: -18% 0 0 auto;
  border: 10px solid var(--paper);
}
.stack__cap {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--body); margin-top: 1.2rem; display: block;
}

.owl {
  margin-top: 3rem;
  border-left: 1px solid var(--gold);
  padding-left: 1.6rem;
}
.owl h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.owl p { margin: 0; font-size: 0.98rem; }

/* ---------- projects ---------- */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.6rem, 5vw, 4.2rem);
  border-top: 1px solid var(--hair);
}
.project:nth-child(even) .project__media { order: 2; }
.project__media { position: relative; overflow: hidden; }
.project__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.project__name { font-size: clamp(1.75rem, 2.6vw, 2.35rem); margin-bottom: 0.9rem; }
.project__kind {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.9rem; display: block;
}
.project p { font-size: 0.98rem; margin-bottom: 0; }

/* ---------- awards ---------- */
.awardlist { border-top: 1px solid var(--hair-light); }
.awardlist__row { border-bottom: 1px solid var(--hair-light); padding: 1.5rem 0; }
.award__name { font-family: var(--display); font-size: clamp(1.5rem, 2.3vw, 1.95rem); color: var(--white); margin: 0 0 0.5rem; }
.award__note { font-size: 0.94rem; color: var(--muted-light); margin: 0; max-width: 54ch; }

.ceremony__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  margin-top: clamp(2.6rem, 5vw, 4rem);
}
.pair figure { margin: 0; }
.pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- services index ---------- */
.svc { border-top: 1px solid var(--hair); }
.svc__row {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.svc__name { font-family: var(--display); font-size: clamp(1.28rem, 1.8vw, 1.55rem); color: var(--ink); }
.svc__row p { margin: 0; font-size: 0.94rem; }

.svc__media { display: flex; }
.svc__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center 45%; }

/* ---------- full-bleed quiet band ---------- */
.bleed { margin: 0; }
.bleed img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: center 38%; }

/* ---------- protection sequence (signature) ---------- */
.seq {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-top: clamp(2.6rem, 5vw, 4rem);
  align-items: start;
}
.seq__item:nth-child(2) { margin-top: clamp(1.5rem, 4vw, 3.4rem); }
.seq__item:nth-child(3) { margin-top: clamp(0.6rem, 1.6vw, 1.4rem); }
.seq__item:nth-child(4) { margin-top: clamp(2.2rem, 5.5vw, 4.6rem); }
.seq__item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.seq__cap {
  display: block;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--hair-light);
  font-size: 0.8rem;
  color: var(--body-light);
  font-weight: 300;
}
.pullquote {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold);
  line-height: 1.24;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  max-width: 22ch;
}

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.4rem); margin-top: 3rem; }
.step { border-top: 1px solid var(--hair); padding-top: 1.4rem; }
.step__n {
  font-family: var(--display); font-size: 2.4rem; color: var(--gold-ink);
  display: block; line-height: 1; margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.step p { font-size: 0.96rem; margin-bottom: 0; }

/* ---------- reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.8rem, 4vw, 3.2rem); margin-top: 3rem; }
.review { border-top: 1px solid var(--hair-light); padding-top: 1.5rem; display: flex; flex-direction: column; }
.review blockquote {
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
  color: var(--body-light);
  font-weight: 300;
}
.review__who { font-size: 0.94rem; color: var(--white); display: block; margin-top: auto; }
.review__where {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); display: block; margin-top: 0.4rem;
}

/* ---------- cta ---------- */
.cta { background: var(--paper-2); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.4rem, 6vw, 5rem); align-items: start; }
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { border-top: 1px solid var(--hair); padding: 0.9rem 0; }
.contact-list .k {
  display: block; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 0.35rem;
}
.contact-list a, .contact-list span.v { font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.contact-list a { display: inline-block; min-height: 44px; line-height: 44px; }
.contact-list a:hover { color: var(--gold-ink); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--muted-light); padding-block: clamp(3.4rem, 6vw, 5rem) 2.4rem; }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
.foot h4 {
  font-family: var(--body-face); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1.2rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.3rem; font-size: 0.93rem; }
.foot li a { display: inline-block; padding: 13px 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot .brand__type b, .foot .brand__type span { color: var(--paper); }
.foot__bar {
  margin-top: clamp(2.4rem, 5vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--hair-light);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.78rem;
}

/* ---------- 404 ---------- */
.err { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: var(--ink); }
.err__inner { width: var(--wrap); margin-inline: auto; padding-top: var(--nav-h); }
.err__code { font-family: var(--display); font-size: clamp(6rem, 20vw, 14rem); color: rgba(221, 172, 37, 0.22); line-height: 0.85; }
.err h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); margin: 1.2rem 0 1.2rem; }
.err p { color: var(--body-light); max-width: 52ch; }

/* ---------- reveal motion ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .burger { display: flex; }
  .duo, .cta__grid, .ceremony { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps, .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seq__item { margin-top: 0 !important; }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__text {
    padding: 3rem 5vw 3rem;
  }
  .hero h1 { max-width: 16ch; }
  .hero__media { min-height: 58vh; }
  .project, .project:nth-child(even) .project__media { grid-template-columns: minmax(0, 1fr); order: 0; }
  .project__media { order: -1; }
  .record__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .stack__b { width: 60%; margin-top: -14%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .steps, .reviews, .foot__grid, .record__grid, .pair { grid-template-columns: minmax(0, 1fr); }
  .seq { grid-template-columns: minmax(0, 1fr); }
  .brand__mark { height: 38px; }
  .brand__type b, .brand__type span { font-size: 0.82rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
