/* ============================================================
   HOLZMANUFAKTUR WEBER — Design System & Styles
   Editorial Layout · Japandi Aesthetic · Light Mode
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Palette */
  --clr-white: #FFFFFF;
  --clr-paper: #F7F5F0;
  --clr-sand: #EDE9E1;
  --clr-stone: #D4CFC6;
  --clr-text: #1A1A1A;
  --clr-text-mid: #6B6B6B;
  --clr-text-light: #9A9590;
  --clr-accent: #B8553A;
  --clr-accent-hover: #9C4430;
  --clr-sage: #8B9E82;
  --clr-sage-light: #C5D1BF;

  /* Typography */
  --ff-serif: 'Cormorant Garamond', 'Georgia', serif;
  --ff-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --fs-display: clamp(2.6rem, 5vw, 5.5rem);
  --fs-h1: clamp(2rem, 3.5vw, 3.8rem);
  --fs-h2: clamp(1.5rem, 2.2vw, 2.4rem);
  --fs-h3: clamp(1.1rem, 1.5vw, 1.4rem);
  --fs-body: clamp(0.9rem, 1vw, 1.05rem);
  --fs-small: clamp(0.75rem, 0.85vw, 0.85rem);
  --fs-label: 0.7rem;

  --lh-tight: 1.05;
  --lh-heading: 1.15;
  --lh-body: 1.7;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Layout */
  --page-max: 1440px;
  --page-gutter: clamp(1.5rem, 4vw, 5rem);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 300ms;
  --dur-mid: 600ms;
  --dur-slow: 1000ms;

  /* Scrollbar */
  scrollbar-color: var(--clr-stone) transparent;
  scrollbar-width: thin;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--clr-text);
  background-color: var(--clr-white);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* --- Utility Classes --- */
.label {
  font-family: var(--ff-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-text-light);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--page-gutter);
  transition: background-color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}

.site-nav.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: var(--ff-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-text);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--clr-text-mid);
  position: relative;
  transition: color var(--dur-fast) ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-accent);
  transition: width var(--dur-fast) var(--ease-out-expo);
}

.nav-links a:hover {
  color: var(--clr-text);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: var(--fs-small) !important;
  font-weight: 500 !important;
  color: var(--clr-accent) !important;
  letter-spacing: 0.04em;
}

.nav-cta:hover {
  color: var(--clr-accent-hover) !important;
}

.nav-cta::after {
  background: var(--clr-accent) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--clr-text);
  transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}


/* ============================================================
   SECTION 1 — HERO / ÄSTHETISCHER EINSTIEG
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  position: relative;
  overflow: hidden;
}

.hero__image-wrap {
  position: relative;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl) var(--space-lg);
  position: relative;
}

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

.hero__headline {
  font-family: var(--ff-serif);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: var(--lh-tight);
  color: var(--clr-text);
  text-wrap: balance;
  margin-bottom: var(--space-sm);
}

.hero__headline em {
  font-style: italic;
  color: var(--clr-accent);
}

.hero__subline {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 300;
  font-style: italic;
  color: var(--clr-text-mid);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-lg);
  max-width: 36ch;
}

.hero__body {
  font-size: var(--fs-body);
  color: var(--clr-text-mid);
  line-height: var(--lh-body);
  max-width: 42ch;
  margin-bottom: var(--space-lg);
}

.hero__badge {
  position: absolute;
  left: calc(-1 * var(--space-lg));
  bottom: var(--space-xl);
  background: var(--clr-accent);
  color: var(--clr-white);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--ff-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  white-space: nowrap;
}

/* Decorative line */
.hero__content::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 0;
  width: 1px;
  height: 30%;
  background: var(--clr-stone);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-md);
  right: var(--page-gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.hero__scroll span {
  font-size: var(--fs-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-light);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--clr-stone);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-accent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}


/* ============================================================
   SECTION 2 — PHILOSOPHIE & MATERIALKUNDE
   ============================================================ */
