:root {
  --ink: #0e0b0a;
  --ivory: #efe6dc;
  --muted: rgba(239, 230, 220, 0.62);
  --faint: rgba(239, 230, 220, 0.4);
  --copper: #c9a08a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --slide-ms: 1600ms;
  --radius: 18px;
  --ar: 1228 / 1600; /* overwritten by slider.js from the first photo */
}

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

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
}
body {
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ---------- One-screen layout: copy | photo | side ---------- */

.stage {
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(24px, 6vh, 64px) var(--gutter);
}

/* ---------- Photo frame + slider ---------- */

.frame {
  height: calc(100svh - 2 * clamp(24px, 6vh, 64px));
  max-height: 880px;
  aspect-ratio: var(--ar);
  max-width: 46vw;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  opacity: 0;
  animation: fade 1.8s 0.2s ease forwards;
}
.frame::after {
  /* soft vignette keeps the edges quiet */
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 90px rgba(14, 11, 10, 0.6);
  pointer-events: none;
}

.track {
  display: flex;
  height: 100%;
  transition: transform var(--slide-ms) cubic-bezier(0.65, 0, 0.25, 1);
  will-change: transform;
}
.track.no-anim { transition: none; }

.slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: breathe 14s ease-in-out infinite alternate;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes breathe {
  from { transform: scale(1.02); }
  to   { transform: scale(1.08); }
}

/* ---------- Copy ---------- */

.copy {
  justify-self: end;
  max-width: 400px;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.6s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.eyebrow {
  font: 500 11px/1.4 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 24px;
}
.eyebrow span { color: var(--muted); }

.tease {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.tease em { font-style: italic; color: var(--copper); }

.lede {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 8px 8px 8px 24px;
  font: inherit;
  color: var(--ivory);
  background: none;
  border: 1px solid rgba(239, 230, 220, 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.4s, background 0.4s;
}
.cta-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 0.4s;
}
.cta-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--ivory);
  transition: background 0.4s, transform 0.4s;
}
.cta:hover, .cta:focus-visible {
  border-color: var(--copper);
  background: rgba(201, 160, 138, 0.08);
  outline: none;
}
.cta:hover .cta-label, .cta:focus-visible .cta-label { color: var(--copper); }
.cta:hover .cta-icon, .cta:focus-visible .cta-icon { background: var(--copper); transform: translateX(3px); }

/* ---------- Contact dialog ---------- */

.contact {
  margin: auto;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: clamp(28px, 5vw, 44px);
  color: var(--ivory);
  background: #17120f;
  border: 1px solid rgba(239, 230, 220, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.contact::backdrop {
  background: rgba(14, 11, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.contact[open] { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }

.close {
  position: absolute;
  top: 16px; right: 16px;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.close:hover, .close:focus-visible { color: var(--ivory); background: rgba(239, 230, 220, 0.06); outline: none; }

.contact-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.1;
  margin-bottom: 28px;
}
.contact-title em { font-style: italic; color: var(--copper); }

.field { display: block; margin-bottom: 18px; }
.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: 300 15px/1.5 var(--sans);
  color: var(--ivory);
  background: rgba(239, 230, 220, 0.04);
  border: 1px solid rgba(239, 230, 220, 0.14);
  border-radius: 10px;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.field textarea::placeholder { color: rgba(239, 230, 220, 0.3); font-style: italic; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: rgba(239, 230, 220, 0.06);
}

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.privacy {
  margin-top: 22px;
  font-size: 12px;
  text-align: center;
  color: var(--faint);
}
.send {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 15px 28px;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ivory);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
}
.send:hover, .send:focus-visible { background: var(--copper); outline: none; }
.send:disabled { opacity: 0.5; cursor: wait; }

.status { min-height: 1.4em; margin-top: 16px; font-size: 13px; color: var(--muted); }
.status:empty { display: none; }
.status[data-tone="ok"] { color: var(--copper); }
.status[data-tone="error"] { color: #e3a18f; }

.contact-form.is-sent .field,
.contact-form.is-sent .send,
.contact-form.is-sent .privacy { display: none; }
.contact-form.is-sent .status { font-family: var(--serif); font-size: 22px; font-style: italic; }

/* ---------- Side column ---------- */

.side {
  align-self: end;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  animation: fade 1.6s 0.9s ease forwards;
}
.note {
  font-size: 10px;
  line-height: 2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}

.dots { display: flex; gap: 10px; }
.dots i {
  width: 22px;
  height: 1px;
  background: rgba(239, 230, 220, 0.25);
  overflow: hidden;
  position: relative;
}
.dots i.on::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ivory);
  transform-origin: left;
  animation: fill var(--interval, 5200ms) linear forwards;
}

/* ---------- Language switch ---------- */

.lang {
  position: fixed;
  top: clamp(16px, 3vh, 28px);
  right: var(--gutter);
  z-index: 2;
  display: flex;
  gap: 4px;
}
.lang a {
  padding: 6px 10px;
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.24em;
  color: var(--faint);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}
.lang a:hover, .lang a:focus-visible { color: var(--ivory); outline: none; }
.lang a[aria-current="page"] {
  color: var(--ivory);
  background: rgba(239, 230, 220, 0.08);
}

/* ---------- Grain ---------- */

.grain {
  position: fixed; inset: -50%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
  pointer-events: none;
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Tablet / phone: stack, photo centred ---------- */

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    gap: 22px;
    padding: 56px var(--gutter) 24px;
  }
  .frame {
    grid-row: 1;
    height: 100%;
    max-width: 100%;
  }
  .copy {
    grid-row: 2;
    justify-self: stretch;
    max-width: none;
    text-align: center;
  }
  .eyebrow { margin-bottom: 12px; }
  .tease { font-size: clamp(24px, 6.4vw, 34px); }
  .lede { display: none; }
  .cta { margin-top: 18px; }
  .cta-icon { width: 36px; height: 36px; }
  .frame { --radius: 14px; }
  .lang { top: 14px; }
  .side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide img, .grain { animation: none; }
  .track { transition-duration: 1ms; }
  .copy, .frame, .side { animation-duration: 1ms; }
}
