/* Vertical Infill Partners - site styles
   Design tokens live in :root. Change a color or size here and it updates everywhere. */

:root {
  --navy: #102337;
  --navy-2: #172E46;
  --ivory: #F8F7F3;
  --stone: #E8E5DD;
  --slate: #65717D;
  --champagne: #B59C72;
  --white: #FFFFFF;
  --line-light: rgba(16, 35, 55, 0.14);
  --line-dark: rgba(248, 247, 243, 0.18);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
  --step-4: clamp(3rem, 1.8rem + 5.2vw, 6.75rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --section: clamp(4.5rem, 9vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); line-height: 0.98; }
h2 { font-size: var(--step-3); line-height: 1.04; }
h3 { font-size: var(--step-2); line-height: 1.15; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 38rem; }
.lede { font-size: var(--step-1); line-height: 1.55; }
.muted { color: var(--slate); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--navy); padding: .75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--ivory); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark { width: 26px; height: 30px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: .005em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a { text-decoration: none; font-size: .975rem; color: rgba(248, 247, 243, .82); padding: .35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ivory); border-bottom-color: var(--champagne); }
.nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--champagne); }
.nav .btn { border-bottom: 0; padding: .7rem 1.15rem; }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--ivory);
  font: inherit; font-size: .95rem; padding: .55rem .9rem; border-radius: 2px; cursor: pointer;
}

@media (max-width: 920px) {
  .menu-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.75rem; border-top: 1px solid var(--line-dark);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 1rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--line-dark); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-dark); color: var(--champagne); }
  .nav .btn { margin-top: 1.25rem; text-align: center; padding: 1rem; }
  .brand-name { font-size: 1.25rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--sans); font-weight: 500;
  font-size: 1rem; line-height: 1.2; padding: 1rem 1.6rem; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-light { background: var(--ivory); color: var(--navy); }
.btn-light:hover { background: var(--white); }
.btn-dark { background: var(--navy); color: var(--ivory); }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost-light { color: var(--ivory); border-color: rgba(248, 247, 243, .4); }
.btn-ghost-light:hover { border-color: var(--ivory); }
.btn-ghost-dark { color: var(--navy); border-color: rgba(16, 35, 55, .35); }
.btn-ghost-dark:hover { border-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.text-link { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--champagne); padding-bottom: 2px; font-weight: 500; }
.text-link:hover { border-bottom-color: var(--navy); }

/* ---------- Hero (home) ---------- */
.hero { background: var(--navy); color: var(--ivory); position: relative; overflow: hidden; }
.hero-copy { padding-top: clamp(3.5rem, 9vh, 7rem); padding-bottom: 2rem; position: relative; z-index: 2; }
.hero h1 { max-width: 11ch; }
.hero .lede { max-width: 34rem; margin-top: 1.75rem; color: rgba(248, 247, 243, .84); }
.hero .actions { margin-top: 2.4rem; }

.streetscape { width: 100%; height: clamp(230px, 30vw, 380px); margin-top: clamp(1rem, 4vw, 2.5rem); }
.streetscape svg { width: 100%; height: 100%; }
.streetscape .existing { stroke: rgba(248, 247, 243, .34); stroke-width: 1.25; fill: none; vector-effect: non-scaling-stroke; }
.streetscape .existing-fine { stroke: rgba(248, 247, 243, .2); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.streetscape .infill { stroke: var(--champagne); stroke-width: 1.6; fill: none; vector-effect: non-scaling-stroke; }
.streetscape .infill-fine { stroke: var(--champagne); stroke-width: 1; fill: none; opacity: .75; vector-effect: non-scaling-stroke; }
.streetscape .lot { stroke: var(--champagne); stroke-width: 1; stroke-dasharray: 4 6; opacity: .55; vector-effect: non-scaling-stroke; }
.streetscape .ground { stroke: rgba(248, 247, 243, .5); stroke-width: 1.25; vector-effect: non-scaling-stroke; }

/* Single orchestrated moment: the infill building draws itself in once. */
.js .streetscape .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .streetscape.is-drawn .draw { animation: draw 2.4s cubic-bezier(.45, .05, .2, 1) forwards; }
.js .streetscape.is-drawn .draw.d2 { animation-delay: .5s; }
.js .streetscape.is-drawn .draw.d3 { animation-delay: 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .streetscape .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
}

/* ---------- Page heads (inner pages) ---------- */
.page-head { background: var(--navy); color: var(--ivory); padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--champagne); }
.page-head h1 { font-size: clamp(2.75rem, 1.8rem + 4vw, 5.25rem); max-width: 16ch; }
.page-head .lede { margin-top: 1.5rem; max-width: 40rem; color: rgba(248, 247, 243, .84); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-stone { background: var(--stone); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--ivory); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); row-gap: 2.5rem; }
.split > .a { grid-column: 1 / span 5; }
.split > .b { grid-column: 7 / span 6; }
.split > .a-wide { grid-column: 1 / span 6; }
.split > .b-narrow { grid-column: 8 / span 5; }
@media (max-width: 860px) {
  .split > .a, .split > .b, .split > .a-wide, .split > .b-narrow { grid-column: 1 / -1; }
}

