/* ============================================================
   OPTIC FLOW — Main Stylesheet
   Art, Design & Visual Culture Editorial
   Aesthetic: Immersive gallery · expressive typography · whitespace-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,300;1,9..144,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ink:        #111010;
  --ink-soft:   #3a3838;
  --ink-muted:  #888585;
  --paper:      #faf9f7;
  --paper-mid:  #f2f0ec;
  --paper-dark: #e8e5df;
  --accent:     #c9441a;
  --accent-2:   #5c6bc0;
  --white:      #ffffff;
  --border:     rgba(17,16,16,0.10);
  --border-mid: rgba(17,16,16,0.16);

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --nav-h:      68px;
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --t:          0.32s;
  --t-slow:     0.55s;

  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  36px;
  --r-full:9999px;

  --shadow-card: 0 2px 12px rgba(17,16,16,0.06), 0 8px 32px rgba(17,16,16,0.06);
  --shadow-float:0 16px 48px rgba(17,16,16,0.12), 0 4px 12px rgba(17,16,16,0.08);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--ff-body); color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--ff-body); }
input, textarea, select { font-family: var(--ff-body); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); letter-spacing: -0.015em; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1em; }

/* ── Utility ───────────────────────────────────────────────── */
.container       { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container--md   { max-width: 900px;  margin: 0 auto; padding: 0 32px; }
.container--sm   { max-width: 700px;  margin: 0 auto; padding: 0 32px; }
.sr-only         { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }
.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-block;
  margin-bottom: 18px;
}
.eyebrow--accent { color: var(--accent); }
.text-muted { color: var(--ink-muted); }
.italic { font-style: italic; }

