/* =============================================================
   Ashstep Surveys — Concept D: "MEASURED RECORD"
   The language of the survey REPORT, not the drawing board:
   measured data, reference codes, condition ratings, schedules
   and a datum/level rule. Clean white, mono as the data voice —
   communicates assessment & evidence, not building design.
   Display: IBM Plex Sans · Data: IBM Plex Mono · Body: Hanken Grotesk
   ============================================================= */

:root {
  --brand-blue: #3340ff;
  --brand-blue-tint: #eef0ff;
  --brand-blue-deep: #2730cc;
  --ink: #101218;
  --grey-900: #2a2e37;
  --grey-600: #5b616e;
  --grey-300: #cdd1d9;
  --grey-200: #e4e7ec;
  --grey-100: #f5f6f9;
  --surface: #ffffff;
  --bg: #fcfdff;

  --font-display: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --fs-h1: clamp(2.2rem, 1.5rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.7rem, 1.3rem + 1.7vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-h4: 1.15rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-mono: 0.76rem;

  --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem;
  --space-8: 4.5rem; --space-9: 6.5rem;

  --radius: 3px;
  --shadow-md: 0 10px 30px rgba(16, 18, 24, 0.07);
  --container: 1400px;
  --hair: 1px solid var(--grey-200);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--fs-body);
  line-height: 1.65; color: var(--grey-600); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--ink); margin: 0 0 var(--space-4); font-weight: 600; line-height: 1.1; letter-spacing: -0.018em; }
h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p { margin: 0 0 var(--space-4); }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-radius: var(--radius); }

/* ----------------------------- layout ----------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.section { padding-block: var(--space-8); }
.section--panel { background: var(--surface); border-block: var(--hair); }
.stack > * + * { margin-top: var(--space-4); }
.lede { font-size: 1.1875rem; color: var(--grey-900); max-width: 62ch; }

.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.01em; color: var(--brand-blue); }
.mono--grey { color: var(--grey-600); }

/* --------- section head: a "report reference" + datum rule -------- */
.section-head { margin-bottom: var(--space-6); }
.section-head__ref { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-blue); letter-spacing: .04em; display: inline-block; margin-bottom: var(--space-3); }
.section-head__title { margin: 0; }

/* ----------------- SCALE BAR (replaces crop marks) ---------------- */
/* a measurement scale with ticks + numeric labels — survey language */
.scalebar { margin: var(--space-6) 0; }
.scalebar__rule { height: 12px; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, var(--grey-300) 0 1px, transparent 1px 40px);
  border-bottom: 2px solid var(--ink); }
.scalebar__nums { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.66rem; color: var(--grey-600); letter-spacing: .04em; margin-top: var(--space-2); }

/* ----------------- CONDITION RATING (assessment cue) -------------- */
.rating { display: inline-flex; gap: 3px; vertical-align: middle; }
.rating__cell { width: 9px; height: 14px; background: var(--grey-200); border-radius: 1px; }
.rating__cell--on { background: var(--brand-blue); }

/* ------------------------------ header ---------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252,253,255,.88); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--grey-300); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 62px; }
.site-nav { display: none; }
.site-nav__list { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.site-nav__link { position: relative; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .02em; color: var(--grey-900); padding-block: var(--space-2); }
.site-nav__link:hover { color: var(--brand-blue); text-decoration: none; }
.site-nav__link--active { color: var(--ink); }
.site-nav__link--active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-blue); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-4); }
.icon-link { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; color: var(--grey-900); border: 1px solid var(--grey-300); border-radius: var(--radius); }
.icon-link:hover { color: var(--brand-blue); border-color: var(--brand-blue); text-decoration: none; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 49px; width: auto; display: block; } /* header nav logo (was 38px, +30%) */
.logo--footer img { height: 46px; }

