/* Nash Residential — site styles */
:root {
  --ground: #FFFFFF;
  --ground-2: #F4F5F1;
  --surface: #FFFFFF;
  --ink: #1B2128;
  --ink-2: #55606B;
  --line: #E1E3DC;
  --brand: #232B33;
  --brand-2: #12171B;
  --brand-ink: #EEF0EB;
  --brand-ink-2: #A6B0B8;
  --brand-line: #38424B;
  --accent: #6E8400;
  --accent-bright: #BBCE00;
  --accent-soft: #F0F4DC;
  --live: #5C971F;
  --shadow: 0 1px 2px rgba(20,28,20,.04), 0 14px 34px -22px rgba(20,28,20,.4);
  --radius: 4px;
  --maxw: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #171B1F;
    --ground-2: #1D242B;
    --surface: #20272E;
    --ink: #E9ECE7;
    --ink-2: #9BA6AE;
    --line: #303841;
    --brand: #10151A;
    --brand-2: #0A0E12;
    --brand-ink: #EEF0EB;
    --brand-ink-2: #97A2AA;
    --brand-line: #2A333B;
    --accent: #A9BE2A;
    --accent-bright: #C4D82A;
    --accent-soft: #2A3312;
    --live: #A9BE2A;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 36px -22px rgba(0,0,0,.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: "Archivo", "Public Sans", sans-serif; font-weight: 700; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--accent-bright); color: #14210a; padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: "Public Sans", sans-serif; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-accent { background: var(--accent-bright); color: #14210a; }
.btn-accent:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow::after { content: "→"; font-weight: 400; }

/* header */
header.top { position: sticky; top: 0; z-index: 50; background: var(--brand); border-bottom: 1px solid var(--brand-line); }
.bar { display: flex; align-items: center; gap: 34px; height: 78px; }
.brandmark { display: flex; align-items: center; }
.brandmark img { height: 38px; width: auto; display: block; }
.mainnav { display: flex; gap: 28px; }
.mainnav a { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); opacity: .9; transition: color .15s, opacity .15s; }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--accent-bright); opacity: 1; }
.contactside { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.35; text-align: right; font-family: "IBM Plex Mono", monospace; }
.contactside .tel { color: var(--brand-ink); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.contactside .eml { color: var(--brand-ink-2); font-size: 12.5px; }
.contactside a:hover { color: var(--accent-bright); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--brand-line); color: var(--brand-ink); border-radius: var(--radius); padding: 9px 11px; cursor: pointer; font-size: 15px; }
.mobile-nav { display: none; }

