/* ============================================
   VETANA — Built to Belong
   Design System & Styles
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Special+Elite&display=swap');

@font-face {
  font-family: 'RocaTwo';
  src: url('../fonts/roca-two.ttf') format('truetype');
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  --bark:   #3e2f23;
  --bark-light: #5c4535;
  --cream:  #efe7dd;
  --cream-dark: #ddd4c8;
  --amber:  #836231;
  --amber-light: #a07c42;
  --stone:  #5e5349;   /* darkened for WCAG AA ~5.2:1 on cream */
  --amber-label: #6b4f22; /* darker amber for small labels ~4.8:1 on cream */

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-accent: 'Special Elite', monospace;
  --font-body:   'RocaTwo', 'Nunito', sans-serif;

  --nav-height: 80px;
  --section-pad: clamp(5rem, 10vw, 8rem);
  --container:   1280px;
  --gutter:      clamp(1.5rem, 5vw, 5rem);

  --ease-luxury: cubic-bezier(0.25, 0.1, 0.25, 1.0);
  --ease-reveal: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);

  --transition: 400ms var(--ease-luxury);
  --transition-slow: 800ms var(--ease-reveal);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--cream);
  color: var(--bark);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Subtle paper/grain texture using CSS noise */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }
::selection { background: var(--amber); color: var(--cream); }

/* --- Typography --- */
.t-display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
}
.t-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.t-subheading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.6;
}
.t-label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.t-body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.85; letter-spacing: 0.015em; }
.t-small { font-family: var(--font-body); font-size: 0.875rem; line-height: 1.6; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-pad) 0; }
.section--dark { background-color: var(--bark); color: var(--cream); }
.section--mid { background-color: var(--cream-dark); }

/* --- Utilities --- */
.amber { color: var(--amber); }
.stone { color: var(--stone); }
.italic { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Section Label --- */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--amber-label); /* WCAG AA compliant on cream */
}
.section-label::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--amber-label);
  flex-shrink: 0;
}
.section-label--light { color: var(--cream); opacity: 0.7; }
.section-label--light::before { background: var(--cream); opacity: 0.5; }

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.12;
  margin: 3rem 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  transition: var(--transition);
  position: relative;
}
.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-reveal);
}
.btn:hover::after { width: 100%; }

.btn--primary {
  background: var(--bark);
  color: var(--cream);
  border: 1px solid var(--bark);
}
.btn--primary:hover { background: var(--amber); border-color: var(--amber); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(239,231,221,0.5);
}
.btn--ghost:hover { background: var(--cream); color: var(--bark); border-color: var(--cream); }

.btn--ghost-dark {
  background: transparent;
  color: var(--bark);
  border: 1px solid rgba(62,47,35,0.35);
}
.btn--ghost-dark:hover { background: var(--bark); color: var(--cream); border-color: var(--bark); }

.btn--text {
  padding: 0;
  color: var(--amber);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  border: none;
}
.btn--text::after { background: var(--amber); }
.btn--text:hover { opacity: 0.8; }
.btn--text .arrow { transition: transform 0.3s var(--ease-luxury); }
.btn--text:hover .arrow { transform: translateX(4px); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease-luxury), box-shadow 0.5s var(--ease-luxury);
}
.nav--transparent { background: transparent; }
.nav--solid { background: var(--cream); box-shadow: 0 1px 0 rgba(62,47,35,0.1); }
.nav--open { background: var(--bark) !important; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 101;
}
.nav__logo-mark {
  width: 44px;
  height: 44px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav__logo-mark img {
  width: 100%;
  /* Logo image is square: mark occupies top ~58%, text below.
     Scale up so mark fills the container */
  height: 180%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.3s;
}
.nav__logo-text {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  transition: color 0.3s;
}

/* Light logo text over hero */
.nav--transparent .nav__logo-text,
.nav--open .nav__logo-text { color: var(--cream); }
.nav--solid .nav__logo-text { color: var(--bark); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__link {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.35s var(--ease-reveal);
}
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav--transparent .nav__link,
.nav--open .nav__link { color: rgba(239,231,221,0.85); }
.nav--transparent .nav__link:hover,
.nav--open .nav__link:hover { color: var(--cream); }
.nav--solid .nav__link { color: var(--stone); }
.nav--solid .nav__link:hover { color: var(--bark); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease-luxury), opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.nav--transparent .nav__toggle,
.nav--open .nav__toggle { color: var(--cream); }
.nav--solid .nav__toggle { color: var(--bark); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--bark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-luxury), visibility 0.4s;
  z-index: 99;
}
.nav__overlay.is-open { opacity: 1; visibility: visible; }
.nav__overlay .nav__link {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--cream);
}
.nav__overlay .nav__link::after { background: var(--amber); height: 1px; }

