:root {
  --bg: #f1f3f2;
  --ink: #111312;
  --muted: #3c403e;
  --line: rgba(17, 19, 18, 0.07);
  --mint: #c9f2d6;
  --mint-2: #dff7e6;
  --green: #3ed39a;
  --green-2: #8ff0a8;
  --glass: rgba(255, 255, 255, 0.62);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 3vw, 28px);
}

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

html, body { height: 100%; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;            /* (clip, where supported, doesn't turn body into a scroll box) */
}

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

.sr-filters { position: absolute; width: 0; height: 0; }

/* ---------- Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.85;
  will-change: transform;
}
.bg__blob--1 { width: 55vw; height: 55vw; left: -18vw; bottom: -22vw; background: var(--mint); }
.bg__blob--2 { width: 45vw; height: 45vw; right: -14vw; top: -16vw;  background: var(--mint-2); }
.bg__blob--3 { width: 30vw; height: 30vw; right: 10vw; bottom: -12vw; background: #e4f6ec; opacity: .7; }

.bg__cursor {
  position: absolute;
  width: 420px; height: 420px;
  left: -210px; top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 240, 168, .35), transparent 65%);
  will-change: transform;
}

.bg__lines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  padding: 0 4.5vw;
}
.bg__lines span {
  border-left: 1px solid var(--line);
  transform-origin: top;
}
.bg__lines span:last-child { border-right: 1px solid var(--line); }

.bg__noise {
  position: absolute;
  inset: -50%;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Sparkles ---------- */
.sparkles { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.sparkle {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  fill: var(--ink);
  animation: twinkle 3.6s ease-in-out var(--d) infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(.55) rotate(45deg); opacity: .55; }
}

/* ---------- Nav (notch) ---------- */
.nav {
  --notch: #111312;
  --notch-ink: #eef3f0;
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 94px;
  padding: 0 4.8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}
.nav :is(a, button) { pointer-events: auto; }
/* soft fade so the bar reads over whatever scrolls beneath it */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 -18px;
  z-index: -2;
  background: linear-gradient(rgba(241, 243, 242, .78), transparent);
  pointer-events: none;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--green); }

/* the notch: hangs from the top edge, inverse-rounded where it meets it */
.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 62px;
  padding: 6px 12px 8px;
  display: flex;
  align-items: center;
  background: var(--notch);
  color: var(--notch-ink);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
  pointer-events: auto;
}
.notch::before,
.notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
}
.notch::before { left: -22px;  background: radial-gradient(circle at 0 100%, transparent 21.5px, var(--notch) 22px); }
.notch::after  { right: -22px; background: radial-gradient(circle at 100% 100%, transparent 21.5px, var(--notch) 22px); }

.notch__links { display: flex; gap: 2px; align-items: center; font-size: 13px; }
.notch__links a,
.notch__trigger {
  min-height: 44px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s, box-shadow .18s;
}
.notch__links a svg { color: rgba(201, 242, 214, .72); }
.notch__links a:hover,
.notch__trigger:hover,
.notch__trigger[aria-expanded="true"] {
  background: rgba(201, 242, 214, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}
.notch__links a.is-active { background: rgba(201, 242, 214, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09); }
.notch__links a.is-active svg { color: var(--green-2); }

.notch__trigger {
  display: none;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  justify-content: center;
  gap: 10px;
  min-width: 130px;
}
.notch__trigger svg { opacity: .6; transition: transform .18s; }
.notch__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__actions { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav__quote { font-size: 11px; letter-spacing: .04em; opacity: .7; transition: opacity .2s; }
.nav__quote:hover { opacity: 1; }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--mint);
  border: 1px solid rgba(62, 211, 154, .35);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s, transform .18s;
}
.nav__cta:hover { background: var(--green-2); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 4.5vw;
  overflow-x: clip;            /* the stone's hover loupe bleeds 150px past the image; never let it widen the page */
}

.hero__title {
  position: absolute;
  top: clamp(90px, 11vw, 140px);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 15.5vw, 280px);
  line-height: .9;
  letter-spacing: -0.045em;
  white-space: nowrap;
  user-select: none;
}

.hero__sharp { display: inline-flex; overflow: hidden; padding-bottom: .08em; }
.hero__sharp .char { display: inline-block; }

.hero__design { position: relative; display: inline-block; }