.philosophy {
  padding: var(--space-2xl) var(--page-gutter);
  position: relative;
}

.philosophy__grid {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: var(--space-lg);
  max-width: var(--page-max);
  margin: 0 auto;
  align-items: start;
}

.philosophy__text {
  padding-top: var(--space-lg);
}

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

.philosophy__heading {
  font-family: var(--ff-serif);
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: var(--lh-heading);
  text-wrap: balance;
  margin-bottom: var(--space-md);
}

.philosophy__heading em {
  font-style: italic;
  color: var(--clr-accent);
}

.philosophy__body {
  color: var(--clr-text-mid);
  line-height: var(--lh-body);
  max-width: 48ch;
  margin-bottom: var(--space-lg);
}

.philosophy__image-wrap {
  position: relative;
  margin-top: calc(-1 * var(--space-xl));
}

.philosophy__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Breakout element — image extends beyond section */
.philosophy__image-wrap::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 40%;
  border: 1px solid var(--clr-stone);
  z-index: -1;
}

/* --- Material Cards --- */
.materials {
  padding: var(--space-xl) var(--page-gutter) var(--space-2xl);
  position: relative;
}

.materials__heading {
  font-family: var(--ff-serif);
  font-size: var(--fs-h2);
  font-weight: 300;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.materials__sub {
  text-align: center;
  color: var(--clr-text-light);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-lg);
}

.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  max-width: 1100px;
  margin: 0 auto;
}

.material-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: var(--clr-paper);
}

.material-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-mid) var(--ease-out-expo);
}

.material-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 26, 26, 0.95) 0%,
    rgba(26, 26, 26, 0.6) 50%,
    rgba(26, 26, 26, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}

.material-card__name {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  color: var(--clr-white);
  margin-bottom: var(--space-xs);
  transform: translateY(10px);
  transition: transform var(--dur-mid) var(--ease-out-expo);
}

.material-card__latin {
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-xs);
  transform: translateY(10px);
  transition: transform var(--dur-mid) var(--ease-out-expo) 50ms;
}

.material-card__desc {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  transform: translateY(10px);
  transition: transform var(--dur-mid) var(--ease-out-expo) 100ms;
}

/* Card label always visible */
.material-card__label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  color: var(--clr-text);
  transition: opacity var(--dur-fast) ease;
}

/* Hover states */
.material-card:hover .material-card__image {
  transform: scale(1.08);
}

.material-card:hover .material-card__overlay {
  opacity: 1;
}

.material-card:hover .material-card__name,
.material-card:hover .material-card__latin,
.material-card:hover .material-card__desc {
  transform: translateY(0);
}

.material-card:hover .material-card__label {
  opacity: 0;
}

/* Touch active state (mirrors hover) */
.material-card.is-touched .material-card__image {
  transform: scale(1.08);
}

.material-card.is-touched .material-card__overlay {
  opacity: 1;
}

.material-card.is-touched .material-card__name,
.material-card.is-touched .material-card__latin,
.material-card.is-touched .material-card__desc {
  transform: translateY(0);
}

.material-card.is-touched .material-card__label {
  opacity: 0;
}


/* ============================================================
   SECTION 3 — KURATIERTE ARBEITEN (STICKY HORIZONTAL SCROLL)
   ============================================================ */
.portfolio {
  position: relative;
  /* Height is set dynamically by JS based on track scroll distance */
}

.portfolio__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portfolio__header {
  padding: var(--space-lg) var(--page-gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
  gap: var(--space-md);
  flex-shrink: 0;
}

.portfolio__label {
  margin-bottom: var(--space-xs);
}

.portfolio__heading {
  font-family: var(--ff-serif);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: var(--lh-heading);
  text-wrap: balance;
}

.portfolio__count {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 300;
  color: var(--clr-text-light);
  padding-bottom: 0.2em;
}

/* Track wrapper — takes remaining space */
.portfolio__track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
  padding: var(--space-md) 0;
}

