:root {
  color-scheme: dark;
  --black: #050505;
  --ink: #0d0d0d;
  --panel: #111111;
  --panel-soft: #171717;
  --white: #f7f7f2;
  --muted: rgba(247, 247, 242, 0.64);
  --quiet: rgba(247, 247, 242, 0.38);
  --line: rgba(247, 247, 242, 0.16);
  --line-strong: rgba(247, 247, 242, 0.34);
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.46);
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body:not(.is-loaded) .load-sequence > *,
body:not(.is-loaded) .image-mask {
  opacity: 0;
  transform: translateY(34px);
}

body.is-loaded .load-sequence > * {
  animation: loadUp 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.is-loaded .load-sequence > *:nth-child(2) {
  animation-delay: 90ms;
}

body.is-loaded .load-sequence > *:nth-child(3) {
  animation-delay: 180ms;
}

body.is-loaded .load-sequence > *:nth-child(4) {
  animation-delay: 270ms;
}

body.is-loaded .image-mask {
  animation: imageMask 920ms cubic-bezier(0.22, 1, 0.36, 1) 360ms both;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(247, 247, 242, 0.075), transparent 19rem),
    linear-gradient(90deg, rgba(247, 247, 242, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(247, 247, 242, 0.025) 1px, transparent 1px);
  background-size: auto, 84px 84px, 84px 84px;
}

button,
input,
textarea {
  font: inherit;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 {
  max-width: 1180px;
  margin-bottom: 0;
  font-size: clamp(4.35rem, 12vw, 12.5rem);
  font-weight: 900;
  line-height: 0.82;
}

h2 {
  max-width: 1080px;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 7vw, 8.8rem);
  font-weight: 900;
  line-height: 0.88;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.8vw, 3.8rem);
  line-height: 0.94;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34rem),
    var(--black);
}

.site-shell > main,
.site-header {
  position: relative;
  z-index: 2;
}

.abstract-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  color: var(--white);
}

.contour {
  position: absolute;
  color: rgba(247, 247, 242, 0.48);
  filter: blur(0.1px);
}

.contour-one {
  top: -8rem;
  right: -8rem;
  width: min(72vw, 980px);
  animation: contourDrift 18s ease-in-out infinite;
}

.contour path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawLine 1.8s ease forwards;
}

.contour path:nth-child(2) { animation-delay: 120ms; }
.contour path:nth-child(3) { animation-delay: 240ms; }
.contour path:nth-child(4) { animation-delay: 360ms; }
.contour path:nth-child(5) { animation-delay: 480ms; }
.contour path:nth-child(6) { animation-delay: 600ms; }

.mono-shape {
  position: absolute;
  border: 1px solid rgba(247, 247, 242, 0.16);
  background: rgba(247, 247, 242, 0.025);
  backdrop-filter: blur(8px);
}

.shape-a {
  left: 8vw;
  bottom: 12vh;
  width: 18vw;
  max-width: 280px;
  aspect-ratio: 1 / 1.24;
  transform: rotate(18deg);
}

.shape-b {
  right: 11vw;
  top: 38vh;
  width: 12vw;
  max-width: 180px;
  aspect-ratio: 1;
  transform: rotate(45deg);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

.cursor-orbit {
  position: fixed;
  z-index: 4;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 1px solid rgba(247, 247, 242, 0.24);
  transform: rotate(45deg);
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(247, 247, 242, 0.08);
  backdrop-filter: blur(20px);
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand span {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--line-strong);
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.site-header nav a,
.header-link {
  padding: 0.72rem 0.9rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.site-header nav a:hover,
.header-link:hover {
  color: var(--white);
  background: rgba(247, 247, 242, 0.08);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: 4vw;
  align-items: end;
  padding: 10rem 6vw 5.5rem;
}

.hero-copy {
  display: grid;
  gap: 1.45rem;
  max-width: 1220px;
}

.eyebrow {
  margin-bottom: 0;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.25rem;
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-4px);
}

.button-light {
  color: var(--black);
  background: var(--white);
}

.button-dark {
  color: var(--white);
  background: rgba(247, 247, 242, 0.03);
}

.button-dark:hover {
  background: rgba(247, 247, 242, 0.1);
}

.hero-composition {
  position: relative;
  min-height: min(58vh, 620px);
}

.composition-panel {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.035);
  box-shadow: var(--shadow);
}

.panel-large {
  inset: 8% 8% 10% 0;
  display: grid;
  align-content: space-between;
  padding: 1.35rem;
}

.panel-large span {
  color: var(--quiet);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.panel-large strong {
  align-self: end;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.84;
  letter-spacing: -0.07em;
}

.panel-thin {
  top: 0;
  right: 0;
  width: 30%;
  height: 70%;
}

.composition-ring {
  position: absolute;
  right: 9%;
  bottom: 4%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(247, 247, 242, 0.22);
  animation: slowSpin 18s linear infinite;
}

.composition-ring::before,
.composition-ring::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(247, 247, 242, 0.12);
}

.composition-ring::after {
  inset: 31%;
}

.section {
  position: relative;
  padding: 8rem 6vw;
}

.section-intro {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

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

.project-rail {
  display: grid;
  grid-auto-columns: minmax(21rem, 38vw);
  grid-auto-flow: column;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0 0 1.2rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(247, 247, 242, 0.35) transparent;
}

.project-card {
  min-height: 34rem;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.025);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
}

.project-image {
  min-height: 24rem;
  overflow: hidden;
  background: var(--panel);
}

.project-image img,
.case-hero img {
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.02);
  transition: filter 300ms ease, transform 500ms ease;
}

