:root {
  color-scheme: light dark;

  --paper: #f4efdf;
  --paper-2: #e9e0ca;
  --ink: #0d1b24;
  --muted: #50606a;
  --line: #b9ad91;

  --orange: #e55d21;
  --orange-2: #ffb36a;

  --green: #0b7652;
  --green-2: #9bd2a8;

  --sky: #aac9d2;
  --panel: #fbf7eb;

  --shadow: 0 16px 40px rgba(13, 27, 36, 0.12);
  --nav: #f4efdf;

  --page-pad: clamp(22px, 6vw, 90px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111c22;
    --paper-2: #19272d;
    --ink: #f4eedc;
    --muted: #aeb9b8;
    --line: #405158;

    --orange: #ff7842;
    --orange-2: #a94a27;

    --green: #55bf8a;
    --green-2: #1e5e48;

    --sky: #263f49;
    --panel: #17252b;

    --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --nav: #111c22;
  }
}


/* ==================================================
   BASE
================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 0;
  scrollbar-gutter: stable;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  overflow-x: hidden;

  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% - 1px),
      color-mix(in srgb, var(--line) 18%, transparent) 100%
    ),
    var(--paper);

  color: var(--ink);

  font-family:
    "Source Sans 3",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

img,
video,
iframe,
canvas {
  max-width: 100%;
}

::selection {
  background: var(--orange);
  color: #fff;
}


/* ==================================================
   NAV
================================================== */

.nav {
  position: relative;
  z-index: 20;

  min-height: 58px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  gap: 24px;

  padding: 10px var(--page-pad);

  background: var(--nav);

  border-bottom: 1px solid var(--line);
}

