:root {
  color-scheme: dark;
  --black: #050505;
  --panel: rgba(9, 9, 9, 0.72);
  --panel-strong: rgba(12, 11, 9, 0.9);
  --text: #f1eee8;
  --muted: #96938d;
  --dim: #55524d;
  --line: rgba(255, 255, 255, 0.14);
  --line-bright: rgba(255, 255, 255, 0.28);
  --gold: #ffbd45;
  --gold-light: #ffe0a0;
  --ember: #ff6629;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 68% 10%, rgba(255, 142, 28, 0.07), transparent 34%),
    var(--black);
  color: var(--text);
  font-family: "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 49.96%, rgba(255, 255, 255, 0.025) 50%, transparent 50.04%),
    linear-gradient(transparent 49.96%, rgba(255, 255, 255, 0.018) 50%, transparent 50.04%);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 86%, transparent);
}

::selection {
  background: var(--gold);
  color: #150b00;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#mobius-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    radial-gradient(circle at 20% 20%, white 0 0.5px, transparent 0.7px),
    radial-gradient(circle at 80% 40%, white 0 0.4px, transparent 0.7px),
    radial-gradient(circle at 50% 80%, white 0 0.45px, transparent 0.7px);
  background-size: 7px 7px, 9px 9px, 11px 11px;
  animation: grain-shift 0.25s steps(2) infinite;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
  mix-blend-mode: difference;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.wordmark i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.section-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.section-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  transition: color 180ms ease, background 180ms ease;
}

.section-nav a:hover,
.section-nav a:focus-visible,
.section-nav a.active {
  color: white;
  background: rgba(255, 255, 255, 0.11);
  outline: none;
}

.page-section {
  position: relative;
  overflow: clip;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px 0 92px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.section-number {
  position: absolute;
  top: 98px;
  right: 0;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.06em;
}

.hero-section {
  display: flex;
  align-items: center;
}

.hero-section::before {
  position: absolute;
  top: 16%;
  right: -18%;
  width: min(72vw, 900px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 191, 73, 0.08);
  border-radius: 50%;
  pointer-events: none;
  content: "";
  box-shadow:
    0 0 0 80px rgba(255, 191, 73, 0.012),
    0 0 0 180px rgba(255, 191, 73, 0.008);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(800px, 82%);
}

.hero-copy h1 {
  margin-bottom: 50px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(68px, 9vw, 136px);
  font-weight: 560;
  line-height: 0.85;
}

.hero-copy h1 span {
  display: inline-block;
  background: linear-gradient(100deg, #fff 10%, var(--gold-light) 52%, #c97824 100%);
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(255, 171, 54, 0.18));
}

.hero-meta {
  display: flex;
  align-items: end;
  gap: 48px;
}

.hero-meta > p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.email-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  min-width: 330px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-bright);
}

.email-link span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.email-link strong {
  font-size: 13px;
  font-weight: 500;
}

.email-link i {
  grid-area: 1 / 2 / 3;
  align-self: center;
  color: var(--gold);
  font-style: normal;
  transition: transform 180ms ease;
}

.email-link:hover i,
.email-link:focus-visible i {
  transform: translate(3px, -3px);
}

.email-link:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 8px;
}

.hero-orbit-label {
  position: absolute;
  right: 2%;
  bottom: 17%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 224, 160, 0.42);
  font-size: 8px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.hero-orbit-label i {
  width: 1px;
  height: 48px;
  background: linear-gradient(transparent, var(--gold), transparent);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-style: normal;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(380px, 1.2fr);
  gap: 100px;
  align-items: center;
}

.about-section::before,
.services-section::before,
.projects-section::before {
  position: absolute;
  inset: 0 -100vw;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: rgba(4, 4, 4, 0.68);
  backdrop-filter: blur(3px);
}

.section-label h2 {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 560;
  line-height: 0.98;
}

.about-statement {
  position: relative;
  padding: 58px 0 0 62px;
  border-top: 1px solid var(--line-bright);
}

.statement-mark {
  position: absolute;
  top: 36px;
  left: 0;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 70px;
  line-height: 1;
}

.about-statement > p {
  max-width: 650px;
  margin-bottom: 70px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.15;
}

.about-detail {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.about-detail strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.services-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) minmax(480px, 1.38fr);
  gap: 84px;
  align-items: center;
}

