:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-faint: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --nav-h: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ——— Nav ——— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 245, 247, 0.86);
}

.nav__brand {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.88;
  transition: opacity 0.2s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
}

.nav__cta {
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff !important;
  opacity: 1 !important;
  font-weight: 500 !important;
  transition: background 0.2s var(--ease) !important;
}

.nav__cta:hover {
  background: var(--blue-hover);
}

.nav__menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav__menu span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px 24px;
  background: rgba(245, 245, 247, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer a {
  padding: 14px 8px;
  font-size: 17px;
  font-weight: 500;
  border-radius: 10px;
}

.nav-drawer a:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 32px) 24px 56px;
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 70% 22%, #fff8ef 0%, transparent 55%),
    linear-gradient(180deg, #d9e4ef 0%, #c5d3e2 38%, #aebfcf 68%, #8fa3b5 100%);
  animation: skyDrift 28s ease-in-out infinite alternate;
}

.hero__haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 78% 62% at 50% 46%,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(245, 245, 247, 0.72) 38%,
      rgba(245, 245, 247, 0.28) 62%,
      transparent 78%
    ),
    linear-gradient(180deg, rgba(245, 245, 247, 0.4) 0%, transparent 30%),
    linear-gradient(0deg, rgba(245, 245, 247, 0.45) 0%, transparent 36%);
}

.hero__terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.hero__ridge {
  transform-origin: center bottom;
}

.hero__ridge--far {
  animation: ridgeFloat 18s ease-in-out infinite alternate;
}

.hero__ridge--mid {
  animation: ridgeFloat 14s ease-in-out infinite alternate-reverse;
}

.hero__light {
  position: absolute;
  top: 18%;
  right: 22%;
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 235, 0.85) 0%, transparent 70%);
  filter: blur(8px);
  animation: lightPulse 10s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  text-align: center;
  padding: 28px 20px;
  animation: heroIn 1.1s var(--ease-out) both;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: -12% -6%;
  z-index: -1;
  background: radial-gradient(
    ellipse 58% 65% at 50% 45%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 76%
  );
  pointer-events: none;
}

.hero__brand {
  margin: 0 0 12px;
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: #000000;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #1d1d1f;
}

.hero__sub {
  margin: 0 auto 28px;
  max-width: 440px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #1d1d1f;
  opacity: 0.82;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-hover);
}

.btn--ghost {
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(0, 0, 0, 0.1);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-transform: none;
}

.lede {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

/* ——— Craft ——— */
.craft {
  position: relative;
  padding: clamp(80px, 12vw, 140px) clamp(24px, 5vw, 48px);
  text-align: center;
  background:
    radial-gradient(ellipse 90% 70% at 15% 20%, rgba(186, 210, 230, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 75%, rgba(210, 220, 232, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #f5f5f7 0%, #e8eef5 42%, #e2eaf3 100%);
}

.craft__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.craft h2 {
  margin: 0 auto 20px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 16ch;
}

.craft__lede {
  max-width: 560px;
  margin: 0 auto 56px;
}

.craft__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  text-align: left;
  border-top: 1px solid var(--line);
}

.craft__list li {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.craft__list strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.craft__list span {
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ——— Studio ——— */
.studio {
  position: relative;
  padding: clamp(80px, 12vw, 140px) clamp(24px, 5vw, 48px);
  background:
    radial-gradient(ellipse 80% 75% at 50% 35%, rgba(255, 255, 255, 0.7) 0%, transparent 58%),
    radial-gradient(ellipse 55% 50% at 8% 80%, rgba(176, 196, 214, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 45% at 92% 15%, rgba(200, 214, 228, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #e2eaf3 0%, #d7e2ee 48%, #e8eef4 100%);
}

.studio__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.studio h2 {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.studio .lede {
  max-width: 540px;
  margin: 0 auto;
}

/* ——— Contact ——— */
.contact {
  position: relative;
  padding: clamp(80px, 12vw, 140px) clamp(24px, 5vw, 48px) clamp(100px, 14vw, 160px);
  text-align: center;
  background:
    radial-gradient(ellipse 75% 65% at 50% 40%, rgba(255, 252, 248, 0.65) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 20% 90%, rgba(196, 214, 230, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 85% 20%, rgba(214, 224, 234, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #e8eef4 0%, #eef2f6 40%, #f5f5f7 100%);
}

.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.contact h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.contact .lede {
  margin: 0 auto 36px;
  max-width: 420px;
}

/* ——— Footer ——— */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(24px, 5vw, 48px) 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
  background: linear-gradient(180deg, #f5f5f7 0%, #ebeff4 100%);
}

.footer__brand {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a:hover {
  color: var(--ink);
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* ——— Animations ——— */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skyDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04) translateY(-1%);
  }
}

@keyframes ridgeFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@keyframes lightPulse {
  from {
    opacity: 0.75;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .craft__list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .nav__links {
    display: none;
  }

  .nav__menu {
    display: flex;
  }

  .hero {
    align-items: center;
    padding-bottom: 48px;
  }

  .hero__brand {
    margin-bottom: 12px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  html {
    scroll-behavior: auto;
  }
}
