/* ─────────────────────────────────────────────────────────
   DVA — Construction & Remodeling
   Architectural restraint. Black, white, and warm neutral.
   No theatrical italics. No accent-color emphasis. No card grids.
   ───────────────────────────────────────────────────────── */

:root {
  --c-bg:        #FFFFFF;
  --c-bg-warm:   #FBF9F5;   /* whisper-off-white for section variation */
  --c-ink:       #181818;   /* near-black headlines */
  --c-ink-soft:  #262421;   /* body */
  --c-mute:      #6F6A60;   /* secondary copy */
  --c-mute-2:    #8A847A;   /* labels */
  --c-rule:      #E6E1D7;   /* hairlines (warm) */
  --c-rule-2:    #D6D0C2;

  --ff-display:  "Fraunces", "Times New Roman", serif;
  --ff-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --max:         1320px;
  --gutter:      clamp(24px, 4vw, 64px);

  --ease:        cubic-bezier(.2, .7, .2, 1);
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
}

/* ───── Reset / Base ───── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink-soft);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--c-ink); color: var(--c-bg); }

/* ───── Section eyebrow + titles ───── */
.eyebrow {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-mute);
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--c-ink);
  margin-top: 20px;
}

.lede {
  margin-top: 24px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--c-mute);
  max-width: 52ch;
}

/* ───── Button + arrow link ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid #fff;
  background: #fff;
  color: var(--c-ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 4px;
  position: relative;
  color: var(--c-ink);
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s var(--ease);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow span { transition: transform .35s var(--ease); display: inline-block; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow--light { color: #fff; }

/* ─────────────────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px 0;
  color: #fff;
  transition: background .35s var(--ease), color .35s var(--ease),
              padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.95);
  color: var(--c-ink);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding: 14px 0;
  border-bottom-color: var(--c-rule);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.nav__brand {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.22em;
  line-height: 1;
}

.nav__links {
  justify-self: center;
  display: flex;
  gap: 34px;
}
.nav__links a {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  opacity: 0.9;
  transition: opacity .25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 0;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__cta:hover { background: currentColor; }
.nav.is-scrolled .nav__cta:hover { color: #fff; }
.nav:not(.is-scrolled) .nav__cta:hover { color: var(--c-ink); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 28px;
  height: 22px;
  position: relative;
  padding: 0;
}
.nav__toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 7px; }
.nav__toggle span:nth-child(2) { top: 15px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 11px; transform: rotate(-45deg); }

/* ─────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: scale(1.03);
  animation: heroIn 1.6s var(--ease-out) .15s forwards;
  will-change: transform;
}
@keyframes heroIn { to { transform: scale(1); } }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.0) 50%, rgba(0,0,0,0.55) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0) 75%);
}

.hero__content {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 8vh, 104px);
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  animation: fadeUp 1s var(--ease-out) .3s both;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin-top: 20px;
  max-width: 14ch;
  animation: fadeUp 1.1s var(--ease-out) .45s both;
}

.hero__body {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,0.86);
  animation: fadeUp 1.1s var(--ease-out) .65s both;
}

.hero__ctas {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  animation: fadeUp 1.1s var(--ease-out) .85s both;
}

/* ─────────────────────────────────────────────────────────
   STUDIO (intro)
   ───────────────────────────────────────────────────────── */
.studio {
  padding: clamp(96px, 13vh, 160px) 0 clamp(80px, 11vh, 132px);
  background: var(--c-bg);
}
.studio__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.studio__body {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin-top: 28px;
  max-width: 36ch;
}

/* ─────────────────────────────────────────────────────────
   SERVICES
   ───────────────────────────────────────────────────────── */
.services {
  padding: clamp(96px, 12vh, 144px) 0 clamp(96px, 12vh, 144px);
  background: var(--c-bg-warm);
  border-top: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule);
}

.services__head {
  max-width: var(--max);
  margin: 0 auto clamp(56px, 8vh, 88px);
  padding: 0 var(--gutter);
  max-width: 760px;
}

