/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0c;
  --bg-elev: #141416;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f1ec;
  --muted: #9a968f;
  --accent: #ff7a3d;
  --accent-soft: #ffb36b;
  --success: #4ade80;

  --font-display: "Anton", Impact, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: 860px; }
.center { text-align: center; }

/* ---------- Shared UI ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.section { padding: clamp(80px, 12vw, 140px) 0; border-top: 1px solid var(--line); }
.section--tight { padding: clamp(60px, 8vw, 100px) 0; }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.section__lead {
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 48px;
}
.center .section__lead { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--text); color: var(--bg); }
.btn--ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn--accent { background: var(--accent); color: var(--bg); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 24px;
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Logo ---------- */
/* Wordmark "WEST" with the sunset dot at the top right; sized by font-size so it scales anywhere. */
.logo {
  display: inline-flex;
  align-items: flex-start;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
}
.logo__dot {
  flex: none;
  width: max(5px, 0.1em);
  height: max(5px, 0.1em);
  margin: 0.04em 0 0 0.045em;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.75);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav__logo { font-size: 1.6rem; }
.nav__badge {
  font-size: 0.75rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.nav__toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--text);
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  background: var(--bg);
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(11, 11, 12, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  text-transform: uppercase;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.menu a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px var(--gutter) 160px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 85%, rgba(255, 122, 61, 0.35), transparent 55%),
    linear-gradient(180deg, #0b0b0c 0%, #1a1210 60%, #2a160d 100%);
}
.hero__sun {
  position: absolute;
  left: 50%;
  bottom: -18vmin;
  width: 46vmin;
  height: 46vmin;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%, #ffd29a, var(--accent) 55%, #c2410c);
  box-shadow: 0 0 120px 40px rgba(255, 122, 61, 0.35);
  animation: sunset 8s ease-in-out infinite alternate;
}
.hero__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22vh;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero__content { max-width: 920px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 14vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
}
.hero__lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.corner {
  position: absolute;
  bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.corner--left { left: var(--gutter); }
.corner--right { right: var(--gutter); }

/* ---------- Testimonials ---------- */
.carousel { position: relative; }
.carousel__track { display: grid; }
.testimonial {
  grid-area: 1 / 1;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.testimonial.is-active { opacity: 1; transform: none; pointer-events: auto; }
.testimonial__stars { color: var(--accent); letter-spacing: 4px; margin: 0 0 16px; }
.testimonial__quote {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.45;
  margin: 0 0 32px;
}
.testimonial__author { display: flex; align-items: center; gap: 14px; }
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: var(--bg);
  font-weight: 600;
}
.testimonial__name { font-weight: 600; margin: 0; }
.testimonial__place { color: var(--muted); font-size: 0.85rem; margin: 0; }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line);
  transition: width 0.3s ease, background 0.3s ease;
}
.carousel__dot.is-active { width: 24px; background: var(--text); }

/* ---------- Projects ---------- */
.projects { display: grid; gap: 20px; }
.project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.project:hover { border-color: rgba(255, 122, 61, 0.5); transform: translateY(-4px); }
.project__media {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 12px;
}
.project__desc { color: var(--muted); margin: 0 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { font-size: 0.75rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.project__meta { display: flex; gap: 32px; margin: 0 0 20px; font-size: 0.85rem; }
.project__meta dt { color: var(--muted); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; }
.project__meta dd { margin: 0; }
.project__link { font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.project__note { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }

/* ---------- Brands marquee ---------- */
.marquee {
  overflow: hidden;
  margin: 32px 0 48px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 30s linear infinite; }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder__photo {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-elev);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.founder__text p { color: var(--muted); }
.founder__sign { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text) !important; }

/* ---------- Contact ---------- */
.contact {
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 122, 61, 0.2), transparent 60%);
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 24px;
}
.contact__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
}
.faq__num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.faq__icon { margin-left: auto; font-size: 1.5rem; transition: transform 0.3s ease; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }
.faq__answer > div { overflow: hidden; }
.faq__answer p { color: var(--muted); margin: 0 0 24px; padding-left: 44px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__logo { font-size: clamp(3rem, 10vw, 7rem); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__links a { color: var(--muted); transition: color 0.2s ease; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes sunset {
  from { bottom: -18vmin; }
  to { bottom: -24vmin; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .nav__badge { display: none; }
  .project { grid-template-columns: 1fr; gap: 20px; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 360px; }
  .faq__answer p { padding-left: 0; }
  .corner { font-size: 0.6rem; }
}
