/* ============================================
   CHAD JOHN PAYNE — Portfolio
   Light Gallery
   ============================================ */

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

:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F7F7;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --accent: #B8965A;
  --border: #E0DDD8;
  --white: #FFFFFF;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.625, 0.05, 0, 1);
  --duration: 0.8s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.4s var(--ease-out);
}

a:hover {
  color: var(--accent);
  opacity: 1;
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Subtle grain overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.3;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.015) 0px,
    rgba(0, 0, 0, 0.015) 1px,
    transparent 1px,
    transparent 4px
  );
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  transform: scaleY(1.12);
  transform-origin: bottom;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  transform: scaleY(1.15);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

p {
  max-width: 55ch;
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.8;
  font-weight: 300;
}

/* --- Layout --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 5vw, 4rem);
}

.section {
  padding: clamp(7rem, 14vw, 12rem) 0;
}

.section--tight-top {
  padding-top: clamp(2rem, 4vw, 4rem);
}

.section--alt {
  background-color: var(--bg-alt);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.5s var(--ease-out);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(2rem, 5vw, 4rem);
  padding-right: clamp(2rem, 5vw, 4rem);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 90px;
  width: auto;
  transition: opacity 0.3s var(--ease-out);
}

.nav__logo:hover .nav__logo-img {
  opacity: 0.6;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.735s var(--ease-smooth);
}

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

.nav__links a:hover::after {
  width: 100%;
}

.nav__socials {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav__socials a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  transition: color 0.3s var(--ease-out);
}

.nav__socials a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  width: 32px;
  height: 24px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  margin: 6px 0;
  transition: all 0.4s var(--ease-out);
  transform-origin: center;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 10rem;
  position: relative;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__text {
  position: relative;
  z-index: 2;
}

.hero__text h1 {
  margin-bottom: 2rem;
}

.hero__text p {
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInNormal 1.2s var(--ease-out) 0.5s forwards;
}

.hero__text .btn {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInNormal 1.2s var(--ease-out) 0.7s forwards;
}

.hero__meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeInNormal 1.2s var(--ease-out) 0.9s forwards;
}

.hero__meta-item {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  cursor: pointer;
}

.hero__meta-item:hover {
  border-color: var(--accent);
  background: var(--bg-alt);
  color: var(--accent);
}

.hero__meta-item span {
  display: block;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-top: 0.35rem;
}


@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1.15);
  }
}

@keyframes fadeInNormal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__track {
  display: inline-flex;
  animation: marqueeScroll 40s linear infinite reverse;
}

.marquee__text {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  transform: scaleY(1.12);
  padding-right: 2rem;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero__image {
  display: none;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1rem 2.75rem;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1.5px solid var(--text);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  opacity: 1;
  border-color: var(--text);
  color: #fff;
  background: var(--text);
}

.btn::before {
  display: none;
}

.btn--filled {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.btn--filled:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --- Portfolio — Staggered Editorial Layout --- */
.portfolio__header {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.portfolio__header h2 {
  margin-bottom: 0.75rem;
}

.portfolio__header p {
  margin: 0;
}

.portfolio__grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 max(2rem, calc((100vw - 1400px) / 2)) 1.5rem;
  margin: 0 calc(-1 * max(2rem, calc((100vw - 1400px) / 2)));
  counter-reset: work;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.portfolio__grid::-webkit-scrollbar {
  height: 4px;
}

.portfolio__grid::-webkit-scrollbar-track {
  background: transparent;
}

.portfolio__grid::-webkit-scrollbar-thumb {
  background: var(--border);
}

.portfolio__item {
  position: relative;
  flex: 0 0 clamp(280px, 42vw, 600px);
  scroll-snap-align: start;
  counter-increment: work;
  cursor: pointer;
}

/* Index number */
.portfolio__item::before {
  content: counter(work, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.portfolio__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-alt);
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

.portfolio__item:hover img {
  transform: scale(1.02);
}

.portfolio__item--paper {
  background: #F5F0E8;
}

.portfolio__item--paper img {
  filter: sepia(0.08) saturate(0.85) brightness(0.97) contrast(1.08);
  mix-blend-mode: multiply;
}

.portfolio__item--paper:hover img {
  filter: sepia(0.06) saturate(0.9) brightness(0.99) contrast(1.1);
}

.portfolio__item--video video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--bg-alt);
  transition: transform 0.8s var(--ease-out);
}

.portfolio__item--video:hover video {
  transform: scale(1.02);
}

