@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/libre-franklin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
}

@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/libre-franklin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101210;
  --bg-soft: #161916;
  --surface: #1d201d;
  --surface-2: #242824;
  --text: #f1f2ee;
  --muted: #a9ada7;
  --line: #343a34;
  --accent: #f94523;
  --accent-ink: #11150b;
  --radius: 14px;
  --page: min(1440px, calc(100vw - 48px));
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); transform: translateY(-150%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; z-index: 10; top: 0; left: 50%; width: var(--page); height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transform: translateX(-50%); border-bottom: 1px solid rgba(255,255,255,.11); }
.wordmark { --wordmark-width: 116px; position: relative; display: inline-flex; align-items: center; width: calc(var(--wordmark-width) + 24px); min-height: 32px; text-decoration: none; }
.wayfront-logo { width: var(--wordmark-width); height: auto; }
.wordmark .ai-suffix { position: absolute; top: 0; left: calc(var(--wordmark-width) + 6px); color: var(--accent); font-size: 9px; font-weight: 750; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 30px; white-space: nowrap; }
.desktop-nav a, .site-footer nav a { color: #c5c8c2; font-size: 14px; text-decoration: none; transition: color .2s ease; }
.desktop-nav a:hover, .site-footer nav a:hover { color: var(--text); }
.header-cta { justify-self: end; color: var(--accent); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
.menu-button, .mobile-nav { display: none; }

.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-image { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(9,10,9,.96) 0%, rgba(9,10,9,.79) 33%, rgba(9,10,9,.08) 70%), linear-gradient(0deg, rgba(9,10,9,.66) 0%, transparent 42%); }
.hero-copy { width: var(--page); margin: 0 auto; padding: 126px 0 9vh; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -.045em; text-wrap: balance; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(3.5rem, 7vw, 7.4rem); font-weight: 560; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; margin-bottom: 33px; color: #c9ccc6; font-size: clamp(1.05rem, 1.55vw, 1.35rem); line-height: 1.45; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(.99); }
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: #ff674a; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.section-pad { width: var(--page); margin: 0 auto; padding: clamp(90px, 11vw, 170px) 0; }
.proof { display: grid; grid-template-columns: 1.1fr .55fr; column-gap: 11vw; row-gap: 76px; }
.proof h2, .section-heading h2, .approval h2, .guardrails h2, .faq h2, .build h2 { font-size: clamp(2.8rem, 5.5vw, 6.3rem); font-weight: 520; }
.proof h2 { max-width: 780px; margin-bottom: 35px; }
.answer-block { max-width: 720px; color: #bec2ba; font-size: 20px; }
.proof-stat { align-self: end; padding-left: 28px; border-left: 1px solid var(--accent); }
.proof-stat strong { display: block; color: var(--accent); font-size: clamp(4rem, 7vw, 7rem); font-weight: 500; line-height: .85; letter-spacing: -.06em; }
.proof-stat p { max-width: 340px; margin: 22px 0 16px; color: #d1d3cf; font-size: 18px; line-height: 1.4; }
.proof-stat a, .text-link, .source-note a { color: var(--text); text-underline-offset: 5px; }
.proof-principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-principles span { padding: 26px 0; color: #d8dad6; }
.proof-principles span:not(:first-child) { padding-left: 30px; border-left: 1px solid var(--line); }

.lifecycle { width: 100%; padding-left: max(24px, calc((100vw - 1440px)/2)); padding-right: max(24px, calc((100vw - 1440px)/2)); background: var(--bg-soft); }
.section-heading { max-width: 1020px; margin-bottom: 60px; }
.section-heading h2 { margin-bottom: 27px; }
.section-heading p { max-width: 720px; color: var(--muted); font-size: 19px; }
.section-heading.compact { max-width: 880px; }
.wide-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: #0c0d0c; }
.wide-media img { width: 100%; aspect-ratio: 16 / 8.7; object-fit: cover; }
.wide-media figcaption { position: absolute; right: 24px; bottom: 20px; padding: 8px 11px; border-radius: 8px; background: rgba(16,18,16,.76); color: #d2d5d0; font-size: 12px; backdrop-filter: blur(12px); }
.lifecycle-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 46px; }
.lifecycle-grid article { padding: 0 24px; border-left: 1px solid var(--line); }
.lifecycle-grid article:first-child { padding-left: 0; border-left: 0; }
.lifecycle-grid h3 { margin-bottom: 12px; color: var(--accent); font-size: 18px; letter-spacing: -.02em; }
.lifecycle-grid p { color: var(--muted); font-size: 14px; line-height: 1.55; }

.case-browser { display: grid; grid-template-columns: .7fr 1.3fr; min-height: 540px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.case-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.case-tabs button { flex: 1; min-height: 74px; padding: 20px 26px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #9fa39d; cursor: pointer; text-align: left; transition: background .2s ease, color .2s ease; }
.case-tabs button:last-child { border-bottom: 0; }
.case-tabs button:hover { color: var(--text); background: rgba(255,255,255,.025); }
.case-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--accent); }
.case-detail { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(36px, 7vw, 100px); background: radial-gradient(circle at 86% 5%, rgba(201,255,53,.065), transparent 32%); }
.case-kicker { margin-bottom: 16px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.case-detail h3 { max-width: 720px; margin-bottom: 26px; font-size: clamp(2.6rem, 5vw, 5.7rem); font-weight: 500; }
.case-detail > p:not(.case-kicker):not(.case-rule) { max-width: 670px; color: var(--muted); font-size: 19px; }
.case-rule { max-width: 670px; margin: 25px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: #c9ccc6; }

.approval { display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: clamp(50px, 7vw, 110px); width: 100%; padding-left: max(24px, calc((100vw - 1440px)/2)); padding-right: max(24px, calc((100vw - 1440px)/2)); background: var(--bg-soft); }
.approval-media { margin: 0; overflow: hidden; border-radius: var(--radius); }
.approval-media img { min-height: 620px; width: 100%; object-fit: cover; object-position: 38% center; }
.approval-copy h2 { margin-bottom: 28px; }
.approval-copy > p { color: var(--muted); font-size: 19px; }
.approval ol { margin: 34px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.approval li { counter-increment: steps; padding: 18px 0; border-top: 1px solid var(--line); color: #b9bdb6; }
.approval li::before { content: "0" counter(steps); display: inline-block; width: 42px; color: var(--accent); font-variant-numeric: tabular-nums; }
.approval li strong { color: var(--text); }

.guardrails { display: grid; grid-template-columns: .7fr 1.3fr; gap: 46px 74px; }
.guardrails-copy { align-self: end; }
.guardrails h2 { margin-bottom: 28px; }
.guardrails-copy p { color: var(--muted); font-size: 18px; }
.text-link { display: inline-block; margin-top: 10px; color: var(--accent); }
.guardrails-media { margin: 0; overflow: hidden; border-radius: var(--radius); }
.guardrails-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.guardrail-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 35px; }
.guardrail-list article { padding: 0 24px; border-left: 1px solid var(--line); }
.guardrail-list article:first-child { padding-left: 0; border-left: 0; }
.guardrail-list h3 { font-size: 21px; letter-spacing: -.025em; }
.guardrail-list p { color: var(--muted); font-size: 14px; }
.source-note { grid-column: 1 / -1; max-width: 900px; margin: 20px 0 0; padding-top: 26px; border-top: 1px solid var(--line); color: #92978f; font-size: 13px; }

.guide-links { border-top: 1px solid var(--line); }
.guide-links > h2 { margin-bottom: 45px; font-size: clamp(2.5rem, 4.7vw, 5rem); font-weight: 520; }
.guide-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guide-grid > a { min-height: 340px; padding: 34px; text-decoration: none; background: var(--bg-soft); transition: background .25s ease; }
.guide-grid > a:not(:first-child) { border-left: 1px solid var(--line); }
.guide-grid > a:hover { background: var(--surface); }
.guide-grid span { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.guide-grid h3 { margin: 75px 0 18px; font-size: clamp(1.8rem, 2.6vw, 3rem); font-weight: 520; }
.guide-grid p { color: var(--muted); font-size: 15px; }

.faq { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(55px, 9vw, 140px); background: var(--bg); }
.faq-intro { position: sticky; top: 100px; align-self: start; }
.faq h2 { font-size: clamp(2.7rem, 4.9vw, 5.3rem); }
.accordion article { border-top: 1px solid var(--line); }
.accordion article:last-child { border-bottom: 1px solid var(--line); }
.accordion h3 { margin: 0; letter-spacing: -.02em; }
.accordion button { width: 100%; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 20px 0; border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left; font-size: clamp(1.15rem, 1.7vw, 1.55rem); }
.accordion i { position: relative; flex: 0 0 25px; height: 25px; border: 1px solid #747a72; border-radius: 50%; }
.accordion i::before, .accordion i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 1px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .2s ease; }
.accordion i::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion .is-open i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-answer p { max-width: 720px; margin: -3px 55px 30px 0; color: var(--muted); }

.build { width: 100%; padding-left: max(24px, calc((100vw - 1440px)/2)); padding-right: max(24px, calc((100vw - 1440px)/2)); background: var(--bg-soft); }
.build-grid { display: grid; grid-template-columns: 1fr .78fr; align-items: end; gap: 9vw; }
.build h2 { max-width: 790px; margin-bottom: 25px; }
.build-copy p { max-width: 650px; color: var(--muted); font-size: 19px; }
.build-form label { display: block; margin-bottom: 10px; color: #d9dbd6; font-size: 14px; font-weight: 650; }
.input-row { display: flex; gap: 10px; padding: 7px; border: 1px solid #4a5148; border-radius: var(--radius); background: #0d0f0d; }
.input-row:focus-within { border-color: var(--accent); }
.input-row.has-error { border-color: #ff6d5f; }
.input-row input { min-width: 0; flex: 1; border: 0; padding: 0 14px; background: transparent; color: var(--text); outline: 0; }
.input-row input::placeholder { color: #8b9088; }
.build-form > p { margin: 10px 5px 0; color: #858a83; font-size: 12px; }
.build-form .form-error { color: #ff8e83; }

.site-footer { width: var(--page); margin: 0 auto; min-height: 210px; display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 40px; border-top: 1px solid var(--line); }
.site-footer p { margin: 0; color: #858a83; font-size: 13px; }
.site-footer p a { color: #bdc1ba; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer small { grid-column: 1 / -1; margin-top: -65px; color: #646961; }

.article-header { width: var(--page); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.article-header > a:last-child { color: var(--accent); font-size: 14px; text-underline-offset: 5px; }
.article-page { width: min(1180px, calc(100vw - 48px)); margin: 0 auto; }
.article-hero { padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 1000px; font-size: clamp(3.5rem, 8vw, 8.3rem); }
.article-hero > p:not(.eyebrow) { max-width: 720px; color: #b6bab3; font-size: clamp(1.2rem, 2vw, 1.65rem); }
.article-hero small { color: #747a72; }
.article-hero small a { color: #b9bdb6; text-underline-offset: 4px; }
.prose { width: min(760px, 100%); margin: 0 auto; padding: clamp(70px, 10vw, 130px) 0; }
.prose .lead { margin-bottom: 70px; color: #d9dbd7; font-size: 22px; line-height: 1.58; }
.prose h2 { margin: 74px 0 23px; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 520; }
.prose h3 { margin: 45px 0 15px; font-size: 1.65rem; font-weight: 560; }
.prose p, .prose li { color: #b5b9b2; font-size: 18px; line-height: 1.78; }
.prose li { margin-bottom: 11px; }
.prose strong { color: var(--text); }
.prose a:not(.button) { color: var(--accent); text-underline-offset: 4px; }
.process-block { display: grid; grid-template-columns: 120px 1fr; gap: 0; margin: 40px 0 55px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process-block > * { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.process-block > *:nth-last-child(-n + 2) { border-bottom: 0; }
.process-block strong { background: var(--surface); color: var(--accent); font-size: 13px; }
.process-block span { color: #c2c5c0; }
.prose aside { width: min(1050px, calc(100vw - 48px)); margin: 110px 0 20px 50%; padding: clamp(35px, 5vw, 70px); border-radius: var(--radius); background: var(--surface); transform: translateX(-50%); }
.prose aside h2 { margin-top: 0; }
.prose aside p { max-width: 630px; }
.policy-box { margin: 70px 0 45px; padding: 30px 36px; border: 1px solid var(--accent); border-radius: var(--radius); background: rgba(201,255,53,.035); }
.policy-box h2 { margin-top: 0; }
.source-line { padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px !important; }
.article-footer { width: var(--page); min-height: 140px; margin: 0 auto; display: flex; align-items: center; gap: 28px; border-top: 1px solid var(--line); }
.article-footer a { color: #aeb2ab; font-size: 14px; }
.not-found { width: min(820px, calc(100vw - 40px)); min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { margin: 70px 0 20px; font-size: clamp(3.4rem, 9vw, 8rem); }
.not-found p { max-width: 560px; margin-bottom: 30px; color: var(--muted); font-size: 19px; }

.reveal { animation: fade-up .8s cubic-bezier(.16,1,.3,1) both; animation-timeline: view(); animation-range: entry 8% cover 30%; }
@keyframes fade-up { from { opacity: .01; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  :root { --page: calc(100vw - 40px); }
  .desktop-nav { gap: 17px; }
  .header-cta { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { justify-self: end; }
  .proof { column-gap: 6vw; }
  .lifecycle-grid { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .lifecycle-grid article:nth-child(4) { border-left: 0; padding-left: 0; }
  .guardrail-list { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .guardrail-list article:nth-child(3) { border-left: 0; padding-left: 0; }
  .build-grid { grid-template-columns: 1fr; gap: 45px; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --page: calc(100vw - 32px); }
  .site-header { height: 66px; }
  .desktop-nav { display: none; }
  .menu-button { justify-self: end; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; border: 0; background: transparent; }
  .menu-button span:not(.sr-only) { display: block; width: 22px; height: 1px; margin-left: auto; background: var(--text); }
  .mobile-nav { position: absolute; top: 66px; left: 0; width: 100%; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(16,18,16,.98); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
  .mobile-nav a { padding: 13px 5px; border-bottom: 1px solid var(--line); color: #d7dad4; text-decoration: none; }
  .mobile-nav a:last-child { border: 0; color: var(--accent); }
  .hero { min-height: 780px; }
  .hero-image { object-position: 67% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(9,10,9,.96) 0%, rgba(9,10,9,.8) 51%, rgba(9,10,9,.16) 100%); }
  .hero-copy { padding-bottom: 64px; }
  h1 { font-size: clamp(3.2rem, 15vw, 5.3rem); }
  .section-pad { padding-top: 90px; padding-bottom: 90px; }
  .proof, .guardrails, .faq, .approval { grid-template-columns: 1fr; gap: 52px; }
  .proof-principles { grid-template-columns: 1fr; }
  .proof-principles span, .proof-principles span:not(:first-child) { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof-principles span:first-child { border-top: 0; }
  .section-heading { margin-bottom: 40px; }
  .wide-media img { aspect-ratio: 4 / 3; object-position: 62% center; }
  .lifecycle-grid { grid-template-columns: 1fr 1fr; }
  .lifecycle-grid article:nth-child(odd) { border-left: 0; padding-left: 0; }
  .lifecycle-grid article:nth-child(4) { border-left: 1px solid var(--line); padding-left: 24px; }
  .case-browser { grid-template-columns: 1fr; min-height: auto; }
  .case-tabs { border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; flex-direction: row; scroll-snap-type: x mandatory; }
  .case-tabs button { flex: 0 0 65%; min-height: 88px; border-right: 1px solid var(--line); border-bottom: 0; scroll-snap-align: start; }
  .case-detail { min-height: 460px; padding: 32px 24px; }
  .approval-media img { min-height: 420px; }
  .guardrails-media { order: -1; }
  .guardrail-list { grid-template-columns: 1fr; }
  .guardrail-list article, .guardrail-list article:nth-child(3) { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-grid > a { min-height: 285px; }
  .guide-grid > a:not(:first-child) { border-left: 0; border-top: 1px solid var(--line); }
  .faq-intro { position: static; }
  .input-row { flex-direction: column; }
  .input-row input { min-height: 48px; }
  .input-row .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; padding: 50px 0; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer small { grid-column: auto; margin: 0; }
  .article-page { width: calc(100vw - 32px); }
  .article-header { height: 66px; }
  .article-header > a:last-child { font-size: 12px; }
  .process-block { grid-template-columns: 1fr; }
  .process-block > * { border-bottom: 1px solid var(--line) !important; }
  .process-block > *:last-child { border-bottom: 0 !important; }
  .prose aside { width: calc(100vw - 32px); padding: 28px 22px; }
  .article-footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 36px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  body::before { display: none; }
  .mobile-nav, .wide-media figcaption { backdrop-filter: none; }
}