/* Horizontal track — translated by JS */
.portfolio__track {
  display: flex;
  gap: var(--space-md);
  padding: 0 var(--page-gutter);
  height: 100%;
  will-change: transform;
}

/* Project card — sized to fit viewport height */
.project-card {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card__image-wrap {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.project-card:hover .project-card__image {
  transform: scale(1.04);
}

/* Card width — aspect ratio driven by image height */
.project-card__image-wrap {
  aspect-ratio: 16 / 10;
}

.project-card {
  width: clamp(400px, 55vw, 700px);
}

.project-card__info {
  padding: var(--space-sm) 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  flex-shrink: 0;
}

.project-card__title {
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 300;
  line-height: var(--lh-heading);
}

.project-card__type {
  font-size: var(--fs-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-light);
  padding-top: 0.15em;
}

.project-card__number {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-family: var(--ff-serif);
  font-size: var(--fs-h3);
  font-weight: 300;
  color: var(--clr-white);
  opacity: 0.6;
  z-index: 2;
}

/* Progress bar at bottom of sticky area */
.portfolio__progress-wrap {
  padding: 0 var(--page-gutter) var(--space-md);
  flex-shrink: 0;
}

.portfolio__progress {
  width: 100%;
  height: 2px;
  background: var(--clr-sand);
  position: relative;
  overflow: hidden;
  max-width: var(--page-max);
  margin: 0 auto;
}

.portfolio__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--clr-accent);
  transition: width 60ms linear;
}


/* ============================================================
   SECTION 4 — WERKSTATT-EINBLICKE
   ============================================================ */
.workshop {
  padding: var(--space-xl) var(--page-gutter) var(--space-2xl);
  background: var(--clr-paper);
  position: relative;
}

/* Interlocking: triangle cut into top */
.workshop::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--clr-paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.workshop__inner {
  max-width: var(--page-max);
  margin: 0 auto;
}

.workshop__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: end;
  margin-bottom: var(--space-lg);
}

.workshop__heading {
  font-family: var(--ff-serif);
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: var(--lh-heading);
  text-wrap: balance;
}

.workshop__header-line {
  height: 1px;
  background: var(--clr-stone);
  align-self: center;
}

/* Asymmetric image grid */
.workshop__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-sm);
}

.workshop__main-image {
  grid-row: 1 / 3;
  overflow: hidden;
}

.workshop__main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.workshop__side-image {
  overflow: hidden;
}

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

/* Breakout text block overlapping images */
.workshop__text-block {
  position: relative;
  margin-top: calc(-1 * var(--space-xl));
  margin-left: var(--space-lg);
  max-width: 520px;
  background: var(--clr-white);
  padding: var(--space-lg);
  z-index: 2;
}

.workshop__text-block p {
  color: var(--clr-text-mid);
  line-height: var(--lh-body);
  margin-bottom: var(--space-sm);
}

.workshop__text-block p:last-child {
  margin-bottom: 0;
}

.workshop__stat {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.workshop__stat-number {
  font-family: var(--ff-serif);
  font-size: var(--fs-h1);
  font-weight: 300;
  color: var(--clr-accent);
  line-height: 1;
}

.workshop__stat-label {
  font-size: var(--fs-small);
  color: var(--clr-text-light);
}


/* ============================================================
   SECTION 5 — BERATUNG & KONTAKT
   ============================================================ */
.contact {
  padding: var(--space-2xl) var(--page-gutter);
  position: relative;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.55fr 0.45fr;
  gap: var(--space-xl);
  max-width: var(--page-max);
  margin: 0 auto;
  align-items: center;
}

.contact__text {
  max-width: 500px;
}

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

.contact__heading {
  font-family: var(--ff-serif);
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: var(--lh-heading);
  text-wrap: balance;
  margin-bottom: var(--space-md);
}

.contact__body {
  color: var(--clr-text-mid);
  line-height: var(--lh-body);
  margin-bottom: var(--space-lg);
}

.contact__phone {
  display: block;
  font-family: var(--ff-serif);
  font-size: var(--fs-h2);
  font-weight: 300;
  color: var(--clr-text);
  margin-bottom: var(--space-lg);
  transition: color var(--dur-fast) ease;
}

.contact__phone:hover {
  color: var(--clr-accent);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--clr-accent);
  color: var(--clr-white);
  padding: 1.1rem 2.4rem;
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: var(--clr-accent-hover);
  transform: translateY(-2px);
}