.project-card:hover img {
  filter: grayscale(1) contrast(1.18);
  transform: scale(1.08);
}

.project-meta {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem;
}

.project-meta span {
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-meta button {
  width: fit-content;
  border: 0;
  padding: 0;
  color: var(--white);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.generated-visual {
  position: relative;
  height: 100%;
  min-height: 24rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(247, 247, 242, 0.12), transparent 28%),
    linear-gradient(315deg, rgba(247, 247, 242, 0.08), transparent 35%),
    var(--panel);
}

.generated-visual strong {
  position: relative;
  z-index: 2;
  font-size: clamp(5rem, 12vw, 11rem);
  line-height: 1;
  letter-spacing: -0.1em;
}

.forge-visual svg {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
}

.forge-visual path {
  fill: none;
  stroke: rgba(247, 247, 242, 0.42);
  stroke-width: 1;
}

.fitness-visual span {
  position: absolute;
  width: 82%;
  height: 1px;
  background: rgba(247, 247, 242, 0.34);
  transform: rotate(-18deg);
}

.fitness-visual span:nth-child(2) {
  transform: rotate(18deg);
}

.fitness-visual span:nth-child(3) {
  width: 42%;
  transform: rotate(90deg);
}

.case-study {
  display: grid;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(20rem, 1.22fr);
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

.case-study.is-changing {
  animation: caseSwap 380ms ease both;
}

.case-hero {
  min-height: 34rem;
  background: var(--panel);
  overflow: hidden;
}

.case-content {
  display: grid;
  align-content: start;
  gap: 1.6rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: rgba(10, 10, 10, 0.96);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.case-grid div {
  padding: 1rem;
  background: var(--black);
}

.case-grid span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.case-link {
  width: fit-content;
  border-bottom: 1px solid var(--white);
  padding-bottom: 0.28rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-grid article {
  min-height: 18rem;
  display: grid;
  align-content: end;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--black);
}

.about-grid p,
.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-section {
  overflow: hidden;
}

.timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 28rem);
  gap: 1px;
  overflow-x: auto;
  padding-bottom: 1.2rem;
  background: linear-gradient(90deg, transparent, var(--line), transparent) left 5.2rem / 100% 1px no-repeat;
  scroll-snap-type: x mandatory;
}

.timeline-item {
  min-height: 24rem;
  display: grid;
  align-content: space-between;
  padding: 1.3rem;
  border: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.025);
  scroll-snap-align: start;
}

.timeline-item span {
  color: var(--quiet);
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

blockquote {
  min-height: 26rem;
  display: grid;
  align-content: space-between;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: var(--black);
}

blockquote p {
  margin-bottom: 2rem;
  font-size: clamp(2.1rem, 5vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.92;
}

blockquote cite {
  color: var(--quiet);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: 4vw;
  align-items: start;
  min-height: 80vh;
  border-top: 1px solid var(--line);
}

.contact-statement {
  position: sticky;
  top: 7rem;
  display: grid;
  gap: 1.3rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-links a {
  border: 1px solid var(--line);
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.contact-links a:hover {
  color: var(--white);
  background: rgba(247, 247, 242, 0.08);
}

.contact-form {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(247, 247, 242, 0.035);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 1rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(247, 247, 242, 0.58);
  background: rgba(0, 0, 0, 0.52);
}

.contact-form button {
  min-height: 3.25rem;
  border: 1px solid var(--white);
  color: var(--black);
  background: var(--white);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.contact-form button:hover {
  transform: translateY(-4px);
  color: var(--white);
  background: var(--black);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.is-active {
  border-color: rgba(247, 247, 242, 0.52);
  background: rgba(247, 247, 242, 0.07);
}

@keyframes contourDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-2rem, 1.2rem, 0) rotate(-2deg);
  }
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes loadUp {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageMask {
  from {
    opacity: 0;
    clip-path: inset(18% 18% 18% 18%);
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes caseSwap {
  from {
    opacity: 0.45;
    transform: translateY(18px);
    clip-path: inset(6% 0 0 0);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 1100px) {
  .hero-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-composition {
    min-height: 24rem;
  }

  .about-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-study {
    grid-template-columns: 1fr;
  }

  .contact-statement {
    position: static;
  }
}

@media (max-width: 760px) {
  .cursor-orbit {
    display: none;
  }

  .site-header {
    grid-template-columns: auto auto;
    padding: 0.9rem 1rem;
  }

  .site-header nav {
    display: none;
  }

  .brand strong {
    max-width: 7rem;
    white-space: normal;
    line-height: 1;
  }

  .header-link {
    padding-right: 0;
  }

  .hero-section {
    min-height: auto;
    padding: 8.5rem 1rem 4rem;
  }

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

  .section {
    padding: 5rem 1rem;
  }

  .project-rail {
    grid-auto-columns: minmax(17.5rem, 86vw);
  }

  .project-card {
    min-height: 30rem;
  }

  .project-image,
  .generated-visual {
    min-height: 20rem;
  }

  .case-hero {
    min-height: 22rem;
  }

  .case-grid,
  .about-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .about-grid article,
  blockquote {
    min-height: 15rem;
  }

  .shape-a,
  .shape-b {
    opacity: 0.55;
  }
}
