:root {
  --background: #f7f5f2;
  --surface: #f0ede8;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #8a8885;
  --accent: #b89a78;
  --accent-soft: rgba(184, 154, 120, 0.18);
  --glow-warm: rgba(212, 188, 152, 0.35);
  --glow-cool: rgba(168, 178, 188, 0.22);
  --focus-ring: rgba(29, 29, 31, 0.35);
  --max-width: 1120px;
  --page-pad-x: clamp(1.25rem, 4vw, 3rem);
  --page-pad-y: clamp(1.25rem, 3.5vw, 2.25rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--text-primary);
}

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

/* —— Ambient background —— */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #fbf9f6 0%, transparent 55%),
    linear-gradient(180deg, var(--background) 0%, var(--surface) 100%);
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.9;
  will-change: transform;
}

.ambient__glow--one {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  top: -18%;
  left: 50%;
  transform: translateX(-55%);
  background: var(--glow-warm);
  animation: drift-one 28s var(--ease-out) infinite alternate;
}

.ambient__glow--two {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  bottom: -12%;
  right: -8%;
  background: var(--glow-cool);
  animation: drift-two 34s var(--ease-out) infinite alternate;
}

.ambient__glow--three {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  bottom: 18%;
  left: -10%;
  background: var(--accent-soft);
  animation: drift-three 32s var(--ease-out) infinite alternate;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image:
    linear-gradient(to right, var(--text-primary) 1px, transparent 1px),
    linear-gradient(to bottom, var(--text-primary) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes drift-one {
  from { transform: translateX(-55%) translateY(0); }
  to { transform: translateX(-45%) translateY(18px); }
}

@keyframes drift-two {
  from { transform: translate(0, 0); }
  to { transform: translate(-24px, -16px); }
}

@keyframes drift-three {
  from { transform: translate(0, 0); }
  to { transform: translate(20px, 14px); }
}

/* —— Page shell —— */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--page-pad-y) var(--page-pad-x);
}

/* —— Header —— */

.header {
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(12px);
  animation: fade-up 0.8s var(--ease-out) 0.05s forwards;
}

.brand__mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #d4bc98 0%, var(--accent) 55%, #9a7d5c 100%);
  box-shadow: 0 0 0 4px rgba(184, 154, 120, 0.12);
  flex-shrink: 0;
}

.brand__name {
  font-size: clamp(0.8125rem, 1.6vw, 0.9375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* —— Hero —— */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 7vh, 4.5rem) 0;
}

.hero__content {
  width: 100%;
  max-width: 820px;
  text-align: center;
  margin: 0 auto;
  transform: translateY(-2.5vh);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 7.2vw, 6.25rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text-primary);
}

.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
}

.hero__title-line:nth-child(1) {
  animation: fade-up 0.85s var(--ease-out) 0.18s forwards;
}

.hero__title-line:nth-child(2) {
  animation: fade-up 0.85s var(--ease-out) 0.3s forwards;
}

.hero__subtitle {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.1vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(14px);
  animation: fade-up 0.85s var(--ease-out) 0.48s forwards;
}

/* —— Footer —— */

.footer {
  flex-shrink: 0;
  padding-bottom: 0.15rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up 0.8s var(--ease-out) 0.7s forwards;
}

.footer__copy {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-align: center;
}

.footer__copy a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__copy a:hover {
  color: var(--text-primary);
}

.footer__sep {
  color: var(--text-muted);
  opacity: 0.7;
}

/* —— Motion —— */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ambient__glow,
  .brand,
  .hero__title-line,
  .hero__subtitle,
  .footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— Responsive —— */

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2.25rem, 11.5vw, 3rem);
    letter-spacing: -0.04em;
  }

  .hero__subtitle br {
    display: none;
  }

  .hero__content {
    transform: translateY(-1vh);
  }

  .footer__copy {
    flex-direction: column;
    gap: 0.45rem;
  }

  .footer__sep {
    display: none;
  }
}

@media (max-height: 640px) {
  .hero {
    padding: 1.5rem 0;
  }

  .hero__content {
    transform: none;
  }
}

@media (min-width: 481px) and (max-width: 900px) {
  .hero__title {
    font-size: clamp(3rem, 8vw, 4.5rem);
  }
}

@media (min-width: 1440px) {
  :root {
    --max-width: 1200px;
  }
}

@media (min-width: 1920px) {
  :root {
    --max-width: 1280px;
  }
}
