/* ==========================================================================
   Winvest Solutions — styles.css
   Light, editorial, minimal. Brand: orange #e86020 / blue #1880c0.
   ========================================================================== */

:root {
  --bg: #fbfaf7;
  --bg-2: #f3f1ec;
  --ink: #111111;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #e4e1da;
  --orange: #e86020;
  --orange-2: #f0a028;
  --blue: #1880c0;
  --blue-2: #70c0c8;
  --white: #ffffff;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

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

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-2); }
.accent { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--orange); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 26px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; font-size: 14px; }
.brand-name small { display: block; font-weight: 500; letter-spacing: .28em; font-size: 8px; color: var(--ink-3); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 18px; font-size: 14px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-radius: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 18px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(72px, 12vh, 140px) 0 clamp(56px, 8vh, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero .display { margin-top: 22px; }
.hero .lede { margin-top: 26px; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 8% -6% -8% 6%;
  background: linear-gradient(135deg, rgba(232,96,32,.25), rgba(24,128,192,.25));
  border-radius: 24px; filter: blur(34px); z-index: -1;
}
.hero-media picture { display: block; }
.hero-media img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 42%;
  border-radius: 20px;
  box-shadow: 0 30px 60px -28px rgba(17,17,17,.35), 0 2px 6px rgba(17,17,17,.06);
  background: var(--bg-2);
}

@media (max-width: 900px) {
  .hero { padding-top: clamp(40px, 7vh, 72px); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; border-radius: 16px; }
  .hero-media::before { inset: 10% -4% -6% 4%; filter: blur(24px); }
}
@media (max-width: 480px) {
  .hero-media img { aspect-ratio: 4 / 3; object-position: 50% 45%; }
}

/* Stats strip */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { padding: 28px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.02em; font-weight: 600; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 20px 0; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vh, 140px) 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(44px, 6vh, 72px); }
.section-head .h2 { margin-top: 18px; }
.section-head .lede { font-size: 1.1rem; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* Two-column prose */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.split .prose p + p { margin-top: 18px; }
.prose p { color: var(--ink-2); text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Two sides cards ---------- */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(44px, 6vh, 72px); }
.side {
  position: relative; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.side:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(17,17,17,.18); }
.side::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.side-b2c::before { background: linear-gradient(var(--orange), var(--orange-2)); }
.side-b2b::before { background: linear-gradient(var(--blue), var(--blue-2)); }
.side-tag { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.side-b2c .side-tag { color: var(--orange); }
.side-b2b .side-tag { color: var(--blue); }
.side .h3 { margin-top: 14px; }
.side p { margin-top: 14px; color: var(--ink-2); }
.side-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); font-size: 13px; font-weight: 500; }
.side-status i { width: 8px; height: 8px; border-radius: 50%; background: #2fb26a; box-shadow: 0 0 0 4px rgba(47,178,106,.15); }
@media (max-width: 860px) { .sides { grid-template-columns: 1fr; } }

/* ---------- Spinfellas ---------- */
.brand-card {
  display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; overflow: hidden;
  background: var(--ink); color: #fff;
}
.brand-card-media { position: relative; min-height: 340px; }
.brand-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-card-body { padding: clamp(32px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.brand-card .eyebrow { color: rgba(255,255,255,.55); }
.brand-card .h2 { margin-top: 18px; color: #fff; }
.brand-card p { margin-top: 20px; color: rgba(255,255,255,.72); text-wrap: pretty; }
.glance { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.12); }
.glance dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.glance dd { margin: 4px 0 0; font-weight: 600; font-size: 1.05rem; }
.flags { display: inline-flex; gap: 6px; }
.flags span { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.1); font-weight: 600; letter-spacing: .04em; }
@media (max-width: 860px) { .brand-card { grid-template-columns: 1fr; } .brand-card-media { min-height: 240px; } }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.pillar { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.pillar .h3 { font-size: 1.15rem; }
.pillar p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 700px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Why join (numbered) ---------- */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.reason { padding: 36px 28px 40px 0; border-bottom: 1px solid var(--line); }
.reason + .reason { border-left: 1px solid var(--line); padding-left: 28px; }
.reason-num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--orange); letter-spacing: .1em; }
.reason .h3 { margin-top: 14px; font-size: 1.3rem; }
.reason p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 1000px) { .reasons { grid-template-columns: 1fr 1fr; } .reason:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } .reason + .reason { border-left: 0; padding-left: 0; } .reason { padding-right: 0; } }

/* ---------- Roles ---------- */
.roles { display: grid; gap: 14px; }
.role {
  display: grid; grid-template-columns: 1.1fr 2fr auto; gap: 24px; align-items: center;
  padding: 30px clamp(20px, 3vw, 36px); border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.role:hover { border-color: var(--ink); transform: translateX(4px); }
.role-title { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; }
.role-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.role-meta span { font-size: 12.5px; color: var(--ink-3); }
.role-meta span + span::before { content: "·"; margin-right: 10px; }
.role p { color: var(--ink-2); font-size: 15.5px; }
.role-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.role:hover .role-arrow { background: var(--ink); color: #fff; border-color: var(--ink); }
.role-arrow svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .role { grid-template-columns: 1fr auto; }
  .role p { grid-column: 1 / -1; }
}

/* Careers page role detail */
.role-detail { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 5vw, 80px); padding: clamp(48px, 7vh, 80px) 0; border-top: 1px solid var(--line); }
.role-detail:first-of-type { border-top: 0; padding-top: 0; }
.role-detail .h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.role-detail .role-meta { margin-top: 16px; }
.role-detail .prose p + p { margin-top: 16px; }
.role-detail .list { margin-top: 24px; display: grid; gap: 10px; }
.role-detail .list li { display: flex; gap: 12px; color: var(--ink-2); }
.role-detail .list li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: 11px; }
.role-detail .btn { margin-top: 28px; }
@media (max-width: 860px) { .role-detail { grid-template-columns: 1fr; } }

/* Note strip */
.note { margin-top: clamp(40px, 6vh, 64px); padding: 28px 32px; border-radius: var(--radius); background: var(--bg-2); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.note svg { width: 22px; height: 22px; color: var(--orange); margin-top: 3px; }
.note p { color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 80px);
  background: var(--ink); color: #fff; text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 15% 100%, rgba(232,96,32,.55), transparent 70%),
    radial-gradient(50% 60% at 85% 0%, rgba(24,128,192,.55), transparent 70%);
  opacity: .9;
}
.cta > * { position: relative; }
.cta .h2 { color: #fff; }
.cta p { margin: 18px auto 0; max-width: 40rem; color: rgba(255,255,255,.72); }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta .btn-ghost:hover { border-color: #fff; }
.cta .btn-primary { background: #fff; color: var(--ink); }
.cta .btn-primary:hover { background: var(--orange); color: #fff; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand img { height: 72px; }
.footer-blurb { margin-top: 18px; max-width: 26rem; color: var(--ink-2); font-size: 15px; }
.footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer li a { color: var(--ink-2); font-size: 15px; transition: color .2s; }
.footer li a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.footer-bottom p { max-width: 60rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(64px, 10vh, 120px) 0 clamp(40px, 6vh, 72px); }
.page-hero .display { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-top: 22px; max-width: 18ch; }
.page-hero .lede { margin-top: 24px; max-width: 40rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
