/* ==========================================================================
   roofer-vector — shared stylesheet
   Extracted from mightydogroofing.com/southeast-valley-phoenix-az/ (2026-07-27).

   Execution is ours, inventory and voice are theirs. Three things carry over
   from the source verbatim as *decisions*: a square-edged system (global radius
   is literally 0), a 4px button border, and the split leading (display 1.02,
   body 1.75). Everything else is rebuilt on the house scale.

   The source's signature diagonal is a flattened JPEG on the live site. It is
   re-authored here in CSS, which is also the only way the brand's declared
   accent (#00b4eb) becomes a real colour on the page rather than pixels inside
   a photograph. See brand-spec.md, "The cyan problem".
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@125,400;125,500;125,600;125,700;125,800;125,900&family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* palette — canonical (extracted). palette-toggle.js overrides these at runtime. */
  --accent: #da2128;              /* --inner-bg-alt, 9 of 10 source buttons */
  --accent-deep: #a6191f;         /* derived: 7.55:1 on white, for body-size links */
  --accent-soft: rgba(218, 33, 40, .24);
  --accent-pale: #fcedee;
  --stripe: #00b4eb;              /* --accent / --highlight-color. Never carries text. */

  --paper: #ffffff;               /* --main-bg */
  --bg: #ffffff;
  --bg-pure: #ffffff;
  --band: #f6f6f6;                /* --inner-bg */
  --bg-dark: #000000;             /* --main-bg-alt */

  --ink: #000000;
  --ink-strong: #000000;
  --ink-muted: #3a3a3a;
  --ink-soft: #55575a;
  --ink-quiet: #76797d;
  --text-on-dark-muted: rgba(255, 255, 255, .78);

  --hairline: #e0e1e3;
  --card-border: #dcdee0;

  --font-display: 'Archivo', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Type ramp. Source root is fluid (clamp) which is why its rendered sizes are
     fractional; the house ramp keeps the fluidity and drops the fractions. */
  /* Floors are set for Archivo Expanded, not for a normal-width sans. An
     expanded 900 face has a far wider min-content than the default these
     numbers get picked against, so a 2rem floor punches a single long word
     out of a 320px column. */
  --text-display: clamp(2.15rem, 5.4vw + .6rem, 5.4rem);
  --text-h1: clamp(1.7rem, 2.6vw + 1.05rem, 2.85rem);
  --text-h2: clamp(1.6rem, 1.5vw + 1rem, 2.05rem);
  --text-h3: clamp(1.24rem, .7vw + 1rem, 1.44rem);
  --text-h4: 1.125rem;
  --text-body-lg: 1.16rem;
  --text-body: 1rem;
  --text-small: .9375rem;
  --text-meta: .8125rem;

  /* Shape. The source resolves every radius to 0. Its theme is architected for
     right-corner-only rounding (--bdr-tl 0 / --bdr-tr 1 / --bdr-br 1 / --bdr-bl 0)
     but ships --bdr-rds: 0rem, so the asymmetry never renders. Shipping flat. */
  --radius-card: 0;
  --radius-tile: 0;
  --radius-btn: 0;
  --btn-border-width: 4px;        /* --btn-bdr-w, extracted. This is the stamp. */

  /* One shadow renders on the source, as a drop-shadow() filter so it follows
     the clipped silhouette instead of the box. --bx-sdw-o: 0.4. */
  --silhouette-shadow: drop-shadow(1.65px 1.65px 8px rgba(0, 0, 0, .4));
  --card-shadow: 0 2px 10px rgba(0, 0, 0, .07);

  --container: 1240px;
  --container-narrow: 860px;
  --gutter: 24px;
  --section: clamp(54px, 5.4vw, 92px);
  --t-fast: .3s;                  /* extracted: every source transition is .3s */
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==== base =============================================================== */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;              /* source body leading is 1.8 on Neue Haas
                                     Display; re-tuned for Inter's larger
                                     x-height. The openness is characteristic. */
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: expanded;
  color: var(--ink-strong);
  margin: 0 0 14px;
  overflow-wrap: break-word;      /* last resort only, and it is needed: a wide
                                     900-weight word can exceed a phone column */
  text-transform: uppercase;      /* extracted: the source sets case in CSS, not
                                     in markup, which is why its own source text
                                     reads "what to expect with mighty dog roofing" */
}
.display {
  font-size: var(--text-display);
  font-weight: 900;
  line-height: 1.02;              /* Eurostile 1.06 re-tuned for Archivo Expanded */
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--text-h1); font-weight: 900; line-height: 1.08; }
h2, .h2 { font-size: var(--text-h2); font-weight: 900; line-height: 1.1; }
h3, .h3 { font-size: var(--text-h3); font-weight: 800; line-height: 1.18; }
h4, .h4 { font-size: var(--text-h4); font-weight: 800; line-height: 1.25; }
p { margin: 0 0 16px; }
a { color: var(--accent-deep); }
.lede { font-size: var(--text-body-lg); color: var(--ink-muted); font-weight: 300; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-48 { margin-top: 48px; }
.tel { font-weight: 800; color: var(--accent-deep); text-decoration: none; }
.tel:hover { text-decoration: underline; }

/* The source ships a real keyboard-only focus ring
   (body:not(.user-is-tabbing) .hdr *:focus-visible). Most sources ship nothing.
   Transcribed rather than replaced. */
:focus-visible { outline: 3px solid var(--stripe); outline-offset: 2px; }

/* ==== buttons ============================================================
   Square, 4px border, uppercase Archivo. The heavy border is the whole
   character of the source's CTA and is the reason a 0 radius reads as
   stamped rather than unstyled. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-stretch: expanded;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .1em;           /* source 0.12em, eased for Archivo's wider set */
  text-decoration: none;
  padding: 13px 28px;
  border: var(--btn-border-width) solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: #fff; }
.btn-large { font-size: 1.0625rem; padding: 16px 34px; }
.btn-sm { font-size: .875rem; padding: 8px 16px; border-width: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
/* Any dark ground, not just `.on-dark`. The banner and the corporate hero paint
   their own ink ground without carrying the class, and an ink-on-ink ghost
   button renders at 1.00:1 — invisible, and it shipped that way until the
   contrast gate caught it. */
.on-dark .btn-ghost, .on-accent .btn-ghost,
.inner-banner .btn-ghost, .corp-hero .btn-ghost, .side-cta .btn-ghost { border-color: #fff; color: #fff; }
.on-dark .btn-ghost:hover, .on-accent .btn-ghost:hover,
.inner-banner .btn-ghost:hover, .corp-hero .btn-ghost:hover, .side-cta .btn-ghost:hover { background: #fff; color: var(--ink); }
.on-accent .btn-primary { background: #fff; border-color: #fff; color: var(--accent-deep); }
.on-accent .btn-primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ==== signature 1: the hard diagonal =====================================
   The source bakes this into a single 2880x1266 JPEG. Rebuilt here as four
   clip-path layers sharing one diagonal, which puts the red and the cyan on
   the page as real CSS colour for the first time. */
.slash {
  position: relative;
  isolation: isolate;
  background: var(--band);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.slash > .container { position: relative; z-index: 3; width: 100%; }
.slash .slash-panel,
.slash .slash-rule-a,
.slash .slash-rule-b,
.slash .slash-photo { position: absolute; inset: 0; }
/* Geometry measured off the source composite rather than eyeballed: the line
   runs 57.5% at the top to 39.5% at the bottom, the red band is 7.5% wide and
   the cyan 3%. The red being more than twice the cyan is the part that reads
   as "theirs" — two equal stripes look like a different brand. */
.slash .slash-panel { background: var(--band); clip-path: polygon(0 0, 57.5% 0, 39.5% 100%, 0 100%); z-index: 2; }
.slash .slash-rule-a { background: var(--accent); clip-path: polygon(57.5% 0, 65% 0, 47% 100%, 39.5% 100%); z-index: 2; }
.slash .slash-rule-b { background: var(--stripe); clip-path: polygon(65% 0, 68% 0, 50% 100%, 47% 100%); z-index: 2; }
.slash .slash-photo {
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  clip-path: polygon(68% 0, 100% 0, 100% 100%, 50% 100%);
  z-index: 1;
}
.slash .slash-copy { max-width: 52%; padding: 70px 0; }
.slash .slash-copy .display { margin-bottom: 10px; }
.slash .slash-copy .lede { max-width: 26ch; }

/* Stacked below the split. The diagonal becomes a two-band horizontal rule,
   which keeps the device legible instead of squeezing it into a phone width. */
@media (max-width: 980px) {
  .slash { display: block; min-height: 0; }
  .slash .slash-panel, .slash .slash-rule-a, .slash .slash-rule-b, .slash .slash-photo { position: static; clip-path: none; inset: auto; }
  .slash .slash-panel { display: none; }
  .slash .slash-rule-a { height: 8px; }
  .slash .slash-rule-b { height: 6px; }
  .slash .slash-photo { height: 260px; }
  .slash > .container { padding-top: 48px; padding-bottom: 40px; }
  .slash .slash-copy { max-width: none; padding: 0; }
  .slash .slash-copy .lede { max-width: none; }
}

/* ==== signature 2: the nested double clip ================================
   Extracted verbatim as geometry. The source clips the <picture> at 76% and
   the inner <img> at 66%, so the corner is cut twice and steps. A single
   chamfer is not the same shape and was the easy thing to get wrong. */
.clip-media {
  display: block;
  clip-path: polygon(0 0, 100% 1%, 100% 56%, 76% 100%, 0 100%);
  filter: var(--silhouette-shadow);   /* signature 3: follows the cut, not the box */
}
.clip-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 1%, 100% 56%, 66% 100%, 0 100%);
}
.clip-media.tall img { aspect-ratio: 3 / 4; }
.clip-media.wide img { aspect-ratio: 16 / 10; }

/* ==== sections =========================================================== */
.section { padding: var(--section) 0; background: var(--bg); }
.section.band { background: var(--band); }
.section.on-dark { background: var(--bg-dark); color: var(--text-on-dark-muted); }
.section.on-dark h1, .section.on-dark h2, .section.on-dark h3, .section.on-dark h4 { color: #fff; }
.section.on-accent { background: var(--accent); color: #fff; }
.section.on-accent h1, .section.on-accent h2, .section.on-accent h3, .section.on-accent h4 { color: #fff; }
.section-head { max-width: 860px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.section.on-dark a:not(.btn), .section.on-accent a:not(.btn) { color: #fff; }

/* Light-ground components sitting inside a dark or red band re-assert. */
.section.on-dark .value-tile, .section.on-accent .value-tile,
.section.on-dark .review-card, .section.on-accent .review-card,
.section.on-dark .info-card, .section.on-accent .info-card,
.section.on-dark .staff-card, .section.on-accent .staff-card,
.section.on-dark .article-card, .section.on-accent .article-card { color: var(--ink-muted); }
.section.on-dark .value-tile h3, .section.on-accent .value-tile h3,
.section.on-dark .info-card h3, .section.on-accent .info-card h3,
.section.on-dark .staff-card h3, .section.on-accent .staff-card h3,
.section.on-dark .article-card h3, .section.on-accent .article-card h3 { color: var(--ink-strong); }

/* ==== promo bar + header ================================================= */
.promo-bar { background: var(--accent); color: #fff; font-size: var(--text-meta); }
.promo-bar .container { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; justify-content: center; text-align: center; padding-top: 9px; padding-bottom: 9px; }
.promo-bar a { color: #fff; font-weight: 700; text-decoration: none; }
.promo-bar a:hover { text-decoration: underline; }

.util-bar { background: var(--ink); color: var(--text-on-dark-muted); font-size: var(--text-meta); }
.util-bar .container { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.util-bar a { color: #fff; text-decoration: none; }
.util-bar a:hover { text-decoration: underline; }
.util-bar .location-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.util-bar .location-chip small { font-weight: 500; color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; }
.util-bar .util-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }

.nav { background: var(--paper); border-bottom: 1px solid var(--hairline); }
.nav > .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.nav .brand-mark { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink-strong); font-family: var(--font-display); font-stretch: expanded; font-weight: 900; font-size: 1.0625rem; line-height: 1.05; text-transform: uppercase; min-width: 0; }
.nav .brand-mark img { width: 42px; height: 42px; flex: none; }
.nav .brand-mark small { display: block; font-family: var(--font-body); font-size: .625rem; font-weight: 600; color: var(--ink-quiet); letter-spacing: .1em; text-transform: uppercase; }
.nav .links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav .links a { color: var(--ink-strong); text-decoration: none; font-size: .9375rem; font-weight: 700; text-transform: uppercase; letter-spacing: .045em; padding: 6px 2px; }
.nav .links a:hover { color: var(--accent-deep); }
.nav .actions { display: flex; gap: 12px; align-items: center; flex: none; }
.nav .actions .btn { white-space: nowrap; }
@media (max-width: 1180px) { .nav .links { display: none; } }
@media (max-width: 768px) { .nav .actions { display: none; } }

/* ==== location card ====================================================== */
.location-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px 48px; align-items: start; background: var(--band); padding: 36px 34px; }
.location-card > * { min-width: 0; }
.location-card .nap p { margin: 0 0 4px; }
.location-card .hours-line { margin-top: 14px; font-weight: 700; color: var(--ink-strong); }
.location-card .quick-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.location-card .quick-links a { color: var(--ink-strong); text-decoration: none; font-weight: 700; text-transform: uppercase; font-family: var(--font-display); font-stretch: expanded; font-size: .875rem; letter-spacing: .04em; border-bottom: 2px solid var(--hairline); padding-bottom: 8px; display: block; }
.location-card .quick-links a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
@media (max-width: 880px) { .location-card { grid-template-columns: 1fr; } }

/* ==== value tiles ======================================================== */
.value-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.value-layout > * { min-width: 0; }
.value-media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: end; }
.value-media > * { min-width: 0; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.value-grid > * { min-width: 0; }
.value-tile h3 { font-size: 1.0625rem; letter-spacing: .03em; margin-bottom: 6px; }
.value-tile p { margin: 0; font-size: var(--text-small); }
.value-tile .tile-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 12px; display: block; }
@media (max-width: 980px) { .value-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* ==== long-form prose band =============================================== */
.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 26px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose > :first-child { margin-top: 0; }

/* ==== owner block ======================================================== */
.owner-block { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; align-items: center; }
.owner-block > * { min-width: 0; }
.owner-block .owner-name { font-family: var(--font-display); font-stretch: expanded; font-weight: 900; text-transform: uppercase; font-size: var(--text-h3); color: var(--ink-strong); margin: 0 0 4px; }
.owner-block .owner-role { font-size: var(--text-meta); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--accent-deep); margin: 0 0 16px; }
@media (max-width: 880px) { .owner-block { grid-template-columns: 1fr; } }

/* ==== disclosure band (Read More / Read Less) ============================ */
.disclosure { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.disclosure > * { min-width: 0; }
.disclosure .more { display: none; }
.disclosure.open .more { display: block; }
.disclosure .toggle { background: none; border: 0; padding: 0; font-family: var(--font-display); font-stretch: expanded; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .875rem; color: var(--accent-deep); cursor: pointer; }
.disclosure .toggle:hover { color: var(--ink); }
@media (max-width: 880px) { .disclosure { grid-template-columns: 1fr; } }

/* ==== trust strip ======================================================== */
.trust-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 26px 34px; align-items: center; }
.trust-rail > * { min-width: 0; }
.trust-rail img { display: block; margin: 0 auto; max-height: 76px; width: auto; }
.trust-mark { display: flex; align-items: center; justify-content: center; height: 76px; border: 2px solid var(--hairline); color: var(--ink-quiet); font-family: var(--font-display); font-stretch: expanded; font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; text-align: center; padding: 8px; }

/* ==== reviews ============================================================ */
.review-rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 82vw); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.review-rail > * { scroll-snap-align: start; min-width: 0; }
.review-card { background: var(--paper); border: 2px solid var(--hairline); padding: 30px 28px; }
.review-card .stars { color: var(--accent); letter-spacing: .18em; font-size: 1rem; margin-bottom: 12px; }
.review-card .quote { font-size: 1.16rem; font-weight: 300; line-height: 1.7; letter-spacing: .02em; color: var(--ink-muted); margin: 0 0 16px; }
.review-card .attribution { font-family: var(--font-display); font-stretch: expanded; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; color: var(--ink-strong); }

/* ==== closing CTA ======================================================== */
.cta-band { text-align: center; }
.cta-band .btn-row { justify-content: center; }

/* ==== inner banner ======================================================= */
.inner-banner { position: relative; background-color: var(--ink); background-size: cover; background-position: center; color: #fff; padding: clamp(60px, 6vw, 96px) 0; overflow: hidden; }
.inner-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.66) 52%, rgba(0,0,0,.3) 100%); }
.inner-banner > .container { position: relative; z-index: 1; }
.inner-banner h1 { color: #fff; }
.inner-banner .banner-sub { font-size: var(--text-body-lg); font-weight: 300; margin: 0 0 6px; color: rgba(255,255,255,.92); }
.inner-banner .banner-tel { display: inline-block; font-family: var(--font-display); font-stretch: expanded; font-weight: 900; text-transform: uppercase; font-size: var(--text-h3); color: #fff; text-decoration: none; margin-bottom: 20px; }
.inner-banner .banner-tel:hover { color: var(--stripe); }
/* +1 specificity so this beats the shared mobile layer on source order. */
.inner-banner .container h1 { font-size: clamp(1.75rem, 5.4vw + .5rem, 2.85rem); line-height: 1.08; }

/* ==== breadcrumbs ======================================================== */
.breadcrumbs { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; font-size: var(--text-meta); }
.breadcrumbs li::after { content: "/"; color: var(--ink-quiet); margin-left: 10px; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-deep); }
.breadcrumbs [aria-current] { color: var(--ink-strong); font-weight: 700; }

/* ==== two-column layout with sidebar ===================================== */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 54px; align-items: start; }
.two-col > * { min-width: 0; }
.sidebar { display: grid; gap: 26px; position: sticky; top: 20px; }
.side-nav { border: 2px solid var(--hairline); }
.side-nav h3 { background: var(--ink); color: #fff; margin: 0; padding: 14px 20px; font-size: .9375rem; letter-spacing: .1em; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: block; padding: 11px 20px; border-top: 1px solid var(--hairline); color: var(--ink-strong); text-decoration: none; font-size: var(--text-small); font-weight: 600; position: relative; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
/* Extracted: the marker slides in on hover rather than appearing. */
.side-nav li a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.side-nav li a:hover { background: var(--band); color: var(--accent-deep); }
.side-nav li a:hover::before { opacity: 1; transform: translateX(0); }
.side-cta { background: var(--ink); color: var(--text-on-dark-muted); padding: 26px 24px; }
.side-cta h3 { color: #fff; }
.side-cta p { font-size: var(--text-small); }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ==== family-of-brands strip ============================================= */
.brand-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 20px; align-items: center; }
.brand-strip > * { min-width: 0; }
.brand-chip { border: 2px solid var(--hairline); padding: 18px 12px; text-align: center; font-family: var(--font-display); font-stretch: expanded; font-weight: 800; text-transform: uppercase; font-size: .8125rem; letter-spacing: .06em; color: var(--ink-soft); text-decoration: none; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.brand-chip:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ==== article system ===================================================== */
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.article-grid > * { min-width: 0; }
.article-card { background: var(--paper); border: 2px solid var(--hairline); display: flex; flex-direction: column; }
.article-card .body { padding: 24px 22px 26px; }
.article-card h3 { font-size: 1.0625rem; }
.article-card p { font-size: var(--text-small); }
.article-card .read-more { font-family: var(--font-display); font-stretch: expanded; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8125rem; color: var(--accent-deep); text-decoration: none; }
.article-card:hover { border-color: var(--accent); }

.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-body { max-width: 760px; }
.article-body .meta { font-size: var(--text-meta); color: var(--ink-quiet); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }

/* ==== signature 4: the clip-path wipe panel ==============================
   The source's article menu opens by animating a polygon from a collapsed
   corner out to full. A wipe, not a fade and not a slide. */
.wipe-menu { border: 2px solid var(--hairline); }
.wipe-menu > summary { list-style: none; cursor: pointer; padding: 14px 20px; background: var(--ink); color: #fff; font-family: var(--font-display); font-stretch: expanded; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .9375rem; }
.wipe-menu > summary::-webkit-details-marker { display: none; }
.wipe-menu .panel { clip-path: polygon(100% 100%, 100% 0, 0 0, 0 100%); animation: wipe-in .32s var(--ease); }
@keyframes wipe-in {
  from { clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0); }
  to   { clip-path: polygon(100% 100%, 100% 0, 0 0, 0 100%); }
}
.wipe-menu .panel ul { list-style: none; margin: 0; padding: 0; }
.wipe-menu .panel a { display: block; padding: 11px 20px; border-top: 1px solid var(--hairline); color: var(--ink-strong); text-decoration: none; font-size: var(--text-small); font-weight: 600; }
.wipe-menu .panel a:hover { background: var(--band); color: var(--accent-deep); }
@media (prefers-reduced-motion: reduce) { .wipe-menu .panel { animation: none; } }

/* ==== gallery ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.gallery-grid > * { min-width: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery-figure { margin: 0; position: relative; }
.gallery-figure figcaption { font-size: var(--text-meta); color: var(--ink-quiet); padding-top: 8px; }
.lightbox-frame { position: relative; background: var(--ink); }
.lightbox-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; display: block; }
.lightbox-frame .arrow { position: absolute; top: 50%; transform: translateY(-50%); background: var(--accent); color: #fff; border: 0; width: 46px; height: 46px; font-size: 1.2rem; cursor: pointer; }
.lightbox-frame .arrow.prev { left: 0; }
.lightbox-frame .arrow.next { right: 0; }

/* ==== forms ============================================================== */
.form-card { background: var(--band); padding: 30px 28px 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid > * { min-width: 0; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: block; }
.field span { display: block; font-size: var(--text-meta); font-weight: 700; color: var(--ink-strong); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font-family: inherit; font-size: var(--text-body);
  border: 2px solid var(--card-border); border-radius: 0; background: var(--paper); color: var(--ink-strong);
  transition: border-color var(--t-fast) var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-quiet); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.fine-print { font-size: var(--text-meta); color: var(--ink-quiet); }
.rating-row { display: flex; gap: 6px; align-items: center; color: var(--accent); font-size: 1.3rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ==== contact split ====================================================== */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-split > * { min-width: 0; }
.map-frame { background: var(--band); border: 2px solid var(--hairline); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--ink-quiet); font-family: var(--font-mono); font-size: var(--text-meta); }
@media (max-width: 880px) { .contact-split { grid-template-columns: 1fr; } }

/* ==== staff grid ========================================================= */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 30px; }
.staff-grid > * { min-width: 0; }
.staff-card h3 { font-size: 1.0625rem; margin: 16px 0 2px; }
.staff-card .role { font-size: var(--text-meta); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--accent-deep); margin: 0 0 10px; }
.staff-card p { font-size: var(--text-small); }

/* ==== corporate hero + national service grid ============================= */
.corp-hero { background: var(--ink); color: var(--text-on-dark-muted); padding: clamp(70px, 7vw, 118px) 0; }
.corp-hero h1, .corp-hero .display { color: #fff; }
.corp-hero .lede { color: rgba(255,255,255,.9); max-width: 46ch; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px; }
.service-grid > * { min-width: 0; }
.service-tile { background: var(--paper); border: 2px solid var(--hairline); padding: 28px 24px 30px; text-decoration: none; display: block; color: var(--ink-muted); transition: border-color var(--t-fast) var(--ease); }
.service-tile:hover { border-color: var(--accent); }
.service-tile .tile-icon { width: 46px; height: 46px; color: var(--accent); margin-bottom: 14px; display: block; }
.service-tile h3 { font-size: 1rem; letter-spacing: .04em; margin-bottom: 6px; }
.service-tile p { margin: 0; font-size: var(--text-small); }

/* ==== faq accordion ====================================================== */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 2px solid var(--hairline); background: var(--paper); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-family: var(--font-display); font-stretch: expanded; font-weight: 800; text-transform: uppercase; font-size: .9375rem; color: var(--ink-strong); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] { border-color: var(--accent); }
.faq-item .answer { padding: 0 20px 18px; font-size: var(--text-small); }

/* ==== footer ============================================================= */
.site-footer { background: var(--band); padding: var(--section) 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid > * { min-width: 0; }
.footer-grid h3 { font-size: .875rem; letter-spacing: .1em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-grid a { color: var(--ink-muted); text-decoration: none; font-size: var(--text-small); }
.footer-grid a:hover { color: var(--accent-deep); }
.footer-grid .roc { font-size: var(--text-meta); color: var(--ink-quiet); margin-top: 12px; }
.sub-footer { background: var(--ink); color: var(--text-on-dark-muted); padding: 16px 0; font-size: var(--text-meta); }
.sub-footer .container { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; justify-content: space-between; }
.sub-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.sub-footer a:hover { color: #fff; }
.sub-footer .legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sub-footer .legal-mark { display: inline-flex; align-items: center; gap: 10px; }
.sub-footer .legal-mark img { width: 24px; height: 24px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   ds chrome — the kit's own documentation surface, not the brand's
   ========================================================================== */
.ds-nav { background: var(--ink); padding: 14px var(--gutter); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.ds-nav .lockup-text { margin: 0; color: #fff; font-family: var(--font-display); font-stretch: expanded; font-weight: 900; text-transform: uppercase; font-size: 1.0625rem; }
.ds-nav .lockup-text small { display: block; font-family: var(--font-mono); font-weight: 500; font-size: .7rem; color: var(--text-on-dark-muted); letter-spacing: .08em; text-transform: none; }
.ds-nav .tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-nav .tab { color: var(--text-on-dark-muted); text-decoration: none; font-size: .875rem; font-weight: 700; padding: 8px 16px; }
.ds-nav .tab:hover { color: #fff; }
.ds-nav .tab.active { background: var(--accent); color: #fff; }
.ds-hero { padding: 68px 0 44px; }
.ds-section { padding: 54px 0; border-top: 1px solid var(--card-border); }
.meta-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 18px; margin-top: 28px; border-top: 2px solid var(--ink); padding-top: 18px; }
.meta-strip > * { min-width: 0; font-size: var(--text-meta); color: var(--ink-quiet); text-transform: uppercase; letter-spacing: .1em; }
.meta-strip strong { display: block; font-family: var(--font-display); font-stretch: expanded; font-size: 1rem; color: var(--ink-strong); letter-spacing: .02em; margin-top: 4px; }
.door-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.door-grid > * { min-width: 0; }
.door-card { border: 2px solid var(--card-border); padding: 26px 24px; text-decoration: none; color: var(--ink-muted); background: var(--paper); display: block; transition: border-color var(--t-fast) var(--ease); }
.door-card:hover { border-color: var(--accent); }
.door-card h3 { font-size: var(--text-h4); margin: 0 0 8px; }
.door-card p { margin: 0; font-size: var(--text-small); }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.file-list li { font-family: var(--font-mono); font-size: var(--text-meta); color: var(--ink-muted); overflow-wrap: anywhere; }
.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.char-grid > * { min-width: 0; }

.sx-header { background: var(--band); padding: 68px 0 44px; }
.sx-index { border-bottom: 1px solid var(--card-border); background: var(--paper); }
.sx-index .grid { max-width: var(--container); margin: 0 auto; padding: 20px var(--gutter); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 2px 14px; }
.sx-index a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: var(--text-meta); text-decoration: none; color: var(--ink-soft); min-width: 0; }
.sx-index a:hover { background: var(--accent-pale); color: var(--accent-deep); }
.sx-index a .num { color: var(--ink-quiet); font-family: var(--font-mono); }
.sx-index a em.sig { font-style: normal; color: var(--accent-deep); font-size: .68rem; }
.sx-pattern { border-bottom: 1px solid var(--card-border); }
.pattern-meta { max-width: var(--container); margin: 0 auto; padding: 40px var(--gutter) 18px; display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.pattern-meta > * { min-width: 0; }
.pattern-meta .id { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-quiet); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pattern-meta .id .num { font-weight: 600; color: var(--accent-deep); }
.pattern-meta .id .signature { background: var(--ink); color: #fff; padding: 3px 9px; font-size: .62rem; letter-spacing: .1em; }
.pattern-meta .name { margin: 0; font-family: var(--font-display); font-stretch: expanded; font-weight: 800; color: var(--ink-strong); font-size: 1.0625rem; text-transform: uppercase; }
.pattern-meta .purpose { margin: 3px 0 0; font-size: var(--text-small); color: var(--ink-muted); }
.sx-demo { position: relative; border-top: 1px dashed var(--hairline); }
.sx-demo .demo-label { position: absolute; top: 0; right: var(--gutter); transform: translateY(-50%); background: var(--paper); color: var(--ink-quiet); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; padding: 2px 10px; z-index: 6; }
.sx-demo.on-dark { background: var(--bg-dark); }
.sx-demo.on-dark .demo-label { background: var(--bg-dark); color: var(--text-on-dark-muted); }

.pages-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pages-gallery > * { min-width: 0; }
.page-card { border: 2px solid var(--card-border); overflow: hidden; display: block; text-decoration: none; color: inherit; background: var(--paper); }
.page-card:hover { border-color: var(--accent); }
.page-card .preview { aspect-ratio: 16/10; overflow: hidden; background: var(--band); position: relative; }
.page-card .preview iframe { width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; border: 0; pointer-events: none; }
.page-card .preview::after { content: ""; position: absolute; inset: 0; }
.page-card .body { padding: 22px 24px 26px; }
.page-card .body h3 { margin: 0 0 8px; }
.page-card .body p { margin: 0 0 12px; font-size: var(--text-small); color: var(--ink-muted); }
.page-card .page-cta { font-family: var(--font-display); font-stretch: expanded; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-deep); font-size: var(--text-meta); }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 16px; }
.swatch { border: 2px solid var(--card-border); overflow: hidden; background: var(--paper); min-width: 0; }
.swatch .chip-color { height: 78px; }
.swatch .meta { padding: 12px 14px; }
.swatch .meta .name { font-weight: 700; font-size: .875rem; color: var(--ink-strong); }
.swatch .meta .hex { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-muted); }
.swatch .meta .role { font-size: .75rem; color: var(--ink-muted); margin-top: 4px; }
.type-row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--card-border); }
.type-row > * { min-width: 0; }
.type-row .label { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-quiet); }
.anchor-tile { border: 2px solid var(--card-border); padding: 26px 24px; background: var(--paper); }
.anchor-tile h3 { font-size: var(--text-h4); }
.anchor-tile p { font-size: var(--text-small); margin-bottom: 0; }

@media (max-width: 880px) {
  .pages-gallery, .pattern-meta, .type-row { grid-template-columns: 1fr; }
  .value-media { grid-template-columns: 1fr; }
}

/* The catalog nests a section's own .container inside .sx-demo inside
   .sx-pattern, so on a phone a demo gets THREE sets of horizontal padding and
   the pattern renders in ~197px of a 305px viewport. That is not how the
   section will ever ship, and it manufactured a 47px overflow plus 141px form
   inputs that exist nowhere but here. Give the demo the full width instead.
   `body` prefix on purpose: mobile-responsive.css is linked after this file,
   so an equal-specificity rule would lose on source order. */
@media (max-width: 600px) {
  body .sx-pattern { padding-left: 0; padding-right: 0; }
  body .sx-demo { padding-left: 0; padding-right: 0; }
  body .pattern-meta { padding-left: var(--gutter); padding-right: var(--gutter); }
}