/* ============================================
   PAGE HERO (non-home pages)
   ============================================ */
.page-hero {
  height: 50vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  background-color: var(--bark);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62,47,35,0.85) 0%, rgba(62,47,35,0.3) 60%, transparent 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  color: var(--cream);
}
.page-hero__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* ============================================
   HOME — HERO
   ============================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-image: url('../images/hero.jpg');
  transform: scale(1.04);
  animation: hero-scale 8s var(--ease-luxury) forwards;
}
@keyframes hero-scale {
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(62,47,35,0.72) 0%,
    rgba(62,47,35,0.45) 45%,
    rgba(62,47,35,0.65) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  color: var(--cream);
  max-width: 820px;
}
.hero__content--centered {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__logo-wrap {
  opacity: 0;
  animation: fade-up 1s var(--ease-reveal) 0.4s forwards;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
/* Clip container — shows only the circular emblem, hides VETANA text + tagline */
.hero__emblem-clip {
  overflow: hidden;
  width: clamp(110px, 15vw, 170px);
  height: clamp(52px, 7.1vw, 80px); /* ~47% of width = emblem only */
}
.hero__logo-img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
}
.hero__wordmark {
  font-family: var(--font-accent);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: var(--cream);
  letter-spacing: 0.3em;
  padding-left: 0.3em; /* compensates Special Elite letter-spacing right-trailing gap */
  line-height: 1;
}
.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: rgba(239,231,221,0.7);
  letter-spacing: 0.06em;
  margin-top: -0.25rem;
}
.hero__content--centered .hero__sub {
  max-width: 480px;
}
.hero__label {
  opacity: 0;
  animation: fade-up 0.7s var(--ease-reveal) 0.4s forwards;
}
.hero__title {
  margin: 1.2rem 0 1.5rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-reveal) 0.7s forwards;
}
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-reveal) 1s forwards;
  max-width: 540px;
  color: rgba(239,231,221,0.92);
  text-shadow: 0 1px 12px rgba(62,47,35,0.5);
}
.hero__cta {
  margin-top: 2.5rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-reveal) 1.3s forwards;
}

/* Amber decorative line */
.hero__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  z-index: 2;
}
.hero__line::after {
  content: '';
  display: block;
  height: 100%;
  background: var(--amber);
  width: 100%;
  transform: translateX(-100%);
  animation: line-draw 1.4s var(--ease-reveal) 1.5s forwards;
}
@keyframes line-draw {
  to { transform: translateX(0); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(239,231,221,0.6);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-reveal) 2s forwards;
}
.hero__scroll-text {
  font-family: var(--font-accent);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(239,231,221,0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--amber);
  animation: scroll-line 2s ease-in-out 2.2s infinite;
}
@keyframes scroll-line {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ============================================
   HOME — INTRO
   ============================================ */
.intro {
  padding: var(--section-pad) 0;
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.intro__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: var(--cream-dark);
}
.intro__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
}
.intro__image-wrap:hover img { transform: scale(1.03); }
.intro__image-accent {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 40%;
  height: 40%;
  border: 2px solid var(--amber);
  pointer-events: none;
}
.intro__text { padding: 1rem 0; }
.intro__heading { margin: 1rem 0 1.5rem; }
.intro__body { color: var(--stone); margin-bottom: 2rem; }
.intro__body + .intro__body { margin-top: 1rem; }
.intro__link { margin-top: 2rem; }

