/* =========================================================================
   Shared styles for lrybintsev.com
   Used by: index.html and all blog post pages
   ========================================================================= */

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

:root {
  /* Violet ink palette: paper + ink + violet, mauve tint surfaces, clay in small doses */
  --paper: #F6F4EF;
  --paper-dark: #ECE9E1;
  --paper-border: #DBD6CA;
  --paper-divider: #D2CCBF;
  --paper-divider-strong: #CBC5B7;

  --mauve: #E4DEF2;
  --mauve-soft: #DCD4EC;
  --mauve-hover: #D3C9E7;
  --mauve-card: #DCD4EC;
  --mauve-border: #CFC5E4;
  --mauve-border-strong: #C2B6DB;

  --violet: #6F5FB0;
  --violet-light: #8B7CC7;
  --violet-deep: #4B3F7A;   /* AA-contrast violet for small text */
  --clay: #C97F55;          /* decorative only: borders, large accents */
  --clay-deep: #9E5730;     /* AA-contrast clay for small text */

  --ink: #26222E;
  --text: #26222E;
  --text-soft: #443F4E;
  --text-muted: #59545F;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --nav-height: 56px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; }

/* ---------- NAV (shared) ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--nav-height);
  background: var(--mauve);
  border-bottom: 1px solid var(--mauve-border);
}
.nav-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.75rem;
  color: var(--violet-deep);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-mono);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  background: var(--violet);
  padding: 0.42rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--violet-light); }

/* ---------- SECTION HEADINGS (shared) ---------- */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 0.5rem;
}
#beyond .section-tag,
#connect .section-tag { color: var(--violet-deep); }
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2.5rem;
  color: var(--text);
}
.section-heading em { font-style: italic; color: var(--clay-deep); }

/* ---------- FOCUS STATES (a11y) ---------- */
:where(a, button, [role="button"]):focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================================================
   index.html
   ========================================================================= */

/* HERO */
#hero {
  min-height: 100vh;
  background: var(--mauve);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 4rem;
  align-items: center;
}
.hero-photo-large {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--mauve-border-strong);
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo-large { max-width: 280px; margin-left: auto; margin-right: auto; }
}
.hero-avatar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.hero-avatar-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
  padding: 2px;
}
.hero-avatar {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border-radius: 50%;
}
.hero-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-deep);
  line-height: 2.4;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-headline em { font-style: italic; color: var(--clay-deep); }
.hero-bio {
  font-size: 1rem;
  color: var(--text-soft);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 0.6rem;
}
.hero-bio:last-of-type { margin-bottom: 2rem; }
.hero-bio a {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-actions { display: flex; align-items: center; gap: 1.5rem; }
.btn-primary {
  background: var(--violet);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--violet-light); }
.btn-ghost {
  border: 1px solid var(--violet);
  color: var(--violet-deep);
  padding: 0.7rem 1.6rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--violet); color: #fff; }


.social-links { display: flex; gap: 1rem; align-items: center; }
.social-links a {
  color: var(--violet-deep);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
  border: 1px solid var(--mauve-border-strong);
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}
.social-links a:hover { color: var(--ink); border-color: var(--violet); }

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--mauve-border);
  padding: 2rem 2.5rem 0;
  margin-top: 3rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-deep);
}

/* SECTIONS */
section { padding: 5rem 2.5rem; }
#section-work       { background: var(--paper); }
#background         { background: var(--paper); border-top: 1px solid var(--paper-divider); }
#section-written    { background: var(--paper-dark); }
#section-watchread  { background: var(--paper); }

/* WORK (collapsible cards) */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--mauve-border-strong);
  background: var(--mauve-card);
}
.work-card {
  /* Reset button styles */
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--mauve-border-strong);
  border-bottom: 1px solid var(--mauve-border-strong);
  padding: 1.5rem;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.work-card:hover { background: var(--mauve-border); }
.work-card:nth-child(3n) { border-right: none; }
.work-card-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 0.6rem;
}
.work-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.work-card-arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: var(--violet-deep);
  font-size: 0.85rem;
  transition: transform 0.2s, color 0.2s;
}
.work-card[aria-expanded="true"] .work-card-arrow {
  transform: rotate(45deg);
  color: var(--violet);
}
/* Smooth, content-aware expand using grid trick — no hard max-height */
.work-card-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.work-card-detail > div {
  overflow: hidden;
  min-height: 0;
}
.work-card[aria-expanded="true"] .work-card-detail {
  grid-template-rows: 1fr;
  margin-top: 0.8rem;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--paper-border);
  padding: 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(38, 34, 46, 0.06);
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 0.6rem;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* BACKGROUND */
.bg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.bg-card {
  border: 1px solid var(--paper-border);
  padding: 1.5rem;
  border-radius: 2px;
  background: var(--paper-dark);
}
.bg-card-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 0.5rem;
}
.bg-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.bg-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* WRITTEN / HOSTED (wr-*) */
.wr-subsection-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6rem 0;
  border-top: 1px solid var(--paper-divider);
}
.wr-subsection-label--violet { color: var(--violet-deep); }
.wr-subsection-label--clay   { color: var(--clay-deep); }

