/* =====================================================
   BUBAKI DESIGN — Components & Layout
   ===================================================== */


/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  /* Start transparent over the dark hero; becomes cream once scrolled */
  background-color: rgba(17, 16, 16, 0.0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(255,255,255,0.0);
  transition: background-color var(--transition-base),
              backdrop-filter var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}

/* Once scrolled: cream opaque header for all other pages */
header.scrolled {
  background-color: rgba(248, 245, 239, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
  box-shadow: var(--shadow-md);
}

/* Nav brand + links: white while over dark hero, dark once scrolled */
header:not(.scrolled) nav > a:first-child,
header:not(.scrolled) nav ul li a {
  color: rgba(255, 255, 255, 0.88);
}

header:not(.scrolled) nav ul li a:hover {
  color: #ffffff;
}

/* Contact pill stays orange — it's legible on both dark and light */
header:not(.scrolled) nav ul li:last-child a {
  color: var(--color-white);
}

/* Hamburger lines: white over dark hero */
header:not(.scrolled) .nav-toggle span {
  background-color: rgba(255, 255, 255, 0.88);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Brand / logo text link */
nav > a:first-child {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

nav > a:first-child:hover {
  color: var(--color-text);
  text-decoration: none;
}

nav > a:first-child strong {
  font-weight: 800;
}

nav > a.nav-logo img {
  height: 2rem;
  width: auto;
}

/* Nav links */
nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

nav ul li a {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  padding: var(--space-2) 0;
}

nav ul li a:hover {
  color: var(--color-text);
  text-decoration: none;
}

nav ul li a.active {
  color: var(--color-accent);
}

/* Contact as CTA pill */
nav ul li:last-child a {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

nav ul li:last-child a:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Hamburger toggle (hidden desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  padding: var(--space-2);
  z-index: 101;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =====================================================
   SHARED BUTTONS
   ===================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: transparent;
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
  text-decoration: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--color-text);
  background-color: transparent;
  color: var(--color-text);
  text-decoration: none;
  transform: translateY(-2px);
}

/* White variant — for buttons placed on dark/colored backgrounds */
.btn-secondary-invert {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: transparent;
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.btn-secondary-invert:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
}


/* =====================================================
   SECTION HEADER UTILITY
   ===================================================== */

.section-header {
  margin-bottom: var(--space-12);
}

.section-header h2,
section > h2:first-child,
section > h1:first-child {
  position: relative;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
}

.section-header h2::after,
section > h2:first-child::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: var(--radius-full);
}

/* Suppress accent line for sections that have their own color */
#installations > h2::after,
#media-ar > h2::after,
#electronics-education > h2::after,
#furniture > h2::after,
#ceramics-materials > h2::after,
#surfaces-sustainable > h2::after,
#computational-digital > h2::after,
#electronics-making > h2::after {
  /* Overridden per section below */
}


/* =====================================================
   HERO (#hero) — index.html
   ===================================================== */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  /* Dark background so the fluid sim colours pop and text is readable in white */
  background-color: #111010;
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-24);
}

/* CSS blobs disabled — fluid canvas handles the visual background */
#hero::before,
#hero::after {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Hero text: white on dark canvas background ─────────── */
#hero h1 {
  color: #ffffff;
  max-width: 880px;
  margin-bottom: var(--space-5);
  /* Subtle text-shadow to lift it above the fluid colours */
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

/* Tagline paragraph */
.hero-inner > p:first-of-type {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin-bottom: var(--space-10);
  line-height: 1.75;
  font-weight: 400;
}

/* Hero CTA row */
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

/* ── Rotating statement — inside hero, below buttons ────── */
.rotating-statement {
  margin-top: 0; /* now lives inside .hero-inner */
}

.rotating-statement p {
  font-size: var(--text-xl);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

#rotating-descriptor {
  color: var(--color-amber);   /* warm amber pops nicely on dark bg */
  font-weight: 800;
  display: inline-block;
  transition: opacity 220ms ease, transform 220ms ease;
}

#rotating-descriptor.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: scrollBounce 2.2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.scroll-indicator img {
  width: 18px;
  opacity: 0.3;
  filter: none;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}


/* =====================================================
   WHAT WE DO (#what-we-do)
   ===================================================== */

#what-we-do {
  background-color: var(--color-bg);
}

#what-we-do > p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-12);
  line-height: 1.75;
}

.disciplines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}

.discipline {
  background-color: var(--color-surface);
  border: var(--border);
  border-top: 3px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.discipline:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.discipline:nth-child(1) { border-top-color: var(--color-red); }
.discipline:nth-child(2) { border-top-color: var(--color-orange); }
.discipline:nth-child(3) { border-top-color: var(--color-amber); }
.discipline:nth-child(4) { border-top-color: var(--color-teal); }
.discipline:nth-child(5) { border-top-color: var(--color-blue); }
.discipline:nth-child(6) { border-top-color: var(--color-green); }

.discipline h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.discipline p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
}


/* =====================================================
   SELECTED PROJECTS (#selected-projects)
   ===================================================== */

