/*
Theme Name: TenThirty.One
Theme URI: https://tenthirty.one
Author: TenThirty.One
Description: Aerial photography & construction documentation portfolio theme. Bold Barlow Condensed display type, red brand accent, parallax hero, timeline project pages.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 8.0
License: Private
Text Domain: tenthirtyone
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red:          #C0281C;
  --red-dark:     #9A1F15;
  --red-glow:     rgba(192, 40, 28, 0.18);
  --red-faint:    rgba(192, 40, 28, 0.06);
  --ink:          #111118;
  --ink-mid:      #2C2C38;
  --ink-soft:     #5A5A70;
  --ash:          #9898A8;
  --rule:         #E4E4EE;
  --bg:           #F8F8FA;
  --bg-warm:      #F3F2EF;
  --white:        #FFFFFF;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.875rem;
  --space-md:  1.25rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  --header-h:  64px;
  --max-w:     1280px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);

  --r-sm: 3px;
  --r-md: 8px;
  --r-lg: 16px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --t-fast:    140ms;
  --t-med:     260ms;
  --t-slow:    480ms;

  --shadow-sm: 0 1px 4px rgba(17,17,24,0.07);
  --shadow-md: 0 4px 20px rgba(17,17,24,0.10);
  --shadow-lg: 0 12px 48px rgba(17,17,24,0.14);
  --shadow-xl: 0 24px 80px rgba(17,17,24,0.18);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--ink); background: var(--bg); overflow-x: hidden; line-height: 1.65; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem);  font-weight: 700; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
h4 { font-size: 1.25rem; letter-spacing: 0.03em; }
h5 { font-size: 0.9375rem; }

p { margin-bottom: var(--space-sm); line-height: 1.7; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
  line-height: 1.75;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--text  { max-width: 760px; }
.wrap--wide  { max-width: 1600px; }

.section     { padding-block: var(--space-2xl); }
.section--sm { padding-block: var(--space-xl); }
.section--lg { padding-block: var(--space-3xl); }

.page-wrap   { padding-top: var(--header-h); min-height: 100vh; display: flex; flex-direction: column; }
main         { flex: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: var(--header-h);
  background: rgba(248,248,250,0.92);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--t-med) var(--ease-out);
}

/* Red gradient stripe bottom of header */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--red) 30%, var(--red-dark) 70%, transparent 100%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
}

.site-header.scrolled { box-shadow: 0 2px 24px rgba(17,17,24,0.08); }
.site-header.scrolled::after { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-12px);
  animation: slideInLeft 0.6s var(--ease-out) 0.1s forwards;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.logo-mark svg { width: 26px; height: 26px; fill: white; }

.site-logo:hover .logo-mark {
  background: var(--red-dark);
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}

.logo-text em {
  font-style: normal;
  color: var(--red);
}

/* Nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.primary-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 0;
  position: relative;
  transition: color var(--t-fast);
  opacity: 0;
  animation: fadeIn 0.5s var(--ease-out) forwards;
}

.primary-nav a:nth-child(1) { animation-delay: 0.25s; }
.primary-nav a:nth-child(2) { animation-delay: 0.35s; }
.primary-nav a:nth-child(3) { animation-delay: 0.45s; }
.primary-nav a:nth-child(4) { animation-delay: 0.55s; }
.primary-nav a:nth-child(5) { animation-delay: 0.65s; }

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--t-med) var(--ease-out);
}

.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--ink); }
.primary-nav a:hover::after,
.primary-nav a.current-menu-item::after { width: 100%; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-lg) var(--gutter);
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    gap: var(--space-md);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out);
    box-shadow: var(--shadow-lg);
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .primary-nav a { font-size: 1rem; opacity: 1; animation: none; }
}

/* ============================================================
   HERO — parallax, gradient, motion
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(580px, 88vh, 960px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero__bg {
  position: absolute;
  inset: -10%;
  background-image: var(--bg-img, none);
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  transform: scale(1.12);
  transition: transform 10s var(--ease-out);
}
.hero.loaded .hero__bg { transform: scale(1.04); }

/* Dark vignette + red bloom from bottom-left */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(192,40,28,0.22) 0%, transparent 70%),
    linear-gradient(to top, rgba(17,17,24,0.95) 0%, rgba(17,17,24,0.5) 45%, rgba(17,17,24,0.15) 100%);
}