.hero__blur {
  display: inline-block;
  filter: url(#grain-blur);
  opacity: .92;
  padding: 0 .02em .08em;
}

/* Floating flower stone, sitting in front of the blurred word */
.hero__stone {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 42%;
  display: block;
  width: 96%;
  margin-left: -48%;
  aspect-ratio: 1774 / 887;
  pointer-events: none;
  filter: drop-shadow(0 30px 30px rgba(20, 40, 30, .18));
  will-change: transform;
}

.hero__stone img { display: block; width: 100%; height: 100%; }

/* Outline loupe (WebGL) — only shown while hovering; bleeds past the image so the lens isn't clipped */
.hero__stone-fx {
  position: absolute;
  /* bleeds a fixed 150px past the image on every side — more than the loupe's radius (110px) plus its
     shadow — so the lens is never clipped, however small the stone is on screen */
  left: -150px; top: -150px;
  width: calc(100% + 300px); height: calc(100% + 300px);
  visibility: hidden;
}
.hero__stone.is-lens .hero__stone-fx { visibility: visible; }
.hero__stone.is-lens img { visibility: hidden; }

.stone-lens-tag {
  position: absolute;
  left: -150px; top: -150px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font: 500 10px/1 var(--mono);
  letter-spacing: .06em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

/* Figma-style selection box around the stone */
.stone-select {
  --sel: #23b97f;
  position: absolute;
  border: 1px solid var(--sel);
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.hero__stone.is-hover .stone-select { opacity: 1; transform: scale(1); }
.stone-select__h {
  position: absolute;
  width: 9px; height: 9px;
  margin: -5px 0 0 -5px;
  background: #fff;
  border: 1px solid var(--sel);
  transform: scale(0);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.hero__stone.is-hover .stone-select__h { transform: scale(1); }
.stone-select__h--nw { left: 0;    top: 0; }
.stone-select__h--n  { left: 50%;  top: 0;    transition-delay: .03s; }
.stone-select__h--ne { left: 100%; top: 0;    transition-delay: .06s; }
.stone-select__h--e  { left: 100%; top: 50%;  transition-delay: .09s; }
.stone-select__h--se { left: 100%; top: 100%; transition-delay: .12s; }
.stone-select__h--s  { left: 50%;  top: 100%; transition-delay: .15s; }
.stone-select__h--sw { left: 0;    top: 100%; transition-delay: .18s; }
.stone-select__h--w  { left: 0;    top: 50%;  transition-delay: .21s; }
.stone-select__name,
.stone-select__size {
  position: absolute;
  font: 500 10px/1 var(--mono);
  letter-spacing: .04em;
  white-space: nowrap;
}
.stone-select__name { left: 0; bottom: calc(100% + 8px); color: var(--sel); }
.stone-select__size {
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--sel);
  color: #fff;
}

.hero__copy {
  position: absolute;
  top: clamp(270px, 30vw, 420px);
  left: 10.5vw;
  max-width: 260px;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.4;
  color: var(--muted);
}
.hero__lead { margin-left: 6.5vw; margin-bottom: 22px; }

.hero__meta {
  position: absolute;
  z-index: 3;
  right: 4.5vw;
  top: clamp(270px, 30vw, 420px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(62, 211, 154, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 10px rgba(62, 211, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 211, 154, 0); }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  width: 1px; height: 46px;
  background: linear-gradient(var(--ink), transparent);
  transform-origin: top;
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Crosshair cursor ---------- */
.xhair {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  display: none;
}
.xhair.is-on { display: block; }
.xhair.is-visible { opacity: 1; }
.xhair__line {
  position: absolute;
  left: 0; top: 0;
  background: var(--ink);
  opacity: .14;
  will-change: transform;
}
.xhair__line--h { width: 100%; height: 1px; }
.xhair__line--v { width: 1px; height: 100%; }
.xhair__point { position: absolute; left: 0; top: 0; will-change: transform; }
.xhair__plus {
  position: absolute;
  width: 15px; height: 15px;
  left: -7px; top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat;
  transition: transform .4s ease, opacity .3s ease;
}
.xhair__dot {
  position: absolute;
  width: 8px; height: 8px;
  left: -4px; top: -4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(62, 211, 154, .18);
  transition: transform .4s ease;
}
.xhair__coords {
  position: absolute;
  left: 14px; top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font: 500 10px/1 var(--mono);
  letter-spacing: .08em;
  color: var(--ink);
  opacity: .55;
  white-space: nowrap;
}
.xhair__coords b { font-weight: 500; }
.xhair.is-link .xhair__plus { transform: rotate(45deg) scale(1.6); opacity: .5; }
.xhair.is-link .xhair__dot { transform: scale(2.2); }

/* Hide the native cursor where the crosshair takes over */
.has-xhair .hero, .has-xhair .bg, .has-xhair .jungle, .has-xhair .me { cursor: none; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  z-index: 15;
  top: 84px;
  left: var(--gutter); right: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .9);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
.mobile-menu a:hover { background: var(--mint-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .notch__links { display: none; }
  .notch__trigger { display: flex; }
}

@media (max-width: 640px) {
  .nav { height: 74px; padding: 0 16px; }
  .nav__logo { font-size: 22px; }
  .notch { height: 54px; padding: 4px 8px 6px; }
  .notch__trigger { min-width: 86px; font-size: 11px; gap: 6px; padding: 0 12px; }
  .nav__quote { display: none; }
  .nav__cta { min-height: 36px; padding: 8px 12px; font-size: 11px; }
}

@media (max-width: 960px) {
  .hero__copy { left: 4.5vw; }
  .hero__lead { margin-left: 0; }
}

@media (max-width: 640px) {

  .hero__title { flex-direction: column; align-items: center; font-size: 24vw; top: 110px; line-height: .85; }
  .hero__copy { top: auto; bottom: 120px; left: 16px; right: 16px; max-width: none; }
  .hero__meta { top: auto; bottom: 260px; left: 16px; right: auto; }
  .bg__lines { grid-template-columns: repeat(4, 1fr); }
  .bg__lines span:nth-child(n+5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
