:root {
  --page-bg: #d8d3d0;
  --header-overlay: rgba(19, 15, 13, 0.35);
  --light-cream: #efebe6;
  --text-dark: #1d1a18;
  --text-soft: #5b514b;
  --nav-text: rgba(255, 255, 255, 0.9);
  --button-border: rgba(34, 29, 27, 0.7);
  --card-border: rgba(25, 20, 18, 0.08);
  --shadow: rgba(0, 0, 0, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  font-family: "Montserrat", Arial, sans-serif;
}

body {
  min-height: 100vh;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--page-bg);
}

.page-shell--inner {
  background: #f5f3f1;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
  padding: 10px 42px 12px 28px;
  background: var(--header-overlay);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.page-shell:not(.page-shell--inner) .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: rgba(24, 20, 18, 0.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.brand {
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.brand a {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
}

.brand a .brand-name {
  display: grid;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.45rem;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 0.72;
  text-transform: lowercase;
  white-space: nowrap;
}

.brand-name span {
  margin-top: 8px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.69rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--nav-text);
  letter-spacing: 0.02em;
}

.main-nav a {
  position: relative;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.4;
  letter-spacing: 0.14em;
  opacity: 0.96;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  opacity: 1;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.divider {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.7;
  font-size: 0.8rem;
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slide {
  margin: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-section::after {
  background: linear-gradient(to bottom, rgba(25, 20, 18, 0.12), transparent 32%, transparent 70%, rgba(25, 20, 18, 0.2));
  content: "";
  pointer-events: none;
}

.slideshow-controls {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.slide-arrow,
.slide-toggle {
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(20, 17, 16, 0.25);
  color: rgba(255, 255, 255, 0.88);
  pointer-events: auto;
  transition: background-color 180ms ease, color 180ms ease;
}

.slide-arrow:hover,
.slide-toggle:hover {
  background: rgba(20, 17, 16, 0.62);
  color: #fff;
}

.slide-arrow {
  width: 54px;
  height: 76px;
  font-size: 3.5rem;
  line-height: 1;
}

.slide-previous {
  border-radius: 0 3px 3px 0;
}

.slide-next {
  border-radius: 3px 0 0 3px;
}

.slide-toggle {
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 0.95rem;
}

.play-icon {
  display: none;
  padding-left: 3px;
}

.slide-toggle[aria-pressed="true"] .pause-icon {
  display: none;
}

.slide-toggle[aria-pressed="true"] .play-icon {
  display: inline;
}

.cookie-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 20px 18px 24px;
  background: rgba(244, 239, 233, 0.92);
  border-top: 1px solid rgba(36, 29, 27, 0.25);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.25);
}

.cookie-banner p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.cookie-banner a {
  color: #7b4f2b;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  min-width: 120px;
  border: 1px solid var(--button-border);
  background: transparent;
  color: var(--text-dark);
  padding: 11px 22px;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

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

.btn-primary {
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
}

.content-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 28px 100px;
}

.page-intro {
  max-width: 700px;
  margin: 0 auto 42px;
  text-align: center;
}

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

.page-intro h1,
.story-card h2,
.story-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--text-dark);
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  line-height: 0.92;
}

.page-intro h2,
.external-feature h2 {
  margin: 0;
  color: var(--text-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
}

.section-description {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--text-soft);
  line-height: 1.7;
}

.story-grid,
.portfolio-grid,
.testimonial-grid {
  display: grid;
  gap: 26px;
}

.story-grid {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.story-card {
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.story-card--featured {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

.story-image {
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

.story-image--wedding {
  background-image: linear-gradient(rgba(18, 18, 18, 0.1), rgba(18, 18, 18, 0.1)), url("../assets/cat.jpg");
}

.story-image--intro {
  background-image: linear-gradient(rgba(18, 18, 18, 0.1), rgba(18, 18, 18, 0.1)), url("../assets/cat_1.jpg");
}

.story-image--kukyaala {
  background-image: linear-gradient(rgba(18, 18, 18, 0.1), rgba(18, 18, 18, 0.1)), url("../assets/cat.jpg");
}

.story-image--birthday {
  background-image: linear-gradient(rgba(18, 18, 18, 0.1), rgba(18, 18, 18, 0.1)), url("../assets/cat_1.jpg");
}

.story-copy {
  padding: 22px 22px 26px;
}

.story-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-card h2,
.story-card h3 {
  margin: 0;
  line-height: 1.02;
}

.story-card h2 {
  font-size: clamp(2rem, 2vw, 3rem);
}

.story-card h3 {
  font-size: clamp(1.5rem, 1.6vw, 2.2rem);
}

.story-card p {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

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

.portfolio-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-category {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  background: #d9d1cb;
  color: #fff;
  text-decoration: none;
}

.portfolio-category::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  content: "";
}

.portfolio-category img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: transform 450ms ease;
}

.portfolio-category:hover img,
.portfolio-category:focus-visible img {
  transform: scale(1.04);
}

.portfolio-category span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 25px;
  left: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  text-align: center;
}

.photo-gallery,
.film-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.photo-gallery figure {
  margin: 0;
  min-height: 250px;
  overflow: hidden;
  background: #d9d1cb;
}

.photo-gallery figure:nth-child(3n + 1) {
  grid-row: span 2;
}

.photo-gallery img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 450ms ease;
}

.photo-gallery figure:nth-child(3n + 1) img {
  min-height: 520px;
}

.photo-gallery figure:hover img {
  transform: scale(1.025);
}

.gallery-placeholder-note {
  margin: 28px auto 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

.film-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.film-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.04);
}

.film-poster {
  position: relative;
  min-height: 280px;
  background: #2b2623;
}

.film-poster::after {
  position: absolute;
  inset: 0;
  background: rgba(16, 13, 12, 0.42);
  content: "";
}

.film-poster img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  opacity: 0.75;
}

.film-poster span {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.film-card h2 {
  margin: 0;
  padding: 18px;
  color: var(--text-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
}

.portfolio-tile {
  min-height: 300px;
  background: #d9d1cb;
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04);
  background-size: cover;
  background-position: center;
}

.portfolio-tile--large {
  grid-column: span 2;
  min-height: 430px;
  background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.12)), url("../assets/cat.jpg");
}