#selected-projects {
  background-color: var(--color-surface);
}

#selected-projects > p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.project-card {
  background-color: var(--color-surface-mid);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-slow);
  flex-shrink: 0;
}

.project-card:hover > img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.project-card h3 {
  padding: var(--space-5) var(--space-5) var(--space-2);
  font-size: var(--text-base);
  font-weight: 700;
}

.project-card > p {
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-2);
}

.project-card em {
  display: block;
  padding: 0 var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal;
  color: var(--color-accent);
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.project-card a {
  margin: auto var(--space-5) var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.project-card a::after {
  content: '→';
}

.project-card a:hover {
  gap: var(--space-2);
  color: var(--color-accent-hover);
  text-decoration: none;
}

/* "More Works" link */
#selected-projects > a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

#selected-projects > a::after { content: '→'; }

#selected-projects > a:hover {
  gap: var(--space-3);
  text-decoration: none;
}


/* =====================================================
   PROCESS PREVIEW (#process-preview)
   ===================================================== */

#process-preview {
  background-color: var(--color-bg);
}

#process-preview > p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.process-card {
  background-color: var(--color-surface);
  border: var(--border);
  border-top: 3px solid var(--color-teal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--transition-slow);
  flex-shrink: 0;
}

.process-card:hover > img {
  transform: scale(1.03);
}

.process-card h3 {
  padding: var(--space-4) var(--space-5) var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
}

.process-card > p {
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--space-2);
}

.process-card em {
  display: block;
  padding: 0 var(--space-5);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  color: var(--color-teal);
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.process-card a {
  margin: auto var(--space-5) var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-teal);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.process-card a::after { content: '→'; }

.process-card a:hover {
  gap: var(--space-2);
  color: var(--color-accent-alt);
  text-decoration: none;
}

/* "View All Process Posts" link */
#process-preview > a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

#process-preview > a::after { content: '→'; }

#process-preview > a:hover {
  gap: var(--space-3);
  text-decoration: none;
}


/* =====================================================
   THE STUDIO (#studio)
   ===================================================== */

#studio {
  background-color: var(--color-surface);
}

#studio > p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.studio-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.capabilities {
  padding: var(--space-8);
  background-color: var(--color-surface-mid);
  border: var(--border);
  border-radius: var(--radius-lg);
}

.capabilities h3 {
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
}

.capabilities ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.capabilities ul li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.capabilities ul li::before {
  content: '—';
  color: var(--color-teal);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  flex-shrink: 0;
  padding-top: 0.2em;
}

.team-intro h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.team-intro p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.75;
  font-size: var(--text-base);
}

.team-intro p a {
  color: var(--color-accent);
}

.team-intro > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-2);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.team-intro > a:last-child::after { content: '→'; }

.team-intro > a:last-child:hover {
  gap: var(--space-3);
  text-decoration: none;
}


/* =====================================================
   CTA SECTION (#cta)
   ===================================================== */

#cta {
  position: relative;
  overflow: hidden;
  background-color: var(--color-accent);
  text-align: center;
  padding: var(--space-10) var(--container-pad) !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}

/* Decorative blobs inside CTA */
#cta::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 199, 79, 0.35) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

#cta > * {
  position: relative;
  z-index: 1;
}

#cta h2 {
  color: var(--color-white);
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-2);
}

#cta > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Fallback for bare <a> tags in #cta */
#cta > a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

/* On the orange CTA background, first button is white-filled */
#cta > a:first-of-type {
  background-color: var(--color-white);
  color: var(--color-accent);
}

#cta > a:first-of-type:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
  transform: translateY(-2px);
  text-decoration: none;
}

#cta > a:last-of-type {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

#cta > a:last-of-type:hover {
  border-color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Single-link CTA (about page) */
#cta > a:only-of-type {
  background-color: var(--color-white);
  color: var(--color-accent);
  border: none;
}


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

footer {
  background-color: var(--color-surface);
  border-top: var(--border);
  padding: var(--space-10) var(--container-pad) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-12);
  align-items: flex-start;
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  max-width: var(--container-max);
  margin-inline: auto;
}

.footer-brand { flex: 2 1 240px; }
.footer-nav,
.footer-contact,
.footer-social { flex: 1 1 150px; }

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.footer-brand img {
  height: 2.5rem;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 260px;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer-nav ul,
.footer-social ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav ul li a,
.footer-social ul li a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav ul li a:hover,
.footer-social ul li a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.footer-contact p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.footer-contact a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-colophon {
  flex: 0 0 100%;
  border-top: var(--border);
  padding-top: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  max-width: var(--container-max);
  margin-inline: auto;
}

.footer-colophon p {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* Fallback copyright line not in .footer-colophon */
footer > p {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--border);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  max-width: var(--container-max);
  margin-inline: auto;
}


/* =====================================================
   SCROLL-TO-TOP BUTTON
   ===================================================== */

.to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition-base), transform var(--transition-base), background-color var(--transition-fast);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.to-top img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}


