/* ============================================================
   Everywhere.id — landing page
   Style: fantasy.co editorial (oversized type, mono + splash,
   numbered sections, scroll motion) × "Sunset Festival" warmth
   ============================================================ */

:root {
  /* base — warm paper + ink */
  --bg: #f6f1e7;
  --bg-2: #efe8da;
  --ink: #181208;
  --ink-soft: #2c2418;
  --muted: #7a6f5d;
  --line: rgba(24, 18, 8, 0.14);

  /* festival accents — coral is the "splash", others are playful pops */
  --coral: #ff4b34;
  --pink: #ff2e93;
  --yellow: #ffb703;
  --blue: #00b4d8;

  --maxw: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Archivo", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, monospace;
}

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

::selection { background: var(--coral); color: #fff; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }

/* ---------- shared display type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.accent-text { color: var(--coral); }
.statement em { font-style: italic; font-weight: 500; text-transform: none; letter-spacing: -0.02em; }

/* line-mask reveal (hero + contact titles) */
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line > span { display: block; transform: translateY(110%); }
.on-load { opacity: 0; transform: translateY(16px); }

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--coral) 50%, var(--pink));
  z-index: 200; transition: width .1s linear;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(24px, 4vw, 48px);
  transition: padding .3s var(--ease);
}
/* frosted background lives on a pseudo so .nav itself does NOT become a
   containing block for the fixed mobile menu (which would crop its height) */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 241, 231, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .4s var(--ease);
}
.nav.scrolled::before { opacity: 1; }
.nav.scrolled { padding-block: 13px; }
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 9px;
}
.brand__id { color: var(--coral); }
.brand__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 0 0 rgba(255,75,52,.5);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,75,52,.5);} 70%,100%{box-shadow:0 0 0 9px rgba(255,75,52,0);} }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 9px 15px; border-radius: 999px; color: var(--ink-soft);
  font-weight: 500; font-size: .92rem; transition: color .25s, background .25s;
}
.nav__idx { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.nav__links a:hover { background: var(--bg-2); }
.nav__links a:hover .nav__idx { color: var(--coral); }
.nav__cta { background: var(--ink); color: #fff !important; font-weight: 600; }
.nav__cta:hover { background: var(--coral); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px clamp(24px, 4vw, 48px) 64px; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .42; will-change: transform; }
.orb--1 { width: 560px; height: 560px; background: var(--coral); top: -160px; right: -80px; animation: float1 17s ease-in-out infinite; }
.orb--2 { width: 480px; height: 480px; background: var(--yellow); bottom: -180px; left: -60px; animation: float2 21s ease-in-out infinite; }
.orb--3 { width: 380px; height: 380px; background: var(--pink); top: 35%; left: 60%; opacity: .3; animation: float1 24s ease-in-out infinite reverse; }
@keyframes float1 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-50px,40px) scale(1.1);} }
@keyframes float2 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(50px,-30px) scale(1.08);} }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(24,18,8,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(24,18,8,.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 30%, transparent 100%);
}

.hero__meta { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 44px); }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.4);
}
.hero__coords { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); letter-spacing: .02em; }

.hero__title { position: relative; z-index: 1; font-size: clamp(3rem, 12.5vw, 11rem); }

.hero__foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 48px); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--ink-soft); max-width: 420px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: .9rem; padding: 15px 28px; border-radius: 999px;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; cursor: pointer;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--coral); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255,75,52,.32); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint__txt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.scroll-hint__line { width: 1px; height: 44px; background: linear-gradient(var(--ink), transparent); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--coral); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{transform:translateY(-100%);} 100%{transform:translateY(250%);} }

