/* =============================================
   SCROLL REVEAL — sections nudge up and fade in
   as they scroll into view. Paired with main.js's
   IntersectionObserver. Respects reduced motion
   via the JS guard, not just CSS.
   ============================================= */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* A little personality on hover — cards feel like stickers you can
   nudge, not flat rectangles. Small enough to stay tasteful. */
.archive-card:hover {
  transform: translate(3px, 3px) rotate(-0.6deg);
}

.smftd-card:hover {
  transform: translate(2px, 2px) rotate(0.8deg);
}

.service-card:hover {
  transform: translate(3px, 3px) rotate(-0.5deg);
}

.btn-primary:hover {
  transform: translate(1px, 1px) rotate(-1deg);
}

/* Nav logo wobble on hover — full definition (including the
   always-visible fix) lives further down this file. */

/* =============================================
   MATTHEW DICKINSON — extensions layer
   Loaded after main.css. Only adds structural
   styles for components main.css doesn't know
   about (archive cards, service cards, etc).
   Does not touch *, html, body, img, a — those
   are owned by main.css.

   Note: the real nav (#mainNav, .nav-tag, .nav-drawer)
   is fully styled in main.css. Nothing here should
   touch nav-related selectors — an old dead nav-overlay
   block used to live here and silently won the
   specificity war against main.css's real nav styling,
   which is why the nav briefly looked broken.
   ============================================= */