/* =====================================================
   SCROLL REVEAL
   ===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  transition-delay: var(--delay, 0ms);
}

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


/* =====================================================
   ABOUT PAGE
   ===================================================== */

#about-hero {
  padding-top: calc(var(--nav-height) + var(--space-20));
  background-color: var(--color-bg);
  padding-bottom: var(--space-20);
}

#about-hero h1 {
  max-width: 800px;
  margin-bottom: var(--space-6);
}

#about-hero p {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.75;
}

/* Philosophy */
#philosophy {
  background-color: var(--color-surface);
}

#philosophy > h2::after {
  background-color: var(--color-accent);
}

#philosophy p {
  color: var(--color-text-muted);
  max-width: 720px;
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
  line-height: 1.8;
}

#philosophy p:last-child { margin-bottom: 0; }

/* The People */
#the-people {
  background-color: var(--color-bg);
}

.person {
  display: flex;
  flex-direction: column;
}

.person:last-child { border-bottom: none; }

.person > img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  filter: grayscale(15%) contrast(1.05);
  border: var(--border);
}

.person-text h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

/* Role tagline */
.person-text > p:first-of-type {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
}

.person-text > p:first-of-type em {
  font-style: normal;
}

.person-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.person-text ul {
  margin: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.person-text ul li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.55;
}

.person-text ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-teal);
}

/* External link tags */
.person-text p a {
  display: inline-block;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  margin-right: var(--space-1);
  margin-bottom: var(--space-1);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.person-text p a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: rgba(243, 114, 44, 0.06);
  text-decoration: none;
}

/* Collaboration, Expertise, Studio, R&D, Ideas */
#collaboration {
  background-color: var(--color-surface);
}

#expertise {
  background-color: var(--color-bg);
}

#studio-capabilities {
  background-color: var(--color-surface);
}

#research-development {
  background-color: var(--color-bg);
}

#ideas {
  background-color: var(--color-surface);
}

#collaboration p,
#research-development > p {
  color: var(--color-text-muted);
  max-width: 720px;
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

#expertise ul,
#studio-capabilities ul,
#ideas ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3) var(--space-8);
}

#expertise ul li,
#studio-capabilities ul li,
#ideas ul li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.5;
}

#expertise ul li::before,
#studio-capabilities ul li::before,
#ideas ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.7rem;
  top: 0.28em;
}

#research-development ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

#research-development ul li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.65;
}

#research-development ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-size: 0.7rem;
  top: 0.28em;
}


/* =====================================================
   PROJECTS PAGE
   ===================================================== */

#projects-intro {
  padding-top: calc(var(--nav-height) + var(--space-20));
  background-color: var(--color-bg);
}

#projects-intro p {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-top: var(--space-4);
  line-height: 1.75;
}

/* Category sections */
#installations    { background-color: var(--color-bg); }
#media-ar         { background-color: var(--color-surface); }
#electronics-education { background-color: var(--color-bg); }
#furniture        { background-color: var(--color-surface); }

/* Category headings with color-coded underlines */
#installations > h2,
#media-ar > h2,
#electronics-education > h2,
#furniture > h2 {
  font-size: var(--text-3xl);
  position: relative;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-10);
}

#installations > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-red);
}

#media-ar > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-blue);
}

#electronics-education > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-teal);
}

#furniture > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-amber);
}

/* Project articles */
.project {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--space-10);
  padding: var(--space-12) 0;
  border-bottom: var(--border);
  align-items: start;
}

.project:last-child { border-bottom: none; }

.project > img:first-child {
  width: 360px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: var(--border);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.project-detail {
  padding-top: var(--space-1);
}

.project-detail .project-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.project-detail h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  line-height: 1.2;
}

.project-detail p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.75;
  max-width: 640px;
}

.project-detail strong {
  color: var(--color-text);
  font-weight: 600;
}

.project-detail h4 {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: var(--space-6) 0 var(--space-3);
}

.project-detail ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.project-detail ul li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.6;
}

.project-detail ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.project-detail ul li strong {
  color: var(--color-text);
}

.project-detail a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.project-detail a::after { content: '↗'; }

.project-detail a:hover {
  gap: var(--space-3);
  color: var(--color-accent-hover);
  text-decoration: none;
}

/* Secondary image inside project-detail */
.project-detail img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-5) 0;
  border: var(--border);
}


/* =====================================================
   PROCESS PAGE
   ===================================================== */

#process-intro {
  padding-top: calc(var(--nav-height) + var(--space-20));
  background-color: var(--color-bg);
}

#process-intro p {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 640px;
  margin-top: var(--space-4);
  line-height: 1.75;
}

#ceramics-materials    { background-color: var(--color-bg); }
#surfaces-sustainable  { background-color: var(--color-surface); }
#computational-digital { background-color: var(--color-bg); }
#electronics-making    { background-color: var(--color-surface); }

#ceramics-materials > h2,
#surfaces-sustainable > h2,
#computational-digital > h2,
#electronics-making > h2 {
  font-size: var(--text-3xl);
  position: relative;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-10);
}

#ceramics-materials > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-amber);
}

