:root {
  color-scheme: light;
  --ink: #f8f4ed;
  --muted: #667085;
  --soft: #eef6ff;
  --paper: #ffffff;
  --cream: #f7f3ec;
  --night: #f4f7fb;
  --charcoal: #121826;
  --line: rgba(18, 24, 38, 0.12);
  --blue: #056dff;
  --cyan: #18c7ff;
  --yellow: #ffb400;
  --green: #00b957;
  --radius: 8px;
  --shadow: 0 22px 64px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--charcoal);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled .brand-name strong,
.site-header.is-scrolled .site-nav {
  color: var(--charcoal);
}

.site-header.is-scrolled .brand-name small {
  color: var(--muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 156px;
  height: auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 248, 239, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.brand-logo-header {
  width: 48px;
  padding: 3px;
}

.brand-name strong,
.brand-name small {
  display: block;
  line-height: 1;
  letter-spacing: 0;
}

.brand-name strong {
  color: var(--paper);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-name small {
  margin-top: 5px;
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 34px);
  color: rgba(255, 248, 239, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 94svh;
  overflow: hidden;
  padding: 132px clamp(18px, 4vw, 56px) 74px;
}

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

.hero-image {
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(18, 24, 38, 0.9) 0%, rgba(18, 24, 38, 0.56) 42%, rgba(18, 24, 38, 0.08) 100%),
    linear-gradient(0deg, rgba(18, 24, 38, 0.72) 0%, rgba(18, 24, 38, 0.06) 48%, rgba(18, 24, 38, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  color: var(--ink);
}

.hero-logo {
  width: clamp(116px, 18vw, 178px);
  height: auto;
  margin-bottom: 26px;
  padding: 10px;
  border: 1px solid rgba(255, 248, 239, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 42px rgba(5, 109, 255, 0.32),
    0 0 68px rgba(0, 185, 87, 0.18),
    0 0 84px rgba(255, 180, 0, 0.18);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  color: var(--charcoal);
  font-size: clamp(2rem, 4.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

h3 {
  color: var(--charcoal);
  font-size: 1.14rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 248, 239, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--green) 58%, var(--yellow));
  color: #07100d;
}

.button-secondary {
  border-color: rgba(255, 248, 239, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
}

.section-band {
  border-top: 1px solid var(--line);
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0;
}

.intro {
  background: var(--paper);
  color: #181713;
}

.intro .eyebrow,
.intro h2 {
  color: #181713;
}

.intro-grid,
.commerce-layout,
.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(30px, 7vw, 92px);
  align-items: start;
}

.intro p:not(.eyebrow),
.commerce p,
.section-heading p,
.steps p,
.site-footer p {
  color: var(--muted);
  font-size: 1.02rem;
}

.intro p:not(.eyebrow) {
  color: #51483f;
  font-size: 1.14rem;
}

.projects {
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f7ff 48%, #fff8e8 100%);
}

.section-heading {
  width: min(680px, 100%);
  margin-bottom: 38px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: grid;
  min-height: 560px;
  padding: 18px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.project-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(18, 24, 38, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(5, 109, 255, 0.08), rgba(0, 185, 87, 0.08));
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.project-card.featured {
  background: linear-gradient(145deg, rgba(5, 109, 255, 0.1), rgba(0, 185, 87, 0.08), rgba(255, 180, 0, 0.14)), rgba(255, 255, 255, 0.92);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 116px;
}

.project-status {
  align-self: flex-start;
  min-width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(5, 109, 255, 0.18);
  border-radius: 999px;
  color: var(--blue);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
}

.project-card h3 {
  max-width: 15ch;
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.05;
}

.project-card p {
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.project-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(24, 199, 255, 0.28);
  border-radius: 999px;
  color: #075985;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.7rem;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 14px;
  align-items: end;
  margin-top: auto;
}

.project-links {
  display: grid;
  gap: 10px;
}

.project-links a,
.project-links button {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid rgba(18, 24, 38, 0.12);
  background: var(--charcoal);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qr-frame {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: var(--radius);
  background: var(--paper);
}

.qr-image {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.qr-placeholder {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 84px;
  height: 84px;
}

.qr-placeholder span {
  background: #111;
}

.qr-placeholder span:nth-child(3n),
.qr-placeholder span:nth-child(5n + 1),
.qr-placeholder span:nth-child(13),
.qr-placeholder span:nth-child(22),
.qr-placeholder span:nth-child(41) {
  background: transparent;
}

.method {
  background: var(--paper);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
}

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

.steps article {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(18, 24, 38, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  box-shadow: var(--shadow);
}

.steps span {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--yellow);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 700;
}

.commerce {
  background: #f7f3ec;
  color: #181713;
}

.commerce h2,
.commerce .eyebrow {
  color: #181713;
}

.commerce p {
  color: #4e443b;
  font-size: 1.14rem;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: #15110d;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer .section-inner {
  padding-bottom: 42px;
}

.brand-footer {
  margin-bottom: 22px;
}

.footer-contact {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.footer-contact a {
  color: var(--charcoal);
  font-size: 1.15rem;
  font-weight: 800;
}

.copyright {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
    min-height: auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(18, 24, 38, 0.92), rgba(18, 24, 38, 0.48)),
      linear-gradient(0deg, rgba(18, 24, 38, 0.82), rgba(18, 24, 38, 0.24));
  }

  .intro-grid,
  .commerce-layout,
  .footer-layout,
  .method-layout {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 118px;
    padding-bottom: 52px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .project-actions {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    width: 100%;
    height: 132px;
  }
}
