/* =========================================================
   ANTECHAMBER — main stylesheet
   ========================================================= */

:root {
  /* light mode */
  --paper: #ffffff;
  --ink: #000000;
  --ink-2: #4a4a4a;
  --ink-3: #808080;
  --rule: #e5e5e5;
  --rule-strong: #cccccc;
  --accent: #8b1e1e;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html.dark {
  --paper: #0f0f0e;
  --ink: #ffffff;
  --ink-2: #b8b8b6;
  --ink-3: #7a7a78;
  --rule: #2a2825;
  --rule-strong: #3d3a36;
  --accent: #c47a5a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Subtle noise texture — SVG data URL for paper-stock feel.
   Very low opacity so it never becomes decorative, just breaks the flat digital. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
html.dark body::before {
  mix-blend-mode: screen;
  opacity: 0.18;
}

/* All content above the texture layer */
header, main, footer { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

.icon {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.125em;
  flex-shrink: 0; fill: currentColor;
}

/* =========================================================
   MASTHEAD
   ========================================================= */

header.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

/* The a. mark — custom Illustrator-drawn glyph.
   Single SVG containing both the a-form and the square stop.
   Fill inherits from currentColor so theme flipping works. */
.ae-mark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  line-height: 0;
  text-decoration: none;
}
.ae-mark svg.mark {
  height: 46px;
  width: auto;
  display: block;
  fill: currentColor;
  transition: fill 0.25s ease;
}
.ae-mark .wordmark-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1;
  align-self: center;
  margin-left: 14px;
}

/* Menu */
.menu {
  display: flex;
  align-items: center;
  gap: 26px;
}
.menu a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.15s ease;
}
.menu a:hover { color: var(--ink); }
.menu a.active { color: var(--ink); }
.menu a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
}

.theme-toggle {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
html.dark .theme-toggle .icon-sun { display: inline; }
html.dark .theme-toggle .icon-moon { display: none; }

/* =========================================================
   MOBILE MENU — hamburger + full-screen overlay
   ========================================================= */

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  position: fixed;
  top: 14px;
  right: 20px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.25s ease;
  transform-origin: center;
}

body.mobile-menu-open {
  overflow: hidden;
}
body.mobile-menu-open .hamburger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.mobile-menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}
body.mobile-menu-open .hamburger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 55;
  padding: 100px 32px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-nav a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  color: var(--ink);
}
.mobile-menu-nav a.active::after {
  content: " ·";
  color: var(--ink-3);
}
.mobile-menu-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
}
.mobile-menu-tools .contact-link {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.mobile-menu-tools .theme-toggle {
  margin-left: 0;
}

/* =========================================================
   HERO / INTRO STRIP
   ========================================================= */

.intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 36px 80px;
  border-bottom: 1px solid var(--rule);
}
.intro-inner {
  max-width: 780px;
}
.intro-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.intro-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.intro-lede em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-2);
}

/* =========================================================
   FEATURED POST — full-width, centred, unboxed image
   ========================================================= */

.featured {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 36px 32px;
}
.featured-tile {
  display: block;
  text-align: center;
}
.featured-image {
  aspect-ratio: 3 / 2;
  max-width: 880px;
  width: 100%;
  margin: 0 auto 32px;
  overflow: hidden;
  position: relative;
}
.featured-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.featured-tile:hover .featured-image img { transform: scale(1.01); }
.featured-meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.featured-meta .medium {
  color: var(--ink-2);
}
.featured-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  transition: text-decoration 0.15s ease;
}
.featured-tile:hover .featured-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.featured-caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================
   WORK GRID — mixed-media tile system
   ========================================================= */

.work-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 36px 100px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-count {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 24px;
}

.work-tile {
  display: block;
  cursor: pointer;
}
.work-thumb {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--rule);
  margin-bottom: 14px;
  position: relative;
}
.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease, opacity 0.3s ease;
}
.work-tile:hover .work-thumb img {
  transform: scale(1.02);
}

