/*
Theme Name: Uttkrista
Theme URI: https://chilvy.com/
Author: Uttkrista Chhetri
Author URI: https://www.linkedin.com/in/uttkrista-chhetri-484105394/
Description: A dark personal portfolio theme: floating pill navigation, display-size headlines, full-width work cards, a stacking "How I work" section and bright accent cards. Includes Product and Community post types, a built-in contact form (or Contact Form 7), a WordPress.org Photo Directory feed and one-click starter content.
Version: 2.4.2
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uttkrista
Tags: dark, one-column, custom-menu, custom-logo, featured-images, portfolio, blog, editor-style, threaded-comments, translation-ready
*/

/* ------------------------------------------------------------------
   1. Tokens
   Layout: one 1240px container with fluid side padding, full-width
   work cards, balanced vertical rhythm and refined typography.
------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* greys ("wine" scale) */
  --wine-1: #141414;
  --wine-2: #1c1c1c;
  --wine-3: #242424;
  --wine-4: #2d2d2d;
  --wine-5: #393939;
  --wine-6: #484848;
  --wine-7: #5a5a5a;
  --wine-8: #707070;
  --wine-9: #8a8a8a;
  --wine-10: #a6a6a6;
  --wine-11: #c2c2c2;
  --wine-12: #dedede;

  --surface: var(--wine-1);
  --surface-2: var(--wine-2);
  --surface-3: var(--wine-3);
  --surface-4: var(--wine-4);
  --surface-5: var(--wine-5);
  --surface-12: var(--wine-12);
  --text-12: var(--wine-12);
  --text-11: var(--wine-11);
  --text-10: var(--wine-10);
  --text-9: var(--wine-9);

  /* borders */
  --border-subtle: rgb(255 255 255 / 0.07);
  --border-strong: rgb(255 255 255 / 0.15);

  /* accents */
  --yellow-1: #181501;
  --yellow-2: #322a01;
  --yellow-4: #7a6800;
  --yellow-6: #dbba00;
  --yellow-7: #ffdd1a;
  --yellow-9: #ffef93;
  --yellow-11: #fff7c7;
  --violet-1: #0b0812;
  --violet-2: #110b1e;
  --violet-4: #221443;
  --violet-9: #c2a8ff;
  --violet-10: #d4c2ff;
  --violet-11: #e2d6ff;
  --blue-9: #aee0ff;
  --green-9: #9bfcb7;
  --red-9: #ff9b9b;

  /* shadcn-style aliases used by forms and WordPress core styles */
  --background: var(--surface);
  --foreground: var(--text-12);
  --border: var(--wine-4);
  --muted-foreground: var(--text-10);
  --ring: var(--yellow-9);

  /* typography scale: fluid, harmonious, readable */
  --font-sans:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: clamp(22px, 1.8vw, 26px);
  --text-3xl: clamp(28px, 2.4vw, 36px);
  --text-4xl: clamp(34px, 3.6vw, 48px);
  --text-5xl: clamp(44px, 5.2vw, 70px);

  /* line heights: open, proportional, avoids character overlaps */
  --leading-none: 1;
  --leading-display: 1.08;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* letter spacing: refined, prevents text bunching */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.018em;
  --tracking-snug: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.01em;
  --tracking-wider: 0.06em;
  --tracking-widest: 0.12em;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --measure-sm: 36ch;
  --measure-body: 56ch;
  --measure-lg: 66ch;
  --measure-xl: 74ch;

  /* spacing system: consistent 4px rhythm tokens */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-28: 112px;
  --space-40: 160px;
  --space-section: clamp(36px, 4vw, 56px);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --container-max: 1240px;
  --container-pad: clamp(20px, 4vw, 48px);
  --nav-height: 60px;

  --shadow-card: 0 16px 40px -12px rgb(0 0 0 / 0.45);
  --shadow-hover: 0 24px 50px -12px rgb(0 0 0 / 0.55);

  --duration-fast: 0.15s;
  --duration-base: 0.2s;
  --duration-medium: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.7s;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out-strong: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ------------------------------------------------------------------
   2. Base
------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 32px);
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text-12);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  overflow-x: clip;
}

/* warm film grain over the canvas */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.59 0 0 0 0 0.49 0 0 0 0 0.41 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  flex-shrink: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-12);
}
p,
ul,
ol,
dl,
dd,
dt,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--wine-4);
  margin: 0;
}
time {
  font-variant-numeric: tabular-nums;
}
::selection {
  background: var(--yellow-9);
  color: var(--yellow-1);
}

:focus {
  outline: none;
}
:focus-visible {
  outline: 2px solid var(--yellow-9);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  z-index: 100;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------------
   3. Layout primitives
------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
/* .site-main {
  position: relative;
  z-index: 2;
} */

.section {
  padding: var(--space-section) 0;
}

.section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--space-4);
}
#more .section-label {
  margin-bottom: var(--space-6);
}
.eyebrow,
.tag {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-10);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  margin-bottom: clamp(var(--space-5), 3.5vw, var(--space-8));
}
.section-head .section-label {
  margin-bottom: 0;
}
.section-head .section-label + .muted {
  margin-top: var(--space-2);
  max-width: var(--measure-sm);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

@media (min-width: 900px) {
  .section {
    padding: var(--space-section) 0;
  }
  .section-label {
    margin-bottom: var(--space-4);
  }
  .section-head {
    margin-bottom: var(--space-8);
  }
}

/* ------------------------------------------------------------------
   4. Buttons
------------------------------------------------------------------- */
.btn {
  --btn-gap: 8px;
  --btn-blob-color: rgb(255 255 255 / 0.1);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  height: 44px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color var(--duration-base) var(--ease-in-out),
    color var(--duration-base),
    box-shadow var(--duration-base),
    transform var(--duration-medium) var(--ease-spring);
}
.btn::before {
  content: "";
  position: absolute;
  left: var(--bx, 50%);
  top: var(--by, 50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--btn-blob-color);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--duration-slow) var(--ease-out-expo);
  z-index: -1;
  pointer-events: none;
}
.btn:hover::before,
.btn:focus-visible::before,
.service-card:hover .btn::before {
  transform: translate(-50%, -50%) scale(70);
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  height: 38px;
  padding: 0 var(--space-4);
  font-size: var(--text-xs);
}
.btn-lg {
  --btn-gap: 10px;
  height: 50px;
  padding: 0 var(--space-7);
  font-size: var(--text-base);
}

.btn-primary,
.btn-solid {
  --btn-blob-color: var(--wine-11);
  background: var(--surface-12);
  color: var(--surface);
}
.btn-primary:hover,
.btn-solid:hover {
  background: #ffffff;
  color: var(--surface);
}
.btn-soft {
  --btn-blob-color: var(--surface-3);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  color: var(--text-12);
}
.btn-soft:hover {
  background: var(--surface-3);
  border-color: var(--wine-6);
  color: var(--text-12);
}
.btn-violet {
  --btn-blob-color: var(--violet-10);
  background: var(--violet-11);
  color: var(--violet-2);
}
.btn-violet:hover {
  color: var(--violet-2);
}
.btn-yellow {
  --btn-blob-color: var(--yellow-7);
  background: var(--yellow-6);
  color: var(--yellow-2);
}
.btn-yellow:hover {
  color: var(--yellow-2);
}

/* arrow that slides in on hover */
.btn-icon {
  display: inline-flex;
  align-items: center;
  width: 0;
  margin-left: calc(-1 * var(--btn-gap));
  overflow: hidden;
  transition:
    width var(--duration-medium) var(--ease-spring),
    margin-left var(--duration-medium) var(--ease-spring);
}
.btn-icon svg {
  width: 1em;
  height: 1em;
}
.btn:hover .btn-icon,
.btn:focus-visible .btn-icon,
.btn-icon.is-visible {
  width: 1em;
  margin-left: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-11);
  transition: color var(--duration-base);
}
.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-medium) var(--ease-spring);
}
.link-arrow:hover {
  color: var(--text-12);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ------------------------------------------------------------------
   5. Floating pill navigation
------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(
    calc(var(--container-max) - 2 * var(--container-pad)),
    calc(100% - 2 * var(--container-pad))
  );
  height: 56px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background: transparent;
  transition:
    width var(--duration-slow) var(--ease-out-expo),
    padding var(--duration-slow) var(--ease-out-expo),
    background-color var(--duration-slow) var(--ease-out-expo),
    border-color var(--duration-slow) var(--ease-out-expo),
    box-shadow var(--duration-slow) var(--ease-out-expo);
}
.nav.is-scrolled,
.nav.is-open {
  padding: 0 var(--space-2) 0 var(--space-4);
  background: color-mix(in srgb, var(--wine-2) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--wine-4);
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.35);
}
.admin-bar .nav {
  top: 58px;
}

