/* ==========================================================================
   AFK People — main stylesheet
   Design system: warm ivory canvas, Qatar maroon + desert gold accents,
   Space Grotesk display / Manrope body / Instrument Serif italic accents.
   ========================================================================== */

:root {
  --ink: #0e0d12;
  --ink-soft: #3d3a45;
  --muted: #6f6a78;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e6e2d9;
  --maroon: #7d1231;
  --maroon-deep: #560b21;
  --gold: #d9a441;
  --gold-soft: #f3e3c3;
  --grad-accent: linear-gradient(120deg, #7d1231 0%, #a41c3f 55%, #d9a441 130%);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(14, 13, 18, 0.06);
  --shadow-md: 0 14px 40px rgba(14, 13, 18, 0.1);
  --shadow-lg: 0 30px 80px rgba(14, 13, 18, 0.16);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 130px);
}

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

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-deep); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1.2em; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--dark { background: var(--ink); color: #cfcbd6; }
.section--dark h2, .section--dark h3 { color: #fff; }

::selection { background: var(--gold); color: var(--ink); }

/* Accessibility helpers */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Type helpers ----------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--gold); }

.h-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.h-accent { color: var(--maroon); }
.section--dark .h-accent { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 52px); }
.section-head p { color: var(--muted); font-size: 18px; margin-bottom: 0; }
.section--dark .section-head p { color: #a9a4b4; }
.section-head--split {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.section-head--split > div { max-width: 640px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--maroon); color: #fff; box-shadow: 0 10px 26px rgba(125, 18, 49, 0.32); }
.btn--primary:hover { background: var(--maroon-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(125, 18, 49, 0.4); }

.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 26px rgba(217, 164, 65, 0.35); }
.btn--gold:hover { background: #c8912e; color: var(--ink); transform: translateY(-2px); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.site-header.is-scrolled {
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(14, 13, 18, 0.07);
}
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.brand .brand-mark { height: 42px; width: auto; align-self: center; margin-right: 10px; flex-shrink: 0; }
.brand .brand-dot { color: var(--gold); }
.brand .brand-tag { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 22px; margin-left: 6px; }
.brand:hover { color: #fff; }
@media (max-width: 560px) {
  .brand { font-size: 22px; }
  .brand .brand-mark { height: 34px; margin-right: 8px; }
  .brand .brand-tag { font-size: 19px; }
}
.site-header.is-scrolled .brand,
.site-header.is-solid .brand { color: var(--ink); }
.site-header.is-scrolled .brand:hover,
.site-header.is-solid .brand:hover { color: var(--ink); }
.site-header .custom-logo-link { display: inline-flex; align-items: center; }
.site-header .custom-logo { max-height: 46px; width: auto; }

.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 16px;
  border-radius: var(--r-pill);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: #fff; background: rgba(255, 255, 255, 0.12);
}
.site-header.is-scrolled .main-nav a,
.site-header.is-solid .main-nav a { color: var(--ink-soft); }
.site-header.is-scrolled .main-nav a:hover, .site-header.is-solid .main-nav a:hover,
.site-header.is-scrolled .main-nav .current-menu-item > a, .site-header.is-solid .main-nav .current-menu-item > a,
.site-header.is-scrolled .main-nav .current_page_item > a, .site-header.is-solid .main-nav .current_page_item > a {
  color: var(--maroon); background: rgba(125, 18, 49, 0.08);
}

.header-cta { flex-shrink: 0; }
.header-cta .btn { padding: 12px 24px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.site-header.is-scrolled .nav-toggle span, .site-header.is-solid .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: var(--ink);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav ul { flex-direction: column; text-align: center; gap: 8px; }
  .main-nav a { font-size: 26px; color: #fff !important; }
  .nav-open .nav-toggle { position: relative; z-index: 100; }
  .nav-open .nav-toggle span { background: #fff; }
}

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

.hero {
  position: relative;
  min-height: clamp(640px, 96vh, 900px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 13, 18, 0.6) 0%, rgba(14, 13, 18, 0.28) 40%, rgba(14, 13, 18, 0.85) 100%),
    linear-gradient(100deg, rgba(14, 13, 18, 0.85) 0%, rgba(14, 13, 18, 0.35) 55%, rgba(14, 13, 18, 0.08) 78%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vw, 110px); padding-top: 160px; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.08);
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.25); }

.hero h1 {
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 600;
  color: #fff;
  max-width: 13ch;
  margin-bottom: 24px;
  text-shadow: 0 2px 28px rgba(14, 13, 18, 0.5);
}
.hero h1 .h-serif { color: var(--gold); }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); color: rgba(255, 255, 255, 0.82); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.hero-stats > div { background: rgba(14, 13, 18, 0.45); padding: 22px 26px; }
.hero-stats .num { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; color: #fff; line-height: 1; }
.hero-stats .num span { color: var(--gold); }
.hero-stats .lbl { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); margin-top: 8px; }