/* ------------------------------ buttons --------------------------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .02em; padding: 0.8rem 1.4rem; border: 2px solid var(--brand-blue); border-radius: var(--radius); cursor: pointer; line-height: 1; text-decoration: none; background: var(--brand-blue); color: #fff; transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.btn:hover { text-decoration: none; }
.btn--primary:hover { background: var(--brand-blue-deep); border-color: var(--brand-blue-deep); transform: translateY(-2px); }
.btn--secondary { background: transparent; color: var(--brand-blue); }
.btn--secondary:hover { background: var(--brand-blue-tint); transform: translateY(-2px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* ------------------------------- hero ----------------------------- */
.hero { position: relative; overflow: hidden; border: 1px solid var(--grey-300); border-radius: var(--radius); min-height: 380px; display: flex; align-items: flex-end; background: #101218; }
.hero__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.42); font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .03em; text-align: center; padding: var(--space-5); }
/* a datum reference line + label across the hero (level, not blueprint) */
.hero__datum { position: absolute; left: 0; right: 0; top: 40%; height: 2px; background: var(--brand-blue); transform-origin: left; }
.hero__datum::after { content: "± DATUM 00.00"; position: absolute; right: 12px; top: 6px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: .12em; color: rgba(255,255,255,.8); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,18,24,.2), rgba(16,18,24,.74)); }
.hero__content { position: relative; padding: var(--space-7) var(--space-6); max-width: 680px; }
.hero__title { color: #fff; font-size: var(--fs-h2); margin-bottom: var(--space-4); }
.hero__sub { color: rgba(255,255,255,.84); margin-bottom: var(--space-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* --------------------- image placeholder block -------------------- */
.img-ph { display: grid; place-items: center; text-align: center; background: var(--grey-100); border: 1px dashed var(--grey-300); color: var(--grey-600); font-family: var(--font-mono); font-size: var(--fs-mono); padding: var(--space-4); aspect-ratio: 16/9; }
.img-ph--wide { aspect-ratio: 21/9; }

/* ----------------------------- swatches --------------------------- */
/* presented as a data table: REF · SWATCH · HEX · ROLE */
.swatch-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
.swatch { border: var(--hair); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.swatch__chip { height: 78px; position: relative; }
.swatch__chip::after { content: attr(data-ref); position: absolute; top: 6px; left: 8px; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: .08em; color: rgba(255,255,255,.85); }
.swatch__body { padding: var(--space-3) var(--space-4); }
.swatch__name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: var(--fs-small); margin: 0; }
.swatch__hex { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--grey-600); margin: var(--space-2) 0 0; }
.swatch__role { font-size: var(--fs-mono); font-family: var(--font-mono); color: var(--grey-600); margin: var(--space-2) 0 0; }
.swatch--bordered .swatch__chip { box-shadow: inset 0 0 0 1px var(--grey-300); }
.swatch--bordered .swatch__chip::after { color: var(--grey-600); }

/* --------------------------- type scale --------------------------- */
.type-row { padding-block: var(--space-4); border-bottom: var(--hair); display: grid; gap: var(--space-2); }
.type-row__meta { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--grey-600); }
.type-row__sample { margin: 0; }

/* --------------------- SCHEDULE TABLE (data cue) ------------------ */
.schedule { width: 100%; border-collapse: collapse; font-size: var(--fs-small); border: var(--hair); }
.schedule caption { text-align: left; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--grey-600); margin-bottom: var(--space-3); }
.schedule th, .schedule td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: var(--hair); vertical-align: top; }
.schedule thead th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); background: var(--grey-100); font-weight: 400; }
.schedule td.ref { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-blue); white-space: nowrap; }
.schedule tbody tr:last-child td { border-bottom: 0; }

/* --------------------------- service tile ------------------------- */
.tiles { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: var(--hair); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.tile:hover { border-color: var(--brand-blue); transform: translateY(-3px); }
.tile__media .img-ph { border: 0; border-bottom: var(--hair); aspect-ratio: 16/10; }
.tile__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.tile__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tile__idx { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-blue); }
.tile__title { margin: 0; font-size: var(--fs-h4); }
.tile__intro { margin: 0; font-size: var(--fs-small); flex: 1; }
.tile__cta { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .02em; color: var(--brand-blue); display: inline-flex; gap: var(--space-2); align-items: center; }
.tile:hover .tile__cta { gap: var(--space-3); }

