:root {
  --bg: #111013;
  --fg: #efeee9;
  --lime: #d8f34a;
  --line: rgba(239, 238, 233, .14);
  --dim: rgba(239, 238, 233, .5);
  --stripe-a: #1c1b20;
  --stripe-b: #232228;
  --display: 'Syne', sans-serif;
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }

a { color: var(--fg); text-decoration: none; transition: color .15s, background-color .15s, border-color .15s; }
a:hover { color: var(--lime); }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

main { overflow-x: clip; }

.wrap { max-width: 1400px; margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 11px; }
.dim { color: var(--dim); }
.lime { color: var(--lime); }
.rule-top { border-top: 1px solid var(--line); }

@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px var(--gutter);
  background: rgba(17, 16, 19, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: .04em; white-space: nowrap; }
.nav__brand span { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--dim); margin-left: 8px; letter-spacing: 0; }
.nav__links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-family: var(--mono); font-size: 11px; }
.nav__links a { padding: 6px 14px; border: 1px solid rgba(239, 238, 233, .25); border-radius: 999px; }
.nav__links a:hover { background: var(--lime); color: var(--bg); border-color: var(--lime); }

/* HERO */
.hero { padding-top: clamp(56px, 8vw, 110px); padding-bottom: 64px; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); margin-bottom: 36px; }
.hero__status { display: flex; align-items: center; gap: 8px; }
.hero__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: blink 1.6s infinite; }
.hero__status--pill { display: none; padding: 8px 14px; border: 1px solid rgba(239, 238, 233, .25); border-radius: 999px; }
.hero__name {
  /* sized so the outlined "BETANCOR" (≈9.35em wide in Syne 800) always fits inside the gutters */
  font-family: var(--display); font-weight: 800; font-size: clamp(28px, 9.3vw, 138px);
  line-height: .88; letter-spacing: -.03em; text-transform: uppercase;
}
.hero__name span { display: block; }
.outline { color: transparent; -webkit-text-stroke: 2px var(--fg); word-break: keep-all; }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; align-items: end; margin-top: 56px; }
.hero__intro { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.badge {
  background: var(--lime); color: var(--bg);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px; transform: rotate(-3deg);
}
.hero__lede { font-size: clamp(18px, 2vw, 24px); line-height: 1.45; max-width: 620px; text-wrap: pretty; }
.hero__stats { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-self: end; justify-self: end; min-width: 260px; }
.hero__stats dt { color: var(--dim); }

/* TICKER */
.ticker { background: var(--lime); color: var(--bg); overflow: hidden; padding: 10px 0; transform: rotate(-1deg) scale(1.03); }
.ticker__track { display: flex; width: max-content; animation: marq 22s linear infinite; }
.ticker__group {
  display: flex; gap: 40px; padding-right: 40px;
  font-family: var(--display); font-weight: 700; font-size: 16px; text-transform: uppercase; white-space: nowrap;
}

/* INDEX */
.index { padding-top: clamp(72px, 9vw, 120px); padding-bottom: 40px; }
.index__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase; letter-spacing: -.01em; }
.index__cols, .index__row { display: grid; grid-template-columns: 44px minmax(0, 2fr) minmax(0, 1.4fr) 92px 28px; gap: 16px; }
.index__cols { padding: 10px 12px; font-family: var(--mono); font-size: 10px; color: rgba(239, 238, 233, .45); border-bottom: 1px solid var(--line); }
.index__row { align-items: center; padding: 16px 12px; border-bottom: 1px solid rgba(239, 238, 233, .1); font-family: var(--mono); font-size: 12px; }
.index__row:hover { background: #19181d; color: var(--fg); }
.index__num { color: rgba(239, 238, 233, .45); }
.index__name { font-family: var(--sans); font-size: 16px; font-weight: 500; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index__cat { color: rgba(239, 238, 233, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.index__arrow { color: var(--lime); text-align: right; }
.st-live { color: var(--lime); }
.st-private { color: rgba(239, 238, 233, .7); }
.st-archived { color: rgba(239, 238, 233, .45); }

/* THREE AREAS */
.areas { padding-top: 40px; padding-bottom: 80px; }
.areas__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.area h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.area__list { font-family: var(--mono); font-size: 12px; color: rgba(239, 238, 233, .6); line-height: 1.9; }

/* CASE STUDIES */
.case__inner { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.meta-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--dim); margin-bottom: 28px; }
.meta-row__right { display: flex; gap: 18px; flex-wrap: wrap; }
.headline {
  font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.2vw, 72px);
  line-height: .98; letter-spacing: -.02em; text-transform: uppercase; max-width: 1100px; text-wrap: balance;
}
.case__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 48px; align-items: start; }
.case__body { display: flex; flex-direction: column; gap: 32px; }
.lede { font-size: 18px; line-height: 1.55; color: rgba(239, 238, 233, .85); text-wrap: pretty; }
.pbr { display: grid; grid-template-columns: 110px 1fr; gap: 14px 20px; font-size: 14px; line-height: 1.6; }
.pbr dt { font-family: var(--mono); font-size: 11px; color: var(--lime); padding-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 11px; }
.chips li { padding: 6px 12px; border: 1px solid rgba(239, 238, 233, .25); border-radius: 999px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: var(--lime); color: var(--bg);
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 12px 20px; border-radius: 999px;
}
.btn:hover { background: var(--fg); color: var(--bg); }

.stripes { background: repeating-linear-gradient(-45deg, var(--stripe-a), var(--stripe-a) 10px, var(--stripe-b) 10px, var(--stripe-b) 20px); }
.shot { border: 1px solid rgba(239, 238, 233, .18); aspect-ratio: 16 / 11; display: flex; align-items: center; justify-content: center; position: relative; }
.shot__bar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  border-bottom: 1px solid rgba(239, 238, 233, .18); background: var(--bg);
}
.shot__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(239, 238, 233, .25); }
.shot__bar span { margin-left: 10px; font-family: var(--mono); font-size: 10px; color: var(--dim); }
.shot__label { font-family: var(--mono); font-size: 11px; color: var(--dim); background: var(--bg); padding: 4px 8px; text-align: center; }