@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Marquee ---------------------------------------------------------------- */

.marquee {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
/* Uniform per-item spacing so translateX(-50%) loops with no visible snap. */
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: 12px; margin-inline: 56px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* About / split section --------------------------------------------------- */

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.split-media { position: relative; }
.split-media img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.split-media .float-card {
  position: absolute;
  left: -24px; bottom: 32px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 20px 26px;
  display: flex; align-items: center; gap: 16px;
}
.split-media .float-card .num { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--maroon); line-height: 1; }
.split-media .float-card .lbl { font-size: 13px; color: var(--muted); max-width: 130px; line-height: 1.4; }
@media (max-width: 900px) { .split-media .float-card { left: 16px; } }

.split-body h2 { font-size: clamp(30px, 4vw, 48px); }
.split-body > p { color: var(--muted); font-size: 18px; }

.ticks { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.ticks li::before {
  content: "✓";
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--maroon);
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

/* Services (bento) -------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card::after {
  content: "";
  position: absolute; inset: auto -30% -55% auto;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 164, 65, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--grad-accent);
  color: #fff;
  margin-bottom: 24px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.service-link { font-family: var(--font-display); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.service-link svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* Sectors ----------------------------------------------------------------- */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1000px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .sectors-grid { grid-template-columns: 1fr; } }

.sector-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
}
.sector-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1); }
.sector-card:hover img { transform: scale(1.07); }
.sector-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 13, 18, 0) 35%, rgba(14, 13, 18, 0.88) 100%);
  transition: background 0.4s ease;
}
.sector-card:hover::after { background: linear-gradient(180deg, rgba(125, 18, 49, 0.15) 0%, rgba(86, 11, 33, 0.92) 100%); }
.sector-card .sector-info { position: relative; z-index: 2; padding: 26px; width: 100%; }
.sector-card h3 { color: #fff; font-size: 20px; margin-bottom: 4px; }
.sector-card .sector-roles { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); margin: 0; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease; }
.sector-card:hover .sector-roles { max-height: 90px; opacity: 1; margin-top: 6px; }
.sector-card .sector-num {
  position: absolute; top: 20px; right: 22px; z-index: 2;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  backdrop-filter: blur(6px);
}

/* Process ----------------------------------------------------------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 1000px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.process-step:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(217, 164, 65, 0.5); transform: translateY(-4px); }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 20px;
  background: var(--grad-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.process-step h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.process-step p { color: #a9a4b4; font-size: 15px; margin: 0; }

/* Promise grid (about page) ----------------------------------------------- */

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 900px) { .promise-grid { grid-template-columns: 1fr; } }

/* Stats band -------------------------------------------------------------- */

.stats-band { background: var(--grad-accent); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stats-grid .num { font-family: var(--font-display); font-size: clamp(40px, 5vw, 64px); font-weight: 700; line-height: 1; }
.stats-grid .num span { opacity: 0.85; }
.stats-grid .lbl { margin-top: 10px; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); }

/* Testimonials ------------------------------------------------------------ */

