/* AutoIFC — site stylesheet.
   A drawing-office look: paper, ink, one teal accent, a serif display face for
   headlines, hairline rules and a faint grid that echo an elevation sheet. */

:root {
  --paper: #f6f4ef;
  --paper-2: #efece4;
  --ink: #16191d;
  --ink-2: #3a3f46;
  --ink-3: #6b7178;
  --rule: #d8d3c8;
  --rule-2: #c9c3b6;
  --accent: #0f766e;
  --accent-2: #0a5c56;
  --accent-soft: #d9efe9;
  --warm: #b45309;
  --white: #ffffff;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 6px;
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-variation-settings: "opsz" 96; }
h3 { font-size: 1.35rem; font-variation-settings: "opsz" 48; }
h4 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--ink-3); }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.75em 1.25em; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  font-family: var(--font-body);
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-2); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink-2); padding-inline: 0.75em; }
.btn--ghost:hover { color: var(--ink); background: var(--paper-2); }
.btn__arrow { transition: transform .15s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ----------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 244, 239, 0.86); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.site-header__logo img { height: 26px; width: auto; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 2rem; }
.site-nav__list { display: flex; gap: 1.6rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.site-nav__list a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); padding: 0.4em 0; border-bottom: 1.5px solid transparent; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav__actions { display: flex; gap: 0.5rem; }
.site-header__toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.site-header__toggle span { display: block; height: 2px; background: var(--ink); transition: transform .2s; }
@media (max-width: 900px) {
  .site-header__toggle { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 1rem var(--gutter) 1.5rem; flex-direction: column; align-items: stretch; gap: 1rem; }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0.25rem; margin: 0; }
  .site-nav__list a { display: block; padding: 0.6em 0; font-size: 1.05rem; }
  .site-nav__actions { flex-direction: column; }
  .site-header__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .site-header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ------------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 96px); }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.45;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero--page .hero__inner { grid-template-columns: 1fr; }
.hero--page { padding-bottom: clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.hero--page .hero__copy { max-width: 780px; }
.hero__copy h1 em { font-style: italic; color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-3); }
.hero__figure { color: var(--ink); }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } .hero__figure { max-width: 520px; } }

/* the facade drawing */
.facade { width: 100%; height: auto; }
.facade__outline { stroke: var(--ink); stroke-width: 1.2; }
.facade__cloud { color: var(--ink-3); }
.facade__storey { stroke: var(--rule-2); stroke-width: 1; stroke-dasharray: 3 5; }
.facade__reader { fill: none; stroke: var(--warm); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; animation: facade-in .6s ease forwards; animation-delay: var(--d); }
.facade__fit { fill: rgba(15, 118, 110, 0.10); stroke: var(--accent); stroke-width: 1.6; opacity: 0; animation: facade-in .6s ease forwards; animation-delay: var(--d); }
.facade__fit--door { fill: rgba(15, 118, 110, 0.18); }
.facade__dim line { stroke: var(--ink-2); stroke-width: 1; }
.facade__dim text, .facade__label { font-family: var(--font-mono); font-size: 9px; fill: var(--ink-3); }
@keyframes facade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .facade__reader, .facade__fit { animation: none; opacity: 1; } html { scroll-behavior: auto; } }

/* --------------------------------------------------------------- sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.section--dark { background: var(--ink); color: var(--paper); border-top: 0; }
.section--dark .eyebrow { color: #5eead4; }
.section--dark .lead { color: #c9cdd2; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .lead { margin: 0 auto; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head--left .lead { margin-left: 0; }

/* steps */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.step { background: var(--paper); padding: 1.75rem 1.5rem 2rem; position: relative; }
.step__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.step__icon { color: var(--accent); width: 28px; height: 28px; margin-bottom: 1rem; }
.step__icon .icon { width: 28px; height: 28px; }
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }
.step__meta { margin-top: 0.75rem !important; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); }

