/* AppTrace: red #ef4445, black type, white ground, light grey panels (from the approved 19 Nov mockup). */
:root {
  --t-bg: #ffffff;
  --t-soft: #f4f4f4;
  --t-surface: #ffffff;
  --t-ink: #111111;
  --t-body: #333333;
  --t-line: #e2e2e2;
  --t-red: #ef4445;
  --t-panel: #ef4445;
  --t-on-red: #ffffff;
  --t-inv: #111111;
  --t-inv-ink: #ffffff;
  --t-inv-body: #d6d6d6;
  --t-band: #111111;
  --t-band-ink: #f4f4f4;
  --t-band-body: #c2c2c2;
  --t-field: #1c1c1c;
  --t-field-line: #4a4a4a;
  --focus: #c8292c;
  --font-t: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-bg: #121212; --t-soft: #1c1c1c; --t-surface: #1e1e1e; --t-ink: #f2f2f2; --t-body: #cfcfcf; --t-line: #2f2f2f;
    --t-red: #f25557; --t-panel: #ef4445; --t-on-red: #ffffff; --t-inv: #2a2a2a; --t-inv-ink: #ffffff; --t-inv-body: #d0d0d0;
    --t-band: #050505; --t-band-ink: #f2f2f2; --t-band-body: #b3b3b3; --t-field: #161616; --t-field-line: #444444;
    --focus: #f46b6c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --t-bg: #121212; --t-soft: #1c1c1c; --t-surface: #1e1e1e; --t-ink: #f2f2f2; --t-body: #cfcfcf; --t-line: #2f2f2f;
  --t-red: #f25557; --t-panel: #ef4445; --t-on-red: #ffffff; --t-inv: #2a2a2a; --t-inv-ink: #ffffff; --t-inv-body: #d0d0d0;
  --t-band: #050505; --t-band-ink: #f2f2f2; --t-band-body: #b3b3b3; --t-field: #161616; --t-field-line: #444444;
  --focus: #f46b6c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--t-bg); color: var(--t-body); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
p, ul, ol, dl, dd, h1, h2, h3, h4 { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--t-ink); color: var(--t-bg); padding: 10px 16px; border-radius: 4px; }
.skip:focus { top: 12px; }
.in { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 56px); }
h1, h2, h3 { font-family: var(--font-t); color: var(--t-ink); line-height: 1.12; text-wrap: balance; }

.nav .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-t); font-weight: 400; font-size: 1.75rem; color: var(--t-ink); letter-spacing: -0.02em; white-space: nowrap; text-decoration: none; }
.logo svg { width: 22px; height: 30px; flex: none; }
.logo path { fill: var(--t-red); }
.nav ul { display: flex; gap: 32px; list-style: none; padding: 0; font-family: var(--font-t); font-weight: 400; font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-ink); }
.nav ul a { text-decoration: none; }
.nav ul a:hover { text-decoration: underline; text-decoration-color: var(--t-red); text-decoration-thickness: 2px; }

.hero { padding-block: clamp(36px, 7vw, 96px) clamp(44px, 7vw, 96px); }
.hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); font-weight: 300; color: var(--t-red); letter-spacing: -0.01em; }
.hero .desc { margin-top: 26px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--t-ink); max-width: 44ch; }
.tree { display: block; width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
.tree .br { stroke: var(--t-ink); stroke-width: 2; fill: none; }
.tree .pt { fill: var(--t-surface); stroke: var(--t-ink); stroke-width: 2; }
.tree .px { fill: var(--t-red); }
.tree .pt-t { font-family: var(--font-t); font-weight: 400; font-size: 27px; fill: var(--t-ink); letter-spacing: -0.02em; }
.tree .pt-s { font-family: var(--font-t); font-size: 13px; letter-spacing: 0.12em; fill: var(--t-body); }
.tree .co { fill: var(--t-inv); }
.tree .co-t { font-family: var(--font-t); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; fill: var(--t-inv-ink); }
.tree .ar { stroke: var(--t-red); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tree .ar.back { opacity: 0.6; }

/* About: the red panel with a slanted edge beside a grey panel */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; background: var(--t-soft); }
.about .red { background: var(--t-panel); clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%); padding-block: clamp(48px, 7vw, 96px); padding-left: max(16px, clamp(16px, 4vw, 56px)); padding-right: clamp(40px, 6vw, 96px); display: grid; align-content: center; }
.about .red h2 { color: var(--t-on-red); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -0.02em; }
.about .text { padding-block: clamp(36px, 7vw, 96px); padding-inline: clamp(20px, 4vw, 64px); display: grid; align-content: center; min-width: 0; }
.about p { font-size: 1.12rem; line-height: 1.75; color: var(--t-ink); max-width: 60ch; }

