/* Whyo public site — Hearth pack. Classic landing tokens are not used here. */
:root {
  --bg: #f4efe6;
  --ink: #1c1917;
  --dim: #57534e;
  --accent: #9f3f16;
  --on-accent: #fff8f3;
  --line: #e0d8cc;
  --card: #ffffff;
  --header: #e7dfd2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Figtree, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  overflow-x: clip;
}
a { color: inherit; }
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 7vw;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.brand img { width: 36px; height: 36px; border-radius: 12px; object-fit: cover; }
.lang-select {
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  min-height: 44px; border-radius: 999px; padding: 8px 12px; font: inherit; max-width: 160px;
}
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; color: var(--dim); }
.nav-links a { text-decoration: none; }
.nav-links > a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
  text-decoration: none; padding: 12px 20px; border-radius: 999px;
  border: 0; cursor: pointer;
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); filter: none; }
:where(a, button, select):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, #000);
  outline-offset: 3px;
}
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
h1, h2 {
  font-family: Figtree, "Segoe UI", sans-serif;
  letter-spacing: -.04em; font-weight: 700; margin: 8px 0 16px;
}
footer {
  padding: 40px 7vw 56px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--dim); font-size: 14px;
}
footer a { text-decoration: none; }

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }

.scroll-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40;
  pointer-events: none; background: transparent;
}
.scroll-lamp {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.whisper-tape {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--header) 70%, transparent);
  padding: 16px 0;
}
.whisper-track {
  display: flex; gap: 56px; width: max-content;
  color: var(--accent);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px;
}
.whisper-track span { white-space: nowrap; }
.whisper-track span::after {
  content: "·";
  margin-inline-start: 56px;
  color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.lamp-wash {
  position: fixed; inset: -30% -10%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(42% 32% at 18% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
    radial-gradient(38% 30% at 86% 78%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%);
}
body > * { position: relative; z-index: 1; }
.nav, .scroll-rail { z-index: 30; }

.status-orb {
  width: 180px; height: 180px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent);
}

@media (max-width: 640px) {
  .nav {
    gap: 12px;
    padding: 12px 16px;
  }
  .brand { flex: 0 0 auto; gap: 8px; }
  .brand img { width: 32px; height: 32px; border-radius: 10px; }
  .nav-links { min-width: 0; gap: 8px; }
  .nav-links > a:not(.btn) { display: none; }
  .nav-links .btn {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
  .nav .lang-select {
    min-width: 0;
    max-width: 104px;
    min-height: 44px;
    padding: 8px 10px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .whisper-track { animation: tape 38s linear infinite; }
  .lamp-wash { animation: lamp-drift 22s ease-in-out infinite alternate; }
  .hero-photo {
    animation: hero-settle .65s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .phone-wrap img { animation: float-y 6.8s ease-in-out infinite; }
  .status-orb { animation: orb-breathe 8s ease-in-out infinite; }
  .frame {
    animation: frame-open linear both;
    animation-timeline: view();
    animation-range: cover 12% cover 42%;
  }
  .btn { transition: transform .16s cubic-bezier(0.16, 1, 0.3, 1), filter .16s ease, background .16s ease, box-shadow .2s ease; }
  .btn:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 28%, transparent); }
}

@keyframes tape {
  to { transform: translateX(-50%); }
}
@keyframes lamp-drift {
  from { transform: translate3d(-5%, -3%, 0) scale(1); }
  to { transform: translate3d(6%, 5%, 0) scale(1.06); }
}
@keyframes hero-settle {
  from { clip-path: inset(6% 9% 6% 9% round 24px); filter: blur(4px); transform: scale(1.035); }
  to { clip-path: inset(0 round 24px); filter: none; transform: none; }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes orb-breathe {
  0%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 16%, transparent); transform: scale(1); }
  50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 8%, transparent); transform: scale(1.03); }
}
@keyframes frame-open {
  from { clip-path: inset(14% 10% 14% 10% round 24px); filter: saturate(.8); }
  to { clip-path: inset(0 round 24px); filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .whisper-track, .lamp-wash, .hero-photo, .phone-wrap img, .status-orb, .frame { animation: none !important; }
}
