*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #e8621c;
  --orange-dim: rgba(232, 98, 28, 0.75);

  /* Landing page (dark — text over carousel photos) */
  --white: #f5f2ee;
  --white-dim: rgba(245, 242, 238, 0.65);

  /* Inner pages (light theme) */
  --bg: #f7f5f2;
  --text: #1a1a1a;
  --text-dim: rgba(26, 26, 26, 0.5);
  --border: rgba(26, 26, 26, 0.1);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: #111;
  color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Carousel ─────────────────────────────────────────── */

.carousel {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  animation: kenburns 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.slide.active {
  opacity: 1;
}

@keyframes kenburns {
  from { transform: scale(1);    transform-origin: center center; }
  to   { transform: scale(1.06); transform-origin: 55% 45%; }
}

/* ── Overlay ──────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.25rem;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.4s;
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.7s;
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--white-dim);
  opacity: 0;
  animation: fadeUp 1s ease forwards 1s;
}

.cta-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(245, 242, 238, 0.5);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.3s;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  outline: none;
}

/* ── Landing footer ───────────────────────────────────── */

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.6s;
}

.social-links a {
  display: flex;
  align-items: center;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 28px;
}

.social-links a:hover {
  color: var(--white);
}

.copyright {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(245, 242, 238, 0.35);
}

/* ── Animations ───────────────────────────────────────── */

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

/* ── Landing responsive ───────────────────────────────── */

@media (max-width: 600px) {
  .social-links {
    gap: 1.5rem;
  }
}


/* ════════════════════════════════════════════════════════
   INNER PAGES  (light theme)
   ════════════════════════════════════════════════════════ */

/* ── Site header / nav ────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 3rem 1rem;
  background: var(--bg);
  box-shadow: none;
  gap: 1.25rem;
}

.site-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.site-nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.site-nav-links a {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.site-nav-links a.active {
  color: var(--text);
  font-weight: 700;
}

.inner-body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  height: auto;
}

/* ── Hub (main.html) ──────────────────────────────────── */

.hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(100vh - 84px);
}

.hub-panel {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  border-right: 1px solid rgba(26, 26, 26, 0.08);
}

.hub-panel:last-child {
  border-right: none;
}

.hub-panel-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transition: transform 0.7s ease, filter 0.4s ease;
}

.hub-panel:hover .hub-panel-bg {
  transform: scale(1.05);
  filter: brightness(0.35);
}

.hub-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.hub-panel-content {
  position: relative;
  z-index: 1;
}

.hub-panel-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.hub-panel-content p {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hub-panel-arrow {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  transition: transform 0.3s ease;
}

.hub-panel:hover .hub-panel-arrow {
  transform: translateX(6px);
}

/* ── Recent (recent.html) ─────────────────────────────── */

.page-header {
  padding: 4rem 3rem 2.5rem;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
}

.page-header .page-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.page-content {
  margin-top: 2rem;
  padding: 0 2rem;
}

.collage {
  position: relative;
  min-height: 60vh;
}

.collage-item {
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.collage-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.collage-item:hover .collage-caption {
  opacity: 1;
}

.collage-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.collage-item:hover img {
  transform: scale(1.02);
}

.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ── Portfolio categories (portfolio.html) ────────────── */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 70vh;
  margin: 0 14px 14px;
  gap: 14px;
}

.category-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.category-card-bg {
  position: absolute;
  inset: 0;
  filter: brightness(0.45);
  transition: transform 0.7s ease, filter 0.4s ease;
}

.category-card:hover .category-card-bg {
  transform: scale(1.05);
  filter: brightness(0.3);
}

.category-card-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  transition: background 0.4s ease;
}

.category-card:hover .category-card-overlay {
  background: rgba(0,0,0,0.35);
}

.category-card-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.category-card-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.04em;
}

.category-divider {
  width: 32px;
  height: 1px;
  background: var(--orange);
  margin: 1rem auto;
  transition: width 0.3s ease;
}

.category-card:hover .category-divider {
  width: 56px;
}

.category-card-content span {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Portfolio sub-pages ──────────────────────────────── */

.sub-page-header {
  padding: 3rem 3rem 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.back-link {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--orange);
}

.sub-page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--text);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(256px, 1fr));
  gap: 14px;
  padding: 0 14px 14px;
}

.photo-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img {
  transform: scale(1.04);
}

/* ── Contact (contact.html) ───────────────────────────── */

.contact-page {
  max-width: 580px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.contact-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.contact-page .contact-sub {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.25s ease;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--orange);
}

.form-group textarea {
  resize: none;
  min-height: 130px;
}

.submit-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(26, 26, 26, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

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

/* ── Lightbox ─────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(245, 242, 238, 0.35);
  border-radius: 50%;
  color: #f5f2ee;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.lightbox-close {
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ── Inner footer ─────────────────────────────────────── */

.inner-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 24px;
  font-weight: 700;
}

.footer-socials a:hover {
  color: var(--orange);
}

.inner-footer .copyright {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 900px) {
  .hub,
  .category-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hub-panel,
  .category-card {
    height: 40vh;
    border-right: none;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  }

  .site-header {
    padding: 0 1.5rem;
  }
}

@media (max-width: 700px) {

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

  .sub-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 2rem 1.5rem 1.5rem;
  }

  .site-nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .collage {
    columns: 1;
  }
}