/* ---------- MARQUEE ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--ink); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 26s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(1.4rem, 3vw, 2.4rem); color: #f6f1e7; display: inline-flex; align-items: center; padding-inline: 28px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; margin-left: 28px; display: inline-block; }
.dot--coral { background: var(--coral); } .dot--yellow { background: var(--yellow); }
.dot--pink { background: var(--pink); } .dot--blue { background: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTION BASE / EDITORIAL ---------- */
.section { padding: clamp(80px, 12vw, 170px) 0; position: relative; }
.editorial--alt { background: var(--bg-2); }
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.sec-num { font-family: var(--font-mono); font-size: .85rem; font-weight: 700; color: #fff; background: var(--ink); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.kicker { font-family: var(--font-mono); font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.statement { font-size: clamp(2.1rem, 6vw, 5.2rem); max-width: 16ch; }
.editorial .statement, .why .statement, .products .statement { margin-bottom: 8px; }

.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1.7vw, 1.35rem); max-width: 60ch; margin-top: 28px; line-height: 1.5; }

/* ---------- MISSION ---------- */
.mission__grid { margin-top: clamp(48px, 7vw, 90px); border-top: 1px solid var(--line); }
.mission__row { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; transition: padding-left .35s var(--ease); }
.mission__row:hover { padding-left: 14px; }
.mission__n { font-family: var(--font-mono); font-size: .9rem; color: var(--coral); font-weight: 700; padding-top: 6px; }
.mission__row p { font-size: clamp(1.25rem, 2.6vw, 2rem); font-family: var(--font-display); font-weight: 600; text-transform: none; line-height: 1.18; letter-spacing: -.01em; max-width: 22ch; }

/* ---------- VISION ---------- */
.vision__list { margin-top: clamp(48px, 7vw, 90px); display: grid; gap: 0; }
.vrow { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); align-items: start; }
.vrow:last-child { border-bottom: 1px solid var(--line); }
.vrow__n { font-size: 2.4rem; line-height: 1; color: var(--coral); }
.vrow__body h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.6rem); letter-spacing: -.02em; margin-bottom: 14px; }
.vrow__body p { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 58ch; }