.section { padding-block: clamp(48px, 6vw, 88px); }
.section.soft { background: var(--t-soft); }
.section h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 300; letter-spacing: -0.01em; }
.section .intro { margin-top: 12px; font-size: 1.1rem; max-width: 62ch; }

/* How the portfolio works: three short points on a red rule */
.model { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.pt-item { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 3px solid var(--t-red); min-width: 0; }
.pt-item h3 { font-size: 1.35rem; font-weight: 500; }
.pt-item p { font-size: 1.02rem; }

/* The company cards sit side by side; the grid takes another card without a layout change. */
.cos { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 22px; }
.co-card .head .fit { margin-top: 4px; font-size: 0.98rem; color: var(--t-inv-ink); }
.co-card .head .fit b { font-family: var(--font-t); font-weight: 500; color: var(--t-red); margin-right: 4px; }
.co-card { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: 4px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.co-card .head { padding: 26px 28px 24px; display: grid; gap: 10px; background: var(--t-inv); color: var(--t-inv-ink); border-top: 6px solid var(--t-red); }
.co-card .head h3 { color: inherit; font-size: 1.7rem; font-weight: 500; }
.co-card .head p { font-size: 1.04rem; line-height: 1.5; color: var(--t-inv-body); }
.co-card .body { padding: 24px 28px 28px; display: grid; gap: 14px; align-content: start; }
.co-card .body h4 { font-family: var(--font-t); font-size: 1.05rem; font-weight: 600; color: var(--t-ink); }
.co-card ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.co-card li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.co-card li svg { width: 12px; height: 12px; margin-top: 7px; }
.co-card li svg rect { fill: var(--t-red); }
.link { margin-top: 8px; justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-t); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.92rem; color: var(--t-ink); text-decoration: none; border-bottom: 2px solid var(--t-red); }
.link svg { width: 16px; height: 16px; }
.link svg path { stroke: var(--t-red); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.flow { margin-top: 36px; display: grid; grid-template-columns: 1fr minmax(180px, 260px) 1fr; gap: 18px; align-items: stretch; }
.node { border-radius: 4px; padding: 22px 24px; display: grid; gap: 8px; align-content: start; min-width: 0; background: var(--t-inv); color: var(--t-inv-ink); border-top: 6px solid var(--t-red); }
.node h3 { color: inherit; font-size: 1.3rem; font-weight: 500; }
.node p { font-size: 1rem; color: var(--t-inv-body); }
.pass { display: grid; align-content: center; gap: 22px; }
.arrow { display: grid; gap: 4px; text-align: center; }
.arrow svg { width: 100%; height: 22px; }
.arrow svg path { stroke: var(--t-red); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.arrow svg.v { display: none; height: 34px; }
.arrow p { font-size: 0.95rem; font-weight: 600; color: var(--t-ink); line-height: 1.4; }
.sub-h { margin-top: clamp(40px, 5vw, 60px); font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 400; }
.examples { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ex { background: var(--t-soft); border-radius: 4px; padding: 24px 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.ex h4 { font-family: var(--font-t); font-size: 1.2rem; font-weight: 600; color: var(--t-ink); }
.ex ol { padding-left: 1.3em; display: grid; gap: 8px; }
.ex li { padding-left: 4px; }
.ex li::marker { font-family: var(--font-t); font-weight: 600; color: var(--t-red); }
.lead { margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--t-surface); border: 2px solid var(--t-ink); border-radius: 4px; padding: 24px 28px; }
.lead svg { width: 44px; height: 44px; }
.lead svg circle { fill: var(--t-red); }
.lead svg path { fill: var(--t-on-red); }
.lead h3 { font-size: 1.35rem; font-weight: 600; }
.lead p { margin-top: 6px; font-size: 1.05rem; max-width: 70ch; }

.contact { background: var(--t-band); color: var(--t-band-ink); }
.contact .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(48px, 6vw, 88px); align-items: start; }
.contact h2 { color: var(--t-band-ink); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 300; }
.contact p { margin-top: 12px; color: var(--t-band-body); font-size: 1.08rem; max-width: 50ch; }
.mail { display: grid; gap: 6px; margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--t-red); min-width: 0; }
.mail b { font-family: var(--font-t); font-weight: 400; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-band-body); }
.mail a { font-family: var(--font-t); font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--t-band-ink); overflow-wrap: anywhere; line-height: 1.2; text-decoration: none; }
.mail a:hover { text-decoration: underline; text-decoration-color: var(--t-red); }