/* ============================================
   HOME — FEATURED WORK
   ============================================ */
.featured {
  padding: var(--section-pad) 0;
  background: var(--cream-dark);
}
.featured__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.featured__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  min-height: 480px;
}
.featured__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--cream-dark);
}
.featured__item:first-child {
  grid-row: 1 / 3;
  min-height: 480px;
}
.featured__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-luxury);
}
.featured__item:hover img { transform: scale(1.05); }
.featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62,47,35,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-luxury);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}
.featured__item:hover .featured__overlay { opacity: 1; }
.featured__item-title {
  color: var(--cream);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
}

/* ============================================
   ABOUT — STORY
   ============================================ */
.story { padding: var(--section-pad) 0; }
.story__text {
  max-width: 680px;
  margin: 0 auto;
}
.story__text .t-heading { margin-bottom: 2rem; }
.story__text p { color: var(--stone); margin-bottom: 1.25rem; }
.story__text p:first-of-type {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--bark);
}
.story__break {
  height: 55vh;
  min-height: 300px;
  margin: 5rem calc(-1 * var(--gutter));
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.story__break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(62,47,35,0.3);
}

/* ============================================
   ABOUT — COLLECTIVE
   ============================================ */
.collective { padding: var(--section-pad) 0; background: var(--cream-dark); }
.collective__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.collective__image-wrap {
  overflow: hidden;
  aspect-ratio: 4/5;
}
.collective__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
}
.collective__image-wrap:hover img { transform: scale(1.03); }
.collective__content .t-heading { margin: 1rem 0 1.5rem; }
.collective__content p { color: var(--stone); margin-bottom: 1.25rem; }
.collective__quote {
  border-left: 2px solid var(--amber);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--bark);
}

/* ============================================
   ABOUT — VALUES
   ============================================ */
.values { padding: var(--section-pad) 0; }
.values__header { text-align: center; max-width: 540px; margin: 0 auto 4rem; }
.values__header .t-heading { margin-top: 1rem; }
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.values__item { text-align: center; padding: 2.5rem 2rem; }
.values__number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 1.25rem;
  opacity: 0.6;
}
.values__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.values__body { color: var(--stone); font-size: 0.95rem; }

/* ============================================
   SERVICES
   ============================================ */
.services-header {
  padding: calc(var(--nav-height) + 2.5rem) 0 3rem;
}
.services-header .t-heading { margin: 1rem 0 1rem; }
.services-header .t-subheading { color: var(--stone); }
.services-header .section-label { margin-bottom: 1.5rem; }

.services-list { padding-bottom: var(--section-pad); }
.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  border-top: 1px solid rgba(62,47,35,0.1);
  overflow: hidden;
}
.service-item:last-child { border-bottom: 1px solid rgba(62,47,35,0.1); }
.service-item--reverse { direction: rtl; }
.service-item--reverse > * { direction: ltr; }

.service-item__image {
  overflow: hidden;
  min-height: 360px;
}
.service-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-luxury);
}
.service-item:hover .service-item__image img { transform: scale(1.04); }

.service-item__content {
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}
.service-item--reverse .service-item__content { background: var(--cream); }
.service-item__number {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--amber);
  margin-bottom: 1rem;
}
.service-item__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  margin-bottom: 1rem;
}
.service-item__desc { color: var(--stone); margin-bottom: 1.5rem; font-size: 0.95rem; }
.service-item__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-item__list li {
  font-size: 0.875rem;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.service-item__list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--amber);
  flex-shrink: 0;
}

/* Process */
.process { padding: var(--section-pad) 0; background: var(--cream-dark); }
.process__header { text-align: center; max-width: 540px; margin: 0 auto 4rem; }
.process__header .t-heading { margin-top: 1rem; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
}
.process__steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: var(--amber);
  opacity: 0.3;
}
.process__step { text-align: center; padding: 0 0.5rem; }
.process__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(131,98,49,0.3);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--amber);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.process__step-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.process__step-desc { color: var(--stone); font-size: 0.85rem; line-height: 1.5; }

