:root {
  --sand: #f7f0de;
  --clay: #eac9ad;
  --mist: #f8f3ef;
  --leaf: #2f7a4e;
  --tomato: #d34b2d;
  --gold: #d69f25;
  --sky: #3f7ae0;
  --coral: #de6f67;
  --violet: #8b6ac8;
  --ink: #2b241d;
  --paper: rgba(255, 252, 246, 0.82);
  --shadow: 0 22px 60px rgba(65, 39, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(222, 111, 103, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(63, 122, 224, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(47, 122, 78, 0.18), transparent 30%),
    linear-gradient(180deg, #f8f1e4 0%, #f2ead7 44%, #f7f4ec 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.35;
}

.page-shell {
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.hero,
.contact-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2rem;
}

.hero-copy,
.contact-hero {
  max-width: 46rem;
}

.site-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(43, 36, 29, 0.62);
}

h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero-line,
.contact-intro {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.hero-line-accent {
  max-width: 28rem;
  color: var(--leaf);
}

.hero-nav {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-nav a,
.back-link,
.contact-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(43, 36, 29, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  background: rgba(255, 251, 244, 0.72);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.hero-nav a:hover,
.back-link:hover,
.contact-call:hover {
  transform: translateY(-1px);
}

.home-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.line-field {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.line {
  width: fit-content;
  max-width: min(100%, 28rem);
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 1.35rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  line-height: 1.05;
  transform: rotate(var(--tilt, 0deg));
  animation: drift 9s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.line:nth-child(6n + 1) {
  color: var(--leaf);
}

.line:nth-child(6n + 2) {
  color: var(--tomato);
}

.line:nth-child(6n + 3) {
  color: var(--sky);
}

.line:nth-child(6n + 4) {
  color: var(--gold);
}

.line:nth-child(6n + 5) {
  color: var(--violet);
}

.line:nth-child(6n) {
  color: var(--ink);
}

.line:nth-child(4n + 1) {
  --tilt: -2.5deg;
}

.line:nth-child(4n + 2) {
  --tilt: 1.8deg;
}

.line:nth-child(4n + 3) {
  --tilt: -1.1deg;
}

.line:nth-child(5n + 1) {
  --delay: -1.5s;
}

.line:nth-child(5n + 2) {
  --delay: -3.5s;
}

.line:nth-child(5n + 3) {
  --delay: -2.3s;
}

.line:nth-child(5n + 4) {
  --delay: -4.2s;
}

.line:nth-child(12n + 1),
.line:nth-child(12n + 7) {
  grid-column: span 5;
}

.line:nth-child(12n + 2),
.line:nth-child(12n + 8) {
  grid-column: span 3;
}

.line:nth-child(12n + 3),
.line:nth-child(12n + 9) {
  grid-column: span 4;
}

.line:nth-child(12n + 4),
.line:nth-child(12n + 10) {
  grid-column: span 6;
}

.line:nth-child(12n + 5),
.line:nth-child(12n + 11) {
  grid-column: span 2;
}

.line:nth-child(12n + 6),
.line:nth-child(12n + 12) {
  grid-column: span 4;
}

.line-serif {
  font-family: "Fraunces", serif;
}

.line-sans {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.line-script {
  font-family: "Caveat", cursive;
}

.line-xl {
  font-size: clamp(2.9rem, 5.8vw, 5.7rem);
}

.line-lg {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

.line-md {
  font-size: clamp(1.35rem, 2.7vw, 2.25rem);
}

.line-sm {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
}

.next-step {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 0;
}

.contact-page {
  background:
    radial-gradient(circle at top right, rgba(63, 122, 224, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(47, 122, 78, 0.12), transparent 34%),
    linear-gradient(180deg, #faf5ec 0%, #f8f1e4 100%);
}

.photos-page {
  background:
    radial-gradient(circle at top left, rgba(214, 159, 37, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(47, 122, 78, 0.12), transparent 34%),
    linear-gradient(180deg, #faf4ea 0%, #f5efe4 100%);
}

.contact-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.photos-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.contact-card {
  min-height: 11rem;
  padding: 1.4rem;
  border-radius: 1.6rem;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: var(--shadow);
}

.contact-card-wide {
  grid-column: span 2;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field span {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(43, 36, 29, 0.6);
}

.form-field-full {
  grid-column: span 2;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(43, 36, 29, 0.12);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
}

.contact-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(47, 122, 78, 0.24);
  border-color: rgba(47, 122, 78, 0.32);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.consent-row input {
  width: auto;
  margin-top: 0.15rem;
}

.form-button {
  width: fit-content;
  min-height: 3.2rem;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--leaf), #245f3d);
  box-shadow: var(--shadow);
  cursor: pointer;
}

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

.form-note,
.privacy-copy {
  margin: 0;
  max-width: 50rem;
  font-size: 1rem;
  line-height: 1.55;
}

.text-link {
  color: var(--leaf);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.privacy-card,
.prose-card {
  display: grid;
  gap: 0.9rem;
}

.photo-placeholder {
  display: flex;
  align-items: flex-end;
  min-height: 18rem;
  padding: 1.4rem;
  border-radius: 1.8rem;
  background:
    linear-gradient(160deg, rgba(255, 252, 246, 0.92), rgba(241, 230, 210, 0.96)),
    linear-gradient(135deg, rgba(47, 122, 78, 0.15), rgba(63, 122, 224, 0.08));
  box-shadow: var(--shadow);
}

.photo-card {
  overflow: hidden;
  border-radius: 1.8rem;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: var(--shadow);
}

.photo-card img {
  display: block;
  width: 100%;
  height: clamp(18rem, 42vw, 28rem);
  object-fit: cover;
}

.photo-card figcaption {
  padding: 1rem 1.15rem 1.2rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.15;
}

.photo-card-wide {
  grid-column: span 2;
}

.photo-placeholder-wide {
  min-height: 24rem;
  grid-column: span 2;
}

.photo-note {
  margin: 0;
  max-width: 18rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.contact-label {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(43, 36, 29, 0.56);
}

.contact-value {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.06;
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -6px;
  }
}

@media (max-width: 960px) {
  .hero,
  .contact-hero {
    flex-direction: column;
  }

  .hero-nav {
    position: static;
  }

  .line-field {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .line:nth-child(12n + 1),
  .line:nth-child(12n + 7) {
    grid-column: span 4;
  }

  .line:nth-child(12n + 2),
  .line:nth-child(12n + 8) {
    grid-column: span 2;
  }

  .line:nth-child(12n + 3),
  .line:nth-child(12n + 9),
  .line:nth-child(12n + 4),
  .line:nth-child(12n + 10),
  .line:nth-child(12n + 6),
  .line:nth-child(12n + 12) {
    grid-column: span 3;
  }

  .line:nth-child(12n + 5),
  .line:nth-child(12n + 11) {
    grid-column: span 2;
  }

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

  .contact-card-wide {
    grid-column: span 1;
  }

  .photos-main {
    grid-template-columns: 1fr;
  }

  .photo-placeholder-wide {
    grid-column: span 1;
  }

  .photo-card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 0.85rem;
  }

  .line-field {
    grid-template-columns: 1fr;
  }

  .line,
  .line:nth-child(12n + 1),
  .line:nth-child(12n + 2),
  .line:nth-child(12n + 3),
  .line:nth-child(12n + 4),
  .line:nth-child(12n + 5),
  .line:nth-child(12n + 6),
  .line:nth-child(12n + 7),
  .line:nth-child(12n + 8),
  .line:nth-child(12n + 9),
  .line:nth-child(12n + 10),
  .line:nth-child(12n + 11),
  .line:nth-child(12n + 12) {
    grid-column: span 1;
    max-width: 100%;
  }

  .line {
    transform: none;
    animation-duration: 7s;
  }

  .contact-card {
    min-height: 8rem;
  }

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

  .form-field-full {
    grid-column: span 1;
  }
}
