:root {
  --ink: #101d27;
  --ink-soft: #283843;
  --blue: #345f84;
  --blue-deep: #183d5a;
  --paper: #fff;
  --stone: #f2f0eb;
  --line: rgba(16, 29, 39, .15);
  --shell: min(1180px, calc(100vw - 48px));
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; }
h1 { max-width: 890px; margin-bottom: 28px; font-size: clamp(3rem, 6.8vw, 7rem); }
h2 { margin-bottom: 30px; font-size: clamp(2.5rem, 5vw, 5rem); }
h3 { margin-bottom: 16px; font-size: clamp(1.65rem, 2.4vw, 2.55rem); }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: clamp(84px, 10vw, 150px) 0; }
.section-stone { background: var(--stone); }
.section-dark { background: var(--ink); color: #fff; }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading-row { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 32px; }
.eyebrow { margin-bottom: 18px; color: var(--blue); font-size: .77rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: #89b1d1; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 100px; background: var(--ink); color: #fff; font-size: .84rem; font-weight: 650; letter-spacing: .06em; padding: 0 26px; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--blue-deep); }
.button-small { min-height: 44px; padding-inline: 22px; }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { color: #fff; }
.button-light { border-color: #fff; background: #fff; color: var(--ink); }
.button-light:hover { background: transparent; color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-deep); font-weight: 700; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { z-index: 100; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(255, 255, 255, .95); box-shadow: 0 8px 30px rgba(16, 29, 39, .07); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 104px; align-items: center; justify-content: space-between; transition: min-height .25s ease; }
.is-scrolled .header-inner { min-height: 78px; }
.brand { display: block; flex: 0 0 auto; }
.brand img, .custom-logo { width: 72px; height: 72px; object-fit: contain; transition: width .25s ease, height .25s ease; }
.is-scrolled .brand img, .is-scrolled .custom-logo { width: 58px; height: 58px; }
.custom-logo-link { display: block; }
.primary-nav { display: flex; align-items: center; gap: clamp(22px, 2.3vw, 38px); }
.primary-nav > a:not(.button) { font-size: .88rem; font-weight: 600; text-decoration: none; }
.primary-nav > a:not(.button):hover { color: var(--blue); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); padding: 12px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: #fff; }

.hero { position: relative; min-height: min(900px, 100svh); overflow: hidden; display: flex; align-items: center; background: #dde6ec; }
.hero-image { position: absolute; inset: 0; background: url('../images/hero.webp') center 42% / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,.15) 70%, rgba(16,29,39,.2) 100%); clip-path: polygon(0 0, 74% 0, 53% 100%, 0 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 126px; }
.hero-content h1 { max-width: 820px; }
.hero-copy { max-width: 610px; margin-bottom: 36px; color: var(--ink-soft); font-size: clamp(1.03rem, 1.5vw, 1.25rem); }

.split-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(54px, 9vw, 130px); }
.prose { color: var(--ink-soft); font-size: 1.08rem; }
.prose p { margin-bottom: 22px; }

.slider-controls { display: flex; gap: 10px; padding-bottom: 14px; }
.slider-controls button { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 1.3rem; }
.slider-controls button:hover { background: #fff; color: var(--ink); }
.portfolio-track { min-height: 650px; outline: none; }
.portfolio-card { display: none; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr); min-height: 610px; background: #fff; color: var(--ink); }
.portfolio-card.is-active { display: grid; animation: reveal .45s ease both; }
.portfolio-card img { width: 100%; height: 100%; min-height: 610px; object-fit: cover; }
.portfolio-info { display: flex; flex-direction: column; justify-content: end; padding: clamp(34px, 5vw, 68px); }
.portfolio-count { margin-bottom: auto; color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .12em; }
.portfolio-info dl { margin: 24px 0 0; }
.portfolio-info dl div { display: grid; grid-template-columns: 76px 1fr; gap: 14px; border-top: 1px solid var(--line); padding: 14px 0; }
.portfolio-info dt { color: #63727b; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-info dd { margin: 0; font-weight: 650; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card { border: 1px solid var(--line); background: #fff; }
.listing-image-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.listing-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.listing-card:hover img { transform: scale(1.025); }
.listing-content { padding: 28px; }
.listing-content h3 { font-size: 2rem; }
.listing-location { margin-bottom: 8px; color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.listing-specs { min-height: 54px; font-size: .85rem; font-weight: 700; line-height: 1.45; }
.listing-content > p:last-child { margin-bottom: 0; color: #56646d; font-size: .92rem; }
.listing-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); margin-top: 58px; padding-top: 36px; }
.listing-cta h3 { margin-bottom: 8px; font-size: 2rem; }
.listing-cta p { margin-bottom: 0; color: #56646d; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; }
.service-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.service-card > div { padding: 30px; }
.service-card h3 { font-size: 2rem; }
.service-card p { margin: 0; color: #56646d; }
.ppm-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-top: 70px; padding: clamp(38px, 5vw, 68px); background: var(--blue-deep); color: #fff; }
.ppm-card h3 { font-size: clamp(2.2rem, 4vw, 4rem); }
.ppm-card p:last-child { max-width: 620px; margin-bottom: 0; color: #cfdae2; }

.testimonials h2 { max-width: 720px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 54px; }
.testimonial-grid blockquote { margin: 0; border-top: 2px solid var(--ink); padding-top: 28px; }
.testimonial-grid blockquote p { min-height: 155px; font-family: var(--serif); font-size: 1.48rem; line-height: 1.35; }
.testimonial-grid cite { color: var(--blue); font-size: .78rem; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.contact-section { background: var(--blue-deep); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: clamp(60px, 10vw, 150px); }
.contact-grid h2 { max-width: 760px; }
.contact-grid > div > p:last-child { max-width: 590px; color: #cfdae2; }
.contact-details { font-style: normal; }
.contact-details > div { border-top: 1px solid rgba(255,255,255,.23); padding: 20px 0; }
.contact-details span { display: block; margin-bottom: 6px; color: #89b1d1; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-details a { font-family: var(--serif); font-size: 1.55rem; text-decoration: none; }
.contact-details p { margin: 0; font-family: var(--serif); font-size: 1.42rem; line-height: 1.35; }
.site-footer { padding: 58px 0; background: #0a141b; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; }
.footer-message { max-width: 650px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; }
.footer-minimum { margin-bottom: 0; color: #89b1d1; font-size: .88rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.footer-brand { text-align: right; }
.footer-brand img { width: 100px; margin: 0 0 14px auto; }
.footer-brand p { margin: 3px 0; color: #aebbc4; font-size: .78rem; }
.footer-brand a { color: #fff; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .site-header { background: rgba(255,255,255,.96); }
  .header-inner { min-height: 82px; }
  .brand img, .custom-logo, .is-scrolled .brand img, .is-scrolled .custom-logo { width: 58px; height: 58px; }
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 82px 0 0; display: none; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; background: var(--ink); padding: 36px; color: #fff; }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a:not(.button) { border-top: 1px solid rgba(255,255,255,.18); padding: 17px 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
  .primary-nav .button { margin-top: 22px; border-color: #fff; background: #fff; color: var(--ink); }
  .hero { min-height: 820px; align-items: end; }
  .hero-image { background-position: 62% center; }
  .hero-overlay { clip-path: none; background: linear-gradient(0deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.89) 58%, rgba(255,255,255,.08) 100%); }
  .hero-content { padding: 170px 0 76px; }
  .hero-content h1 { font-size: clamp(3rem, 9vw, 5.2rem); }
  .split-grid, .contact-grid { grid-template-columns: 1fr; }
  .portfolio-card { grid-template-columns: 1fr; }
  .portfolio-card img { min-height: 420px; max-height: 520px; }
  .portfolio-info { min-height: 330px; }
  .portfolio-count { margin-bottom: 60px; }
  .listing-grid, .services-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .listing-specs, .testimonial-grid blockquote p { min-height: 0; }
  .ppm-card { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  .section { padding: 78px 0; }
  .hero { min-height: 760px; }
  .hero-content h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .section-heading-row { align-items: start; flex-direction: column; }
  .portfolio-track { min-height: 0; }
  .portfolio-card img { min-height: 310px; }
  .portfolio-info { min-height: 310px; padding: 28px; }
  .listing-cta, .footer-grid { align-items: start; flex-direction: column; grid-template-columns: 1fr; }
  .footer-brand { text-align: left; }
  .footer-brand img { margin-left: 0; }
  .ppm-card { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