.nav-brand {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-12);
  white-space: nowrap;
}
.nav-brand img,
.custom-logo {
  height: 24px;
  width: auto;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: var(--space-1);
  margin-left: auto;
  margin-right: auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  color: var(--text-11);
  transition:
    color var(--duration-base),
    background-color var(--duration-base);
}
.nav-links a:hover {
  color: var(--text-12);
  background: color-mix(in srgb, var(--wine-12) 8%, transparent);
}
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a,
.nav-links .current_page_item > a,
.nav-links .current_page_parent > a {
  color: var(--yellow-9);
}
.nav-links .sub-menu {
  display: none;
}

.nav-cta {
  margin-left: auto;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: var(--space-1);
  border-radius: var(--radius-full);
  color: var(--text-12);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
}
.nav-toggle svg {
  width: 18px;
  height: 18px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-panel {
  pointer-events: auto;
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 76px);
  left: 16px;
  right: 16px;
  padding: var(--space-4) var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--wine-3);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.45);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition:
    opacity var(--duration-medium) var(--ease-out-expo),
    transform var(--duration-medium) var(--ease-out-expo),
    visibility 0s linear var(--duration-medium);
}
.nav-panel.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.nav-panel ul {
  list-style: none;
  display: grid;
}
.nav-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--wine-3);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-snug);
  color: var(--text-12);
}
.nav-panel li:last-child a {
  border-bottom: 0;
}
.nav-panel .current-menu-item > a,
.nav-panel .current_page_item > a {
  color: var(--yellow-9);
}

@media (min-width: 768px) {
  .nav {
    top: calc(env(safe-area-inset-top, 0px) + 18px);
    height: var(--nav-height);
  }
  .nav.is-scrolled,
  .nav.is-open {
    width: min(880px, calc(100% - 48px));
    padding: 0 var(--space-3) 0 var(--space-6);
  }
  .nav-brand {
    font-size: 15px;
  }
  .nav-links {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .nav-toggle,
  .nav-panel {
    display: none;
  }
}

/* ------------------------------------------------------------------
   6. Hero + proof ticker
------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  padding-top: calc(var(--nav-height) + clamp(44px, 7vw, 84px));
  padding-bottom: clamp(var(--space-4), 2.5vw, var(--space-8));
}
/* @media (min-width: 768px) {
  .hero {
    min-height: calc(100svh - 40px);
  }
} */
.hero-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
.hero-tag .tag-sep {
  color: var(--wine-7);
}
.hero-tag .tag-1 {
  color: var(--violet-9);
}
.hero-tag .tag-2 {
  color: var(--yellow-9);
}
.hero-tag .tag-3 {
  color: var(--green-9);
}
.hero-hed {
  max-width: 26ch;
  font-size: var(--text-5xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-12);
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
.hero-sub {
  max-width: var(--measure-body);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-regular);
  color: var(--text-11);
}
.hero-sub p {
  margin: 0;
}
.hero-sub p + p {
  margin-top: 0.8em;
}
.hero-sub a {
  color: var(--text-12);
  text-decoration: underline;
  text-decoration-color: var(--wine-6);
  text-underline-offset: 4px;
}
.hero-sub a:hover {
  text-decoration-color: var(--yellow-9);
}
@media (max-width: 767px) {
  .hero-hed {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 1.15;
  }
}

.proof-bar {
  margin-top: clamp(var(--space-5), 3.5vw, var(--space-9));
  padding: var(--space-12) var(--container-pad);
  overflow: hidden;
}
.proof-track {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 0;
  width: auto;
}
.proof-item {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--space-4);
  font-size: clamp(13px, 2.8vw, 15px);
  font-weight: var(--weight-medium);
  color: var(--text-10);
  white-space: nowrap;
  border-right: 1px solid var(--wine-4);
}
.proof-item:first-child {
  padding-left: 0;
}
.proof-track[aria-hidden="true"] {
  display: none;
}

/*
@media (min-width: 900px) {
  .proof-bar {
    padding: var(--space-12) 0;
    padding-block: var(--space-20) var(--space-6);
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0 40px,
      #000 160px calc(100% - 160px),
      transparent calc(100% - 40px) 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0 40px,
      #000 160px calc(100% - 160px),
      transparent calc(100% - 40px) 100%
    );
  }
  .proof-rail {
    display: flex;
    width: max-content;
    animation: uk-ticker 55s linear infinite;
  }
  .proof-track {
    flex-wrap: nowrap;
    width: max-content;
  }
  .proof-track[aria-hidden="true"] {
    display: flex;
  }
  .proof-item {
    padding: 0 var(--space-10);
    font-size: var(--text-sm);
  }
  .proof-item:first-child {
    padding-left: var(--space-10);
  }
}
  */

.proof-bar {
  /* padding: var(--space-12) 0; */
  padding-block: var(--space-20) var(--space-6);
}
.proof-rail {
  display: flex;
  width: max-content;
  animation: uk-ticker 55s linear infinite;
}
.proof-track {
  flex-wrap: nowrap;
  width: max-content;
}
.proof-track[aria-hidden="true"] {
  display: flex;
}
.proof-item {
  padding: 0 var(--space-10);
  font-size: var(--text-sm);
}
.proof-item:first-child {
  padding-left: var(--space-10);
}
@media (min-width: 900px) {
  .proof-bar {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0 40px,
      #000 160px calc(100% - 160px),
      transparent calc(100% - 40px) 100%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0 40px,
      #000 160px calc(100% - 160px),
      transparent calc(100% - 40px) 100%
    );
  }
}
@keyframes uk-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .proof-rail {
    animation: none;
  }
}

/* ------------------------------------------------------------------
   7. Work cards (products + featured community)
------------------------------------------------------------------- */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
}
.work-card {
  display: flex;
  flex-direction: column;
}
.work-img-link {
  display: block;
  cursor: pointer;
}
.work-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--duration-medium) var(--ease-in-out),
    box-shadow var(--duration-medium) var(--ease-in-out);
}
.work-card:hover .work-img {
  border-color: var(--wine-6);
  box-shadow: var(--shadow-hover);
}
.work-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out-expo);
}
.work-img.is-contain img {
  object-fit: contain;
  padding: 6%;
}
.work-img.is-contain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 60% at 50% 55%,
    rgb(255 221 26 / 0.12),
    transparent 70%
  );
}
.work-card:hover .work-img img {
  transform: scale(1.04);
}
.work-img.is-contain img {
  transform-origin: center;
}

/* image fallback: typographic panel */
.work-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(
      70% 70% at 85% 15%,
      rgb(194 168 255 / 0.16),
      transparent 60%
    ),
    linear-gradient(160deg, var(--surface-3), var(--surface-2));
}
.work-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgb(222 222 222 / 0.08) 1px,
    transparent 1.2px
  );
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 70% at 70% 30%,
    #000,
    transparent 70%
  );
  mask-image: radial-gradient(
    ellipse 70% 70% at 70% 30%,
    #000,
    transparent 70%
  );
}
.work-panel-title {
  position: relative;
  font-size: clamp(26px, 4.5vw, 56px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  color: var(--text-12);
  max-width: 14ch;
  text-wrap: balance;
}
.work-panel-sub {
  position: relative;
  margin-top: var(--space-3);
  color: var(--text-10);
  font-size: var(--text-sm);
}

/* collage fallback (photos) */
.work-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}
.work-collage img {
  position: static;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--radius-xs);
}
.work-collage img:first-child {
  grid-row: span 2;
}

.work-body {
  padding: var(--space-5) 0 var(--space-3);
  display: flex;
  flex-direction: column;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.work-tags .tag-sep {
  color: var(--wine-6);
  margin: 0 var(--space-1);
  font-size: var(--text-2xs);
}
.work-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  color: var(--text-12);
  max-width: 54ch;
}
.work-title a {
  color: inherit;
}
.work-title-suffix {
  display: inline;
}
.work-title-slot {
  display: inline;
  color: var(--yellow-9);
}
.work-title-slot.slot-violet {
  color: var(--violet-9);
}
.work-title-slot.slot-green {
  color: var(--green-9);
}
.work-title-slot.slot-blue {
  color: var(--blue-9);
}