.wr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--paper-divider-strong);
}
.wr-grid + .wr-subsection-label { margin-top: 2rem; }

.wr-card {
  background: var(--paper);
  padding: 1.4rem 1.4rem 2.8rem;
  position: relative;
  transition: background 0.15s, transform 0.25s ease, box-shadow 0.25s ease;
}
.wr-card:hover {
  background: var(--paper-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(38, 34, 46, 0.06);
}
.wr-card:hover .wr-card-link { transform: translate(1px, -1px); }
.wr-card-type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.wr-card-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.wr-card-link {
  position: absolute;
  bottom: 1rem;
  left: 1.4rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--violet-deep);
  text-decoration: none;
  transition: transform 0.2s ease;
  letter-spacing: 0.06em;
}
.wr-card-link:hover { text-decoration: underline; }
.wr-card-link--clay { color: var(--clay-deep); }

/* Carousel: JS pages through cards by toggling the [hidden] attribute.
   Explicit rule needed because grid children otherwise override hidden. */
.wr-card[hidden] { display: none; }

.wr-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.wr-carousel-controls[hidden] { display: none; }

.wr-carousel-arrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  color: var(--violet-deep);
  background: none;
  border: none;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.wr-carousel-arrow:hover { opacity: 0.7; }
.wr-carousel-arrow:disabled {
  color: var(--text-muted);
  opacity: 0.35;
  cursor: default;
}

.wr-dots {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.wr-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.15s, background 0.15s;
}
.wr-dot:hover { opacity: 0.7; }
.wr-dot[aria-current="true"] {
  background: var(--violet);
  opacity: 1;
}

/* EASTER EGG */
#easteregg {
  background: var(--paper);
  padding: 3rem 2.5rem;
  border-top: 1px solid var(--paper-border);
  min-height: 14rem;
}
.ionce-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text);
}
.ionce-prefix { display: block; margin-bottom: 0.3rem; }
.ionce-highlight-wrap { display: block; min-height: 2.8em; }
.ionce-button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: block;
  transition: opacity 0.15s, transform 0.15s;
}
.ionce-label {
  text-decoration: underline dotted;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.ionce-button:hover .ionce-label { text-decoration-style: solid; }
.ionce-button::after {
  content: "\21bb";
  display: inline-block;
  margin-left: 0.4em;
  font-size: 0.85em;
  text-decoration: none;
  transition: transform 0.3s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .ionce-button:hover::after { transform: rotate(180deg); }
}
.ionce-button:hover { opacity: 0.85; }
.ionce-button--violet { color: var(--violet); }
.ionce-button--clay   { color: var(--clay-deep); }

/* BEYOND */
#beyond {
  background: var(--mauve);
  padding: 5rem 2.5rem;
}
#beyond .section-heading { color: var(--ink); }
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--mauve-border);
}
.beyond-item {
  background: var(--mauve-soft);
  padding: 1.8rem 1.5rem;
  transition: background 0.2s;
}
.beyond-item:hover { background: var(--mauve-hover); }
.beyond-icon { font-size: 1.4rem; margin-bottom: 0.6rem; }
.beyond-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 0.5rem;
}
.beyond-label--clay { color: var(--clay-deep); }
.beyond-text {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.beyond-text a {
  color: var(--violet-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CONNECT */
#connect {
  background: var(--mauve);
  color: var(--ink);
  padding: 3rem 2.5rem 5rem;
}
.connect-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 900px;
}
.connect-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}
.connect-heading em { font-style: italic; color: var(--clay-deep); }
.connect-photo {
  display: block;
  margin-top: 2rem;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}
.connect-right { padding-top: calc(clamp(2.5rem, 5vw, 4rem) * 1.05 + 2rem); }
.connect-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 1rem;
}
.connect-text {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.connect-actions {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1rem;
}
.btn-email {
  background: var(--violet);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-email:hover { background: var(--violet-light); }
.connect-social {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--violet-deep);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.connect-social:hover { color: var(--ink); }




/* NEWSLETTER FORM */
.newsletter-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin: 0.75rem 0 0.25rem;
  gap: 0.75rem;
}
.newsletter-divider::before,
.newsletter-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(38, 34, 46, 0.18);
}
.newsletter-divider-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-deep);
  white-space: nowrap;
}
.newsletter-fields {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.newsletter-input-wrap {
  flex: 1 1 200px;
}
.newsletter-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(38, 34, 46, 0.25);
  border-radius: 3px;
  color: var(--ink);
  font-size: 0.875rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-body);
}
.newsletter-input::placeholder { color: rgba(38, 34, 46, 0.5); }
.newsletter-input:focus { border-color: var(--violet); }
.newsletter-submit {
  background: var(--violet);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}
