/* Magic Valley Remodels & Repairs
   Editorial, light, architectural. Stone-white paper, navy ink, gold accent: the two colors of his logo.
   Type: Cormorant Garamond (display, luxury serif justified by the high-end residential brief)
         + Archivo (text and interface). Both self-hosted.
   Shape rule: photography is square-cornered; only buttons are pills. */

@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-italic-latin.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --paper: #f4f3ef;
  --stone: #e9e6df;
  --ink: #141b2b;
  --ink-soft: #4b5465;
  --line: rgba(20, 27, 43, .14);
  --navy: #1c2a52;
  --navy-deep: #0f1730;
  --gold: #9c7a39;
  --gold-soft: #cdad6c;
  --on-dark: #f1efe9;
  --on-dark-soft: #aeb5c4;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--navy); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.sec { padding: clamp(96px, 12vw, 180px) 0; }
[id] { scroll-margin-top: 90px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2.6rem, 5.4vw, 5rem); max-width: 16ch; }
h2 em, h1 em, .quote-text em { font-style: italic; font-weight: 500; color: var(--gold); }
h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
p { max-width: 58ch; }
.lead { font-size: 1.16rem; color: var(--ink-soft); }
.caps { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; font-stretch: 112%; }
.label { display: inline-flex; align-items: center; gap: 14px; color: var(--gold); margin-bottom: 26px; }
.label::before { content: ""; width: 36px; height: 1px; background: currentColor; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; font: 600 .86rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; font-stretch: 110%; text-decoration: none; padding: 20px 32px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn .icon { width: 16px; height: 16px; }
.btn-gold { background: var(--gold-soft); color: var(--navy-deep); }
.btn-gold:hover { background: #dcbf82; }
.btn-navy { background: var(--navy); color: var(--on-dark); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-line { color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.more { display: inline-flex; align-items: center; gap: 12px; font: 600 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--gold); transition: gap .35s var(--ease), color .3s; }
.more:hover { gap: 18px; color: var(--gold); }
.more .icon { width: 15px; height: 15px; }

/* ---------- header ---------- */
.util { position: absolute; z-index: 41; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; color: rgba(255,255,255,.82); font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.util .wrap { width: 100%; display: flex; justify-content: space-between; gap: 18px; }
.util span, .util a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.util .icon { width: 14px; height: 14px; color: var(--gold-soft); }
.util .grp { display: flex; gap: 26px; }
.util .util-r { align-items: center; gap: 20px; }
.util .util-soc { gap: 4px; padding-right: 20px; border-right: 1px solid rgba(127, 127, 127, .35); }
.util .util-soc a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; transition: background-color .3s; }
.util .util-soc a:hover { background: rgba(127, 127, 127, .2); }
.util .util-soc .icon { width: 15px; height: 15px; color: currentColor; }
@media (min-width: 1061px) { .util .util-soc { display: none; } }
.page .util { position: relative; color: var(--ink-soft); background: var(--stone); border-bottom: 0; }
.page .util .icon { color: var(--gold); }

.nav { position: fixed; z-index: 40; top: 40px; left: 0; right: 0; height: 84px; transition: top .45s var(--ease), background-color .45s var(--ease), color .45s var(--ease), height .45s var(--ease), box-shadow .45s var(--ease); color: #fff; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.nav.solid { top: 0; height: 74px; background: rgba(244, 243, 239, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.page .nav { position: sticky; top: 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: cover; }
.brand .bn { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1; letter-spacing: .005em; }
.brand .bs { display: block; margin-top: 4px; font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; opacity: .8; }
.links { list-style: none; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); }
.links a { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; position: relative; padding: 6px 0; }
.links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.links a:not(.btn):hover::after, .links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.links .btn { padding: 15px 24px; font-size: .74rem; letter-spacing: .14em; }
.links .nav-soc { display: flex; align-items: center; gap: 6px; padding-left: clamp(10px, 1.4vw, 22px); border-left: 1px solid currentColor; border-color: rgba(127, 127, 127, .35); }
.links .nav-soc a { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 50%; transition: background-color .3s, color .3s; }
.links .nav-soc a::after { display: none; }
.links .nav-soc a:hover { background: rgba(127, 127, 127, .18); }
.links .nav-soc .icon { width: 18px; height: 18px; }
.nav:not(.solid) .links .btn-navy { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; color: inherit; cursor: pointer; place-items: center; }
.menu-btn .icon { width: 28px; height: 28px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 1060px) {
  .menu-btn { display: grid; }
  .links { position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); color: var(--ink); padding: 10px var(--gutter) 28px; box-shadow: 0 30px 40px -20px rgba(20,27,43,.25); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .35s, transform .35s, visibility .35s; }
  .links.open { opacity: 1; visibility: visible; transform: none; }
  .links li a:not(.btn) { display: block; padding: 18px 2px; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .links .btn { margin-top: 20px; width: 100%; padding: 18px; }
  .links .nav-soc { border-left: 0; padding: 18px 0 0; gap: 12px; }
  .links li.nav-soc a:not(.btn) { display: grid; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); }
  .nav:not(.solid) .links .btn-navy { background: var(--navy); }
  .util .grp span:not(:first-child) { display: none; }
}
@media (max-width: 560px) { .util .grp .hide-sm { display: none; } .util .util-r { gap: 12px; } .util .util-soc { padding-right: 12px; gap: 0; } .util .grp:first-child span { font-size: 0; gap: 0; } .util .grp:first-child span::after { content: "Twin Falls, ID"; font-size: .78rem; margin-left: 6px; } .brand .bn { font-size: 1.3rem; } }

/* ---------- hero: split on wide screens (copy left, whole photo right); full-bleed on phones ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; color: #fff; background: var(--navy-deep); }
.hero-media { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.slide.on { opacity: 1; }
.slide picture, .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(10,15,30,.9) 0%, rgba(10,15,30,.5) 45%, rgba(10,15,30,.12) 70%, rgba(10,15,30,.5) 100%); }
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: 40px; text-shadow: 0 2px 24px rgba(5,10,25,.45); }
.hero-copy .loc { color: var(--gold-soft); margin-bottom: 22px; display: block; }
.hero h1 { font-size: clamp(3.6rem, min(7.6vw, 13.5vh), 9rem); font-weight: 500; line-height: .86; letter-spacing: -.02em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; }
.hero h1 .trade { display: block; margin-top: 18px; font-family: var(--sans); font-size: clamp(.8rem, 1vw, .95rem); font-weight: 600; letter-spacing: .42em; text-transform: uppercase; font-stretch: 115%; color: rgba(255,255,255,.9); }
.hero .promise { margin-top: 28px; max-width: 30ch; font-family: var(--serif); font-size: clamp(1.35rem, 1.8vw, 1.8rem); line-height: 1.3; color: rgba(255,255,255,.92); }
.hero .promise em { color: var(--gold-soft); }
.hero .ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.reel { display: none; }
.reel button { display: grid; gap: 10px; text-align: left; background: none; border: 0; color: rgba(255,255,255,.55); font: 500 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color .3s; }
.reel button.on, .reel button:hover { color: #fff; }
.reel .bar { position: relative; height: 1px; background: rgba(255,255,255,.22); overflow: hidden; }
.reel .bar i { position: absolute; inset: 0; background: var(--gold-soft); transform: scaleX(0); transform-origin: left; }
.reel button.on .bar i { animation: fill 7s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
@media (max-width: 900px) { .hero .ctas .btn { flex: 1 1 100%; } }

@media (min-width: 901px) and (min-aspect-ratio: 1/1) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-media { position: relative; inset: auto; grid-column: 2; grid-row: 1; }
  .hero-media::after { background: linear-gradient(180deg, rgba(10,15,30,.55) 0%, rgba(10,15,30,0) 22%); }
  .hero-copy { position: relative; grid-column: 1; grid-row: 1; left: auto; right: auto; bottom: auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 130px clamp(28px, 5vw, 88px) clamp(36px, 6vh, 88px); text-shadow: none;
    background: radial-gradient(ellipse 90% 70% at 0% 100%, #1a2754 0%, var(--navy-deep) 70%); }
  .hero-copy > .wrap { padding: 0; margin: 0; max-width: none; }
  .reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 5vh, 72px); max-width: 560px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1 .ln > span { animation: rise 1.4s var(--ease) both; }
  .hero h1 .ln:nth-child(2) > span { animation-delay: .12s; }
  .hero .loc, .hero .trade, .hero .promise, .hero .ctas, .reel { animation: fade 1.2s var(--ease) both; }
  .hero .trade { animation-delay: .45s; } .hero .promise { animation-delay: .6s; } .hero .ctas { animation-delay: .75s; } .reel { animation-delay: 1s; }
  .hero-media { animation: unveil 1.6s var(--ease) both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } }
@keyframes unveil { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

/* ---------- reveal system ---------- */
.js [data-r] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-r].in { opacity: 1; transform: none; }
.js [data-r="mask"] { opacity: 1; transform: none; }
.js [data-r="mask"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease); }
.js [data-r="mask"].in > * { clip-path: inset(0 0 0 0); }
.js [data-r="mask"] img { scale: 1.14; transition: scale 2.2s var(--ease); }
.js [data-r="mask"].in img { scale: 1; }
[data-d="1"] { transition-delay: .12s !important; } [data-d="2"] { transition-delay: .24s !important; } [data-d="3"] { transition-delay: .36s !important; }

