@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Serif+Display:ital@0;1&family=Manrope:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--brand-ink);
  background: var(--brand-paper);
  font: 400 var(--type-body)/1.55 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.045em;
  text-wrap: balance;
}
h1 { font-size: var(--type-h1); }
h2 { font-size: var(--type-h2); }
h3 { font-size: clamp(1.35rem, 2.3vw, 2rem); }
p { text-wrap: pretty; }

.skip-link { position: fixed; z-index: 999; left: 1rem; top: -5rem; padding: .8rem 1rem; background: var(--brand-ink); color: var(--brand-paper); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 4px; }
.container { width: var(--layout-container); margin-inline: auto; padding-inline: var(--layout-gutter); }
.section { position: relative; padding-block: var(--space-section); }
.section--surface { background: var(--brand-surface); }
.section--ink { color: var(--brand-on-secondary); background: var(--brand-secondary); }
.section--ink .muted, .section--ink .section-lead { color: color-mix(in srgb, var(--brand-on-secondary) 68%, transparent); }
.eyebrow { margin-bottom: .9rem; color: var(--brand-primary); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ''; display: inline-block; width: 2.25rem; height: 2px; margin-right: .65rem; vertical-align: middle; background: currentColor; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.section-head h2 { max-width: 13ch; margin-bottom: 0; }
.section-lead { max-width: 39rem; margin: 0; color: var(--brand-muted); font-size: 1.08rem; }
.muted { color: var(--brand-muted); }
.kicker { font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.grain-overlay { position: fixed; z-index: 95; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: var(--grain-opacity); mix-blend-mode: multiply; }
body[data-theme='heritage'] .grain-overlay { mix-blend-mode: soft-light; }
.concept-strip { position: relative; z-index: 102; padding: .45rem 1rem; color: #fff; background: var(--brand-secondary); text-align: center; font-size: .7rem; letter-spacing: .04em; }
.concept-strip a { text-underline-offset: .18em; }
.site-header { position: sticky; z-index: 100; top: 0; padding: .7rem 0; pointer-events: none; }
.nav-shell {
  display: flex;
  min-height: 4.7rem;
  align-items: center;
  gap: 1.25rem;
  padding: .7rem .75rem .7rem 1rem;
  border: 1px solid color-mix(in srgb, var(--brand-ink) 12%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-surface) 88%, transparent);
  box-shadow: 0 18px 55px color-mix(in srgb, var(--brand-ink) 14%, transparent);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}
.brand { flex: 0 0 auto; width: clamp(9rem, 14vw, 13.5rem); text-decoration: none; }
.brand img { width: 100%; max-height: 3.15rem; object-fit: contain; object-position: left center; }
.site-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: clamp(.6rem, 1.5vw, 1.35rem); }
.site-nav > a { position: relative; padding: .75rem 0; text-decoration: none; font-size: .78rem; font-weight: 800; }
.site-nav > a:not(.nav-cta)::after { content: ''; position: absolute; right: 0; bottom: .45rem; left: 0; height: 2px; background: var(--brand-primary); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--motion-easing); }
.site-nav > a:hover::after, .site-nav > a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav-phone { display: flex; flex-direction: column; padding-inline: .6rem; text-decoration: none; line-height: 1.05; }
.nav-phone span { color: var(--brand-muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; }
.nav-phone strong { font-size: .82rem; }
.nav-toggle { display: none; min-width: 3rem; min-height: 3rem; border: 1px solid var(--brand-line); border-radius: 999px; background: var(--brand-surface); color: var(--brand-ink); font-weight: 800; }

.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.1rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-size: .78rem; font-weight: 800; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: var(--brand-on-primary); background: var(--brand-primary); box-shadow: 0 15px 36px color-mix(in srgb, var(--brand-primary) 30%, transparent); }
.button--secondary { border-color: var(--brand-line); color: var(--brand-ink); background: var(--brand-surface); }
.button--ghost { border-color: color-mix(in srgb, var(--brand-on-secondary) 22%, transparent); color: var(--brand-on-secondary); background: transparent; }
.button--wide { min-width: 13rem; }