.newsletter-submit:hover { background: var(--violet-light); }
.newsletter-substack-link {
  grid-column: 1 / -1;
  display: block;
  text-decoration: none;
  text-align: center;
  background: var(--clay-deep);
}
.newsletter-substack-link:hover { background: var(--clay); }
.newsletter-submit > span { display: block; }
/* spinner (hidden by default, shown when active) */
.formkit-spinner {
  display: flex;
  height: 0;
  width: 0;
  margin: 0 auto;
  position: absolute;
  top: 0; left: 0; right: 0;
  overflow: hidden;
  transition: all 300ms ease-in-out;
}
.newsletter-submit[data-active] .formkit-spinner { height: 100%; width: 40px; }
.newsletter-submit[data-active] .formkit-spinner ~ span { opacity: 0; }
.formkit-spinner > div {
  margin: auto;
  width: 8px; height: 8px;
  background: #fff;
  opacity: 0.6;
  border-radius: 50%;
  display: inline-block;
  animation: formkit-bouncedelay-formkit-form-data-uid-9ef2ff9e05- 1.4s infinite ease-in-out both;
}
.formkit-spinner > div:nth-child(1) { animation-delay: -0.32s; }
.formkit-spinner > div:nth-child(2) { animation-delay: -0.16s; }
.newsletter-form .formkit-alert {
  border-radius: 3px;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.8rem;
}
.newsletter-form .formkit-alert:empty { display: none; }
.newsletter-form .formkit-alert-success {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(38, 34, 46, 0.25);
  color: var(--ink);
}
.newsletter-form .formkit-alert-error {
  background: rgba(158, 87, 48, 0.12);
  border: 1px solid var(--clay-deep);
  color: var(--clay-deep);
}

/* FOOTER */
.site-footer {
  background: var(--mauve);
  border-top: 1px solid var(--mauve-border);
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--violet-deep);
  text-decoration: none;
  border: 1px solid var(--mauve-border-strong);
  border-radius: 3px;
  padding: 0.4rem 0.75rem;
  transition: background 0.2s;
}
.footer-btn:hover { background: var(--mauve-hover); }
.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--violet-deep);
  letter-spacing: 0.06em;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > * {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.hero-avatar-row { animation-delay: 0.1s; }
.hero-headline   { animation-delay: 0.25s; }
.hero-bio        { animation-delay: 0.4s; }
.hero-actions    { animation-delay: 0.5s; }

/* ---------- SHORTS SHELF ---------- */
.shorts-blurb {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0.6rem 0 1rem;
  max-width: 480px;
}
.shorts-blurb[hidden] { display: none; }

.shorts-shelf {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.shorts-shelf::-webkit-scrollbar { height: 6px; }
.shorts-shelf::-webkit-scrollbar-thumb { background: var(--paper-divider-strong); border-radius: 3px; }
.short-card {
  position: relative;
  flex: 0 0 158px;
  aspect-ratio: 9 / 16;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mauve-soft);
  border: 1px solid var(--paper-border);
  text-decoration: none;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.short-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(38, 34, 46, 0.10);
  border-color: var(--clay);
}
.short-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.short-card-play {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  font: inherit;
  text-align: left;
}
.short-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.short-card-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 0.6rem 0.55rem;
  background: linear-gradient(to top, rgba(38, 34, 46, 0.85), transparent);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 500;
}
.short-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--clay-deep);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

/* ---------- SCROLL REVEALS (classes added by JS; no-JS pages stay visible) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- ICONS (inline SVG sprite) ---------- */
.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
}
.tag-icon { margin-right: 0.45em; }
.social-links .icon { width: 0.95em; height: 0.95em; margin-right: 0.35em; }
.btn-email .icon,
.connect-social .icon { margin-right: 0.45em; }
.beyond-icon { color: var(--violet); }
.beyond-icon--clay { color: var(--clay-deep); }
.beyond-icon .icon { width: 1.6rem; height: 1.6rem; stroke-width: 1.75; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 900px) {
  .work-grid       { grid-template-columns: 1fr 1fr; }
  .work-card:nth-child(3n) { border-right: 1px solid var(--mauve-border-strong); }
  .work-card:nth-child(2n) { border-right: none; }
  .projects-grid   { grid-template-columns: 1fr 1fr; }
  .bg-grid         { grid-template-columns: 1fr 1fr; }
  .beyond-grid     { grid-template-columns: 1fr 1fr; }
  .connect-inner   { grid-template-columns: 1fr; gap: 2rem; }
  .connect-right   { padding-top: 0; }
  .connect-photo   { margin-left: auto; margin-right: auto; }
  .wr-grid         { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .stats-bar       { grid-template-columns: 1fr 1fr; }
  .work-grid       { grid-template-columns: 1fr; }
  .projects-grid   { grid-template-columns: 1fr; }
  .bg-grid         { grid-template-columns: 1fr; }
  .wr-grid         { grid-template-columns: 1fr; }
  .beyond-grid     { grid-template-columns: 1fr 1fr; }

  section,
  #beyond,
  #connect          { padding: 3.5rem 1.25rem; }
  .site-nav         { padding: 0 1.25rem; }
  #hero             { padding: 7rem 1.25rem 3rem; }
  .site-footer      { padding: 2rem 1.25rem; }
  .connect-actions  { grid-template-columns: 1fr; width: 100%; }
  .btn-email        { text-align: center; }
}

/* Accessibility: respect reduced motion */
@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;
  }
  .hero-inner > * { opacity: 1; }
}