/* ---------- PRODUCTS / SHOWCASE ---------- */
.products .container:first-child { margin-bottom: clamp(40px, 6vw, 70px); }
.showcase { padding: clamp(50px, 8vw, 110px) 0; }
.showcase--alt { background: var(--bg-2); }
.showcase__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.showcase__idx { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .1em; color: var(--coral); font-weight: 700; }
.showcase__name { font-size: clamp(2.2rem, 5.5vw, 4.4rem); margin: 14px 0 18px; }
.showcase__headline { font-family: var(--font-display); font-weight: 600; text-transform: none; font-size: clamp(1.2rem, 2.4vw, 1.7rem); letter-spacing: -.01em; margin-bottom: 18px; }
.showcase__body { color: var(--muted); font-size: 1.08rem; max-width: 52ch; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.chips li { font-family: var(--font-mono); font-size: .78rem; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }

/* media frame + parallax */
.media-frame {
  position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 14px 36px rgba(24, 18, 8, .10);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.media-frame:hover { transform: translateY(-7px); box-shadow: 0 30px 60px rgba(255, 75, 52, .20); }
/* light sweep on hover */
.media-frame::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 55%; height: 100%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
}
.media-frame:hover::after { left: 135%; transition: left .85s var(--ease); }
.img-placeholder {
  position: absolute; inset: -8%; /* extra room for parallax */
  display: grid; place-content: center; gap: 8px; text-align: center; padding: 24px;
  background:
    linear-gradient(135deg, rgba(255,183,3,.22), rgba(255,75,52,.18) 50%, rgba(255,46,147,.22)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.45) 0 14px, transparent 14px 28px);
  will-change: transform;
}
.img-placeholder::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 25%, rgba(0,180,216,.25), transparent 55%); pointer-events: none; }
.img-placeholder__label { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; color: var(--ink); position: relative; }
.img-placeholder__hint { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); position: relative; }
.img-placeholder--avatar { position: relative; inset: auto; width: 92px; height: 92px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.img-placeholder--avatar .img-placeholder__label { font-size: .78rem; }

/* real images (product posters shown in full) */
.media-img { display: block; width: 100%; height: auto; transition: transform .8s var(--ease); }
.media-frame:hover .media-img { transform: scale(1.04); }
.avatar-img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- WHY (interactive editorial list) ---------- */
.why__list { list-style: none; margin-top: clamp(48px, 7vw, 90px); border-top: 1px solid var(--line); }
.why-row {
  display: grid; grid-template-columns: 70px minmax(220px, 1fr) 2fr; gap: 24px; align-items: baseline;
  padding: 30px 14px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate;
  transition: background .4s var(--ease), padding-left .4s var(--ease), color .4s;
}
.why-row::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--ink); z-index: -1; transition: width .4s var(--ease); }
.why-row:hover { color: #fff; padding-left: 26px; }
.why-row:hover::before { width: 100%; }
.why-row__n { font-family: var(--font-mono); font-size: .85rem; color: var(--coral); font-weight: 700; }
.why-row__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.why-row__desc { color: var(--muted); font-size: 1rem; max-width: 52ch; transition: color .4s; }
.why-row:hover .why-row__desc { color: rgba(255,255,255,.78); }
.why-row:hover .why-row__n { color: var(--yellow); }

/* ---------- CONTACT ---------- */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: 0; }
.contact__bg .orb--1 { width: 500px; height: 500px; background: var(--yellow); top: -140px; left: 8%; }
.contact__bg .orb--2 { width: 460px; height: 460px; background: var(--coral); bottom: -180px; right: 6%; }
.contact__inner { position: relative; z-index: 1; }
.contact__title { font-size: clamp(2.6rem, 9vw, 8rem); margin: 8px 0 4px; }
.contact__card {
  display: inline-flex; align-items: center; gap: 24px; margin-top: 48px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 24px 34px; flex-wrap: wrap;
}
.contact__name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: 10px; }
.contact__links { display: flex; flex-direction: column; gap: 5px; }
.contact__links a { font-family: var(--font-mono); font-size: .92rem; color: rgba(255,255,255,.72); transition: color .2s; }
.contact__links a:hover { color: var(--yellow); }
.contact__role { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); display: block; margin-bottom: 12px; }
.contact__email { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.3rem); letter-spacing: -.01em; color: #fff; transition: color .2s; }
.contact__email:hover { color: var(--yellow); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg-2); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .85rem; font-family: var(--font-mono); }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- LENIS smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- CUSTOM CURSOR ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; will-change: transform; opacity: 0; transition: opacity .3s; }
.cursor.is-active { opacity: 1; }
.cursor--dot { width: 7px; height: 7px; background: #fff; margin: -3.5px 0 0 -3.5px; }
.cursor--ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid #fff; transition: width .28s var(--ease), height .28s var(--ease), margin .28s var(--ease), background .28s, opacity .3s; }
.cursor--ring.is-hover { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(255,255,255,.14); }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button { cursor: none; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .showcase__row { grid-template-columns: 1fr; }
  .showcase--alt .media-frame { order: 2; }
  .why-row { grid-template-columns: 50px 1fr; }
  .why-row__desc { grid-column: 2; }
  .mission__row { grid-template-columns: 56px 1fr; gap: 16px; }
  .vrow { grid-template-columns: 60px 1fr; gap: 18px; }

  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 4px;
    background: rgba(246,241,231,.98); backdrop-filter: blur(20px);
    padding: 40px 28px; transform: translateX(100%); transition: transform .45s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav__links.open { transform: none; }
  .nav__links a { padding: 15px 18px; font-size: 1.1rem; }
  .nav__toggle { display: flex; z-index: 101; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; }
  .reveal, .on-load { opacity: 1 !important; transform: none !important; transition: none; }
  .line > span { transform: none !important; }
  html { scroll-behavior: auto; }
}