/* figures */
.figures__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem 2.5rem; margin: 0; }
.figure { border-top: 1px solid currentColor; padding-top: 1.1rem; }
.section--dark .figure { border-top-color: rgba(255, 255, 255, 0.25); }
.figure dt { font-size: 0.85rem; font-weight: 500; color: var(--ink-3); margin-bottom: 0.4rem; }
.section--dark .figure dt { color: #a9aeb5; }
.figure__value { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; line-height: 1; margin: 0; font-variation-settings: "opsz" 96; }
.figure__unit { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; margin-left: 0.35em; color: var(--ink-3); }
.section--dark .figure__unit { color: #a9aeb5; }
.figure__note { margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--ink-3); line-height: 1.45; }
.section--dark .figure__note { color: #a9aeb5; }
.figures__footnote { margin: 2.5rem auto 0; max-width: 780px; font-size: 0.88rem; color: var(--ink-3); text-align: center; }
.section--dark .figures__footnote { color: #a9aeb5; }

/* features */
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem 2rem; }
.feature__icon { color: var(--accent); margin-bottom: 1rem; }
.feature__icon .icon { width: 30px; height: 30px; }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }

/* split */
.split__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.split--flip .split__copy { order: 2; }
.split__copy, .split__aside { min-width: 0; }
.split__copy p { color: var(--ink-2); max-width: 56ch; }
.split__actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
@media (max-width: 800px) { .split__inner { grid-template-columns: 1fr; } .split--flip .split__copy { order: 0; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); }
.checklist .icon { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
.datatable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.datatable { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 0.93rem; background: var(--white); border: 1px solid var(--rule); }
.datatable th, .datatable td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.datatable th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 500; background: var(--paper-2); }
.datatable tr:last-child td { border-bottom: 0; }
.datatable td strong { color: var(--accent-2); }
.datatable__caption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--ink-3); }
.pull { margin: 0; padding: 1.5rem 1.75rem; border-left: 3px solid var(--accent); background: var(--white); }
.pull p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; margin: 0 0 0.75rem; }
.pull cite { font-style: normal; font-size: 0.85rem; color: var(--ink-3); }

/* prose */
.prose h3 { margin-top: 2.2rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose .note { padding: 1rem 1.2rem; background: var(--accent-soft); border-radius: var(--radius); color: var(--accent-2); font-size: 0.95rem; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); scroll-margin-top: 5rem; }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose__meta { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-3); }
.toc { margin: 0 0 2.5rem; padding: 1.2rem 1.4rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); }
.toc__title { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.6rem; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.toc li { color: var(--ink-2); font-size: 0.95rem; padding: 0.15em 0; break-inside: avoid; }
.toc a { color: inherit; text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* pricing */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.pack--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pack__badge { position: absolute; top: -0.7em; left: 1.25rem; background: var(--accent); color: var(--white); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25em 0.6em; border-radius: 3px; }
.pack h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.pack__credits { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; margin: 0; font-variation-settings: "opsz" 96; }
.pack__credits span { font-weight: 500; }
.pack__price { margin: 0.6rem 0 0; font-weight: 600; }
.pack__rate { margin: 0.2rem 0 1.25rem; font-size: 0.85rem; color: var(--ink-3); font-family: var(--font-mono); }
.pack__meta { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--ink-3); }
.pack__save { margin: 0 0 1.25rem; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
/* The packs differ only in size, so what you get is listed once, under the grid,
 * instead of four lists that would have to invent differences to look distinct. */
.pricing__included { margin: 2.25rem auto 0; max-width: 780px; padding: 1.4rem 1.6rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-2); }
.pricing__included h3 { margin: 0 0 0.9rem; font-size: 1rem; }
.pricing__included ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); font-size: 0.93rem; color: var(--ink-2); }
.pricing__included li { display: flex; gap: 0.5rem; align-items: flex-start; }
.pricing__included .icon { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 3px; }
.pack__list { list-style: none; margin: 0 0 1.5rem; padding: 1rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.55rem; font-size: 0.93rem; color: var(--ink-2); flex: 1; }
.pack__list li { display: flex; gap: 0.5rem; align-items: flex-start; }
.pack__list .icon { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 3px; }
/* The cards no longer carry a feature list to push the button down, and the
 * first pack has no saving line, so its button floated 64px above the other
 * three. The cards stretch to equal height, so auto margin puts every button
 * on the same line whatever sits above it. */
.pack .btn { justify-content: center; margin-top: auto; }
.pricing__footnote { margin: 2rem auto 0; max-width: 780px; text-align: center; font-size: 0.88rem; color: var(--ink-3); }

/* faq */
.faq__list { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-family: var(--font-display); font-size: 1.2rem; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); color: var(--accent); font-size: 1.3rem; }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 66ch; }
.faq__answer p:last-child { margin-bottom: 0; }

