/* SellVerge — minimal black & white theme */

@font-face {
  font-family: "Manrope";
  src: url("/wp-content/themes/twentytwentyfive/assets/fonts/manrope/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --ink: #0a0a0a;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --soft: #f5f5f4;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 700; }

::selection { background: var(--black); color: var(--white); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand img { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav > ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: .01em; }
.nav > ul > li > a { position: relative; padding: 6px 0; }
.nav > ul > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }

.has-sub { position: relative; }
.has-sub > a::before { content: ""; }
.sub {
  position: absolute; top: calc(100% + 14px); left: -20px; min-width: 260px;
  list-style: none; margin: 0; padding: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.sub::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.sub a:hover { background: var(--soft); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink);
}
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--black); color: var(--white) !important;
  border: 1px solid var(--black);
  text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--white); color: var(--black) !important; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--black) !important; }
.btn--ghost:hover { background: var(--black); color: var(--white) !important; }
.btn--light { background: var(--white); color: var(--black) !important; border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white) !important; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
.display { font-size: clamp(40px, 7vw, 92px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.display em { font-style: normal; color: var(--muted); }
.h2 { font-size: clamp(30px, 4.2vw, 52px); }
.h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 640px; }
p { margin: 0 0 1.1em; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--dark .lead, .section--dark .eyebrow { color: #a3a3a3; }
.section--soft { background: var(--soft); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero */
.hero { padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 7vw, 96px); }
.hero .eyebrow { margin-bottom: 28px; }
.hero .lead { margin-top: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero__media { margin-top: clamp(56px, 8vw, 96px); }

/* Media (images rendered B&W, colour on hover) */
.media { overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter .8s var(--ease), transform 1.2s var(--ease);
}
.media:hover img { filter: grayscale(0) contrast(1); transform: scale(1.02); }
.media--wide { aspect-ratio: 21 / 9; }
.media--landscape { aspect-ratio: 16 / 10; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(72px, 10vw, 128px); }
.split--reverse .split__media { order: 2; }
.split__index { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .1em; margin-bottom: 20px; display: block; }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--muted); }

/* Feature list */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 40px 32px 8px 0; }
.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line); }
.feature__num { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .1em; display: block; margin-bottom: 40px; }
.feature h3 { margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Cards grid (areas) */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.section-head .h2 { margin-top: 18px; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card .media { aspect-ratio: 4 / 5; margin-bottom: 20px; }
.card:hover .media img { filter: grayscale(0); transform: scale(1.03); }
.card__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.card__title .arrow { transition: transform .3s var(--ease); }
.card:hover .card__title .arrow { transform: translateX(4px); }
.card__meta { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat__value { font-size: clamp(44px, 6vw, 80px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat__label { color: #a3a3a3; margin-top: 12px; font-size: 15px; }

/* CTA */
.cta { text-align: center; }
.cta .h2 { max-width: 820px; margin: 22px auto 0; }
.cta .lead { margin: 22px auto 0; }
.cta .hero__actions { justify-content: center; }

/* Page header (inner pages) */
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.page-head .eyebrow { margin-bottom: 24px; }
.page-head .lead { margin-top: 28px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Prose */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 2.2em 0 .6em; letter-spacing: -.025em; }
.prose p { color: #3d3d3d; }

/* Profile */
.profile { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 112px); align-items: start; }
.profile__aside { position: sticky; top: 112px; }
.profile__name { margin-top: 24px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.profile__role { color: var(--muted); font-size: 15px; }
.profile__links { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.quote { font-size: clamp(26px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; margin: 0 0 40px; }

/* Archive list */
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-list a { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-list h2 { font-size: clamp(24px, 3vw, 36px); }
.post-list time { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); padding: clamp(64px, 9vw, 112px) 0 40px; }
.site-footer a { text-decoration: none; color: #d4d4d4; }
.site-footer a:hover { color: var(--white); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid #262626; }
.footer-brand img { height: 64px; width: auto; filter: invert(1); }
.footer-brand p { color: #a3a3a3; margin-top: 20px; max-width: 320px; font-size: 15px; }
.footer-col h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #737373; font-weight: 600; margin: 0 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 13px; color: #737373; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .site-header .container { height: 72px; }
  .brand img { height: 46px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { display: block; padding: 18px 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
  .nav > ul > li > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 14px; min-width: 0; }
  .sub a { padding: 8px 0; font-size: 16px; color: var(--muted); }
  .sub a:hover { background: none; color: var(--ink); }
  .nav .btn { margin-top: 28px; justify-content: center; }
  body.nav-open { overflow: hidden; }

  .split, .profile { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .profile__aside { position: static; max-width: 420px; }
  .features, .stats { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 32px 0 8px; border-left: 0; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .feature__num { margin-bottom: 20px; }
  .media--wide { aspect-ratio: 16 / 10; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card .media { aspect-ratio: 16 / 11; }
  .footer-top { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 860px) {
  .profile__name, .profile__role { display: none; }
}
@media (max-width: 860px) {
  /* backdrop-filter would make the fixed menu panel relative to the header */
  .site-header { background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