.cta-button::after {
  content: '→';
  transition: transform var(--dur-fast) ease;
}

.cta-button:hover::after {
  transform: translateX(4px);
}

.contact__details {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-xl);
}

.contact__detail-group h4 {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-light);
  margin-bottom: var(--space-xs);
}

.contact__detail-group p {
  color: var(--clr-text-mid);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.contact__image-wrap {
  position: relative;
  overflow: hidden;
}

.contact__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Decorative frame */
.contact__image-wrap::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 50%;
  height: 50%;
  border-top: 1px solid var(--clr-stone);
  border-left: 1px solid var(--clr-stone);
  z-index: 2;
  pointer-events: none;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--clr-paper);
  padding: var(--space-lg) var(--page-gutter);
}

.footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-text-mid);
}

.footer__credit {
  font-size: var(--fs-label);
  color: var(--clr-text-light);
  letter-spacing: 0.04em;
}

.footer__credit a {
  color: var(--clr-text-mid);
  transition: color var(--dur-fast) ease;
}

.footer__credit a:hover {
  color: var(--clr-accent);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__links a {
  font-size: var(--fs-small);
  color: var(--clr-text-light);
  transition: color var(--dur-fast) ease;
}

.footer__links a:hover {
  color: var(--clr-text);
}


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

/* Tablet */
@media (max-width: 1199px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }

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

  .philosophy__image-wrap {
    margin-top: 0;
  }

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

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

  .contact__grid {
    gap: var(--space-lg);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile menu */
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--clr-white);
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    z-index: 99;
  }

  .nav-links.is-open a {
    font-size: var(--fs-h3);
    color: var(--clr-text);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__image-wrap {
    height: 50vh;
  }

  .hero__content {
    padding: var(--space-lg) var(--page-gutter);
  }

  .hero__content::before {
    display: none;
  }

  .hero__badge {
    position: relative;
    left: 0;
    bottom: 0;
    display: inline-block;
    margin-bottom: var(--space-md);
  }

  .hero__scroll {
    display: none;
  }

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

  .philosophy__image-wrap::after {
    display: none;
  }

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

  /* Portfolio mobile — standard vertical scroll, no sticky */
  .portfolio {
    height: auto !important;
  }

  .portfolio__sticky {
    position: relative;
    height: auto;
  }

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

  .portfolio__count {
    display: none;
  }

  .portfolio__track-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portfolio__track-wrap::-webkit-scrollbar {
    display: none;
  }

  .portfolio__track {
    will-change: auto;
    /* On mobile, revert to native horizontal scroll */
  }

  .project-card {
    width: 80vw;
    height: auto;
  }

  .project-card__image-wrap {
    aspect-ratio: 16 / 10;
    flex: none;
  }

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

  .workshop__main-image {
    grid-row: auto;
  }

  .workshop__main-image img {
    aspect-ratio: 16 / 10;
  }

  .workshop__text-block {
    margin-left: 0;
    margin-top: calc(-1 * var(--space-md));
    padding: var(--space-md);
  }

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

  .contact__image-wrap {
    order: -1;
  }

  .contact__image {
    aspect-ratio: 16 / 10;
  }

  .contact__image-wrap::before {
    display: none;
  }

  .contact__details {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .workshop::before {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
