/* Koerner Construction — concept redesign demo
   System: graphite ink / concrete paper / Koerner red accent
   Type: Big Shoulders Display (display) · Public Sans (body) · IBM Plex Mono (annotations) */

:root {
  --ink: #171b20;
  --steel: #46535e;
  --paper: #f2f3f0;
  --card: #ffffff;
  --line: #d8dad4;
  --tint: #e7ecee;
  --red: #d6222a;
  --red-dark: #b21b22;
  --ok: #1d7a3a;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(23, 27, 32, .06), 0 8px 24px rgba(23, 27, 32, .08);
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

a, button, .chip { touch-action: manipulation; -webkit-tap-highlight-color: rgba(214, 34, 42, .18); }

section[id] { scroll-margin-top: 74px; }   /* anchors clear the sticky header */

h1, h2, h3 { text-wrap: balance; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- annotation system (signature) ---------- */
.anno {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.anno::before, .anno::after {
  content: "";
  height: 1px;
  background: var(--steel);
  flex: 0 0 34px;
  position: relative;
}
.anno::after { flex: 1; }
.anno.tick::before, .anno.tick::after {
  box-shadow: -1px -4px 0 -0.5px var(--steel), -1px 4px 0 -0.5px var(--steel);
}
.anno--light { color: #c9d2d8; }
.anno--light::before, .anno--light::after { background: #c9d2d8; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 27, 32, .92);
  backdrop-filter: blur(8px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.brand-block {
  width: 30px;
  height: 30px;
  background: var(--red);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
}
.brand-name small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: .32em;
  color: #aeb9c2;
}
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.head-nav a {
  color: #dfe5e9;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.head-nav a:hover { color: #fff; }
.head-phone {
  font-family: var(--mono);
  font-size: 14px;
  color: #fff !important;
}
@media (max-width: 820px) {
  .head-nav a:not(.head-phone):not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .head-nav .head-phone { display: none; }  /* the sticky action bar covers Call */
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
}
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a323b; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  background: url("assets/project-1c.jpg") center 35% / cover no-repeat;
  filter: saturate(.92);
}
.hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23, 27, 32, .92) 34%, rgba(23, 27, 32, .55) 62%, rgba(23, 27, 32, .35));
}
.hero .wrap {
  position: relative;
  padding-top: 84px;
  padding-bottom: 88px;
  max-width: 1080px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 84px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  max-width: 13ch;
}
.hero h1 em {
  font-style: normal;
  color: #ff5a5f;
}
.hero-sub {
  margin-top: 18px;
  font-size: 17px;
  color: #d7dde2;
  max-width: 52ch;
}
.hero-ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: #c9d2d8;
}
.trust b { color: #fff; font-weight: 500; }
.trust .star { color: #ffb42c; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #fff; }
.section h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 46px);
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.section-lede { color: var(--steel); max-width: 60ch; margin-bottom: 36px; }
.section-dark .section-lede { color: #b9c2ca; }

::selection { background: var(--red); color: #fff; }

.btn:active { transform: translateY(1px); }

/* about / story */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy p { color: var(--steel); margin-bottom: 14px; max-width: 58ch; }
.about-copy p b { color: var(--ink); }
.promise {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 18px;
  margin: 22px 0 0;
}
.promise p {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.promise cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
}
/* title block — styled like the corner of a construction drawing */
.title-block {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}
.tb-head {
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.tb-head .tb-red { color: #ff8a8e; }
.tb-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-top: 1px solid var(--line);
}
.tb-row:first-of-type { border-top: 0; }
.tb-row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 11px 14px;
  border-right: 1px solid var(--line);
  align-self: center;
}
.tb-row dd {
  padding: 11px 14px;
  font-weight: 600;
  font-size: 14.5px;
}
.tb-row dd small { display: block; font-weight: 400; color: var(--steel); font-size: 13px; }

/* community + careers band */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }
.duo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.duo-card h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.duo-card p { font-size: 14.5px; color: var(--steel); margin-bottom: 14px; }
.duo-card .btn { font-size: 14px; padding: 10px 18px; }

/* services */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.svc {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-top-color .15s ease, transform .15s ease;
}
.svc:hover { border-top-color: var(--red); transform: translateY(-2px); }
.svc h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.svc p { font-size: 14.5px; color: var(--steel); flex: 1; }
.svc a {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.svc a:hover { text-decoration: underline; }

/* process — a real sequence, numbering earns its place */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step-no {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.step h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step p { font-size: 14.5px; color: var(--steel); }
.section-dark .step p { color: #b9c2ca; }

/* projects */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.ph {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 4 / 3;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 16px 12px;
  background: linear-gradient(transparent, rgba(23, 27, 32, .85));
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ph-more {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  aspect-ratio: 4 / 3;
  padding: 20px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--steel);
  color: var(--ink);
  text-decoration: none;
  background: var(--card);
}
.ph-more:hover { border-color: var(--red); }
.ph-more strong { font-family: var(--display); font-size: 26px; text-transform: uppercase; line-height: 1.1; }
.ph-more span { font-size: 13.5px; color: var(--steel); }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.review .stars { color: #f59e0b; letter-spacing: 2px; font-size: 14px; }
.review p { margin: 10px 0 12px; font-size: 15px; }
.review cite {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--steel);
  text-transform: uppercase;
}
.reviews-link { margin-top: 22px; font-size: 14.5px; }

/* quote form */
.quote-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) { .quote-grid { grid-template-columns: 1fr; } }
.qform { display: grid; gap: 14px; }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .qrow { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; }
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.form-ok {
  background: #eaf6ee;
  border: 1px solid #bfe3cb;
  color: var(--ok);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
  display: none;
}
.assist-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.assist-card h3 {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.assist-card p { font-size: 14.5px; color: #b9c2ca; margin-bottom: 18px; }
.demo-pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  padding: 3px 9px;
  border: 1px solid #5a6673;
  border-radius: 99px;
  color: #aeb9c2;
  margin-bottom: 12px;
}

/* footer */
.site-foot { background: var(--ink); color: #b9c2ca; padding: 56px 0 110px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr 1.2fr;
  gap: 36px;
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8a97a1;
  margin-bottom: 14px;
}
.site-foot a { color: #fff; }
.foot-nap { font-style: normal; font-size: 15px; line-height: 1.9; }
.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badges img { height: 44px; width: auto; background: #fff; border-radius: 4px; padding: 4px; }
.map-embed { border: 0; width: 100%; height: 200px; border-radius: var(--radius); }
.foot-note {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: #7d8a94;
}

/* mobile sticky action bar */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.action-bar a.primary { background: var(--red); color: #fff; }
@media (max-width: 820px) {
  .action-bar { display: grid; }
  .site-foot { padding-bottom: 140px; }
}

/* ============ intake page ============ */
.intake-body { background: var(--tint); min-height: 100vh; }
.intake-layout {
  max-width: 1020px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 860px) { .intake-layout { grid-template-columns: 1fr; } }
.pitch-panel h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 48px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 14px;
}
.pitch-panel > p { color: var(--steel); margin-bottom: 22px; max-width: 46ch; }
.pitch-points { list-style: none; display: grid; gap: 14px; }
.pitch-points li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 14.5px;
}
.pitch-points b { display: block; margin-bottom: 2px; }

.chat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.chat-head {
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .brand-block { width: 34px; height: 34px; font-size: 22px; }
.chat-head-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.chat-head-name small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #a5e0b6;
}
.chat-head .demo-pill { margin: 0 0 0 auto; }
.chat-log {
  flex: 1;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: 480px;
}
.msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
}
.msg-bot {
  background: var(--tint);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.msg-user {
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel);
  animation: blink 1.1s infinite both;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 70%, 100% { opacity: .25; } 35% { opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 2px; align-self: flex-start; }
.chip {
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1.5px solid var(--steel);
  background: #fff;
  color: var(--ink);
  border-radius: 99px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  font-family: var(--body);
  font-size: 15px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
}
.chat-input button {
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  border-radius: 99px;
  padding: 0 20px;
  cursor: pointer;
}
.chat-input button:hover { background: var(--red-dark); }
.chat-input[data-disabled="true"] { opacity: .5; pointer-events: none; }

.photo-thumbs { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-end; }
.photo-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--red);
}

/* lead summary card */
.lead-card {
  align-self: stretch;
  flex-shrink: 0;   /* overflow:hidden zeroes the automatic minimum size — don't let the log crush it */
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.lead-card-head {
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lead-tag {
  margin-left: auto;
  background: var(--red);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: .1em;
}
.lead-tag.warm { background: #b7791f; }
.lead-rows { background: #fff; }
.lead-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.lead-row dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 2px;
}
.lead-row dd { font-weight: 600; }
.lead-reply {
  border-top: 1px solid var(--line);
  background: var(--tint);
  padding: 12px 16px;
  font-size: 13.5px;
}
.lead-reply b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.restart {
  align-self: center;
  margin-top: 10px;
  background: none;
  border: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}