/* cta */
.cta { background: var(--accent); color: var(--white); border-top: 0; padding: clamp(48px, 7vw, 80px) 0; }
.cta__inner { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between; }
.cta h2 { margin-bottom: 0.3em; }
.cta p { margin: 0; color: #d3ece7; max-width: 52ch; }
.cta__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta .btn--primary { background: var(--white); color: var(--accent-2); }
.cta .btn--primary:hover { background: var(--paper); }
.cta .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.5); border-width: 1px; padding-inline: 1.25em; }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* contact */
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .contact__inner { grid-template-columns: 1fr; } }
.contact__copy p { color: var(--ink-2); max-width: 52ch; }
.contact__email { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.contact__email .icon { width: 20px; height: 20px; color: var(--accent); }
.contact__form { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.75rem; }
.contact__form label { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 500; color: var(--ink-2); }
.contact__form input, .contact__form select, .contact__form textarea { font: inherit; font-size: 1rem; padding: 0.65rem 0.75rem; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--paper); color: var(--ink); }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact__form .btn { justify-self: start; }
.contact__form-note { margin: 0; font-size: 0.82rem; color: var(--ink-3); }
.contact__form.is-sent { display: none; }
/* the confirmation that replaces the form: the visitor must not have to guess */
.contact__sent { display: grid; gap: 0.6rem; justify-items: start; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.75rem; color: var(--accent-2); }
.contact__sent-title { display: flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 1.15rem; font-weight: 700; }
.contact__sent-title svg { width: 1.25rem; height: 1.25rem; flex: none; }
.contact__sent p { margin: 0; color: var(--accent-2); font-size: 0.95rem; line-height: 1.5; }
.contact__sent .btn { margin-top: 0.4rem; }
.contact__form-note.is-error { color: var(--red, #9c3a2f); font-weight: 500; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: #c9cdd2; padding: 4rem 0 2rem; margin-top: 0; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 3rem; }
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__brand img { height: 26px; width: auto; margin-bottom: 1rem; }
.site-footer__brand p { font-family: var(--font-display); font-size: 1.1rem; color: #e6e8eb; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 560px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }
.site-footer__cols h4 { color: #8b9198; margin-bottom: 0.9rem; }
.site-footer__cols a { display: block; text-decoration: none; color: #c9cdd2; font-size: 0.95rem; padding: 0.25rem 0; }
.site-footer__cols a:hover { color: var(--white); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; color: #8b9198; }

/* ---------------------------------------------------------------- shots */
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--radius); }
.shot--framed img { border: 1px solid var(--rule); box-shadow: 0 12px 40px -18px rgba(22, 25, 29, 0.35); background: var(--white); }
.section--dark .shot--framed img { border-color: rgba(255, 255, 255, 0.15); }
.shot figcaption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--ink-3); line-height: 1.45; font-family: var(--font-mono); }
.section--dark .shot figcaption { color: #a9aeb5; }
.image-section .section-head { margin-bottom: 2rem; }
.gallery { display: grid; gap: 1.5rem; }
.gallery--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.gallery--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gallery--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ------------------------------------------------------------------- misc */
.icon { width: 24px; height: 24px; }
::selection { background: var(--accent-soft); color: var(--accent-2); }

/* ------------------------------------------------------------------- blog */
.blog__cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.blog__cats a { text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.4em 0.9em; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); background: var(--white); }
.blog__cats a:hover, .blog__cats a[aria-current="page"] { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(22, 25, 29, 0.35); }
.card__link { display: block; text-decoration: none; padding: 1.25rem 1.4rem 1.5rem; height: 100%; }
.card__img { margin: -1.25rem -1.4rem 1.1rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.card .eyebrow { margin-bottom: 0.5rem; }
.card h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.card p:last-child { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.blog__pager { margin-top: 2.5rem; }
.blog__pager .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.blog__pager .page-numbers { text-decoration: none; padding: 0.4em 0.8em; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink-2); }
.blog__pager .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* post */
.post__head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--rule); }
.post__head h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 22ch; }
.post__head .eyebrow a { text-decoration: none; }
.post__cover { margin-top: 2.5rem; }
.post__body { padding: clamp(32px, 5vw, 56px) 0 0; font-size: 1.08rem; }
.post__body h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 2.6rem; }
.post__body h3 { margin-top: 2rem; }
.post__body p, .post__body li { color: var(--ink-2); line-height: 1.7; }
.post__body ul, .post__body ol { padding-left: 1.3rem; }
.post__body li { margin-bottom: 0.4rem; }
.post__body strong { color: var(--ink); }
.post__body table { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: var(--white); border: 1px solid var(--rule); margin: 1.5rem 0; }
.post__body th, .post__body td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.post__body th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 500; background: var(--paper-2); }
.post__body .table-wrap { overflow-x: auto; }
.post__body blockquote { margin: 1.75rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--accent); background: var(--white); font-family: var(--font-display); font-size: 1.2rem; }
.post__body blockquote p { margin: 0; color: var(--ink); }
.post__body figure { margin: 2rem 0; }
.post__body figure img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.post__body figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-3); font-family: var(--font-mono); }
.post__body code { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; }
/* File excerpts (first used by the IFC explainer, 16 Sept 2026). STEP lines run
 * long and must not widen the page on a phone, so the block scrolls on its own. */
