:root {
  --bg: #f5efe5;
  --bg-deep: #1b2b2b;
  --panel: rgba(255, 252, 246, 0.84);
  --panel-strong: #fffaf2;
  --ink: #162322;
  --muted: #465352;
  --line: rgba(22, 35, 34, 0.1);
  --gold: #d39231;
  --gold-soft: #f0c989;
  --teal: #1f6c67;
  --shadow: 0 24px 80px rgba(20, 34, 34, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(211, 146, 49, 0.14), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(31, 108, 103, 0.13), transparent 24%),
    linear-gradient(180deg, #f9f4ea 0%, #f2ebdf 55%, #efe6d7 100%);
}

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

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(24, 35, 34, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-contact {
  min-height: 44px;
  padding: 0 20px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  grid-template-areas:
    "copy visual"
    "copy actions"
    "copy points";
  align-items: center;
  column-gap: clamp(28px, 5vw, 62px);
  row-gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(18px, 3vw, 28px);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(145deg, rgba(255, 250, 243, 0.94), rgba(250, 240, 224, 0.82)),
    rgba(255, 251, 246, 0.8);
  box-shadow: var(--shadow);
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 146, 49, 0.22), transparent 70%);
  pointer-events: none;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 12.5ch;
  font-size: clamp(3.15rem, 6.5vw, 5.5rem);
}

.hero h1 span {
  display: block;
}

.lead-points {
  color: var(--muted);
  line-height: 1.65;
}

.lead-points {
  max-width: 56ch;
  margin: 22px 0 0;
  padding-left: 20px;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
}

.lead-points li + li {
  margin-top: 8px;
}

.hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #fff9ef;
  background: linear-gradient(135deg, #183737, #1f6c67);
  box-shadow: 0 18px 38px rgba(18, 51, 50, 0.22);
}

.hero-points {
  grid-area: points;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 0;
}

.hero-points span {
  padding: 10px 14px;
  border: 1px solid rgba(22, 35, 34, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-visual {
  grid-area: visual;
  position: relative;
  min-height: clamp(300px, 38vw, 430px);
  isolation: isolate;
}

.orb,
.signal-grid,
.portrait-wrap {
  position: absolute;
}

.orb {
  border-radius: 50%;
  filter: blur(6px);
  animation: float 9s ease-in-out infinite;
}

.orb-gold {
  top: 20px;
  right: 18px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(240, 201, 137, 0.95), rgba(211, 146, 49, 0.18));
}

.orb-sand {
  bottom: 64px;
  left: 24px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 250, 236, 0.96), rgba(31, 108, 103, 0.12));
  animation-duration: 11s;
}

.signal-grid {
  inset: 50px 30px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 28px;
  background-image:
    linear-gradient(rgba(31, 108, 103, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 108, 103, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  transform: rotate(8deg);
}

.portrait-wrap {
  right: max(18px, 8%);
  bottom: 36px;
  width: min(360px, 82%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.82), rgba(240, 230, 214, 0.92));
  box-shadow: 0 28px 70px rgba(24, 38, 37, 0.18);
  animation: portrait-float 7s ease-in-out infinite;
  cursor: pointer;
}

.portrait-wrap.is-wild {
  animation: portrait-wild 1s linear;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}

@keyframes portrait-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-1.5deg);
  }

  35% {
    transform: translate3d(18px, -52px, 0) rotate(2.5deg);
  }

  70% {
    transform: translate3d(-16px, 22px, 0) rotate(-3deg);
  }
}

@keyframes portrait-wild {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-1.5deg) scale(1);
  }

  12% {
    transform: translate3d(-34px, -46px, 0) rotate(-14deg) scale(1.04);
  }

  24% {
    transform: translate3d(42px, 30px, 0) rotate(16deg) scale(0.98);
  }

  36% {
    transform: translate3d(-22px, 54px, 0) rotate(-20deg) scale(1.06);
  }

  48% {
    transform: translate3d(50px, -38px, 0) rotate(18deg) scale(1.01);
  }

  60% {
    transform: translate3d(-46px, -18px, 0) rotate(-12deg) scale(1.05);
  }

  72% {
    transform: translate3d(26px, 48px, 0) rotate(22deg) scale(0.99);
  }

  84% {
    transform: translate3d(-18px, -34px, 0) rotate(-10deg) scale(1.03);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-areas:
      "copy"
      "visual"
      "actions"
      "points";
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-visual {
    display: grid;
    place-items: center;
    width: min(460px, 100%);
    min-height: clamp(260px, 48vw, 360px);
  }

  .lead-points {
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .portrait-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(310px, 72vw);
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    gap: 10px;
    padding: 10px 12px;
  }

  .nav {
    flex-shrink: 0;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-contact {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero {
    gap: 16px;
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .hero h1 {
    max-width: 11ch;
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .lead-points {
    margin-top: 8px;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: min(100%, 280px);
  }

  .hero-points span {
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  .portrait-wrap {
    width: min(250px, 68vw);
  }
}

@media (max-width: 420px) {
  .brand span {
    max-width: 112px;
  }

  .nav-contact {
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lead-points {
    padding-left: 18px;
    font-size: 0.93rem;
  }

  .hero-visual {
    min-height: 250px;
  }

  .portrait-wrap {
    width: min(222px, 66vw);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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