#surfaces-sustainable > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-green);
}

#computational-digital > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-blue);
}

#electronics-making > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-teal);
}

/* Process posts */
.process-post {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: var(--space-10);
  padding: var(--space-12) 0;
  border-bottom: var(--border);
  align-items: start;
}

.process-post:last-child { border-bottom: none; }

.process-post > img:first-of-type {
  width: 340px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: var(--border);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

/* Detail image — hidden in list view */
.process-post > img:nth-of-type(2) {
  display: none;
}

.post-content {
  padding-top: var(--space-1);
}

.post-content h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.post-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.post-content h4 {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: var(--space-6) 0 var(--space-3);
}

.post-content ul,
.post-content ol {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.post-content ul li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  position: relative;
  line-height: 1.65;
}

.post-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-teal);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.post-content strong {
  color: var(--color-text);
  font-weight: 600;
}


/* =====================================================
   CONTACT PAGE
   ===================================================== */

#contact-intro {
  padding-top: calc(var(--nav-height) + var(--space-20));
  background-color: var(--color-bg);
}

#contact-intro p {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

#contact-details {
  background-color: var(--color-surface);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.contact-item {
  background-color: var(--color-surface-mid);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.contact-item h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.contact-item p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
  margin-bottom: var(--space-2);
}

.contact-item a {
  color: var(--color-text);
  font-size: var(--text-base);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-item a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Contact form */
#contact-form {
  background-color: var(--color-bg);
}

#contact-form form {
  max-width: 640px;
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

#contact-form form > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

#contact-form label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

#contact-form input,
#contact-form textarea {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(243, 114, 44, 0.16);
}

#contact-form input.error,
#contact-form textarea.error {
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(249, 65, 68, 0.14);
}

.field-error {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-red);
  margin-top: var(--space-1);
}

#contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

#contact-form button[type="submit"] {
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  border: none;
  margin-top: var(--space-2);
}

#contact-form button[type="submit"]:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.form-success {
  background-color: rgba(67, 170, 139, 0.1);
  border: 1px solid var(--color-teal);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  max-width: 640px;
  margin-top: var(--space-8);
}

.form-success p {
  color: var(--color-teal);
  font-size: var(--text-lg);
  font-weight: 500;
}

/* What we work on */
#what-we-work-on {
  background-color: var(--color-surface);
}

#what-we-work-on p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
}

#what-we-work-on ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3) var(--space-8);
}

#what-we-work-on ul li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.55;
}

#what-we-work-on ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.7rem;
  top: 0.3em;
}

/* People links (contact page) */
#the-people {
  background-color: var(--color-bg);
}

.people-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.people-links > div {
  background-color: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.people-links h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.people-links p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.people-links a {
  display: inline-block;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  margin-right: var(--space-1);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.people-links a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: rgba(243, 114, 44, 0.06);
  text-decoration: none;
}

/* Vertical person card layout */
.person-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.person-img .img-placeholder {
  height: 100%;
  border: none;
  border-bottom: 1px dashed var(--color-border);
  border-radius: 0;
}

.person-detail {
  padding: var(--space-6);
}

.person h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.person-role {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.person-detail p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.person-detail a {
  display: inline-block;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.person-detail a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: rgba(243, 114, 44, 0.06);
  text-decoration: none;
}


/* =====================================================
   RESPONSIVE — Tablet (≤ 1023px)
   ===================================================== */

@media (max-width: 1023px) {

  .studio-columns {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project > img:first-child {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: static;
  }

  .process-post {
    grid-template-columns: 1fr;
  }

  .process-post > img:first-of-type {
    width: 100%;
    position: static;
  }

  .person {
    grid-template-columns: 160px 1fr;
    gap: var(--space-6);
  }

  .person > img {
    width: 160px;
    height: 200px;
  }

  .contact-info {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-6);
  }
}


/* =====================================================
   RESPONSIVE — Mobile (≤ 639px)
   ===================================================== */

@media (max-width: 639px) {

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-surface);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  header.nav-open nav ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  nav ul li a {
    font-size: var(--text-xl);
    letter-spacing: 0.06em;
  }

  nav ul li:last-child a {
    font-size: var(--text-xl);
    padding: var(--space-3) var(--space-10);
  }

  /* Section spacing */
  main > section {
    padding: var(--space-14) var(--container-pad);
  }

  /* Hero */
  #hero {
    padding-top: calc(var(--nav-height) + var(--space-16));
  }

  .hero-actions,
  #hero > a + a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* Grids: single column */
  .disciplines,
  .project-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* About: person stacked */
  .person {
    grid-template-columns: 1fr;
  }

  .person > img {
    width: 140px;
    height: 160px;
  }

  /* Contact info: single */
  .contact-info {
    grid-template-columns: 1fr;
  }

  /* Expertise grids: single */
  #expertise ul,
  #studio-capabilities ul,
  #ideas ul,
  #what-we-work-on ul {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-colophon {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  /* CTA */
  #cta {
    padding: var(--space-8) var(--container-pad) !important;
  }

  .cta-actions,
  #cta > a + a {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
}