.hero { position: relative; min-height: calc(100svh - 7rem); display: grid; align-items: center; padding: clamp(2rem, 5vw, 5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,.92fr) minmax(22rem,1.08fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero-copy { position: relative; z-index: 3; }
.hero-copy h1 { max-width: 9.5ch; margin-bottom: 1.25rem; }
.hero-copy .lead { max-width: 38rem; color: var(--brand-muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.micro-proof { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin: 1.8rem 0 0; padding: 0; list-style: none; color: var(--brand-muted); font-size: .78rem; font-weight: 700; }
.micro-proof li::before { content: '◆'; margin-right: .45rem; color: var(--brand-accent); font-size: .55rem; }
.hero-media { position: relative; min-height: clamp(31rem, 64vw, 46rem); perspective: 1200px; }
.hero-frame { position: absolute; inset: 0 0 0 7%; overflow: hidden; border-radius: var(--radius-brand); background: var(--brand-secondary); box-shadow: 0 42px 100px color-mix(in srgb, var(--brand-ink) 26%, transparent); transform: rotateY(-2deg) rotateX(.8deg); transform-style: preserve-3d; }
.hero-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--brand-secondary) 78%, transparent)); pointer-events: none; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-position,center); filter: saturate(.82) contrast(1.08); }
.hero-caption { position: absolute; z-index: 4; right: 1.2rem; bottom: 1.1rem; color: #fff; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.float-card {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--brand-ink) 14%, transparent);
  border-radius: var(--radius-brand);
  background: color-mix(in srgb, var(--brand-surface) 88%, transparent);
  box-shadow: 0 24px 65px color-mix(in srgb, var(--brand-ink) 16%, transparent);
  backdrop-filter: blur(18px);
  transform: perspective(950px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .3s ease, box-shadow .3s ease;
}
.float-card > * { position: relative; transform: translateZ(22px); }
.float-card:hover { border-color: color-mix(in srgb, var(--brand-primary) 52%, transparent); box-shadow: 0 32px 78px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.float-card::after { content: ''; position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(110deg,transparent 26%,rgba(255,255,255,.26) 43%,transparent 59%); transform: translateX(-120%); transition: transform .8s var(--motion-easing); pointer-events: none; }
.float-card:hover::after { transform: translateX(120%); }
.hero-float { position: absolute; z-index: 5; left: 0; bottom: 2rem; width: min(24rem, 70%); padding: 1.45rem; }
.hero-float strong { display: block; margin-bottom: .45rem; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1; }
.hero-float p { margin: 0; color: var(--brand-muted); font-size: .88rem; }
.orbit-field { position: absolute; z-index: -1; inset: 7% -7% 4% 18%; perspective: 900px; opacity: .6; pointer-events: none; }
.orbit { position: absolute; inset: 12%; border: 1px solid color-mix(in srgb, var(--brand-primary) 44%, transparent); border-radius: 50%; transform-style: preserve-3d; animation: orbit-turn 18s linear infinite; }
.orbit:nth-child(2) { inset: 25%; border-color: color-mix(in srgb, var(--brand-accent) 54%, transparent); animation-duration: 13s; animation-direction: reverse; transform: rotateX(68deg) rotateY(18deg); }
.orbit:nth-child(3) { inset: 37%; border-width: 2px; animation-duration: 9s; transform: rotateY(72deg); }
@keyframes orbit-turn { to { transform: rotateX(360deg) rotateY(180deg) rotateZ(60deg); } }

.proof-rail { color: var(--brand-on-secondary); background: var(--brand-secondary); }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.proof-item { min-height: 8rem; display: flex; flex-direction: column; justify-content: center; padding: 1.4rem; border-right: 1px solid color-mix(in srgb, var(--brand-on-secondary) 12%, transparent); }
.proof-item:first-child { border-left: 1px solid color-mix(in srgb, var(--brand-on-secondary) 12%, transparent); }
.proof-item strong { font: 800 clamp(1.35rem,2.2vw,2.2rem)/1 var(--font-display); }
.proof-item span { margin-top: .45rem; color: color-mix(in srgb, var(--brand-on-secondary) 60%, transparent); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }

.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.service-card { min-height: 22rem; display: flex; flex-direction: column; padding: clamp(1.35rem,3vw,2.3rem); overflow: hidden; }
.service-card .number { color: var(--brand-primary); font: 800 1rem/1 var(--font-display); }
.service-card h3 { max-width: 12ch; margin: auto 0 .8rem; }
.service-card p { color: var(--brand-muted); }
.service-card a { margin-top: 1rem; color: var(--brand-primary); font-size: .78rem; font-weight: 800; text-decoration: none; }
.story-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(20rem,.95fr); min-height: 44rem; }
.story-media { position: relative; min-height: 36rem; overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.media-label { position: absolute; right: .75rem; bottom: .75rem; padding: .35rem .5rem; color: #fff; background: #000a; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem,7vw,6rem); color: var(--brand-on-secondary); background: var(--brand-secondary); }
.story-copy h2 { max-width: 10ch; }
.story-copy > p:not(.eyebrow) { color: color-mix(in srgb, var(--brand-on-secondary) 68%, transparent); }
.story-quote { margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--brand-on-secondary) 18%, transparent); font: italic clamp(1.15rem,2vw,1.55rem)/1.35 'DM Serif Display',Georgia,serif; }
.story-quote cite { display: block; margin-top: 1rem; font: 600 .62rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid color-mix(in srgb,var(--brand-on-secondary) 18%,transparent); border-left: 1px solid color-mix(in srgb,var(--brand-on-secondary) 18%,transparent); }
.process-step { min-height: 21rem; padding: clamp(1.5rem,4vw,3rem); border-right: 1px solid color-mix(in srgb,var(--brand-on-secondary) 18%,transparent); border-bottom: 1px solid color-mix(in srgb,var(--brand-on-secondary) 18%,transparent); }
.process-step .number { color: var(--brand-accent); font: 800 clamp(2rem,4vw,4rem)/1 var(--font-display); }
.process-step h3 { margin-top: 4rem; }
.process-step p { color: color-mix(in srgb,var(--brand-on-secondary) 62%,transparent); }
.cta-band { position: relative; overflow: hidden; padding-block: clamp(4rem,8vw,7rem); color: var(--brand-on-primary); background: var(--brand-primary); }
.cta-band::before { content: ''; position: absolute; width: 38rem; aspect-ratio: 1; right: -10rem; top: -16rem; border: 6rem solid color-mix(in srgb,var(--brand-on-primary) 7%,transparent); border-radius: 50%; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cta-grid h2 { max-width: 12ch; margin-bottom: .8rem; }
.cta-grid p { max-width: 42rem; margin: 0; color: color-mix(in srgb,var(--brand-on-primary) 72%,transparent); }

.subhero { position: relative; padding: clamp(4rem,10vw,8rem) 0 clamp(3.5rem,8vw,6rem); overflow: hidden; }
.subhero-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(2rem,6vw,6rem); align-items: end; }
.breadcrumbs { display: flex; gap: .5rem; margin-bottom: 1.4rem; color: var(--brand-muted); font-size: .75rem; font-weight: 700; }
.subhero h1 { max-width: 10ch; margin-bottom: 1.2rem; }
.subhero .lead { max-width: 42rem; color: var(--brand-muted); font-size: 1.15rem; }
.subhero-panel { padding: clamp(1.4rem,3vw,2.5rem); }
.subhero-panel strong { display: block; font: 800 clamp(1.6rem,3vw,2.7rem)/1 var(--font-display); }
.subhero-panel p { margin: .7rem 0 0; color: var(--brand-muted); }
.detail-list { border-top: 1px solid var(--brand-line); }
.detail-row { display: grid; grid-template-columns: 4rem minmax(12rem,.45fr) 1fr auto; gap: 1.5rem; align-items: start; padding: clamp(1.6rem,4vw,3rem) 0; border-bottom: 1px solid var(--brand-line); }
.detail-row .number { color: var(--brand-primary); font: 800 1.5rem/1 var(--font-display); }
.detail-row h2 { font-size: clamp(1.7rem,3vw,2.6rem); }
.detail-row p { max-width: 45rem; color: var(--brand-muted); }
.detail-row a { color: var(--brand-primary); font-size: .78rem; font-weight: 800; text-decoration: none; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.feature { min-height: 18rem; padding: 2rem; }
.feature h3 { margin-top: 4rem; }
.feature p { color: var(--brand-muted); }
.timeline { display: grid; gap: 1px; background: var(--brand-line); border: 1px solid var(--brand-line); }
.timeline-item { display: grid; grid-template-columns: minmax(8rem,.35fr) 1fr; gap: 2rem; padding: clamp(1.5rem,4vw,3rem); background: var(--brand-surface); }
.timeline-item strong { color: var(--brand-primary); font: 800 clamp(1.5rem,3vw,2.4rem)/1 var(--font-display); }
.timeline-item p { margin: 0; color: var(--brand-muted); }
.project-grid { display: grid; grid-template-columns: repeat(12,1fr); grid-auto-rows: 7rem; gap: 1rem; }
.project-card { position: relative; grid-column: span 7; grid-row: span 5; overflow: hidden; border-radius: var(--radius-brand); background: var(--brand-secondary); }
.project-card:nth-child(2) { grid-column: span 5; grid-row: span 4; }
.project-card:nth-child(3) { grid-column: 8 / span 5; grid-row: span 4; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--motion-easing), filter .5s ease; }
.project-card:hover img { transform: scale(1.035); }
.project-card figcaption { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; padding: 1rem; color: #fff; background: #000b; border: 1px solid #fff3; border-radius: calc(var(--radius-brand)*.7); backdrop-filter: blur(10px); }
.project-card figcaption strong { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.project-card figcaption span { font-size: .68rem; opacity: .75; }
.quote-stage { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,8vw,8rem); align-items: center; }
.quote-mark { color: var(--brand-primary); font: 800 clamp(7rem,18vw,15rem)/.55 'DM Serif Display',Georgia,serif; }
.quote-stage blockquote { margin: 0; font: italic clamp(2rem,4.5vw,4.5rem)/1.05 'DM Serif Display',Georgia,serif; }
.quote-stage cite { display: block; margin-top: 2rem; color: var(--brand-muted); font: 700 .72rem/1.5 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.proof-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.proof-card { min-height: 17rem; padding: 2rem; }
.proof-card strong { display: block; color: var(--brand-primary); font: 800 1.8rem/1 var(--font-display); }
.proof-card h3 { margin-top: 3.5rem; }
.proof-card p { color: var(--brand-muted); }
.map-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,6vw,6rem); align-items: center; }
.map-board { position: relative; min-height: 35rem; overflow: hidden; border: 1px solid var(--brand-line); border-radius: var(--radius-brand); background: var(--brand-surface); }
.map-board::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,transparent 49.5%,var(--brand-line) 50%,transparent 50.5%),linear-gradient(transparent 49.5%,var(--brand-line) 50%,transparent 50.5%); background-size: 4rem 4rem; opacity: .75; }
.map-river { position: absolute; width: 42%; height: 125%; left: 30%; top: -10%; border: 2.2rem solid color-mix(in srgb,var(--brand-primary) 16%,transparent); border-top: 0; border-bottom: 0; border-radius: 48%; transform: rotate(19deg); }
.map-pin { position: absolute; left: 52%; top: 47%; display: grid; width: 5rem; height: 5rem; place-items: center; border: 1rem solid color-mix(in srgb,var(--brand-primary) 16%,transparent); border-radius: 50%; color: var(--brand-on-primary); background: var(--brand-primary); box-shadow: 0 20px 60px color-mix(in srgb,var(--brand-primary) 40%,transparent); font-weight: 900; transform: translate(-50%,-50%); }
.area-list { display: grid; gap: 1rem; }
.area-item { padding: 1.25rem 0; border-bottom: 1px solid var(--brand-line); }
.area-item strong { display: block; font: 800 1.4rem/1 var(--font-display); }
.area-item span { color: var(--brand-muted); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,7vw,7rem); align-items: start; }
.contact-card { padding: clamp(1.5rem,4vw,3rem); color: var(--brand-on-secondary); background: var(--brand-secondary); }
.contact-card a { display: block; margin-top: .5rem; font: 800 clamp(1.25rem,2vw,1.8rem)/1.2 var(--font-display); text-decoration: none; }
.contact-meta { display: grid; gap: 1.4rem; margin-top: 3rem; }
.contact-meta span { display: block; color: color-mix(in srgb,var(--brand-on-secondary) 60%,transparent); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-meta p { margin: .25rem 0 0; }
.estimate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: clamp(1.4rem,4vw,3rem); border: 1px solid var(--brand-line); border-radius: var(--radius-brand); background: var(--brand-surface); }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.field input,.field select,.field textarea { width: 100%; min-height: 3rem; padding: .8rem; border: 1px solid var(--brand-line); border-radius: calc(var(--radius-brand)*.45); color: var(--brand-ink); background: color-mix(in srgb,var(--brand-paper) 70%,white); }
.field textarea { min-height: 8rem; resize: vertical; }
.form-status { grid-column: 1/-1; min-height: 1.4rem; margin: 0; color: var(--brand-primary); font-weight: 700; }
.faq-list { border-top: 1px solid var(--brand-line); }
.faq-item { border-bottom: 1px solid var(--brand-line); }
.faq-item summary { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { max-width: 50rem; padding-bottom: 1.5rem; color: var(--brand-muted); }

.site-footer { padding: 4rem 0 6rem; color: color-mix(in srgb,var(--brand-on-secondary) 72%,transparent); background: var(--brand-secondary); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.footer-brand img { width: min(15rem,80%); max-height: 5rem; object-fit: contain; object-position: left; filter: drop-shadow(0 6px 16px #0003); }
.footer-brand p { max-width: 27rem; margin-top: 1.2rem; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-col strong { color: var(--brand-on-secondary); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-col a { text-decoration: none; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb,var(--brand-on-secondary) 12%,transparent); font-size: .66rem; }
.mobile-dock { display: none; }

/* Interaction and content-card refinement: the reading order stays calm while
   desktop pointers get a much more tactile, dimensional response. */
.subhero-panel,.feature,.proof-card,.contact-card,.estimate-form,.timeline-item,.detail-row {
  border: 1px solid color-mix(in srgb, var(--brand-ink) 12%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand-ink) 6%, transparent);
}
.subhero-panel,.feature,.proof-card,.contact-card,.estimate-form { overflow: hidden; }
.feature,.proof-card { display: flex; flex-direction: column; }
.feature h3,.proof-card h3 { margin-bottom: .8rem; }
.feature p,.proof-card p { max-width: 34ch; }
.detail-list { display: grid; gap: .85rem; border-top: 0; }
.detail-row {
  position: relative;
  padding: clamp(1.35rem,3vw,2.4rem);
  border-radius: calc(var(--radius-brand) + .35rem);
  background: color-mix(in srgb, var(--brand-surface) 94%, var(--brand-paper));
}
.detail-row::before,.timeline-item::before {
  content: '';
  width: .5rem;
  height: .5rem;
  align-self: start;
  margin-top: .4rem;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--brand-accent) 14%, transparent);
}
.detail-row .number { display: none; }
.timeline-item { position: relative; overflow: hidden; }
.timeline-item::before { position: absolute; top: clamp(1.5rem,4vw,3rem); left: clamp(1.5rem,4vw,3rem); }
.timeline-item strong { padding-left: 1.15rem; }
.eyebrow::before {
  width: .5rem;
  height: .5rem;
  margin-right: .55rem;
  border-radius: 50%;
}
.button,.nav-toggle,.site-nav > a,.project-card,.service-card,.proof-card,.detail-row,.timeline-item,.subhero-panel,.contact-card,.estimate-form {
  will-change: transform;
}
.button { transform: translate3d(0,0,0); transition: transform .34s var(--motion-easing), box-shadow .34s var(--motion-easing), background .28s ease, border-color .28s ease; }
.button:hover { transform: translate3d(0,-5px,18px) scale(1.025); }
.button:active { transform: translate3d(0,-1px,4px) scale(.985); }
.button::after { content: '→'; display: inline-block; margin-left: .1rem; transition: transform .3s var(--motion-easing); }
.button:hover::after { transform: translate3d(.28rem,0,0); }
.tilt-ready {
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0,var(--lift),0);
  transform-style: preserve-3d;
  transition: transform .18s ease-out, box-shadow .32s ease, border-color .32s ease;
}
.tilt-ready::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle 11rem at var(--glow-x) var(--glow-y), color-mix(in srgb, var(--brand-accent) 18%, transparent), transparent 68%);
  transition: opacity .28s ease;
  pointer-events: none;
}
.tilt-ready:hover { border-color: color-mix(in srgb, var(--brand-primary) 48%, transparent); box-shadow: 0 28px 62px color-mix(in srgb, var(--brand-ink) 16%, transparent); }
.tilt-ready:hover::before { opacity: 1; }
.tilt-ready > * { position: relative; z-index: 3; }
.float-card.tilt-ready { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0,var(--lift),0); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site-nav > a { transition: color .25s ease, transform .3s var(--motion-easing); }
  .site-nav > a:hover { transform: translate3d(0,-3px,10px); }
  .project-card:hover img { transform: scale(1.09) translate3d(0,-1.5%,0); filter: saturate(.92) contrast(1.12); }
  .service-card:hover a,.detail-row:hover a { display: inline-block; transform: translate3d(.35rem,0,0); }
  .service-card a,.detail-row a { transition: transform .3s var(--motion-easing), color .3s ease; }
}