/* MANIFESTO */
.manifesto { background: var(--lime); color: var(--bg); }
.manifesto__inner { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.manifesto__kicker { margin-bottom: 28px; }
.manifesto__quote {
  font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.6vw, 84px);
  line-height: .96; letter-spacing: -.02em; text-transform: uppercase; max-width: 1200px;
}
.manifesto__quote span { color: transparent; -webkit-text-stroke: 2px var(--bg); }
.manifesto__chain { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 48px; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.manifesto__chain a { padding: 10px 18px; border: 1.5px solid var(--bg); border-radius: 999px; color: var(--bg); }
.manifesto__chain a:hover { background: var(--bg); color: var(--lime); }

/* SMART CHOICE */
.sc { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.sc .headline { max-width: 1000px; }
.sc__lede { max-width: 720px; margin-top: 28px; }
.diagram { margin-top: 56px; border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; }
.diagram__root { font-family: var(--display); font-weight: 800; font-size: 18px; text-transform: uppercase; background: var(--lime); color: var(--bg); padding: 12px 22px; }
.diagram__stem { width: 1px; height: 28px; background: rgba(239, 238, 233, .4); }
.diagram__stem--long { height: 40px; }
.diagram__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 660px; }
.diagram__bar { grid-column: 1 / 4; height: 1px; background: rgba(239, 238, 233, .4); margin: 0 calc(100% / 6); }
.diagram__col { display: flex; flex-direction: column; align-items: center; padding: 0 6px; }
.diagram__node { font-family: var(--mono); font-size: 11px; padding: 10px 14px; border: 1px solid rgba(239, 238, 233, .3); text-align: center; width: 100%; }
.diagram__node:hover { border-color: var(--lime); color: var(--lime); }
.diagram__ops { font-family: var(--mono); font-size: 11px; color: rgba(239, 238, 233, .6); border: 1px dashed rgba(239, 238, 233, .3); padding: 8px 16px; }

.sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 56px; }
.site { border: 1px solid rgba(239, 238, 233, .18); display: flex; flex-direction: column; transition: border-color .15s; }
.site:hover { border-color: var(--lime); }
.site__shot { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(239, 238, 233, .18); }
.site__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.site__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--dim); }
.site h3 { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; text-transform: uppercase; }
.site p { font-size: 14px; line-height: 1.55; color: rgba(239, 238, 233, .7); text-wrap: pretty; }