/* Contact form on the black band */
.form { display: grid; gap: 18px; padding-top: 18px; border-top: 2px solid var(--t-red); min-width: 0; }
.form label { display: grid; gap: 6px; }
.form label span { font-family: var(--font-t); font-weight: 400; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-band-body); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--t-band-ink); background: var(--t-field); border: 1px solid var(--t-field-line); border-radius: 4px; padding: 12px 14px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--t-red); }
.form button { justify-self: start; min-height: 48px; padding: 12px 26px; font-family: var(--font-t); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: #111111; background: var(--t-band-ink); border: 0; border-bottom: 3px solid var(--t-red); border-radius: 4px; cursor: pointer; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form .status { margin: 0; min-height: 1.6em; color: var(--t-band-ink); font-size: 1rem; }
.form .status:empty { display: none; }
.form .status a { color: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { background: var(--t-band); color: var(--t-band-body); border-top: 1px solid rgba(242, 242, 242, 0.12); font-family: var(--font-t); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.foot .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Cookie choice (views/analytics.js adds it only while a measurement id is set): a slim bar along the bottom. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 32px; padding: 16px clamp(16px, 4vw, 44px); background: var(--t-surface); color: var(--t-ink); border-top: 1px solid var(--t-line); box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.12); font-size: 0.9rem; line-height: 1.5; }
.consent:focus { outline: none; }
.consent:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.consent-txt { flex: 1; min-width: 0; }
.consent-txt p { margin: 0; }
.consent-txt .consent-title { margin-bottom: 4px; font-family: var(--font-t); font-weight: 600; font-size: 1.12rem; line-height: 1.25; color: var(--t-ink); }
.consent-text a { color: var(--t-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--t-red); text-decoration-thickness: 2px; white-space: nowrap; }
.consent-btns { display: flex; gap: 12px; flex: none; }
.consent-btn { min-height: 44px; padding: 10px 24px; font-family: var(--font-t); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-bg); background: var(--t-ink); border: 0; border-bottom: 3px solid var(--t-red); border-radius: 4px; cursor: pointer; }
.consent-links { white-space: nowrap; }
main[tabindex="-1"]:focus { outline: none; }
@media (max-width: 620px) {
  .consent { flex-direction: column; align-items: stretch; gap: 12px; padding-block: 14px; }
  .consent-btns { display: grid; grid-template-columns: 1fr 1fr; }
}

/* Plain pages: privacy, thanks, 404 */
.page { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 7vw, 104px); }
.page .in { max-width: 860px; margin-inline: 0; }
.page h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 300; color: var(--t-red); letter-spacing: -0.01em; }
.page h2 { margin-top: 36px; font-size: 1.45rem; font-weight: 500; }
.page p, .page ul { margin-top: 14px; color: var(--t-ink); max-width: 65ch; }
.page ul { padding-left: 1.2em; display: grid; gap: 8px; }
.page .back { margin-top: 28px; }

@media (max-width: 980px) {
  .nav ul { display: none; }
  .hero .grid, .cos, .contact .grid, .model, .examples { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about .red { clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); padding-right: 16px; padding-block: 40px 56px; }
  .tree { max-width: 440px; }
  .flow { grid-template-columns: 1fr; }
  .pass { grid-template-columns: 1fr 1fr; gap: 14px; padding-block: 4px; }
  .arrow svg.h { display: none; }
  .arrow svg.v { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .logo { font-size: 1.4rem; }
  .logo svg { width: 18px; height: 24px; }
  .co-card .head, .co-card .body { padding-inline: 20px; }
  .lead { grid-template-columns: 1fr; padding: 20px; gap: 12px; }
  .lead svg { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
