@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #f6f1ea;
  --bg-strong: #e6ded0;
  --ink: #1c1a17;
  --muted: #6a625b;
  --accent: #c46a3a;
  --accent-2: #2f5d56;
  --tile: #fff9f2;
  --radius: 20px;
  --shadow: 0 22px 60px rgba(25, 18, 12, 0.18);
  --shadow-soft: 0 12px 36px rgba(21, 16, 12, 0.12);
  --grid-gap: clamp(16px, 2vw, 24px);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Space Grotesk", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}


.page {
  position: relative;
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 5vw 0;
}

.brand {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

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

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 5vw 72px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(32px, 5vh, 56px);
  min-height: 0;
}

.hero-text,
.hero-media {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s ease forwards;
}

.hero-media {
  animation-delay: 0.15s;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--accent-2);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button.primary {
  background: var(--accent);
  color: #fff7ef;
  box-shadow: 0 12px 30px rgba(196, 106, 58, 0.25);
}

.button.ghost {
  background: transparent;
  border-color: rgba(28, 26, 23, 0.2);
  color: var(--ink);
}

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

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.hero-stats span {
  font-family: var(--serif);
  font-size: 1.6rem;
  display: block;
}

.hero-stats small {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.6rem;
  color: var(--muted);
}

.hero-media {
  display: grid;
  gap: 18px;
}

.hero-frame {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: var(--tile);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hero-strip img,
.hero-strip .video-thumbnail {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-soft);
}

.hero-strip .video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 40px 5vw 80px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  max-width: 720px;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--grid-gap);
  grid-auto-flow: dense;
  grid-auto-rows: 140px;
}

.tile {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tile);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(80, 70, 60, 0.12);
  text-decoration: none;
  color: inherit;
}

.js .tile {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .tile.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: var(--delay, 0s);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 12, 10, 0) 35%,
    rgba(14, 12, 10, 0.65) 100%
  );
  opacity: 0.65;
  transition: opacity 0.4s ease;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.tile-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9f4ef;
  z-index: 1;
}

.tile:hover img {
  transform: scale(1.05);
}

.tile:hover::after {
  opacity: 0.85;
}

.tile--wide {
  grid-column: span 2;
}

.tile--tall {
  grid-row: span 3;
}

.tile--hero {
  grid-column: span 3;
  grid-row: span 3;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.about-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 249, 242, 0.85);
  border: 1px solid rgba(60, 50, 40, 0.08);
  box-shadow: var(--shadow-soft);
}

.about-card h3 {
  margin-top: 0;
  font-family: var(--serif);
}

.book-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(230, 222, 208, 0.7);
  border: 1px solid rgba(28, 26, 23, 0.12);
  box-shadow: var(--shadow-soft);
}

.book-card h3 {
  margin-top: 0;
  font-family: var(--serif);
}

.book-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.footer {
  padding: 40px 5vw 60px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vw 4vw;
  background: rgba(12, 10, 8, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  position: relative;
  width: min(1100px, 92vw);
  max-height: 90vh;
  overflow: auto;
  background: #161310;
  color: #f7f2eb;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(22, 19, 16, 0.8);
  color: #f7f2eb;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox__image {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 14px;
  background: #0c0a08;
  display: block;
}

.lightbox__caption {
  margin: 14px 6px 4px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e5ded6;
}

@media (max-width: 900px) {
  .tile--hero {
    grid-column: span 2;
    grid-row: span 3;
  }
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 24px 5vw 48px;
    min-height: auto;
  }

  .hero-content {
    margin-top: 24px;
    align-content: flex-start;
  }

  .tile--wide,
  .tile--hero {
    grid-column: span 1;
  }

  .gallery {
    grid-auto-rows: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .hero-text,
  .hero-media {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .tile,
  .button {
    transition: none;
  }
}

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

/* Fixed navigation for inner pages */
.nav--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(246, 241, 234, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
  padding: 16px 5vw;
  border-bottom: 1px solid rgba(28, 26, 23, 0.08);
}

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

/* Main content padding for fixed nav */
.main-content {
  padding-top: 80px;
}

/* Footer links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--ink);
}

/* Page cards for home */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.page-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 249, 242, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(60, 50, 40, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.page-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.page-card:hover .page-card-image img {
  transform: scale(1.05);
}

.page-card-content {
  padding: 20px 24px 24px;
}

.page-card-content h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.page-card-content p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.page-card-link {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Gallery preview on home */
.preview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--grid-gap);
}

.preview-gallery .tile {
  aspect-ratio: 1;
  height: auto;
}

.preview-cta {
  text-align: center;
  margin-top: 32px;
}

/* CTA section */
.cta-section {
  padding-top: 20px;
}

.cta-card {
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(230, 222, 208, 0.7);
  border: 1px solid rgba(28, 26, 23, 0.1);
  text-align: center;
}

.cta-card h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.cta-card p {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-card--instagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
  align-items: center;
}

.cta-card--instagram .cta-content {
  padding: 20px;
}

.cta-card--instagram .cta-content p {
  margin-left: 0;
  margin-right: 0;
}

.cta-image {
  border-radius: 16px;
  overflow: hidden;
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Portfolio page */
.portfolio-hero {
  padding-top: 60px;
}

.portfolio-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.portfolio-hero-text .eyebrow {
  margin-bottom: 8px;
}

.portfolio-hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin: 0 0 16px;
}

.portfolio-hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio-hero-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
}

.portfolio-item--large {
  grid-column: span 2;
}

.portfolio-item--large img {
  aspect-ratio: 16 / 9;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.experience-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 249, 242, 0.85);
  border: 1px solid rgba(60, 50, 40, 0.08);
  box-shadow: var(--shadow-soft);
}

.experience-card h3 {
  font-family: var(--serif);
  margin: 0 0 8px;
}

.experience-card p {
  color: var(--muted);
  margin: 0;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.capability {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 249, 242, 0.7);
  border: 1px solid rgba(60, 50, 40, 0.06);
  text-align: center;
}

.capability h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.capability p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

/* Contact page */
.contact-section {
  padding-top: 60px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.contact-info h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin: 0 0 16px;
}

.contact-details {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.contact-detail h3 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 4px;
}

.contact-detail p {
  color: var(--muted);
  margin: 0;
}

.contact-detail a {
  color: var(--accent);
}

.contact-form-container {
  background: rgba(255, 249, 242, 0.9);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(60, 50, 40, 0.1);
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid rgba(28, 26, 23, 0.15);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 106, 58, 0.15);
}

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

.contact-form .button {
  align-self: flex-start;
  cursor: pointer;
}

.form-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.form-note a {
  color: var(--accent);
}

/* Section heading h1 for inner pages */
.section-heading h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin: 0;
}

.section-heading a {
  color: var(--accent);
}

/* Responsive adjustments for new components */
@media (max-width: 900px) {
  .cta-card--instagram {
    grid-template-columns: 1fr;
  }

  .cta-card--instagram .cta-content {
    text-align: center;
    padding: 0;
  }

  .cta-card--instagram .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .portfolio-hero-content {
    grid-template-columns: 1fr;
  }

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

  .portfolio-item--large {
    grid-column: span 2;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav--fixed {
    position: relative;
    padding: 24px 5vw;
  }

  .main-content {
    padding-top: 0;
  }

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

  .portfolio-item--large {
    grid-column: span 1;
  }

  .portfolio-item--large img {
    aspect-ratio: 4 / 3;
  }
}

/* Video thumbnail */
.video-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-play-icon svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
  margin-left: 3px;
}

.video-thumbnail:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
}

.video-modal__video {
  width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.video-modal__close:hover {
  color: #fff;
}
