:root {
  color-scheme: dark;
  --ink: #f3f7f5;
  --muted: #a0aaa6;
  --paper: #050607;
  --panel: #101416;
  --panel-strong: #151b1e;
  --line: #293237;
  --green: #62f7a7;
  --cyan: #46d9ff;
  --violet: #9f8cff;
  --amber: #ffbc61;
  --hot: #ff5f88;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 8%, rgba(70, 217, 255, 0.13), transparent 28rem),
    radial-gradient(circle at 8% 34%, rgba(98, 247, 167, 0.1), transparent 24rem),
    linear-gradient(180deg, #050607 0%, #0b0f12 48%, #050607 100%);
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.access-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f5fff9;
  background:
    linear-gradient(rgba(98, 247, 167, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 247, 167, 0.04) 1px, transparent 1px),
    #000000;
  background-size: 28px 28px;
}

.access-screen[hidden] {
  display: none;
}

.access-panel {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid rgba(98, 247, 167, 0.34);
  border-radius: 8px;
  background: rgba(4, 8, 7, 0.94);
  box-shadow: 0 0 80px rgba(98, 247, 167, 0.12);
}

.access-kicker,
.eyebrow,
.tag {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.access-kicker::before,
.eyebrow::before {
  content: "> ";
  color: var(--cyan);
}

.access-panel h1 {
  max-width: none;
  margin: 0 0 24px;
  color: #ffffff;
  font-family: inherit;
  font-size: clamp(2rem, 3rem, 3.4rem);
  line-height: 1;
}

.access-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.access-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #ffffff;
  border: 1px solid rgba(98, 247, 167, 0.36);
  border-radius: 8px;
  outline: none;
  background: #050607;
  font: inherit;
}

.access-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(98, 247, 167, 0.12);
}

.access-error {
  min-height: 22px;
  margin: 10px 0 12px;
  color: var(--hot);
  font-size: 0.88rem;
}

.access-button {
  width: 100%;
  min-height: 46px;
  color: #02110a;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.access-button:hover {
  background: #91ffc2;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  min-height: 56px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  color: #ffffff;
  border: 1px solid rgba(98, 247, 167, 0.2);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.62);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 7, 0.88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.46);
  border-color: rgba(70, 217, 255, 0.32);
}

.brand,
.nav-links,
.header-action,
.button,
.filter {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #ffffff;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #03110b;
  background: var(--green);
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(98, 247, 167, 0.28);
}

.nav-links {
  gap: 4px;
  font-size: 0.88rem;
}

.nav-links a,
.header-action {
  padding: 8px 11px;
  border-radius: 8px;
}

.nav-links a:hover,
.header-action:hover {
  color: var(--green);
  background: rgba(98, 247, 167, 0.1);
}

.header-action {
  border: 1px solid rgba(98, 247, 167, 0.38);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.18;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) brightness(0.46) contrast(1.12);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(3, 8, 9, 0.74) 43%, rgba(0, 0, 0, 0.18) 84%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  margin-left: max(20px, calc((100vw - 1120px) / 2));
  padding-top: 80px;
  color: #ffffff;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-family: inherit;
  font-size: clamp(3rem, 4rem, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 32px rgba(70, 217, 255, 0.16);
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(243, 247, 245, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  justify-content: center;
  min-width: 142px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid transparent;
}

.button-primary {
  color: #04110c;
  background: var(--green);
  box-shadow: 0 0 28px rgba(98, 247, 167, 0.2);
}

.button-primary:hover {
  background: #91ffc2;
}

.button-secondary {
  color: var(--ink);
  border-color: rgba(70, 217, 255, 0.42);
  background: rgba(70, 217, 255, 0.08);
}

.button-secondary:hover {
  color: #ffffff;
  border-color: var(--cyan);
  background: rgba(70, 217, 255, 0.14);
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 22px;
  width: 30px;
  height: 46px;
  transform: translateX(-50%);
  border: 1px solid rgba(98, 247, 167, 0.7);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 5px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--green);
}

.intro-band,
.section,
.split-section,
.contact-band,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.intro-band {
  padding: 34px 0 24px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.intro-grid p {
  margin: 0;
  max-width: 820px;
  color: #dce7e2;
  font-size: 1.28rem;
  line-height: 1.55;
}

.metrics {
  display: grid;
  gap: 10px;
}

.metrics span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.metrics strong {
  color: var(--green);
}

.section,
.split-section,
.contact-band {
  padding: 82px 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2rem, 2.65rem, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter {
  justify-content: center;
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 20, 22, 0.72);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.is-active,
.filter:hover {
  color: #05110c;
  background: var(--green);
  border-color: var(--green);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.work-card.is-hidden {
  display: none;
}

.work-visual {
  min-height: 190px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  padding: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 4rem;
  line-height: 1;
}

.visual-teal {
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(70, 217, 255, 0.22), rgba(70, 217, 255, 0.02)),
    #123136;
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.visual-coral {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 95, 136, 0.24), rgba(255, 95, 136, 0.02)),
    #361923;
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.visual-gold {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 188, 97, 0.28), rgba(255, 188, 97, 0.02)),
    #332815;
  background-size: 22px 22px, 22px 22px, auto, auto;
}

.work-body {
  display: flex;
  min-height: 270px;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.tag {
  color: var(--cyan);
}

h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.18;
}

.work-body p:not(.tag) {
  margin: 14px 0 26px;
  color: var(--muted);
  line-height: 1.65;
}

.work-body a {
  margin-top: auto;
  width: fit-content;
  font-weight: 900;
  color: var(--green);
  border-bottom: 2px solid currentColor;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-copy {
  color: #c5d0cc;
  font-size: 1.02rem;
  line-height: 1.78;
}

.about-copy p {
  margin: 0 0 18px;
}

.notes-section {
  padding-bottom: 46px;
}

.notes-list {
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.note-row span {
  color: var(--hot);
  font-weight: 900;
}

.note-row strong {
  font-size: 1.2rem;
}

.note-row:hover strong {
  color: var(--green);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding: 42px;
  color: #ffffff;
  border: 1px solid rgba(98, 247, 167, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(98, 247, 167, 0.11), rgba(70, 217, 255, 0.06)),
    #0b100e;
  box-shadow: var(--shadow);
}

.contact-band h2 {
  max-width: 720px;
}

.contact-band .button-secondary {
  background: rgba(255, 255, 255, 0.04);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav-links {
    display: none;
  }

  h1 {
    max-width: 10ch;
    font-size: 3.1rem;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  .intro-grid,
  .work-grid,
  .split-section,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .work-grid {
    gap: 14px;
  }

  .contact-band {
    display: grid;
    padding: 30px 22px;
  }
}

@media (max-width: 560px) {
  .header-action {
    display: none;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(3, 10, 11, 0.62)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.1) 46%);
  }

  h1 {
    max-width: 9ch;
    font-size: 2.55rem;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .intro-band,
  .section,
  .split-section,
  .contact-band,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .intro-grid p {
    font-size: 1.06rem;
  }

  .section,
  .split-section {
    padding: 58px 0;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}