.portfolio__item--enhance img {
  filter: brightness(1.12) contrast(1.18);
}

.portfolio__item--enhance:hover img {
  filter: brightness(1.16) contrast(1.22);
}

/* Gallery plaque */
.portfolio__item__overlay {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem 0 0;
  background: none;
  opacity: 1;
}

.portfolio__item__overlay h3 {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0;
  transition: color 0.4s var(--ease-out);
}

.portfolio__item:hover .portfolio__item__overlay h3 {
  color: var(--accent);
}

.portfolio__item__overlay span {
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

/* --- Line Drawings --- */
.drawings__grid {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 max(2rem, calc((100vw - 1400px) / 2)) 1.5rem;
  margin: 0 calc(-1 * max(2rem, calc((100vw - 1400px) / 2)));
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.drawings__grid::-webkit-scrollbar {
  height: 4px;
}

.drawings__grid::-webkit-scrollbar-track {
  background: transparent;
}

.drawings__grid::-webkit-scrollbar-thumb {
  background: var(--border);
}

.drawings__item {
  flex: 0 0 clamp(340px, 45vw, 620px);
  scroll-snap-align: start;
  background: none;
  cursor: pointer;
}

.drawings__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}

.drawings__item:hover img {
  transform: scale(1.03);
}

.drawings__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-top: 0.75rem;
}

@media (max-width: 600px) {
  .drawings__item {
    flex: 0 0 75vw;
  }
}

/* --- Creative Direction / Editorial --- */
.editorial__header {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.editorial__header h2 {
  margin-bottom: 0.75rem;
}

.editorial__header p {
  margin: 0;
}

.editorial__grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 max(2rem, calc((100vw - 1400px) / 2)) 1.5rem;
  margin: 0 calc(-1 * max(2rem, calc((100vw - 1400px) / 2)));
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.editorial__grid::-webkit-scrollbar {
  height: 4px;
}

.editorial__grid::-webkit-scrollbar-track {
  background: transparent;
}

.editorial__grid::-webkit-scrollbar-thumb {
  background: var(--border);
}

.editorial__item {
  cursor: pointer;
  position: relative;
  flex: 0 0 clamp(300px, 50vw, 720px);
  scroll-snap-align: start;
}

.editorial__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

.editorial__item:hover img {
  transform: scale(1.01);
}

.editorial__item-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.editorial__item-info h3 {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.4s var(--ease-out);
}

.editorial__item:hover .editorial__item-info h3 {
  color: var(--accent);
}

.editorial__item-info span {
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

@media (max-width: 600px) {
  .portfolio__item {
    flex: 0 0 75vw;
  }
  .editorial__item {
    flex: 0 0 80vw;
  }
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 80vw;
  max-height: 82vh;
  object-fit: contain;
  cursor: default;
  transform: scale(0.97);
  transition: transform 0.5s var(--ease-out);
}

.lightbox.active .lightbox__image {
  transform: scale(1);
}

.lightbox__video {
  max-width: 80vw;
  max-height: 82vh;
  object-fit: contain;
  cursor: default;
  transform: scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox__video {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 2001;
}

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

.lightbox__caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.lightbox__caption h3 {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.15rem;
}

.lightbox__caption span {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-light);
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}

.lightbox__nav:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.lightbox__nav--prev { left: 2rem; }
.lightbox__nav--next { right: 2rem; }

@media (max-width: 600px) {
  .lightbox__nav { width: 36px; height: 36px; font-size: 1rem; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__caption { bottom: 1rem; padding: 0 1rem; }
}

/* --- Process --- */
.process__header { margin-bottom: 3rem; }
.process__header h2 { margin-bottom: 0.75rem; }
.process__header p { margin: 0; }

.process__strip {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
}
.process__strip::-webkit-scrollbar { display: none; }

.process__item { flex: 0 0 280px; scroll-snap-align: start; }
.process__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.4s var(--ease-out);
}
.process__item:hover img { opacity: 0.8; }

.process__label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* --- About Section --- */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.about__image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  transition: filter 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.about__image:hover img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.02);
}

.about__text h2 { margin-bottom: 1.25rem; }
.about__text p { margin-bottom: 1rem; }
.about__text .btn { margin-top: 1.5rem; }

.about__text--full {
  grid-column: 1 / -1;
  max-width: 640px;
}