.services__media {
  max-width: var(--max);
  margin: 0 auto clamp(56px, 8vh, 88px);
  padding: 0 var(--gutter);
}
.services__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.services__list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(40px, 6vw, 80px);
  row-gap: 0;
}
.services__list li {
  padding: 32px 0 36px;
  border-top: 1px solid var(--c-rule-2);
}
.services__list h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin: 0 0 10px;
}
.services__list p {
  color: var(--c-mute);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 46ch;
}

/* ─────────────────────────────────────────────────────────
   CRAFT — asymmetric split, image flush to edge
   ───────────────────────────────────────────────────────── */
.craft {
  background: var(--c-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 80vh;
}

.craft__media {
  position: relative;
  overflow: hidden;
}
.craft__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.craft__copy {
  padding: clamp(72px, 11vh, 132px) clamp(40px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.craft__list {
  margin-top: 48px;
  display: grid;
  gap: 0;
}
.craft__list > div {
  padding: 22px 0;
  border-top: 1px solid var(--c-rule);
}
.craft__list > div:last-child {
  border-bottom: 1px solid var(--c-rule);
}
.craft__list dt {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--c-ink);
  letter-spacing: -0.003em;
  margin-bottom: 6px;
}
.craft__list dd {
  color: var(--c-mute);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 50ch;
}

/* ─────────────────────────────────────────────────────────
   CTA — typographic close
   ───────────────────────────────────────────────────────── */
.cta {
  padding: clamp(96px, 14vh, 160px) 0 clamp(120px, 16vh, 180px);
  background: var(--c-bg-warm);
  border-top: 1px solid var(--c-rule);
}
.cta__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.cta__title {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--c-ink);
  margin-top: 20px;
  max-width: 14ch;
}
.cta__body {
  margin-top: 26px;
  color: var(--c-mute);
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
}

.cta__mail {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 56px;
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.012em;
  color: var(--c-ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-ink);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.cta__arrow {
  display: inline-block;
  transition: transform .35s var(--ease);
  font-size: 0.6em;
}
.cta__mail:hover .cta__arrow { transform: translateX(8px); }
.cta__mail:hover { color: var(--c-mute); border-color: var(--c-mute); }

.cta__secondary {
  display: inline-flex;
  margin-top: 28px;
  padding-left: 0;
}

/* ─────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────── */
.footer {
  background: var(--c-bg);
  color: var(--c-ink-soft);
  border-top: 1px solid var(--c-rule);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 28px;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--c-rule);
}

.footer__brandcol {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__mark {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--c-ink);
}
.footer__label-tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mute-2);
}

.footer__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mute-2);
  margin-bottom: 14px;
}
.footer__cols p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-ink-soft);
}
.footer__cols a {
  position: relative;
  transition: color .25s var(--ease);
}
.footer__cols a:hover { color: var(--c-ink); }

.footer__base {
  padding-top: 24px;
  display: flex;
  justify-content: flex-start;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-mute-2);
}

/* ─────────────────────────────────────────────────────────
   REVEAL (JS-gated so the page stays visible without JS)
   ───────────────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: block; justify-self: end; }
  .nav__inner { grid-template-columns: auto 1fr; }

  .nav.is-open {
    background: rgba(255,255,255,0.98);
    color: var(--c-ink);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px var(--gutter) 28px;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid var(--c-rule);
  }
  .nav.is-open .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--c-rule);
    font-size: 13px;
  }

  .services__list { grid-template-columns: 1fr; column-gap: 0; }

  .craft {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .craft__media { order: -1; }
  .craft__media img { aspect-ratio: 4 / 5; height: auto; }
  .craft__copy { padding: clamp(64px, 9vh, 96px) var(--gutter); max-width: none; }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .footer__brandcol { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero__title { max-width: none; }
  .hero__ctas { gap: 4px; }
  .btn { padding: 13px 22px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__mark { font-size: 36px; }
}

/* ───── Reduced Motion ───── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
