/* ============================================================
   WellPaged — "luxury" template preview
   High-end dark aesthetic · Oswald + JetBrains Mono · monochrome
   ============================================================ */

:root {
  --surface: #000000;
  --surface-2: #0a0a0a;
  --surface-3: #111111;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.38);
  --accent: #fafafa;

  --r-sm: 4px;
  --r-md: 8px;

  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 32px;
  --sp-xl: 64px;
  --sp-2xl: 112px;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--text);
  font-family: "Oswald", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; color: var(--muted); font-weight: 200; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Ambient ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.ambient__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 80vw;
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06), transparent 65%);
  filter: blur(20px);
}
.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

main, .topbar, .footer { position: relative; z-index: 1; }

/* ---------- Typography helpers ---------- */
.kicker, .eyebrow, .label-caps {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
}

.section { padding-block: var(--sp-2xl); border-top: 1px solid var(--line-soft); }

.section__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: 14px;
}

.eyebrow { display: block; margin-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  cursor: pointer;
}
.btn--lg { padding: 17px 32px; }
.btn--solid {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn--solid:hover { background: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.brand__name {
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav { display: flex; gap: 30px; }
.nav a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.nav a:hover { color: var(--text); }
.nav__cta { padding: 11px 20px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(70px, 12vw, 150px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.kicker { display: block; margin-bottom: 28px; }
.hero__title {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 11vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero__tagline {
  font-weight: 200;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--muted);
  margin-top: 22px;
  letter-spacing: 0.02em;
}
.hero__sub {
  max-width: 46ch;
  color: var(--faint);
  font-size: 1.02rem;
  margin-top: 18px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 38px;
  list-style: none;
}
.hero__meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tick { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.hero__visual { position: relative; }
.hero__portrait { aspect-ratio: 3 / 4; }
.hero__tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
}

/* ---------- Image placeholders ---------- */
.wp-img {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 12px, transparent 12px 24px),
    var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.wp-img::after {
  content: "Add photo";
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.wp-img::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line-soft);
  border-radius: var(--r-sm);
  pointer-events: none;
}
.wp-img[data-wp-has-img]::before,
.wp-img[data-wp-has-img]::after { display: none; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  margin-top: 40px;
  align-items: start;
}
.about__body { margin-top: 26px; max-width: 48ch; }
.about__body p { color: var(--muted); font-size: 1.05rem; }
.about__body p + p { margin-top: 16px; }
.about__facts {
  list-style: none;
  margin-top: 38px;
  border-top: 1px solid var(--line-soft);
}
.about__facts li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.about__facts-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.about__facts-v { font-weight: 400; letter-spacing: 0.02em; }

.about__visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.about__img--tall { grid-row: span 2; aspect-ratio: 3 / 5; }
.about__img--wide { aspect-ratio: 4 / 5; }

/* ---------- Links ---------- */
.links__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.linkcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  min-height: 150px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.45s var(--ease), border-color 0.3s, background 0.3s;
}
.linkcard:hover {
  transform: translateY(-4px);
  border-color: var(--text);
  background: var(--surface-3);
}
.linkcard__label {
  /* Clears the absolute ↗, which reaches 41px in from the card's right edge. */
  padding-right: 22px;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
}
.linkcard__host {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.linkcard__arrow {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 1.3rem;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.linkcard:hover .linkcard__arrow { transform: translate(3px, -3px); color: var(--text); }

/* The feat card is a GRID, not a flex row: the badge holds a track of its own, so
   neither label length nor viewport width can put type under it. Reserved padding
   would only hold until the label wraps one line further; a track cannot be grown
   into. Row 1 is the badge/arrow band the media starts below. */
.linkcard--feat {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 38%);
  grid-template-rows: auto 1fr auto;
  column-gap: 30px;
  row-gap: 12px;
  align-items: start;
  min-height: 230px;
  background: linear-gradient(120deg, var(--surface-3), var(--surface));
  padding: 32px;
}
.linkcard--feat .linkcard__label { grid-area: 2 / 1; align-self: end; font-size: clamp(2rem, 4vw, 3rem); }
.linkcard--feat .linkcard__host { grid-area: 3 / 1; }
/* In flow, never absolute — an absolute badge over a bottom-aligned label collides
   the moment that label takes one more line. */
.linkcard__badge {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: var(--r-sm);
}
/* Grid items honour z-index unpositioned. Declaring `position: relative` here (the
   old rule) silently demoted the absolute badge and arrow, so their top/left became
   nudges INTO the neighbouring text — the overlap, at every width. */
.linkcard--feat > span { z-index: 2; }
.linkcard__media { grid-area: 2 / 2 / -1 / -1; aspect-ratio: 16 / 9; }

/* ---------- Rates ---------- */
.rates__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.rate {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.45s var(--ease), border-color 0.3s;
}
.rate:hover { transform: translateY(-4px); border-color: var(--text); }
.rate--mid {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.rate__flag {
  position: absolute;
  top: -1px;
  right: 24px;
  transform: translateY(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.rate__head { border-bottom: 1px solid currentColor; padding-bottom: 20px; margin-bottom: 20px; }
.rate--mid .rate__head { border-color: rgba(0, 0, 0, 0.18); }
.rate:not(.rate--mid) .rate__head { border-color: var(--line-soft); }
.rate__tier {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.rate__price {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 14px;
}
.rate__desc { color: var(--muted); font-size: 0.98rem; }
.rate--mid .rate__desc { color: rgba(0, 0, 0, 0.7); }
.rates__note {
  margin-top: 30px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.rates__note a { color: var(--text); border-bottom: 1px solid var(--line); }

/* ---------- Stats ---------- */
.stats__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.stats__asof {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.stat {
  padding: 30px 26px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.stat__value {
  display: block;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label {
  display: block;
  margin-top: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.stats__lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 48px;
  align-items: start;
}
.stats__socials-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.socials { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.social {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.social:hover { border-color: var(--text); transform: translateX(4px); }
.social svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.social__handle { font-weight: 400; letter-spacing: 0.02em; }
.social__net {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.stats__visuals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat__img { aspect-ratio: 3 / 4; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding-block: 40px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer__brand {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer__note {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 380px; }
  .about__grid { grid-template-columns: 1fr; }
  .stats__lower { grid-template-columns: 1fr; }
  .rates__grid { grid-template-columns: 1fr; }
  .rate--mid { order: -1; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .links__grid { grid-template-columns: 1fr; }
  /* One column: badge, label, host, photo — the photo drops below the copy. */
  .linkcard--feat { grid-column: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  .linkcard--feat .linkcard__label { grid-area: 2 / 1; }
  .linkcard--feat .linkcard__host { grid-area: 3 / 1; }
  .linkcard__media { grid-area: 4 / 1 / 5 / 2; margin-top: 6px; }
  .about__visuals { grid-template-columns: 1fr; }
  .about__img--tall { grid-row: auto; aspect-ratio: 4 / 3; }
  .stats__visuals { grid-template-columns: 1fr; }
  .social__net { display: none; }
}

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

/* Decorative overlay must never intercept taps meant for the photo frame
   beneath it (the editor is tap-to-upload). */
.hero__tag { pointer-events: none; }

/* ---------- Sample-page banner ---------- */
.wp-sample-note { background: #241C16; color: #F8F4E3; text-align: center; font-size: 12.5px; line-height: 1.5; padding: 9px 16px; letter-spacing: .01em; border-bottom: 1px solid rgba(248,244,227,.18); }
.wp-sample-note a { color: #FFA8B7; text-decoration: underline; text-underline-offset: 2px; }
.wp-sample-note strong { font-weight: 700; }
