:root {
  --ink: #171715;
  --muted: #76756e;
  --line: #d8d8d1;
  --paper: #f4f4ef;
  --acid: #d6f35a;
  --blue: #bdd5ed;
  --lavender: #d6ceef;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.site-header {
  align-items: center; display: flex; justify-content: space-between;
  padding: 28px 4vw; position: absolute; top: 0; width: 100%; z-index: 5;
}
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -.08em; }
.logo span { color: #94b43a; }
.main-nav { display: flex; gap: 34px; margin-left: 100px; }
.main-nav a, .header-availability { font-size: .69rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.main-nav a { transition: opacity .2s; }
.main-nav a:hover { opacity: .5; }
.language-switcher { display: flex; gap: 5px; margin-left: auto; margin-right: 28px; }
.language-switcher button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-family: "DM Mono", monospace; font-size: .59rem; letter-spacing: .08em; padding: 4px 3px; }
.language-switcher button:hover, .language-switcher button.active { color: var(--ink); font-weight: 500; }
.language-switcher button.active { text-decoration: underline; text-underline-offset: 4px; }
.header-availability { align-items: center; display: flex; gap: 9px; }
.status-dot { background: #8aad22; border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.section { padding: 10vw 8vw; }
.hero { display: flex; flex-direction: column; min-height: 690px; padding-top: 190px; }
.eyebrow { font-family: "DM Mono", monospace; font-size: .68rem; letter-spacing: .12em; margin: 0; text-transform: uppercase; }
.hero-title { font-size: clamp(4rem, 10vw, 10.8rem); font-weight: 700; letter-spacing: -.09em; line-height: .86; margin: auto 0 7vw; max-width: 1100px; }
em { font-family: var(--serif); font-weight: 400; letter-spacing: -.07em; }
.hero-bottom { align-items: end; display: flex; justify-content: space-between; }
.hero-intro { font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.35; margin: 0; max-width: 405px; }
.circle-link { align-items: center; border: 1px solid var(--ink); border-radius: 50%; display: flex; font-size: 2.2rem; height: 92px; justify-content: center; transition: background .3s, color .3s, transform .3s; width: 92px; }
.circle-link:hover { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
.ticker { background: var(--acid); overflow: hidden; padding: 15px 0; white-space: nowrap; }
.ticker-track { align-items: center; animation: slide 32s linear infinite; display: flex; gap: 27px; width: max-content; }
.ticker span, .ticker b { font-family: "DM Mono", monospace; font-size: .69rem; letter-spacing: .08em; }
.ticker b { font-size: 1rem; font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }
.section-heading { align-items: baseline; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding-top: 16px; }
.section-note { color: var(--muted); font-size: .8rem; margin: 0; }
.project-list { margin-top: 8vw; }
.project { display: grid; gap: 7vw; grid-template-columns: 1.1fr .9fr; margin-bottom: 13vw; }
.project-reverse { grid-template-columns: .9fr 1.1fr; }
.project-reverse .project-info { grid-column: 1; grid-row: 1; }
.project-reverse .project-visual { grid-column: 2; grid-row: 1; }
.project-visual { min-height: 510px; padding: 28px; position: relative; }
.visual-sync { background: var(--blue); }
.visual-fallcare { background: var(--lavender); }
.visual-dashboard { background: #dfdfd6; }
.visual-label, .visual-caption { font-family: "DM Mono", monospace; font-size: .62rem; letter-spacing: .1em; }
.visual-caption { bottom: 25px; left: 28px; position: absolute; }
.sync-diagram { align-items: center; display: flex; gap: 18px; justify-content: center; min-height: 400px; }
.db-node { align-items: center; background: var(--paper); display: flex; flex-direction: column; gap: 7px; justify-content: center; height: 145px; padding: 15px; text-align: center; width: 145px; }
.db-node.node-dark { background: var(--ink); color: var(--paper); }
.node-icon { font-size: 2.6rem; font-weight: 400; line-height: 1; }
.db-node strong { font-size: .75rem; }
.db-node small { font-family: "DM Mono", monospace; font-size: .5rem; }
.event-flow { align-items: center; display: flex; flex-direction: column; gap: 6px; }
.event-flow span { font-family: "DM Mono", monospace; font-size: .52rem; }
.event-flow i { background: var(--ink); display: block; height: 1px; width: 45px; }
.event-flow i:nth-of-type(2) { width: 28px; }
.event-flow i:nth-of-type(3) { width: 13px; }
.fallcare-mark { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 400px; }
.fallcare-mark strong { font-size: clamp(2.3rem, 5vw, 5rem); letter-spacing: -.1em; }
.fallcare-mark strong span { color: #7668b0; font-family: var(--serif); font-weight: 400; }
.fallcare-mark small { font-family: "DM Mono", monospace; font-size: .55rem; letter-spacing: .15em; margin-top: 16px; text-transform: uppercase; }
.pulse-line { border-top: 2px solid var(--ink); height: 20px; margin-bottom: 12px; position: relative; transform: skew(-30deg); width: 85px; }
.pulse-line::before, .pulse-line::after { border-top: 2px solid var(--ink); content: ""; position: absolute; width: 22px; }
.pulse-line::before { left: 19px; top: -13px; transform: rotate(65deg); }
.pulse-line::after { right: 6px; top: -13px; transform: rotate(-65deg); }
.dashboard-top { display: flex; font-family: "DM Mono", monospace; font-size: .6rem; justify-content: space-between; letter-spacing: .1em; }
.chart-grid { display: grid; gap: 10px; grid-template-columns: 1.5fr 1fr; margin: 95px auto 0; max-width: 470px; }
.chart-card { background: var(--paper); padding: 18px; }
.chart-card small { font-family: "DM Mono", monospace; font-size: .52rem; letter-spacing: .08em; }
.chart-card strong { display: block; font-size: 1.75rem; letter-spacing: -.08em; margin-top: 12px; }
.chart-card strong i { color: #7d9f1d; font-size: .57rem; font-style: normal; letter-spacing: 0; margin-left: 8px; }
.chart-main { grid-row: span 2; }
.chart-bars { align-items: end; display: flex; gap: 8px; height: 125px; margin-top: 22px; }
.chart-bars i { background: var(--ink); display: block; flex: 1; }
.chart-stat strong { font-size: 1.25rem; }
.chart-stat strong span { color: var(--muted); font-family: "DM Mono", monospace; font-size: .53rem; letter-spacing: 0; margin-left: 4px; }
.project-info { align-self: center; max-width: 500px; }
.project-meta { color: var(--muted); display: flex; font-family: "DM Mono", monospace; font-size: .62rem; justify-content: space-between; letter-spacing: .08em; text-transform: uppercase; }
.project-info h2 { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -.09em; line-height: .9; margin: 44px 0 26px; }
.project-info h2 em { font-size: 1.07em; }
.project-info h2 span { color: #7668b0; font-family: var(--serif); font-weight: 400; }
.project-info > p { color: #50504a; font-size: .95rem; line-height: 1.6; max-width: 410px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 27px 0 34px; }
.tag-list span { border: 1px solid #c9c9c1; border-radius: 20px; font-family: "DM Mono", monospace; font-size: .59rem; padding: 8px 11px; }
.text-link { background: none; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; display: inline-block; font-size: .73rem; font-weight: 700; letter-spacing: .08em; padding: 0 0 8px; text-transform: uppercase; }
.text-link span { display: inline-block; font-size: 1rem; margin-left: 8px; transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }
.about { background: var(--ink); color: var(--paper); }
.about .section-heading { border-color: #4a4a45; }
.about-grid { display: grid; gap: 10vw; grid-template-columns: 1fr 1fr; margin-top: 8vw; }
.about h2 { font-size: clamp(3.1rem, 6vw, 7rem); letter-spacing: -.1em; line-height: .88; margin: 0; }
.about h2 em { color: var(--acid); }
.about-copy { max-width: 490px; }
.about-copy p { color: #b7b7ae; font-size: .95rem; line-height: 1.65; margin: 0 0 22px; }
.about-copy .lead { color: var(--paper); font-size: 1.35rem; line-height: 1.35; }
.about .text-link { border-color: var(--paper); margin-top: 18px; }
.toolkit { padding-bottom: 13vw; }
.toolkit-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 7vw; }
.toolkit-item { border-left: 1px solid var(--line); min-height: 220px; padding: 0 25px; }
.toolkit-item:first-child { border-left: 0; padding-left: 0; }
.toolkit-item span { color: var(--muted); font-family: "DM Mono", monospace; font-size: .63rem; }
.toolkit-item h3 { font-size: 1.1rem; letter-spacing: -.04em; margin: 44px 0 17px; }
.toolkit-item p { color: var(--muted); font-family: "DM Mono", monospace; font-size: .67rem; line-height: 1.9; margin: 0; }
.contact { background: var(--acid); min-height: 620px; padding-bottom: 36px; padding-top: 36px; position: relative; }
.contact-title { font-size: clamp(4rem, 10vw, 11rem); letter-spacing: -.11em; line-height: .8; margin: 13vw 0 8vw; }
.contact-title em { color: #687e1b; }
.contact-email { border-bottom: 1px solid var(--ink); display: inline-block; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 700; padding-bottom: 9px; }
.contact-email span { font-size: 1.2rem; margin-left: 12px; }
.contact-footer { bottom: 36px; display: flex; font-family: "DM Mono", monospace; font-size: .6rem; justify-content: space-between; left: 8vw; letter-spacing: .08em; position: absolute; right: 8vw; text-transform: uppercase; }
.modal { align-items: center; display: none; inset: 0; justify-content: center; padding: 25px; position: fixed; z-index: 10; }
.modal.is-open { display: flex; }
.modal-backdrop { background: rgba(23, 23, 21, .72); inset: 0; position: absolute; }
.modal-card { background: var(--paper); max-width: 650px; padding: 55px; position: relative; width: 100%; z-index: 1; }
.modal-close { background: none; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; position: absolute; right: 24px; top: 20px; }
.modal-card h2 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.1em; line-height: .88; margin: 32px 0 25px; }
.modal-description { color: #50504a; line-height: 1.6; max-width: 520px; }
.modal-details { border-top: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 38px; padding-top: 20px; }
.modal-details span { color: var(--muted); display: block; font-family: "DM Mono", monospace; font-size: .57rem; letter-spacing: .08em; margin-bottom: 10px; text-transform: uppercase; }
.modal-details strong { font-size: .73rem; line-height: 1.5; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .site-header { padding: 22px 6vw; }
  .main-nav { gap: 17px; margin-left: 0; }
  .header-availability { display: none; }
  .language-switcher { margin-left: auto; margin-right: 18px; }
  .section { padding-left: 6vw; padding-right: 6vw; }
  .hero { min-height: 620px; padding-top: 130px; }
  .hero-title { font-size: clamp(3.5rem, 16vw, 7rem); margin-bottom: 15vw; }
  .hero-bottom { align-items: start; gap: 35px; }
  .hero-intro { font-size: .92rem; }
  .circle-link { flex: 0 0 66px; font-size: 1.6rem; height: 66px; width: 66px; }
  .section-heading { gap: 20px; }
  .section-note { text-align: right; }
  .project, .project-reverse { display: flex; flex-direction: column; gap: 40px; margin-bottom: 25vw; }
  .project-reverse .project-info, .project-reverse .project-visual { order: initial; }
  .project-visual { min-height: 390px; }
  .sync-diagram { min-height: 290px; transform: scale(.78); }
  .fallcare-mark { min-height: 280px; }
  .chart-grid { margin-top: 62px; transform: scale(.86); transform-origin: top center; }
  .project-info h2 { margin-top: 28px; }
  .about-grid { display: block; margin-top: 18vw; }
  .about h2 { margin-bottom: 65px; }
  .toolkit-grid { gap: 0; grid-template-columns: repeat(2, 1fr); margin-top: 18vw; }
  .toolkit-item { border-bottom: 1px solid var(--line); border-left: 0; min-height: 190px; padding: 20px 0; }
  .toolkit-item:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 20px; }
  .toolkit-item:nth-child(even) { padding-left: 20px; }
  .toolkit-item:first-child { padding-left: 0; padding-top: 0; }
  .toolkit-item:nth-child(2) { padding-top: 0; }
  .contact { min-height: 570px; }
  .contact-title { margin: 28vw 0 18vw; }
  .contact-footer { align-items: start; bottom: 25px; flex-direction: column; gap: 8px; left: 6vw; right: 6vw; }
  .modal-card { padding: 45px 27px 30px; }
  .modal-details { grid-template-columns: 1fr; }
}