@media (min-width: 768px) {
  .work-img {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
  }
  .work-body {
    padding: var(--space-5) 0 var(--space-4);
  }
  .work-tags {
    margin-bottom: var(--space-2);
  }
  .work-title {
    font-size: clamp(20px, 2vw, 24px);
  }
  .work-title-suffix {
    display: inline-block;
    vertical-align: bottom;
    height: 1.5em;
/*     margin-left: 0.3em; */
    overflow: hidden;
  }
  .work-title-slot {
    display: block;
    line-height: var(--leading-normal);
    transform: translateY(100%);
    transition: transform var(--duration-medium) var(--ease-in-out-strong);
  }
  .work-card:hover .work-title-slot,
  .work-card:focus-within .work-title-slot {
    transform: translateY(0);
  }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .work-title-slot {
    transform: none;
  }
}

/* ------------------------------------------------------------------
   8. Principles stack ("How I work")
------------------------------------------------------------------- */
.principles {
  position: relative;
  padding: var(--space-section) 0 0;
  overflow: clip;
}
.principles-sticky {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 90px);
  z-index: 3;
  height: 0;
}
.principles-sticky .section-label {
  margin-bottom: 0;
}
.principles-cards {
  padding-top: var(--space-7);
}
.principle {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 120px);
  min-height: auto;
  display: flex;
  flex-direction: column;
  padding: var(--space-5) 0 var(--space-6);
  background: var(--surface);
  border-top: 1px solid var(--wine-4);
  transform-origin: top;
}
.principle-num {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  color: var(--blue-9);
  margin-bottom: var(--space-4);
  font-variant-numeric: tabular-nums;
}
.principle:nth-child(2) .principle-num {
  color: var(--violet-9);
}
.principle:nth-child(3) .principle-num {
  color: var(--yellow-9);
}
.principle:nth-child(4) .principle-num {
  color: var(--green-9);
}
.principle-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-12);
  margin-bottom: var(--space-4);
  max-width: 1024px;
  text-wrap: balance;
}
.principle-body {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: var(--leading-relaxed);
  color: var(--text-10);
  max-width: 1024px;
}
.principle:last-child {
  min-height: auto;
  border-bottom: 1px solid var(--wine-4);
}
.principles-end {
  height: var(--space-4);
}
.principles + .section {
  padding-top: var(--space-section);
}
@media (min-width: 900px) {
  .principles-sticky {
    top: calc(env(safe-area-inset-top, 0px) + 104px);
  }
  .principle {
    top: calc(env(safe-area-inset-top, 0px) + 140px);
    min-height: auto;
    padding: var(--space-6) 0 var(--space-7);
  }
  .principle:last-child {
    min-height: auto;
  }
  .principles-end {
    height: var(--space-4);
  }
  .principles + .section {
    padding-top: var(--space-section);
  }
}

/* ------------------------------------------------------------------
   9. Accent cards (community) + photos + writing
------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: var(--space-6);
}
.service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--duration-slow) var(--ease-out-expo),
    box-shadow var(--duration-medium) var(--ease-in-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.service-card.is-violet {
  background: var(--violet-9);
  color: var(--violet-1);
}
.service-card.is-yellow {
  background: var(--yellow-9);
  color: var(--yellow-1);
}
.service-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.service-arrow {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  opacity: 0.75;
  transition:
    transform var(--duration-medium) var(--ease-spring),
    opacity var(--duration-base);
}
.service-arrow svg {
  width: 100%;
  height: 100%;
}
.service-card:hover .service-arrow {
  transform: translate(3px, -3px);
  opacity: 1;
}
.service-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  color: inherit;
  max-width: 20ch;
  text-wrap: balance;
}
.service-desc {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: var(--leading-relaxed);
  max-width: var(--measure-sm);
  color: inherit;
  /*margin-top: auto;*/
}
@media (min-width: 768px) {
  .services-grid {
    gap: var(--space-8);
  }
  .service-card {
    min-height: 300px;
  }
}

/* photos */
#photos {
  margin-top: 0;
}
.photo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.photo-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  box-shadow: var(--shadow-card);
}
.photo-tile a,
.photo-tile-link {
  display: block;
  height: 100%;
  position: relative;
  cursor: zoom-in;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-out-expo);
}
.photo-tile:hover img {
  transform: scale(1.05);
}
.photo-zoom-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--wine-4);
  color: var(--text-12);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity var(--duration-base),
    transform var(--duration-medium) var(--ease-spring);
  z-index: 2;
  pointer-events: none;
}
.photo-zoom-badge svg {
  width: 16px;
  height: 16px;
}
.photo-tile:hover .photo-zoom-badge,
.photo-tile a:focus-visible .photo-zoom-badge {
  opacity: 1;
  transform: scale(1);
}
.photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 14px 12px;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--text-12);
  background: linear-gradient(180deg, transparent, rgb(20 20 20 / 0.92));
  opacity: 0;
  transition: opacity var(--duration-base);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.photo-tile:hover .photo-caption,
.photo-tile a:focus-visible .photo-caption {
  opacity: 1;
}
@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .photo-tile:hover img,
  .work-card:hover .work-img img {
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Photo Lightbox & Slider Modal
------------------------------------------------------------------- */
body.is-lightbox-open {
  overflow: hidden !important;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--duration-medium) var(--ease-out-expo),
    visibility 0s linear var(--duration-medium);
}
.photo-lightbox.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #080808 88%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 1360px;
  padding: clamp(14px, 2.5vw, 24px);
  box-sizing: border-box;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.lightbox-counter {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  color: var(--text-10);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  border: 1px solid var(--wine-4);
  border-radius: var(--radius-full);
  font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lightbox-sep {
  margin: 0 4px;
  color: var(--wine-7);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  border: 1px solid var(--wine-4);
  color: var(--text-12);
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition:
    background-color var(--duration-base),
    border-color var(--duration-base),
    color var(--duration-base),
    transform var(--duration-medium) var(--ease-spring);
}
.lightbox-btn svg {
  width: 18px;
  height: 18px;
}
.lightbox-btn:hover {
  background: var(--surface-3);
  border-color: var(--wine-6);
  color: var(--yellow-9);
  transform: scale(1.06);
}
.lightbox-btn:active {
  transform: scale(0.96);
}

.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 0;
}

.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  border: 1px solid var(--wine-4);
  color: var(--text-12);
  cursor: pointer;
  flex-shrink: 0;
  z-index: 5;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.3);
  transition:
    background-color var(--duration-base),
    border-color var(--duration-base),
    color var(--duration-base),
    transform var(--duration-medium) var(--ease-spring);
}
.lightbox-nav svg {
  width: 20px;
  height: 20px;
}
.lightbox-nav:hover {
  background: var(--surface-3);
  border-color: var(--yellow-9);
  color: var(--yellow-9);
  transform: scale(1.08);
}
.lightbox-nav:active {
  transform: scale(0.94);
}

.lightbox-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 100%;
  padding: 0 var(--space-2);
}

.lightbox-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 64px -12px rgb(0 0 0 / 0.7);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity var(--duration-medium) var(--ease-out-expo),
    transform var(--duration-medium) var(--ease-out-expo);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 2px solid var(--wine-4);
  border-top-color: var(--yellow-9);
  border-radius: 50%;
  animation: uk-spin 0.7s linear infinite;
  pointer-events: none;
  opacity: 1;
  transition: opacity var(--duration-base);
}
.lightbox-img.is-loaded + .lightbox-loader {
  opacity: 0;
  visibility: hidden;
}

@keyframes uk-spin {
  to {
    transform: rotate(360deg);
  }
}

.lightbox-caption-wrap {
  margin-top: var(--space-4);
  text-align: center;
  max-width: 64ch;
  min-height: 22px;
}
.lightbox-caption {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-10);
  font-weight: var(--weight-medium);
}

@media (max-width: 767px) {
  .lightbox-dialog {
    padding: 12px;
  }
  .lightbox-media {
    max-height: calc(100vh - 210px);
  }
  .lightbox-img {
    max-height: calc(100vh - 210px);
  }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-nav:hover {
    transform: translateY(-50%) scale(1.05);
  }
}