.post__body pre { margin: 1.5rem 0; padding: 1rem 1.2rem; overflow-x: auto; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; color: var(--ink-2); white-space: pre; }
.post__body pre code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
.post__body .note { padding: 1rem 1.2rem; background: var(--accent-soft); border-radius: var(--radius); color: var(--accent-2); font-size: 0.95rem; }
.post__body .key { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.3rem; background: var(--white); margin: 1.5rem 0; }
.post__body .key p:last-child { margin-bottom: 0; }
.post__faq { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.post__faq h2 { font-size: 1.6rem; }
.post__cta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; margin: 3rem 0; padding: 1.75rem; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.post__cta h3 { margin-bottom: 0.3em; }
.post__cta p { margin: 0; color: #c9cdd2; }
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 4rem; }
.post__nav-link { text-decoration: none; padding: 1rem 1.2rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); font-family: var(--font-display); font-size: 1.05rem; }
.post__nav-link span { display: block; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 0.3rem; }
.post__nav-link--next { text-align: right; }
@media (max-width: 600px) { .post__nav { grid-template-columns: 1fr; } .post__nav-link--next { text-align: left; } }

/* --------------------------------------------------------------- waitlist */
.waitlist__form { display: grid; gap: 0.75rem; }
.waitlist__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 0.75rem; align-items: end; }
.waitlist__form--compact .waitlist__row { grid-template-columns: 1fr auto; }
@media (max-width: 760px) { .waitlist__row { grid-template-columns: 1fr; } }
.waitlist__field { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 500; }
.waitlist__field input, .waitlist__field select { font: inherit; font-size: 1rem; padding: 0.7rem 0.8rem; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--white); color: var(--ink); min-width: 0; }
.section--dark .waitlist__field { color: #c9cdd2; }
.section--dark .waitlist__field input, .section--dark .waitlist__field select { background: #24282d; border-color: rgba(255, 255, 255, 0.18); color: var(--paper); }
.waitlist__field input:focus, .waitlist__field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.section--dark .waitlist__field input:focus, .section--dark .waitlist__field select:focus { outline-color: #5eead4; }
.waitlist__row .btn { justify-content: center; white-space: nowrap; padding-block: 0.8em; }
.section--dark .btn--primary { background: #5eead4; color: var(--ink); }
.section--dark .btn--primary:hover { background: #99f6e4; }
.waitlist__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist__note { margin: 0; font-size: 0.85rem; color: var(--ink-3); }
.section--dark .waitlist__note { color: #a9aeb5; }
.waitlist__note.is-ok { color: var(--accent-2); font-weight: 500; }
.section--dark .waitlist__note.is-ok { color: #5eead4; }
.waitlist__note.is-err { color: #b91c1c; }
.section--dark .waitlist__note.is-err { color: #fca5a5; }
.waitlist__form.is-done .waitlist__row { display: none; }

/* Consent banner: a strip at the foot of the window, never a full-screen wall. */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; max-width: 62rem; margin-inline: auto; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--rule-2); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(20, 32, 42, 0.12); }
/* An author rule beats the browser's own [hidden] { display: none }, so .consent
 * below would keep the banner on screen for ever: the markup ships hidden, and
 * the handler hides it again on a choice, and neither had any effect (reported
 * 14 September 2026, twice). Specificity 0,2,0 settles it. */
.consent[hidden] { display: none; }
.consent__text { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.consent__actions { display: flex; gap: 0.6rem; flex: none; }
.consent .btn { padding-block: 0.5em; font-size: 0.9rem; }
/* On a phone the banner was 192 px, a quarter of the screen, and it sat on top
 * of the hero CTA: measured 14 September, it covered "Start with 500 free
 * credits", "See how it works" and the Accuracy link on a first visit. Tighter
 * type and one deferred sentence bring it under the button. */
@media (max-width: 640px) {
	.consent { flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 0.8rem 1rem; }
	.consent__text { font-size: 0.8rem; line-height: 1.4; }
	.consent__more { display: none; }
	.consent .btn { padding-block: 0.4em; font-size: 0.85rem; }
	.consent__actions { justify-content: flex-end; }
}

/* ------------------------------------------------------------ IFC viewer */
/* The free tool at /ifc-viewer/. The stage is the page's reason to exist, so it
 * takes the width and most of the fold; the prose underneath carries the search
 * terms. Palette is the site's — a viewport that looked like a different product
 * would undo the point of publishing it here. */
.ifcv-section { padding-top: 0; border-top: 0; }
.ifcv { position: relative; }
.ifcv__stage {
	position: relative;
	height: clamp(420px, 68vh, 720px);
	border: 1px solid var(--rule-2);
	border-radius: var(--radius);
	background: var(--paper);
	overflow: hidden;
}
.ifcv__canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.ifcv[data-drag="over"] .ifcv__stage { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-soft); }

/* Every overlay ships with [hidden] and is toggled from JS. An author rule with
 * a class selector beats the browser's [hidden] { display: none }, which is what
 * kept the consent banner on screen in September; these guards settle it for the
 * viewer's five overlays before the same bug can happen twice. */
.ifcv [hidden] { display: none !important; }

.ifcv__drop { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--gutter); background: linear-gradient(180deg, rgba(246,244,239,.86), rgba(246,244,239,.96)); text-align: center; }
.ifcv__drop-inner { max-width: 34rem; }
.ifcv__drop-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .6rem; }
.ifcv__drop-text { color: var(--ink-2); margin: 0 0 1.4rem; line-height: 1.6; }
.ifcv__pick { cursor: pointer; }
.ifcv__drop-note { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); margin: 1rem 0 0; }

.ifcv__toolbar { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .4rem; }
.ifcv__tool { font: 500 .82rem/1 var(--font-body); padding: .55em .9em; color: var(--ink-2); background: rgba(255,255,255,.92); border: 1px solid var(--rule-2); border-radius: var(--radius); cursor: pointer; }
.ifcv__tool:hover { color: var(--ink); border-color: var(--ink-3); }

.ifcv__status { position: absolute; inset: 0; display: flex; gap: .8rem; align-items: center; justify-content: center; background: rgba(246,244,239,.92); font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2); }
.ifcv__spinner { width: 1rem; height: 1rem; border: 2px solid var(--rule-2); border-top-color: var(--accent); border-radius: 50%; animation: ifcv-spin .7s linear infinite; }
@keyframes ifcv-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ifcv__spinner { animation-duration: 2.4s; } }

.ifcv__panel { position: absolute; top: .75rem; right: .75rem; bottom: .75rem; width: 17rem; z-index: 2; display: flex; flex-direction: column; gap: 1rem; padding: 1rem; overflow: auto; background: rgba(255,255,255,.94); border: 1px solid var(--rule-2); border-radius: var(--radius); backdrop-filter: blur(3px); }
.ifcv__panel-block--grow { min-height: 0; }
.ifcv__panel-title { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; font-weight: 500; }
.ifcv__meta { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; margin: 0 0 .8rem; font-size: .84rem; }
.ifcv__meta dt { color: var(--ink-3); }
.ifcv__meta dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.ifcv__guid { font-family: var(--font-mono); font-size: .78rem; }
.ifcv__hint { font-size: .84rem; color: var(--ink-3); margin: 0; line-height: 1.5; }
.ifcv__classes { display: flex; flex-direction: column; gap: .1rem; }
.ifcv__class { display: flex; align-items: center; gap: .5rem; padding: .25rem .35rem; border-radius: 4px; font-size: .84rem; cursor: pointer; }
.ifcv__class:hover { background: var(--paper-2); }
.ifcv__class-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ifcv__class-count { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); }

.ifcv__error { margin: 1rem 0 0; padding: .9rem 1.1rem; font-size: .9rem; line-height: 1.55; color: #7f1d1d; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); }
.ifcv__legal { margin: 1rem 0 0; font-size: .84rem; line-height: 1.6; color: var(--ink-3); }
.ifcv__legal kbd { font-family: var(--font-mono); font-size: .78rem; padding: .1em .4em; background: var(--paper-2); border: 1px solid var(--rule-2); border-radius: 3px; }

.btn--sm { font-size: .82rem; padding: .5em .9em; }

/* Under ~900 px the overlay panel would cover the model it describes, so it
 * comes out of the stage and sits beneath it. */
@media (max-width: 900px) {
	.ifcv__stage { height: clamp(340px, 52vh, 460px); }
	.ifcv__panel { position: static; width: auto; margin-top: .75rem; max-height: 22rem; background: var(--white); }
	.ifcv__panel-block--grow { max-height: 12rem; overflow: auto; }
}
