:root {
  color-scheme: light;
  --navy: #172635;
  --deep: #101c29;
  --gold: #dfa93b;
  --gold-light: #f4c87b;
  --gold-ink: #775314;
  --paper: #fcfbf8;
  --white: #fff;
  --line: #d7dce0;
  --muted: #465766;
  --width: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--navy); line-height: 1.6; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a66d12; outline-offset: 5px; }
.masthead :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--gold-light); }
.skip { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--white); transform: translateY(-170%); }
.skip:focus { transform: none; }
.frame { width: min(var(--width), calc(100% - 6rem)); margin-inline: auto; }
.section-space { padding-block: clamp(4rem, 9vw, 8rem); }
section[id] { scroll-margin-block-start: 1.5rem; }
.kicker { margin: 0 0 1rem; color: var(--gold-ink); font-weight: 750; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font: 400 clamp(2.55rem, 6vw, 5.15rem)/1 Georgia, serif; letter-spacing: -.057em; text-wrap: balance; }

.masthead { background: var(--navy); color: var(--white); border-bottom: 1px solid rgb(223 169 59 / .28); }
.masthead-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { width: 62px; height: 62px; padding: 4px; border: 1px solid var(--gold); background: #fdfdfd; object-fit: contain; }
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font: 400 clamp(1.15rem, 2vw, 1.5rem)/1.25 Georgia, serif; }
.brand small { margin-top: 4px; color: var(--gold-light); font-size: .75rem; }
.masthead nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.8rem, 3vw, 2.2rem); }
.masthead nav a { color: #e4e9ec; font-size: .925rem; text-decoration: none; }
.masthead nav a:hover { color: var(--gold-light); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .68rem 1.15rem; border: 1px solid transparent; border-radius: 3px; font-weight: 730; font-size: .925rem; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.button-gold { color: var(--deep); background: var(--gold); }
.button-gold:hover { background: var(--gold-light); }
.button-glass { border-color: rgb(255 255 255 / .6); background: rgb(16 28 41 / .38); color: var(--white); }
.button-glass:hover { background: var(--navy); border-color: var(--gold-light); }
.button-navy { color: var(--white); background: var(--navy); }
.button-navy:hover { background: #263c50; }
.button-outline { color: var(--navy); border-color: var(--navy); }
.button-outline:hover { background: rgb(255 255 255 / .35); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--white); }
.hero-photo, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { z-index: -2; object-fit: cover; object-position: center 52%; animation: establish 1.4s var(--ease) both; }
.hero-shade { z-index: -1; background: linear-gradient(90deg, rgb(12 23 35 / .96), rgb(12 23 35 / .79) 38%, rgb(12 23 35 / .25) 80%), linear-gradient(0deg, rgb(12 23 35 / .55), transparent 35%); }
.hero-inner { min-height: clamp(520px, 70svh, 730px); display: grid; align-items: center; padding-block: 4.25rem 5.5rem; }
.hero-content { max-width: 760px; padding-left: clamp(1rem, 3vw, 2.4rem); position: relative; }
.hero-content::before { content: ""; position: absolute; inset: .4rem auto .4rem 0; width: 2px; background: var(--gold); transform-origin: top; animation: draw-rule 1s var(--ease) both; }
.hero .kicker { color: var(--gold-light); }
.hero h1 { font: 400 clamp(3.75rem, 8.5vw, 7.5rem)/.9 Georgia, serif; letter-spacing: -.075em; }
.hero h1 span { color: var(--gold-light); }
.hero-intro { margin-block: 1.65rem; max-width: 32rem; color: #f1f2f2; font-size: clamp(1rem, 1.7vw, 1.2rem); }
.hero-content > * { animation: enter .85s var(--ease) both; }
.hero-content h1 { animation-delay: .08s; }
.hero-intro { animation-delay: .16s; }
.hero-content .actions { animation-delay: .24s; }
.photo-credit { position: absolute; right: clamp(1rem, 4vw, 4rem); bottom: 1rem; font-size: .8rem; color: #f7f7f7; text-underline-offset: 4px; }

.service-band { background: var(--gold); }
.band-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.band-inner p { font-size: .9rem; font-weight: 680; }
.band-inner ul { display: flex; gap: 1.2rem; margin: 0; padding: 0; list-style: none; font: 400 clamp(1.25rem, 2.1vw, 1.65rem)/1.3 Georgia, serif; }
.band-inner li + li { border-left: 1px solid rgb(23 38 53 / .36); padding-left: 1.2rem; }

.project-header { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: clamp(1rem, 5vw, 5rem); margin-bottom: 2rem; }
.project-header > p, .services-layout > div:first-child > p:last-child { max-width: 32rem; color: var(--muted); font-size: 1.05rem; }
.gallery-stage { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.gallery[data-enhanced] .gallery-stage { display: block; }
.gallery-stage figure { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--white); }
.gallery-stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery[data-enhanced] .gallery-stage img { height: clamp(260px, 50vw, 550px); aspect-ratio: auto; }
.gallery-stage figcaption { position: absolute; inset: auto 0 0; padding: 2rem 1rem 1rem; background: linear-gradient(transparent, rgb(11 23 35 / .88)); font-weight: 650; }
.gallery-stage .is-switching img { animation: gallery-in .6s var(--ease) both; }
.gallery-selector { display: flex; background: var(--navy); gap: 1px; padding: 1px; }
.gallery-selector button { flex: 1 1 0; border: 0; padding: .8rem .5rem; min-height: 48px; background: #22384c; color: var(--white); cursor: pointer; transition: background-color .2s, color .2s; font-size: .925rem; }
.gallery-selector button:hover { background: #2c4a65; }
.gallery-selector button[aria-pressed="true"] { background: var(--gold); color: var(--deep); font-weight: 730; }
.gallery-selector button:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.gallery-credit { padding-top: .8rem; font-size: .875rem; color: var(--muted); }
.gallery-credit a { text-underline-offset: 3px; }

.project-directory { background: #e9edf0; }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.project-tile { background: var(--white); border: 1px solid var(--line); }
.project-tile img { width: 100%; height: clamp(190px, 25vw, 350px); object-fit: cover; background: #d6dee4; }
.project-tile-copy { padding: clamp(1.1rem, 3vw, 2rem); }
.project-tile .kicker { margin-bottom: .6rem; }
.project-tile h3 { font: 400 clamp(1.75rem, 3.2vw, 2.75rem)/1.1 Georgia, serif; letter-spacing: -.035em; }
.project-tile p:not(.kicker) { margin-block: .55rem .9rem; color: var(--muted); }
.project-tile .text-link { color: var(--gold-ink); text-underline-offset: .22rem; font-weight: 650; }
.property-types { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.2rem, 5vw, 4rem); }
.property-types div { padding-block: 1.2rem; border-top: 1px solid var(--line); }
.property-types dt { font: 400 1.6rem/1.25 Georgia, serif; }
.property-types dd { margin: .45rem 0 0; color: var(--muted); }
.inventory-band { background: var(--navy); color: var(--white); }
.inventory-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 4.75rem); }
.inventory-band .kicker { color: var(--gold-light); }
.inventory-band h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.inventory-band p:last-child { margin-top: .8rem; color: #d8e0e6; }
.inventory-band .button { flex: 0 0 auto; }
.footer-copy { text-align: right; }
.footer-copy a { color: var(--gold-light); font-size: .875rem; text-underline-offset: 3px; }

.services { background: #edf0f3; border-block: 1px solid #e0e5e8; }
.services-layout { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(1.75rem, 8vw, 7rem); }
.services-layout h2 { margin-bottom: 1rem; }
.service-list details { border-block-start: 1px solid #aab8c4; }
.service-list details:last-child { border-block-end: 1px solid #aab8c4; }
.service-list summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1.25rem 0; list-style: none; cursor: pointer; font: 400 clamp(1.4rem, 2.7vw, 2.1rem)/1.15 Georgia, serif; }
.service-list summary::-webkit-details-marker { display: none; }
.service-list summary::after { content: "+"; font: 400 1.6rem/1 system-ui, sans-serif; color: var(--gold-ink); }
.service-list details[open] summary::after { content: "−"; }
.service-list details p { color: var(--muted); padding: 0 1.4rem 1.2rem 0; }
.service-list details[open] p { animation: enter .35s var(--ease); }

.contact-card { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); padding: clamp(1.6rem, 5vw, 4.5rem); background: var(--gold); }
.contact-card .kicker { color: var(--navy); }
.contact-card :focus-visible { outline-color: var(--deep); }
.contact-card .actions { margin-top: 1.5rem; }
.contact-details { display: grid; align-content: center; gap: 1.4rem; border-left: 1px solid rgb(23 38 53 / .42); padding-left: clamp(1.6rem, 4vw, 4rem); }
.contact-details h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .25rem; }
.contact-details address { font-style: normal; }
.contact-details a { display: table; margin-top: .2rem; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-details .text-link { margin-top: .55rem; font-weight: 650; }
.footer { background: var(--navy); color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; }
.footer p { color: #d8e0e6; font-size: .875rem; text-align: right; }

.reveal.is-visible { animation: enter .75s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw-rule { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes establish { from { transform: scale(1.075); opacity: .72; } to { transform: scale(1); opacity: 1; } }
@keyframes gallery-in { from { opacity: .35; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 850px) {
  .frame { width: min(var(--width), calc(100% - 3rem)); }
  .band-location { display: none; }
}

@media (max-width: 650px) {
  .frame { width: calc(100% - 2rem); }
  .masthead-inner { min-height: auto; padding-block: .72rem 0; flex-wrap: wrap; gap: .65rem; }
  .brand img { width: 50px; height: 50px; }
  .header-call { min-height: 42px; padding-inline: .65rem; }
  .masthead nav { order: 1; width: 100%; justify-content: space-between; border-top: 1px solid rgb(255 255 255 / .16); }
  .masthead nav a { display: inline-flex; align-items: center; min-height: 43px; font-size: .875rem; }
  .hero-photo { object-position: center; }
  .hero-shade { background: linear-gradient(90deg, rgb(12 23 35 / .90), rgb(12 23 35 / .44)), linear-gradient(0deg, rgb(12 23 35 / .66), transparent 55%); }
  .hero-inner { min-height: 520px; padding-block: 3.15rem 4.3rem; }
  .hero h1 { font-size: clamp(3.15rem, 12vw, 5.3rem); }
  .hero-intro { margin-block: 1.2rem; }
  .band-inner { flex-wrap: wrap; gap: .35rem; padding-block: .85rem; }
  .band-inner > p { flex-basis: 100%; }
  .project-header, .services-layout, .contact-card { grid-template-columns: 1fr; }
  .project-header { gap: 1rem; }
  .gallery-selector button { min-height: 58px; font-size: .875rem; }
  .contact-details { border-left: 0; border-top: 1px solid rgb(23 38 53 / .42); padding: 1.4rem 0 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer p { text-align: left; }
  .masthead nav { justify-content: flex-start; column-gap: .85rem; row-gap: 0; }
  .directory-grid, .property-types { grid-template-columns: 1fr; }
  .inventory-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