/* writing list */
.post-list {
  list-style: none;
  border-top: 1px solid var(--wine-4);
}
.post-row {
  border-bottom: 1px solid var(--wine-4);
  transition: background-color var(--duration-base);
}
.post-row > a {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  transition: color var(--duration-base);
}
.post-row-main {
  display: grid;
  gap: var(--space-2);
  min-width: 0;
}
.post-row-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  color: var(--text-12);
  transition: color var(--duration-base);
}
.post-row-excerpt {
  font-size: 15px;
  line-height: var(--leading-relaxed);
  color: var(--text-10);
  max-width: var(--measure-xl);
  margin-top: 2px;
}
.post-row-meta {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--wine-9);
}
.post-row time {
  font-size: var(--text-sm);
  color: var(--wine-9);
  white-space: nowrap;
}
.post-row > a:hover .post-row-title {
  color: var(--yellow-9);
}
.sample-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  margin-left: 10px;
  vertical-align: 2px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text-10);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .post-row > a {
    grid-template-columns: 1fr 140px;
    column-gap: var(--space-8);
    padding: var(--space-7) 0;
  }
  .post-row time {
    text-align: right;
    padding-top: 4px;
  }
}

/* ------------------------------------------------------------------
   10. Final call to action + footer
------------------------------------------------------------------- */
.final-cta {
  padding: clamp(40px, 4.5vw, 64px) 0;
  text-align: left;
}
.cta-hed {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-12);
  max-width: 24ch;
  margin-bottom: var(--space-7);
  text-wrap: balance;
}
.cta-hed .muted {
  color: var(--text-9);
}

.site-footer {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-top: 1px solid var(--wine-3);
  padding: clamp(48px, 6vw, 76px) 0 clamp(36px, 5vw, 60px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
.footer-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-12);
}
.footer-tag {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-10);
  max-width: 44ch;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}
.footer-links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-11);
  text-decoration: underline;
  text-decoration-color: var(--wine-5);
  text-underline-offset: 4px;
  transition:
    color var(--duration-base),
    text-decoration-color var(--duration-base);
}
.footer-links a:hover {
  color: var(--text-12);
  text-decoration-color: var(--text-12);
}
.footer-social {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-left: -8px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--text-11);
  transition:
    color var(--duration-base),
    background-color var(--duration-base);
}
.footer-social a svg,
.footer-social a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.footer-nav-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer-social a:hover {
  color: var(--text-12);
  background: var(--surface-2);
}
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--wine-3);
  font-size: var(--text-xs);
  color: var(--wine-9);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: var(--space-12);
  }
}

/* ------------------------------------------------------------------
   11. Inner pages: heads, timeline, entries, contact
------------------------------------------------------------------- */
.page-head {
  padding-top: calc(var(--nav-height) + clamp(36px, 6vw, 68px));
  padding-bottom: clamp(var(--space-6), 4vw, var(--space-10));
}
@media (max-width: 767px) {
  .page-head {
    padding-top: 140px;
  }
}
.page-head .section-label {
  margin-bottom: var(--space-3);
}
.page-head h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-12);
  max-width: 28ch;
  text-wrap: balance;
}
.page-head .lede {
  margin-top: var(--space-4);
  max-width: var(--measure-lg);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: var(--leading-relaxed);
  color: var(--text-10);
}
.page-head .lede p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}
.page-head .lede p + p {
  margin-top: var(--space-3);
}
.page-body {
  padding-bottom: clamp(64px, 8vw, 104px);
}

/* timeline */
.timeline-group {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 90px);
  z-index: 2;
  background: var(--surface);
  border-top: 1px solid var(--wine-4);
  padding: var(--space-5) 20px var(--space-6);
  box-shadow: 0 -12px 30px -10px rgb(0 0 0 / 0.6);
  transform-origin: top;
}
.timeline-group:last-child {
  border-bottom: 1px solid var(--wine-4);
}
.timeline-group + .timeline-group {
  margin-top: clamp(var(--space-6), 4vw, var(--space-10));
}
.timeline-year {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--yellow-9);
  margin-bottom: var(--space-4);
  padding: 4px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  border: 1px solid var(--wine-4);
}
.timeline {
  position: relative;
  list-style: none;
  border-top: 1px solid var(--wine-4);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--wine-4);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-5) 0 var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--wine-3);
}
.timeline-item:last-child {
  border-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine-8);
  box-shadow: 0 0 0 4px var(--surface);
}
.timeline-item.type-organizing::before {
  background: var(--violet-9);
}
.timeline-item.type-speaking::before {
  background: var(--yellow-9);
}
.timeline-item.type-contributing::before {
  background: var(--green-9);
}
.timeline-item.type-volunteering::before {
  background: var(--blue-9);
}
.timeline-date {
  font-size: var(--text-sm);
  color: var(--wine-9);
  white-space: nowrap;
}
.timeline-body {
  min-width: 0;
}
.timeline-title {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  line-height: var(--leading-snug);
  color: var(--text-12);
}
.timeline-title a:hover {
  color: var(--yellow-9);
}
.timeline-event {
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-10);
}
.timeline-desc {
  margin-top: var(--space-2);
  font-size: 15px;
  line-height: var(--leading-relaxed);
  color: var(--text-10);
  max-width: var(--measure-lg);
}
.timeline-type {
  align-self: start;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text-11);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  white-space: nowrap;
}
.type-organizing .badge {
  background: color-mix(in srgb, var(--violet-9) 18%, var(--surface-2));
  color: var(--violet-9);
}
.type-speaking .badge {
  background: color-mix(in srgb, var(--yellow-9) 16%, var(--surface-2));
  color: var(--yellow-9);
}
.type-contributing .badge {
  background: color-mix(in srgb, var(--green-9) 16%, var(--surface-2));
  color: var(--green-9);
}
.type-volunteering .badge {
  background: color-mix(in srgb, var(--blue-9) 16%, var(--surface-2));
  color: var(--blue-9);
}
@media (min-width: 768px) {
  .timeline-group {
    top: calc(env(safe-area-inset-top, 0px) + 104px);
    padding: var(--space-6) 20px var(--space-7);
  }
  .timeline::before {
    left: 164px;
  }
  .timeline-item {
    grid-template-columns: 140px 1fr auto;
    gap: var(--space-6);
    padding: var(--space-6) 0;
  }
  .timeline-item::before {
    left: 161px;
    top: 30px;
  }
  .timeline-body {
    padding-left: var(--space-8);
  }
  .timeline-date {
    padding-top: 2px;
  }
}
.admin-bar .timeline-group {
  top: calc(env(safe-area-inset-top, 0px) + 138px);
}
@media (min-width: 783px) {
  .admin-bar .timeline-group {
    top: calc(env(safe-area-inset-top, 0px) + 136px);
  }
}

/* ------------------------------------------------------------------
   Single Product Showcase
------------------------------------------------------------------- */
.product-single {
  position: relative;
}
.product-head {
  padding-top: calc(var(--nav-height) + clamp(36px, 6vw, 68px));
  padding-bottom: clamp(var(--space-6), 4vw, var(--space-8));
}
.product-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-6), 4vw, var(--space-8));
}
.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-10);
  transition: color var(--duration-base);
}
.product-back-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--duration-medium) var(--ease-spring);
}
.product-back-link:hover {
  color: var(--text-12);
}
.product-back-link:hover svg {
  transform: translateX(-3px);
}

.product-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-11);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wine-8);
}
.status-building .status-dot {
  background: var(--yellow-9);
  box-shadow: 0 0 10px rgb(255 239 147 / 0.5);
}
.status-live .status-dot {
  background: var(--green-9);
  box-shadow: 0 0 10px rgb(155 252 183 / 0.5);
}
.status-paused .status-dot {
  background: var(--red-9);
}