.portfolio-tile:not(.portfolio-tile--large):nth-child(2) {
  background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.12)), url("../assets/cat_1.jpg");
}

.portfolio-tile:nth-child(3) {
  background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.12)), url("../assets/cat.jpg");
}

.portfolio-tile:nth-child(4) {
  background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.12)), url("../assets/cat_1.jpg");
}

.portfolio-tile:nth-child(5) {
  background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.12)), url("../assets/cat.jpg");
}

.portfolio-tile:nth-child(6) {
  background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.12)), url("../assets/cat_1.jpg");
}

.portfolio-tile--family {
  background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.12)), url("../assets/cat.jpg");
}

.portfolio-tile--glam {
  background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.12)), url("../assets/cat_1.jpg");
}

.portfolio-tile--personal {
  background-image: linear-gradient(rgba(17, 17, 17, 0.12), rgba(17, 17, 17, 0.12)), url("../assets/cat.jpg");
}

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
}

.external-feature {
  margin: 76px auto 0;
  max-width: 720px;
  padding: 42px 24px;
  background: #fff;
  border: 1px solid var(--card-border);
  text-align: center;
}

.external-feature .eyebrow {
  margin-bottom: 10px;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: #7b4f2b;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gallery-access {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr);
  gap: 24px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.gallery-access .contact-form {
  align-content: start;
}

.gallery-access .contact-form label {
  text-transform: none;
}

.gallery-access .contact-form input {
  width: 100%;
  border: 1px solid rgba(18, 18, 18, 0.2);
  background: #f6f3f1;
  padding: 12px 14px;
  color: var(--text-dark);
}

.gallery-access .contact-form button {
  justify-self: stretch;
  min-width: 0;
  border: 1px solid var(--button-border);
  background: var(--text-dark);
  color: #fff;
  padding: 12px 18px;
}

.form-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.6;
}

.gallery-types {
  display: grid;
  gap: 12px;
}

.gallery-types span {
  padding: 20px;
  border: 1px solid var(--card-border);
  background: #fff;
  color: var(--text-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  text-align: center;
}

.back-home {
  margin: 34px 0 0;
  text-align: center;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-grid blockquote {
  margin: 0;
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--card-border);
  color: var(--text-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 1.1;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.04);
}

.contact-page {
  max-width: 900px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.contact-form {
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.04);
}

.contact-card {
  padding: 30px 24px;
}

.contact-card p {
  margin: 0 0 22px;
  color: var(--text-soft);
  line-height: 1.7;
}

.contact-card strong {
  color: var(--text-dark);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 18, 18, 0.2);
  background: #f6f3f1;
  padding: 12px 14px;
  color: var(--text-dark);
}

.contact-form button {
  justify-self: start;
  min-width: 130px;
  border: 1px solid var(--button-border);
  background: transparent;
  color: var(--text-dark);
  padding: 12px 18px;
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 18px 16px;
  }

  .brand-name {
    font-size: 2rem;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .story-grid,
  .portfolio-grid,
  .portfolio-category-grid,
  .photo-gallery,
  .film-gallery,
  .testimonial-grid,
  .contact-layout,
  .gallery-access {
    grid-template-columns: 1fr;
  }

  .photo-gallery figure:nth-child(3n + 1) {
    grid-row: auto;
  }

  .photo-gallery figure:nth-child(3n + 1) img {
    min-height: 250px;
  }

  .story-card--featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px 18px;
  }

  .cookie-actions {
    width: 100%;
  }

  .btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .main-nav {
    gap: 6px;
  }

  .main-nav a,
  .divider {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero-section {
    min-height: 100vh;
  }

  .cookie-banner p {
    font-size: 0.8rem;
  }

  .content-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .slide-arrow {
    width: 42px;
    height: 62px;
    font-size: 2.8rem;
  }

  .slide-toggle {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}
