:root {
  --paper: #f3f1eb;
  --paper-bright: #faf9f6;
  --ink: #11110f;
  --muted: #66665f;
  --line: #c9c7bf;
  --blue: #145cff;
  --blue-dark: #0039bd;
  --acid: #b7ff45;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: clamp(22px, 5vw, 78px);
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: white; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  transform: translateY(-150%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  text-decoration: none;
}
.skip-link:focus { transform: none; }

.progress { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none; }
.progress span { display: block; width: 100%; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }

.site-header {
  position: fixed;
  z-index: 90;
  top: 15px;
  left: 18px;
  right: 18px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 9px 10px 9px 16px;
  border: 1px solid rgba(17,17,15,.16);
  background: rgba(243,241,235,.88);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(17,17,15,.08); background: rgba(250,249,246,.94); }
.wordmark { font-size: 20px; line-height: 1; font-weight: 700; letter-spacing: -.06em; text-decoration: none; width: max-content; }
.wordmark-dot { color: var(--blue); }
.nav { display: flex; gap: clamp(20px, 3vw, 48px); align-items: center; }
.nav a, .header-contact { text-decoration: none; font-size: 12px; font-weight: 600; }
.nav a { color: #393935; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--blue); transition: right .2s ease; }
.nav a:hover::after, .nav a:focus-visible::after, .nav a.active::after { right: 0; }
.header-contact { justify-self: end; background: var(--ink); color: white; padding: 11px 15px; transition: background .2s ease; }
.header-contact:hover, .header-contact:focus-visible { background: var(--blue); }

.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(130px, 17vh, 190px) var(--pad) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, .75fr);
  align-items: end;
  gap: clamp(40px, 6vw, 100px);
  isolation: isolate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(17,17,15,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,15,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
}
.hero-copy { align-self: center; }
.eyebrow, .section-label, .project-meta, .visual-label, .console-head, .console-foot, .system-strip, .ops-topbar {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 36px; font-size: 11px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(20,92,255,.1); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(20,92,255,0); } }
.hero h1 { max-width: 1060px; margin: 0; font-size: clamp(47px, 6.7vw, 108px); line-height: .93; letter-spacing: -.07em; font-weight: 600; text-wrap: balance; }
.ink-mark { position: relative; color: var(--blue); white-space: nowrap; }
.ink-mark::after { content: ""; position: absolute; left: 2%; right: 0; bottom: -.05em; height: .07em; background: currentColor; transform: rotate(-1deg); }
.hero-bottom { max-width: 780px; margin-top: clamp(38px, 6vh, 68px); display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: end; }
.hero-intro { margin: 0; color: #393935; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; }
.hero-actions { display: grid; gap: 18px; justify-items: start; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 210px; padding: 15px 18px; text-decoration: none; font-size: 13px; font-weight: 700; border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover, .button-dark:focus-visible { background: var(--blue); }
.text-link, .project-link { font-size: 13px; font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.hero-console {
  align-self: end;
  background: var(--ink);
  color: white;
  min-height: 420px;
  border: 1px solid #000;
  box-shadow: 24px 24px 0 rgba(20,92,255,.95);
  will-change: transform;
  transition: transform .18s ease-out;
}
.console-head, .console-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px; font-size: 9px; border-bottom: 1px solid #3b3b38; color: #aaa9a3; }
.system-online { color: var(--acid); }
.system-online i, .ops-topbar i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.console-clock { padding: 28px 16px 24px; display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid #3b3b38; }
.console-clock span { font-family: var(--mono); font-size: clamp(34px, 4vw, 58px); letter-spacing: -.08em; }
.console-clock small { font: 9px var(--mono); color: #85857f; letter-spacing: .1em; }
.console-list { display: grid; }
.console-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 18px 15px; border-bottom: 1px solid #333330; text-decoration: none; font-size: 12px; transition: background .2s ease, color .2s ease; }
.console-row strong { font: 8px var(--mono); letter-spacing: .08em; color: #81817c; }
.console-row:hover, .console-row:focus-visible, .console-row.active { background: var(--blue); }
.console-row:hover strong, .console-row:focus-visible strong, .console-row.active strong { color: white; }
.console-index { font: 9px var(--mono); color: #7e7e79; }
.console-row:hover .console-index, .console-row:focus-visible .console-index, .console-row.active .console-index { color: white; }
.console-foot { margin-top: auto; border-bottom: 0; border-top: 1px solid #3b3b38; }

.section-pad { padding: clamp(90px, 11vw, 170px) var(--pad); }
.section-label { margin: 0; font-size: 10px; color: #5c5c57; }
.section-label.light { color: #8f8f89; }
.manifesto { border-top: 1px solid var(--line); }
.manifesto-text { max-width: 1260px; margin: 60px 0 90px; font-size: clamp(34px, 5vw, 76px); line-height: 1.08; letter-spacing: -.055em; color: #888780; }
.manifesto-text span { color: var(--ink); }
.capability-line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; }
.capability-line span { padding: 16px 22px; font: 10px var(--mono); text-transform: uppercase; border-right: 1px solid var(--line); flex: 1; text-align: center; white-space: nowrap; }

.projects { padding-top: 40px; }
.section-heading { display: grid; grid-template-columns: .5fr 1.1fr .7fr; gap: 40px; align-items: end; margin-bottom: 100px; }
.section-heading h2 { margin: 0; font-size: clamp(52px, 7vw, 104px); line-height: .95; letter-spacing: -.07em; font-weight: 600; }
.section-heading > p:last-child { margin: 0; max-width: 380px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.project { padding: 0 0 clamp(110px, 14vw, 200px); scroll-margin-top: 100px; }
.project-meta { display: grid; grid-template-columns: 50px 1fr auto; gap: 16px; border-top: 1px solid var(--ink); padding: 14px 0 34px; font-size: 9px; }
.project-layout { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(500px, 1.25fr); gap: clamp(50px, 8vw, 130px); align-items: center; }
.project-layout-reverse { grid-template-columns: minmax(500px, 1.25fr) minmax(320px, .75fr); }
.project-layout-reverse .project-copy { order: 2; }
.project-layout-reverse .project-visual { order: 1; }
.project-domain { margin: 0 0 28px; font: 11px var(--mono); color: var(--blue); }
.project-copy h3 { margin: 0 0 34px; font-size: clamp(34px, 4vw, 62px); line-height: 1.02; letter-spacing: -.055em; font-weight: 600; }
.project-copy > p:not(.project-domain) { max-width: 660px; color: #5b5b56; line-height: 1.72; font-size: 15px; }
.project-copy .project-lead { color: var(--ink) !important; font-size: clamp(16px, 1.4vw, 20px) !important; }
.project-facts { list-style: none; margin: 36px 0; padding: 0; border-top: 1px solid var(--line); }
.project-facts li { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.project-facts span { font: 9px var(--mono); color: #575752; }
.project-link { display: inline-flex; gap: 30px; color: var(--blue-dark); }
.project-visual { position: relative; min-width: 0; padding: clamp(30px, 5vw, 80px) clamp(24px, 4vw, 60px); color: var(--ink); text-decoration: none; overflow: hidden; transform-style: preserve-3d; perspective: 1000px; transition: transform .16s ease-out; }
.visual-orion { background: #9dd0ff; }
.visual-rjk { background: #f2c653; }
.visual-blogs { background: #b7ff45; }
.visual-label { position: absolute; left: 14px; top: 14px; font-size: 8px; }
.visual-arrow { position: absolute; width: 42px; height: 42px; display: grid; place-items: center; right: 14px; top: 12px; border: 1px solid currentColor; border-radius: 50%; transition: background .2s, color .2s, transform .2s; }
.project-visual:hover .visual-arrow { background: var(--ink); color: white; transform: rotate(45deg); }
.browser-frame { position: relative; background: white; border: 1px solid rgba(17,17,15,.7); box-shadow: 16px 18px 0 rgba(17,17,15,.15); transform: translateZ(25px); }
.browser-bar { height: 29px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid #dad9d4; background: #f5f5f2; }
.browser-bar i { width: 6px; height: 6px; background: #d0d0cc; border-radius: 50%; }
.browser-bar span { margin-left: auto; margin-right: auto; font: 7px var(--mono); color: #444440; }
.browser-frame img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
.results { display: grid; grid-template-columns: repeat(3, 1fr); margin: 34px 0; border: 1px solid var(--line); }
.results div { padding: 17px 14px; border-right: 1px solid var(--line); }
.results div:last-child { border-right: 0; }
.results strong { display: block; font-size: clamp(23px, 2.5vw, 38px); letter-spacing: -.05em; color: var(--blue); }
.results span { display: block; margin-top: 7px; font: 8px/1.5 var(--mono); text-transform: uppercase; color: #65655f; }

.hermes { background: var(--ink); color: white; }
.hermes-intro { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(50px, 10vw, 150px); align-items: end; padding-bottom: 80px; }
.hermes-intro h2 { max-width: 980px; margin: 55px 0 0; font-size: clamp(48px, 7vw, 100px); line-height: .97; letter-spacing: -.065em; font-weight: 500; }
.hermes-intro > div:last-child p { margin: 0 0 20px; color: #acaca5; line-height: 1.75; font-size: 15px; }
.ops-shell { padding-top: 0; padding-bottom: 80px; }
.ops-topbar { display: grid; grid-template-columns: 1fr auto 1fr; padding: 14px 16px; background: #20201d; border: 1px solid #3e3e39; color: #9b9b94; font-size: 9px; }
.ops-topbar span:nth-child(2) { color: var(--acid); }
.ops-topbar span:last-child { text-align: right; }
.ops-layout { display: grid; grid-template-columns: .43fr .57fr; min-height: 570px; border-left: 1px solid #3e3e39; border-right: 1px solid #3e3e39; }
.workflow-tabs { display: grid; align-content: start; border-right: 1px solid #3e3e39; }
.workflow-tabs button { width: 100%; border: 0; border-bottom: 1px solid #3e3e39; background: transparent; color: #b7b7af; cursor: pointer; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 23px 18px; text-align: left; font-size: 12px; transition: background .18s, color .18s; }
.workflow-tabs button span, .workflow-tabs button i { font: 8px var(--mono); font-style: normal; }
.workflow-tabs button i { color: #94948c; }
.workflow-tabs button:hover, .workflow-tabs button:focus-visible { background: #242421; color: white; }
.workflow-tabs button[aria-selected="true"] { background: var(--blue); color: white; }
.workflow-tabs button[aria-selected="true"] i { color: white; }
.workflow-panel { padding: clamp(32px, 5vw, 72px); outline: 0; }
.panel-head { display: flex; justify-content: space-between; color: #878780; font: 9px var(--mono); letter-spacing: .08em; }
.panel-head span:last-child { color: var(--acid); }
.workflow-panel h3 { margin: 65px 0 24px; font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
.workflow-panel > p { max-width: 720px; color: #a8a8a1; font-size: 14px; line-height: 1.75; }
.panel-output { margin-top: 42px; padding: 20px; background: #1d1d1b; border: 1px solid #3e3e39; }
.panel-output > span, .panel-boundary span { font: 8px var(--mono); color: #999990; letter-spacing: .08em; }
.panel-output ul { list-style: none; margin: 22px 0 0; padding: 0; }
.panel-output li { padding: 10px 0 10px 22px; position: relative; border-top: 1px solid #33332f; color: #d4d4ce; font-size: 12px; }
.panel-output li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }
.panel-boundary { margin-top: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.panel-boundary p { margin: 0; color: #979790; font-size: 11px; }
.system-strip { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid #3e3e39; color: #85857e; font-size: 8px; }
.system-strip span { padding: 15px 10px; text-align: center; border-right: 1px solid #3e3e39; }
.system-strip span:last-child { border-right: 0; }
.hermes-statement { border-top: 1px solid #3e3e39; }
.hermes-statement > p { margin: 0 0 30px; font: 10px var(--mono); color: var(--acid); text-transform: uppercase; }
.hermes-statement h3 { max-width: 1200px; margin: 0 0 60px; font-size: clamp(38px, 5.5vw, 82px); line-height: 1.06; letter-spacing: -.055em; font-weight: 500; color: #b9b9b3; }
.button-light { background: white; color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: var(--acid); }

.about { background: var(--paper-bright); }
.about-grid { display: grid; grid-template-columns: 1fr .7fr; gap: clamp(70px, 13vw, 190px); margin-top: 64px; }
.about h2 { margin: 0; max-width: 800px; font-size: clamp(48px, 7vw, 104px); line-height: .95; letter-spacing: -.07em; font-weight: 600; }
.about-copy > p { margin: 0 0 26px; color: #4f4f4a; font-size: 16px; line-height: 1.8; }
.about-facts { margin: 52px 0 0; border-top: 1px solid var(--line); }
.about-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-facts dt { font: 8px var(--mono); color: #6e6e68; }
.about-facts dd { margin: 0; font-size: 11px; }
.contact { background: var(--blue); color: white; }
.contact .section-label { color: rgba(255,255,255,.65); }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: end; margin-top: 70px; }
.contact h2 { margin: 0 0 28px; max-width: 900px; font-size: clamp(50px, 7.5vw, 112px); line-height: .92; letter-spacing: -.07em; font-weight: 600; }
.contact p { max-width: 590px; margin: 0; color: rgba(255,255,255,.75); line-height: 1.7; }
.email-link { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.6); padding: 16px 0; text-decoration: none; font-size: clamp(17px, 2vw, 30px); letter-spacing: -.03em; }
.email-link i { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid white; border-radius: 50%; font-style: normal; transition: transform .2s, background .2s, color .2s; }
.email-link:hover i { transform: rotate(45deg); background: white; color: var(--blue); }
.footer { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 22px var(--pad); background: var(--blue); color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.25); font: 9px var(--mono); text-transform: uppercase; }
.footer span:nth-child(2) { text-align: center; }
.footer span:last-child { text-align: right; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.hermes :focus-visible, .contact :focus-visible { outline-color: var(--acid); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 145px; }
  .hero-console { width: min(100%, 680px); justify-self: end; }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .project-layout, .project-layout-reverse { grid-template-columns: 1fr; }
  .project-layout-reverse .project-copy, .project-layout-reverse .project-visual { order: initial; }
  .project-copy { max-width: 760px; }
  .project-visual { max-width: 900px; }
  .hermes-intro { grid-template-columns: 1fr; }
  .hermes-intro > div:last-child { max-width: 640px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { max-width: 720px; margin-left: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { top: 8px; left: 8px; right: 8px; grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { padding-top: 120px; gap: 60px; }
  .hero h1 { font-size: clamp(44px, 14vw, 72px); }
  .hero-bottom { grid-template-columns: 1fr; gap: 30px; }
  .hero-console { min-height: auto; width: calc(100% - 10px); box-shadow: 10px 10px 0 var(--blue); }
  .console-clock span { font-size: 36px; }
  .console-foot span:last-child { display: none; }
  .section-pad { padding-top: 90px; padding-bottom: 90px; }
  .manifesto-text { margin: 44px 0 60px; }
  .capability-line span { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; margin-bottom: 70px; }
  .section-heading > p:last-child { grid-column: 1; }
  .project-meta { grid-template-columns: 32px 1fr; }
  .project-meta span:last-child { display: none; }
  .project-layout, .project-layout-reverse { gap: 44px; }
  .project-visual { padding: 55px 18px 24px; }
  .browser-frame { box-shadow: 8px 9px 0 rgba(17,17,15,.15); }
  .results { grid-template-columns: 1fr; }
  .results div { border-right: 0; border-bottom: 1px solid var(--line); }
  .results div:last-child { border-bottom: 0; }
  .ops-topbar { grid-template-columns: 1fr auto; }
  .ops-topbar span:last-child { display: none; }
  .ops-layout { grid-template-columns: 1fr; }
  .workflow-tabs { border-right: 0; grid-template-columns: 1fr 1fr; }
  .workflow-tabs button { grid-template-columns: 24px 1fr; padding: 15px 12px; }
  .workflow-tabs button i { display: none; }
  .workflow-panel { border-top: 1px solid #3e3e39; }
  .workflow-panel h3 { margin-top: 42px; }
  .system-strip { grid-template-columns: 1fr 1fr; }
  .system-strip span { border-bottom: 1px solid #3e3e39; }
  .about-copy { margin-left: 0; }
  .footer { grid-template-columns: 1fr auto; gap: 18px; }
  .footer span:nth-child(2) { display: none; }
}

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