/* September 2026: an original editorial system for Stratum Scale. */
:root {
  color-scheme: light;
  --bg: #f8f7f3; --bg-2: #f1f0eb;
  --surface: #fffefa; --surface-2: #ecece5; --surface-3: #e3e5db;
  --text: #20251f; --text-2: #535b52; --text-3: #626b60;
  --line: #20251f1a; --line-2: #20251f2b; --line-3: #20251f55;
  --green: #263b2d; --green-hi: #3c5942; --signal: #416a43;
  --signal-soft: #416a4312; --signal-line: #416a4380;
  --container: 1360px; --gutter: clamp(22px, 4.2vw, 64px);
  --header: 82px; --radius: 4px; --radius-sm: 3px;
  --section: clamp(4.5rem, 8vw, 8rem);
}
html { scrollbar-color: #adb3a6 var(--bg); }
h1, h2, h3 { font-weight: 500; }
.site-header { background: #f8f7f3f5; border-bottom-color: var(--line); backdrop-filter: blur(16px); }
.brand { font-size: 1.17rem; gap: .8rem; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark img { width: 28px; height: 28px; filter: brightness(0); }
.nav-shell { gap: clamp(2rem, 5vw, 5rem); }
.nav-links > a, .nav-services summary { color: var(--text); font-size: .84rem; }
.nav-contact { min-height: 42px; border-radius: 3px; padding-inline: 1.1rem; }
.nav-services-menu { background: var(--surface); border-radius: 4px; box-shadow: 0 20px 40px #20251f14; }
.nav-services-menu a { border-radius: 2px; }
.nav-toggle { min-height: 44px; }
.button { border-radius: 3px; min-height: 50px; padding-inline: 1.4rem; font-size: .87rem; }
.eyebrow { font-size: .69rem; letter-spacing: .09em; }
.text-link { font-size: .86rem; font-weight: 500; }
.section-head h2, .contact-copy h2 { font-size: clamp(2.1rem, 4.2vw, 4rem); line-height: 1.1; letter-spacing: -.055em; }
.contact-section { background: #efeee7; }
.contact-form { background: transparent; border: 0; border-radius: 0; padding: 0; }
.form-row input, .form-row textarea { background: #f8f7f3; border-radius: 2px; }
.form-status.error { color: #a22d22; }
.form-status.success { color: #315437; }
.site-footer { background: #f8f7f3; }
.footer-main { padding-bottom: 2rem; }
.footer-brand p { max-width: 26ch; }
.footer-signature { margin-top: 4rem; color: #253628; font-size: clamp(3rem, 12.2vw, 11.5rem); letter-spacing: -.075em; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.footer-bottom { margin-top: 2rem; }

/* Full-bleed photographic opening. All copy remains real HTML. */
.scale-hero { position: relative; isolation: isolate; min-height: min(780px, calc(100svh - var(--header))); display: flex; align-items: end; color: #fffef8; background: #202720; }
.scale-hero-image { position: absolute; inset: 0; z-index: -2; }
.scale-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.scale-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #101a12cf 0%, #101a1245 70%), linear-gradient(0deg, #101a12a3 0%, transparent 75%); }
.scale-hero-inner { padding-block: clamp(5rem, 12vw, 11rem) 2rem; }
.scale-hero .eyebrow { color: #f0f2e6; margin-bottom: 1.7rem; }
.scale-hero h1 { max-width: 12ch; font-size: clamp(3.1rem, 6.65vw, 6.6rem); letter-spacing: -.065em; line-height: 1.04; font-weight: 500; text-wrap: initial; }
.scale-hero h1 span { display: block; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -.055em; }
.scale-hero-copy { max-width: 42ch; margin-top: 1.6rem; color: #f0f2e6; font-size: 1rem; line-height: 1.65; }
.scale-hero .hero-actions { margin-top: 2rem; gap: 1.5rem; }
.scale-hero .button { background: #eff3df; color: #243225; }
.scale-hero .button:hover { background: #fffef8; }
.scale-hero .text-link { color: #fffef8; border-color: #ffffff70; }
.scale-hero-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.3rem; border-top: 1px solid #ffffff40; font-family: var(--mono); font-size: .63rem; letter-spacing: .06em; text-transform: uppercase; }
.scale-hero-meta a { display: flex; align-items: center; gap: .8rem; }
.scale-hero-meta a span { font-size: 1rem; }
.locale-ar .scale-hero h1 span, .locale-ar .scale-intro em, .locale-ar .scale-approach-head em { font-family: var(--body); font-style: normal; }
.locale-ar .scale-hero::before { background: linear-gradient(270deg, #101a12cf 0%, #101a1245 70%), linear-gradient(0deg, #101a12a3 0%, transparent 75%); }

/* Capabilities: an open index, with one clear path per offering. */
.scale-intro { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; padding-bottom: 4rem; }
.scale-intro > .eyebrow { align-self: start; margin-top: .7rem; }
.scale-intro h2 { max-width: 23ch; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.15; letter-spacing: -.045em; }
.scale-intro h2 em { font-family: Georgia, serif; font-weight: 400; color: #5b715a; }
.scale-intro p:not(.eyebrow) { max-width: 57ch; margin-top: 1.5rem; color: var(--text-2); line-height: 1.75; }
.scale-capabilities { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.scale-capability { display: grid; grid-template-columns: 2rem 1fr auto; align-items: start; gap: 1rem; padding: 2.2rem 2.5rem 2.2rem 0; border-bottom: 1px solid var(--line-2); transition: background-color 180ms ease; }
.scale-capability:nth-child(even) { padding-inline: 2.5rem 0; border-inline-start: 1px solid var(--line-2); }
.scale-capability:hover h3 { color: #4b6c47; }
.scale-capability .index { padding-top: .4rem; color: var(--text-3); font-family: var(--mono); font-size: .68rem; }
.scale-capability h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.045em; transition: color 180ms ease; }
.scale-capability p { margin-top: .9rem; color: var(--text-2); font-size: .9rem; max-width: 35ch; line-height: 1.7; }
.scale-capability > .link-arrow { margin-top: .5rem; }
.scale-service-note { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.6rem; color: var(--text-2); font-size: .8rem; }
.scale-service-note a { border-bottom: 1px solid var(--line-3); }

/* Two distinct product worlds, with diagrams rather than invented screenshots. */
.scale-products { background: #e7eddf; }
.scale-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.scale-section-heading > div { display: grid; gap: 1.3rem; }
.scale-section-heading h2 { max-width: 20ch; font-size: clamp(2.4rem, 4.3vw, 4.2rem); line-height: 1.1; letter-spacing: -.055em; }
.scale-section-heading > p { color: var(--text-2); max-width: 34ch; font-size: .92rem; line-height: 1.75; }
.scale-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3.5rem; }
.scale-product { display: flex; flex-direction: column; border: 1px solid #25372820; background: #f7f8f0; }
.scale-product-art { position: relative; height: 290px; display: grid; place-items: center; overflow: hidden; background: #d4dfc6; }
.scale-product-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#223d2610 1px, transparent 1px), linear-gradient(90deg, #223d2610 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(ellipse, #000, transparent 75%); }
.scale-product-crm .scale-product-art { background: #e9e2d7; }
.scale-product-art svg { position: relative; width: 82%; max-width: 420px; height: 220px; }
.scale-product-art > small { position: absolute; bottom: 1rem; inset-inline-start: 1.5rem; font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; color: #3a543d; text-transform: uppercase; }
.scale-product-body { padding: 2rem; display: flex; flex: 1; flex-direction: column; align-items: start; }
.scale-product-title { display: flex; flex-wrap: wrap; width: 100%; align-items: center; justify-content: space-between; gap: .8rem; }
.scale-product-title h3 { font-size: 1.7rem; }
.scale-product-body > p { max-width: 38ch; margin-top: 1.3rem; font-size: 1rem; line-height: 1.65; color: var(--text-2); }
.scale-product-body .text-link { margin-top: auto; padding-top: 2rem; }
.scale-product-disclosure { margin-top: 1.5rem; color: var(--text-2); font-size: .75rem; }

/* The approach moves from an editorial statement to three concrete steps. */
.scale-approach { background: #283a2e; color: #f3f4e9; }
.scale-approach .eyebrow { color: #c6d2bd; }
.scale-approach-head { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
.scale-approach-head h2 { max-width: 21ch; font-size: clamp(2.2rem, 4.1vw, 4rem); letter-spacing: -.05em; line-height: 1.16; }
.scale-approach-head h2 em { font-family: Georgia, serif; font-weight: 400; color: #c9d7b8; }
.scale-approach-head .text-link { margin-top: 2rem; color: #f3f4e9; border-color: #f3f4e966; }
.scale-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 4.5rem; list-style: none; }
.scale-process li { border-top: 1px solid #ffffff40; padding-top: 1.5rem; }
.scale-process .index { font-family: var(--mono); font-size: .7rem; color: #c6d2bd; }
.scale-process h3 { margin-top: 2rem; font-size: 1.5rem; }
.scale-process p { max-width: 34ch; color: #d0d8ca; margin-top: 1rem; font-size: .88rem; line-height: 1.8; }
.page-home .recent-work .frame { background: #e5e7df; border: 0; border-radius: 0; padding: 2.2rem 2.2rem 0; aspect-ratio: 1.5; }
.page-home .recent-work .frame img { object-fit: cover; box-shadow: 0 8px 30px #15241920; }
.page-home .work-card:nth-child(2) .frame { background: #eae4d9; }
.page-home .work-card-meta strong { font-size: 1.5rem; }
.page-home .work-card-meta span { letter-spacing: 0; font-family: var(--body); text-transform: none; }
.page-home .work-card-body p { font-size: .9rem; line-height: 1.7; }

/* Existing detail-page components adopt the same material and type system. */
.page-hero { padding-block: clamp(4rem, 7vw, 7rem); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 500; letter-spacing: -.055em; }
.panel, .question-card, .legal-card, .mode-bar, .statement, .cta-band { background: var(--bg-2); }
.panel-bar, .vg-chrome { background: #e7e9e0; }
.flow-visual { background: #eef0e7; }
.flow-visual::after { background: radial-gradient(ellipse at center, transparent 42%, #eef0e7 92%); }
.vg, .vg-page, .vg-toast, .call-flow .call-node, .phone, .phone-screen { background: var(--surface); }
.vg-button { color: #fff; }
.vg-live, .status-pill { color: #46613f; }
.phone, .phone-screen { color: var(--text); }
.statement h2, .cta-band h2 { font-weight: 500; }

@media (min-width: 961px) { .nav-links { gap: clamp(1.2rem, 2vw, 2rem); } }
@media (max-width: 960px) {
  .site-header { backdrop-filter: none; }
  .scale-intro, .scale-approach-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .scale-section-heading { align-items: start; flex-direction: column; }
  .scale-section-heading > p { max-width: 55ch; }
  .scale-hero h1 { font-size: clamp(3.2rem, 8vw, 5.5rem); }
  .scale-capability { padding-inline-end: 1.5rem; }
  .scale-capability:nth-child(even) { padding-inline-start: 1.5rem; }
  .scale-product-title { align-items: start; flex-direction: column; }
  .scale-process { gap: 1.5rem; }
}
@media (max-width: 720px) {
  :root { --header: 72px; }
  .nav-shell { height: var(--header); }
  .nav-links { background: var(--bg); }
  .scale-hero { min-height: 710px; }
  .scale-hero-image img { object-position: 62% center; }
  .scale-hero::before { background: linear-gradient(90deg, #101a12d9, #101a1255), linear-gradient(0deg, #101a12c9, transparent); }
  .locale-ar .scale-hero::before { background: linear-gradient(270deg, #101a12d9, #101a1255), linear-gradient(0deg, #101a12c9, transparent); }
  .scale-hero-inner { padding-top: 5rem; }
  .scale-hero h1 { font-size: clamp(2.9rem, 10.5vw, 4.4rem); }
  .scale-hero-copy { font-size: .92rem; }
  .scale-hero .hero-actions { align-items: start; }
  .scale-hero-meta { font-size: .59rem; margin-top: 3rem; }
  .scale-hero-meta > span { max-width: 18ch; }
  .scale-intro { padding-bottom: 2.5rem; }
  .scale-capabilities, .scale-product-grid, .scale-process { grid-template-columns: 1fr; }
  .scale-capability, .scale-capability:nth-child(even) { padding: 1.8rem 0; border-inline-start: 0; }
  .scale-product-grid { margin-top: 2.5rem; }
  .scale-product-art { height: 250px; }
  .scale-product-body { padding: 1.5rem; }
  .scale-product-title { align-items: center; flex-direction: row; }
  .scale-product-title h3 { font-size: 1.45rem; }
  .scale-product-disclosure { line-height: 1.6; }
  .scale-process { margin-top: 3rem; gap: 2rem; }
  .scale-process h3 { margin-top: 1rem; }
  .scale-process p { max-width: 50ch; }
  .page-home .recent-work .frame { padding: 1.5rem 1.5rem 0; }
  .footer-signature { font-size: 11.5vw; margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