.mark {
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 9px;

  text-decoration: none;

  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.pulse {
  width: 8px;
  height: 8px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 0 0
    color-mix(in srgb, var(--green) 35%, transparent);

  animation: none;
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 24px;
}

.navlinks a {
  text-decoration: none;

  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.03em;

  color: var(--muted);

  transition: color 0.16s ease;
}

.navlinks a:hover {
  color: var(--orange);
}

.nav-meta {
  justify-self: end;

  display: flex;
  align-items: center;
  gap: 14px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;

  color: var(--muted);
}

.nav-meta strong {
  color: var(--green);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.wx-temp,
.wx-grid strong,
.instrument-number,
.weather-table strong {
  font-variant-numeric: tabular-nums;
}


/* ==================================================
   HERO
================================================== */

.hero {
  min-height: calc(100vh - 58px);

  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(390px, 0.95fr);

  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;

  padding:
    clamp(54px, 8vw, 110px)
    var(--page-pad);

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-right: 1px solid var(--line);
}

.eyebrow,
.label {
  font:
    600 11px/1.4
    "IBM Plex Mono",
    monospace;

  letter-spacing: 0.12em;

  text-transform: uppercase;

  color: var(--orange);
}

h1 {
  max-width: 100%;

  margin: 20px 0 32px;

  font-family:
    "Barlow Condensed",
    sans-serif;

  font-size:
    clamp(70px, 7.6vw, 118px);

  font-weight: 800;

  line-height: 0.8;

  letter-spacing: -0.045em;

  text-transform: uppercase;
}

.outline {
  color: transparent;

  -webkit-text-stroke:
    1.5px
    var(--ink);
}

.intro {
  max-width: 680px;

  margin: 0;

  font-size:
    clamp(17px, 1.7vw, 22px);

  line-height: 1.45;

  color: var(--muted);
}

.intro strong {
  color: var(--ink);
}

.hero-meta {
  margin-top: 42px;
  padding-top: 19px;

  display: flex;
  flex-wrap: wrap;

  gap: 15px 28px;

  border-top: 1px solid var(--line);

  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.hero-meta span {
  display: flex;
  gap: 7px;
}

.hero-meta b {
  color: var(--green);
}


/* ==================================================
   SKY / WEATHER PANEL
================================================== */

.sky-panel {
  position: relative;

  contain: layout paint style;

  min-width: 0;
  min-height: 610px;

  overflow: hidden;

  background: var(--sky);

  isolation: isolate;
}

#sky {
  position: absolute;
  inset: 0;

  z-index: 0;

  width: 100%;
  height: 100%;
}

.scope {
  position: absolute;
  inset: 10%;

  z-index: 1;

  display: grid;
  place-items: center;

  border:
    1px solid
    color-mix(in srgb, var(--ink) 34%, transparent);

  border-radius: 50%;

  pointer-events: none;
}

.scope::before,
.scope::after {
  content: "";

  position: absolute;

  background:
    color-mix(in srgb, var(--ink) 24%, transparent);
}

.scope::before {
  width: 1px;
  height: 100%;
}

.scope::after {
  width: 100%;
  height: 1px;
}

.scope-dot {
  width: 12px;
  height: 12px;

  border: 2px solid var(--orange);
  border-radius: 50%;

  background: var(--paper);
}

.sky-topline {
  position: absolute;
  z-index: 3;

  top: 20px;
  left: 22px;
  right: 22px;

  display: flex;
  justify-content: space-between;

  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;

  color: var(--ink);
}

.sky-readout {
  position: absolute;
  z-index: 3;

  top: 50%;
  left: 50%;

  width: min(82%, 520px);

  transform: translate(-50%, -50%);

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 28px;

  padding: 22px;

  background:
    color-mix(in srgb, var(--paper) 80%, transparent);

  border:
    1px solid
    color-mix(in srgb, var(--ink) 22%, transparent);
}

.wx-kicker {
  display: block;

  margin-bottom: 4px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;

  color: var(--orange);
}

.wx-temp {
  display: block;

  font:
    700 72px/0.9
    "Barlow Condensed",
    sans-serif;

  letter-spacing: -0.035em;
}

.wx-condition {
  display: block;

  margin-top: 6px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;

  color: var(--muted);
}

.wx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.wx-grid div {
  min-width: 0;

  padding: 11px;

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wx-grid span {
  display: block;

  margin-bottom: 6px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;

  color: var(--muted);
}

.wx-grid strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.sky-caption {
  position: absolute;
  z-index: 3;

  left: 24px;
  right: 24px;
  bottom: 22px;

  display: flex;
  align-items: end;
  justify-content: space-between;

  gap: 20px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.sky-caption strong {
  font:
    700 42px/0.86
    "Barlow Condensed",
    sans-serif;

  text-transform: uppercase;
}

.sky-caption .time {
  text-align: right;
  line-height: 1.7;
}


/* ==================================================
   TICKER
================================================== */

.ticker {
  overflow: hidden;

  contain: layout paint style;

  background: var(--ink);
  color: var(--paper);

  border-bottom: 1px solid var(--ink);
}

.ticker-track {
  width: 100%;

  display: flex;
  flex-wrap: wrap;

  animation: none;

  will-change: auto;
  transform: none;
}

body.is-scrolling .card,
body.is-scrolling .instrument,
body.is-scrolling .contact-social {
  transition: none !important;
}

.tick {
  padding: 13px 22px;

  white-space: nowrap;

  border-right:
    1px solid
    color-mix(in srgb, var(--paper) 25%, transparent);

  font:
    500 10px
    "IBM Plex Mono",
    monospace;

  letter-spacing: 0.07em;
}

.up {
  color: var(--green-2);
}

.signal {
  color: var(--orange-2);
}


/* ==================================================
   SECTION SYSTEM
================================================== */

.page-section {
  padding:
    clamp(72px, 9vw, 120px)
    var(--page-pad);

  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 52px;

  display: grid;
  grid-template-columns: 1fr 1.3fr;

  gap: 40px;

  align-items: end;
}

.section-head h2 {
  margin: 12px 0 0;

  font:
    700 clamp(48px, 6vw, 84px)/0.9
    "Barlow Condensed",
    sans-serif;

  letter-spacing: -0.025em;

  text-transform: uppercase;
}

.section-head p {
  max-width: 650px;

  margin: 0;

  font-size: 18px;
  line-height: 1.55;

  color: var(--muted);
}


/* ==================================================
   SIGNAL BOARD
================================================== */

.instrument-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;

  gap: 18px;
}

.instrument {
  min-width: 0;
  min-height: 420px;

  padding: 26px;

  position: relative;
  overflow: hidden;

  background: var(--panel);

  border: 1px solid var(--line);

  box-shadow: var(--shadow);
}

.instrument-top,
.instrument-foot {
  display: flex;
  justify-content: space-between;

  gap: 18px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;

  color: var(--muted);
}

.status-live {
  color: var(--green);
}

.status-market {
  color: var(--orange);
}

.instrument-number {
  margin-top: 36px;

  font:
    700 clamp(84px, 10vw, 136px)/0.8
    "Barlow Condensed",
    sans-serif;

  letter-spacing: -0.055em;
}

.instrument-condition {
  margin-top: 12px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;

  color: var(--orange);
}

.weather-table {
  margin-top: 38px;

  border-top: 1px solid var(--ink);
}

.weather-table div {
  min-height: 38px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid var(--line);

  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.weather-table span {
  color: var(--muted);
}

.market-instrument {
  display: flex;
  flex-direction: column;
}

.market-frame {
  flex: 0 0 320px;

  width: 100%;
  height: 320px;
  min-height: 320px;
  max-height: 320px;

  contain: size layout paint style;
  overflow-anchor: none;

  margin: 22px 0;

  overflow: hidden;

  border:
    1px solid
    color-mix(in srgb, var(--line) 85%, transparent);

  background:
    color-mix(in srgb, var(--paper) 42%, transparent);
}

tv-tickers {
  display: block;

  width: 100%;
  height: 320px;
  min-height: 320px;
  max-height: 320px;

  overflow-anchor: none;
}

.market-placeholder {
  padding: 28px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;

  color: var(--muted);
}


/* ==================================================
   PROJECT LEDGER
================================================== */

.ledger {
  display: grid;
  grid-template-columns: repeat(12, 1fr);

  gap: 18px;
}

.card {
  position: relative;

  min-width: 0;
  min-height: 260px;

  overflow: hidden;

  padding: 26px;

  background: var(--panel);

  border: 1px solid var(--line);

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.card:hover {
  border-color: var(--orange);

  background:
    color-mix(in srgb, var(--panel) 92%, var(--orange) 8%);

  box-shadow: var(--shadow);
}

.card.wide {
  grid-column: span 7;
}

.card.narrow {
  grid-column: span 5;
}

.card.half {
  grid-column: span 6;
}

.card .index {
  font:
    500 10px
    "IBM Plex Mono",
    monospace;

  color: var(--orange);
}

.card h3 {
  max-width: 88%;

  margin: 46px 0 14px;

  font:
    700 clamp(31px, 3.2vw, 46px)/0.95
    "Barlow Condensed",
    sans-serif;

  text-transform: uppercase;
}

.card p {
  max-width: 600px;

  margin: 0;

  font-size: 16px;
  line-height: 1.5;

  color: var(--muted);
}

.card .tagrow {
  margin-top: 22px;

  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}

.tag {
  padding: 6px 8px;

  border: 1px solid var(--line);

  font:
    500 9px
    "IBM Plex Mono",
    monospace;

  text-transform: uppercase;
}

.arrow {
  position: absolute;
  top: 20px;
  right: 22px;

  font:
    500 23px
    "IBM Plex Mono",
    monospace;

  color: var(--green);
}


/* ==================================================
   EXPERIENCE
================================================== */

.timeline {
  margin-top: 12px;

  border-top: 1px solid var(--ink);
}

.job {
  padding: 28px 0;

  display: grid;
  grid-template-columns: 180px 1fr 1.2fr;

  gap: 28px;

  align-items: start;

  border-bottom: 1px solid var(--line);
}

.job time {
  font:
    500 10px/1.5
    "IBM Plex Mono",
    monospace;

  color: var(--orange);
}

.job h3 {
  margin: 0;

  font:
    700 30px/1
    "Barlow Condensed",
    sans-serif;

  text-transform: uppercase;
}

.job p {
  margin: 0;

  line-height: 1.5;

  color: var(--muted);
}


/* ==================================================
   SIGNALS / SKILLS
================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 50px;
}

.skillgroup h3 {
  margin: 0 0 20px;

  font:
    700 38px
    "Barlow Condensed",
    sans-serif;

  text-transform: uppercase;
}

.skill-list {
  margin: 0;
  padding: 0;

  list-style: none;

  border-top: 1px solid var(--ink);
}

.skill-list li {
  min-height: 46px;

  padding: 12px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid var(--line);

  font-size: 15px;
}

.skill-list code {
  font:
    500 9px
    "IBM Plex Mono",
    monospace;

  color: var(--green);
}


/* ==================================================
   CONTACT BAND
================================================== */

.signal-band {
  padding:
    clamp(70px, 9vw, 115px)
    var(--page-pad);

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  gap: 60px;

  align-items: center;

  background: var(--orange);

  color: #151b1e;

  border-bottom: 1px solid #151b1e;
}

.signal-band h2 {
  margin: 0;

  font:
    800 clamp(60px, 8vw, 116px)/0.78
    "Barlow Condensed",
    sans-serif;

  letter-spacing: -0.03em;

  text-transform: uppercase;
}

.signal-band p {
  margin: 0;

  font-size: 20px;
  line-height: 1.45;
}

.contact-link {
  width: fit-content;

  margin-top: 26px;

  display: inline-flex;

  padding: 11px 14px;

  text-decoration: none;

  border: 1px solid #151b1e;

  font:
    600 10px
    "IBM Plex Mono",
    monospace;

  letter-spacing: 0.08em;

  transition:
    background 0.16s ease,
    color 0.16s ease;
}

.contact-link:hover {
  background: #151b1e;
  color: var(--orange);
}



.contact-stack {
  margin-top: 28px;

  display: grid;
  gap: 0;

  border-top: 1px solid #151b1e;
}

.contact-social {
  min-height: 58px;

  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;

  gap: 18px;

  padding: 13px 0;

  text-decoration: none;

  border-bottom: 1px solid #151b1e;

  color: #151b1e;

  font-family: "IBM Plex Mono", monospace;

  transition:
    padding-left 0.15s ease,
    background 0.15s ease;
}

.contact-social > span:first-child {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.contact-social strong {
  min-width: 0;

  overflow-wrap: anywhere;

  font-size: 11px;
  font-weight: 600;
}

.contact-social > span:last-child {
  font-size: 16px;
}

a.contact-social:hover {
  padding-left: 10px;

  background:
    color-mix(
      in srgb,
      #151b1e 8%,
      transparent
    );
}

.contact-social-pending {
  opacity: 0.58;

  cursor: default;
}

/* ==================================================
   FOOTER
================================================== */

footer {
  padding:
    40px
    var(--page-pad)
    70px;

  display: flex;
  justify-content: space-between;

  gap: 30px;

  color: var(--muted);

  font:
    500 10px/1.6
    "IBM Plex Mono",
    monospace;
}

.footer-big {
  font:
    700 clamp(28px, 4vw, 54px)/1
    "Barlow Condensed",
    sans-serif;

  text-transform: uppercase;

  color: var(--ink);
}


/* ==================================================
   WEATHER STATES
================================================== */

body[data-weather="clear"] .sky-panel {
  --sky: #b9d7df;
}

body[data-weather="cloudy"] .sky-panel {
  --sky: #314850;
}

body[data-weather="rain"] .sky-panel,
body[data-weather="storm"] .sky-panel {
  --sky: #243840;
}

body[data-weather="snow"] .sky-panel {
  --sky: #40545a;
}


/* ==================================================
   ANIMATION
================================================== */

@keyframes pulse {
  70% {
    box-shadow:
      0 0 0 9px
      transparent;
  }
}

@keyframes ticker {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}



/* ==================================================
   HARD STABILITY PASS
================================================== */

body,
main,
.hero,
.page-section,
.signal-band,
footer {
  overflow-anchor: none;
}

.hero-copy,
.page-section,
.signal-band,
footer,
.instrument,
.card,
.job,
.skillgroup {
  transform: none;
  will-change: auto;
  backface-visibility: visible;
}

.sky-panel,
.market-frame {
  isolation: isolate;
}

.ticker {
  overflow: hidden;
}

.tick {
  flex: 0 0 auto;
}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .navlinks {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 620px;

    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sky-panel {
    min-height: 540px;
  }

  .section-head,
  .signal-band {
    grid-template-columns: 1fr;

    gap: 24px;
  }

  .instrument-grid {
    grid-template-columns: 1fr;
  }

  .ledger {
    grid-template-columns: 1fr;
  }

  .card.wide,
  .card.narrow,
  .card.half {
    grid-column: auto;
  }

  .skills-grid {
    gap: 28px;
  }

  .job {
    grid-template-columns: 130px 1fr;
  }

  .job p {
    grid-column: 2;
  }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 700px) {
  :root {
    --page-pad: 18px;
  }

  .nav-meta span {
    display: none;
  }

  .hero-copy {
    min-height: auto;

    padding-top: 64px;
    padding-bottom: 64px;
  }

  h1 {
    font-size:
      clamp(58px, 18vw, 86px);
  }

  .intro {
    font-size: 16px;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 13px 18px;
  }

  .sky-panel {
    min-height: 520px;
  }

  .sky-readout {
    width: calc(100% - 36px);

    grid-template-columns: 1fr;

    gap: 18px;
  }

  .wx-temp {
    font-size: 64px;
  }

  .section-head {
    grid-template-columns: 1fr;

    gap: 20px;
  }

  .section-head h2 {
    font-size:
      clamp(48px, 15vw, 72px);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .job {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .job p {
    grid-column: auto;
  }

  .signal-band {
    gap: 28px;
  }

  .signal-band h2 {
    font-size:
      clamp(58px, 18vw, 90px);
  }

  .contact-social {
    grid-template-columns: 76px minmax(0, 1fr) auto;

    gap: 12px;
  }

  footer {
    flex-direction: column;
  }
}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 430px) {
  h1 {
    font-size:
      clamp(52px, 17vw, 70px);

    line-height: 0.83;
  }

  .outline {
    -webkit-text-stroke: 1px var(--ink);
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .sky-panel {
    min-height: 500px;
  }

  .sky-caption strong {
    font-size: 34px;
  }

  .sky-caption .time {
    max-width: 160px;

    font-size: 9px;
  }

  .instrument {
    padding: 20px;
  }

  .instrument-number {
    font-size: 92px;
  }
}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

  .ticker-track,
  .pulse {
    animation: none !important;
  }
}