/* CTA Banner */
.cta-banner {
  padding: 6rem 0;
  background: var(--bark);
  color: var(--cream);
  text-align: center;
}
.cta-banner .t-heading { margin: 1rem 0 2rem; color: var(--cream); }
.cta-banner .section-label { justify-content: center; }
.cta-banner .section-label::before { background: rgba(239,231,221,0.4); }

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-header {
  padding: calc(var(--nav-height) + 2.5rem) 0 2.5rem;
}
.portfolio-header .t-heading { margin: 1rem 0; }
.portfolio-header .t-subheading { color: var(--stone); }

.portfolio-filters {
  display: flex;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  justify-content: flex-start;
}
.filter-btn {
  font-family: var(--font-accent);
  font-size: 0.69rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--amber);
  background: transparent;
  color: var(--bark);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--amber);
  color: var(--cream);
  border-color: var(--amber);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  padding-bottom: var(--section-pad);
  align-items: start;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--cream-dark);
  grid-column: span 5;
  aspect-ratio: 4/3;
}
/* Featured items — wider, more prominent */
.portfolio-item:nth-child(1),
.portfolio-item:nth-child(4) {
  grid-column: span 7;
  aspect-ratio: 16/9;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-luxury);
}
.portfolio-item:hover img { transform: scale(1.03); }
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62,47,35,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-luxury);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__name {
  color: var(--cream);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}
.portfolio-item__cat {
  font-family: var(--font-accent);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(62,47,35,0.96);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-luxury), visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease-luxury);
}
.lightbox.is-open .lightbox__inner { transform: scale(1); }
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}
.lightbox__close {
  position: absolute;
  top: -3rem;
  right: 0;
  color: var(--cream);
  font-size: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.3s;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cream);
  font-size: 1.5rem;
  opacity: 0.6;
  transition: opacity 0.3s;
  padding: 1.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__prev { left: 1rem; }
.lightbox__next { right: 1rem; }
.lightbox__prev:hover,
.lightbox__next:hover { opacity: 1; }
.lightbox__caption {
  text-align: center;
  margin-top: 1rem;
  color: rgba(239,231,221,0.7);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-intro {
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
}
.contact-intro__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6rem;
  align-items: start;
}
.contact-intro__heading { margin: 1rem 0 1.5rem; }
.contact-intro__body { color: var(--stone); margin-bottom: 1.5rem; }
.contact-details { padding-top: 2rem; }
.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(62,47,35,0.1);
}
.contact-detail:first-child { border-top: 1px solid rgba(62,47,35,0.1); }
.contact-detail__label {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  min-width: 80px;
  padding-top: 2px;
}
.contact-detail__value { color: var(--stone); font-size: 0.95rem; line-height: 1.5; }

/* Form */
.contact-form { padding: 0 0 var(--section-pad); }
.contact-form__inner { max-width: 720px; }
.contact-form__header { margin-bottom: 3rem; }
.contact-form__header .t-heading { margin-top: 0.75rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}
.form-field {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(62,47,35,0.2);
  transition: border-color 0.3s;
}
.form-field:focus-within { border-color: var(--amber); }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--bark);
  padding: 0.25rem 0;
  appearance: none;
  -webkit-appearance: none;
}
.form-field select {
  cursor: pointer;
  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 d='M1 1l5 5 5-5' stroke='%23836231' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 1.5rem;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--stone); opacity: 0.5; }
.form-field textarea { resize: none; min-height: 140px; line-height: 1.6; }