.intro-section {
  padding: 80px 40px 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-section p {
  font-family: 'Zalando Sans', sans-serif;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.8em;
}

.intro-section a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro-cta {
  text-align: right;
  margin-top: 8px;
}

.intro-cta a {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   SERVICES LABEL
   ============================================= */

.section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  padding: 0 40px;
  max-width: 1000px;
  margin: 40px auto 16px;
}

/* =============================================
   SERVICE CARDS (image tiles)
   ============================================= */

/* =============================================
   SERVICE CARDS — horizontal scroll carousel
   ============================================= */

.services-cards-wrapper {
  padding: 0 40px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.services-cards-wrapper::-webkit-scrollbar { display: none; }
.services-cards-wrapper.is-dragging { cursor: grabbing; }

.services-cards {
  display: flex;
  gap: 16px;
  width: max-content;
  margin: 0 auto;
}

.service-card {
  position: relative;
  width: clamp(240px, 26vw, 320px);
  aspect-ratio: 4/5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--ink);
  flex-shrink: 0;
  scroll-snap-align: start;
  transform: translate(0, 0);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.service-card:hover .service-card-bg { transform: scale(1.06); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
}

.service-card--content .service-card-overlay  { background: linear-gradient(160deg, #1a1a2e 0%, #2a2a2a 100%); opacity: 0.7; }
.service-card--marketing .service-card-overlay { background: linear-gradient(160deg, #c45e00 0%, #e8830a 100%); opacity: 0.7; }
.service-card--media .service-card-overlay     { background: linear-gradient(160deg, #8b0000 0%, #c0392b 100%); opacity: 0.7; }
.service-card--web .service-card-overlay       { background: linear-gradient(160deg, #0a2030 0%, #1a3a4a 100%); opacity: 0.7; }

.service-card:hover .service-card-overlay { opacity: 0.75; }

.service-card-body {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
  color: #ffffff;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-title { transform: translateY(-4px); }

.service-card-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  opacity: 0.85;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-card-items {
  opacity: 1;
  transform: translateY(-2px);
}

.service-card-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.service-card:hover .service-card-pill {
  background: rgba(255,255,255,0.25);
}

/* =============================================
   ABOUT STRIP (TwoScoops / outdoors section)
   ============================================= */

.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 40px;
  align-items: center;
}

.about-strip-text p {
  font-family: 'Zalando Sans', sans-serif;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.8em;
}

.about-strip-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-strip-image {
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 6px 6px 0 var(--ink);
}

.about-strip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============================================
   LIST SECTIONS (Projects / Adventures on homepage)
   ============================================= */

.list-section {
  border-top: 1px solid var(--ink);
  padding: 0 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.list-section-header {
  padding: 32px 0 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--ink);
  padding: 18px 0;
  text-decoration: none;
  transition: background 0.25s ease;
}

.list-item:hover { background: var(--cream); }

.list-item-title {
  font-family: 'Zalando Sans', sans-serif;
  font-size: clamp(2.5rem, 3.5vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
}

.list-item-arrow {
  font-size: 1rem;
  color: var(--mid);
  flex-shrink: 0;
  margin-left: 16px;
  display: inline-block;
}

.list-see-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--mid);
  margin: 20px 0 32px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   CONTACT FORM
   ============================================= */

.contact-section {
  border-top-color: var(--purple);
  border-top: 1px solid;
  padding: 80px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 32px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 0;
}

.contact-form .form-group { margin-bottom: 0; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 16px;
  border: none;
  border: 1px solid var(--ink);
  background: #ffffff;
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  border-radius: 10px;
  margin: 5px;
  gap: 5px;
  -webkit-appearance: none;
}

/* Remove right border on last column */
.contact-form .form-row input:last-child { border-right: none; }
.contact-form textarea { border-right: none; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--mid); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  background: #fafafa;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

/* What's it about checkboxes */
.contact-form .checkbox-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  margin-top: 20px;
  display: block;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  color: var(--mid);
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  accent-color: var(--pink);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  appearance: auto;
  -webkit-appearance: checkbox;
}

/* Submit button - pill style matching original */
.contact-form button {
  width: 100%;
  padding: 18px;
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--pink);
  font-family: 'Zalando Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.25s ease, color 0.25s ease;
  margin-top: 24px;
}

.contact-form button:hover {
  background: var(--pink);
  color: #ffffff;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--cream);
  padding: 80px 40px 40px;
  text-align: center;
}

.footer-tagline {
  font-family: 'Bangers', sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  color: var(--teal);
  letter-spacing: 0.04em;
  line-height: 0.9;
  margin-bottom: 60px;
  user-select: none;
}

.footer-text {
  font-size: 0.6rem;
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto;
}

.footer-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }



/* =============================================
   ARCHIVE PAGE
   ============================================= */

.archive-header {
  padding: 40px 28px 32px;
  text-align: center;
  background: var(--cream);
}

.archive-header h1 {
  font-family: 'Bangers', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-transform: uppercase;
  gap: 4px;
}

.archive-header h1 sup {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 16px;
}

.archive-header p {
  font-size: 0.7rem;
  color: var(--mid);
  max-width: 500px;
  margin: 16px auto 0;
  line-height: 1.8;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  background: transparent;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.archive-grid .archive-card:nth-child(3n+1) { transform: rotate(-0.8deg); }
.archive-grid .archive-card:nth-child(3n+2) { transform: rotate(0.6deg); }
.archive-grid .archive-card:nth-child(3n)   { transform: rotate(-0.3deg); }

.archive-grid .archive-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.archive-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  background: var(--cream);
}

.archive-card-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(
    45deg,
    var(--cream),
    var(--cream) 10px,
    #ffffff 10px,
    #ffffff 20px
  );
}

.archive-card-img--empty::after {
  content: '✦';
  font-size: 2rem;
  color: var(--mid);
  opacity: 0.5;
}

.archive-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.archive-card:hover .archive-card-img img { transform: scale(1.04); }

.archive-card-info {
  padding: 16px 18px 20px;
}

.archive-card-cat {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  color: var(--mid);
}

.archive-card-title {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.archive-card-date {
  display: block;
  margin-top: 6px;
}

/* =============================================
   SINGLE POST
   ============================================= */

.post-hero {
  max-width: 1000px;
  margin: 0 auto 32px;
  padding: 0 28px;
}

.post-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 6px 6px 0 var(--ink);
  display: block;
}

.post-header {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 28px 24px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
}

.breadcrumb-trail a { color: var(--mid); }
.breadcrumb-trail a:hover { color: var(--ink); }
.breadcrumb-sep { color: var(--mid); opacity: 0.5; }

/* Kept for any template still using the old single-link version */
.post-breadcrumb {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
}

.post-breadcrumb a:hover { color: var(--ink); }

/* =============================================
   TICKER — borrowed from SMFTD, blended in quietly
   ============================================= */

.ticker-strip {
  overflow: hidden;
  background: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}

.ticker-track span { flex-shrink: 0; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* =============================================
   SMFTD HUB — the personal brand, given real weight
   ============================================= */

/* =============================================
   FIXES: nav logo, font stack cohesion, sizing
   ============================================= */

/* Nav logo must always be visible and clickable — main.css hides it
   until you scroll, which made sense for SMFTD's single hero-first
   page but breaks every other page on this site that has no hero. */
.nav-title {
  font-family: 'Bangers', sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  opacity: 1 !important;
  pointer-events: all !important;
  transform: none !important;
}

.nav-title .hl {
  background: var(--yellow);
  padding: 0 8px 2px;
  border-radius: 6px;
  border: 2px solid var(--ink);
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-title:hover .hl {
  transform: rotate(-3deg) scale(1.05);
}

/* Bangers is now the universal heading font site-wide, so this rule
   just controls .hero h1's specific size rather than its font. */
.hero h1 {
  font-family: 'Bangers', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.smftd-hub {
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px;
  background: var(--ink);
  border-radius: var(--rad);
  border-top: 4px solid var(--yellow);
  border-bottom: 4px solid var(--yellow);
}

.smftd-hub-intro p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 32px;
}

.smftd-hub-intro strong { color: var(--yellow); }
.smftd-hub-intro a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

.smftd-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.smftd-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 5px 5px 0 var(--yellow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.smftd-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--yellow);
}

.smftd-card-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

.smftd-card-title {
  font-family: 'Bangers', sans-serif;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
  margin: 4px 0;
}

.smftd-card-sub {
  font-size: 0.75rem;
  color: var(--mid);
}

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

/* =============================================
   SECTION DESIGN SYSTEM
   Mirrors SMFTD's own type system everywhere now:
   Bangers headings, Zalando Sans everywhere else, thick borders,
   hard shadows. Category colour is the only thing
   that shifts per section. Tweak per-section fonts
   back in later if Work should read calmer again.
   ============================================= */

/* =============================================
   SECTION DESIGN SYSTEM
   Bangers is the heading font everywhere, one
   consistent voice site-wide. Body copy stays
   Zalando Sans regardless of section. Colour is
   the only thing that still shifts per category.
   ============================================= */

.archive-header h1,
.post-header h1,
.page-header h1 {
  font-family: 'Bangers', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* --- Work: blue --- */
.post-breadcrumb.cat-work a, .breadcrumb-trail a.cat-work { color: var(--blue); }

/* --- Adventures: yellow, SMFTD's own dominant colour. Plain text
   link like every other section — pure yellow text fails contrast,
   so the colour comes through as an underline instead, and a pill
   badge here read as "current page" rather than "parent link". --- */
.post-breadcrumb.cat-adventures a,
.breadcrumb-trail a.cat-adventures {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* --- Projects: teal --- */
.post-breadcrumb.cat-projects a, .breadcrumb-trail a.cat-projects { color: var(--teal); }

/* --- Notes: purple --- */
.post-breadcrumb.cat-notes a, .breadcrumb-trail a.cat-notes { color: var(--purple); }

/* --- Work: intro section, image RHS or full width --- */
.work-intro {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.work-intro--right {
  flex-direction: row;
}

.work-intro--right .work-intro-img {
  order: 2;
  flex: 0 0 clamp(220px, 32vw, 360px);
}

.work-intro--right .work-intro-text {
  flex: 1 1 400px;
  min-width: 0;
}

.work-intro--full {
  flex-direction: column;
}

.work-intro--full .work-intro-img {
  width: 100%;
}

.work-intro-img img {
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 6px 6px 0 var(--ink);
  display: block;
}

@media (max-width: 700px) {
  .work-intro { flex-direction: column; }
  .work-intro--right .work-intro-img { order: 0; flex: none; width: 100%; }
}

.work-video-embed {
  position: relative;
  padding-top: 56.25%;
  margin: 2em 0 0.5em;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
}

.work-video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.work-video-caption {
  font-size: 0.85rem;
  color: var(--mid);
  text-align: center;
  margin-bottom: 1.5em;
}

/* --- Work: two-column brands + skills showcase --- */
.work-two-col {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 28px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.work-brand-list,
.work-skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-brand-list li,
.work-skills-list li {
  font-family: 'Zalando Sans', sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6em;
}

@media (max-width: 700px) {
  .work-two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* --- Work hub: bio content followed by the case-study grid --- */
.work-grid-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 28px 60px;
}

.work-grid-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 32px;
}

.post-header h1 {
  font-family: 'Bangers', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 0.78rem;
  color: var(--mid);
  display: flex;
  gap: 12px;
}

.post-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 28px 60px;
}

.post-content p {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 1.4em;
  color: var(--ink);
}

/* A paragraph directly following an image is treated as its caption,
   this is how every post in this site is actually written, an image
   on its own line, then a single sentence describing it. */
.post-content p:has(img) + p {
  font-size: 0.85rem;
  letter-spacing: normal;
  line-height: 1.5;
  font-style: italic;
  color: var(--mid);
  margin-top: -1em;
  margin-bottom: 2em;
}

.post-content h2 {
  font-family: 'Bangers', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 1.2em 0 0.5em;
  line-height: 1.2;
}

.post-content h3 {
  font-family: 'Bangers', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin: 1em 0 0.4em;
}

.post-content img {
  width: 100%;
  margin: 1.8em 0 0.6em;
  border: 3px solid var(--ink);
  border-radius: var(--rad);
  box-shadow: 6px 6px 0 var(--ink);
}

.post-content em {
  display: block;
  font-size: 0.8rem;
  color: var(--mid);
  font-style: italic;
  margin-top: -0.4em;
  margin-bottom: 1.8em;
}

.post-content ul, .post-content ol {
  margin: 0.5em 0 1.4em 1.4em;
  font-size: 0.95rem;
  line-height: 1.9;
}

.post-content li { margin-bottom: 0.3em; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-content strong { font-weight: 700; }

/* =============================================
   RELATED POSTS
   ============================================= */

.related-posts {
  border-top: 1px solid var(--ink);
  padding: 40px 28px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.related-posts h3 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 28px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-card { display: block; }

.related-card-img {
  overflow: hidden;
  aspect-ratio: 3/2;
  margin-bottom: 12px;
  background: var(--cream);
}

.related-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.related-card-cat {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 6px;
  display: block;
}

.related-card-meta {
  font-size: 0.75rem;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.related-card-title {
  font-family: 'Bangers', sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ink);
}

/* =============================================
   PAGE TEMPLATE
   ============================================= */

.page-header {
  padding: 40px 28px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.page-header h1 {
  font-family: 'Bangers', sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 28px 80px;
}

.page-content p { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.3; font-weight: 400; margin-bottom: 1.4em; }
.page-content h2 { font-family: 'Bangers', sans-serif; font-weight: 400; font-size: 1.3rem; margin: 1.2em 0 0.5em; }
.page-content ul, .page-content ol { margin: 0.5em 0 1.4em 1.4em; line-height: 1.9; font-size: 0.95rem; }
.page-content a { text-decoration: underline; text-underline-offset: 3px; }
.page-content strong { font-weight: 700; }

/* =============================================
   52 PEAKS
   ============================================= */

.peaks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  background: var(--ink);
  margin: 40px 0;
}

.peak-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--teal);
}

.peak-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.peak-card:hover img { transform: scale(1.04); opacity: 0.9; }

.peak-card-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

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


/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.js .reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Stagger up to 20 items, then show rest instantly */
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1)  { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2)  { transition-delay: 0.06s; }
.reveal-stagger.is-visible > *:nth-child(3)  { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(4)  { transition-delay: 0.18s; }
.reveal-stagger.is-visible > *:nth-child(5)  { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(6)  { transition-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(7)  { transition-delay: 0.36s; }
.reveal-stagger.is-visible > *:nth-child(8)  { transition-delay: 0.42s; }
.reveal-stagger.is-visible > *:nth-child(9)  { transition-delay: 0.48s; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 0.54s; }
.reveal-stagger.is-visible > *:nth-child(11) { transition-delay: 0.60s; }
.reveal-stagger.is-visible > *:nth-child(12) { transition-delay: 0.66s; }
.reveal-stagger.is-visible > *:nth-child(n+13) { transition-delay: 0.7s; }

/* List item hover underline animation */
.list-item-title {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
  padding-bottom: 2px;
}

.list-item:hover .list-item-title {
  background-size: 100% 1px;
}

/* Post content image reveal */
.post-content img {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.post-content img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

/* Archive cards get a slight playful tilt on hover, on top of the
   press-into-shadow effect defined earlier — small personality touch */
.archive-grid .archive-card:hover {
  transform: translate(3px, 3px) rotate(-0.6deg);
}

@media (max-width: 900px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .hero-content { padding: 0 24px; }
  .intro-section { padding: 60px 24px 40px; }
  .section-label { padding: 0 24px; }
  .list-section { padding: 0 24px; }
  .list-item:hover { margin: 0 -24px; padding: 18px 24px; }
  .contact-section { padding: 60px 24px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .checkbox-group { gap: 12px; }
  .site-footer { padding: 60px 24px 30px; }
  .archive-header { padding: 100px 24px 40px; }
  .archive-grid { grid-template-columns: 1fr; }
  .service-card { width: 240px; }
  .post-header { padding: 40px 24px 24px; }
  .post-content { padding: 10px 24px 40px; }
  .related-posts { padding: 32px 24px 60px; }
  .related-grid { grid-template-columns: 1fr; }
  .page-header { padding: 100px 24px 30px; }
  .page-content { padding: 20px 24px 60px; }
  .about-strip { padding: 0 24px; margin: 60px auto; }
}

/* --- Inline circle images in text --- */
.inline-circle {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  margin: 0 4px;
  position: relative;
  top: -2px;
  background: var(--cream);
}

.inline-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Project list hover image --- */
.list-item {
  position: relative;
}

.list-item-preview {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
 
.list-item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
.list-item:hover .list-item-preview {
  opacity: 1;
}

/* =============================================
   RELATED POSTS — full definition lives earlier
   in this file (the 28px standardized padding).
   This was an accidental duplicate with stale
   40px padding that was silently winning.
   ============================================= */

.related-archive-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 100%;
  padding: 0;
}

@media (max-width: 600px) {
  .related-archive-grid { grid-template-columns: 1fr; }
  .related-posts { padding: 40px 24px 60px; }
}
/* =============================================
   YOUTUBE EMBED
   ============================================= */

.youtube-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2em 0;
  border-radius: 8px;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
