/* ==========================================================================
   Cornish Custom Cabinetry - homepage concept
   Design language: Warm Editorial (#1) for type, spacing, composition, motion.
   Palette: extracted from the Cornish Custom Cabinetry logo (navy #00244d,
   slate #3d4d59, rule grey #949da3) and their own project photography.
   ========================================================================== */

:root {
  /* Brand, from their logo */
  --navy:        #00244d;
  --navy-deep:   #08182b;
  --navy-mid:    #0d2b4e;
  --slate:       #3d4d59;
  --steel:       #a9b8c6;
  --steel-quiet: rgba(169, 184, 198, 0.55);

  /* Light neutrals */
  --cream:       #f7f4ef;
  --sand:        #ece7df;
  --paper:       #fdfcfa;
  --hairline:    rgba(61, 77, 89, 0.22);
  --hairline-dk: rgba(169, 184, 198, 0.26);

  /* Text */
  --text-dark:   #16202b;
  --text-body:   #4a5560;
  --text-muted:  #4f5b66;
  --text-light:  #f7f4ef;
  --text-light-2: rgba(247, 244, 239, 0.74);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Layout */
  --wrap:        min(90%, 1180px);
  --wrap-wide:   min(94%, 1440px);
  --gutter:      clamp(1.5rem, 4vw, 3rem);
  --nav-h:       84px;
  --sec-y:       clamp(4.5rem, 9vw, 8.5rem);

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::after {
  content: "";
  height: 1px;
  width: clamp(2rem, 5vw, 4.5rem);
  background: var(--hairline);
}
.on-dark .eyebrow { color: var(--steel); }
.on-dark .eyebrow::after { background: var(--hairline-dk); }

.on-dark { color: var(--text-light-2); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--text-light); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.6rem 0.95rem 1.85rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth),
              border-color 0.4s var(--ease-smooth), transform 0.5s var(--ease-out);
  min-height: 48px;
}
.btn__dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: 0 0 auto;
  transition: background 0.4s var(--ease-smooth), transform 0.5s var(--ease-out);
}
.btn__dot svg { width: 11px; height: 11px; }
.btn:hover .btn__dot { transform: translateX(3px); }

.btn--solid { background: var(--navy); color: var(--cream); }
.btn--solid .btn__dot { background: rgba(247, 244, 239, 0.18); }
.btn--solid .btn__dot svg { stroke: var(--cream); }
.btn--solid:hover { background: var(--navy-deep); }

.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(0, 36, 77, 0.32); }
.btn--ghost .btn__dot { background: rgba(0, 36, 77, 0.1); }
.btn--ghost .btn__dot svg { stroke: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn--ghost:hover .btn__dot { background: rgba(247, 244, 239, 0.18); }
.btn--ghost:hover .btn__dot svg { stroke: var(--cream); }

.btn--light { background: var(--cream); color: var(--navy-deep); }
.btn--light .btn__dot { background: rgba(0, 36, 77, 0.12); }
.btn--light .btn__dot svg { stroke: var(--navy-deep); }
.btn--light:hover { background: #fff; }

.btn--outline-light { background: transparent; color: var(--cream); border-color: rgba(247, 244, 239, 0.4); }
.btn--outline-light .btn__dot { background: rgba(247, 244, 239, 0.14); }
.btn--outline-light .btn__dot svg { stroke: var(--cream); }
.btn--outline-light:hover { background: var(--cream); color: var(--navy-deep); border-color: var(--cream); }
.btn--outline-light:hover .btn__dot { background: rgba(0, 36, 77, 0.12); }
.btn--outline-light:hover .btn__dot svg { stroke: var(--navy-deep); }

.text-link {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid rgba(0, 36, 77, 0.3);
  padding-bottom: 3px;
  transition: border-color 0.35s var(--ease-smooth);
}
.text-link:hover { border-color: var(--navy); }
.on-dark .text-link { color: var(--steel); border-bottom-color: var(--steel-quiet); }
.on-dark .text-link:hover { color: var(--cream); border-bottom-color: var(--cream); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 200;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}
.nav.is-stuck {
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 30px rgba(8, 24, 43, 0.06);
}
.nav__inner {
  width: var(--wrap);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand__mark { width: auto; height: 40px; max-width: 44px; object-fit: contain; }
.brand__word { width: auto; height: 26px; max-width: 190px; object-fit: contain; }

.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.3rem); }
.nav__links a {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--slate);
  text-decoration: none;
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.35s var(--ease-smooth);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--navy);
  transition: width 0.45s var(--ease-out);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: inline-flex; }