/* Medium badge — small mark showing what type of work */
.medium-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15,15,14,0.85);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 1px;
  backdrop-filter: blur(4px);
}
html:not(.dark) .medium-badge {
  background: rgba(15,15,14,0.9);
}

.work-meta {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.work-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color 0.15s ease;
}
.work-tile:hover .work-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.work-caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* =========================================================
   WRITING INDEX
   ========================================================= */

.writing-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 36px 100px;
}
.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
}
.writing-tile {
  display: block;
  cursor: pointer;
}
.writing-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--rule);
  margin-bottom: 18px;
  position: relative;
}
.writing-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.writing-tile:hover .writing-thumb img { transform: scale(1.02); }
.writing-meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.writing-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.writing-tile:hover .writing-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.writing-standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .writing-section { padding: 40px 20px 60px; }
  .writing-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}
@media (max-width: 620px) {
  .writing-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   BLOG POST (long-form article template — Wilton Place pattern)
   Uses body.post-view on the post pages so blog-specific rules
   don't leak into other pages that share this stylesheet.
   ========================================================= */

/* --- Sticky kicker strip: sits below the masthead, holds the post label + social share icons --- */
.kicker-strip {
  position: sticky;
  top: 76px; /* under the sticky masthead */
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.kicker-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.kicker-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kicker-share {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.kicker-share a {
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: color 0.15s;
}
.kicker-share a svg {
  width: 16px;
  height: 16px;
}
.kicker-share a:hover { color: var(--ink); }

/* Reading progress bar — thin line under the kicker strip */
.reading-progress {
  position: sticky;
  top: 120px; /* under masthead + kicker */
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 39;
  pointer-events: none;
}
.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 0.05s linear;
}

/* Hero image sits after the sticky header block */
.post-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rule);
  margin: 0;
}
.post-hero img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Article container */
.post-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 36px 0;
}

.post-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}
.post-title .it { font-style: italic; font-weight: 300; }

.post-tagline {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.post-standfirst {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

/* Body — narrow reading column, regular weight, no drop cap */
.post-body {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 60px;
}
.post-body p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 24px;
}
.post-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 48px 0 20px;
}
.post-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin: 32px 0 12px;
}
.post-body blockquote {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
}
.post-body a {
  border-bottom: 1px solid var(--ink-2);
}
.post-body a:hover { border-color: var(--ink); }

/* Full-bleed inline images inside body flow */
.post-body-image {
  margin: 48px calc(50% - 50vw);
  width: 100vw;
  max-width: none;
}
.post-body-image img {
  width: 100%;
  height: auto;
  display: block;
}
.post-body-image figcaption {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 0 36px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-style: italic;
}

/* Sign-off email line at end of post */
.post-signoff {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0 80px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--ink-2);
}
.post-signoff a { color: var(--ink); border-bottom: 1px solid var(--ink-2); }
.post-signoff a:hover { border-color: var(--ink); }

@media (max-width: 900px) {
  .kicker-strip { top: 68px; }
  .kicker-inner { padding: 10px 20px; }
  .kicker-title { font-size: 10px; }
  .reading-progress { top: 106px; }
  .post-hero { aspect-ratio: 3 / 2; }
  .post-article { padding: 44px 20px 0; }
  .post-body-image figcaption { padding: 0 20px; }
  .post-signoff { padding: 32px 0 60px; }
}

/* =========================================================
   SOUND PAGE
   ========================================================= */