/* ARCHIVE */
.archive__inner {
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; align-items: start;
}
.archive__text { display: flex; flex-direction: column; gap: 18px; }
.archive__title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.archive__text p { font-size: 16px; line-height: 1.6; color: rgba(239, 238, 233, .75); text-wrap: pretty; }
.archive__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.archive__thumbs li {
  aspect-ratio: 4 / 3; border: 1px solid var(--line);
  background: repeating-linear-gradient(-45deg, var(--stripe-a), var(--stripe-a) 8px, var(--stripe-b) 8px, var(--stripe-b) 16px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; color: rgba(239, 238, 233, .45);
}

/* DAY JOB */
.dayjob { background: var(--fg); color: var(--bg); }
.dayjob__inner { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.dayjob .mono { color: rgba(17, 16, 19, .55); }
.dayjob__kicker { margin-bottom: 28px; }
.dayjob__title { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vw, 112px); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; margin-bottom: 40px; }
.dayjob__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.dayjob__creds { line-height: 1.9; }
.dayjob__body { display: flex; flex-direction: column; gap: 24px; }
.dayjob__body p { font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.dayjob .chips li { border-color: rgba(17, 16, 19, .3); }
.dayjob__link { align-self: flex-start; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--bg); border-bottom: 1.5px solid var(--bg); padding-bottom: 2px; }
.dayjob__link:hover { color: var(--bg); border-color: transparent; }
.dayjob a:focus-visible { outline-color: var(--bg); }

/* CONTACT */
.contact__inner { padding-top: clamp(64px, 8vw, 96px); padding-bottom: 36px; }
.contact__kicker { margin-bottom: 16px; }
.contact__email {
  /* ≈18.1em wide in Syne 800; sized to stay on one line */
  display: block; font-family: var(--display); font-weight: 800; font-size: clamp(18px, 4.9vw, 70px);
  line-height: 1; letter-spacing: -.02em; text-transform: uppercase; word-break: break-all;
}
.contact__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; color: var(--dim); }
.contact__links { display: flex; gap: 24px; flex-wrap: wrap; }
.contact__links a { color: var(--dim); }
.contact__links a:hover { color: var(--fg); }

/* SMALL SCREENS */
@media (max-width: 640px) {
  .nav { padding-top: 12px; padding-bottom: 12px; }
  .nav__brand span { display: none; }
  .nav__links { gap: 6px; font-size: 10px; }
  .nav__links a { padding: 5px 10px; }
  .outline { -webkit-text-stroke-width: 1.5px; }
  .hero { padding-top: 28px; padding-bottom: 48px; }
  .hero__meta { flex-wrap: nowrap; gap: 12px; margin-bottom: 28px; white-space: nowrap; }
  .hero__status--wide { display: none; }
  .hero__status--pill { display: inline-flex; }
  .hero__grid { margin-top: 36px; }
  .hero__stats { justify-self: start; min-width: 0; }
  .index__cols, .index__row { grid-template-columns: 32px minmax(0, 1fr) 72px 16px; gap: 12px; }
  .index__cols > :nth-child(3), .index__cat { display: none; }
  .index__name { font-size: 14px; }
  .pbr { grid-template-columns: 1fr; gap: 4px; }
  .pbr dd + dt { margin-top: 12px; }
  .diagram { padding: 24px 12px; }
  .diagram__col { padding: 0 3px; }
  .diagram__node { font-size: 9px; padding: 9px 4px; }
  .manifesto__quote { font-size: 28px; overflow-wrap: break-word; }
  .manifesto__quote span { -webkit-text-stroke-width: 1.5px; }
  html { scroll-padding-top: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .hero__status i { animation: none; }
}