/* ---------- intro ---------- */
.intro-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 120px); align-items: end; }
.intro h2 { font-size: clamp(2.8rem, 5.6vw, 5.4rem); max-width: 14ch; }
.intro .sig { margin-top: 28px; display: flex; align-items: center; gap: 16px; }
.intro .sig img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.intro .sig b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.1; }
.intro .sig span { font-size: .85rem; color: var(--ink-soft); }
.creds { margin-top: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.creds div { border-top: 1px solid var(--ink); padding-top: 22px; }
.creds strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 500; line-height: 1; }
.creds strong small { font-size: .45em; font-family: var(--sans); font-weight: 600; letter-spacing: .1em; margin-left: 6px; color: var(--gold); }
.creds span { display: block; margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- featured projects ---------- */
.fp-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(56px, 8vw, 110px); }
.fp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); align-items: end; }
.fp + .fp { margin-top: clamp(90px, 12vw, 170px); }
.fp .ph { position: relative; overflow: hidden; background: var(--stone); }
.fp .ph img { width: 100%; height: 100%; object-fit: cover; }
.fp .txt .caps { color: var(--gold); display: block; margin-bottom: 18px; }
.fp .txt p { margin-top: 18px; color: var(--ink-soft); }
.fp .txt .more { margin-top: 28px; }
.fp-a .ph { grid-column: 1 / 9; aspect-ratio: 4 / 5; }
.fp-a .txt { grid-column: 9 / 13; padding-bottom: 4vw; }
.fp-a .ph-2 { grid-column: 9 / 12; grid-row: 1; align-self: start; aspect-ratio: 3 / 4; margin-bottom: 30px; }
.fp-b .txt { grid-column: 1 / 5; grid-row: 1; padding-bottom: 4vw; }
.fp-b .ph { grid-column: 5 / 13; grid-row: 1; aspect-ratio: 16 / 11; }
.fp-c .ph { grid-column: 3 / 9; aspect-ratio: 3 / 4; }
.fp-c .txt { grid-column: 9 / 13; padding-bottom: 4vw; }
.fp .ph .pl { position: absolute; inset: -8% 0; }
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) {
  .fp .ph .pl img, .about .ph img { animation: drift linear both; animation-timeline: view(); } } }