/* =====================================================
   FEATURED PROJECT GRID (installations-first layout)
   ===================================================== */

/* Title for the installations section */
#selected-projects .section-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: block;
}

/* Featured project cards (first 2 in the installations grid) */
.project-card.featured {
  background-color: var(--color-surface-mid);
}

.project-card.featured > img {
  aspect-ratio: 3 / 2; /* Taller than standard 16/9 */
}

.project-card.featured h3 {
  padding: var(--space-6) var(--space-6) var(--space-2);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.project-card.featured > p {
  padding: 0 var(--space-6);
}

.project-card.featured em {
  padding: 0 var(--space-6);
}

.project-card.featured a {
  margin: auto var(--space-6) var(--space-6);
}

/* Project grid: featured-first layout for homepage */
.project-grid.installations-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* Featured cards span 1 column but visually heavier — no extra spanning needed since
   they're visually distinct through aspect ratio and typography */


/* =====================================================
   FROM THE STUDIO (secondary work section)
   ===================================================== */

#from-the-studio {
  background-color: var(--color-bg);
  border-top: var(--border);
}

#from-the-studio > p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-10);
}

.studio-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.studio-item {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background-color: var(--color-surface);
  text-decoration: none;
  border-bottom: var(--border);
  transition: background-color var(--transition-fast), gap var(--transition-fast);
}

.studio-item:last-child {
  border-bottom: none;
}

.studio-item:hover {
  background-color: var(--color-surface-mid);
  text-decoration: none;
}

.studio-item-img {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: grayscale(30%);
  transition: filter var(--transition-base);
  display: block;
}

.studio-item:hover .studio-item-img {
  filter: grayscale(0%);
}

.studio-item-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.studio-item-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.studio-item-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.studio-item-tag {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background-color: var(--color-surface-mid);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  white-space: nowrap;
}

.studio-item-arrow {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.studio-item:hover .studio-item-arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}

/* "See all studio work" link */
#from-the-studio > a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

#from-the-studio > a::after { content: '→'; }
#from-the-studio > a:hover { gap: var(--space-3); text-decoration: none; }

/* Project hero placeholder (no image available) */
.project-hero-placeholder {
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(243, 114, 44, 0.12) 50%, var(--color-surface-mid) 100%);
}

section#project-hero.no-image {
  background: linear-gradient(135deg, var(--color-bg) 0%, rgba(243, 114, 44, 0.15) 60%, var(--color-surface) 100%);
}

section#project-hero.no-image::after {
  background: linear-gradient(to top, rgba(15,15,15,0.6) 0%, transparent 60%);
}

/* Responsive: studio items */
@media (max-width: 1023px) {
  .studio-item {
    grid-template-columns: 120px 1fr auto;
    gap: var(--space-4);
  }

  .studio-item-img {
    width: 120px;
    height: 72px;
  }

  .project-grid.installations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .studio-item {
    grid-template-columns: 80px 1fr;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .studio-item-img {
    width: 80px;
    height: 56px;
  }

  .studio-item-arrow {
    display: none;
  }

  .project-grid.installations-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured > img {
    aspect-ratio: 16 / 9;
  }
}


/* =====================================================
   PLAYFULNESS & DELIGHT
   ===================================================== */

/* Text selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Custom cursor elements hidden — using default browser pointer */
.cursor-dot,
.cursor-ring {
  display: none;
}


/* ROTATING STATEMENT — styles now live in the hero block above */



/* =====================================================
   STATS STRIP
   ===================================================== */

.stats-strip {
  background-color: var(--color-surface-mid);
  border-top: var(--border);
  border-bottom: var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-10) var(--container-pad);
}

.stat-item {
  text-align: center;
  padding: var(--space-5) var(--space-4);
  border-right: var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-number sup {
  font-size: 0.55em;
  color: var(--color-accent);
  vertical-align: super;
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

@media (max-width: 639px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: var(--border); border-top: var(--border); }
  .stat-item:nth-child(4) { border-top: var(--border); }
}


/* =====================================================
   PROJECT DETAIL PAGES (projects/*.html)
   ===================================================== */

/* Override section defaults for full-bleed hero */
section#project-hero {
  max-width: 100% !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  position: relative;
  height: 45vh;
  min-height: 280px;
  overflow: hidden;
}

section#project-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

section#project-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(15, 15, 15, 0.45) 50%,
    rgba(15, 15, 15, 0.18) 100%
  );
  z-index: 1;
}

.project-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 0 var(--container-pad) var(--space-12);
  /* position: absolute needs explicit left for centering */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.project-category-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

section#project-hero h1 {
  color: var(--color-white);
  max-width: 760px;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  margin-bottom: var(--space-3);
  line-height: 1.08;
}

.project-hero-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

/* Lead paragraph */
#project-lead {
  background-color: var(--color-bg);
}

.project-lead-text {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.72;
  color: var(--color-text);
  max-width: 700px;
  font-weight: 300;
}