.product-intro {
  max-width: 880px;
}
.product-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
.product-title {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
  line-height: 1.05;
  color: var(--text-12);
}
.product-outcome-badge {
  font-size: clamp(17px, 2vw, 24px);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-snug);
  color: var(--yellow-9);
}
.product-headline {
  font-size: clamp(18px, 2vw, 24px);
  line-height: var(--leading-snug);
  color: var(--text-11);
  max-width: 52ch;
  margin-top: var(--space-2);
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.product-specs-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin-top: clamp(var(--space-7), 5vw, var(--space-10));
}
.spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.spec-label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--wine-9);
}
.spec-value {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  color: var(--text-12);
}
.spec-value.status-val-building {
  color: var(--yellow-9);
}
.spec-value.status-val-live {
  color: var(--green-9);
}

@media (min-width: 768px) {
  .product-specs-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.product-media-section {
  margin-top: clamp(var(--space-6), 4vw, var(--space-10));
  margin-bottom: clamp(var(--space-10), 6vw, var(--space-16));
}
.product-media-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(
      65% 65% at 50% 50%,
      rgb(255 221 26 / 0.08),
      transparent 70%
    ),
    var(--surface-2);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 64px -16px rgb(0 0 0 / 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media-img {
  width: 100%;
  height: auto;
  max-height: 740px;
  object-fit: contain;
  padding: clamp(16px, 4vw, 48px);
  display: block;
}

.product-body {
  padding-bottom: clamp(64px, 8vw, 112px);
}
.product-content-wrapper {
  max-width: 780px;
  margin-inline: auto;
}
.product-story {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-11);
}
.product-story > p:first-of-type {
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: var(--leading-relaxed);
  color: var(--text-12);
}
.product-story h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-12);
  margin-top: clamp(36px, 5vw, 56px);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--wine-4);
}
.product-story h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: var(--weight-semibold);
  color: var(--text-12);
  margin-top: 1.8em;
  margin-bottom: var(--space-3);
}

.product-footer {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: var(--space-8);
  border-top: 1px solid var(--wine-4);
}
.product-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* ------------------------------------------------------------------
   Single Blog Post
------------------------------------------------------------------- */
.single-post-article {
  position: relative;
}
.single-post-head {
  padding-top: calc(var(--nav-height) + clamp(36px, 6vw, 68px));
  padding-bottom: clamp(var(--space-6), 4vw, var(--space-8));
}
.post-head-container {
  max-width: 780px;
  margin-inline: auto;
}
.post-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: clamp(var(--space-5), 3vw, var(--space-7));
}
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-10);
  transition: color var(--duration-base);
}
.post-back-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--duration-medium) var(--ease-spring);
}
.post-back-link:hover {
  color: var(--text-12);
}
.post-back-link:hover svg {
  transform: translateX(-3px);
}

.post-category-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--yellow-9);
  transition:
    background-color var(--duration-base),
    border-color var(--duration-base);
}
.post-category-badge:hover {
  background: var(--surface-3);
  border-color: var(--yellow-9);
}

.single-post-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  line-height: 1.14;
  color: var(--text-12);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.single-post-lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: var(--leading-relaxed);
  color: var(--text-10);
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-6);
  max-width: 68ch;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--wine-9);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--wine-4);
}
.byline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.byline-icon svg {
  width: 14px;
  height: 14px;
  color: var(--wine-8);
}
.byline-sep {
  color: var(--wine-6);
}
.byline-author {
  color: var(--text-11);
  font-weight: var(--weight-medium);
}

.post-media-section {
  margin-top: clamp(var(--space-6), 4vw, var(--space-8));
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
}
.post-media-container {
  max-width: 1040px;
  margin-inline: auto;
}
.post-thumb-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}
.post-thumb-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
}
.post-thumb-caption {
  margin-top: 10px;
  font-size: var(--text-xs);
  color: var(--wine-9);
  text-align: center;
}

.single-post-body {
  padding-bottom: clamp(64px, 8vw, 112px);
}
.post-body-container {
  max-width: 780px;
  margin-inline: auto;
}
.single-post-story {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-11);
}
.single-post-story > p:first-of-type {
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: var(--leading-relaxed);
  color: var(--text-12);
}
.single-post-story h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-12);
  margin-top: clamp(36px, 5vw, 56px);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--wine-4);
}
.single-post-story h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: var(--weight-semibold);
  color: var(--text-12);
  margin-top: 1.8em;
  margin-bottom: var(--space-3);
}

.post-tags-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: clamp(var(--space-8), 5vw, var(--space-12));
  padding-top: var(--space-6);
  border-top: 1px solid var(--wine-4);
}
.post-tags-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--wine-9);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-right: 4px;
}
.tag-icon svg {
  width: 14px;
  height: 14px;
  color: var(--wine-8);
}
.post-tag-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-11);
  transition:
    background-color var(--duration-base),
    border-color var(--duration-base),
    color var(--duration-base);
}
.post-tag-pill:hover {
  background: var(--surface-3);
  border-color: var(--wine-6);
  color: var(--text-12);
}

.post-author-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  margin-top: var(--space-8);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
}
.author-avatar-wrap {
  flex-shrink: 0;
}
.author-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--wine-4);
  display: block;
}
.author-details {
  flex: 1;
  min-width: 0;
}
.author-label {
  display: block;
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--wine-9);
  margin-bottom: 2px;
}
.author-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-12);
  margin: 0 0 4px;
}
.author-bio {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-10);
  margin: 0;
}

.single-post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: clamp(var(--space-8), 5vw, var(--space-12));
}
.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  transition:
    background-color var(--duration-base),
    border-color var(--duration-base),
    transform var(--duration-medium) var(--ease-spring);
}
.post-nav-card.is-empty {
  display: none;
}
.post-nav-card:hover {
  background: var(--surface-3);
  border-color: var(--wine-6);
  transform: translateY(-2px);
}
.nav-direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--wine-9);
}
.nav-direction svg {
  width: 14px;
  height: 14px;
}
.nav-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-12);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-card.next .nav-direction {
  justify-content: flex-end;
}
.post-nav-card.next .nav-title {
  text-align: right;
}

@media (min-width: 640px) {
  .single-post-nav {
    grid-template-columns: 1fr 1fr;
  }
  .post-nav-card.is-empty {
    display: block;
    background: transparent;
    border-color: transparent;
    pointer-events: none;
  }
}

/* single entries */
.entry {
  max-width: 780px;
}
.entry-head {
  padding-top: calc(var(--nav-height) + clamp(36px, 6vw, 68px));
  padding-bottom: clamp(var(--space-6), 4vw, var(--space-8));
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-5);
}
.entry-meta a:hover {
  color: var(--text-12);
}
.entry-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
.entry-head .lede {
  margin-top: var(--space-4);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: var(--leading-relaxed);
  color: var(--text-10);
  max-width: var(--measure-lg);
}
.entry-thumb {
  margin-bottom: var(--space-8);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--wine-4);
  box-shadow: var(--shadow-card);
}
.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.entry-content {
  font-size: 17px;
  line-height: var(--leading-relaxed);
  color: var(--text-11);
}
.entry-content > * {
  margin: 0;
}
.entry-content > * + * {
  margin-top: 1.35em;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  color: var(--text-12);
  letter-spacing: var(--tracking-tight);
}
.entry-content h2 {
  font-size: clamp(24px, 2.8vw, 32px);
}
.entry-content h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}
.entry-content h4 {
  font-size: clamp(18px, 1.8vw, 22px);
}
.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * {
  margin-top: 0.75em;
}
.entry-content a {
  color: var(--text-12);
  text-decoration: underline;
  text-decoration-color: var(--wine-6);
  text-underline-offset: 4px;
}
.entry-content a:hover {
  text-decoration-color: var(--yellow-9);
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}
.entry-content li + li {
  margin-top: 0.4em;
}
.entry-content blockquote {
  margin-left: 0;
  padding-left: var(--space-6);
  border-left: 2px solid var(--yellow-9);
  color: var(--text-10);
  font-size: var(--text-lg);
  font-style: italic;
}
.entry-content blockquote cite {
  font-style: normal;
  font-size: 0.85em;
}
.entry-content code,
.entry-content kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  background: var(--surface-3);
  border: 1px solid var(--wine-4);
}
.entry-content pre {
  overflow-x: auto;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.entry-content pre code {
  padding: 0;
  background: none;
  border: 0;
  font-size: inherit;
}
.entry-content img {
  border-radius: var(--radius-md);
}
.entry-content figure {
  margin-inline: 0;
}
.entry-content figcaption,
.wp-caption-text,
.gallery-caption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--wine-9);
}
.entry-content hr {
  margin-block: 2.5em;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
  font-variant-numeric: tabular-nums;
}
.entry-content th,
.entry-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--wine-4);
}
.entry-content th {
  font-weight: var(--weight-medium);
  color: var(--text-10);
}
.entry-content .wp-block-table {
  overflow-x: auto;
}
.entry-content .alignwide {
  max-width: none;
}
.entry-content .alignleft {
  float: left;
  margin: 0.5em 1.5em 1em 0;
}
.entry-content .alignright {
  float: right;
  margin: 0.5em 0 1em 1.5em;
}
.entry-content .aligncenter {
  margin-inline: auto;
}
.entry-content .wp-block-separator {
  border-color: var(--wine-4);
}
.entry-content .wp-block-button__link {
  background: var(--surface-12);
  color: var(--surface);
  border-radius: var(--radius-full);
  text-decoration: none;
  padding: 12px 20px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}