/* Animated red accent line at bottom */
.hero__accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-dark) 100%);
  animation: expandLine 1.2s var(--ease-out) 0.8s forwards;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: var(--space-2xl);
  padding-top: var(--space-2xl);
}

.hero__eyebrow {
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.3s forwards;
}

.hero__eyebrow::before { background: var(--red); }

.hero__title {
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.45s forwards;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.6s forwards;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.75s forwards;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn svg   { flex-shrink: 0; transition: transform var(--t-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary  { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 6px 24px rgba(192,40,28,0.35); }

.btn-ghost    { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

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

.btn-dark     { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-mid); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-hd { margin-bottom: var(--space-lg); }
.section-hd .eyebrow { margin-bottom: 12px; }
.section-hd h2 { margin-bottom: 0; }

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  display: block;
  text-decoration: none;
  group: true;
}

.portfolio-card__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink-mid);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}

.portfolio-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out), filter var(--t-slow) var(--ease-out);
  filter: saturate(0.88) brightness(0.96);
}

.portfolio-card:hover .portfolio-card__thumb img {
  transform: scale(1.06);
  filter: saturate(1) brightness(0.85);
}

/* Red left-edge reveal on hover */
.portfolio-card__thumb::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height var(--t-slow) var(--ease-out);
  border-radius: 0 0 var(--r-sm) 0;
}

.portfolio-card:hover .portfolio-card__thumb::after { height: 100%; }

.portfolio-card__label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 4px;
  transition: color var(--t-fast);
}

.portfolio-card:hover .portfolio-card__label { color: var(--red); }

.portfolio-card__sub {
  font-size: 0.8125rem;
  color: var(--ash);
  font-weight: 400;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--ink);
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 0%, rgba(192,40,28,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__eyebrow { margin-bottom: var(--space-sm); }
.page-hero__eyebrow .eyebrow { color: rgba(255,255,255,0.45); }
.page-hero__eyebrow .eyebrow::before { background: var(--red); opacity: 0.7; }

.page-hero h1 { color: var(--white); }

.page-hero__desc {
  color: rgba(255,255,255,0.55);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  max-width: 540px;
  margin-top: var(--space-sm);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.3; }

/* ============================================================
   PROJECT PAGE — HERO IMAGE
   ============================================================ */
.project-cover {
  position: relative;
  max-height: 640px;
  overflow: hidden;
  background: var(--ink);
}

.project-cover img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   PROJECT META BAR
   ============================================================ */
.project-meta-bar {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-md) 0;
}

.project-meta-inner {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
  align-items: center;
}

.project-meta-item {}
.project-meta-item__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 2px;
}
.project-meta-item__value {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

/* Vertical red line */
.timeline::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red) 0%, rgba(192,40,28,0.15) 100%);
}

.timeline-entry {
  position: relative;
  margin-bottom: var(--space-xl);
}

/* Red dot */
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--red);
}

.timeline-entry__date {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.timeline-entry__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.timeline-entry__notes {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: var(--space-md);
  max-width: 680px;
}

/* Photo grid inside timeline entry */
.timeline-photos {
  display: grid;
  gap: 6px;
}

.timeline-photos--1  { grid-template-columns: 1fr; }
.timeline-photos--2  { grid-template-columns: repeat(2, 1fr); }
.timeline-photos--3  { grid-template-columns: repeat(3, 1fr); }
.timeline-photos--4  { grid-template-columns: repeat(2, 1fr); }
.timeline-photos--5  { grid-template-columns: repeat(3, 1fr); }
.timeline-photos--many { grid-template-columns: repeat(3, 1fr); }

.timeline-photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-sm);
  cursor: zoom-in;
  transition: transform var(--t-med) var(--ease-out), filter var(--t-med) var(--ease-out);
}

.timeline-photos img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
  position: relative;
  z-index: 1;
}

/* First photo in a single-photo entry spans full */
.timeline-photos--1 img {
  aspect-ratio: 16/9;
  cursor: zoom-in;
}