.testimonials { position: relative; }
.quote-mark { font-family: var(--font-serif); font-size: 120px; line-height: 0.6; color: var(--gold); display: block; margin-bottom: 30px; }
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.3, 1); }
.testi-slide { flex: 0 0 100%; padding-right: 8px; }
.testi-slide blockquote {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 900px;
}
.testi-slide cite { font-style: normal; display: block; }
.testi-slide cite strong { font-family: var(--font-display); display: block; font-size: 16px; }
.testi-slide cite span { color: var(--muted); font-size: 14px; }
.testi-nav { display: flex; gap: 12px; margin-top: 36px; }
.testi-nav button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--ink);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.testi-nav button:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; transform: translateY(-2px); }
.testi-nav svg { width: 18px; height: 18px; }

/* CTA band ---------------------------------------------------------------- */

.cta-band { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.cta-band .cta-media { position: absolute; inset: 0; }
.cta-band .cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14, 13, 18, 0.9) 20%, rgba(86, 11, 33, 0.65) 100%); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 5vw, 60px); max-width: 15ch; }
.cta-band p { color: rgba(255, 255, 255, 0.8); font-size: 18px; max-width: 520px; }
.cta-band .hero-actions { margin-bottom: 0; margin-top: 36px; }

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

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-intro h2 { font-size: clamp(30px, 4vw, 48px); }
.contact-intro > p { color: var(--muted); font-size: 18px; }

.contact-lines { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-lines li { display: flex; gap: 18px; align-items: flex-start; }
.contact-lines .ico {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--maroon);
}
.contact-lines .ico svg { width: 22px; height: 22px; }
.contact-lines strong { font-family: var(--font-display); display: block; font-size: 16px; }
.contact-lines span, .contact-lines a.plain { color: var(--muted); font-size: 15px; }

.contact-form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 48px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 15px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 4px rgba(125, 18, 49, 0.1);
}
.form-consent { font-size: 13px; color: var(--muted); margin: 4px 0 22px; }
.afk-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; }
.form-status.is-ok { display: block; background: #e8f5ec; color: #1d6b34; }
.form-status.is-err { display: block; background: #fdecec; color: #a12626; }

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

.site-footer { background: var(--ink); color: #a9a4b4; padding-top: clamp(56px, 7vw, 96px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand { color: #fff; margin-bottom: 16px; display: inline-flex; }
.site-footer .brand .brand-mark { height: 36px; }
.footer-about p { font-size: 15px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer ul a { color: #a9a4b4; font-size: 15px; transition: color 0.2s ease; }
.site-footer ul a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; font-size: 15px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 26px; font-size: 13.5px; }
.footer-bottom a { color: #a9a4b4; }
.footer-bottom a:hover { color: var(--gold); }

/* Page hero (inner pages) ------------------------------------------------- */

.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-top: 170px;
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.page-hero .page-hero-media { position: absolute; inset: 0; opacity: 0.45; }
.page-hero .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,13,18,0.6), rgba(14,13,18,0.92)); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 72px); max-width: 16ch; margin-bottom: 10px; }
.page-hero .crumbs { font-family: var(--font-display); font-size: 14px; color: rgba(255, 255, 255, 0.65); }
.page-hero .crumbs a { color: var(--gold); }

/* Content pages / blog ---------------------------------------------------- */

.entry-content { max-width: 780px; }
.entry-content h2 { font-size: 32px; margin-top: 1.6em; }
.entry-content h3 { font-size: 24px; margin-top: 1.4em; }
.entry-content img { border-radius: var(--r-md); }
.entry-content blockquote {
  margin: 2em 0; padding: 4px 0 4px 28px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--ink-soft);
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.wp-block-image figcaption { font-size: 13.5px; color: var(--muted); }
.alignwide { max-width: 1000px; }
.alignfull { max-width: none; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 960px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card .post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gold-soft); }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-card .post-body { padding: 26px; }
.post-card h3 { font-size: 20px; line-height: 1.3; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--maroon); }
.post-card .post-excerpt { color: var(--muted); font-size: 15px; margin: 8px 0 0; }

.single-featured { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-md); }

.pagination { display: flex; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  min-width: 46px; height: 46px; padding-inline: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--ink);
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

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

.error-hero { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.error-hero .big { font-family: var(--font-display); font-size: clamp(90px, 16vw, 200px); font-weight: 700; line-height: 1; background: var(--grad-accent); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form input[type="search"] {
  flex: 1; font-size: 16px; padding: 14px 20px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--maroon); }

/* Reveal animations ------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