.nav__cta .btn { padding: 0.7rem 1.2rem 0.7rem 1.4rem; min-height: 44px; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 320;
}
.burger span {
  position: absolute;
  left: 50%; width: 17px; height: 1px;
  background: var(--navy);
  transform: translateX(-50%);
  transition: transform 0.45s var(--ease-out), opacity 0.25s linear, background 0.3s linear;
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 24px; }
.burger span:nth-child(3) { top: 30px; }
body.menu-open .burger { border-color: rgba(247, 244, 239, 0.4); }
body.menu-open .burger span { background: var(--cream); }
body.menu-open .burger span:nth-child(1) { transform: translateX(-50%) translateY(6px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5%);
  transition: opacity 0.5s var(--ease-smooth), transform 0.6s var(--ease-out), visibility 0.5s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.mm-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.9rem);
  color: var(--cream);
  text-decoration: none;
  padding-block: 0.5rem;
  display: block;
  line-height: 1.2;
}
.mobile-menu hr { border: 0; border-top: 1px solid var(--hairline-dk); margin: 1.8rem 0; }
.mobile-menu .mm-contact { color: var(--text-light-2); font-size: 0.95rem; }
.mobile-menu .mm-contact a { color: var(--steel); text-decoration: none; display: inline-block; padding-block: 0.5rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cream);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-left: calc((100vw - min(90vw, 1180px)) / 2);
  padding-right: clamp(1.5rem, 4.4vw, 4rem);
}
.hero h1 {
  font-size: clamp(2.05rem, 3.65vw, 3.35rem);
  line-height: 1.06;
  margin-bottom: 1.6rem;
  max-width: 17ch;
}
.hero h1 em { font-style: italic; color: var(--navy); }
.hero__sub {
  font-size: clamp(1rem, 1.22vw, 1.12rem);
  line-height: 1.75;
  color: var(--text-body);
  max-width: 44ch;
  margin-bottom: 2.3rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; align-items: center; }
.hero__meta {
  margin-top: clamp(2rem, 4vw, 3.2rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.2rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__media { position: relative; overflow: hidden; background: var(--sand); }
.hero__media img {
  position: absolute;
  inset: -6% 0 -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.hero__tag {
  position: absolute;
  left: clamp(1rem, 2vw, 1.8rem);
  bottom: clamp(1rem, 2vw, 1.8rem);
  max-width: calc(100% - 2rem);
  background: rgba(8, 24, 43, 0.86);
  color: var(--text-light);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- Quote band ---------- */

.quoteband { background: var(--sand); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.quoteband blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 3.05rem);
  line-height: 1.24;
  color: var(--text-dark);
  max-width: 22ch;
}
.quoteband .attrib {
  margin-top: 2rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.quoteband .attrib span { display: block; color: var(--text-muted); letter-spacing: 0.12em; margin-top: 0.35rem; }

/* ---------- Story ---------- */

.story { background: var(--navy-deep); padding-block: var(--sec-y); }
.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.story h2 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); max-width: 15ch; }
.story__body { font-size: 1.02rem; }
.story__body p { color: var(--text-light-2); }
.story__fig { margin: 0; margin-top: clamp(2.5rem, 5vw, 4rem); }
.story__fig img { width: 100%; height: auto; }
.story__fig figcaption {
  margin-top: 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
}
.marks {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline-dk);
}
.mark-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hairline-dk);
}
.mark-row .yr {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--steel);
  line-height: 1.1;
}
.mark-row .what { color: var(--text-light-2); font-size: 0.96rem; line-height: 1.6; }

/* ---------- Styles triptych (signature moment) ---------- */

.styles { background: var(--cream); padding-block: var(--sec-y); }
.styles__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.styles h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 16ch; }
.styles__lede { font-size: 1.02rem; max-width: 46ch; }