.entry-content .wp-block-quote {
  border-left-color: var(--yellow-9);
}
.wp-caption {
  max-width: 100%;
}
.sticky {
  display: block;
}
.bypostauthor {
  display: block;
}

.entry-footer {
  margin-top: var(--space-10);
  padding-top: var(--space-5);
  border-top: 1px solid var(--wine-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--wine-9);
}
.entry-footer a {
  color: var(--text-10);
}
.entry-footer a:hover {
  color: var(--text-12);
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-10);
}
.post-nav a {
  display: block;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  transition:
    background-color var(--duration-base),
    border-color var(--duration-base);
}
.post-nav a:hover {
  background: var(--surface-3);
  border-color: var(--wine-6);
}
.post-nav .label {
  display: block;
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--wine-9);
  margin-bottom: var(--space-2);
}
.post-nav .title {
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
}
.post-nav .next {
  text-align: right;
}
@media (min-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* pagination, comments, search, 404 */
.pagination,
.navigation.pagination {
  margin-top: var(--space-10);
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  font-size: var(--text-sm);
  color: var(--text-10);
}
.pagination .page-numbers.current {
  background: var(--surface-12);
  border-color: var(--surface-12);
  color: var(--surface);
}
.pagination a.page-numbers:hover {
  color: var(--text-12);
  background: var(--surface-3);
  border-color: var(--wine-6);
}
.pagination .page-numbers.dots {
  background: none;
  border: 0;
}
.comments-area {
  margin-top: var(--space-14);
  padding-top: var(--space-8);
  border-top: 1px solid var(--wine-4);
  max-width: 780px;
}
.comments-title,
.comment-reply-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}
.comment-list {
  list-style: none;
}
.comment-list .comment {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--wine-4);
}
.comment-list .children {
  list-style: none;
  padding-left: var(--space-6);
}
.comment-meta {
  font-size: var(--text-sm);
  color: var(--wine-9);
  margin-bottom: var(--space-2);
}
.comment-author .fn {
  font-weight: var(--weight-medium);
  color: var(--text-12);
  font-style: normal;
}
.comment-author .avatar {
  display: none;
}
.comment-content {
  font-size: var(--text-base);
  color: var(--text-11);
}
.comment-content p + p {
  margin-top: 0.75em;
}
.reply {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}
.comment-form label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-10);
  margin-bottom: 6px;
}
.comment-form p {
  margin-top: var(--space-4);
}
.search-form {
  display: flex;
  gap: var(--space-2);
  max-width: 440px;
}
.search-form .search-field {
  flex: 1;
}
.empty {
  padding: var(--space-8) 0;
  color: var(--text-10);
  border-top: 1px solid var(--wine-4);
  border-bottom: 1px solid var(--wine-4);
}

/* ------------------------------------------------------------------
   12. Forms (built-in contact, Contact Form 7, comments, search)
------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
.contact-main {
  min-width: 0;
}
.contact-side {
  display: grid;
  gap: var(--space-6);
  align-content: start;
}
.contact-block {
  padding: var(--space-6);
  background: var(--surface-2);
  border: 1px solid var(--wine-3);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.15);
}
.contact-block h2 {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--wine-9);
  margin-bottom: var(--space-3);
}
.contact-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.contact-email .email {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-snug);
  color: var(--text-12);
  user-select: all;
  word-break: break-all;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  border: 1px solid var(--wine-4);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-10);
  transition:
    background-color var(--duration-base),
    border-color var(--duration-base),
    color var(--duration-base);
}
.copy-btn svg {
  width: 13px;
  height: 13px;
}
.copy-btn:hover {
  background: var(--surface-4);
  border-color: var(--wine-6);
  color: var(--text-12);
}
.copy-btn.is-copied {
  background: var(--green-9);
  border-color: var(--green-9);
  color: #05100a;
}
.social-list {
  list-style: none;
  display: grid;
  gap: var(--space-1);
}
.social-list a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 40px;
  margin-left: -8px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-11);
  transition:
    color var(--duration-base),
    background-color var(--duration-base);
}
.social-list a svg {
  width: 16px;
  height: 16px;
}
.social-list a .ext {
  width: 12px;
  height: 12px;
  margin-left: auto;
  opacity: 0;
  transition: opacity var(--duration-base);
}
.social-list a:hover {
  color: var(--text-12);
  background: var(--surface-3);
}
.social-list a:hover .ext {
  opacity: 1;
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 360px);
    gap: clamp(40px, 6vw, 72px);
  }
}

.form {
  max-width: 580px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field label,
.wpcf7 label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--wine-9);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}
.form-actions .form-note {
  font-size: var(--text-sm);
  color: var(--wine-9);
}

.form-actions p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  width: 100%;
  flex-direction: row-reverse;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select,
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  height: 50px;
  padding: 0 var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  border-radius: var(--radius-sm);
  color: var(--text-12);
  font-size: var(--text-base);
  transition:
    border-color var(--duration-base),
    background-color var(--duration-base),
    box-shadow var(--duration-base);
}
textarea,
.wpcf7 textarea {
  height: auto;
  min-height: 150px;
  padding: var(--space-4);
  line-height: var(--leading-normal);
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--wine-8);
}
input:hover,
textarea:hover,
select:hover {
  background: var(--surface-3);
  border-color: var(--wine-5);
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--yellow-9);
  box-shadow: 0 0 0 3px rgb(255 239 147 / 0.16);
  background: var(--surface-3);
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  height: auto;
  accent-color: var(--yellow-9);
}
input[type="submit"],
.wpcf7-submit,
.comment-form .submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 var(--space-7);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--surface-12);
  color: var(--surface);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  cursor: pointer;
  transition: background-color var(--duration-base);
}
input[type="submit"]:hover,
.wpcf7-submit:hover,
.comment-form .submit:hover {
  background: #ffffff;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  font-size: var(--text-base);
}
.notice svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
}
.notice-success svg {
  color: var(--green-9);
}
.notice-error svg {
  color: var(--red-9);
}

.wpcf7 form p {
  margin: 0 0 var(--space-5);
}
.wpcf7 .wpcf7-not-valid-tip {
  font-size: var(--text-sm);
  color: var(--red-9);
  margin-top: var(--space-2);
}
.wpcf7 form .wpcf7-response-output {
  margin: var(--space-5) 0 0;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--wine-4) !important;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--text-base);
}
.wpcf7-spinner {
  display: none;
}

/* ------------------------------------------------------------------
   13. Scroll reveal (opt-in; only elements below the fold are hidden)
------------------------------------------------------------------- */
.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
}
.will-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------
   14. Utilities
------------------------------------------------------------------- */
.muted {
  color: var(--text-10);
}
.subtle {
  color: var(--wine-9);
}
.text-sm {
  font-size: var(--text-sm);
}
.mt-2 {
  margin-top: 8px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-6 {
  margin-top: 24px;
}
.mt-8 {
  margin-top: 32px;
}
.measure {
  max-width: var(--measure-xl);
}

/* ------------------------------------------------------------------
   15. Community Grid Layout with Featured Images & Interactive Filters
------------------------------------------------------------------- */
.community-grid-section {
  position: relative;
  margin-top: 45px;
  padding: clamp(var(--space-12, 48px), 7vw, var(--space-20, 96px)) 0;
  background: var(--surface);
  color: var(--text-12);
  font-family: var(--font-sans);
}
.community-grid-section .section-head-wrap {
  margin-bottom: clamp(var(--space-6, 24px), 3vw, var(--space-8, 32px));
}
.community-grid-section .section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-3, 12px);
}
.community-grid-section .section-title {
  font-family: var(--font-sans);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-12);
  line-height: var(--leading-tight);
  margin: 0 0 clamp(var(--space-4, 16px), 2vw, var(--space-6, 24px));
}
.community-grid-section .section-lede {
  max-width: var(--measure-lg, 720px);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-10);
}