.section-intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro h2 + p, .section-intro h2 + .lede { margin-top: 1.4rem; }

/* Floors: the development disciplines as a building section */
.floors { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--champagne); }
.floors li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.05rem 0; border-top: 1px solid var(--line-light); }
.floors li:last-child { border-bottom: 2px solid var(--navy); }
.floors .floor-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.floors .floor-note { color: var(--slate); font-size: .95rem; text-align: right; }
@media (max-width: 560px) { .floors li { flex-direction: column; gap: .15rem; } .floors .floor-note { text-align: left; } }
.floors-caption { margin-top: 1.5rem; font-size: 1.0625rem; }

/* Statement */
.statement { padding: clamp(5rem, 11vw, 9rem) 0; background: var(--white); }
.statement blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2.1rem, 1.4rem + 3vw, 4.25rem); line-height: 1.08; max-width: 20ch; text-wrap: balance; }
.statement .attrib { margin-top: 2rem; color: var(--slate); }

/* Columns separated by hairlines (pillars, principles) */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.columns > * { padding: 2rem clamp(1.25rem, 2.5vw, 2.25rem) 0 0; }
.columns > * + * { border-left: 1px solid var(--line-light); padding-left: clamp(1.25rem, 2.5vw, 2.25rem); }
.columns h3 { margin-bottom: .9rem; }
.columns .num { font-family: var(--serif); color: var(--champagne); font-size: 1.5rem; display: block; margin-bottom: 1.25rem; }
@media (max-width: 860px) {
  .columns { grid-template-columns: 1fr; border-top: 0; }
  .columns > *, .columns > * + * { border-left: 0; padding: 1.75rem 0; border-top: 1px solid var(--line-light); padding-left: 0; }
}

/* Definition-style list */
.deflist { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 4rem); }
.deflist div { padding: 1.6rem 0; border-top: 1px solid var(--line-light); }
.deflist dt { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; margin-bottom: .5rem; }
.deflist dd { margin: 0; color: var(--slate); }
.section-navy .deflist div { border-top-color: var(--line-dark); }
.section-navy .deflist dd { color: rgba(248, 247, 243, .78); }
@media (max-width: 760px) { .deflist { grid-template-columns: 1fr; } }

.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: .8rem 0; border-top: 1px solid var(--line-light); }
.plain-list li:last-child { border-bottom: 1px solid var(--line-light); }

.note { border-left: 2px solid var(--champagne); padding: .25rem 0 .25rem 1.5rem; color: var(--slate); max-width: 44rem; }

/* Founders */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); }
.founder { border-top: 1px solid var(--navy); padding-top: 1.75rem; }
.founder h3 { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); }
.founder .role { color: var(--slate); margin: .35rem 0 1.25rem; }
.founder .bio-short { margin-bottom: 1.5rem; }
.creds { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.creds li { padding: .65rem 0; border-top: 1px solid var(--line-light); display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; }
.creds strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1; }
.creds span { color: var(--slate); font-size: .975rem; line-height: 1.45; }
@media (max-width: 860px) { .founders { grid-template-columns: 1fr; } }

.footnote { font-size: .875rem; color: var(--slate); max-width: 52rem; margin-top: 2.5rem; }

/* Team page long bios */
.bio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--line-light); }
.bio:first-of-type { border-top: 0; padding-top: 0; }
.bio .bio-head { grid-column: 1 / span 4; }
.bio .bio-body { grid-column: 6 / span 7; }
.bio .bio-head h2 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
.bio .bio-head .role { color: var(--slate); margin-top: .5rem; }
.bio .creds { margin-top: 2rem; }
@media (max-width: 860px) { .bio .bio-head, .bio .bio-body { grid-column: 1 / -1; } .bio .bio-head { margin-bottom: 1.75rem; } }

