@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  font-family: Inter, system-ui, sans-serif;
  color: var(--cac-text);
  background: var(--cac-midnight);
  font-synthesis: none;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--cac-marineHover); outline-offset: 5px; border-radius: 3px; }
::selection { background: var(--cac-marine); color: var(--cac-ink); }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 12px 16px; background: var(--cac-marine); color: var(--cac-ink); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--cac-raised); }
.header-inner, .intro-inner, .section, .footer-inner { max-width: 1320px; margin-inline: auto; }
.header-inner { min-height: 104px; padding: 15px clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand-link { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 16px; margin: -16px; }
.brand-link img { display: block; width: 260px; height: auto; }
nav { display: flex; align-items: center; gap: clamp(16px, 2.7vw, 38px); }
nav a { font-size: .92rem; font-weight: 550; text-decoration: none; color: var(--cac-muted); transition: color .18s ease; }
nav a:hover, nav a:focus-visible { color: var(--cac-text); }

.intro { overflow: hidden; }
.intro-inner { position: relative; min-height: 590px; isolation: isolate; }
.intro-inner::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #121130 0%, #121130F5 18%, #121130DC 37%, #12113086 59%, #12113000 88%); }
.intro-copy { position: relative; z-index: 2; max-width: 710px; padding: clamp(84px, 9vw, 138px) 38px 108px clamp(20px, 4vw, 64px); }
.hero-side-note { position: absolute; z-index: 2; right: clamp(20px, 4vw, 64px); bottom: 27px; display: flex; align-items: center; gap: 11px; margin: 0; color: var(--cac-muted); font: 500 .72rem/1.4 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero-side-note span { width: 24px; height: 1px; background: var(--cac-marine); }
.eyebrow { margin: 0 0 22px; color: var(--cac-marine); font: 500 .78rem/1.5 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; vertical-align: middle; width: 24px; height: 1px; margin-right: 10px; background: var(--cac-marine); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 23px; font-size: clamp(3.2rem, 5.5vw, 5.25rem); line-height: 1.02; font-weight: 660; letter-spacing: -.055em; white-space: nowrap; }
.intro-description { max-width: 27ch; margin-bottom: 32px; color: var(--cac-text); font-size: clamp(1.18rem, 1.7vw, 1.48rem); line-height: 1.52; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 24px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 50px; padding: 12px 18px; font-size: .94rem; font-weight: 650; text-decoration: none; line-height: 1.25; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button-primary { color: var(--cac-ink); background: var(--cac-marine); border: 1px solid var(--cac-marine); border-radius: 5px; }
.button-primary:hover { background: var(--cac-marineHover); border-color: var(--cac-marineHover); }
.button-text { padding-inline: 0; color: var(--cac-marine); }
.button-text:hover { color: var(--cac-marineHover); }
.button span { font-size: 1.15em; font-weight: 400; }
.circuit-frame { position: relative; overflow: hidden; background: var(--cac-midnight); touch-action: pan-y; }
.hero-circuit { position: absolute; z-index: 0; inset: 0; }
.circuit-art, .circuit-effect { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.circuit-art { background: var(--cac-midnight) url("assets/circuit/circuit-dense-static.svg") center center / cover no-repeat; }
.hero-circuit .circuit-art { background-size: cover; }

.section { padding: 96px clamp(20px, 4vw, 64px); scroll-margin-top: 20px; }
.projects-section { border-top: 1px solid var(--cac-raised); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.section-heading .eyebrow, .section-heading-column .eyebrow { margin-bottom: 14px; }
h2 { margin-bottom: 0; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 625; letter-spacing: -.045em; line-height: 1.1; }
.section-note { max-width: 240px; margin-bottom: 3px; color: var(--cac-muted); font-size: .95rem; line-height: 1.55; text-align: right; }
.project-list { display: grid; gap: 24px; }
.project-panel { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); overflow: hidden; min-height: 510px; background: var(--cac-surface); border: 1px solid var(--cac-raised); border-radius: 12px; box-shadow: 0 24px 60px #08091F2B; }
.project-main { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(32px, 4vw, 58px); }
.project-index { margin-bottom: 54px; color: var(--cac-marine); font: 500 .76rem/1.5 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.project-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 18px; width: 100%; }
h3 { margin-bottom: 10px; font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 610; letter-spacing: -.038em; line-height: 1.15; }
.status { display: inline-block; flex: 0 0 auto; padding: 7px 10px; color: var(--cac-marine); border: 1px solid #587BA8; border-radius: 100px; font: 500 .72rem/1.4 "JetBrains Mono", monospace; white-space: nowrap; }
.project-kind, .endorsement { color: var(--cac-muted); font: 500 .77rem/1.5 "JetBrains Mono", monospace; }
.project-kind { margin-bottom: 25px; }
.project-description { max-width: 58ch; margin-bottom: 32px; font-size: clamp(1.04rem, 1.5vw, 1.17rem); line-height: 1.7; }
.endorsement { margin-top: auto; margin-bottom: 0; color: var(--cac-marine); }
.project-media { min-height: 510px; border-left: 1px solid var(--cac-raised); background: var(--cac-midnight); isolation: isolate; }
.project-media::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(circle at 62% 52%, #292D5322, #121130B0 74%), linear-gradient(155deg, #12113000, #121130C0); }
.project-media .circuit-art { opacity: .9; }
.project-media figure { margin: 0; }
.media-label, .media-caption { position: absolute; z-index: 5; left: 28px; margin: 0; color: var(--cac-keyLegend); font: 500 .7rem/1.5 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.media-label { top: 26px; }
.media-caption { bottom: 24px; color: var(--cac-muted); }
.map-credit { position: absolute; z-index: 6; right: 26px; top: 26px; color: var(--cac-muted); font: 500 .65rem/1.5 "JetBrains Mono", monospace; text-decoration: none; }
.map-credit:hover, .map-credit:focus-visible { color: var(--cac-text); text-decoration: underline; }
.phone-frame { position: absolute; z-index: 4; width: 214px; height: 430px; padding: 10px; overflow: hidden; border: 2px solid #69749E; border-radius: 32px; background: #0A0B1B; box-shadow: 0 3px 0 #A5B4D355 inset, 0 26px 45px #07091FC0, 0 0 0 5px #13162D; transform: rotate(6deg); pointer-events: none; }
.phone-camera { position: absolute; z-index: 2; top: 14px; left: 50%; width: 55px; height: 10px; border-radius: 10px; background: #080912; transform: translateX(-50%); }
.phone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 24px; background: #111727; }
.phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.relay-media { min-height: 560px; }
.cruise-media { min-height: 540px; }
.relay-voice-phone { top: 55px; right: 8%; transform: rotate(5deg); }
.relay-chats-phone { z-index: 3; top: 88px; left: 8%; width: 190px; height: 383px; transform: rotate(-8deg); }
.relay-media .phone-screen { padding-top: 18px; background: #fff; }
.relay-media .phone-screen img { object-fit: contain; object-position: center top; }
.cruise-phone { top: 45px; right: 8%; transform: rotate(5deg); }
.cruise-guide-phone { z-index: 3; top: 88px; left: 8%; width: 190px; height: 383px; transform: rotate(-8deg); }
.cruise-media .phone-screen { padding-top: 15px; background: #072638; }
.cruise-media .phone-screen img { object-position: center top; }
.tripty-phone { top: 43px; right: 16%; }
.tripty-phone .phone-screen img { object-position: center; }
.tripty-source { position: absolute; z-index: 3; top: 146px; left: 24px; width: 46%; padding: 5px; overflow: hidden; border: 1px solid #7983AE; border-radius: 7px; background: #15182F; box-shadow: 0 16px 32px #08091F9E; transform: rotate(-5deg); pointer-events: none; }
.tripty-source img { display: block; width: 100%; height: auto; border-radius: 2px; }
.probe-phone { top: 45px; right: 8%; transform: rotate(5deg); }
.probe-phone .phone-screen img { object-position: center top; }
.hardware-photo { position: absolute; z-index: 3; padding: 5px; overflow: hidden; border: 1px solid #7983AE; border-radius: 9px; background: #15182F; box-shadow: 0 16px 30px #08091F9E; pointer-events: none; }
.hardware-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.hardware-close { top: 110px; left: 22px; width: 49%; height: 177px; transform: rotate(-5deg); }
.hardware-wide { bottom: 70px; left: 51px; width: 44%; height: 133px; transform: rotate(4deg); }

.services-section { border-top: 1px solid var(--cac-raised); }
.services-copy h3 { max-width: 22ch; margin-bottom: 24px; }
.services-copy p { max-width: 58ch; margin-bottom: 22px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.65; }
.services-copy .button { margin-top: 6px; }
.about-portrait { display: block; width: min(100%, 120px); height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 40%; margin-top: 12px; border: 1px solid var(--cac-raised); border-radius: 12px; }
.about-section { max-width: none; background: var(--cac-surface); border-block: 1px solid var(--cac-raised); }
.services-inner, .about-inner, .contact-inner { max-width: 1192px; margin-inline: auto; display: grid; grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 120px); }
.about-inner { align-items: center; }
.about-inner .eyebrow { margin-bottom: 6px; }
.about-copy { max-width: 62ch; margin-bottom: 0; font-size: clamp(1.18rem, 2vw, 1.55rem); line-height: 1.65; letter-spacing: -.015em; }
.contact-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, .48fr); gap: clamp(36px, 7vw, 100px); }
.contact-copy { max-width: 42ch; margin: 28px 0 0; font-size: clamp(1.16rem, 1.8vw, 1.42rem); line-height: 1.6; }
.contact-details { align-self: end; padding: 28px; background: var(--cac-surface); border: 1px solid var(--cac-raised); border-radius: 8px; }
.contact-label { margin-bottom: 10px; color: var(--cac-muted); font: 500 .76rem/1.5 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.email-address { margin-bottom: 22px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 550; overflow-wrap: anywhere; user-select: text; }
.contact-details .button { width: 100%; }
.site-footer { border-top: 1px solid var(--cac-raised); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px clamp(20px, 4vw, 64px); }
.footer-inner p, .footer-inner a { margin: 0; color: var(--cac-muted); font-size: .82rem; line-height: 1.5; }
.footer-inner a { text-decoration: none; white-space: nowrap; }
.footer-inner a:hover { color: var(--cac-text); }

@media (max-width: 900px) {
  .intro-inner { min-height: 510px; }
  .intro-copy { padding: 76px clamp(20px, 4vw, 64px) 85px; }
  h1 { max-width: none; }
  .intro-description { max-width: 38ch; }
  .project-panel { grid-template-columns: 1fr; }
  .project-main { min-height: 380px; }
  .project-index { margin-bottom: 35px; }
  .project-media { min-height: 510px; border-left: 0; border-top: 1px solid var(--cac-raised); }
  .relay-media { min-height: 560px; }
  .cruise-media { min-height: 540px; }
  .services-inner, .about-inner { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 650px) {
  .header-inner { min-height: 0; display: block; padding-top: 20px; padding-bottom: 14px; }
  .brand-link { margin-bottom: 10px; }
  nav { justify-content: space-between; max-width: 330px; gap: 12px; padding-top: 10px; }
  nav a { padding: 6px 0; }
  .intro-copy { padding-block: 62px 60px; }
  .intro-inner { min-height: 485px; }
  .intro-inner::before { background: linear-gradient(90deg, #121130F7 0%, #121130DB 65%, #12113094 100%); }
  .hero-side-note { bottom: 16px; }
  h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .section { padding-block: 72px; }
  .section-heading { display: block; }
  .section-note { margin: 14px 0 0; text-align: left; }
  .project-main { min-height: 0; padding: 29px 23px 36px; }
  .project-index { margin-bottom: 24px; }
  .project-heading { display: block; }
  .status { margin: 5px 0 17px; }
  .project-kind { margin-bottom: 20px; }
  .project-description { margin-bottom: 25px; }
  .project-media { min-height: 430px; }
  .relay-media, .cruise-media { min-height: 475px; }
  .tripty-media { min-height: 490px; }
  .media-label, .media-caption { left: 16px; }
  .media-label { top: 15px; }
  .media-caption { bottom: 15px; font-size: .62rem; }
  .map-credit { top: auto; right: 16px; bottom: 35px; font-size: .56rem; }
  .phone-frame { width: 176px; height: 355px; padding: 8px; border-radius: 27px; }
  .phone-screen { border-radius: 20px; }
  .tripty-phone { top: 37px; right: 9%; }
  .tripty-source { top: 142px; left: 11px; width: 49%; }
  .relay-voice-phone { top: 48px; right: 8%; }
  .relay-chats-phone { top: 82px; left: 10%; width: 145px; height: 292px; }
  .cruise-phone { top: 43px; right: 6%; }
  .cruise-guide-phone { top: 82px; left: 8%; width: 145px; height: 292px; }
  .probe-phone { top: 35px; right: 4%; }
  .hardware-close { top: 88px; left: 10px; width: 51%; height: 134px; }
  .hardware-wide { bottom: 58px; left: 18px; width: 48%; height: 103px; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-details { padding: 23px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .circuit-effect { display: none; }
}
@media (max-width: 380px) {
  .project-media { min-height: 475px; }
  .tripty-phone, .probe-phone { top: 44px; }
}
@media (max-width: 330px) {
  h1 { font-size: clamp(2.4rem, 13.75vw, 2.75rem); }
}