/* Category Filter Bar */
.community-grid-section .work-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(var(--space-6, 24px), 4vw, var(--space-10, 40px));
}
.community-grid-section .filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-10);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  border-radius: var(--radius-full, 9999px);
  padding: 0.45rem 1.05rem;
  cursor: pointer;
  transition:
    background var(--duration-fast, 0.2s) var(--ease-in-out),
    color var(--duration-fast, 0.2s) var(--ease-in-out),
    border-color var(--duration-fast, 0.2s) var(--ease-in-out),
    transform var(--duration-fast, 0.2s) var(--ease-in-out),
    box-shadow var(--duration-fast, 0.2s) var(--ease-in-out);
  outline: none;
  line-height: 1.4;
  white-space: nowrap;
  user-select: none;
}
.community-grid-section .filter-btn:hover:not(.active) {
  color: #ffffff;
  background: var(--surface-3);
  border-color: var(--wine-6);
  transform: translateY(-1px);
}
.community-grid-section .filter-btn.active {
  color: var(--surface);
  background: var(--surface-12);
  border-color: var(--surface-12);
  font-weight: var(--weight-semibold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.community-grid-section .filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  padding: 1px 6px;
  border-radius: 9999px;
  background: var(--wine-4);
  color: var(--text-11);
  min-width: 18px;
  line-height: 1.3;
  transition:
    background 0.2s,
    color 0.2s;
}
.community-grid-section .filter-btn.active .filter-count {
  background: var(--surface-2);
  color: var(--surface-12);
}

/* Grid Layout */
.community-grid-section .work-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--space-5, 20px), 2.5vw, var(--space-8, 32px));
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1024px) {
  .community-grid-section .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .community-grid-section .work-grid {
    grid-template-columns: 1fr;
  }
}

/* Work Item Cards */
.community-grid-section .work-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease,
    opacity 0.3s ease;
  will-change: transform;
}
.community-grid-section .work-item:hover {
  transform: translateY(-6px);
  border-color: var(--wine-6);
  box-shadow:
    0 16px 36px -8px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--wine-5);
}
.community-grid-section .work-item.is-hidden {
  display: none !important;
}

/* Stretch Link (makes entire card clickable) */
.community-grid-section .stretch-link {
  position: absolute;
  inset: 0;
  z-index: 4;
  text-indent: -9999px;
  cursor: pointer;
}

/* Featured Image Frame */
.community-grid-section .work-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  overflow: hidden;
  background: white;
  border-bottom: 1px solid var(--wine-4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.community-grid-section .work-image.has-thumbnail {
  padding: 0;
}
.community-grid-section .work-image.has-thumbnail img {
  padding: 24px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.45s
    var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.community-grid-section .work-item:hover .work-image.has-thumbnail img {
  transform: scale(1.06);
}

/* Fallback Graphic when no image uploaded */
.community-grid-section .work-image.is-placeholder {
  padding: 1.5rem;
}
.community-grid-section .work-placeholder-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  color: var(--wine-8);
}
.community-grid-section .work-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  color: var(--wine-9);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.community-grid-section .work-item:hover .work-placeholder-icon {
  transform: scale(1.1);
  border-color: var(--wine-6);
  color: #ffffff;
}
.community-grid-section .work-placeholder-badge {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-10);
}
.community-grid-section .work-placeholder-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-11);
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Year Badge on Image */
.community-grid-section .work-year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(14, 12, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--yellow-9);
  border: 1px solid var(--wine-4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Card Content */
.community-grid-section .work-content {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 3;
}
.community-grid-section .work-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.community-grid-section .work-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 9999px;
  background: var(--surface-3);
  color: var(--text-11);
  border: 1px solid transparent;
  line-height: 1.3;
}

/* Category Accent Badges */
.community-grid-section .work-tag.tag-organizer,
.community-grid-section .work-tag.tag-organizing {
  background: color-mix(in srgb, var(--violet-9) 16%, var(--surface-2));
  color: var(--violet-9);
  border-color: color-mix(in srgb, var(--violet-9) 28%, transparent);
}
.community-grid-section .work-tag.tag-speaker,
.community-grid-section .work-tag.tag-speaking {
  background: color-mix(in srgb, var(--yellow-9) 14%, var(--surface-2));
  color: var(--yellow-9);
  border-color: color-mix(in srgb, var(--yellow-9) 28%, transparent);
}
.community-grid-section .work-tag.tag-volunteer,
.community-grid-section .work-tag.tag-volunteering {
  background: color-mix(in srgb, var(--blue-9) 14%, var(--surface-2));
  color: var(--blue-9);
  border-color: color-mix(in srgb, var(--blue-9) 28%, transparent);
}
.community-grid-section .work-tag.tag-contributing,
.community-grid-section .work-tag.tag-table-lead {
  background: color-mix(in srgb, var(--green-9) 14%, var(--surface-2));
  color: var(--green-9);
  border-color: color-mix(in srgb, var(--green-9) 28%, transparent);
}
.community-grid-section .work-tag.tag-mentorship {
  background: color-mix(in srgb, var(--red-9) 14%, var(--surface-2));
  color: var(--red-9);
  border-color: color-mix(in srgb, var(--red-9) 28%, transparent);
}

.community-grid-section .work-location {
  font-size: 12px;
  color: var(--text-10);
}

/* Card Title */
.community-grid-section .work-title {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.25vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: var(--tracking-snug);
  color: var(--text-12);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  transition: color 0.2s ease;
}
.community-grid-section .work-item:hover .work-title {
  color: #ffffff;
}

/* Link Arrow */
.community-grid-section .community-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.65;
  color: var(--text-10);
  flex-shrink: 0;
  transition:
    transform 0.25s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)),
    opacity 0.2s ease,
    color 0.2s ease;
}
.community-grid-section .work-item:hover .community-arrow {
  transform: translate(3px, -3px);
  opacity: 1;
  color: var(--yellow-9);
}

/* Meta: Event & Excerpt */
.community-grid-section .work-event-name {
  font-size: 13px;
  color: var(--text-10);
  line-height: 1.4;
  margin: 0 0 0.35rem;
  font-weight: 500;
}
.community-grid-section .work-excerpt {
  font-size: 13px;
  color: var(--text-10);
  line-height: 1.5;
  margin: 0.4rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty Message */
.community-grid-section .community-empty-message {
  padding: var(--space-10, 40px) var(--space-4, 16px);
  text-align: center;
  color: var(--text-10);
  font-size: var(--text-base);
  background: var(--surface-2);
  border-radius: var(--radius-lg, 16px);
  border: 1px dashed var(--wine-4);
  margin-top: var(--space-6, 24px);
  grid-column: 1 / -1;
}

/* ------------------------------------------------------------------
   16. Blog Grid Layout & Modal Popup Reader
------------------------------------------------------------------- */
/* Blog Category Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: var(--space-4, 16px) 0 var(--space-8, 32px);
}
.blog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-10);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  border-radius: var(--radius-full, 9999px);
  padding: 0.45rem 1.05rem;
  cursor: pointer;
  transition:
    background var(--duration-fast, 0.2s) var(--ease-in-out),
    color var(--duration-fast, 0.2s) var(--ease-in-out),
    border-color var(--duration-fast, 0.2s) var(--ease-in-out),
    transform var(--duration-fast, 0.2s) var(--ease-in-out),
    box-shadow var(--duration-fast, 0.2s) var(--ease-in-out);
  outline: none;
  line-height: 1.4;
  white-space: nowrap;
  user-select: none;
}
.blog-filter-btn:hover:not(.active) {
  color: #ffffff;
  background: var(--surface-3);
  border-color: var(--wine-6);
  transform: translateY(-1px);
}
.blog-filter-btn.active {
  color: var(--surface);
  background: var(--surface-12);
  border-color: var(--surface-12);
  font-weight: var(--weight-semibold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.blog-filter-btn .filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  padding: 1px 6px;
  border-radius: 9999px;
  background: var(--wine-4);
  color: var(--text-11);
  min-width: 18px;
  line-height: 1.3;
  transition:
    background 0.2s,
    color 0.2s;
}
.blog-filter-btn.active .filter-count {
  background: var(--surface-2);
  color: var(--surface-12);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(var(--space-5, 20px), 2.5vw, var(--space-8, 32px));
  margin: var(--space-6, 24px) 0 var(--space-10, 40px);
  padding: 0;
  list-style: none;
  transition: opacity 0.25s ease;
}
.post-grid.is-filtering {
  opacity: 0.4;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .post-grid {
    grid-template-columns: 1fr;
    margin: var(--space-5, 20px) 0 var(--space-8, 32px);
  }
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
  will-change: transform;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--wine-6);
  box-shadow:
    0 16px 36px -8px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--wine-5);
}
.post-card .stretch-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-indent: -9999px;
  cursor: pointer;
}

/* Post Card Image */
.post-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  overflow: hidden;
  background: linear-gradient(
    150deg,
    var(--surface-3) 0%,
    rgba(18, 16, 22, 0.95) 100%
  );
  border-bottom: 1px solid var(--wine-4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.post-card-image.has-thumbnail {
  padding: 0;
}
.post-card-image.has-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s
    var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.post-card:hover .post-card-image.has-thumbnail img {
  transform: scale(1.06);
}

/* Post Card Placeholder */
.post-card-placeholder-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  color: var(--wine-8);
  padding: 1.5rem;
  text-align: center;
}
.post-card-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  color: var(--wine-9);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.post-card:hover .post-card-placeholder-icon {
  transform: scale(1.1);
  border-color: var(--wine-6);
  color: #ffffff;
}
.post-card-placeholder-cat {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-10);
}