/* Meta strip */
section#project-meta {
  max-width: 100% !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  background-color: var(--color-surface);
  border-top: var(--border);
  border-bottom: var(--border);
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-3) var(--container-pad);
  gap: 0;
}

.meta-item {
  padding: var(--space-2) var(--space-5);
  border-right: var(--border);
}

.meta-item:first-child {
  padding-left: 0;
}

.meta-item:last-child {
  border-right: none;
}

.meta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.meta-value {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.55;
}

/* Body section */
#project-body {
  background-color: var(--color-bg);
}

.project-body-layout {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  gap: var(--space-10);
  align-items: start;
}

.project-body-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  margin-bottom: var(--space-4);
  margin-top: var(--space-10);
}

.project-body-content h2:first-child {
  margin-top: 0;
}

.project-body-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}

.project-body-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.75;
  max-width: 640px;
}

.project-body-content ul,
.project-body-content ol {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-body-content ul li,
.project-body-content ol li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.65;
}

.project-body-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.project-body-content strong {
  color: var(--color-text);
  font-weight: 600;
}

.project-body-content h4 {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: var(--space-6) 0 var(--space-3);
}

/* Sidebar */
.project-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

.sidebar-block {
  background-color: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
}

.sidebar-block > h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background-color: var(--color-surface-mid);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  color: var(--color-text-muted);
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: var(--border);
  transition: color var(--transition-fast);
}

.project-links a:last-child {
  border-bottom: none;
}

.project-links a::after {
  content: '↗';
  color: var(--color-accent);
  margin-left: auto;
  font-size: var(--text-xs);
}

.project-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Media section */
#project-media {
  background-color: var(--color-surface);
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: var(--border);
  max-width: 860px;
}

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

/* Project prev/next navigation */
nav.project-nav {
  background-color: var(--color-surface-mid);
  border-top: var(--border);
}

.project-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container-max);
  margin-inline: auto;
}

.prev-project,
.next-project {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-8) var(--container-pad);
  text-decoration: none;
  transition: background-color var(--transition-fast);
  border: none;
}

.prev-project:hover,
.next-project:hover {
  background-color: var(--color-surface);
  text-decoration: none;
}

.next-project {
  text-align: right;
  border-left: var(--border);
}

.nav-dir {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

/* Responsive: project detail */
@media (max-width: 1023px) {
  .meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .meta-item:nth-child(2) {
    border-right: none;
  }

  .meta-item:nth-child(3) {
    border-top: var(--border);
    padding-left: 0;
  }

  .meta-item:nth-child(4) {
    border-top: var(--border);
  }

  .project-body-layout {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }
}

@media (max-width: 639px) {
  section#project-hero {
    height: 38vh;
  }

  .meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .project-nav-inner {
    grid-template-columns: 1fr;
  }

  .next-project {
    text-align: left;
    border-left: none;
    border-top: var(--border);
  }

  nav.project-nav {
    /* single column on mobile */
  }
}


/* =====================================================
   MISSION SECTION (#mission)
   ===================================================== */

#mission {
  background-color: var(--color-surface);
  border-top: var(--border);
  border-bottom: var(--border);
}

#mission h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 720px;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

#mission p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

#mission p em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 500;
}


/* =====================================================
   SECTION LABEL (small mono tag above headings)
   ===================================================== */

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background-color: rgba(243, 114, 44, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}


/* =====================================================
   NUMBERED WORK LIST — homepage installations
   ===================================================== */

.work-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border);
  margin-bottom: var(--space-10);
  list-style: none;
}

.work-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 0;
  background-color: var(--color-surface);
  border-bottom: var(--border);
  transition: background-color var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.work-item:last-child {
  border-bottom: none;
}

.work-item:hover {
  background-color: var(--color-surface-mid);
  text-decoration: none;
}

.work-number {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-right: var(--border);
  padding: var(--space-6) var(--space-4);
  background-color: var(--color-surface-mid);
  min-width: 64px;
}

.work-item:hover .work-number {
  color: var(--color-accent);
}

.work-content {
  padding: var(--space-5) var(--space-6);
}

.work-content h3 {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-text);
}

.work-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-5);
  border-left: var(--border);
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.work-arrow {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-5);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.work-item:hover .work-arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* Color-coded accent on work items */
.work-item[data-color="red"]    { border-left: 4px solid var(--color-red); }
.work-item[data-color="orange"] { border-left: 4px solid var(--color-orange); }
.work-item[data-color="amber"]  { border-left: 4px solid var(--color-amber); }
.work-item[data-color="yellow"] { border-left: 4px solid var(--color-yellow); }
.work-item[data-color="green"]  { border-left: 4px solid var(--color-green); }
.work-item[data-color="teal"]   { border-left: 4px solid var(--color-teal); }
.work-item[data-color="blue"]   { border-left: 4px solid var(--color-blue); }


