/* Company pages: /about, /process, /areas (front matter css: ["pages/company"]).
   Tokens only (spec 4.1). Body copy 17px or more, labels 14px at weight 600+ in --ink or --ink-2,
   --tan only for lines and ticks. No motion of its own: hover states come from main.css. */

/* ---------- Shared ---------- */
.co-links { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 18px; }
.co-mini-h { margin-bottom: 14px; font: 700 18px/1.3 var(--font-ui); color: var(--c-head); }

/* ---------- About: who we are, with the design-build steps ---------- */
.co-story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.co-story .shead { margin-bottom: 24px; }
.co-timeline { padding: clamp(22px, 2.6vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.co-timeline__h { margin-bottom: 20px; font: 700 14px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.co-timeline__list { position: relative; margin: 0; padding: 0; list-style: none; }
.co-timeline__list::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1px; background: var(--tan); }
.co-timeline__list li { position: relative; padding: 0 0 24px 36px; }
.co-timeline__list li:last-child { padding-bottom: 0; }
.co-timeline__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px; border: 1.5px solid var(--walnut); background: var(--surface); }
.co-timeline__list li:last-child::before { background: var(--walnut); }
.co-timeline__k { display: block; font: 790 22px/1.2 var(--font-display); font-stretch: 110%; letter-spacing: -.01em; color: var(--ink); }
.co-timeline__list p { margin-top: 4px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.co-timeline__foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); }
@media (max-width: 899.98px) { .co-story { grid-template-columns: minmax(0, 1fr); } }

