@font-face { font-family: 'Newsreader'; src: url('./assets/fonts/newsreader-400.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('./assets/fonts/newsreader-500.ttf') format('truetype'); font-style: normal; font-weight: 500; font-display: swap; }
:root {
  color-scheme: light;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ink: #302f2f;
  --muted: #676361;
  --line: #ddd7d1;
  --accent: #174b82;
  --paper: #f5f3ed;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: var(--font-body); }
.page-shell { max-width: 1120px; min-height: 100vh; margin: auto; padding: 32px clamp(24px, 5vw, 72px) 0; display: flex; flex-direction: column; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.masthead img { width: min(220px, 65vw); height: auto; display: block; filter: brightness(0) saturate(100%) invert(24%) sepia(55%) saturate(1290%) hue-rotate(178deg) brightness(91%) contrast(91%); }
.masthead span, .eyebrow { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
main { width: 100%; flex: 1; padding: clamp(64px, 8vw, 112px) 0 96px; }
.eyebrow { color: var(--accent); margin: 0 0 22px; }
h1 { max-width: 900px; margin: 0; font-family: var(--font-display); font-size: clamp(44px, 6.5vw, 78px); line-height: 1.08; letter-spacing: -.025em; font-weight: 400; text-wrap: balance; }
.intro { max-width: 640px; margin: 30px 0 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.58; color: var(--muted); }
.about, .work { max-width: 880px; margin-top: 64px; }
.section-title { margin: 0 0 20px; font-family: var(--font-display); font-size: clamp(32px, 4vw, 40px); line-height: 1.15; font-weight: 400; letter-spacing: -.02em; }
.about p { max-width: 640px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.work-item { min-width: 0; padding: clamp(24px, 3vw, 32px); border: 1px solid #dbe3eb; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #174b8205; transition: border-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) {
  .work-item:hover { border-color: #9fb8d1; box-shadow: 0 6px 20px #174b820a; }
}
.work-item h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.work-item p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.about .company-intro { margin-bottom: 16px; color: var(--ink); }
.about p + p { margin-top: 18px; }
.contact { max-width: 880px; margin-top: 80px; padding-top: 36px; border-top: 1px solid var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 52px; }
.contact h3 { margin: 0 0 22px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.contact-label { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); }
.contact address { font-style: normal; font-size: 17px; line-height: 1.6; }
.company-record p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.registry-link { margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.registry-link a { color: var(--ink); text-underline-offset: 3px; }
.registry-link a:hover, .registry-link a:focus-visible { color: var(--accent); }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 650px) {
  .page-shell { padding-top: 24px; }
  .masthead { padding-bottom: 24px; }
  .masthead span { display: none; }
  .wide-only { display: none; }
  main { padding: 72px 0 80px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact { margin-top: 64px; }
  .work-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

.system-visual { --pointer-x: 50%; --pointer-y: 50%; position: relative; margin-top: 48px; padding: 24px 0 8px; overflow: hidden; border-top: 1px solid #dbe3eb; border-bottom: 1px solid #dbe3eb; background: radial-gradient(ellipse at var(--pointer-x) var(--pointer-y), #e7eff8 0%, transparent 65%); }
.system-caption { display: flex; align-items: center; gap: 10px; padding: 0 24px; color: var(--accent); font-size: 12px; letter-spacing: .07em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px #174b8210; }
.system-map { display: block; width: 100%; height: auto; }
.system-node rect { fill: var(--paper); stroke: #bfd0e0; }
.system-node text { fill: var(--accent); text-anchor: middle; font: 14px Arial, Helvetica, sans-serif; }
.system-core rect { fill: var(--accent); stroke: var(--accent); }
.system-core text { fill: white; }
.signal-flow path { stroke-dasharray: 12 650; animation: signal-travel 9s linear infinite; }
.signal-flow path:nth-child(2) { animation-delay: -4.5s; }
.work-icon { display: block; color: var(--accent); margin-bottom: 18px; transition: transform .25s ease; }
.work-item:hover .work-icon { transform: translateY(-3px); }
@keyframes signal-travel { to { stroke-dashoffset: -662; } }
@media (max-width: 650px) {
  .system-visual { margin-top: 32px; padding-top: 20px; }
  .system-caption { padding: 0 8px; font-size: 11px; }
  .system-map { width: 100%; min-height: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .signal-flow path { animation: none; stroke-dasharray: none; opacity: .25; }
  .work-icon, .work-item { transition: none; }
  .work-item:hover .work-icon { transform: none; }
}

.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 36px; }
.about-image { display: block; width: 100%; height: auto; border-radius: 16px; }
.section-intro { max-width: 720px; margin: 0 0 28px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.contact-email { margin: 0 0 24px; font-size: 18px; }
.contact-email a { color: var(--accent); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-email a:hover { text-decoration-thickness: 2px; }
@media (max-width: 750px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-image { max-width: 420px; justify-self: center; }
}

.brand-icons { display: flex; align-items: center; gap: 18px; min-height: 36px; margin-bottom: 18px; }
.brand-icons img { display: block; width: 36px; height: 36px; object-fit: contain; }

.process { max-width: 880px; margin-top: 80px; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; padding: 0; list-style: none; }
.process-grid li { min-width: 0; padding-top: 20px; border-top: 2px solid #bfd0e0; }
.step-number { display: block; margin-bottom: 18px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.process-grid h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.process-grid p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
@media (max-width: 850px) { .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) {
  .process { margin-top: 64px; }
  .process-grid { grid-template-columns: 1fr; }
}

.scenarios { max-width: 880px; margin-top: 80px; }
.scenario-list { border-top: 1px solid var(--line); }
.scenario-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.scenario-list h3 { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; }
.scenario-list p, .getting-started p, .brief-list span { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.getting-started { max-width: 880px; margin-top: 80px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; background: #edf3f8; border-radius: 12px; }
.getting-started .eyebrow { margin-bottom: 18px; color: var(--accent); font-size: 12px; }
.brief-list { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.brief-list strong { display: block; margin-bottom: 5px; font-size: 16px; }
.brief-list span { display: block; font-size: 16px; }
@media (max-width: 650px) {
  .scenarios, .getting-started { margin-top: 64px; }
  .scenario-list > div { grid-template-columns: 1fr; gap: 10px; }
  .getting-started { grid-template-columns: 1fr; gap: 28px; }
}

.faq { max-width: 880px; margin-top: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { position: relative; padding: 23px 36px 23px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; line-height: 1.5; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 23px; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.faq-item p { max-width: 720px; margin: 0; padding: 0 24px 24px 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.faq-item a { color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 650px) { .faq { margin-top: 64px; } }

.main-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 14px 22px; }
.main-nav a { color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.main-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.main-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
main section[id] { scroll-margin-top: 24px; }
@media (max-width: 900px) {
  .masthead { flex-wrap: wrap; }
  .main-nav { flex: 1 1 100%; justify-content: flex-start; gap: 12px 20px; }
}

.work-item h3, .scenario-list h3, .process-grid h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }

.legal-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.legal-links a, .legal-notice a { color: var(--muted); text-underline-offset: 3px; }
.legal-links a:hover, .legal-notice a:hover { color: var(--accent); }
.legal-notices { margin-bottom: 28px; }
.legal-notice { padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.legal-notice summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.legal-notice p { max-width: 760px; color: var(--muted); font-size: 14px; line-height: 1.7; margin: 16px 0 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding-bottom: 36px; }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(42px, 4.5vw, 60px); line-height: 1.08; text-wrap: initial; }
.hero h1 span { color: var(--accent); }
.hero .intro { font-size: 18px; line-height: 1.65; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 30px; }
.hero-actions a { display: inline-flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.5; text-decoration: none; }
.button-primary { padding: 13px 18px; color: #302510; background: #e4ad36; border: 1px solid #e4ad36; border-radius: 5px; }
.button-primary:hover { background: #d49a22; border-color: #d49a22; }
.button-secondary { color: var(--ink); padding: 10px 0; }
.button-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-actions a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.hero-technologies { margin: 28px 0 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.hero-technologies span { padding: 0 5px; color: #9cacbc; }
.hero .hero-system { margin: 0; padding: 24px; border: 1px solid #d2dfec; border-radius: 16px; background-color: #eef3f8; box-shadow: 0 20px 50px #174b8209; }
.hero-system .system-caption { padding: 0; font-size: 11px; letter-spacing: .02em; }
.architecture-scene { margin: 28px 0; }
.interface-window { background: white; border: 1px solid #b7cce0; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px #174b8208; }
.interface-bar { display: flex; gap: 5px; align-items: center; padding: 12px; border-bottom: 1px solid #e0e8f0; }
.interface-bar i { width: 5px; height: 5px; border-radius: 50%; background: #b2c6da; }
.interface-bar span { margin-left: auto; font-size: 8px; letter-spacing: .12em; color: #6985a0; }
.interface-content { display: flex; min-height: 130px; }
.interface-sidebar { width: 40px; padding: 16px 12px; border-right: 1px solid #e0e8f0; }
.interface-sidebar i { display: block; height: 5px; margin-bottom: 14px; background: #c2d3e3; border-radius: 2px; }
.interface-panels { flex: 1; padding: 18px; }
.interface-heading { width: 45%; height: 6px; background: #7597b9; border-radius: 2px; margin-bottom: 14px; }
.interface-metrics { display: flex; gap: 8px; }
.interface-metrics i { height: 24px; flex: 1; background: #eaf1f7; border-radius: 3px; border-top: 2px solid #7298bd; }
.interface-chart { display: flex; align-items: flex-end; gap: 9px; height: 50px; padding-top: 12px; }
.interface-chart i { flex: 1; background: #7fa5c8; border-radius: 2px 2px 0 0; height: 40%; }
.interface-chart i:nth-child(2n) { height: 65%; background: #abc4da; }
.interface-chart i:nth-child(3n) { height: 80%; }
.interface-chart i:last-child { height: 100%; background: var(--accent); }
.system-connection { position: relative; width: 1px; height: 35px; margin: auto; background: #b2c7dc; overflow: hidden; }
.system-connection span { position: absolute; left: 0; width: 1px; height: 12px; background: var(--accent); animation: connection-flow 2.6s linear infinite; }
.architecture-core { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 8px; background: var(--accent); color: white; }
.core-symbol { font: 22px monospace; opacity: .8; }
.architecture-core strong { display: block; font-size: 14px; font-weight: 500; }
.architecture-core small { display: block; font-size: 10px; margin-top: 5px; color: #c4d8ec; }
.architecture-branches { display: flex; justify-content: space-around; height: 24px; }
.architecture-branches span { width: 1px; background: #b2c7dc; }
.architecture-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.architecture-modules div { padding: 12px 5px; text-align: center; font-size: 10px; line-height: 1.5; color: var(--accent); background: white; border: 1px solid #c8d8e7; border-radius: 5px; }
.system-bottom { display: flex; justify-content: space-between; color: #70869a; font-size: 9px; letter-spacing: .12em; }
@keyframes connection-flow { from { transform: translateY(-12px); } to { transform: translateY(35px); } }
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: clamp(42px, 8vw, 64px); }
  .hero .hero-system { width: 100%; max-width: 520px; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .system-connection span { animation: none; top: 10px; } }

/* Alternating editorial sections: hero right, About left, scenarios right. */
.alternating-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.alternating-about .about-copy { grid-column: 2; grid-row: 1; }
.alternating-about .about-image { grid-column: 1; grid-row: 1; }
.scenarios { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 36px; }
.scenarios .scenario-list > div { grid-template-columns: 1fr; gap: 8px; }
.lower-graphic svg, .conversation-art svg { display: block; width: 100%; height: auto; }
.conversation-art { max-width: 320px; margin-top: 24px; }
.graphic-pulse { animation: graphic-breathe 3s ease-in-out infinite; }
@keyframes graphic-breathe { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@media (max-width: 750px) {
  .alternating-about, .scenarios { grid-template-columns: 1fr; }
  .alternating-about .about-copy, .alternating-about .about-image { grid-column: auto; grid-row: auto; }
  .lower-graphic { max-width: 360px; width: 100%; justify-self: center; }
  .conversation-art { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .graphic-pulse { animation: none; } }

/* Warm paper surface with a lightweight, local grain texture. */
body { background-color: var(--paper); background-image: url('./assets/paper-grain.svg'); background-repeat: repeat; }
.work-item { background: #fffdf8; border-color: #deddd4; box-shadow: 0 3px 12px #302f2f04; }
.getting-started { background-color: #edece4; background-image: url('./assets/paper-grain.svg'); }