/* =====================================================
   BLOG CARDS — blog.html and blog-preview on index
   ===================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-10);
}

.blog-card {
  background-color: var(--color-surface);
  border: var(--border);
  border-top: 3px solid var(--color-teal);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.blog-card:nth-child(3n+1) { border-top-color: var(--color-teal); }
.blog-card:nth-child(3n+2) { border-top-color: var(--color-amber); }
.blog-card:nth-child(3n+3) { border-top-color: var(--color-blue); }

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}

.blog-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover > img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.blog-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.35;
  color: var(--color-text);
}

.blog-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.blog-card-link::after { content: '→'; }

.blog-card:hover .blog-card-link {
  gap: var(--space-2);
}


/* =====================================================
   FOOTER — light theme adjustments
   ===================================================== */

footer {
  background-color: var(--color-text);
  color: var(--color-bg);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-12);
  align-items: flex-start;
  padding: var(--space-16) var(--container-pad) var(--space-10);
}

footer .footer-brand strong {
  color: var(--color-bg);
}

footer .footer-brand p {
  color: rgba(248, 245, 239, 0.6);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

footer .footer-nav h4,
footer .footer-contact h4,
footer .footer-social h4 {
  color: rgba(248, 245, 239, 0.45);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: var(--space-4);
}

footer .footer-nav ul li a,
footer .footer-contact p,
footer .footer-social ul li a,
footer .footer-colophon p {
  color: rgba(248, 245, 239, 0.7);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

footer .footer-nav ul li a:hover,
footer .footer-social ul li a:hover {
  color: var(--color-bg);
  text-decoration: none;
}

footer .footer-colophon {
  flex: 0 0 100%;
  margin-top: 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(248, 245, 239, 0.12);
}

footer .footer-colophon p {
  font-size: var(--text-xs);
  color: rgba(248, 245, 239, 0.4);
}


/* =====================================================
   CTA BUTTONS on orange background override
   ===================================================== */

#cta .btn-primary {
  background-color: var(--color-white);
  color: var(--color-accent);
  border-color: transparent;
}

#cta .btn-primary:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

#cta .btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

#cta .btn-secondary:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}


/* =====================================================
   BLOG PAGE SPECIFIC (#blog-intro, #blog-posts)
   ===================================================== */

#blog-intro p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-top: var(--space-4);
}

#blog-posts {
  background-color: var(--color-bg);
}

/* Blog filter tags */
.blog-filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.blog-filter {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: var(--border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  cursor: pointer;
  background: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.blog-filter:hover,
.blog-filter.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: rgba(243, 114, 44, 0.06);
}


/* =====================================================
   WORK PAGE SPECIFIC (projects.html as Work)
   ===================================================== */

#work-intro p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-top: var(--space-4);
}

/* =====================================================
   IMAGE PLACEHOLDERS
   — Used wherever real photography is still needed.
   The description attribute tells the photographer
   exactly what should be captured.
   ===================================================== */

.img-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--color-surface-mid);
  border: 1px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-6);
}

.img-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.3;
  flex-shrink: 0;
}

.img-placeholder p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 260px;
  margin: 0;
}

/* Inside project hero (dark background context) */
section#project-hero .img-placeholder {
  background-color: rgba(26, 23, 20, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  position: absolute;
  inset: 0;
  z-index: 0;
}

section#project-hero .img-placeholder p {
  color: rgba(255, 255, 255, 0.35);
}

section#project-hero .img-placeholder svg {
  stroke: rgba(255, 255, 255, 0.25);
}


/* =====================================================
   HOMEPAGE WORK CARD GRID
   ===================================================== */

.index-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
  margin-bottom: var(--space-10);
}

.index-work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-surface);
  border: var(--border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.index-work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}

.index-work-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.index-work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

.index-work-label {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}

.index-work-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.index-work-label h3 {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}


/* =====================================================
   RESPONSIVE: new components
   ===================================================== */

@media (max-width: 767px) {
  .work-item {
    grid-template-columns: 48px 1fr;
  }

  .work-tag,
  .work-arrow {
    display: none;
  }

  .work-number {
    min-width: 48px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .people-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .index-work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

@media (max-width: 479px) {
  .index-work-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .people-links {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: var(--space-6);
  }

  .footer-brand,
  .footer-nav,
  .footer-contact,
  .footer-social {
    flex: none;
    width: 100%;
  }
}


/* =====================================================
   BLOG POST DETAIL PAGES — posts/*.html
   Hero image + body layout + gallery grid
   ===================================================== */

/* Reuse section#project-hero for post hero too — same styles apply.
   Below handles the post body and gallery. */

#post-intro {
  background-color: var(--color-bg);
}

#post-intro .post-byline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: block;
}

#post-intro h1 {
  margin-bottom: var(--space-5);
}

#post-intro .post-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* Post body: main text + sidebar */
#post-body {
  background-color: var(--color-bg);
}

.post-body-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-14);
  align-items: start;
}

.post-body-content h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: var(--space-4);
  margin-top: var(--space-10);
}

.post-body-content h2:first-child {
  margin-top: 0;
}

.post-body-content h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}

.post-body-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.75;
  max-width: 640px;
}

.post-body-content ul,
.post-body-content ol {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.post-body-content ul li,
.post-body-content ol li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.65;
}