/* Process (a real sequence, so it is numbered) */
.process { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.process li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(1rem, 3vw, 2.5rem); padding: 2.1rem 0; border-top: 1px solid var(--line-light); align-items: baseline; }
.process li:last-child { border-bottom: 1px solid var(--line-light); }
.process .stage-num { font-family: var(--serif); font-size: 3rem; line-height: .9; color: var(--champagne); }
.process h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.process p { color: var(--slate); }
@media (max-width: 860px) { .process li { grid-template-columns: 3.5rem 1fr; } .process p { grid-column: 2; } }

/* CTA band */
.cta-band { background: var(--navy); color: var(--ivory); padding: clamp(5rem, 10vw, 8rem) 0; position: relative; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { max-width: 36rem; margin-top: 1.5rem; color: rgba(248, 247, 243, .84); }
.cta-band .actions { margin-top: 2.25rem; }
.cta-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--champagne); opacity: .6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 1.4rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; font-size: .975rem; margin-bottom: .45rem; }
.field .opt { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--navy); background: var(--white);
  border: 1px solid rgba(16, 35, 55, .28); border-radius: 2px; padding: .85rem .95rem; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23102337' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--champagne); outline-offset: 1px; border-color: var(--navy); }
.field [aria-invalid="true"] { border-color: #9B3B2E; }
.field .error { color: #9B3B2E; font-size: .925rem; margin-top: .4rem; display: none; }
.field .error.is-visible { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .925rem; color: var(--slate); }
.form-status { padding: 1.1rem 1.25rem; border-left: 2px solid var(--champagne); background: var(--white); display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: #9B3B2E; }
.form-success h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1rem; }

.aside-block { padding: 1.6rem 0; border-top: 1px solid var(--line-light); }
.aside-block:last-child { border-bottom: 1px solid var(--line-light); }
.aside-block h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.aside-block p { color: var(--slate); }

/* ---------- Legal pages ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 2.75rem 0 1rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal .effective { color: var(--slate); margin-bottom: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(248, 247, 243, .78); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem; font-size: .95rem; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
.footer-top .brand { color: var(--ivory); margin-bottom: 1.1rem; }
.footer-top p { max-width: 24rem; }
.footer-top h2 { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--ivory); margin-bottom: .9rem; letter-spacing: 0; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top li { margin-bottom: .55rem; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--champagne); text-underline-offset: 3px; }
.footer-legal { padding-top: 2rem; font-size: .8125rem; line-height: 1.6; color: rgba(248, 247, 243, .6); display: grid; gap: .9rem; }
.footer-legal p { max-width: 62rem; margin: 0; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* Spacing utilities */
.mt-1 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 2.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bio + .bio { margin-top: 0; }
.nav a.btn-light, .nav a.btn-light:hover { color: var(--navy); }

/* Desktop hero: the infill building rises into the open space beside the headline */
@media (min-width: 921px) {
  .hero { min-height: max(720px, min(calc(100svh - 84px), 920px)); }
  .hero-copy { padding-top: clamp(4.5rem, 11vh, 8rem); padding-bottom: 300px; }
  .hero .streetscape { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(380px, 38vw, 560px); margin: 0; z-index: 1; }
}

/* Imagery */
.figure { margin: 0; }
.figure img { width: 100%; height: auto; background: var(--stone); }
.figure figcaption, .caption { font-size: .875rem; color: var(--slate); margin-top: .9rem; max-width: 46rem; line-height: 1.5; }
.figure-wide { margin-top: clamp(2.5rem, 5vw, 4rem); }
.figure-full { grid-column: 1 / -1; margin-top: clamp(1rem, 3vw, 2rem); }
.product-intro { align-items: end; }
.interiors { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem); margin-top: clamp(.75rem, 2vw, 1.5rem); align-items: stretch; }
.interiors .figure img { height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 640px) {
  .interiors { grid-template-columns: 1fr 1fr; }
  .interiors .figure:first-child { grid-row: span 2; }
  .interiors .figure:first-child img { aspect-ratio: auto; }
}

/* Projects in design */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.project img { aspect-ratio: 16 / 10; object-fit: cover; }
.project h3 { margin-top: 1.5rem; }
.project p { margin-top: .75rem; color: var(--slate); max-width: 34rem; }
.facts { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); border-top: 1px solid var(--line-light); }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; }
.facts span { color: var(--slate); font-size: .9rem; }
.projects + .caption { margin-top: 2rem; }
.design-points { margin: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 1000px) { .design-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .design-points { grid-template-columns: 1fr; } }
.project { display: flex; flex-direction: column; }
.project p { flex-grow: 1; }
