:root {
  --gold: #9a7348;
  --gold-light: #b8956e;
  --gold-dark: #6b5232;
  --gold-glow: rgba(154, 115, 72, 0.22);
  --champagne: #e0d6c8;
  --beige: #ebe4d8;
  --bg: #f0ebe3;
  --bg-warm: #e8e2d8;
  --white: #faf7f2;
  --text: #1c1916;
  --text-soft: #4a433c;
  --text-muted: #6b635a;
  --line: rgba(107, 82, 50, 0.45);
  --line-soft: rgba(107, 82, 50, 0.28);
  --error: #8b4a4a;
  --shadow-soft: 0 24px 64px rgba(28, 25, 22, 0.1);
  --shadow-gold: 0 12px 32px var(--gold-glow);
  --radius: 2px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.02em;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
}

.ambient-glow--top {
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--champagne) 0%, transparent 70%);
}

.ambient-glow--bottom {
  bottom: -100px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(212, 188, 150, 0.35) 0%, transparent 70%);
}

/* Ornament */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px auto;
  width: min(200px, 60%);
}

.ornament::before,
.ornament::after,
.ornament span {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  flex: 1;
}

.ornament span {
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  background: transparent;
}

.ornament--sm {
  margin: 0 auto 16px;
  width: 80px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-soft);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-dark);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.hero-cta:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-soft);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Panel */
.panel {
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  padding: 32px 24px;
}

/* Steps */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.step-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  font-weight: 500;
  color: var(--gold-dark);
  min-width: 20px;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.optional {
  font-weight: 300;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.input {
  width: 100%;
  padding: 14px 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  outline: none;
  transition: border-color 0.35s var(--ease);
}

.input:focus {
  border-bottom-color: var(--gold-dark);
}

.input::placeholder {
  color: var(--text-muted);
}

/* Dropzone */
.dropzone {
  display: block;
  cursor: pointer;
  border: 1px dashed var(--line);
  padding: 40px 20px;
  text-align: center;
  background: var(--beige);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--gold);
  background: var(--beige);
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dropzone-line {
  width: 32px;
  height: 1px;
  background: var(--gold-light);
}

.dropzone-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

.dropzone-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* Preview */
.preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.preview:empty {
  display: none;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--champagne);
  animation: fadeUp 0.5s var(--ease) both;
}

.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 6px 6px;
  background: linear-gradient(transparent, rgba(42, 38, 34, 0.55));
  color: var(--white);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.preview-item .remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  background: rgba(42, 38, 34, 0.45);
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s;
}

.preview-item .remove:hover {
  background: var(--error);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 18px 28px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border: none;
  cursor: pointer;
  transition: background-position 0.5s var(--ease), box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover:not(:disabled) {
  background-position: 100% 50%;
  box-shadow: 0 16px 40px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  margin-top: 8px;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184, 149, 110, 0.06);
}

.btn-text {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.btn-text:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--line);
}

/* Progress */
.progress {
  padding: 8px 0 4px;
  animation: fadeIn 0.5s var(--ease) both;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.progress-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.progress-percent {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gold-dark);
}

.progress-track {
  height: 3px;
  background: var(--champagne);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transition: width 0.35s var(--ease);
}

.progress-text {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

/* Feedback */
.feedback {
  text-align: center;
  padding: 24px 0 8px;
  animation: fadeUp 0.6s var(--ease) both;
}

.feedback-ornament {
  width: 40px;
  height: 1px;
  background: var(--gold-light);
  margin: 0 auto 24px;
}

.feedback-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.feedback-text {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 340px;
  margin: 0 auto 20px;
}

.feedback--error .feedback-text {
  color: var(--error);
}

/* Gallery */
.gallery-section {
  max-width: 960px;
}

.gallery-state {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  padding: 40px 16px;
  letter-spacing: 0.04em;
}

.gallery-state--error {
  color: var(--error);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.gallery-grid:empty {
  display: none;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border: none;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--champagne);
  transition: opacity 0.35s var(--ease);
  animation: fadeUp 0.5s var(--ease) both;
}

.gallery-item:hover {
  opacity: 0.92;
}

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

.gallery-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(42, 38, 34, 0.35);
}

.gallery-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}

.gallery-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(42, 38, 34, 0.6));
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
}

.gallery-load-more {
  display: block;
  margin: 28px auto 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 23, 20, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s var(--ease) both;
}

.lightbox-content {
  max-width: min(92vw, 880px);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 78vh;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
}

.lightbox-close span,
.lightbox-close span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.lightbox-close span {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close span::before {
  content: '';
  transform: rotate(90deg);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

body.lightbox-open {
  overflow: hidden;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
}

.footer-names {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-note {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 380px) {
  .hero { padding-top: 40px; }
  .panel { padding: 24px 18px; }
  .preview { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 540px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .steps { flex-direction: row; justify-content: center; gap: 32px; }
  .steps li { flex-direction: column; text-align: center; gap: 8px; max-width: 140px; }
}

@media (min-width: 768px) {
  .hero { padding-top: 72px; padding-bottom: 64px; }
  .section { padding-bottom: 80px; }
  .panel { padding: 40px 36px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