/* ---------- About: founded by Spencer Stevens (story and quote beside the workbench photo) ---------- */
.co-founder { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.co-founder .shead { margin-bottom: 24px; }
.co-founder .co-quote { margin: 28px 0 0; }
.co-founder__media { margin: 0; }
@media (max-width: 899.98px) { .co-founder { grid-template-columns: minmax(0, 1fr); } .co-founder__media { max-width: 560px; } }

/* ---------- About: what cambium means (hotspots laid out as copy + photo, list underneath) ---------- */
.co-cambium {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  grid-template-areas: "copy media" "list list";
  gap: clamp(36px, 4vw, 56px) clamp(40px, 5vw, 80px); align-items: center;
}
.co-cambium__copy { grid-area: copy; }
.co-cambium .hotspots { display: contents; }
.co-cambium .hotspots__media { grid-area: media; max-width: none; }
.co-cambium .hotspots__list { grid-area: list; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 20px; border-bottom: 0; }
.co-cambium .hotspots__item { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding: 20px 14px 18px; border-top: 1px solid var(--line-2); }
.co-cambium .hotspots__title { margin-top: 0; }
@media (max-width: 1099.98px) { .co-cambium .hotspots__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899.98px) {
  .co-cambium { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "media" "list"; }
  .co-cambium .hotspots__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
  .co-cambium .hotspots__list { grid-template-columns: minmax(0, 1fr); }
  .co-cambium .hotspots__item { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 12px 16px 6px; }
}

/* ---------- About: philosophy cards ---------- */
.co-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin: 0; padding: 0; list-style: none; }
.co-value { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
/* Subgrid lines the four parts up across the three cards, so every "In practice" starts level. */
@supports (grid-template-rows: subgrid) {
  .co-value { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  .co-value .co-value__practice { margin-top: 0; }
}
.co-value__n { margin-bottom: 16px; font: 790 clamp(2.2rem, 3.2vw, 2.9rem)/1 var(--font-display); font-stretch: 112%; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--link); }
.co-value__t { margin-bottom: 10px; }
.co-value__p { margin-bottom: 24px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.co-value__practice { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-2); }
.co-value__practice > p + p { margin-top: 0; }
.co-value__practice p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.co-value__practice .co-value__k { margin-bottom: 8px; font: 700 14px/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 959.98px) { .co-values { grid-template-columns: minmax(0, 1fr); } .co-value__n { margin-bottom: 12px; } }

/* ---------- About: materials ---------- */
.co-materials .shead { margin-bottom: 26px; }
.co-materials__ticks { gap: 10px; margin-top: 22px; }
.co-materials__ticks li { font-size: 17px; line-height: 1.5; }
.co-quote { margin: 0 0 26px; padding: 4px 0 4px 26px; border-left: 3px solid var(--tan); }
.co-quote p { font: italic 400 clamp(1.2rem, 1.1rem + .45vw, 1.45rem)/1.5 var(--font-body); color: var(--ink); }
.co-quote__by { margin-top: 14px; font: 600 15px/1.4 var(--font-ui); color: var(--ink-2); }
.co-materials .gallery .caption { margin-top: 8px; }

/* ---------- About: service area strip ---------- */
.co-where { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px clamp(32px, 5vw, 64px); align-items: center; }
.co-where__copy .eyebrow { margin-bottom: 10px; }
.co-where__t { margin-bottom: 6px; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); line-height: 1.12; }
@media (max-width: 899.98px) { .co-where { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Process: the four steps on a dimension rail ---------- */
.co-steps { position: relative; display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.co-steps::before {
  content: ""; position: absolute; left: 21px; top: 27px; bottom: 27px; width: 11px;
  border-block: 1px solid var(--tan); background: var(--tl) 50% 0 / 1px 100% no-repeat;
}
.co-step { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: clamp(18px, 3vw, 36px); align-items: start; }
.co-step__n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; margin-top: 18px;
  border: 1.5px solid var(--ink); background: var(--band); color: var(--ink);
  font: 790 22px/1 var(--font-display); font-stretch: 112%; font-variant-numeric: tabular-nums;
}
.co-step__card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 3vw, 44px);
  padding: clamp(20px, 2.4vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.co-step__sum { margin-top: 8px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.co-step__k { margin-bottom: 12px; font: 700 14px/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.co-step .ticks { gap: 10px; }
.co-step .ticks li { font-size: 17px; line-height: 1.5; }
@media (max-width: 1099.98px) {
  .co-step__card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-step__head { grid-column: 1 / -1; }
}
@media (max-width: 699.98px) { .co-step__card { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599.98px) {
  .co-steps::before { display: none; }
  .co-step { grid-template-columns: minmax(0, 1fr); }
  .co-step__n { width: 48px; height: 48px; margin: 0 0 -24px 18px; font-size: 20px; }
  .co-step__card { padding-top: 34px; }
}

/* ---------- Process: what to have ready + the measuring sketch ---------- */
.co-ready .checklist li { padding: 14px 0; }
.co-ready__cta { display: grid; justify-items: start; gap: 16px; margin-top: 28px; padding: clamp(18px, 2.2vw, 26px); border-left: 3px solid var(--walnut); background: var(--surface); }
.co-ready__cta p { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.co-sketch { margin: 0; }
.co-sketch__paper {
  padding: clamp(16px, 2vw, 26px); border: 1px solid var(--line); border-radius: var(--r-card); background-color: var(--surface);
  background-image: linear-gradient(rgba(61,31,3,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(61,31,3,.045) 1px, transparent 1px);
  background-size: 20px 20px;
}
.co-sketch__svg { width: 100%; max-width: 480px; height: auto; margin-inline: auto; overflow: visible; }
.co-sketch__room path, .co-sketch__room rect { fill: none; stroke: var(--ink-2); stroke-width: 1.75; stroke-linecap: square; }
.co-sketch__room .co-sketch__floor { stroke-width: 3.5; }
.co-sketch__room .co-sketch__thin { stroke-width: 1.25; }
.co-sketch__dims path { fill: none; stroke: var(--link); stroke-width: 1.1; }
.co-sketch__tags circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.co-sketch__tags text { font: 700 17px var(--font-ui); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.co-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 20px 0 0; padding: 0; list-style: none; }
.co-legend li { display: flex; align-items: flex-start; gap: 12px; font: 400 17px/1.4 var(--font-ui); color: var(--ink-2); }
.co-legend__k { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 50%; font: 700 15px/1 var(--font-ui); color: var(--ink); }
@media (max-width: 479.98px) { .co-legend { grid-template-columns: minmax(0, 1fr); } .co-sketch__paper { padding: 10px 6px; } }

/* ---------- Process: build and install ---------- */
/* .split--rev shows the photo (second in the DOM) in the narrower left column; phones keep DOM order. */
.co-build { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.co-build__stats { margin: 4px 0 24px; }
.co-build__ticks li, .co-install .ticks li { font-size: 17px; line-height: 1.5; }
.co-install__media { margin: 0 0 32px; }
@media (max-width: 899.98px) { .co-build { grid-template-columns: minmax(0, 1fr); } .co-build__media { max-width: 520px; } }

/* ---------- Areas: header with the town list and the map ---------- */
.co-areas {
  display: grid; grid-template-columns: minmax(0, 1fr) 500px; grid-template-rows: auto 1fr;
  grid-template-areas: "copy map" "towns map"; gap: 36px clamp(40px, 5vw, 80px); align-items: start;
}
.co-areas__copy { grid-area: copy; }
.co-map-fig { grid-area: map; margin: 0; }
.co-towns { grid-area: towns; }
.co-areas__title { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
.co-areas__stats { max-width: 440px; margin-top: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.co-towns { columns: 2; column-gap: 40px; }
.co-county { break-inside: avoid; margin-bottom: 24px; }
.co-county__h { padding-bottom: 10px; border-bottom: 1px solid var(--line-2); font: 700 14px/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.co-county__list { margin: 0; padding: 0; list-style: none; }
.co-county__list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 600 17px/1.3 var(--font-ui); color: var(--ink); }
.co-num { display: none; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--walnut); color: var(--on-dark); font: 700 14px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
@media (max-width: 959.98px) {
  .co-areas { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "copy" "map" "towns"; }
  .co-map-fig { width: 100%; max-width: 560px; }
}

/* The map: grid, shaded area and north arrow in SVG; dots, labels and the scale in HTML so the
   text stays 15px at any size. */
.co-map { position: relative; width: 100%; border: 1px solid var(--line-2); background: var(--surface); }
.co-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.co-map__grid line { stroke: rgba(61,31,3,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.co-map__area { fill: var(--band); stroke: var(--band); stroke-width: 56; stroke-linejoin: round; }
.co-map__north path { fill: var(--ink-2); }
.co-map__n { position: absolute; top: 4px; transform: translateX(-50%); font: 700 14px/1 var(--font-ui); color: var(--ink-2); }
.co-map__pins { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.co-pin { position: absolute; width: 0; height: 0; }
.co-pin__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--walnut); box-shadow: 0 0 0 2.5px var(--surface); }
.co-pin__name { position: absolute; padding: 2px 4px; border-radius: 2px; background: rgba(255,253,249,.88); font: 600 15px/1.1 var(--font-ui); color: var(--ink); white-space: nowrap; }
.co-pin--r .co-pin__name { left: 8px; top: 0; transform: translateY(-50%); }
.co-pin--l .co-pin__name { right: 8px; top: 0; transform: translateY(-50%); }
.co-pin--t .co-pin__name { bottom: 8px; left: 0; transform: translateX(-50%); }
.co-pin--b .co-pin__name { top: 8px; left: 0; transform: translateX(-50%); }
.co-pin--main .co-pin__dot { left: -8px; top: -8px; width: 16px; height: 16px; }
.co-pin--main .co-pin__name { left: 11px; font-size: 17px; font-weight: 700; }
.co-pin__num { display: none; }
.co-map__scale { position: absolute; left: 5%; bottom: 16px; height: 11px; border-inline: 1px solid var(--ink-2); background: linear-gradient(var(--ink-2), var(--ink-2)) 0 50% / 100% 1px no-repeat; }
.co-map__scale span { position: absolute; left: 0; bottom: 15px; font: 600 14px/1 var(--font-ui); color: var(--ink-2); white-space: nowrap; }
@media (max-width: 539.98px) {
  .co-pin__dot, .co-pin__name { display: none; }
  .co-pin__num {
    position: absolute; left: -13px; top: -13px; display: grid; place-items: center; width: 26px; height: 26px;
    border-radius: 50%; background: var(--walnut); box-shadow: 0 0 0 2px var(--surface);
    font: 700 14px/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--on-dark);
  }
  .co-num { display: inline-grid; }
}
@media (max-width: 379.98px) { .co-pin__num { left: -11px; top: -11px; width: 22px; height: 22px; } }

/* ---------- Areas: outside these towns ---------- */
.co-outside__steps { padding: clamp(20px, 2.6vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.co-outside__steps .steps--stack .steps__item { padding: 18px 0; }
.co-outside__steps .steps--stack .steps__item:first-child { border-top: 0; padding-top: 4px; }
@media (max-width: 599.98px) {
  .co-outside__steps .steps--stack .steps__item { grid-template-columns: 58px minmax(0, 1fr); column-gap: 14px; }
  .co-outside__steps .steps--stack .steps__n { font-size: 2.1rem; }
}

/* About page header: a wider copy column and a slightly smaller H1, so "A design-build woodwork
   company for the whole home" sets in three lines instead of a column of single words. */
.about-page .phead__title { font-family: var(--font-display); font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-stretch: 112%; }
@media (min-width: 960px) { .about-page .phead__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }

/* /areas: on narrow phones the uppercase service-area eyebrow sets in one line in the fallback
   font and two in Archivo, so two lines are reserved up front and the swap moves nothing. */
@media (max-width: 479.98px) { .co-areas__copy > .eyebrow { min-height: 2.4em; } }