.about__section-heading {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about__entry { margin-bottom: 2.5rem; }
.about__entry h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.about__meta {
  color: var(--text-light);
  font-size: 0.8125rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

/* --- Interactive Roles --- */
.roles__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.roles__btn {
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.roles__btn:hover {
  border-color: var(--text);
  color: var(--text);
}

.roles__btn.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.roles__panels {
  position: relative;
  min-height: 80px;
}

.roles__panel {
  display: none;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.roles__panel.active {
  display: block;
}

.roles__panel h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.roles__panel p {
  max-width: 640px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-light);
}

@media (max-width: 600px) {
  .roles__grid { gap: 0.4rem; }
  .roles__btn { font-size: 0.6rem; padding: 0.5rem 0.75rem; }
}

.about__connect-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* --- About: Statement Section --- */
.about-statement {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.about-statement__text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  max-width: 22ch;
}

.about-statement__text p {
  max-width: 50ch;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.about-statement__image img {
  width: 100%;
  object-fit: cover;
  filter: brightness(1.2) contrast(1.1);
}

@media (max-width: 900px) {
  .about-statement {
    grid-template-columns: 1fr;
  }
  .about-statement__image {
    max-width: 500px;
  }
}

/* --- About: Project Showcase --- */
.about-project {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.about-project__image {
  grid-row: span 2;
}

.about-project__image img {
  width: 100%;
  object-fit: cover;
}

.about-project__info h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.about-project__info p {
  max-width: 45ch;
}

.about-project__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-project__grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-project {
    grid-template-columns: 1fr;
  }
  .about-project__image {
    grid-row: auto;
    max-width: 400px;
  }
}

/* --- About: Timeline --- */
.about-timeline {
  max-width: 720px;
}

.about-timeline h2 {
  margin-bottom: 3rem;
}

.about-timeline__item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.about-timeline__item h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.about-timeline__item .about__meta {
  margin-bottom: 0.5rem;
}

.about-timeline__item p:last-child {
  margin-bottom: 0;
}

/* --- Itinerary Accordion --- */
.itinerary {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.itinerary__title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  transform: scaleY(1.15);
  transform-origin: bottom;
  margin-bottom: 3rem;
}

.itinerary__item {
  border-top: 1px solid var(--border);
}

.itinerary__item:last-of-type {
  border-bottom: 1px solid var(--border);
}

.itinerary__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--text);
  text-align: left;
  line-height: 1.2;
  transition: color 0.3s var(--ease-out);
}

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

.itinerary__icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-light);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
  margin-left: 1rem;
}

.itinerary__item.active .itinerary__icon {
  transform: rotate(45deg);
}

.itinerary__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}

.itinerary__body-inner {
  padding-bottom: 1.5rem;
}

.itinerary__body-inner p {
  max-width: 45ch;
}

.itinerary__image {
  overflow: hidden;
}

.itinerary__image img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.itinerary__image:hover img {
  transform: scale(1.03);
}

.itinerary__see-all {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--text);
  padding-bottom: 0.25rem;
  transition: border-color 0.3s var(--ease-out);
}

.itinerary__see-all:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 900px) {
  .itinerary {
    grid-template-columns: 1fr;
  }
  .itinerary__image {
    max-width: 400px;
  }
}

/* --- Shop CTA --- */
.shop-cta {
  padding: clamp(7rem, 14vw, 12rem) 0;
  background-color: var(--bg-alt);
}

.shop-cta__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.shop-cta__image img {
  width: 100%;
  filter: brightness(1.04) contrast(1.06);
}

.shop-cta__content {
  text-align: left;
}

.shop-cta__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.shop-cta h2 {
  margin-bottom: 1.5rem;
}

.shop-cta p {
  max-width: 580px;
  margin: 0 0 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.shop-cta__features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.shop-cta__feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text);
}

.shop-cta__feature-icon {
  color: var(--accent);
  font-size: 0.5rem;
}

.shop-cta__actions {
  display: flex;
  gap: 1rem;
}

/* --- Shop Page --- */
.shop__hero {
  text-align: center;
  padding-top: 8rem;
}
.shop__hero h1 { margin-bottom: 1.25rem; }
.shop__hero p { margin: 0 auto; max-width: 50ch; }

.shop__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.shop__item {
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.4s var(--ease-out);
}
.shop__item:hover { opacity: 1; }

.shop__item-image {
  background: var(--bg-alt);
  position: relative;
}

.shop__item-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  transition: opacity 0.5s var(--ease-out);
}

.shop__item:hover .shop__item-image img { opacity: 0.85; }