/* Overlaid Badge */
.post-card-badge-time {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(14, 12, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--yellow-9);
  border: 1px solid var(--wine-4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Post Card Body */
.post-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 3;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wine-9);
}
.post-card-cat {
  color: var(--violet-9);
}
.post-card-title {
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.25vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: var(--tracking-snug);
  color: var(--text-12);
  margin: 0 0 0.45rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  transition: color 0.2s ease;
}
.post-card:hover .post-card-title {
  color: #ffffff;
}
.post-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.65;
  color: var(--text-10);
  flex-shrink: 0;
  transition:
    transform 0.25s var(--ease-spring, cubic-bezier(0.34, 1.56, 0.64, 1)),
    opacity 0.2s ease,
    color 0.2s ease;
}
.post-card:hover .post-card-arrow {
  transform: translate(3px, -3px);
  opacity: 1;
  color: var(--yellow-9);
}
.post-card-excerpt {
  font-size: 13.5px;
  color: var(--text-10);
  line-height: 1.55;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--wine-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.post-card-read-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-11);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}
.post-card-read-action .read-icon {
  transition: transform 0.2s ease;
}
.post-card:hover .post-card-read-action {
  color: var(--yellow-9);
}
.post-card:hover .post-card-read-action .read-icon {
  transform: translateX(3px);
}

/* Blog Load More Button */
.blog-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: clamp(var(--space-8, 32px), 4vw, var(--space-12, 48px)) 0;
}
.blog-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  height: 48px;
  padding: 0 2rem;
  border-radius: var(--radius-full, 9999px);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  color: var(--text-12);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  user-select: none;
}
.blog-load-more-btn:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--wine-6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.blog-load-more-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}
.blog-load-more-btn .btn-spinner {
  display: none;
}
.blog-load-more-btn.is-loading .btn-spinner {
  display: inline-flex;
  animation: blogSpin 0.8s linear infinite;
}
@keyframes blogSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Empty message */
.blog-empty-message {
  padding: var(--space-10, 40px) var(--space-4, 16px);
  text-align: center;
  color: var(--text-10);
  font-size: var(--text-base);
  background: var(--surface-2);
  border-radius: var(--radius-lg, 16px);
  border: 1px dashed var(--wine-4);
  margin: var(--space-6, 24px) 0;
  width: 100%;
}

/* ------------------------------------------------------------------
   Blog Post Modal Overlay
------------------------------------------------------------------- */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}
.blog-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.blog-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 5, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}
.blog-modal-container {
  position: relative;
  z-index: 2;
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border: 1px solid var(--wine-5);
  border-radius: var(--radius-xl, 24px);
  box-shadow:
    0 28px 72px -12px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(22px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-modal.is-open .blog-modal-container {
  transform: translateY(0) scale(1);
}

/* Close Button */
.blog-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  color: var(--text-11);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.blog-modal-close:hover {
  background: var(--surface-3);
  color: #ffffff;
  border-color: var(--wine-6);
  transform: scale(1.08);
}

/* Scroll Container */
.blog-modal-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(24px, 4.5vw, 48px);
  max-height: inherit;
}

/* Modal Article Header */
.blog-modal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 13px;
  color: var(--text-10);
}
.blog-modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--violet-9) 16%, var(--surface-2));
  color: var(--violet-9);
  border: 1px solid color-mix(in srgb, var(--violet-9) 28%, transparent);
}
.blog-modal-date {
  color: var(--text-11);
}
.blog-modal-reading {
  font-family: var(--font-mono, monospace);
  color: var(--yellow-9);
  font-size: 12px;
}
.blog-modal-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
  color: var(--text-12);
  margin: 0 0 1rem;
}
.blog-modal-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-10);
  margin-bottom: 1.5rem;
  max-width: var(--measure-lg);
}

/* Author Byline */
.blog-modal-byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--wine-4);
  border-bottom: 1px solid var(--wine-4);
  margin-bottom: 2rem;
}
.blog-modal-author-avatar .avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--wine-5);
  display: block;
}
.blog-modal-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.blog-modal-author-info .author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-12);
}
.blog-modal-author-info .author-title {
  font-size: 12px;
  color: var(--text-10);
}

/* Featured Media */
.blog-modal-figure {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  border: 1px solid var(--wine-4);
  background: var(--surface-2);
}
.blog-modal-media {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.blog-modal-caption {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-10);
  font-style: italic;
  background: var(--surface-2);
  border-top: 1px solid var(--wine-4);
}

/* Modal Content Entry */
.blog-modal-content {
  font-size: clamp(16px, 1.2vw, 17px);
  line-height: 1.75;
  color: var(--text-11);
}
.blog-modal-content > * + * {
  margin-top: 1.35em;
}
.blog-modal-content h2,
.blog-modal-content h3,
.blog-modal-content h4 {
  color: var(--text-12);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.blog-modal-content h2 {
  font-size: clamp(22px, 2.2vw, 26px);
}
.blog-modal-content h3 {
  font-size: clamp(19px, 1.8vw, 22px);
}
.blog-modal-content a {
  color: var(--yellow-9);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.blog-modal-content a:hover {
  color: #ffffff;
}
.blog-modal-content blockquote {
  border-left: 3px solid var(--yellow-9);
  padding-left: 1.25rem;
  margin: 1.75em 0;
  font-style: italic;
  color: var(--text-12);
}
.blog-modal-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--wine-4);
}
.blog-modal-content pre,
.blog-modal-content code {
  font-family: var(--font-mono, monospace);
  background: var(--surface-2);
  border-radius: var(--radius-sm, 6px);
}
.blog-modal-content code {
  padding: 0.2em 0.4em;
  font-size: 0.9em;
  color: var(--text-12);
}
.blog-modal-content pre {
  padding: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--wine-4);
}
.blog-modal-content pre code {
  padding: 0;
  background: transparent;
}
.blog-modal-content ul,
.blog-modal-content ol {
  padding-left: 1.5rem;
}
.blog-modal-content li {
  margin-bottom: 0.5em;
}

/* Modal Footer */
.blog-modal-footer {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--wine-4);
}
.blog-modal-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.blog-modal-share-note {
  font-size: 14px;
  color: var(--text-10);
}
.blog-modal-permalink-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full, 9999px);
  background: var(--surface-2);
  border: 1px solid var(--wine-4);
  color: var(--text-11);
  text-decoration: none;
  transition: all 0.2s ease;
}
.blog-modal-permalink-btn:hover {
  background: var(--surface-3);
  color: #ffffff;
  border-color: var(--wine-6);
  transform: translateY(-1px);
}