@keyframes drift { from { transform: translateY(-5%); } to { transform: translateY(5%); } }

/* ---------- services ---------- */
.svc { background: var(--stone); }
.svc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.svc-head p { justify-self: end; }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.card { position: relative; display: block; text-decoration: none; color: inherit; }
.card .ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .ph img { transform: scale(1.045); }
.card h3 { margin-top: 26px; font-size: clamp(1.8rem, 2.5vw, 2.4rem); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card h3 .icon { width: 22px; height: 22px; color: var(--gold); transition: transform .45s var(--ease); flex: none; }
.card:hover h3 .icon { transform: translate(4px, -4px); }
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 1rem; }
.svc-wide { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; text-decoration: none; color: inherit; }
.svc-wide .ph { aspect-ratio: 16 / 10; overflow: hidden; }
.svc-wide .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.svc-wide:hover .ph img { transform: scale(1.04); }
.svc-wide p { margin-top: 16px; color: var(--ink-soft); }
.svc-note { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }

/* ---------- complete remodels: every trade ---------- */
.trades-sec { background: var(--navy-deep); color: var(--on-dark); }
.trades-sec h2 em { color: var(--gold-soft); }
.trades-sec .label { color: var(--gold-soft); }
.trades-sec .lead { color: var(--on-dark-soft); }
.trades-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(56px, 7vw, 96px); }
.trades-head .lead { justify-self: end; }
.trades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 48px); }
.trade { border-top: 1px solid rgba(241, 239, 233, .2); padding-top: 26px; }
.trade .num { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-soft); }
.trade h3 { margin-top: 14px; font-size: clamp(1.7rem, 2.2vw, 2.15rem); }
.trade p { margin-top: 10px; color: var(--on-dark-soft); font-size: .98rem; }
.trades-foot { margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid rgba(241, 239, 233, .2); color: var(--on-dark-soft); font-size: .95rem; max-width: none; }

