/*
  Design: Quiet Architecture for New Haven Properties.
  Calm founder-led residential editorial styling: evergreen, sage, warm stone, linen.
  Does this reinforce or dilute our design philosophy? Every rule below favours clarity, warmth, and earned proof.
*/
:root {
  --evergreen: #31493c;
  --evergreen-deep: #20342a;
  --sage: #7b927d;
  --moss: #5e7a5a;
  --stone: #8b8071;
  --linen: #f4f1ea;
  --paper: #fffdf9;
  --charcoal: #1f2823;
  --muted: #677069;
  --line: #ded8ce;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 40, 35, 0.11);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--charcoal); padding: .7rem 1rem; border: 2px solid var(--moss); }
.skip-link:focus { top: 1rem; }
.container { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto; }
.eyebrow { margin: 0 0 .8rem; color: var(--moss); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--light { color: #c5d7c7; }
.display { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; letter-spacing: -.035em; line-height: .98; }
.display--xl { font-size: clamp(2.75rem, 5vw, 4.2rem); }
.display--lg { font-size: clamp(2.65rem, 5vw, 4.6rem); }
.display--md { font-size: clamp(2.1rem, 3.6vw, 3.3rem); }
.lead { color: #4c5950; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.75; max-width: 43rem; }
.lead--light { color: #e7eee8; }
.section { padding: clamp(3.8rem, 6.5vw, 6.5rem) 0; }
.section--compact { padding: clamp(3rem, 5vw, 4.75rem) 0; }
.section--linen { background: var(--linen); }
.section--green { background: var(--evergreen); color: var(--white); }
.section--paper { background: var(--paper); }
.section--stone { background: #e8e1d7; }

/* Site header */
.site-header { background: rgba(255, 253, 249, .98); border-bottom: 1px solid rgba(49, 73, 60, .1); position: sticky; top: 0; z-index: 50; }
.utility { background: var(--evergreen); color: #eaf1eb; font-size: .75rem; }
.utility__inner { display: flex; align-items: center; justify-content: space-between; min-height: 32px; gap: 1rem; }
.utility a { font-weight: 600; }
.nav { align-items: center; display: flex; justify-content: space-between; min-height: 82px; gap: 1rem; }
.brand { align-items: center; background: url("assets/new-haven-logo.png") left center / contain no-repeat; display: inline-flex; height: 66px; min-width: 0; position: relative; width: 172px; }
.brand::after { background: var(--sage); content: ""; height: 22px; margin-left: calc(100% + .65rem); position: absolute; right: -0.65rem; width: 1px; }
.brand img { height: 66px; opacity: 0; width: 172px; }
.nav__links { display: none; list-style: none; padding: 0; margin: 0; gap: 1.15rem; align-items: center; }
.nav__links a { color: #435148; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--moss); }
.nav__links .nav-cta { color: var(--white); }
.menu-toggle { align-items: center; background: transparent; border: 1px solid var(--line); color: var(--evergreen); display: inline-flex; font-size: .75rem; font-weight: 600; gap: .4rem; justify-content: center; min-height: 40px; padding: .45rem .65rem; }
.menu-toggle span { display: block; width: 16px; height: 1px; background: currentColor; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: currentColor; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.mobile-nav { display: none; padding: .3rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.mobile-nav.is-open { display: block; }
.mobile-nav a { border-bottom: 1px solid var(--line); display: block; padding: .8rem 0; font-size: .9rem; font-weight: 600; }

/* Buttons */
.button { align-items: center; border: 1px solid transparent; cursor: pointer; display: inline-flex; font-size: .78rem; font-weight: 600; gap: .55rem; justify-content: center; letter-spacing: .02em; min-height: 49px; padding: .8rem 1.15rem; transition: transform 220ms var(--ease), background-color 220ms var(--ease), border-color 220ms var(--ease), color 220ms var(--ease); }
.button::after { border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; content: ""; flex: 0 0 auto; height: .42rem; transform: rotate(45deg); width: .42rem; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.97); }
.button--green { background: var(--evergreen); color: var(--white); }
.button--green:hover { background: var(--evergreen-deep); }
.button--moss { background: var(--moss); color: var(--white); }
.button--moss:hover { background: #4b6749; }
.button--light { background: var(--white); color: var(--evergreen); }
.button--light:hover { background: #eaf0ea; }
.button--line { background: transparent; border-color: rgba(49, 73, 60, .35); color: var(--evergreen); }
.button--line:hover { border-color: var(--evergreen); background: #edf2ed; }
.button--compact { min-height: 42px; padding: .65rem .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero and intro treatments */
.hero { background: var(--evergreen); color: var(--white); overflow: hidden; position: relative; }
.hero::before { border: 1px solid rgba(255,255,255,.12); content: ""; height: 430px; position: absolute; right: -100px; top: -210px; transform: rotate(45deg); width: 430px; }
.hero__grid { display: grid; gap: 2rem; min-height: 520px; padding: clamp(3.5rem, 7vw, 5.75rem) 0; position: relative; align-items: end; }
.hero__copy { max-width: 49rem; position: relative; z-index: 1; }
.hero__copy .lead { margin-top: 1.15rem; }
.hero__portrait { position: relative; max-width: 420px; justify-self: end; width: min(86%, 420px); }
.hero__portrait::before { background: var(--stone); content: ""; inset: 1rem -1rem -1rem 1rem; position: absolute; }
.hero__portrait img { aspect-ratio: 4 / 5; border: 8px solid var(--linen); object-fit: cover; position: relative; width: 100%; }
.hero__caption { color: #d9e4da; font-size: .72rem; margin: 1rem 0 0; }
.hero--type .hero__grid { display: block; min-height: 0; padding-bottom: clamp(1.75rem, 2vw, 1.75rem); padding-top: clamp(1.75rem, 2vw, 1.75rem); }
.hero--type .hero__copy { max-width: 67rem; }
.hero--type .display--xl { max-width: 62rem; }
.hero--with-unit::after { background: url("assets/new-haven-finished-unit.jpeg") right center / 55% auto no-repeat; content: ""; inset: 0; opacity: .36; pointer-events: none; position: absolute; }
.hero--with-unit .hero__grid { z-index: 2; }
.hero--with-unit { background: url("assets/new-haven-finished-unit.jpeg") center 54% / cover no-repeat; }
.hero--with-unit::after { background: linear-gradient(90deg, rgba(26, 60, 46, .96) 0%, rgba(26, 60, 46, .87) 48%, rgba(26, 60, 46, .64) 100%); opacity: 1; z-index: 0; }
.hero--with-unit::before { z-index: 1; }
.hero--with-unit .hero__copy { max-width: 49rem; }
.hero--with-exterior { background: var(--evergreen); }
.hero--with-exterior .hero__visual { inset: 0; overflow: hidden; position: absolute; z-index: 0; }
.hero--with-exterior .hero__visual img { height: 100%; object-fit: cover; object-position: center 70%; width: 100%; }
.hero--with-exterior::after { background: linear-gradient(90deg, rgba(26, 60, 46, .93) 0%, rgba(26, 60, 46, .72) 48%, rgba(26, 60, 46, .06) 100%); content: ""; inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.hero--with-exterior::before { z-index: 2; }
.hero--with-exterior .hero__grid { z-index: 3; }
.hero--with-exterior .hero__copy { max-width: 49rem; }
.page-home .nav-cta { display: none; }
.hero-call { min-width: 244px; }
.credibility { background: var(--linen); border-bottom: 1px solid var(--line); }
.credibility__grid { display: grid; grid-template-columns: 1fr; }
.credibility__item { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.credibility__item:last-child { border: 0; }
.credibility__num { color: var(--evergreen); display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 1.9rem; line-height: 1; }
.credibility__label { color: var(--muted); display: block; font-size: .73rem; line-height: 1.45; margin-top: .35rem; max-width: 15rem; }
.page-intro { background: var(--linen); overflow: hidden; padding: clamp(3.6rem, 5.8vw, 5.75rem) 0 clamp(2.5rem, 4vw, 4rem); position: relative; }
.page-intro::after { border: 1px solid rgba(49,73,60,.15); content: ""; height: 390px; position: absolute; right: -170px; top: -130px; transform: rotate(45deg); width: 390px; }
.page-intro__inner { position: relative; z-index: 1; }
.page-intro--green { background: var(--evergreen); color: var(--white); }
.page-intro--green .lead { color: #e4ece5; }
.page-intro--utility { background: #dbe7dd; }
.page-intro--contact { background: #ede7dc; }
.page-intro--project { background: var(--paper); padding-bottom: 0; }
.page-intro__split { align-items: end; display: grid; gap: 2rem; }
.page-intro__photo { justify-self: end; max-width: 335px; }
.page-intro__photo img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* Common editorial sections */
.split { display: grid; gap: 2rem; align-items: center; }
.split--reverse { direction: ltr; }
.image-frame { position: relative; }
.image-frame::after { border: 1px solid rgba(49,73,60,.28); content: ""; inset: 1rem -1rem -1rem 1rem; position: absolute; }
.image-frame img { aspect-ratio: 4/5; object-fit: cover; position: relative; width: 100%; z-index: 1; }
.image-frame--founder { max-width: 560px; }
.image-frame--founder img { aspect-ratio: 5 / 4; object-position: center 26%; }
.image-frame--studio { background: #d4d4c9; }
.image-frame--studio img { aspect-ratio: auto; height: auto; object-fit: contain; object-position: center; }
.image-frame--landscape { max-width: 100%; }
.image-frame--landscape img { aspect-ratio: 4 / 3; object-position: center; }
.home-owner { max-width: 760px; }
.owner-reality-image { margin: 0; }
.owner-reality-image { max-width: 620px; overflow: hidden; width: 100%; }
.owner-reality-image img { aspect-ratio: auto; display: block; height: clamp(230px, 24vw, 340px); object-fit: cover; object-position: center 61%; width: 100%; }
.tenant-support-image { margin: 0; max-width: 620px; overflow: hidden; width: 100%; }
.tenant-support-image img { display: block; height: clamp(230px, 24vw, 320px); object-fit: cover; object-position: center 48%; width: 100%; }
.about-statement { align-items: start; display: grid; gap: 2rem; }
.about-statement__copy { border-left: 1px solid var(--stone); padding-left: 1.3rem; }
.about-statement__note { color: var(--evergreen); font-family: "DM Serif Display", Georgia, serif; font-size: 1.5rem; line-height: 1.16; margin: 1.5rem 0 0; max-width: 29rem; }
.contact-choice { padding-top: clamp(3.5rem, 6vw, 5.5rem); }
.rule { background: var(--stone); display: block; height: 1px; margin: 1.35rem 0; width: 68px; }
.text-link { color: var(--evergreen); font-size: .82rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(49,73,60,.35); text-underline-offset: .25rem; }
.text-link:hover { color: var(--moss); }

/* Cards and routes */
.route-grid { display: grid; gap: 1rem; margin-top: 1.8rem; }
.route-card { border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 230px; overflow: hidden; padding: 1.45rem 1.35rem 1.3rem; position: relative; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease); }
.route-card::before { background: var(--evergreen); content: ""; height: 1px; left: 1.5rem; position: absolute; top: 1.05rem; width: 62px; }
.route-card::after { border: 1px solid rgba(49,73,60,.13); content: ""; height: 88px; position: absolute; right: -45px; top: -45px; transform: rotate(45deg); width: 88px; }
.route-card:hover { border-color: var(--sage); box-shadow: var(--shadow); transform: translateY(-4px); }
.route-card__count { color: var(--sage); font-family: "DM Serif Display", Georgia, serif; font-size: 1.55rem; margin-top: .5rem; }
.route-card h3 { font-family: "DM Serif Display", Georgia, serif; font-size: 1.85rem; font-weight: 400; letter-spacing: -.02em; line-height: 1; margin: .8rem 0 .65rem; }
.route-card p { color: var(--muted); font-size: .9rem; margin: 0 0 1.1rem; }
.route-card .text-link { margin-top: auto; }
.service-directory { border-top: 1px solid rgba(255,255,255,.24); margin-top: 2.1rem; }
.service-row { align-items: start; border-bottom: 1px solid rgba(255,255,255,.24); display: grid; gap: .6rem; padding: 1.2rem 0; }
.service-row__number { color: #c5d7c7; font-family: "DM Serif Display", Georgia, serif; font-size: 1.3rem; }
.service-row h3 { color: var(--white); font-family: "DM Serif Display", Georgia, serif; font-size: 1.8rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.service-row p { color: #e0e8e1; font-size: .9rem; margin: .6rem 0 0; max-width: 42rem; }
.values { display: grid; gap: 1rem; margin-top: 2rem; }
.value { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.value__number { color: var(--stone); font-family: "DM Serif Display", Georgia, serif; font-size: 1.35rem; }
.value h3 { font-family: "DM Serif Display", Georgia, serif; font-size: 1.7rem; font-weight: 400; letter-spacing: -.02em; margin: .4rem 0; }
.value p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Project work */
.project-highlight { background: var(--stone); color: var(--white); display: grid; gap: 1.25rem; padding: 1.25rem; }
.project-highlight h2 { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; margin: 0; }
.project-highlight p { color: #fffaf2; margin: 1rem 0 0; }
.project-highlight__image { height: 210px; margin: 0; overflow: hidden; width: 100%; }
.project-highlight__image img { display: block; height: 100%; object-fit: cover; object-position: center 57%; width: 100%; }
.gallery { border-top: 1px solid var(--line); display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); margin-top: 1.5rem; padding-top: .8rem; }
.gallery figure { background: var(--linen); padding: .5rem; }
.gallery figure:first-child { grid-column: span 2; }
.gallery figure:first-child img { aspect-ratio: 16 / 10; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { aspect-ratio: 3/4; height: 100%; object-fit: cover; transition: transform 280ms var(--ease); width: 100%; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption { color: var(--muted); font-size: .7rem; line-height: 1.45; margin-top: .45rem; }

/* Client-supplied review treatment: restrained proof, not a decorative card system. */
.review-feature__inner { align-items: start; display: grid; gap: 2rem; }
.review-feature__quote { border-left: 2px solid var(--sage); margin: 0; padding: .1rem 0 .1rem 1.35rem; }
.review-feature__quote blockquote { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(1.7rem, 2.6vw, 2.5rem); letter-spacing: -.025em; line-height: 1.12; margin: 0; max-width: 31rem; }
.review-feature__quote figcaption, .review-card figcaption { color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .1em; margin-top: 1rem; text-transform: uppercase; }
.review-feature__quote .text-link { display: inline-block; margin-top: .85rem; }
.review-list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.review-card { border-top: 1px solid var(--line); margin: 0; padding-top: 1.35rem; }
.review-card blockquote { color: #3f4d44; font-size: 1rem; line-height: 1.78; margin: 0; }

/* Forms */
.form-shell { background: var(--white); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2.25rem); }
.form-shell--green { background: var(--evergreen); color: var(--white); }
.form-heading { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; margin: 0 0 1rem; }
.form-intro { color: var(--muted); font-size: .9rem; margin: 0 0 1.6rem; }
.form-shell--green .form-intro { color: #dde8de; }
.form-grid { display: grid; gap: 1rem; }
.form-field { display: grid; gap: .38rem; }
.form-field--full { grid-column: 1 / -1; }
label { font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
input, textarea, select { appearance: none; background: var(--paper); border: 1px solid #cfc8bd; border-radius: 0; color: var(--charcoal); min-height: 48px; padding: .7rem .8rem; width: 100%; }
textarea { min-height: 135px; resize: vertical; }
.form-shell--green input, .form-shell--green textarea, .form-shell--green select { background: #f8faf7; }
input:focus, textarea:focus, select:focus, a:focus-visible, button:focus-visible { outline: 3px solid #a6c1a8; outline-offset: 3px; }
.honey { height: 0; overflow: hidden; position: absolute; width: 0; }
.form-note { color: var(--muted); font-size: .71rem; line-height: 1.5; margin: 1rem 0 0; }
.form-shell--green .form-note { color: #d7e4d8; }

/* Tenant utility */
.utility-grid { display: grid; gap: 1rem; margin-top: 1.8rem; }
.utility-card { background: var(--white); border: 1px solid rgba(49,73,60,.13); padding: 1.4rem; }
.utility-card__icon { align-items: center; background: #e3eee4; border-radius: 50%; color: var(--evergreen); display: flex; font-family: "DM Serif Display", Georgia, serif; font-size: 1.25rem; height: 42px; justify-content: center; width: 42px; }
.utility-card h3 { font-family: "DM Serif Display", Georgia, serif; font-size: 1.65rem; font-weight: 400; letter-spacing: -.02em; margin: 1rem 0 .45rem; }
.utility-card p { color: var(--muted); font-size: .87rem; margin: 0 0 1.2rem; }
.notice { border-left: 3px solid var(--moss); color: #4f5d53; font-size: .85rem; margin-top: 2rem; padding: 1rem 0 1rem 1rem; }
.faq { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-size: .92rem; font-weight: 600; list-style: none; padding-right: 2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--moss); content: "+"; font-family: "DM Serif Display", Georgia, serif; font-size: 1.4rem; position: absolute; right: 0; top: -.35rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); font-size: .87rem; margin: .8rem 0 .1rem; max-width: 48rem; }

/* Approved first-preview refinements: preserve real proof, remove weak repetition, and keep tenant utility fast. */
.project-page .gallery figure:nth-child(-n+4), .project-page .gallery figure:nth-child(n+7) { display: none; }
.project-page .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-page .gallery figure:nth-child(5) { grid-column: auto; grid-row: auto; }
.project-page .gallery figure:nth-child(5) img, .project-page .gallery figure:nth-child(6) img { aspect-ratio: 4 / 3; }
.contact-page .route-grid { grid-template-columns: 1fr; }
.contact-page .route-card { min-height: 190px; }
.contact-page .route-card:nth-child(3) { align-items: flex-start; border: 0; display: flex; flex-direction: row; min-height: auto; padding: .35rem 0; }
.contact-page .route-card:nth-child(3)::before, .contact-page .route-card:nth-child(3)::after, .contact-page .route-card:nth-child(3) .route-card__count, .contact-page .route-card:nth-child(3) h3, .contact-page .route-card:nth-child(3) p { display: none; }
.contact-page .route-card:nth-child(3) .text-link { margin: 0; }

/* Footer and mobile utility */
.site-footer { background: var(--evergreen-deep); color: #e6eee7; padding: 3.6rem 0 calc(5.6rem + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 2.4rem; }
.footer-brand { padding-top: 80px; position: relative; }
.footer-brand::before { background: var(--white) url("assets/new-haven-logo.png") center / contain no-repeat; content: ""; height: 80px; left: 0; padding: .4rem .65rem; position: absolute; top: 0; width: 204px; }
.footer-brand img { height: 0; opacity: 0; padding: 0; position: absolute; width: 0; }
.footer-brand p { color: #cfdccf; font-size: .84rem; margin: 1rem 0 0; max-width: 21rem; }
.footer-title { color: #adbeae; font-size: .7rem; font-weight: 600; letter-spacing: .14em; margin: 0 0 .8rem; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li + li { margin-top: .42rem; }
.footer-links a { color: #f6faf6; font-size: .87rem; }
.footer-links a:hover { color: #bcd3be; }
.brokerage { border-top: 1px solid rgba(255,255,255,.17); margin-top: 2.5rem; padding-top: 1.5rem; }
.brokerage { padding-top: 56px; position: relative; }
.brokerage::before { background: var(--white) url("assets/boyes-group-realty.png") center / contain no-repeat; content: ""; height: 56px; left: 0; padding: .35rem .55rem; position: absolute; top: 0; width: 130px; }
.brokerage img { height: 0; opacity: 0; padding: 0; position: absolute; width: 0; }
.brokerage p { color: #b9c8ba; font-size: .68rem; margin: .75rem 0 0; max-width: 42rem; }
.mobile-actions { background: var(--evergreen-deep); bottom: 0; column-gap: .5rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); left: 0; padding: .55rem max(.75rem, env(safe-area-inset-right)) calc(.55rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left)); position: fixed; right: 0; z-index: 60; }
.mobile-actions a { align-items: center; color: var(--white); display: flex; font-size: clamp(.67rem, 3.2vw, .76rem); font-weight: 600; justify-content: center; min-height: 46px; min-width: 0; overflow: hidden; padding: 0 .35rem; text-align: center; white-space: nowrap; }
.mobile-actions a + a { background: var(--moss); }

/* Thank you and 404 */
.simple-page { align-items: center; background: var(--linen); display: flex; min-height: 100vh; padding: 2rem 0; }
.simple-card { background: var(--white); box-shadow: var(--shadow); max-width: 680px; padding: clamp(2rem, 7vw, 5rem); }
.simple-card .brand img { height: 64px; margin-bottom: 3rem; width: 155px; }

/* Entrance motion */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.reveal--delay { transition-delay: 70ms !important; }
.reveal--delay-2 { transition-delay: 130ms !important; }

@media (min-width: 640px) {
	.review-feature__inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
	.review-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .credibility__grid { grid-template-columns: repeat(3, 1fr); }
  .credibility__item { border-bottom: 0; padding: 1.5rem 1.4rem; }
  .credibility__item + .credibility__item { border-left: 1px solid var(--line); }
  .route-grid { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .utility-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery figure:first-child img { aspect-ratio: 1 / 1; }
  .project-highlight { align-items: center; grid-template-columns: 1.12fr .88fr; padding: 1.5rem; }
  .project-highlight__image { height: 250px; }
  .about-statement { grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 7vw, 7rem); }
  .contact-page .route-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-page .route-card:nth-child(3) { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .menu-toggle, .mobile-nav, .mobile-actions { display: none; }
  .nav__links { display: flex; }
  .nav { min-height: 92px; }
  .brand { height: 72px; width: 188px; }
  .brand img { height: 72px; width: 188px; }
  .nav__links { gap: .82rem; }
  .nav__links a { font-size: .73rem; }
  .hero + .credibility { margin-top: -5rem; position: relative; z-index: 2; }
  .hero__grid { grid-template-columns: 1.25fr .75fr; }
  .hero--type .hero__grid { grid-template-columns: 1fr; }
  .hero--with-unit .hero__copy { max-width: 47rem; }
  .hero--with-unit .display--xl { max-width: 47rem; }
  .page-intro__split { grid-template-columns: 1.1fr .9fr; }
  .split { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5.5rem); }
  .split--reverse > :first-child { order: 2; }
  .service-row { grid-template-columns: 65px 1fr; }
  .project-highlight { padding: 2.2rem; }
}

@media (min-width: 1080px) {
  .nav__links { gap: 1.35rem; }
  .nav__links a { font-size: .76rem; }
  .hero__portrait { margin-bottom: -7rem; }
  .hero { padding-bottom: 7rem; }
}

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

@media (max-width: 639px) {
  .section { padding: 3.3rem 0; }
  .section--compact { padding: 2.75rem 0; }
  .page-intro { padding: 3.3rem 0 2.7rem; }
  .hero__grid, .hero--type .hero__grid { padding-bottom: 3.1rem; padding-top: 3.1rem; }
  .hero__grid { min-height: 0; }
  .hero--with-unit { background-position: center 54%; }
  .hero--with-unit::after { background: linear-gradient(180deg, rgba(26, 60, 46, .83) 0%, rgba(26, 60, 46, .73) 100%); display: block; opacity: 1; }
  .hero--with-exterior { background: var(--evergreen) url("assets/new-haven-finished-unit.jpeg") center 55% / cover no-repeat; }
  .hero--with-exterior::after { background: linear-gradient(180deg, rgba(26, 60, 46, .48) 0%, rgba(26, 60, 46, .38) 100%); display: block; }
  .hero--with-exterior .hero__copy { text-shadow: 0 1px 12px rgba(8, 22, 15, .42); }
  .hero--with-exterior .hero__visual { display: block; }
  .hero--with-exterior .hero__visual img { object-position: center 54%; }
  .page-home .nav-cta { display: none; }
  .mobile-actions--call-only { grid-template-columns: 1fr; }
  .mobile-actions--call-only a { grid-column: 1; text-align: center; }
  .owner-reality-image img { height: 235px; object-position: center 62%; }
  .tenant-support-image img { height: 225px; object-position: center 48%; }
  .hero__copy .lead { margin-top: 1.15rem; }
  .image-frame--founder:not(.image-frame--studio) img { aspect-ratio: 4 / 3; object-position: center 28%; }
  .image-frame--studio img { aspect-ratio: auto; height: auto; object-fit: contain; }
  .about-statement { gap: 1.25rem; }
  .about-statement__copy { padding-left: 1rem; }
  .route-card { min-height: 0; }
  .project-highlight { padding: 1rem; }
  .tenant-page #buildium-links .tenant-support-image { display: none; }
  .tenant-page #buildium-links { padding-bottom: 3.5rem; padding-top: 3.5rem; }
}