.sound-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 36px 100px;
}
.sound-release {
  margin-bottom: 64px;
}
.sound-release:last-child { margin-bottom: 0; }
.sound-release-meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.sound-release-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.sound-release-caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.sound-embed-slot {
  aspect-ratio: 16 / 9;
  background: var(--rule);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--rule-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  padding: 20px;
}
/* When you drop in an actual Bandcamp iframe, remove the dashed border */
.sound-embed-slot iframe {
  border: 0;
  display: block;
}
.sound-embed-slot:has(iframe) {
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
/* Square minimal Bandcamp player — 350x350 native. Left-aligned to match text flow. */
.sound-embed-slot--square {
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.sound-embed-slot--square iframe {
  width: 350px;
  height: 350px;
  max-width: 100%;
}
/* Responsive: below 400px viewport, let the iframe shrink to fit */
@media (max-width: 400px) {
  .sound-embed-slot--square iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
.sound-release-links {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sound-release-links a {
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.sound-release-links a:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 900px) {
  .sound-page { padding: 40px 20px 60px; }
}

/* =========================================================
   PHOTOGRAPHY GALLERY
   ========================================================= */

.gallery-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 36px 40px;
}
.gallery-intro {
  max-width: 640px;
  margin-bottom: 48px;
}
.gallery-intro-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.gallery-intro-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.gallery-intro-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-tile {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--rule);
  position: relative;
  cursor: pointer;
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.gallery-tile:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}
.gallery-empty {
  grid-column: 1 / -1;
  padding: 80px 24px;
  text-align: center;
  border: 1px dashed var(--rule-strong);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-3);
}

.linked-projects {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 36px 100px;
  border-top: 1px solid var(--rule);
}
.linked-projects .section-head { margin-bottom: 40px; }
.linked-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}
.linked-tile {
  display: block;
  cursor: pointer;
}
.linked-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--rule);
  margin-bottom: 16px;
  position: relative;
}
.linked-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.linked-tile:hover .linked-thumb img { transform: scale(1.02); }
.linked-meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.linked-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.linked-caption {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .gallery-section { padding: 40px 20px 24px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .linked-projects { padding: 56px 20px 60px; }
  .linked-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   JOIN PAGE
   ========================================================= */

.join-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 80px 36px;
}
.join-inner {
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}
.join-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.join-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  color: var(--ink);
}
.join-title em {
  font-style: italic;
  color: var(--ink-2);
}
.join-lede {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 48px;
  max-width: 580px;
}

.join-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}
.join-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  outline: none;
}
.join-form input[type="email"]::placeholder {
  color: var(--ink-3);
  font-style: italic;
}
.join-form button {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.join-form button:hover { color: var(--accent); }
.join-note {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 64px;
  max-width: 480px;
  line-height: 1.5;
}

.socials-title {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.socials a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 4px;
  transition: color 0.15s, border-color 0.15s;
}
.socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

footer.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 60px 36px 40px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.footer-brand .ae-mark svg.mark { height: 32px; }
.footer-brand .wordmark-text { font-size: 17px; margin-left: 12px; }
.footer-brand .colophon {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 20px;
  line-height: 1.6;
}
.footer-brand .colophon .founded {
  display: block;
  margin-bottom: 4px;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.15s;
}
.footer-menu a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.footer-signup {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-signup-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-signup-form {
  display: flex;
  border-bottom: 1px solid var(--ink);
}
.footer-signup-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.footer-signup-form input[type="email"]::placeholder {
  color: var(--ink-3);
  font-style: italic;
}
.footer-signup-form button {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 8px 0 8px 12px;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-signup-form button:hover { color: var(--accent); }

.footer-base {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

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

@media (max-width: 1200px) {
  .work-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .masthead-inner { padding: 16px 20px; gap: 16px; }
  .ae-mark svg.mark { height: 36px; }
  .ae-mark .wordmark-text { font-size: 15px; }

  /* Show hamburger, hide desktop menu items */
  .hamburger { display: block; }
  .menu > a,
  .menu > .contact-link,
  .menu > .theme-toggle { display: none; }

  .intro { padding: 60px 20px 50px; }
  .featured { padding: 40px 20px 24px; }
  .work-section { padding: 24px 20px 60px; }
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; }
  .footer-base { padding: 24px 20px 0; }
  footer.site-footer { padding: 48px 0 32px; }
  .join-page { padding: 60px 20px; }
}

@media (max-width: 620px) {
  .masthead-inner { flex-wrap: nowrap; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .mobile-menu-nav a { font-size: 26px; padding: 8px 0; }
}