/* ---------- more than bathrooms ---------- */
.beyond-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.beyond .ph { background: var(--stone); }
.beyond .ph img { display: block; width: 100%; height: auto; }
.beyond h2 { font-size: clamp(2.5rem, 4.6vw, 4.4rem); }
.beyond .lead { margin-top: 24px; }
.beyond-list { list-style: none; margin: 32px 0 38px; }
.beyond-list li { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.beyond-list li:first-child { border-top: 1px solid var(--line); }
.beyond-list b { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.beyond-list span { color: var(--ink-soft); font-size: .98rem; }

/* ---------- process ---------- */
.steps { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); counter-reset: s; }
.step { border-top: 1px solid var(--line); padding-top: 30px; }
.step .num { font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--gold); }
.step h3 { margin-top: 20px; font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.step p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- before / after ---------- */
.ba-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.ba-grid ul { list-style: none; margin-top: 28px; }
.ba-grid li { padding: 14px 0; border-bottom: 1px solid var(--line); }
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.compare { position: relative; overflow: hidden; aspect-ratio: 3 / 4; max-width: 620px; width: 100%; justify-self: end; background: var(--stone); user-select: none; touch-action: pan-y; --pos: 50%; }
.compare > img, .compare .after img { width: 100%; height: 100%; object-fit: cover; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 50px; margin-left: -25px; border: 0; background: none; cursor: ew-resize; display: flex; justify-content: center; }
.compare .handle::before { content: ""; position: absolute; inset: 0 auto 0 50%; width: 1px; background: #fff; }
.compare .handle span { position: relative; align-self: center; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(10,15,30,.25); }
.compare .handle .icon { width: 18px; height: 18px; }
.compare .tag { position: absolute; top: 18px; padding: 7px 13px; font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; background: rgba(15,23,48,.78); color: #fff; pointer-events: none; }
.compare .tag-b { left: 18px; } .compare .after .tag { right: 18px; background: var(--gold-soft); color: var(--navy-deep); }
@media (prefers-reduced-motion: no-preference) { @supports (animation-timeline: view()) {
  .compare:not(.manual) { animation: wipe linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; } } }
@keyframes wipe { from { --pos: 100%; } to { --pos: 0%; } }

/* ---------- testimonials ---------- */
.words { background: var(--stone); text-align: center; }
.words .stars { display: inline-flex; gap: 4px; color: var(--gold); }
.words .stars .icon { width: 17px; height: 17px; }
.quotes { display: grid; margin: 34px auto 0; max-width: 1000px; }
.q { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.q.on { opacity: 1; visibility: visible; transform: none; transition: opacity .8s var(--ease) .45s, transform .8s var(--ease) .45s, visibility 0s .45s; }
.quote-text { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3.1rem); line-height: 1.18; font-weight: 500; }
.q figcaption { margin-top: 28px; color: var(--ink-soft); }
.q figcaption b { color: var(--ink); font-weight: 600; }
.q-nav { margin-top: 40px; display: flex; justify-content: center; align-items: center; gap: 22px; }
.q-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: border-color .3s, background .3s; }
.q-nav button:hover { border-color: var(--ink); }
.q-nav .icon { width: 18px; height: 18px; }
.q-nav .prev .icon { transform: rotate(180deg); }
.q-dots { display: flex; gap: 8px; }
.q-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.q-dots i.on { background: var(--gold); width: 22px; border-radius: 3px; }
.words .src { margin: 36px auto 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.about .ph { aspect-ratio: 4 / 5; overflow: hidden; }
.about .ph img { width: 100%; height: 112%; object-fit: cover; }
.about p { margin-top: 20px; color: var(--ink-soft); }
.about .ph-portrait { aspect-ratio: 672 / 678; background: #000; }
.about .ph-portrait img { height: 100%; animation: none !important; }
.kinds { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: calc(-1 * clamp(24px, 3vw, 48px)) 0 clamp(48px, 6vw, 80px); }
.kinds li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--paper); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-family: var(--serif); font-size: clamp(1.35rem, 1.9vw, 1.7rem); font-weight: 500; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 22px; height: 22px; color: var(--gold); transition: transform .4s var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--ink-soft); }

/* ---------- quote + footer (the one dark block) ---------- */
.cta { background: var(--navy-deep); color: var(--on-dark); }
.cta h2 { color: #fff; font-size: clamp(3rem, 6.4vw, 6rem); }
.cta h2 em { color: var(--gold-soft); }
.cta .lead { color: var(--on-dark-soft); margin-top: 24px; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.phone-xl { display: inline-block; margin-top: 40px; font-family: var(--serif); font-size: clamp(2.6rem, 4.6vw, 4.2rem); font-weight: 500; color: var(--gold-soft); text-decoration: none; line-height: 1; border-bottom: 1px solid rgba(205,173,108,.4); padding-bottom: 8px; transition: color .3s, border-color .3s; }
.phone-xl:hover { color: #fff; border-color: #fff; }
.contact { list-style: none; margin-top: 34px; display: grid; gap: 14px; color: var(--on-dark-soft); }
.contact li { display: flex; align-items: center; gap: 14px; }
.contact a { text-decoration: none; } .contact a:hover { color: #fff; }
.contact .icon { width: 18px; height: 18px; color: var(--gold-soft); }
.form { display: grid; gap: 22px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 10px; }
.field label { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-soft); }
.field input, .field select, .field textarea { font: 400 1.05rem var(--sans); color: #fff; background: transparent; border: 0; border-bottom: 1px solid rgba(241,239,233,.3); border-radius: 0; padding: 10px 0 14px; transition: border-color .3s; }
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23cdad6c' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field select option { color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-soft); }
.field input:user-invalid { border-color: #e7867a; }
.field .hint { font-size: .84rem; color: var(--on-dark-soft); }
.form .btn { justify-self: start; margin-top: 8px; }
.hp { position: absolute; left: -9999px; }
.foot { margin-top: clamp(100px, 12vw, 170px); border-top: 1px solid rgba(241,239,233,.14); padding: 56px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; color: var(--on-dark-soft); font-size: .93rem; }
.foot .brand { color: #fff; }
.foot h4 { font: 600 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 20px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { text-decoration: none; white-space: nowrap; }
.foot a:hover { color: #fff; }
.foot .tag { margin-top: 18px; max-width: 30ch; }
.foot .socials { display: flex; gap: 16px; margin-top: 22px; }
.foot .socials .icon { width: 22px; height: 22px; }
.legal { padding: 22px 0 34px; border-top: 1px solid rgba(241,239,233,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--on-dark-soft); font-size: .82rem; }

/* ---------- projects page ---------- */
.page-head { padding: clamp(80px, 10vw, 150px) 0 clamp(56px, 7vw, 100px); }
.crumbs { font-size: .84rem; color: var(--ink-soft); margin-bottom: 30px; letter-spacing: .04em; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--gold); }
.page-head h1 { font-size: clamp(3.4rem, 8vw, 7.6rem); max-width: 14ch; line-height: .95; }
.page-head .lead { margin-top: 28px; }
.page-head .actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.proj { padding: clamp(70px, 9vw, 130px) 0; border-top: 1px solid var(--line); }
.proj-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 100px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.proj-head .caps { color: var(--gold); display: block; margin-bottom: 16px; }
.proj-head p { color: var(--ink-soft); }
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(10px, 1.4vw, 20px); }
.gal a { position: relative; display: block; overflow: hidden; background: var(--stone); cursor: zoom-in; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gal a:hover img { transform: scale(1.04); }
.gal .p { grid-column: span 4; aspect-ratio: 3 / 4; }
.gal .l { grid-column: span 8; aspect-ratio: 4 / 3; }
.gal .big { grid-column: span 6; aspect-ratio: 3 / 4; }
.split-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: center; padding-block: clamp(60px, 7vw, 110px); }
.split-hero .ph { aspect-ratio: 4 / 5; overflow: hidden; }
.split-hero .ph img { width: 100%; height: 100%; object-fit: cover; }
.split-hero h1 { font-size: clamp(3rem, 6.2vw, 6rem); line-height: .98; }
.prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); }
.prose h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 18px; }
.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 16px; }
.pull { margin-top: clamp(64px, 8vw, 110px); max-width: 900px; }
.pull .quote-text { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.pull figcaption { margin-top: 20px; color: var(--ink-soft); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(10,15,30,.96); display: none; place-items: center; padding: 60px 70px; }
.lb.open { display: grid; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.lb p { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: var(--on-dark-soft); font-size: .9rem; max-width: none; }
.lb button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255,255,255,.16); }
.lb .icon { width: 20px; height: 20px; }
.lb .x { top: 22px; right: 22px; } .lb .pv { left: 18px; top: 50%; margin-top: -26px; } .lb .nx { right: 18px; top: 50%; margin-top: -26px; }
.lb .pv .icon { transform: rotate(180deg); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .creds { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .trades { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .intro-grid, .svc-head, .ba-grid, .about-grid, .faq-grid, .cta-grid, .proj-head, .split-hero, .prose { grid-template-columns: 1fr; }
  .svc-head p { justify-self: start; }
  .trades-head, .beyond-grid { grid-template-columns: 1fr; }
  .trades-head .lead { justify-self: start; }
  .fp { grid-template-columns: 1fr; }
  .fp .ph, .fp .txt, .fp-a .ph-2 { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .fp-a .ph-2 { display: none; }
  .fp .txt { padding-bottom: 0; }
  .fp-b .ph { aspect-ratio: 4 / 3; }
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .svc-wide { grid-template-columns: 1fr; }
  .compare { justify-self: start; }
  .gal .p, .gal .big { grid-column: span 6; }
  .gal .l { grid-column: span 12; }
  .lb { padding: 60px 12px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .form .row { grid-template-columns: 1fr; }
  .trades { grid-template-columns: 1fr; }
  .beyond-list li { grid-template-columns: 1fr; gap: 4px; }
  .form .btn { justify-self: stretch; }
  .foot { grid-template-columns: 1fr; }
  .gal .p, .gal .big { grid-column: span 12; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-r], .js [data-r] > * { opacity: 1; transform: none; clip-path: none !important; }
}
