/* Kaeding Development Group */
:root {
  --stone: #ECEAE5;
  --paper: #FAF9F7;
  --ink: #1C2226;
  --slate: #3E4B53;
  --muted: #697075;
  --line: #D3CFC7;
  --brick: #8A3D2C;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--brick); }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* type */
.h1, .hero h1, .h2, .h3, .btn, .site-nav, .facts, .proj-name, .proj-meta, .chip, .outlet, .crumb, .f-h, .role, .press-title, .next-name, .text-link, .menu-btn, .form label, .hours {
  font-family: var(--sans);
}
.h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--slate); max-width: 46ch; margin-top: 20px; }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }
.center { text-align: center; }

/* header */
.site-header { background: var(--ink); color: #fff; position: relative; z-index: 10; }
.site-header.on-image { position: absolute; inset: 0 0 auto 0; background: transparent; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img, .footer-logo { filter: brightness(0) invert(1); height: 45px; width: auto; }
.site-nav { display: flex; gap: 34px; font-size: 0.95rem; font-weight: 500; }
.site-nav a { text-decoration: none; color: #fff; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.6); }
.site-nav a[aria-current="page"] { border-bottom-color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; font-size: .9rem; padding: 8px 14px; cursor: pointer; }

/* buttons + links */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border: 1px solid currentColor; transition: background-color .15s, color .15s;
}
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--stone); color: var(--ink); }
.btn.ghost { color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.text-link { font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.text-link:hover { border-color: var(--brick); }

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,27,.55) 0%, rgba(20,24,27,.15) 35%, rgba(20,24,27,.75) 100%); }
.hero-copy { position: relative; padding-bottom: 88px; padding-top: 160px; }
.hero-year { font-family: var(--sans); font-size: 1rem; font-weight: 500; opacity: .85; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 600; font-stretch: 118%;
  line-height: 1.0; letter-spacing: -0.025em; max-width: 15ch;
}
.hero-lede { font-size: 1.2rem; max-width: 44ch; margin-top: 24px; opacity: .92; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* sections */
.section { padding: 96px 0; }
.section.tight { padding: 56px 0 96px; }
.tint { background: var(--stone); }
.band { background: var(--ink); color: #fff; padding: 48px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.page-head { padding: 88px 0 24px; }
.split { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; margin-bottom: 40px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols3 .h3 { margin-bottom: 10px; }
.cols3 p { color: var(--slate); font-size: 1rem; }

/* facts (stat blocks) */
.facts { margin: 0; display: grid; gap: 0; }
.facts div { border-top: 1px solid var(--line); padding: 14px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; font-size: 1.6rem; font-weight: 600; font-stretch: 112%; letter-spacing: -0.01em; }
.facts.wide { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.facts.wide div { border-top: 1px solid rgba(255,255,255,.25); flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding-top: 18px; }
.facts.wide dt { color: rgba(255,255,255,.7); }
.facts.wide dd { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; }

/* project cards */
.grid { display: grid; gap: 48px 32px; }
.feature-grid { grid-template-columns: repeat(2, 1fr); }
.port-grid { grid-template-columns: repeat(3, 1fr); }
.proj { text-decoration: none; display: flex; flex-direction: column; }
.proj-img { display: block; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.proj:hover .proj-img img { transform: scale(1.03); }
.proj:hover { color: var(--ink); }
.proj-name { font-size: 1.2rem; font-weight: 600; margin-top: 16px; }
.proj:hover .proj-name { color: var(--brick); }
.proj-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.kind { text-align: right; }
.proj[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 9px 16px; font-size: .9rem; font-weight: 500; cursor: pointer; }
a.chip { text-decoration: none; display: inline-block; }
.press-sec { scroll-margin-top: 16px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* press */
.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.press-list li { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.press-src { display: flex; flex-direction: column; gap: 4px; }
.outlet { font-weight: 600; font-size: 1rem; }
.press-src time { color: var(--muted); font-size: .92rem; font-family: var(--sans); }
.press-title { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; line-height: 1.3; }
.press-title a { text-decoration: none; }
.press-title a::after { content: ""; display: inline-block; width: .55em; height: .55em; margin-left: .35em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-.1em); opacity: .5; }
.press-body p { color: var(--slate); margin-top: 6px; max-width: 64ch; }
.year { color: var(--muted); margin-bottom: 16px; }
.feature-press { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-press .h2 { margin-bottom: 14px; }
.feature-press p + p { margin-top: 24px; }

/* project page */
.proj-hero { background: var(--ink); }
.proj-hero img { width: 100%; height: min(72vh, 680px); object-fit: cover; }
.proj-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--line); }
.sub { font-family: var(--sans); font-size: 1.15rem; color: var(--slate); margin-top: 10px; }
.city { font-family: var(--sans); font-weight: 600; margin-top: 22px; }
.where { color: var(--muted); }
.proj-text .prose { margin-top: 28px; }
.proj-text .btn { margin-top: 32px; }
.proj-facts { position: sticky; top: 24px; border-bottom: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery.two { grid-template-columns: repeat(2, 1fr); }
.gallery.one { grid-template-columns: 1fr; }
.gallery.one a { aspect-ratio: 16 / 7; }
.gallery.two a:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 16 / 7; }
.next { border-top: 1px solid var(--line); padding: 48px 0; }
.next-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.next-link { text-decoration: none; text-align: right; display: flex; flex-direction: column; font-family: var(--sans); }
.next-name { font-size: 1.3rem; font-weight: 600; }

/* services + about */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.svc.flip .svc-row > img { order: 2; }
.svc-row > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-row .h2 { margin-bottom: 20px; }
.svc-row .btn { margin-top: 28px; }
.svc + .svc { padding-top: 0; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; margin-top: 40px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 18px; background: var(--line); }
.role { color: var(--muted); font-size: .92rem; margin: 2px 0 12px; }
.person p { font-size: .98rem; }
.person-links { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; word-break: break-all; }

/* partners + cta */
.partners { padding: 72px 0; border-top: 1px solid var(--line); }
.logo-row { list-style: none; margin: 32px 0 0; padding: 0; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 48px 72px; }
.logo-row img { width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .8; }
.cta { background: var(--stone); padding: 80px 0; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta .h2 { max-width: 22ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; }
.form { display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: .92rem; font-weight: 500; }
.form input, .form textarea {
  font: inherit; font-family: var(--serif); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); padding: 12px 14px; border-radius: 0;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form [aria-invalid="true"] { border-color: var(--brick); }
.form .btn { justify-self: start; cursor: pointer; }
.form-note { font-size: .95rem; color: var(--brick); min-height: 1.4em; }
.contact-info .h3 { margin: 28px 0 6px; }
.contact-info .h3:first-child { margin-top: 0; }
.hours { border-collapse: collapse; font-size: .95rem; }
.hours th { text-align: left; font-weight: 500; padding: 4px 24px 4px 0; }
.hours td { color: var(--slate); }

/* footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 72px 0 32px; font-size: .98rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { margin-bottom: 18px; }
.site-footer .muted { color: rgba(255,255,255,.6); max-width: 28ch; }
.f-h { font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.f-links { display: flex; flex-direction: column; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: .88rem; color: rgba(255,255,255,.55); }

/* responsive */
@media (max-width: 1000px) {
  .port-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .proj-layout { grid-template-columns: 1fr; gap: 40px; }
  .proj-facts { position: static; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header-row { height: 72px; }
  .menu-btn { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); padding: 8px 16px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.05rem; }
  .section { padding: 64px 0; }
  .section.tight { padding: 32px 0 64px; }
  .page-head { padding: 56px 0 16px; }
  .facts.wide { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .cols3, .feature-grid, .port-grid, .svc-row, .feature-press, .contact-grid, .row2 { grid-template-columns: 1fr; }
  .svc-row, .feature-press, .contact-grid { gap: 32px; }
  .svc.flip .svc-row > img { order: 0; }
  .press-list li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery.three { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; }
  .person img { max-width: 360px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-copy { padding-bottom: 56px; }
  .next-link { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
/* services photos */
.proj-hero.short img { height: min(48vh, 460px); }
.svc-logo { display: block; height: 56px; width: auto; max-width: 240px; object-fit: contain; margin-top: 28px; }
.svc-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; } .svc-grid .proj-meta { flex-direction: column; gap: 0; } .svc-grid .kind { text-align: left; } }