/* --------------------------- why-choose --------------------------- */
.why { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
.why__item { display: grid; gap: var(--space-3); padding: var(--space-5); border: var(--hair); border-left: 3px solid var(--brand-blue); border-radius: var(--radius); background: var(--surface); }
.why__num { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--brand-blue); }
.why__title { margin: 0; font-size: 1.1rem; }
.why__text { margin: 0; font-size: var(--fs-small); }

/* --------------------------- testimonial -------------------------- */
.testimonial { background: var(--surface); border: var(--hair); border-top: 3px solid var(--brand-blue); border-radius: var(--radius); padding: var(--space-6); }
.testimonial__quote { font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; color: var(--ink); line-height: 1.4; margin: 0 0 var(--space-4); letter-spacing: -.01em; }
.testimonial__cite { display: flex; align-items: center; gap: var(--space-3); font-style: normal; }
.testimonial__avatar { width: 40px; height: 40px; border-radius: var(--radius); background: var(--grey-100); display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--grey-600); }
.testimonial__name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: var(--fs-small); }
.testimonial__role { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--grey-600); }

/* ----------------------------- form ------------------------------- */
.field { display: grid; gap: var(--space-2); }
.field__label { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .02em; color: var(--grey-900); }
.field__req { color: var(--brand-blue); }
.field__input, .field__select { font-family: var(--font-body); font-size: var(--fs-body); padding: 0.75rem 0.875rem; border: 1px solid var(--grey-300); border-radius: var(--radius); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field__input::placeholder { color: var(--grey-300); }
.field__input:focus, .field__select:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(51,64,255,.16); }
.field__hint { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--grey-600); margin: 0; }

/* ----------------------------- chrome ----------------------------- */
.doc-band { background: var(--ink); color: #fff; padding-block: var(--space-7); }
.doc-band__inner { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: space-between; }
.doc-band h2 { color: #fff; margin: 0; }
.doc-band p { color: rgba(255,255,255,.78); margin: var(--space-2) 0 0; max-width: 52ch; }
.concept-tag { display: inline-flex; gap: var(--space-2); align-items: center; font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .06em; color: var(--brand-blue); border: 1px solid var(--brand-blue); padding: .35rem .7rem; border-radius: var(--radius); }
.placeholder-note { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--grey-600); background: var(--grey-100); border-left: 2px solid var(--brand-blue); padding: var(--space-3) var(--space-4); border-radius: var(--radius); }
.ph-mark { background: rgba(51,64,255,.06); box-shadow: inset 0 -2px 0 rgba(51,64,255,.2); border-radius: 1px; padding: 0 .15em; }
.subnav { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.subnav a { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: .02em; color: var(--grey-900); border: 1px solid var(--grey-300); border-radius: var(--radius); padding: .35rem .8rem; }
.subnav a:hover { color: var(--brand-blue); border-color: var(--brand-blue); text-decoration: none; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-blue); color: #fff; padding: var(--space-3) var(--space-4); z-index: 100; }
.skip-link:focus { left: 0; }

/* ----------------------- motion: page-load ------------------------ */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__content > * { animation: rise .8s var(--ease) both; }
.hero__content > *:nth-child(1) { animation-delay: .15s; }
.hero__content > *:nth-child(2) { animation-delay: .28s; }
.hero__content > *:nth-child(3) { animation-delay: .41s; }
.hero__datum { animation: draw 1s var(--ease) .1s both; }

/* ---------------------------- responsive -------------------------- */
@media (min-width: 600px) {
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 880px) {
  .site-nav { display: block; }
  .swatch-grid { grid-template-columns: repeat(5, 1fr); }
  .hero { min-height: 460px; }
  .hero__content { padding: var(--space-8); }
}
@media (min-width: 1024px) {
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__datum { transform: none; }
}
