:root {
  --bg: #0d1210;
  --bg-elevated: #151b18;
  --ink: #e7ece7;
  --muted: #9aa59c;
  --line: rgba(231, 236, 231, 0.12);
  --accent: #6fd6b0;
  --accent-deep: #3a9f7d;
  --glow: rgba(111, 214, 176, 0.22);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(111, 214, 176, 0.14), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(58, 159, 125, 0.12), transparent 50%),
    linear-gradient(165deg, #101613 0%, var(--bg) 45%, #0a0e0c 100%);
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--space);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.nav-cta {
  opacity: 1 !important;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(8, 12, 10, 0.28);
  backdrop-filter: blur(8px);
  text-shadow: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: fade-scale 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 18%;
  display: block;
  transform: scale(1.04);
  animation: photo-settle 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(8, 12, 10, 0.92) 0%,
      rgba(8, 12, 10, 0.78) 34%,
      rgba(8, 12, 10, 0.28) 62%,
      rgba(8, 12, 10, 0.18) 100%
    ),
    linear-gradient(to top, rgba(8, 12, 10, 0.72) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem var(--space) 4.5rem;
}

.brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.25rem, 12vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  background: linear-gradient(120deg, #f4f7f4 20%, var(--accent) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: rise 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.lede {
  margin: 0 0 2rem;
  max-width: 38ch;
  color: rgba(231, 236, 231, 0.78);
  font-size: 1.05rem;
  animation: rise 0.9s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0a120f;
  box-shadow: 0 0 0 0 var(--glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #86e0bf;
  box-shadow: 0 10px 40px var(--glow);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(231, 236, 231, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 10vw, 7.5rem) var(--space);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-copy {
  margin: 0 0 1.25rem;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-copy:last-of-type {
  margin-bottom: 2rem;
}

.about {
  border-top: 1px solid var(--line);
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  border-top: 1px solid var(--line);
}

.fact-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.15rem;
}

.fact-value {
  color: var(--ink);
  font-size: 1rem;
}

.work-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.work-list li {
  border-bottom: 1px solid var(--line);
}

.work-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.15rem;
}

.work-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.work-meta {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
  max-width: 28rem;
}

.contact {
  border-top: 1px solid var(--line);
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #86e0bf;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--space) 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.footer-mark {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

@keyframes brand-in {
  from {
    opacity: 0;
    letter-spacing: 0.08em;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    letter-spacing: -0.045em;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-scale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes photo-settle {
  from {
    transform: scale(1.08);
    opacity: 0.6;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero-photo {
    object-position: 48% 12%;
  }

  .hero-shade {
    background:
      linear-gradient(
        to top,
        rgba(8, 12, 10, 0.94) 0%,
        rgba(8, 12, 10, 0.72) 38%,
        rgba(8, 12, 10, 0.35) 70%,
        rgba(8, 12, 10, 0.2) 100%
      );
  }

  .hero-content {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .brand {
    font-size: clamp(3.6rem, 18vw, 5.5rem);
  }

  .headline {
    max-width: 18ch;
  }

  .work-item {
    flex-direction: column;
    gap: 0.35rem;
  }

  .work-meta {
    text-align: left;
    max-width: none;
  }

  .fact-list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 520px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .headline,
  .lede,
  .cta-row,
  .hero-media,
  .hero-photo,
  .section {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .hero-photo {
    transform: scale(1.02);
  }
}