.post-body-content ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* Image gallery inside post body — constrained ratio, no giant portraits */
.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.post-gallery figure {
  margin: 0;
}

.post-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-base);
  display: block;
}

.post-gallery figcaption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  line-height: 1.5;
}

.post-gallery .img-placeholder {
  aspect-ratio: 4 / 3;
  height: auto;
}

/* Post sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-8));
}

.post-sidebar .sidebar-block {
  margin-bottom: var(--space-8);
}

.post-sidebar .sidebar-block h4 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.post-sidebar .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.post-sidebar .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
}

.post-sidebar .post-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.post-sidebar .post-links a {
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
}

.post-sidebar .post-links a:hover {
  text-decoration: underline;
}

/* Responsive: stack sidebar below content at tablet */
@media (max-width: 1023px) {
  .post-body-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 639px) {
  .post-gallery {
    grid-template-columns: 1fr;
  }
}


/* =====================================================
   FLUID CANVAS — hero background
   ===================================================== */

#fluid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* WebGL renders at full canvas resolution — no upscaling needed */
  pointer-events: none;  /* mouse events captured on #hero instead, so buttons stay clickable */
  opacity: 0.90;
  z-index: 0;
}

/* Hero needs relative positioning and overflow:hidden for the canvas */
#hero {
  position: relative;
  overflow: hidden;
}

/* Remove the static CSS blobs now that the canvas handles visual interest */
#hero::before,
#hero::after {
  display: none;
}

/* Ensure hero text sits above the canvas */
.hero-inner {
  position: relative;
  z-index: 1;
}


/* =====================================================
   GRADIENT IMAGE PLACEHOLDERS
   Each project/team slot gets a distinct dark gradient
   with a descriptive label — replace with real photos.
   ===================================================== */

.img-ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem 1.25rem 1rem;
}

/* "IMAGE" badge top-left */
.img-ph::before {
  content: 'IMAGE';
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  position: absolute;
  top: 0.85rem;
  left: 1.1rem;
  z-index: 1;
}

.img-ph p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  position: relative;
  z-index: 1;
  max-width: 28ch;
}

/* ── Per-project gradients ── */

/* Making Spirits Bright — night-time quayside, blue/navy → teal */
.img-ph--spirits {
  background: linear-gradient(140deg, #060d1a 0%, #0d2545 45%, #1a5a7a 100%);
}

/* The Listening Tree — bark, nature, dark green → amber */
.img-ph--tree {
  background: linear-gradient(140deg, #06100a 0%, #0f3319 45%, #2d6b3a 100%);
}

/* Eight Years — ice lanterns, climate, near-black → deep red */
.img-ph--8years {
  background: linear-gradient(140deg, #0e0405 0%, #3a0a0c 45%, #7a1a1a 100%);
}

/* Speech Bubbles — language/light, deep indigo → warm amber */
.img-ph--speech {
  background: linear-gradient(140deg, #0a0814 0%, #291a45 45%, #6b4a10 100%);
}

/* Songbird — air, sky, dark blue → teal */
.img-ph--songbird {
  background: linear-gradient(140deg, #050d18 0%, #0d2540 45%, #14556b 100%);
}

/* Fabby Robot — FabLab, energetic, near-black → orange */
.img-ph--fabby {
  background: linear-gradient(140deg, #130500 0%, #3d1200 45%, #8a3000 100%);
}

/* Exploratory Workshop — making, growth, deep green → yellow */
.img-ph--workshop {
  background: linear-gradient(140deg, #080d02 0%, #1a3305 45%, #3d6614 100%);
}

/* Ceramics — warm earth, dark brown → amber */
.img-ph--ceramics {
  background: linear-gradient(140deg, #120800 0%, #3d1f00 45%, #7a4010 100%);
}

/* Computational Design — code/structure, near-black → blue-slate */
.img-ph--computational {
  background: linear-gradient(140deg, #03080f 0%, #0a1e36 45%, #1a3d5c 100%);
}

/* Electronics — circuit warmth, dark → golden yellow */
.img-ph--electronics {
  background: linear-gradient(140deg, #0a0a00 0%, #2a2500 45%, #5a4e00 100%);
}

/* Jesmonite / surfaces — mineral, slate → sage */
.img-ph--jesmonite {
  background: linear-gradient(140deg, #080c0a 0%, #1a2820 45%, #2d4a35 100%);
}

/* Laser / precision — dark → cool purple-slate */
.img-ph--laser {
  background: linear-gradient(140deg, #080810 0%, #14143a 45%, #2a2a60 100%);
}

/* Team portraits — warm neutral */
.img-ph--team {
  background: linear-gradient(140deg, #100e0c 0%, #2a2320 55%, #3d3530 100%);
}

/* High-speed sensor / research — cool tech blue */
.img-ph--sensor {
  background: linear-gradient(140deg, #040810 0%, #0c1e38 45%, #183060 100%);
}

/* Living room / furniture — warm wood tones */
.img-ph--furniture {
  background: linear-gradient(140deg, #100a04 0%, #3a2010 45%, #6a4020 100%);
}
