:root {
  --night: #07101f;
  --night-2: #11142f;
  --plum: #2d1b38;
  --paper: #f7f0e4;
  --paper-strong: #fffaf2;
  --paper-warm: #efe0c7;
  --ink: #10172c;
  --ink-soft: #596888;
  --ink-muted: rgba(16, 23, 44, 0.68);
  --line-light: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(16, 23, 44, 0.12);
  --coral: #ff7254;
  --gold: #f2cf7b;
  --sky: #8fd5ff;
  --violet: #8e7cff;
  --mint: #7fd8a2;
  --emerald: #4cbf7a;
  --forest-glow: #173626;
  --shadow-hero: 0 34px 90px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 18px 44px rgba(6, 10, 24, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at 12% 16%, rgba(76, 191, 122, 0.22), transparent 20%),
    radial-gradient(circle at 84% 12%, rgba(143, 213, 255, 0.22), transparent 18%),
    radial-gradient(circle at 72% 54%, rgba(142, 124, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #060d1a 0%, #0f1733 46%, #11271f 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(127, 216, 162, 0.34), transparent 70%);
}

body::after {
  left: -150px;
  bottom: -180px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(143, 213, 255, 0.26), transparent 72%);
}

.impact-verification {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 28px 82px;
}

.hero,
.project-section,
.from-the-field {
  position: relative;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 30px;
  align-items: stretch;
  padding: 36px;
  border-radius: 34px;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(9, 16, 31, 0.92), rgba(12, 18, 39, 0.84));
  box-shadow: var(--shadow-hero);
  backdrop-filter: blur(18px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0) 26%),
    repeating-linear-gradient(
      122deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 82px
    );
  opacity: 0.7;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: 10%;
  top: -24%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 191, 122, 0.2), transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.project-card-link,
.field-shell,
.behold-fallback {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0 4px 8px;
}

.eyebrow,
.section-kicker,
.feature-kicker {
  margin: -2px 0 14px;
  font-size: 0.88rem;
  line-height: 1;
  letter-spacing: 0.31em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
}

.eyebrow {
  transform: translateY(-52px);
}

h1,
.section-head h2,
.field-title,
.project-name,
.hero-visual-caption h2 {
  font-family: "Newsreader", Georgia, serif;
}

h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(4rem, 7.4vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 500;
  text-wrap: balance;
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 33rem;
  font-size: clamp(1.03rem, 1.9vw, 1.28rem);
  line-height: 1.58;
  color: rgba(247, 240, 228, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-link,
.feature-link,
.field-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-link:hover,
.feature-link:hover,
.field-link:hover,
a.project-card-link:hover {
  transform: translateY(-2px);
}

.hero-link--primary {
  color: var(--ink);
  background: linear-gradient(135deg, #fff0bd 0%, #9fdaff 100%);
  box-shadow: 0 16px 34px rgba(143, 213, 255, 0.2);
}

.hero-link--secondary {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.hero-mini {
  margin-top: 28px;
}

.hero-mini-card {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  max-width: 24rem;
  padding: 14px 16px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-mini-label {
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
}

.hero-mini-card strong {
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--paper);
}

.hero-visual {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.hero-image-stage {
  position: relative;
  min-height: 500px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-image {
  display: block;
}

.hero-image--background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.85) contrast(1.02);
}

.hero-image--main {
  position: absolute;
  left: 7%;
  top: 9%;
  width: 86%;
  height: 78%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.34);
}

.hero-image--inset {
  position: absolute;
  right: 6%;
  bottom: 6%;
  width: clamp(120px, 26%, 170px);
  aspect-ratio: 1 / 1.14;
  border-radius: 20px;
  object-fit: cover;
  border: 6px solid rgba(255, 250, 242, 0.92);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.hero-burst {
  position: absolute;
  top: 3%;
  right: 3%;
  width: clamp(90px, 18%, 120px);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
}

.hero-visual-caption {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 86% 18%, rgba(143, 213, 255, 0.22), transparent 28%),
    radial-gradient(circle at 12% 100%, rgba(255, 114, 84, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(17, 20, 47, 0.98), rgba(49, 18, 41, 0.94));
  color: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.feature-mark {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: clamp(4.8rem, 9vw, 7.2rem);
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.07);
  font-weight: 800;
  pointer-events: none;
}

.hero-visual-caption h2 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.feature-copy {
  margin: 14px 0 0;
  max-width: 30rem;
  font-size: 0.98rem;
  line-height: 1.58;
  color: rgba(247, 240, 228, 0.78);
}

.feature-link {
  margin-top: 18px;
  color: var(--ink);
  background: linear-gradient(135deg, #ffe6a2 0%, #9bd5ff 100%);
  box-shadow: 0 16px 28px rgba(143, 213, 255, 0.22);
}

.project-section {
  margin-top: 34px;
  padding: 34px;
  border-radius: 32px;
  border: 1px solid var(--line-light);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(8, 13, 29, 0.74);
  box-shadow: var(--shadow-hero);
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 46rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 500;
  text-wrap: balance;
}

.section-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.62;
  color: rgba(247, 240, 228, 0.76);
}

.projects {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.project-card {
  min-width: 0;
}

.project-card-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 312px;
  padding: 22px 22px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 249, 241, 0.04);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.project-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 36%),
    radial-gradient(circle at 82% 12%, rgba(143, 213, 255, 0.16), transparent 28%);
  pointer-events: none;
}

a.project-card-link:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.26);
}

