:root {
  --black: #050505;
  --ink: #0a0a0a;
  --white: #f2f2ee;
  --muted: #a5a5a0;
  --line: rgba(255,255,255,.17);
  --rail: 100px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
body::selection { background: var(--white); color: var(--black); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img, canvas { max-width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 1rem; left: 1rem; padding: .75rem 1rem; background: white; color: black; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .08; mix-blend-mode: screen;
  background-image: url("assets/noise.svg"); background-size: 180px 180px;
}
.cursor-light { position: fixed; z-index: 0; width: 34rem; height: 34rem; border-radius: 50%; pointer-events: none; opacity: .13; filter: blur(55px); background: radial-gradient(circle, #fff 0, transparent 67%); transform: translate(-50%,-50%); }

.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: var(--rail); padding: 22px 18px 18px; border-right: 1px solid var(--line); background: rgba(5,5,5,.72); backdrop-filter: blur(18px);
  display: flex; flex-direction: column;
}
.rail__mark { font-size: 21px; font-weight: 700; letter-spacing: -.09em; }
.rail__toggle { display: none; }
.rail__nav { display: grid; gap: 24px; margin-top: 64px; }
.rail__nav a { display: block; text-transform: uppercase; font-size: 8px; letter-spacing: .08em; opacity: .66; transition: opacity .2s, transform .2s; }
.rail__nav a:hover, .rail__nav a:focus-visible { opacity: 1; transform: translateX(3px); }
.rail__nav strong, .rail__nav span { display: block; }
.rail__nav strong { font-size: 9px; font-weight: 500; }
.rail__nav span { margin-top: 2px; color: var(--muted); font-size: 7px; }
.rail__meter { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 8px; }
.rail__meter small, .rail__meter b { display: block; text-transform: uppercase; font-size: 7px; font-weight: 400; letter-spacing: .06em; }
.rail__meter b { font-size: 8px; margin-top: 2px; }
.meter-ring { position: relative; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; }
.meter-ring::before { content: ""; position: absolute; inset: 2px; border-radius: inherit; border: 3px solid white; border-right-color: transparent; transform: rotate(30deg); }
.meter-ring i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: white; right: -2px; top: 8px; box-shadow: 0 0 10px white; }

.topbar { position: fixed; z-index: 45; top: 0; left: var(--rail); right: 0; height: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 36px; padding: 0 28px; pointer-events: none; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.topbar > * { pointer-events: auto; }
.topbar__status { display: none; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: white; display: inline-block; box-shadow: 0 0 12px white; }

main, .footer { margin-left: var(--rail); }
.panel, .section { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.section { min-height: 78vh; }
.index, .eyebrow { margin: 0 0 28px; text-transform: uppercase; font-size: 8px; letter-spacing: .14em; color: #c4c4bf; }
.line-link { display: inline-flex; align-items: center; gap: 55px; padding: 0 0 8px; border-bottom: 1px solid rgba(255,255,255,.45); text-transform: uppercase; font-size: 8px; letter-spacing: .12em; transition: gap .35s var(--ease), border-color .2s; }
.line-link:hover, .line-link:focus-visible { gap: 72px; border-color: white; }

.hero { min-height: 100svh; background: #050505; isolation: isolate; }
#field-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero__wash { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,5,5,.88) 0, rgba(5,5,5,.35) 47%, rgba(5,5,5,.52) 100%), radial-gradient(circle at 76% 28%, rgba(255,255,255,.14), transparent 30%); }
.hero__content { position: absolute; inset: 70px 42px 38px 42px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 0 0 20px; font-weight: 300; line-height: .69; letter-spacing: -.085em; font-size: clamp(6rem, 16vw, 17rem); white-space: nowrap; }
.hero h1 span { display: block; }
.hero h1 span:last-child { margin-left: 18vw; }
.hero__statement { max-width: 420px; margin: 24px 0 42px 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.3vw, 2.2rem); line-height: 1.04; }
.hero__actions { display: flex; align-items: center; gap: 38px; margin-left: 10px; }
.text-link { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.play-dot { font-size: 6px; margin-left: 7px; }
.build-card { position: absolute; z-index: 3; right: 28px; bottom: 18%; width: 142px; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.build-card p { color: var(--muted); margin: 0 0 8px; }
.build-card h2 { font-size: 9px; font-weight: 500; margin: 0 0 8px; }
.build-card ul { list-style: none; margin: 0 0 15px; padding: 0; color: #d0d0cc; }
.build-card a { display: flex; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--line); }
.scroll-cue { position: absolute; right: 28px; bottom: 22px; display: flex; align-items: center; gap: 18px; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.scroll-cue span { display: block; width: 7px; height: 7px; border-radius: 50%; background: white; animation: pulse 1.8s infinite; }

.projects { display: grid; grid-template-columns: 17% 1fr; min-height: 75vh; }
.section__lead { padding: 28px 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.section__lead h2 { margin: 4px 0 auto; font: 400 clamp(2.3rem,4.8vw,5rem)/.93 Georgia, serif; }
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 0; }
.project-card { position: relative; min-width: 0; border-right: 1px solid var(--line); background: #080808; overflow: hidden; }
.project-card:last-child { border-right: 0; }
.project-card__media { height: 69%; min-height: 370px; background-size: cover; background-position: center; filter: grayscale(1) contrast(1.08); transition: transform 1s var(--ease), filter .4s; }
.project-card:hover .project-card__media { transform: scale(1.035); filter: grayscale(1) contrast(1.17) brightness(1.08); }
.media-lux {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/esp32-s3.jpg");
}

.media-bgia {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/rf-lab.jpg");
}

.media-agro {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.45)),
    url("assets/lab-tools.jpg");
}

.project-card__body { position: absolute; inset: auto 0 0; min-height: 31%; padding: 21px 30px 20px; background: linear-gradient(180deg, transparent 0, rgba(0,0,0,.92) 20%); }
.project-card__number { position: absolute; right: 18px; top: 22px; font-size: 8px; color: var(--muted); }
.project-card h3 { max-width: 86%; margin: 7px 0 6px; font-size: clamp(1.05rem,1.8vw,1.8rem); line-height: 1; font-weight: 400; text-transform: uppercase; }
.project-card__body > p:not(.project-card__number) { font-size: 8px; text-transform: uppercase; letter-spacing: .08em; color: #c7c7c2; }
.project-card dl { margin: 12px 0 0; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.project-card dl div { display: flex; gap: 9px; margin-top: 3px; }
.project-card dt { color: var(--muted); }
.project-card dd { margin: 0; }
.project-card__body > a { position: absolute; right: 28px; bottom: 22px; font-size: 16px; }

.approach { min-height: 58vh; display: grid; grid-template-columns: 36% 19% 45%; }
.approach > div { padding: 28px 34px; border-right: 1px solid var(--line); }
.approach > div:last-child { border-right: 0; }
.approach__copy h2 { margin: 0; font: 400 clamp(2.5rem,5.8vw,6.3rem)/.85 Georgia, serif; letter-spacing: -.05em; }
.approach__copy h2 span { font-family: Helvetica, Arial, sans-serif; font-size: .55em; }
.approach__note { display: flex; flex-direction: column; justify-content: center; font: 400 .83rem/1.35 Georgia, serif; }
.approach__note p { max-width: 230px; }
.approach__note p + p { margin-top: 28px; }
.approach__note .line-link { margin-top: 32px; align-self: flex-start; }
.approach__instrument { position: relative; min-height: 480px; background: radial-gradient(circle at 56% 50%, rgba(255,255,255,.11), transparent 35%), linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px); background-size: auto, 40px 40px, 40px 40px; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; transform: translate(-50%,-50%); animation: breathe 5s ease-in-out infinite; }
.orbit--1 { width: 140px; height: 140px; }
.orbit--2 { width: 240px; height: 240px; animation-delay: -.8s; }
.orbit--3 { width: 360px; height: 360px; animation-delay: -1.6s; }
.field-node { position: absolute; top: 50%; width: 22px; height: 22px; border: 1px solid white; border-radius: 50%; box-shadow: 0 0 30px rgba(255,255,255,.45); transform: translate(-50%,-50%); }
.field-node::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: white; }
.field-node--a { left: 36%; }.field-node--b { left: 50%; }.field-node--c { left: 64%; }
.field-axis { position: absolute; background: rgba(255,255,255,.25); }
.field-axis--x { left: 8%; right: 8%; height: 1px; top: 50%; }
.field-axis--y { top: 8%; bottom: 8%; width: 1px; left: 50%; }
.instrument-label { position: absolute; font-size: 7px; text-transform: uppercase; letter-spacing: .09em; color: #b8b8b2; }
.label-input { top: 6%; left: 52%; }.label-output { right: 5%; top: 52%; }.label-pattern { bottom: 5%; left: 52%; }

.experiment { min-height: 52vh; display: grid; grid-template-columns: 27% 20% 53%; }
.experiment > div { padding: 28px 34px; border-right: 1px solid var(--line); }
.experiment > div:last-child { border-right: 0; }
.experiment__title { display: flex; flex-direction: column; }
.experiment__title h2 { margin: 0 0 auto; font: 400 clamp(2.4rem,4.8vw,5rem)/.88 Georgia, serif; letter-spacing: -.04em; }
.experiment__title .line-link { align-self: flex-start; }
.experiment__facts { display: flex; flex-direction: column; justify-content: center; font: 400 .86rem/1.34 Georgia, serif; }
.experiment__facts ul { list-style: none; padding: 0; margin: 28px 0; font: 400 8px/1.6 Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.legend { margin-top: auto; display: flex; gap: 18px; font: 7px Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legend span::after { content: ""; display: block; width: 44px; height: 2px; margin-top: 7px; background: currentColor; }
.signal-stage { position: relative; min-height: 480px; background: radial-gradient(circle, rgba(255,255,255,.06), transparent 60%); }
#signal-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.play-button { position: absolute; right: 24px; bottom: 24px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid white; background: rgba(0,0,0,.4); cursor: pointer; }

.connection { display: grid; grid-template-columns: 28% 22% 50%; min-height: 50vh; }
.connection > div { padding: 28px 34px; border-right: 1px solid var(--line); }
.connection > div:last-child { border-right: 0; }
.connection__copy { display: flex; flex-direction: column; }
.connection__copy h2 { margin: 0 0 auto; font: 400 clamp(2.5rem,5vw,5.4rem)/.9 Georgia, serif; letter-spacing: -.045em; }
.connection__copy .line-link { align-self: flex-start; }
.connection__note { display: flex; justify-content: center; flex-direction: column; font: .95rem/1.4 Georgia, serif; }
.connection__visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 0 !important; min-height: 480px; }
.connection__machine { background: url("assets/agro-close.svg") center/cover no-repeat; filter: grayscale(1); }
.connection__space { position: relative; overflow: hidden; background: radial-gradient(circle at 58% 38%, #eee 0 1px, transparent 2px), radial-gradient(circle at 33% 64%, #eee 0 1px, transparent 2px), radial-gradient(circle at 70% 72%, #eee 0 1px, transparent 2px), radial-gradient(circle at 52% 44%, rgba(255,255,255,.45), transparent 25%), #030303; background-size: 70px 70px, 90px 90px, 120px 120px, auto, auto; }
.connection__space::before { content: ""; position: absolute; width: 65%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; left: -18%; top: 20%; }
.connection__space::after { content: "+"; position: absolute; left: 18%; top: 49%; font-size: 34px; font-weight: 200; }

.notes { padding: 9vw 7vw 8vw; background: linear-gradient(180deg, #050505, #0b0b0b); }
.notes header { display: grid; grid-template-columns: 20% 1fr; gap: 5vw; margin-bottom: 8vw; }
.notes header h2 { max-width: 950px; margin: 0; font: 400 clamp(3rem,7vw,8rem)/.9 Georgia, serif; letter-spacing: -.055em; }
.notes__stream { display: grid; grid-template-columns: repeat(4, minmax(260px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); overflow-x: auto; scroll-snap-type: x mandatory; }
.note-card { min-height: 350px; padding: 24px; background: #060606; display: flex; flex-direction: column; scroll-snap-align: start; }
.note-card p, .note-card span { font-size: 7px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.note-card h3 { margin: auto 0; font: 400 1.7rem/1.06 Georgia, serif; }
.infinite-message { margin: 34px 0 0; text-align: center; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .16em; }

.available { display: grid; grid-template-columns: 1fr 44%; min-height: 72vh; }
.available > div { padding: 8vw 6vw; border-right: 1px solid var(--line); }
.available > div:last-child { border-right: 0; }
.available h2 { max-width: 980px; margin: 0; font: 400 clamp(3.2rem,7vw,8rem)/.88 Georgia, serif; letter-spacing: -.055em; }
.available__actions { display: flex; flex-direction: column; justify-content: flex-end; padding-left: 0 !important; padding-right: 0 !important; }
.available__actions a { display: flex; justify-content: space-between; gap: 24px; padding: 28px 38px; border-top: 1px solid var(--line); font-size: clamp(1rem,1.7vw,1.7rem); transition: background .25s, color .25s, padding-left .25s; }
.available__actions a:last-child { border-bottom: 1px solid var(--line); }
.available__actions a:hover, .available__actions a:focus-visible { background: var(--white); color: var(--black); padding-left: 50px; }

.footer { min-height: 52px; display: grid; grid-template-columns: repeat(6,1fr); border-top: 1px solid var(--line); }
.footer span { display: flex; align-items: center; padding: 0 20px; border-right: 1px solid var(--line); min-height: 52px; font-size: 7px; text-transform: uppercase; letter-spacing: .11em; }
.footer span:last-child { border-right: 0; }

.search { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: var(--rail) 8vw 5vw calc(var(--rail) + 8vw); border: 0; background: rgba(5,5,5,.96); color: white; }
.search::backdrop { background: rgba(0,0,0,.8); }
.search__bar { position: relative; }
.search label { display: block; font: 400 clamp(2.4rem,6vw,7rem)/1 Georgia, serif; margin-bottom: 4vw; }
.search input { width: 100%; border: 0; border-bottom: 1px solid white; padding: 14px 0; background: transparent; color: white; font-size: clamp(1.1rem,2vw,2rem); outline: none; }
.search button { position: absolute; right: 0; top: 0; border: 0; background: none; font-size: 42px; cursor: pointer; }
.search__results { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: 4vw; background: var(--line); }
.search__result { background: #080808; padding: 22px; min-height: 160px; }
.search__result small { text-transform: uppercase; color: var(--muted); }
.search__result h3 { font: 400 1.5rem Georgia, serif; }

@keyframes pulse { 50% { transform: scale(.55); opacity: .45; } }
@keyframes breathe { 50% { transform: translate(-50%,-50%) scale(1.06); opacity: .45; } }

@media (max-width: 1100px) {
  :root { --rail: 76px; }
  .rail { padding-inline: 14px; }
  .projects { grid-template-columns: 22% 1fr; }
  .approach { grid-template-columns: 43% 57%; }
  .approach__note { display: none; }
  .experiment { grid-template-columns: 35% 65%; }
  .experiment__facts { display: none; }
  .connection { grid-template-columns: 36% 64%; }
  .connection__note { display: none; }
  .notes__stream { grid-template-columns: repeat(4, 320px); }
  .footer { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 760px) {
  :root { --rail: 0px; }
  body { font-size: 14px; }
  .cursor-light { display: none; }
  .rail { inset: 0 0 auto 0; width: 100%; height: 58px; padding: 0 16px; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail__mark { position: relative; z-index: 2; }
  .rail__toggle { display: grid; position: relative; z-index: 2; gap: 5px; padding: 10px; border: 0; background: none; }
  .rail__toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; background: white; transition: transform .25s; }
  .rail__toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .rail__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  .rail__nav { position: fixed; inset: 58px 0 auto; max-height: 0; overflow: hidden; margin: 0; padding: 0 16px; background: rgba(5,5,5,.98); transition: max-height .45s var(--ease), padding .45s var(--ease); }
  .rail__nav[data-open="true"] { max-height: 520px; padding-block: 28px; border-bottom: 1px solid var(--line); }
  .rail__nav a { font-size: 12px; }
  .rail__nav strong { font-size: 12px; }
  .rail__nav span { font-size: 9px; }
  .rail__meter { display: none; }
  .topbar { left: 0; top: 58px; height: 38px; padding: 0 16px; }
  .topbar__status { display: block; }
  main, .footer { margin-left: 0; }
  .hero { min-height: 100svh; }
  .hero__content { inset: 100px 18px 150px; justify-content: center; }
  .hero h1 { font-size: 24vw; line-height: .75; white-space: normal; }
  .hero h1 span:last-child { margin-left: 0; }
  .hero__statement { margin-left: 0; max-width: 90%; font-size: 1.5rem; }
  .hero__actions { margin-left: 0; flex-direction: column; align-items: flex-start; gap: 22px; }
  .build-card { left: 18px; right: auto; bottom: 58px; width: calc(100% - 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .build-card p, .build-card h2 { grid-column: 1; }
  .build-card ul { grid-column: 2; grid-row: 1 / span 2; }
  .build-card a { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
  .projects { display: block; }
  .section__lead { min-height: 48vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .projects__grid { display: block; }
  .project-card { min-height: 82vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-card__media { height: 100%; min-height: 82vh; }
  .project-card__body { min-height: 35%; }
  .approach, .experiment, .connection, .available { display: block; }
  .approach > div, .experiment > div, .connection > div, .available > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .approach__copy { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; }
  .approach__instrument, .signal-stage, .connection__visual { min-height: 70vh; }
  .experiment__title, .connection__copy { min-height: 70vh; }
  .connection__visual { grid-template-columns: 1fr 1fr; }
  .notes { padding: 90px 18px 70px; }
  .notes header { display: block; }
  .notes header h2 { margin-top: 30px; }
  .notes__stream { grid-template-columns: repeat(4, 82vw); }
  .available > div { padding: 90px 18px; }
  .available__actions { padding: 0 !important; }
  .available__actions a { padding-inline: 18px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .search { padding: 100px 18px 40px; }
  .search__results { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain, .cursor-light { display: none; }
}