/* ── Page offset ───────────────────────────────────────────── */
.page-body { padding-top: var(--nav-h); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(250,249,247,0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.navbar.scrolled { border-color: var(--border); box-shadow: 0 1px 20px rgba(17,16,16,0.06); }
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.navbar__logo {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--ff-display);
  font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em;
  color: var(--ink);
}
.navbar__logo-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  position: relative; top: -2px;
}
.navbar__links {
  display: flex; align-items: center; gap: 36px;
}
.navbar__links a {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative; padding-bottom: 2px;
  transition: color var(--t);
}
.navbar__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: var(--ink);
  transition: width var(--t) var(--ease-out);
}
.navbar__links a:hover, .navbar__links a.active { color: var(--ink); }
.navbar__links a:hover::after, .navbar__links a.active::after { width: 100%; }
.navbar__cta-link {
  font-size: 0.78rem !important; font-weight: 600 !important;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 8px 20px;
  border-radius: var(--r-full);
  letter-spacing: 0.06em !important;
  transition: background var(--t), opacity var(--t) !important;
}
.navbar__cta-link::after { display: none !important; }
.navbar__cta-link:hover { background: var(--accent) !important; opacity: 1 !important; }
.navbar__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.navbar__burger span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.navbar__mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--border);
  padding: 24px 32px 32px; z-index: 899;
  transform: translateY(-110%); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
  box-shadow: var(--shadow-float);
}
.navbar__mobile.open { transform: translateY(0); opacity: 1; display: block; }
.navbar__mobile a {
  display: block; padding: 14px 0;
  font-size: 1.05rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.navbar__mobile a:hover { color: var(--accent); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 13px 28px; border-radius: var(--r-full);
  border: 1.5px solid transparent;
  transition: all var(--t) var(--ease-out);
  cursor: pointer; white-space: nowrap;
}
.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--border-mid); }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); }
.btn--accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--accent:hover { opacity: 0.88; }
.btn--sm { padding: 9px 20px; font-size: 0.75rem; }
.btn--lg { padding: 16px 36px; font-size: 0.9rem; }
.btn svg { width: 15px; height: 15px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 92vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 0;
  overflow: hidden;
  position: relative;
}
.hero__text {
  padding: 80px 64px 80px 0;
  position: relative; z-index: 2;
}
.hero__overline {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.hero__overline-dot {
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.hero__title {
  margin-bottom: 28px;
  font-weight: 300;
}
.hero__title em {
  font-style: italic; color: var(--accent);
  font-weight: 300;
}
.hero__desc {
  font-size: 1.05rem; color: var(--ink-soft); line-height: 1.75;
  max-width: 440px; margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual {
  position: relative; height: 100%;
  min-height: 92vh;
  overflow: hidden;
}
.hero__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}
.hero__visual:hover img { transform: scale(1.04); }
.hero__visual-caption {
  position: absolute; bottom: 32px; left: 32px;
  background: rgba(250,249,247,0.9);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 500;
  color: var(--ink-soft);
}

/* ============================================================
   SECTION SYSTEM
   ============================================================ */
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 128px 0; }
.section--paper-mid { background: var(--paper-mid); }
.section--ink { background: var(--ink); color: var(--paper); }
.section__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 56px;
}
.section__header-left { max-width: 560px; }
.section__header h2 { margin-top: 8px; }
.section__header p { color: var(--ink-muted); font-size: 1rem; margin-top: 14px; margin-bottom: 0; }
.divider { border: none; border-top: 1px solid var(--border); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}
.card__img {
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.card:hover .card__img img { transform: scale(1.06); }
.card__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--paper); color: var(--ink);
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-full);
}
.card__body { padding: 28px 28px 32px; }
.card__cat {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.card__title {
  font-family: var(--ff-display);
  font-size: 1.25rem; font-weight: 500; line-height: 1.3;
  margin-bottom: 12px; color: var(--ink);
  transition: color var(--t);
}
.card:hover .card__title { color: var(--accent); }
.card__excerpt {
  font-size: 0.88rem; color: var(--ink-muted); line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; color: var(--ink-muted);
  padding-top: 20px; border-top: 1px solid var(--border);
}
.card__meta-sep { color: var(--border-mid); }

/* Card color accent variant */
.card--tinted .card__img-wrap {
  aspect-ratio: unset; padding: 40px 40px 0; min-height: 220px;
  display: flex; align-items: flex-end; justify-content: center;
}
.card--tinted .card__img-wrap img { border-radius: var(--r-md) var(--r-md) 0 0; }

/* Featured / wide card */
.card--wide {
  display: grid; grid-template-columns: 1fr 1fr;
}
.card--wide .card__img { aspect-ratio: unset; }
.card--wide:hover { transform: translateY(-4px); }

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-main-side { display: grid; grid-template-columns: 1fr 340px; gap: 56px; }

/* ============================================================
   FEATURED POST HERO STRIP
   ============================================================ */
.featured-strip {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  min-height: 520px;
  display: grid; grid-template-columns: 1fr 1fr;
  cursor: pointer;
  transition: box-shadow var(--t-slow);
}
.featured-strip:hover { box-shadow: var(--shadow-float); }
.featured-strip__img {
  position: relative; overflow: hidden;
}
.featured-strip__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.featured-strip:hover .featured-strip__img img { transform: scale(1.04); }
.featured-strip__body {
  padding: 56px 52px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--r-xl) var(--r-xl) 0;
}
.featured-strip__cat {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.featured-strip__title {
  font-family: var(--ff-display); font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 500; line-height: 1.2; margin-bottom: 20px;
  transition: color var(--t);
}
.featured-strip:hover .featured-strip__title { color: var(--accent); }
.featured-strip__subtitle {
  font-size: 0.95rem; font-style: italic; font-family: var(--ff-display);
  color: var(--ink-muted); margin-bottom: 24px;
}
.featured-strip__excerpt {
  font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 32px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-strip__meta {
  display: flex; gap: 12px; align-items: center;
  font-size: 0.75rem; color: var(--ink-muted);
}

/* ============================================================
   MARQUEE / SCROLLING TEXT
   ============================================================ */
.marquee-strip {
  overflow: hidden; background: var(--ink); padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee-track--slow { animation-duration: 40s; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 20px;
  font-family: var(--ff-display); font-size: 1rem; font-weight: 300;
  font-style: italic; color: rgba(250,249,247,0.55); flex-shrink: 0;
}
.marquee-item::after {
  content: '◆'; font-style: normal; font-size: 0.4rem;
  color: var(--accent);
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--ink); color: var(--paper);
  padding: 100px 0;
  position: relative; overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute; top: -50%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,68,26,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute; bottom: -50%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(92,107,192,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.cta-band__eyebrow { color: rgba(250,249,247,0.45); margin-bottom: 24px; }
.cta-band__title {
  font-family: var(--ff-display); font-size: clamp(2rem,5vw,3.6rem);
  font-weight: 300; color: var(--paper);
  max-width: 680px; margin: 0 auto 20px;
  line-height: 1.15;
}
.cta-band__title em { font-style: italic; color: rgba(250,249,247,0.55); }
.cta-band__sub {
  font-size: 1rem; color: rgba(250,249,247,0.55);
  max-width: 440px; margin: 0 auto 40px;
}
.cta-band__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   ABOUT STRIPS
   ============================================================ */
.split-section {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 560px; overflow: hidden;
  border-radius: var(--r-xl);
}
.split-section__img { overflow: hidden; position: relative; }
.split-section__img img { width: 100%; height: 100%; object-fit: cover; }
.split-section__body {
  padding: 80px 72px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white); border: 1px solid var(--border);
}
.split-section__body h2 { margin-bottom: 24px; }
.split-section__body p { color: var(--ink-soft); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.stat-row { display: flex; gap: 48px; margin-top: 40px; }
.stat-row__item {}
.stat-row__num {
  font-family: var(--ff-display); font-size: 2.6rem; font-weight: 300;
  color: var(--ink); line-height: 1;
}
.stat-row__num sup { font-size: 1rem; }
.stat-row__label { font-size: 0.8rem; color: var(--ink-muted); margin-top: 4px; }
.value-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 36px 32px;
  transition: box-shadow var(--t), transform var(--t);
}
.value-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.value-card__icon {
  font-size: 1.8rem; margin-bottom: 20px;
  width: 52px; height: 52px; display: flex; align-items: center;
  background: var(--paper-mid); border-radius: var(--r-sm);
}
.value-card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.value-card p { font-size: 0.88rem; color: var(--ink-muted); margin: 0; line-height: 1.65; }

/* ============================================================
   BLOG POST DETAIL
   ============================================================ */
.post-hero {
  position: relative; overflow: hidden;
  height: 68vh; min-height: 440px; max-height: 680px;
}
.post-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.post-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17,16,16,0.72) 0%, rgba(17,16,16,0.2) 50%, transparent 100%);
}
.post-hero__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 56px;
}
.post-cat-badge {
  display: inline-flex;
  background: var(--paper); color: var(--ink);
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 5px 14px;
  border-radius: var(--r-full); margin-bottom: 20px;
}
.post-hero__title {
  color: var(--paper); max-width: 740px;
  font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 300;
}
.post-hero__meta {
  display: flex; align-items: center; gap: 16px; margin-top: 20px;
  font-size: 0.8rem; color: rgba(250,249,247,0.65); flex-wrap: wrap;
}
.post-progress {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  height: 3px; background: var(--paper-dark); z-index: 800;
}
.post-progress__bar {
  height: 100%; background: var(--accent);
  transform-origin: left; transform: scaleX(0);
  transition: transform 0.1s linear;
}
.post-body {
  font-size: 1.08rem; line-height: 1.85; color: var(--ink-soft);
  max-width: 660px; margin: 0 auto;
}
.post-body h2 {
  font-size: 1.7rem; margin: 56px 0 20px;
  color: var(--ink); padding-top: 12px;
  border-top: 1px solid var(--border);
}
.post-body h3 { font-size: 1.25rem; margin: 36px 0 14px; color: var(--ink); }
.post-body p { margin-bottom: 1.5em; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 24px 32px;
  margin: 44px 0; background: var(--paper-mid);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-family: var(--ff-display); font-style: italic;
  font-size: 1.15rem; line-height: 1.6; color: var(--ink);
}
.post-body ul { margin: 16px 0 24px 24px; list-style: disc; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body em { font-style: italic; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.post-tag {
  background: var(--paper-mid); color: var(--ink-soft);
  font-size: 0.75rem; font-weight: 500; padding: 6px 14px;
  border-radius: var(--r-full); border: 1px solid var(--border);
  transition: all var(--t);
}
.post-tag:hover { background: var(--ink); color: var(--paper); }
.author-box {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 36px; background: var(--paper-mid);
  border-radius: var(--r-lg); margin-top: 56px;
}
.author-box__avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-size: 1.1rem; color: var(--white);
  flex-shrink: 0; font-style: italic;
}
.author-box__name { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.author-box__title { font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 10px; }
.author-box__bio { font-size: 0.88rem; color: var(--ink-muted); margin: 0; line-height: 1.6; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  margin-bottom: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.sidebar-widget:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-widget__label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-muted);
  margin-bottom: 20px; display: block;
}
.sidebar-mini { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.sidebar-mini:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-mini__img { width: 72px; height: 58px; object-fit: cover; border-radius: var(--r-sm); flex-shrink: 0; }
.sidebar-mini__cat { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.sidebar-mini__title { font-family: var(--ff-display); font-size: 0.88rem; font-weight: 500; line-height: 1.35; color: var(--ink); transition: color var(--t); }
.sidebar-mini:hover .sidebar-mini__title { color: var(--accent); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-size: 0.72rem; font-weight: 500; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: var(--r-full);
  color: var(--ink-soft); cursor: pointer;
  transition: all var(--t);
}
.tag-pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: start; }
.contact-info-item {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--paper-mid); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-info-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 5px;
}
.contact-info-value { font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.contact-info-value a { color: var(--accent); transition: opacity var(--t); }
.contact-info-value a:hover { opacity: 0.75; }
.contact-form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 44px;
  box-shadow: var(--shadow-card);
}
.contact-form-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.contact-form-card > p { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 32px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 7px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border-mid); border-radius: var(--r-md);
  font-size: 0.95rem; color: var(--ink); background: var(--paper);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17,16,16,0.07);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group--check { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.form-group--check input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px;
  accent-color: var(--accent); cursor: pointer;
}
.form-group--check label {
  font-size: 0.82rem; font-weight: 400; text-transform: none;
  letter-spacing: 0; color: var(--ink-muted); line-height: 1.55;
}
.form-group--check label a { color: var(--accent); text-decoration: underline; }
.form-error-msg {
  font-size: 0.75rem; color: var(--accent); margin-top: 5px; display: none;
}
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select { border-color: var(--accent); }
.form-group.has-error .form-error-msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none; text-align: center; padding: 32px 0;
}
.form-success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--paper-mid); margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.form-success h3 { font-family: var(--ff-display); margin-bottom: 8px; }
.form-success p { font-size: 0.9rem; color: var(--ink-muted); margin: 0; }