.form-submit {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.form-submit .btn { min-width: 200px; justify-content: center; }
.form-note {
  font-size: 0.8rem;
  color: var(--stone);
  opacity: 0.7;
}
.form-success {
  display: none;
  background: rgba(131,98,49,0.08);
  border: 1px solid rgba(131,98,49,0.2);
  padding: 2.5rem;
  text-align: center;
}
.form-success .t-subheading { margin-bottom: 0.75rem; }
.form-success p { color: var(--stone); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bark);
  color: var(--cream);
  padding: 4rem 0 2rem;
}
.footer__main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(239,231,221,0.1);
}
.footer__brand { }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer__logo img { width: 40px; height: 40px; object-fit: contain; filter: brightness(10); }
.footer__logo-name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: var(--cream);
}
.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(239,231,221,0.5);
}
.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer__nav-link {
  font-family: var(--font-accent);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239,231,221,0.6);
  transition: color 0.3s;
}
.footer__nav-link:hover { color: var(--cream); }
.footer__contact { text-align: right; }
.footer__contact-label {
  font-family: var(--font-accent);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.footer__contact-email {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: rgba(239,231,221,0.85);
  transition: color 0.3s;
}
.footer__contact-email:hover { color: var(--cream); }
.footer__location {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(239,231,221,0.6);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: 0.78rem;
  color: rgba(239,231,221,0.75);
}
/* Form submit focus state */
.btn--primary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
.footer__social {
  display: flex;
  gap: 1.25rem;
}
.footer__social-link {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(239,231,221,0.4);
  transition: color 0.3s;
}
.footer__social-link:hover { color: var(--amber); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
/* Only apply hidden state after JS has loaded (js-ready class on body) */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-reveal), transform 0.8s var(--ease-reveal);
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-ready .reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.9s var(--ease-reveal), transform 0.9s var(--ease-reveal);
}
.js-ready .reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.js-ready .reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.9s var(--ease-reveal), transform 0.9s var(--ease-reveal);
}
.js-ready .reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.stagger .reveal:nth-child(1) { transition-delay: 0.0s; }
.stagger .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger .reveal:nth-child(3) { transition-delay: 0.24s; }
.stagger .reveal:nth-child(4) { transition-delay: 0.36s; }
.stagger .reveal:nth-child(5) { transition-delay: 0.48s; }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .process__steps { grid-template-columns: repeat(3, 1fr); }
  .process__steps::before { display: none; }
  .process__step:nth-child(n+4) { margin-top: 1.5rem; }
}

/* Intermediate breakpoint: portfolio collapses from 12-col to 2-col before mobile */
@media (max-width: 960px) and (min-width: 769px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-item,
  .portfolio-item:nth-child(1),
  .portfolio-item:nth-child(4) { grid-column: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .hero__title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .intro__grid { grid-template-columns: 1fr; gap: 3rem; }
  .intro__image-wrap { aspect-ratio: 4/3; }

  .featured__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .featured__item:first-child { grid-row: auto; height: 300px; }
  .featured__item:not(:first-child) { aspect-ratio: 4/3; }

  .story__break { background-attachment: scroll; }

  .collective__grid { grid-template-columns: 1fr; }
  .collective__image-wrap { aspect-ratio: 3/2; }

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

  .service-item,
  .service-item--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service-item__image { min-height: 240px; }
  .service-item--reverse .service-item__content { background: var(--cream); }

  .process__steps { grid-template-columns: 1fr 1fr; }
  .process__step:nth-child(5) { grid-column: 1 / -1; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item,
  .portfolio-item:nth-child(1),
  .portfolio-item:nth-child(4) { grid-column: span 1; aspect-ratio: 4/3; }

  .contact-intro__grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-grid { grid-template-columns: 1fr; }

  .footer__main { grid-template-columns: 1fr; text-align: center; }
  .footer__nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .footer__contact { text-align: center; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .lightbox__prev { left: 0.25rem; }
  .lightbox__next { right: 0.25rem; }
}

@media (max-width: 480px) {
  .featured__header { flex-direction: column; align-items: flex-start; }
  .process__steps { grid-template-columns: 1fr; }
  .process__step:nth-child(5) { grid-column: auto; }
}

/* 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, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