.shop__item-info {
  padding: 0.875rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.shop__item-info h3 {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.3s var(--ease-out);
}

.shop__item:hover .shop__item-info h3 { color: var(--accent); }

.shop__item-medium {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

.shop__item-price {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 0.375rem;
}

.shop__item-status {
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4A7C59;
  margin-bottom: 0.25rem;
}

.shop__item--sold { cursor: default; }
.shop__item--sold .shop__item-image img {
  opacity: 0.3;
  filter: grayscale(0.5);
}

.shop__item-sold-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-heading);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
}

.shop__sold-heading {
  margin-top: 6rem;
  margin-bottom: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.shop__sold-heading h2 { margin-bottom: 0.5rem; }
.shop__sold-heading p { margin: 0; }

.shop__notice {
  text-align: center;
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.shop__notice p { margin: 0 auto 2rem; max-width: 50ch; }

@media (max-width: 900px) {
  .shop__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 600px) {
  .shop__grid { gap: 1.5rem; }
}

/* --- Journal / Articles --- */
.journal__hero {
  text-align: center;
  padding-top: 8rem;
}
.journal__hero h1 { margin-bottom: 1.25rem; }
.journal__hero p {
  margin: 0 auto;
  max-width: 40ch;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
}

/* --- Articles Search --- */
.articles__search {
  max-width: 640px;
  margin: 3rem auto 0;
  text-align: center;
}

.articles__search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s var(--ease-out);
}

.articles__search-input:focus {
  border-color: var(--text);
}

.articles__search-input::placeholder {
  color: var(--text-light);
}

.articles__tags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.articles__tag {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.articles__tag:hover {
  border-color: var(--text);
  color: var(--text);
}

.articles__tag.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* --- Articles Grid --- */
.articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.articles__card {
  transition: opacity 0.4s var(--ease-out);
}

.articles__card--featured {
  grid-column: 1 / -1;
}

.articles__card--featured .articles__card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.articles__card--featured .articles__card-image img {
  aspect-ratio: 3 / 4;
}

.articles__card--featured h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.articles__card-link {
  display: block;
  text-decoration: none;
  color: var(--text);
}

.articles__card-link:hover {
  color: var(--text);
  opacity: 1;
}

.articles__card-image {
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.articles__card--featured .articles__card-image {
  margin-bottom: 0;
}

.articles__card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.articles__card-link:hover .articles__card-image img {
  transform: scale(1.03);
}

.articles__card-body {
  padding-top: 0;
}

.articles__card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.articles__card-tag {
  font-family: var(--font-heading);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.articles__card-date {
  font-size: 0.6875rem;
  color: var(--text-light);
  font-weight: 300;
}

.articles__card h3 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  transition: color 0.3s var(--ease-out);
}

.articles__card-link:hover h3,
.articles__card-link:hover h2 {
  color: var(--accent);
}

.articles__card p {
  font-size: 0.8125rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.articles__card-read {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.articles__card-link:hover .articles__card-read {
  color: var(--accent);
  border-color: var(--accent);
}

.articles__empty {
  text-align: center;
  padding: 4rem 0;
}

.articles__empty p {
  margin: 0 auto;
  color: var(--text-light);
}

/* --- Full Article Layout --- */
.article-full {
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-top: 1px solid var(--border);
}

.article-full__inner {
  max-width: 720px;
  margin: 0 auto;
}

.article-full__back {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.article-full__back:hover {
  color: var(--accent);
}

.article-full__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.article-full h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--text);
}

.article-full__hero {
  margin-bottom: 2.5rem;
}

.article-full__hero img {
  width: 100%;
  display: block;
}

.article-full__body p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.article-full__body p:last-child {
  margin-bottom: 0;
}

/* --- Article Page Layout (standalone pages) --- */
.article-hero {
  padding-top: 10rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.article-hero__back {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
  text-decoration: none;
  transition: color 0.2s;
}

.article-hero__back:hover {
  color: var(--accent);
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-hero__tag {
  font-family: var(--font-heading);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-hero__date {
  font-size: 0.6875rem;
  color: var(--text-light);
  font-weight: 300;
}

.article-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.article-hero__subtitle {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-light);
  max-width: 640px;
}

.article-cover {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.article-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: none;
  font-weight: 300;
}

.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.article-body blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2.5rem 0;
}

.article-body figure {
  margin: 2.5rem 0;
}

.article-body figure img {
  width: 100%;
}

.article-body figcaption {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.article-author {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.article-author__name {
  font-size: 0.875rem;
  color: var(--text-light);
}

.article-author__name strong {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.article-author__share {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.article-nav {
  border-top: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.article-nav__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.article-nav a {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.article-nav a:hover {
  color: var(--accent);
}

/* --- Thesis Access Modal --- */
.thesis-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.thesis-modal.active {
  opacity: 1;
  pointer-events: all;
}

.thesis-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.thesis-modal__box {
  position: relative;
  background: var(--bg);
  max-width: 440px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  z-index: 1;
}

.thesis-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.thesis-modal__close:hover { color: var(--text); }

.thesis-modal__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.thesis-modal__box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.thesis-modal__box > p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.thesis-modal__form label,
.thesis-modal__request label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  font-weight: 400;
}

.thesis-modal__form input,
.thesis-modal__request input,
.thesis-modal__request textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 1rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
}

.thesis-modal__form input:focus,
.thesis-modal__request input:focus,
.thesis-modal__request textarea:focus {
  border-color: var(--accent);
}

.thesis-modal__request textarea {
  min-height: 80px;
  resize: vertical;
}

.thesis-modal__error {
  display: none;
  font-size: 0.75rem;
  color: #c0392b;
  margin: -0.5rem 0 1rem;
}

.thesis-modal__error.visible { display: block; }

.thesis-modal__form .btn,
.thesis-modal__request .btn {
  width: 100%;
  text-align: center;
}

.thesis-modal__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.thesis-modal__divider::before,
.thesis-modal__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

@media (max-width: 900px) {
  .articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles__card--featured .articles__card-link {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .articles__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Newsletter --- */
.newsletter {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: end;
}

.newsletter__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.newsletter__text h2 {
  margin-bottom: 1rem;
}

.newsletter__text p {
  max-width: 45ch;
}

.newsletter__form {
  display: flex;
  gap: 0;
}

.newsletter__form input[type="email"] {
  flex: 1;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-right: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s var(--ease-out);
}

.newsletter__form input[type="email"]:focus {
  border-color: var(--text);
}

.newsletter__form .btn {
  border-left: none;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .newsletter__form {
    flex-direction: column;
    gap: 0.75rem;
  }
  .newsletter__form input[type="email"] {
    border-right: 1px solid var(--border);
  }
  .newsletter__form .btn {
    border-left: 1px solid var(--text);
    width: 100%;
    text-align: center;
  }
}

/* --- AnthroWorks Think Tank --- */
.anthroworks { text-align: center; }

.anthroworks__label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.anthroworks h2 {
  margin-bottom: 1rem;
}

.anthroworks > p {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.anthroworks__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
  margin-bottom: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.anthroworks__pillar h4 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.anthroworks__pillar p {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
}

.anthroworks__form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.anthroworks__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.anthroworks__form-group {
  display: flex;
  flex-direction: column;
}

.anthroworks__form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.anthroworks__form input,
.anthroworks__form textarea,
.anthroworks__form select {
  width: 100%;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1.5rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.anthroworks__form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B6B6B' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.125rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.anthroworks__form input:focus,
.anthroworks__form textarea:focus,
.anthroworks__form select:focus {
  border-color: var(--accent);
}

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

.anthroworks__form .btn { width: 100%; text-align: center; }

.anthroworks__visit-link { margin-top: 1.5rem; }

@media (max-width: 600px) {
  .anthroworks__pillars { grid-template-columns: 1fr; gap: 1.5rem; }
  .anthroworks__form-row { grid-template-columns: 1fr; gap: 0; }
}

/* --- Footer --- */
.footer {
  padding: 5rem 0 3rem;
  border-top: 2px solid var(--text);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer__brand {}

.footer__logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 25ch;
}

.footer__nav h4 {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
  transform: none;
}

.footer__nav a {
  display: block;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 0.625rem;
  transition: color 0.3s var(--ease-out);
}

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

.footer__address {
  font-size: 0.8125rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.625rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__socials {
  display: flex;
  gap: 1.25rem;
}

.footer__socials a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  transition: color 0.3s var(--ease-out);
}

.footer__socials a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer__copy {
  font-size: 0.625rem;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Loading Screen --- */
.loading { overflow: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.loader--done { opacity: 0; visibility: hidden; }

.loader__logo {
  width: 140px;
  height: auto;
  opacity: 0;
  animation: loaderFade 2s var(--ease-out) forwards;
}

@keyframes loaderFade {
  0% { opacity: 0; transform: scale(0.9); }
  40% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1); }
}

/* --- Text Reveal Animation --- */
.text-reveal__line {
  display: inline-block;
  overflow: hidden;
}

.text-reveal__inner {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.85s var(--ease-smooth);
  transition-delay: calc(var(--line-index) * 0.12s);
}

.text-reveal--visible .text-reveal__inner {
  transform: translateY(0);
}

.text-reveal.text-reveal--visible {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Parallax parents */
.hero__image,
.about__image,
.journal__featured-image {
  overflow: hidden;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(n+7) { transition-delay: 0.48s; }

/* --- Page Transition --- */
body:not(.loaded) > *:not(.loader):not(.nav) {
  opacity: 0;
}

body.loaded > * {
  animation: pageIn 0.8s var(--ease-out) forwards;
}

@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero__text { text-align: center; }
  .hero__text p { margin-left: auto; margin-right: auto; }
  .hero__meta { justify-content: center; }

  .about__content { grid-template-columns: 1fr; text-align: center; }
  .about__image { max-width: 400px; margin: 0 auto; }
  .about__text p { margin-left: auto; margin-right: auto; }
  .process__item { flex: 0 0 220px; }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.928);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem clamp(2rem, 5vw, 4rem);
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .hero__meta { flex-direction: column; gap: 1.5rem; }
  .process__item { flex: 0 0 200px; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .shop-cta__layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .shop-cta__content { text-align: center; }
  .shop-cta__actions { flex-direction: column; align-items: center; }
}

/* --- Smooth image loading --- */
img {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

img.loaded { opacity: 1; }
.nav__logo-img { opacity: 1 !important; }
.footer__logo img { opacity: 1 !important; }

/* ============================================
   ENHANCEMENTS
   ============================================ */

/* --- Smooth focus states for accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Image clip reveal on scroll --- */
.reveal img,
.reveal video {
  clip-path: inset(0 0 8% 0);
  transition: clip-path 1s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out), opacity 0.5s var(--ease-out);
}

.reveal.visible img,
.reveal.visible video {
  clip-path: inset(0 0 0 0);
}

/* --- Section dividers --- */
.section + .section:not(.section--alt) {
  border-top: 1px solid var(--border);
}

/* --- Enhanced button micro-interaction --- */
.btn {
  transform: translateY(0);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* --- Smoother nav transition on scroll --- */
.nav {
  transition: border-color 0.5s var(--ease-out), background 0.3s var(--ease-out);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
}

/* --- Hero image subtle float animation --- */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__image img {
  animation: heroFloat 6s ease-in-out infinite;
  animation-delay: 2s;
}

/* --- Article cards lift on hover --- */
.articles__card {
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.articles__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* --- Horizontal scroll hint fade on edges --- */
.portfolio__grid,
.editorial__grid,
.drawings__grid {
  mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

/* --- Roles panel smooth entrance --- */
.roles__panel.active {
  animation: panelIn 0.4s var(--ease-out);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Itinerary trigger arrow rotation --- */
.itinerary__item.active .itinerary__trigger {
  color: var(--accent);
}

/* --- Shop items staggered reveal --- */
.shop__grid .shop__item:nth-child(1) { transition-delay: 0s; }
.shop__grid .shop__item:nth-child(2) { transition-delay: 0.08s; }
.shop__grid .shop__item:nth-child(3) { transition-delay: 0.16s; }
.shop__grid .shop__item:nth-child(4) { transition-delay: 0.24s; }
.shop__grid .shop__item:nth-child(5) { transition-delay: 0.32s; }
.shop__grid .shop__item:nth-child(6) { transition-delay: 0.4s; }

/* --- Newsletter form polish --- */
.newsletter__form input[type="email"] {
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.newsletter__form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.1);
}

/* --- AnthroWorks form focus states --- */
.anthroworks__form input:focus,
.anthroworks__form textarea:focus,
.anthroworks__form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.1);
}

/* --- Full article image hover --- */
.article-full__hero {
  overflow: hidden;
}

.article-full__hero img {
  transition: transform 0.8s var(--ease-out);
}

.article-full__hero:hover img {
  transform: scale(1.02);
}

/* --- Smoother page scroll offset for anchors --- */
:target {
  scroll-margin-top: 100px;
}

/* --- Print styles --- */
@media print {
  .nav, .footer, .loader, .marquee, .newsletter { display: none; }
  .section { padding: 2rem 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  img { opacity: 1 !important; }
  body::after { 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;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal img, .reveal video { clip-path: none; }
  .hero__image img { animation: none; }
  .marquee__track { animation: none; }
}