/* ============================================================
   MODAL / POPUP
   ============================================================ */
.overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(17,16,16,0.6);
  align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.overlay.open { display: flex; animation: fade-in 0.2s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--white); border-radius: var(--r-xl);
  padding: 52px 48px; max-width: 480px; width: 92%;
  position: relative; overflow-y: auto; max-height: 92vh;
  animation: slide-up 0.35s var(--ease-out);
}
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal__close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper-mid); border: none;
  font-size: 1.1rem; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.modal__close:hover { background: var(--paper-dark); }
.modal__eyebrow { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.modal__title { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 500; margin-bottom: 8px; }
.modal__sub { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 32px; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  max-width: 720px; margin: 0 auto; z-index: 1800;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg); padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-float);
  transform: translateY(130%); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner__text { font-size: 0.85rem; color: rgba(250,249,247,0.75); line-height: 1.6; flex: 1; }
.cookie-banner__text strong { color: var(--paper); }
.cookie-banner__text a { color: rgba(250,249,247,0.75); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 9px 20px; border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 600; border: none;
  cursor: pointer; transition: all var(--t);
}
.cookie-btn--accept { background: var(--paper); color: var(--ink); }
.cookie-btn--accept:hover { background: var(--accent); color: var(--white); }
.cookie-btn--decline { background: rgba(250,249,247,0.12); color: var(--paper); }
.cookie-btn--decline:hover { background: rgba(250,249,247,0.2); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  background: var(--white); padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
}
.page-header__eyebrow { color: var(--accent); margin-bottom: 16px; }
.page-header h1 { max-width: 720px; }
.page-header p { color: var(--ink-muted); font-size: 1.05rem; max-width: 560px; margin-top: 16px; }
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 28px; flex-wrap: wrap;
}
.breadcrumb a { transition: color var(--t); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--border-mid); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-pill {
  padding: 8px 20px; border: 1.5px solid var(--border-mid);
  border-radius: var(--r-full); font-size: 0.75rem; font-weight: 600;
  background: var(--white); color: var(--ink-soft); cursor: pointer;
  transition: all var(--t);
}
.filter-pill.active, .filter-pill:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-wrap { display: flex; border-radius: var(--r-full); overflow: hidden; border: 1.5px solid var(--border-mid); }
.search-wrap input {
  flex: 1; padding: 11px 20px; border: none; background: var(--white);
  font-size: 0.9rem; color: var(--ink); border-radius: 0;
}
.search-wrap input:focus { outline: none; box-shadow: none; }
.search-wrap button {
  padding: 11px 18px; background: var(--ink); color: var(--paper);
  border: none; font-size: 0.9rem; transition: background var(--t);
}
.search-wrap button:hover { background: var(--accent); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 740px; margin: 0 auto; padding: 72px 32px; }
.legal-content .legal-meta {
  font-size: 0.8rem; color: var(--ink-muted);
  padding-bottom: 28px; border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.legal-content h2 { font-size: 1.35rem; margin: 44px 0 14px; }
.legal-content h3 { font-size: 1.05rem; margin: 28px 0 10px; }
.legal-content p { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.78; }
.legal-content ul { margin: 10px 0 16px 24px; list-style: disc; }
.legal-content li { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 6px; line-height: 1.65; }
.legal-content a { color: var(--accent); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--paper); padding-top: 80px; }
.footer__top { display: grid; grid-template-columns: 300px 1fr 1fr 1fr; gap: 56px; padding-bottom: 64px; border-bottom: 1px solid rgba(250,249,247,0.08); }
.footer__logo { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 500; margin-bottom: 16px; }
.footer__logo span { color: var(--accent); }
.footer__desc { font-size: 0.88rem; color: rgba(250,249,247,0.45); line-height: 1.75; margin-bottom: 28px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; border: 1px solid rgba(250,249,247,0.15);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem;
  transition: all var(--t);
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); }
.footer__col-head {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(250,249,247,0.35); margin-bottom: 22px;
}
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 0.88rem; color: rgba(250,249,247,0.6); transition: color var(--t); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  padding: 24px 0; display: flex; align-items: center;
  justify-content: space-between; font-size: 0.78rem;
  color: rgba(250,249,247,0.3); flex-wrap: wrap; gap: 12px;
}
.footer__bottom a { color: rgba(250,249,247,0.3); transition: color var(--t); }
.footer__bottom a:hover { color: var(--accent); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal {
  opacity: 0; transform: translateY(32px);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
.js .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .reveal:nth-child(3) { transition-delay: 0.2s; }
.js .reveal:nth-child(4) { transition-delay: 0.3s; }
.js .reveal:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__text { padding: 72px 0 0; }
  .hero__visual {
    display: block;
    width: 100%;
    min-height: 420px;
    margin-top: 40px;
  }
  .hero__visual img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero__visual-caption {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 16px;
    background: rgba(250,249,247,0.85);
    display: inline-block;
  }
  .featured-strip { grid-template-columns: 1fr; }
  .featured-strip__body { border-radius: 0 0 var(--r-xl) var(--r-xl); border-left: 1px solid var(--border); border-top: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .split-section__img { min-height: 320px; }
  .split-section__body { padding: 56px 44px; }
  .value-cards { grid-template-columns: 1fr 1fr; }
  .grid-main-side { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .container--md, .container--sm { padding: 0 20px; }
  .post-hero__content { padding: 32px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .value-cards { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .cta-band__actions { flex-direction: column; align-items: center; }
  .modal { padding: 36px 24px; }
  .contact-form-card { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  .post-hero { height: 52vh; }
}