@media (max-width: 600px) {
  .timeline-photos--3,
  .timeline-photos--5,
  .timeline-photos--many { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   LIGHTBOX (minimal, JS-powered)
   ============================================================ */
.tto-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17,17,24,0.95);
  cursor: zoom-out;
  place-items: center;
}

.tto-lightbox.open {
  display: grid;
  animation: fadeIn 0.2s ease forwards;
}

.tto-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xl);
  pointer-events: none;
}

.tto-lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--t-fast);
}
.tto-lightbox__close:hover { color: var(--white); }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-section { background: var(--ink); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  overflow: hidden;
  gap: 1px;
  background: rgba(255,255,255,0.06);
}

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }

.service-item {
  background: rgba(17,17,24,0.98);
  padding: var(--space-lg);
  transition: background var(--t-med);
}
.service-item:hover { background: rgba(30,30,40,0.98); }

.service-item__icon {
  width: 36px; height: 36px;
  color: var(--red);
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.service-item__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.service-item__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ============================================================
   ABOUT SPLIT
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split__visual { order: -1; }
}

.about-split__visual { position: relative; }

.about-split__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  display: block;
}

/* Red corner accent */
.about-split__visual::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--red);
  border-radius: var(--r-sm);
  z-index: -1;
}

.about-split__body .eyebrow { margin-bottom: 12px; }
.about-split__body h2 { margin-bottom: var(--space-md); }
.about-split__body .lead { margin-bottom: var(--space-md); }
.about-split__body p { color: var(--ink-soft); margin-bottom: var(--space-sm); }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 860px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .post-grid { grid-template-columns: 1fr; } }

.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--rule);
  margin-bottom: 14px;
}

.post-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.post-card:hover .post-card__thumb img { transform: scale(1.05); }

.post-card__cat {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-faint);
  padding: 2px 8px;
  border-radius: 2px;
  text-decoration: none;
}

.post-card__date { font-size: 0.75rem; color: var(--ash); }

.post-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 8px;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
  transition: color var(--t-fast);
}

.post-card:hover .post-card__title { color: var(--red); }

.post-card__excerpt { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: var(--space-sm); }

.post-card__read {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t-fast);
}
.post-card:hover .post-card__read { gap: 8px; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 820px) { .contact-split { grid-template-columns: 1fr; } }

.contact-info p { color: var(--ink-soft); margin-top: var(--space-sm); margin-bottom: var(--space-lg); }

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--rule);
  transition: padding-left var(--t-med) var(--ease-out);
  text-decoration: none;
}
.contact-link:last-of-type { border-bottom: 1px solid var(--rule); }
.contact-link:hover { padding-left: 8px; }

.contact-link svg { color: var(--red); flex-shrink: 0; width: 18px; height: 18px; }
.contact-link__label { font-size: 0.8125rem; font-weight: 500; color: var(--ink); }
.contact-link__val { margin-left: auto; font-size: 0.8125rem; color: var(--ash); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: var(--space-md); }

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
  background: var(--white);
}

.form-group textarea { min-height: 130px; resize: vertical; }

/* ============================================================
   ENTRY CONTENT (blog posts)
   ============================================================ */
.entry-content { max-width: 720px; }
.entry-content > * + * { margin-top: var(--space-sm); }
.entry-content h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.entry-content h3 { margin-top: var(--space-xl); margin-bottom: var(--space-xs); }
.entry-content p  { color: var(--ink-soft); line-height: 1.8; }
.entry-content ul,
.entry-content ol  { padding-left: var(--space-lg); color: var(--ink-soft); line-height: 1.8; }
.entry-content ul  { list-style: disc; }
.entry-content ol  { list-style: decimal; }
.entry-content a   { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
  border-left: 3px solid var(--red);
  padding-left: var(--space-md);
  font-style: italic;
  color: var(--ink-soft);
}
.entry-content img { border-radius: var(--r-sm); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  padding-top: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.4); line-height: 1.65; max-width: 280px; }

.footer-col__title {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-sm);
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   REVEAL / SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes expandLine { from { width: 0; } to { width: 45%; } }

/* ============================================================
   UTILITIES
   ============================================================ */
.bg-warm    { background: var(--bg-warm); }
.bg-ink     { background: var(--ink); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* WP Admin bar offset */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
