:root {
  --bg: #FFFFFF;
  --bg-soft: #F3F2EC;
  --bg-deep: #E9E6D9;
  --ink: #12141A;
  --ink-soft: #585C57;
  --ink-faint: #8B8F86;

  --coral: #FF5A3C;
  --coral-deep: #DE3E20;
  --coral-pale: #FFE4DA;

  --indigo: #20265A;
  --indigo-light: #363E86;
  --indigo-pale: #E7E8F5;

  --line: rgba(18, 20, 26, 0.10);
  --line-strong: rgba(18, 20, 26, 0.20);

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-w: 1240px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;

  --shadow-sm: 0 2px 10px rgba(18, 20, 26, 0.06);
  --shadow-md: 0 14px 34px rgba(18, 20, 26, 0.10);
  --shadow-lg: 0 30px 70px rgba(18, 20, 26, 0.18);

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

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input {
  font-family: inherit;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Eyebrow: a small ring dot instead of a rule line */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  display: inline-block;
  flex-shrink: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  margin-top: 12px;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 420px;
  margin: 10px 0 0;
  font-size: 15px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--coral);
  color: #FFFDFB;
  box-shadow: 0 10px 24px rgba(255, 90, 60, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 90, 60, 0.36);
  background: var(--coral-deep);
}

.btn-arrow {
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px) rotate(-45deg);
}

/* ============================================================
   HEADER / NAV — floating pill bar
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 24px 0;
  background: transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 14px 14px 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.site-header.scrolled .nav-inner {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.94);
  border-color: var(--line-strong);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--indigo);
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--coral);
  border-right-color: var(--indigo);
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav-links a[aria-current="page"] {
  color: var(--indigo);
  background: var(--indigo-pale);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions .btn-primary {
  padding: 12px 22px;
  font-size: 13.5px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-soft);
  border: none;
  border-radius: 50%;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 16px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  max-width: var(--max-w);
  margin: 10px auto 0;
  padding: 10px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.mobile-menu a {
  padding: 15px 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.mobile-menu a:hover {
  background: var(--bg-soft);
}

.mobile-menu.open {
  display: flex;
  animation: slideDown 0.35s var(--ease);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hamburger {
    display: flex;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .nav-inner {
    padding: 10px 10px 10px 20px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 64px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 20px 0 26px;
}

.hero-copy p {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Right panel: the image sits inside a ring-decorated card */
.hero-panel {
  background: var(--indigo);
  color: #FFFDFB;
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-panel::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 26px solid var(--coral);
  opacity: 0.9;
  z-index: -1;
}

.hero-panel::after {
  content: '';
  position: absolute;
  bottom: -46px;
  left: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 14px dashed rgba(255, 253, 251, 0.35);
  z-index: -1;
}

.hero-thumb img {
  border-radius: calc(var(--radius-lg) - 12px) !important;
  display: block;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
    max-width: 460px;
  }
}

/* ============================================================
   SECTIONS (shared rhythm)
   ============================================================ */
.section {
  padding: 104px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-bordered {
  border-top: 1px solid var(--line);
}

/* ============================================================
   FEATURED POSTS
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s ease;
  opacity: 0;
  transform: translateY(28px);
}

.post-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-thumb {
  position: relative;
  padding: 14px;
}

.post-thumb img {
  border-radius: calc(var(--radius-md) - 8px) !important;
  transition: transform 0.6s var(--ease);
}

.post-card:hover .post-thumb img {
  transform: scale(1.035);
}

.tag-pill {
  position: absolute;
  top: 30px;
  left: 30px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(255, 253, 251, 0.95);
  color: var(--indigo);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.post-body {
  padding: 8px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.post-body h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.post-body h3 a:hover {
  color: var(--coral-deep);
}

.post-body p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
  flex: 1;
}

.post-foot {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.read-more {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--coral-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more .arrow {
  transition: transform 0.3s var(--ease);
}

.post-card:hover .read-more .arrow {
  transform: translateX(4px) rotate(-45deg);
}

/* ============================================================
   CATEGORIES — ring-badge tiles
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.cat-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px 26px;
  background: #FFFFFF;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  display: block;
  overflow: hidden;
}

.cat-card::after {
  content: '\2197';
  position: absolute;
  top: 24px;
  right: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--ink-faint);
  transition: all 0.35s var(--ease);
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  background: var(--indigo);
  box-shadow: var(--shadow-lg);
}

.cat-card:hover h3 {
  color: #FFFDFB;
}

.cat-card:hover .cat-num {
  border-color: var(--coral);
  color: var(--coral);
}

.cat-card:hover::after {
  background: var(--coral);
  border-color: var(--coral);
  color: #FFFDFB;
  transform: rotate(45deg);
}

.cat-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all 0.35s ease;
}

.cat-card h3 {
  font-size: 19px;
  margin: 20px 0 0;
  font-weight: 600;
  transition: color 0.35s ease;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--coral);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 46px solid rgba(18, 20, 26, 0.08);
  z-index: -1;
}

.newsletter .eyebrow {
  color: var(--indigo);
}

.newsletter h2 {
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 38px);
  margin: 16px 0 14px;
}

.newsletter p {
  color: rgba(18, 20, 26, 0.72);
  font-size: 15px;
  max-width: 420px;
}

.nl-form {
  position: relative;
  z-index: 1;
}

.nl-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nl-row input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid rgba(18, 20, 26, 0.18);
  background: #FFFDFB;
  color: var(--ink);
  font-size: 14.5px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nl-row input[type="email"]::placeholder {
  color: var(--ink-faint);
}

.nl-row input[type="email"]:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(32, 38, 90, 0.12);
}

.nl-row .btn-primary {
  background: var(--indigo);
  color: #FFFDFB;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(32, 38, 90, 0.28);
}

.nl-row .btn-primary:hover {
  background: var(--indigo-light);
}

.nl-msg {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  min-height: 20px;
}

.nl-msg.error {
  color: #7A1E0E;
}

.nl-msg.success {
  color: #0F3D2E;
}

.nl-note {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(18, 20, 26, 0.55);
}

@media (max-width: 820px) {
  .newsletter {
    grid-template-columns: 1fr;
    padding: 44px 30px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--indigo);
  color: rgba(255, 253, 251, 0.72);
  padding: 80px 0 30px;
  margin-top: 20px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 253, 251, 0.14);
}

.footer-brand .logo {
  color: #FFFDFB;
}

.footer-brand .logo::before {
  border-color: var(--coral) rgba(255, 253, 251, 0.5) rgba(255, 253, 251, 0.5) var(--coral);
}

.footer-brand p {
  font-size: 14px;
  margin: 18px 0 0;
  max-width: 280px;
  color: rgba(255, 253, 251, 0.55);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 253, 251, 0.42);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 13px;
}

.footer-col a {
  font-size: 14.5px;
  color: rgba(255, 253, 251, 0.78);
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--coral);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 253, 251, 0.42);
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SCROLL REVEAL (driven by script.js — classes must stay as-is)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — small screens
   ============================================================ */
@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .site-header {
    padding: 14px 14px 0;
  }

  .hero {
    padding: 40px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .newsletter {
    padding: 36px 22px;
  }

  .hero-panel {
    padding: 14px;
  }
}