.project-card--lead .project-card-link {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    radial-gradient(circle at right top, rgba(143, 213, 255, 0.18), transparent 30%),
    radial-gradient(circle at left bottom, rgba(255, 114, 84, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(13, 25, 61, 0.96), rgba(45, 21, 48, 0.92));
}

.project-card--muted .project-card-link {
  opacity: 0.88;
}

.project-card-link--static {
  cursor: default;
}

.project-status {
  align-self: flex-start;
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 240, 228, 0.8);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 800;
}

.project-status--live {
  background: rgba(242, 207, 123, 0.14);
  border-color: rgba(242, 207, 123, 0.18);
  color: var(--gold);
}

.project-num {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 207, 123, 0.92);
  font-weight: 800;
}

.project-name {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  font-size: clamp(1.55rem, 2vw, 2.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.project-meta {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 0.95rem;
  line-height: 1.58;
  color: rgba(247, 240, 228, 0.75);
}

.project-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.project-tag,
.project-cta {
  font-size: 0.85rem;
  line-height: 1.3;
  font-weight: 800;
}

.project-tag {
  color: rgba(247, 240, 228, 0.64);
}

.project-cta {
  color: var(--sky);
}

.project-mark {
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-size: clamp(5rem, 8vw, 7.5rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 0;
}

.project-card--lead .project-mark {
  color: rgba(255, 255, 255, 0.08);
}

.from-the-field {
  margin-top: 34px;
  padding: 30px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 14% 18%, rgba(76, 191, 122, 0.16), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(143, 213, 255, 0.18), transparent 22%),
    linear-gradient(145deg, rgba(10, 16, 34, 0.95), rgba(19, 39, 31, 0.94));
  color: var(--paper);
  box-shadow: var(--shadow-hero);
}

.from-the-field::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--emerald), var(--gold));
}

.field-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1.58fr);
  gap: 24px;
  align-items: stretch;
}

.field-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.field-title {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  line-height: 0.96;
  letter-spacing: -0.048em;
  font-weight: 500;
  color: var(--paper);
}

.field-link {
  align-self: flex-start;
  margin-top: 18px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.field-stage {
  min-width: 0;
}

.field-widget-frame {
  height: 100%;
  min-height: 560px;
  padding: 10px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 20px 40px rgba(0, 0, 0, 0.18);
}

behold-widget {
  display: block;
  min-height: 540px;
  border-radius: 18px;
  overflow: hidden;
}

.behold-fallback {
  margin-top: 18px;
  padding: 26px;
  border-radius: 18px;
  border: 1px dashed var(--line-dark);
  background: rgba(16, 23, 44, 0.03);
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.behold-fallback a {
  color: #b93156;
  font-weight: 800;
  text-decoration: none;
}

.not-found-page .hero {
  min-height: min(78vh, 760px);
  align-items: center;
}

.not-found-page .hero-copy {
  justify-content: center;
}

.not-found-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.not-found-signoff {
  margin-top: 18px;
  font-style: italic;
  color: rgba(247, 240, 228, 0.92);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card--lead {
    grid-column: 1 / -1;
  }

  .field-shell {
    grid-template-columns: 1fr;
  }

  .not-found-page .hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 16px 54px;
  }

  .hero,
  .project-section,
  .from-the-field {
    padding: 22px;
    border-radius: 24px;
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 15vw, 4.9rem);
  }

  .hero-sub,
  .section-copy {
    font-size: 0.97rem;
  }

  .eyebrow {
    transform: none;
  }

  .hero-actions,
  .project-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-link,
  .feature-link,
  .field-link {
    width: 100%;
  }

  .hero-image-stage {
    min-height: 360px;
  }

  .hero-image--main {
    left: 5%;
    top: 7%;
    width: 90%;
    height: 80%;
  }

  .hero-image--inset {
    width: 118px;
    right: 5%;
    bottom: 5%;
    border-width: 5px;
  }

  .hero-burst {
    width: 88px;
  }

  .hero-visual-caption {
    padding: 20px;
  }

  .feature-mark {
    right: 12px;
    top: 8px;
    font-size: 4.7rem;
  }

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

  .project-card-link {
    min-height: 250px;
  }

  .field-widget-frame {
    min-height: 380px;
    padding: 12px;
  }

  behold-widget {
    min-height: 356px;
  }
}