.panels { display: flex; gap: clamp(0.8rem, 1.4vw, 1.35rem); align-items: stretch; }
.panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--hairline);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  overflow: hidden;
  transition: flex-grow 0.75s var(--ease-out), border-color 0.4s var(--ease-smooth),
              box-shadow 0.55s var(--ease-smooth);
}
.panel:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.panel__img { position: relative; overflow: hidden; flex: 1 1 auto; min-height: clamp(17rem, 25vw, 27rem); }
.panel__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.panel__body { padding: clamp(1.2rem, 2vw, 1.7rem); display: flex; flex-direction: column; flex: 0 0 auto; }
.panel__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--slate);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  line-height: 1.16;
  color: var(--text-dark);
  margin-bottom: 0.85rem;
}
.panel__copy {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--text-body);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.75s var(--ease-out), opacity 0.5s var(--ease-smooth);
}
.panel__more {
  margin-top: 0;
  padding-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.panel__more .line { height: 1px; width: 22px; background: var(--hairline); transition: width 0.5s var(--ease-out); }
.panel.is-open { flex-grow: 2.1; border-color: rgba(0, 36, 77, 0.4); box-shadow: 0 22px 60px rgba(8, 24, 43, 0.1); }
.panel.is-open .panel__img img { transform: scale(1.045); }
.panel.is-open .panel__copy { max-height: 24rem; opacity: 1; }
.panel.is-open .panel__more .line { width: 46px; }
.panel.is-open .panel__more { color: var(--navy); }

/* ---------- Work ---------- */

.work { background: var(--navy-deep); padding-block: var(--sec-y); }
.work__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.work h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 14ch; }
.work__lede { font-size: 1.02rem; max-width: 46ch; color: var(--text-light-2); }
.work__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.5rem);
  align-items: start;
}
.work__col { display: flex; flex-direction: column; gap: clamp(0.9rem, 1.6vw, 1.5rem); }
.work__col:nth-child(2) { margin-top: clamp(1.5rem, 5vw, 5rem); }
.work__col:nth-child(3) { margin-top: clamp(0.5rem, 2.4vw, 2.4rem); }
.work figure { margin: 0; }
.work .shot { overflow: hidden; background: var(--navy-mid); }
.work .shot img { width: 100%; height: auto; transition: transform 1.4s var(--ease-out); }
.work figure:hover .shot img { transform: scale(1.035); }
.work figcaption {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ---------- Services ---------- */

.services { background: var(--cream); padding-block: var(--sec-y); }
.services h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 16ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.srow {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.srow:last-child { border-bottom: 1px solid var(--hairline); }
.srow__n { font-family: var(--font-display); font-size: 1.15rem; color: var(--slate); padding-top: 0.35rem; }
.srow h3 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.18; }
.srow p { font-size: 0.99rem; color: var(--text-body); }

/* ---------- Quote / estimate ---------- */

.estimate { background: var(--sand); }
.estimate__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.estimate__media { position: relative; min-height: clamp(20rem, 40vw, 34rem); overflow: hidden; }
.estimate__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.estimate__body {
  padding: clamp(3rem, 6vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.estimate h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); max-width: 19ch; margin-bottom: 1.5rem; }
.estimate p { max-width: 46ch; }
.estimate ul { list-style: none; padding: 0; margin: 1.8rem 0 2.2rem; }
.estimate li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.97rem;
  color: var(--text-body);
}
.estimate li svg { width: 18px; height: 18px; margin-top: 0.45rem; stroke: var(--slate); }

/* ---------- CTA ---------- */

.cta { background: var(--navy); padding-block: clamp(4rem, 8vw, 7rem); }
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.cta h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 14ch; }
.cta__sub { color: var(--text-light-2); max-width: 42ch; margin-top: 1.3rem; }
.cta__lines { display: flex; flex-direction: column; gap: 1.1rem; }
.cta__line { border-top: 1px solid var(--hairline-dk); padding-top: 1.1rem; }
.cta__line .lbl {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.4rem;
}
.cta__line a, .cta__line span.val {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--text-light);
  text-decoration: none;
  display: inline-block;
  padding-block: 0.15rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease-smooth);
}
.cta__line a:hover { border-bottom-color: var(--steel); }
.cta__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; }

