/* ============================================================
   Yorkwest Ventures — yorkwestventures.com
   Dark ink base · single amber accent · Fraunces + Inter
   ============================================================ */

:root {
  --bg: #08090c;
  --bg-raised: #0d0f14;
  --ink: #f4f5f7;
  --ink-2: #a9afb9;
  --ink-3: #7c838f;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.15);
  --amber: #f0a63b;
  --amber-bright: #ffc46b;
  --amber-deep: #c97f16;
  --amber-glow: rgba(240, 166, 59, 0.14);
  --card: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012));
  --radius: 16px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

/* ---------- Base ---------- */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--amber-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: rgba(240, 166, 59, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--amber);
  color: #1a1204;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  top: 12px;
  text-decoration: none;
}

main {
  position: relative;
  z-index: 1;
}

/* ---------- Cursor spotlight + grain ---------- */

.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    620px circle at var(--mx, 50vw) var(--my, 34vh),
    rgba(240, 166, 59, 0.06),
    transparent 68%
  );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav[data-scrolled],
.nav-solid {
  background: rgba(8, 9, 12, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  transition: height 0.35s var(--ease-out);
}

.nav[data-scrolled] .nav-inner {
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav-links a[aria-current] {
  color: var(--amber-bright);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.menu-btn {
  display: none;
  flex: none;
  appearance: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  padding: 9px 10px;
  cursor: pointer;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: calc(var(--nav-h) + 12px) clamp(20px, 5vw, 32px) 28px;
  background: rgba(8, 9, 12, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 13px 6px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu a:hover {
  color: var(--amber-bright);
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 15px 26px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background-color 0.25s ease,
    border-color 0.25s ease,
    filter 0.25s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  color: #1c1305;
  box-shadow:
    0 8px 26px rgba(240, 166, 59, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow:
    0 12px 34px rgba(240, 166, 59, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 196, 107, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 10px 19px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 18px 34px;
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: max(92svh, 640px);
  padding: calc(var(--nav-h) + 72px) 0 110px;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-aurora::before,
.hero-aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.hero-aurora::before {
  width: 760px;
  height: 760px;
  left: 4%;
  top: -220px;
  background: radial-gradient(closest-side, rgba(240, 166, 59, 0.17), transparent 72%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.hero-aurora::after {
  width: 680px;
  height: 680px;
  right: 2%;
  top: 40px;
  background: radial-gradient(closest-side, rgba(118, 132, 158, 0.13), transparent 72%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(-30px, -20px, 0) scale(1); }
  to   { transform: translate3d(50px, 40px, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(30px, 30px, 0) scale(1.08); }
  to   { transform: translate3d(-45px, -25px, 0) scale(0.96); }
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber);
}

.hero .eyebrow {
  color: rgba(255, 196, 107, 0.78);
}

.hero .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber);
}

.hero h1 {
  margin: 26px auto 0;
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  line-height: 1.04;
  max-width: 17ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 560;
  color: var(--amber-bright);
}

.lede {
  margin: 26px auto 0;
  max-width: 620px;
  font-size: clamp(1.05rem, 1.6vw, 1.19rem);
  line-height: 1.72;
  color: var(--ink-2);
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 60px 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-3);
}

.hero-chips svg {
  width: 15px;
  height: 15px;
  color: var(--amber);
  flex: none;
}

/* Hero intro animation */

.intro > * {
  animation: rise 0.95s var(--ease-out) both;
}

.intro > *:nth-child(2) { animation-delay: 0.09s; }
.intro > *:nth-child(3) { animation-delay: 0.18s; }
.intro > *:nth-child(4) { animation-delay: 0.27s; }
.intro > *:nth-child(5) { animation-delay: 0.38s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding: clamp(88px, 11vw, 140px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(44px, 6vw, 64px);
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  line-height: 1.12;
}

.section-sub {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.05rem;
  text-wrap: pretty;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-out),
    border-color 0.3s ease,
    box-shadow 0.3s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(340px circle at 50% -20%, var(--amber-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 20px;
}

.card p {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-glow);
  border: 1px solid rgba(240, 166, 59, 0.28);
}

.icon-chip svg {
  width: 22px;
  height: 22px;
  color: var(--amber-bright);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.about-grid h2 {
  margin-top: 18px;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  line-height: 1.14;
}

.about-copy p + p {
  margin-top: 18px;
}

.about-copy p {
  margin-top: 22px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.address-card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin-top: 58px;
}

.address-card h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-card h3 svg {
  width: 18px;
  height: 18px;
  color: var(--amber-bright);
  flex: none;
}

.address-card address {
  font-style: normal;
  color: var(--ink-2);
  margin-top: 14px;
  line-height: 1.75;
}

.address-card .addr-links {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.section-contact {
  overflow: hidden;
}

.section-contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(880px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 166, 59, 0.5), transparent);
}

.section-contact::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  width: 720px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(240, 166, 59, 0.09), transparent 75%);
  filter: blur(30px);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.contact-inner h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
}

.contact-inner .section-sub {
  margin-inline: auto;
  max-width: 520px;
}

.contact-inner .btn {
  margin-top: 36px;
}

.contact-alt {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.contact-addr {
  margin-top: 34px;
  color: var(--ink-3);
  font-size: 0.88rem;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 40px;
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand .brand {
  font-size: 1rem;
}

.footer-tag {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.9rem;
  max-width: 34ch;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--amber-bright);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer-meta p {
  color: var(--ink-3);
  font-size: 0.84rem;
}

/* ---------- Legal pages ---------- */

.legal {
  max-width: 780px;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 110px;
}

.legal h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.1rem);
  line-height: 1.1;
}

.legal-updated {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 0.92rem;
}

.legal-intro {
  margin-top: 26px;
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.75;
}

.legal h2 {
  margin-top: 56px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--ink-2);
  text-wrap: pretty;
}

.legal p {
  margin-top: 16px;
}

.legal ul {
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal li {
  margin-top: 8px;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-callout {
  margin-top: 20px;
  border: 1px solid rgba(240, 166, 59, 0.3);
  background: rgba(240, 166, 59, 0.06);
  border-radius: 12px;
  padding: 20px 22px;
}

.legal-callout p {
  margin-top: 0;
  color: var(--ink);
}

.legal-callout p + p {
  margin-top: 12px;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 70svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

.notfound h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.notfound p {
  margin-top: 16px;
  color: var(--ink-2);
}

.notfound .btn {
  margin-top: 32px;
  justify-self: center;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .address-card {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .nav-cta .btn {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: calc(var(--nav-h) + 40px);
    min-height: 88svh;
  }

  .hero-chips {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-row .btn {
    width: 100%;
    max-width: 340px;
  }

  .footer-inner,
  .footer-meta {
    flex-direction: column;
  }
}

@media print {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */

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

  .spotlight {
    display: none;
  }

  .hero-aurora::before,
  .hero-aurora::after {
    animation: none;
  }

  .intro > * {
    animation: none;
  }

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

  .btn,
  .card {
    transition: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