body[data-theme='heritage'] { --radius-brand: .35rem; }
body[data-theme='heritage'] .nav-shell { border-radius: .35rem; }
body[data-theme='heritage'] .hero { color: #fff; background: var(--brand-secondary); }
body[data-theme='heritage'] .hero-copy .lead, body[data-theme='heritage'] .micro-proof { color: #ffffffb5; }
body[data-theme='heritage'] .hero-frame { border-radius: .25rem; transform: rotateY(-3deg) rotateX(1deg); }
body[data-theme='heritage'] .hero-float { color: var(--brand-on-secondary); background: color-mix(in srgb,var(--brand-secondary) 84%,transparent); border-color: #ffffff26; }
body[data-theme='heritage'] .hero-float p { color: #ffffffa8; }
body[data-theme='heritage'] .hero::after { content: 'PHL'; position: absolute; right: -2vw; bottom: -8vw; color: #ffffff08; font: 900 min(35vw,32rem)/1 var(--font-display); }
body[data-theme='architectural'] { --radius-brand: .15rem; }
body[data-theme='architectural'] h1, body[data-theme='architectural'] h2 { font-family: 'DM Serif Display',Georgia,serif; font-weight: 400; }
body[data-theme='architectural'] .nav-shell { border-radius: .25rem; }
body[data-theme='architectural'] .hero-frame { transform: rotate(1.1deg); }
body[data-theme='architectural'] .project-card img, body[data-theme='architectural'] .story-media img { filter: saturate(.68) contrast(1.08); }
body[data-theme='precision'] .nav-shell { box-shadow: 0 18px 55px color-mix(in srgb,var(--brand-primary) 14%,transparent); }
body[data-theme='precision'] .hero { background: radial-gradient(circle at 76% 22%,color-mix(in srgb,var(--brand-accent) 13%,transparent),transparent 31%),var(--brand-paper); }
body[data-theme='precision'] .hero-frame { border: 1px solid color-mix(in srgb,var(--brand-primary) 24%,transparent); transform: rotateY(-1.5deg); }
body[data-theme='precision'] .hero-frame img { filter: saturate(.72) contrast(1.08); }

/* Graveley luminous reading surfaces */
body[data-theme='heritage'] { --brand-muted:#536273; }
body[data-theme='heritage'] h1,body[data-theme='heritage'] h2 { font-weight:900; }
body[data-theme='heritage'] h1,body[data-theme='heritage'] h2 { background:linear-gradient(105deg,#101820 0 34%,#2f70ad 62%,#101820 92%); background-size:170% 100%; -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; filter:drop-shadow(0 8px 24px #4e85bf1f); }
body[data-theme='heritage'] .subhero-panel,body[data-theme='heritage'] .feature,body[data-theme='heritage'] .proof-card,body[data-theme='heritage'] .estimate-form,body[data-theme='heritage'] .timeline-item { color:#08111b; background:linear-gradient(145deg,#fff,#edf7ff); border-color:#fff; box-shadow:0 24px 62px #14283c26,0 0 32px #6aafff1f; }
body[data-theme='heritage'] .subhero-panel p,body[data-theme='heritage'] .feature p,body[data-theme='heritage'] .proof-card p,body[data-theme='heritage'] .timeline-item p { color:#435568; }
body[data-theme='heritage'] .subhero-panel:hover,body[data-theme='heritage'] .feature:hover,body[data-theme='heritage'] .proof-card:hover { box-shadow:0 34px 82px #14283c38,0 0 44px #6aafff35; transform:perspective(950px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(calc(var(--lift) - 7px)); }
body[data-theme='heritage'] .detail-row { margin:.8rem 0; padding:clamp(1.4rem,3vw,2.2rem); border:1px solid #fff; border-radius:.8rem; background:linear-gradient(145deg,#fff,#edf7ff); box-shadow:0 16px 38px #14283c1c; }
body[data-theme='heritage'] .faq-item { margin:.75rem 0; padding:0 1.25rem; border:1px solid #fff; border-radius:.7rem; background:#fff; box-shadow:0 12px 30px #14283c18; }
body[data-theme='heritage'] .section--ink h2,body[data-theme='heritage'] .cta-band h2,body[data-theme='heritage'] .story-copy h2,body[data-theme='heritage'] .contact-card h2 { background:linear-gradient(105deg,#fff 0 35%,#bce2ff 66%,#fff 92%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal { transform: translateY(1rem); transition: transform .65s var(--motion-easing); }
  .motion-ready .reveal.is-visible { transform: none; }
  .accent-line { position: relative; white-space: nowrap; }
  .accent-line::after { content: ''; position: absolute; right: 0; bottom: -.08em; left: 0; height: .08em; background: var(--brand-accent); transform: scaleX(0); transform-origin: left; animation: line-in .7s .4s var(--motion-easing) forwards; }
  @keyframes line-in { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .orbit-field { display: none; }
  .float-card { transform: none !important; }
}

@media (max-width: 72rem) {
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .site-nav { position: absolute; top: calc(100% + .5rem); right: var(--layout-gutter); left: var(--layout-gutter); display: none; flex-direction: column; align-items: stretch; padding: 1rem; border: 1px solid var(--brand-line); border-radius: var(--radius-brand); background: var(--brand-surface); box-shadow: 0 22px 55px #0003; }
  .site-nav.is-open { display: flex; }
  .site-nav > a { padding: .8rem; }
  .nav-phone { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 2rem; }
  .hero-media { min-height: 38rem; }
  .hero-frame { inset-left: 0; }
  .story-grid,.quote-stage,.map-layout,.contact-layout { grid-template-columns: 1fr; }
  .card-grid,.feature-grid,.proof-cards { grid-template-columns: repeat(2,1fr); }
  .project-grid { grid-auto-rows: 6rem; }
  .subhero-grid { grid-template-columns: 1fr; }
  .subhero-panel { max-width: 36rem; }
}

@media (max-width: 48rem) {
  body { padding-bottom: 5.8rem; }
  .concept-strip { font-size: .62rem; }
  .site-header { padding-top: .45rem; }
  .nav-shell { min-height: 4rem; padding: .45rem .5rem .45rem .75rem; }
  .brand { width: 9rem; }
  .hero { min-height: auto; padding-top: 1rem; }
  .hero-copy h1 { max-width: 10ch; }
  .hero-media { display: grid; min-height: auto; gap: 1rem; }
  .hero-frame { position: relative; inset: auto; min-height: 25rem; aspect-ratio: 4 / 5; transform: none !important; }
  .hero-float { position: relative; right: auto; bottom: auto; left: auto; width: 100%; }
  .orbit-field { inset: 10% -30% 20% 0; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-item { min-height: 6rem; border-bottom: 1px solid color-mix(in srgb,var(--brand-on-secondary) 12%,transparent); }
  .section-head { align-items: start; flex-direction: column; }
  .card-grid,.feature-grid,.proof-cards { grid-template-columns: 1fr; }
  .service-card { min-height: 17rem; }
  .story-grid { min-height: auto; }
  .story-media { min-height: 28rem; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: auto; }
  .process-step h3 { margin-top: 2rem; }
  .cta-grid { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: .7rem; }
  .detail-row::before { display: none; }
  .detail-row p,.detail-row a { grid-column: 1; }
  .timeline-item { grid-template-columns: 1fr; }
  .project-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: auto; }
  .project-card,.project-card:nth-child(2),.project-card:nth-child(3) { grid-column: 1; grid-row: auto; min-height: 27rem; }
  .quote-stage { gap: 0; }
  .quote-mark { font-size: 8rem; }
  .map-board { min-height: 27rem; }
  .estimate-form { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .mobile-dock { position: fixed; z-index: 110; right: .65rem; bottom: max(.65rem, env(safe-area-inset-bottom)); left: .65rem; display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border: 1px solid #ffffff2b; border-radius: 999px; box-shadow: 0 20px 55px #0007; }
  .mobile-dock a { display: grid; min-height: 3.2rem; place-items: center; color: var(--brand-on-secondary); background: var(--brand-secondary); text-decoration: none; font-size: .75rem; font-weight: 800; }
  .mobile-dock a:last-child { color: var(--brand-on-primary); background: var(--brand-primary); }
  .site-footer { padding-bottom: 7rem; }
}