.section-intro {
  max-width: 420px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.service-list {
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: rgba(10, 9, 8, 0.64);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.service-row {
  display: grid;
  grid-template-columns: 42px minmax(200px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  min-height: 180px;
  padding: 28px;
}

.service-index {
  align-self: start;
  color: var(--gold);
  font-size: 10px;
}

.service-row h3 {
  margin-bottom: 12px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 25px;
  font-weight: 560;
}

.service-row p {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 180px;
}

.service-tags span,
.project-tags li {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--gold-light);
  background: rgba(255, 183, 60, 0.045);
  font-size: 9px;
}

.service-row > a {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.service-row > a i {
  color: var(--gold);
  font-size: 18px;
  font-style: normal;
}

.projects-section {
  display: grid;
  align-content: center;
  padding-bottom: 120px;
}

.projects-section > .section-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 46px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(380px, 1.05fr);
  overflow: hidden;
  min-height: 560px;
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  background: rgba(8, 8, 8, 0.78);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(16px);
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 500px;
  padding: 42px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 35%, rgba(255, 181, 50, 0.2), transparent 28%),
    radial-gradient(circle at 24% 70%, rgba(255, 91, 28, 0.12), transparent 34%),
    #0b0a08;
}

.project-visual::before {
  position: absolute;
  inset: -20%;
  content: "";
  background:
    repeating-linear-gradient(125deg, transparent 0 38px, rgba(255, 183, 61, 0.045) 39px 40px),
    repeating-linear-gradient(35deg, transparent 0 52px, rgba(255, 255, 255, 0.025) 53px 54px);
  transform: rotate(-7deg);
}

.project-screen {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid rgba(255, 219, 147, 0.28);
  border-radius: 10px;
  background: rgba(2, 2, 2, 0.84);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.64),
    inset 0 0 50px rgba(255, 155, 36, 0.03);
  transform: perspective(900px) rotateY(8deg) rotateX(2deg);
}

.screen-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
}

.screen-top i {
  color: var(--gold);
  font-style: normal;
}

.screen-score {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 7px;
  padding: 26px 0 20px;
}

.screen-score span,
.screen-score small {
  color: var(--muted);
  font-size: 9px;
}

.screen-score strong {
  color: var(--gold-light);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 54px;
  line-height: 1;
}

.screen-bars {
  display: grid;
  gap: 7px;
}

.screen-bars span {
  width: var(--score);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ember), var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(255, 175, 43, 0.22);
}

.screen-code {
  display: grid;
  gap: 5px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #d8b77a;
  font-size: 9px;
  line-height: 1.5;
}

.project-copy {
  display: flex;
  flex-direction: column;
  padding: 46px;
}

.project-heading {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.project-heading p {
  margin-bottom: 0;
}

.project-copy h3 {
  margin: 48px 0 24px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 560;
  line-height: 0.96;
}

.project-copy > p {
  max-width: 590px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 36px;
  padding: 0;
  list-style: none;
}

.project-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 18px 0;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line-bright);
  font-size: 12px;
  text-transform: uppercase;
}

.project-cta i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #1a0e00;
  font-size: 18px;
  font-style: normal;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-cta:hover i,
.project-cta:focus-visible i {
  transform: rotate(45deg) scale(1.06);
  box-shadow: 0 0 28px rgba(255, 179, 50, 0.45);
}

.project-cta:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 7px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes grain-shift {
  0% { background-position: 0 0, 0 0, 0 0; }
  25% { background-position: 3px -2px, -2px 4px, 5px 2px; }
  50% { background-position: -2px 3px, 4px -1px, -3px 5px; }
  75% { background-position: 2px 1px, -4px -2px, 1px -3px; }
  100% { background-position: 0 0, 0 0, 0 0; }
}

@media (max-width: 960px) {
  .about-section,
  .services-section {
    grid-template-columns: 1fr;
    gap: 64px;
    align-content: center;
  }

  .service-row {
    grid-template-columns: 36px 1fr auto;
  }

  .service-tags {
    grid-column: 2;
  }

  .service-row > a {
    grid-column: 3;
    grid-row: 1 / 3;
  }

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

  .project-visual {
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .site-header,
  .page-section {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    padding-top: 16px;
  }

  .section-nav {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 25;
    justify-content: space-between;
    mix-blend-mode: normal;
    background: rgba(7, 7, 7, 0.84);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.48);
  }

  .section-nav a {
    flex: 1;
    padding: 10px 7px;
    text-align: center;
  }

  .page-section {
    min-height: auto;
    padding: 120px 0 96px;
  }

  .hero-section {
    min-height: 100svh;
    align-items: flex-end;
    padding-bottom: 110px;
  }

  .hero-section::before {
    top: 7%;
    right: -66%;
    width: 135vw;
  }

  .section-number {
    top: 86px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    margin-bottom: 38px;
    font-size: clamp(54px, 17vw, 82px);
    line-height: 0.92;
  }

  .hero-meta {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .email-link {
    min-width: 0;
    width: 100%;
  }

  .hero-orbit-label {
    top: 96px;
    right: 0;
    bottom: auto;
  }

  .scroll-cue {
    display: none;
  }

  .section-label h2 {
    font-size: 52px;
  }

  .about-statement {
    padding: 44px 0 0 36px;
  }

  .statement-mark {
    left: -4px;
    font-size: 58px;
  }

  .about-statement > p {
    margin-bottom: 44px;
    font-size: 31px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .service-index,
  .service-tags,
  .service-row > a {
    grid-column: 1;
    grid-row: auto;
  }

  .service-row > a {
    display: flex;
    justify-content: space-between;
    justify-items: stretch;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .projects-section > .section-label {
    display: block;
  }

  .project-card {
    border-radius: 12px;
  }

  .project-visual {
    min-height: 340px;
    padding: 22px;
  }

  .project-screen {
    transform: none;
  }

  .project-copy {
    padding: 28px;
  }

  .project-copy h3 {
    margin-top: 38px;
    font-size: 40px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-bottom: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .film-grain {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