/* ---------- Footer ---------- */

.footer { background: var(--navy-deep); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--hairline-dk);
}
.footer__brand { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.footer__brand img.fmark { width: auto; height: 44px; max-width: 48px; object-fit: contain; }
.footer__brand img.fword { width: auto; height: 30px; max-width: 230px; object-fit: contain; }
.footer__brand p { color: var(--text-light-2); font-size: 0.92rem; max-width: 32ch; margin: 0; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a, .footer p a, .footer address a {
  color: var(--text-light-2);
  text-decoration: none;
  font-size: 0.93rem;
  display: inline-block;
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease-smooth);
}
.footer li a:hover, .footer p a:hover, .footer address a:hover { color: var(--cream); }
.footer address { font-style: normal; color: var(--text-light-2); font-size: 0.93rem; line-height: 1.8; }
.footer__bottom {
  padding-top: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--steel);
}
.footer__bottom span { color: var(--steel); }

/* ---------- 404 ---------- */

.error-section {
  background: var(--navy-deep);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
.error-inner { text-align: left; max-width: 44rem; }
.error__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 0.9;
  color: rgba(169, 184, 198, 0.28);
  margin-bottom: 1rem;
}
.error__title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 1.3rem; }
.error__body { color: var(--text-light-2); max-width: 42ch; margin-bottom: 2.2rem; }

/* ---------- Reveal on scroll ---------- */

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  :root { --nav-h: 76px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    height: auto;
  }
  .hero__media { order: -1; min-height: 44svh; height: 44svh; margin-top: var(--nav-h); }
  .hero__media img { position: absolute; inset: 0; height: 100%; }
  .hero__text {
    padding: clamp(2.2rem, 6vw, 3.5rem) var(--gutter) clamp(2.8rem, 7vw, 4rem);
  }
  .hero h1 { max-width: 20ch; font-size: clamp(2rem, 5.6vw, 2.9rem); }
  .hero__sub { max-width: 54ch; }

  .story__grid, .styles__head, .work__head, .cta__grid { grid-template-columns: minmax(0, 1fr); }
  .estimate__grid { grid-template-columns: minmax(0, 1fr); }
  .estimate__media { min-height: 20rem; }

  .panels { flex-direction: column; }
  .panel { flex: 1 1 auto; }
  .panel__img { aspect-ratio: 16 / 10; flex: 0 0 auto; min-height: 0; }
  .panel__copy { max-height: none; opacity: 1; overflow: visible; }
  .panel__more { display: none; }
  .panel.is-open { flex-grow: 1; box-shadow: none; }

  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .work__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__col:nth-child(3) { margin-top: 0; }
  .srow { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .srow p { grid-column: 2 / -1; }
}

@media (max-width: 768px) {
  body { font-size: 0.98rem; }
  .quoteband blockquote { max-width: 100%; }
  .mark-row { grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; }
  .cta__grid { gap: 2.5rem; }
}

@media (max-width: 640px) {
  .work__cols { grid-template-columns: minmax(0, 1fr); }
  .work__col:nth-child(2), .work__col:nth-child(3) { margin-top: 0; }
  .hero__media { min-height: 40svh; height: 40svh; }
  .hero__tag { font-size: 0.58rem; letter-spacing: 0.1em; padding: 0.55rem 0.9rem; }
  .hero__meta { gap: 0.35rem 1.4rem; font-size: 0.7rem; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer li a, .footer p a, .footer address a { padding-block: 0.65rem; }
  .mobile-menu .mm-contact a { padding-block: 0.65rem; }
  .footer__bottom { flex-direction: column; }
  .btn { width: 100%; justify-content: space-between; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  :root { --gutter: 1.35rem; }
  .hero h1 { font-size: clamp(1.8rem, 7.6vw, 2.25rem); }
  .styles h2, .work h2, .services h2, .cta h2, .story h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .quoteband blockquote { font-size: clamp(1.5rem, 7.6vw, 2rem); }
}