/* home hero */
.hero { position: relative; color: #fff; background: #161c22; }
.hero-brand { position: absolute; z-index: 3; left: 50%; top: 60px; transform: translateX(-50%); width: min(560px, 90%); display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; }
.hero-logo { width: min(340px, 76vw); height: auto; display: block; filter: drop-shadow(0 2px 14px rgba(0,0,0,.45)); }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero .tagline { margin-top: 22px; font-size: clamp(17px, 2vw, 21px); color: #fff; max-width: 32ch; font-weight: 500; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero-split { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; transition: grid-template-columns 1.35s cubic-bezier(.2,.7,.2,1); }
.hero-half { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 0 clamp(12px, 4%, 24px) 52px; isolation: isolate; min-width: 0; container-type: inline-size; }
/* when a half is squeezed to 25%, its tile tightens up so the text still fits */
@container (max-width: 340px) {
  .hero-half .hero-tile { padding: 16px; gap: 6px; }
  .hero-half .hero-tile .lbl { font-size: 10px; letter-spacing: .08em; }
  .hero-half .hero-tile .t { font-size: 17px; }
  .hero-half .hero-tile .ar { width: 30px; height: 30px; font-size: 15px; }
}
.hero-half::before { content: ""; position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform 1.6s ease; }
.hero-half::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(14,18,22,.8) 0%, rgba(14,18,22,.35) 45%, rgba(14,18,22,.88) 100%); transition: background .3s; }
.hero-half.dev::before { background-image: url("/assets/img/hero.jpg"); background-position: 55% 40%; }
.hero-half.home::before { background-image: url("/assets/img/hero-homeowners.jpg"); background-position: center 60%; }
/* thin divider on the left edge of the homeowners half, fading in below the logo; it moves with the split */
.hero-half.home::after { background: linear-gradient(rgba(255,255,255,0) 52%, rgba(255,255,255,.28)) left top / 1px 100% no-repeat, linear-gradient(to bottom, rgba(14,18,22,.8) 0%, rgba(14,18,22,.35) 45%, rgba(14,18,22,.88) 100%); }
/* hovering a half widens it to 75% of the page */
@media (hover: hover) and (min-width: 761px) {
  .hero-split:has(.dev:hover), .hero-split:has(.dev:focus-visible) { grid-template-columns: 3fr 1fr; }
  .hero-split:has(.home:hover), .hero-split:has(.home:focus-visible) { grid-template-columns: 1fr 3fr; }
}
.hero-half:hover::before { transform: scale(1.04); }
.hero-tile { width: min(270px, 100%); min-height: 150px; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; color: #fff; text-align: left; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; background: rgba(14,18,22,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: border-color .18s, background .18s, transform .18s; }
.hero-half:hover .hero-tile, .hero-half:focus-visible .hero-tile { border-color: var(--accent-bright); background: rgba(14,18,22,.78); transform: translateY(-3px); }
.hero-tile .lbl { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-bright); }
.hero-tile .t { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.hero-tile .ar { margin-top: auto; align-self: flex-end; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-bright); color: #14210a; display: grid; place-items: center; font-size: 18px; font-weight: 600; transition: transform .18s; }
.hero-half:hover .ar { transform: translateX(3px); }

/* accreditations & partners */
.partners { border-bottom: 1px solid var(--line); }
.partners .sec-head { margin-bottom: 34px; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.partner { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; box-shadow: var(--shadow); }
.partner.featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.partner .tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.partner.featured .tag { color: var(--accent); }
.partner .wordmark { font-family: "Archivo", sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1; min-height: 66px; display: flex; align-items: center; }
.partner .logo-plate { background: #fff; border-radius: 4px; height: 66px; padding: 10px 16px; display: flex; align-items: center; }
.partner .logo { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.partner .role { color: var(--ink-2); font-size: 15px; }

/* intro strip */
.intro { background: var(--ground-2); border-bottom: 1px solid var(--line); }
.intro-inner { display: grid; grid-template-columns: 4fr 3fr; gap: 40px; align-items: center; padding: 34px 24px; }
.intro p { font-size: clamp(19px, 2.2vw, 24px); font-family: "Archivo", sans-serif; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; }
.intro .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.intro .n { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.intro .l { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px; }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--ground-2); }
.sec-head { max-width: 62ch; margin-bottom: 42px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 16px; }
.sec-head p { color: var(--ink-2); font-size: 18px; margin-top: 16px; max-width: 60ch; }
.sec-head p + p { margin-top: 12px; }

/* service paths */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.path:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.path .ico { width: 46px; height: 46px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.path h3 { font-size: 26px; }
.path .sub { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.path p { color: var(--ink-2); font-size: 16px; }
.path ul { list-style: none; padding: 0; margin: 2px 0 6px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.path li { font-size: 15px; display: flex; gap: 10px; }
.path li::before { content: "—"; color: var(--accent); font-weight: 700; }
.path .go { font-weight: 600; color: var(--accent); font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.path .go::after { content: "→"; transition: transform .18s; }
.path:hover .go::after { transform: translateX(4px); }

/* project cards */
.proj-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.proj-top .sec-head { margin-bottom: 0; }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); }
.card .img { aspect-ratio: 3 / 2; position: relative; background: linear-gradient(135deg, #333d45, #1c242b 75%); display: flex; align-items: center; justify-content: center; }
.card .img::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(120% 100% at 30% 0%, #000 30%, transparent 80%); mask-image: radial-gradient(120% 100% at 30% 0%, #000 30%, transparent 80%); }
.card .img img { width: 98px; height: 98px; position: relative; z-index: 1; }
.pill { position: absolute; top: 12px; left: 12px; z-index: 2; font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 40px; font-weight: 600; }
.pill.live { background: var(--accent-soft); color: var(--live); border: 1px solid color-mix(in srgb, var(--live) 35%, transparent); }
.pill.done { background: rgba(14,18,22,.45); color: #cfd6db; border: 1px solid rgba(255,255,255,.18); }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.card h3 { font-size: 20px; }
.card .desc { color: var(--ink-2); font-size: 15px; }
.card .view { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }
.card .view::after { content: "→"; transition: transform .18s; }
.card:hover .view::after { transform: translateX(4px); }
.card .meta { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.card .meta b { color: var(--ink); font-weight: 600; }

/* team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.member-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--brand); color: var(--accent-bright); display: grid; place-items: center; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 20px; }
.member h3 { font-size: 21px; }
.member .role { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.member p { color: var(--ink-2); font-size: 15px; }
.member p + p { margin-top: 10px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-grid h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 16px; }
.contact-grid .intro-copy { color: var(--ink-2); font-size: 18px; margin-top: 16px; max-width: 46ch; }
.info-block { display: flex; flex-direction: column; gap: 24px; margin-top: 30px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ico { width: 40px; height: 40px; flex: none; border-radius: 3px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.info-item .l { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.info-item .v { font-size: 17px; font-weight: 600; margin-top: 2px; }
.info-item .v.big { font-size: 22px; font-family: "IBM Plex Mono", monospace; }
.info-item .v.addr { font-weight: 500; line-height: 1.5; }
.info-item a.v:hover { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; border: 0; padding: 0; }
.field label, .field legend { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field input, .field textarea, .field select { font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ground-2); color: var(--ink); resize: vertical; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.form-note a { color: var(--accent); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }

/* footer */
footer.site { background: var(--brand-2); color: var(--brand-ink-2); padding: 54px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--brand-line); }
.foot-brand img { height: 34px; width: auto; display: block; }
.foot-brand p { font-size: 15px; max-width: 42ch; margin-top: 14px; }
.foot-col h2 { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; font-weight: 600; }
.foot-col a, .foot-col div { display: block; font-size: 15px; color: var(--brand-ink-2); margin-bottom: 9px; }
.foot-col a:hover { color: var(--accent-bright); }
.legal { padding-top: 22px; font-size: 12.5px; line-height: 1.7; font-family: "IBM Plex Mono", monospace; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal a { color: var(--brand-ink); text-decoration: underline; }

/* project page */
.crumbs { background: var(--brand); border-bottom: 1px solid var(--brand-line); }
.crumbs a { display: inline-flex; gap: 9px; align-items: center; height: 46px; color: var(--brand-ink); font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
.crumbs a:hover { color: var(--accent-bright); }
.phero { position: relative; min-height: 340px; aspect-ratio: 16 / 6; background: linear-gradient(135deg, #333d45, #1c242b 75%); display: flex; align-items: flex-end; overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(120% 100% at 30% 0%, #000 30%, transparent 82%); mask-image: radial-gradient(120% 100% at 30% 0%, #000 30%, transparent 82%); }
.phero.has-photo { background-size: cover; background-position: center; }
.phero.has-photo::before { display: none; }
.pcap { position: relative; z-index: 2; padding: 34px 24px; color: #fff; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.pcap .pill { position: static; display: inline-block; margin-bottom: 14px; }
.pcap .pill.done { background: rgba(10,14,18,.6); color: #fff; border-color: rgba(255,255,255,.3); }
.pdetail-ico { width: 78px; height: 78px; display: block; margin-bottom: 14px; }
.phero h1 { font-size: clamp(28px, 4vw, 46px); color: #fff; letter-spacing: -0.02em; }
.pphotos { position: absolute; right: 18px; bottom: 16px; z-index: 3; font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(10,14,18,.6); border: 1px solid rgba(255,255,255,.28); padding: 9px 13px; border-radius: 3px; transition: color .15s, border-color .15s; }
.pphotos:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.pbody { display: grid; grid-template-columns: 1.6fr 1fr; gap: 44px; padding: 54px 0; }
.pbody .lead { color: var(--ink); font-size: 20px; font-weight: 500; margin-bottom: 18px; font-family: "Archivo", sans-serif; line-height: 1.4; }
.pbody .prose p { color: var(--ink-2); font-size: 17px; margin-bottom: 16px; max-width: 68ch; }
.pfacts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; align-self: start; box-shadow: var(--shadow); margin: 0; }
.pfacts .row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pfacts .row:last-child { border-bottom: 0; }
.pfacts dt { color: var(--ink-2); font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; flex: none; }
.pfacts dd { margin: 0; font-weight: 600; text-align: right; font-size: 15px; }
.pgal-head { font-size: 22px; margin-bottom: 18px; }
.pgal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 54px; }
.pgal a { aspect-ratio: 4 / 3; border-radius: var(--radius); position: relative; overflow: hidden; background: #1c242b; cursor: zoom-in; display: block; }
.pgal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pgal a:hover img { transform: scale(1.04); }
.pgal .cap { position: absolute; left: 10px; bottom: 10px; z-index: 1; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(10,14,18,.7); padding: 4px 8px; border-radius: 3px; }
.pcta { background: var(--brand); color: var(--brand-ink); border-radius: var(--radius); padding: 40px; text-align: center; margin-bottom: 64px; }
.pcta h2 { color: #fff; font-size: 26px; }
.pcta p { color: var(--brand-ink-2); margin: 10px auto 22px; max-width: 46ch; }
.pcta .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pcta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.pcta .btn-ghost:hover { border-color: #fff; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8,11,14,.94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb img { max-width: calc(100vw - 170px); max-height: 82vh; object-fit: contain; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.22); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: color .15s, border-color .15s; }
.lb button:hover, .lb button:focus-visible { color: var(--accent-bright); border-color: var(--accent-bright); outline: none; }
.lb .lb-close { top: 18px; right: 18px; }
.lb .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.78); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .08em; white-space: nowrap; }

/* simple text pages */
.page-head { background: var(--brand); color: #fff; padding: 56px 0 48px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); color: #fff; margin-top: 14px; }
.page-head p { color: var(--brand-ink-2); margin-top: 12px; font-size: 18px; max-width: 60ch; }
.prose-page { padding: 56px 0 80px; }
.prose-page .prose { max-width: 72ch; }
.prose-page h2 { font-size: 22px; margin: 34px 0 10px; }
.prose-page p, .prose-page li { color: var(--ink-2); font-size: 16.5px; }
.prose-page p + p { margin-top: 12px; }
.prose-page ul { padding-left: 20px; margin: 10px 0; }
.prose-page a { color: var(--accent); text-decoration: underline; }

/* responsive */
@media (max-width: 880px) {
  .mainnav, .contactside { display: none; }
  .bar { height: 66px; }
  .menu-btn { display: inline-flex; }
  .mobile-nav.open { display: flex; flex-direction: column; background: var(--brand); border-top: 1px solid var(--brand-line); padding: 10px 24px 16px; }
  .mobile-nav.open a { color: var(--brand-ink); padding: 11px 0; font-family: "IBM Plex Mono", monospace; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--brand-line); }
  .intro-inner, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .paths, .proj-grid, .team-grid { grid-template-columns: 1fr; }
  .pbody { grid-template-columns: 1fr; gap: 30px; padding: 36px 0; }
  .pgal { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 58px 0; }
  body { font-size: 16px; }
  .phero { aspect-ratio: auto; min-height: 380px; }
  .pphotos { right: auto; left: 24px; bottom: auto; top: 16px; }
}
@media (max-width: 880px) { .partner-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .hero-brand { position: static; transform: none; width: auto; padding: 40px 24px 30px; }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-half { min-height: 250px; padding: 0 20px 22px; }
  .hero-half + .hero-half { border-top: 1px solid rgba(255,255,255,.2); }
  .hero-tile { width: 100%; min-height: 0; }
}
@media (max-width: 540px) { .row2 { grid-template-columns: 1fr; } .lb img { max-width: 100vw; } .lb .lb-prev, .lb .lb-next { top: auto; bottom: 10px; transform: none; } }
