/* ============================================================
   ADORN · content. music. memories
   Palette and type sourced from the brand deck:
   brown #4A2E26 · powder blue #DEE4EC · warm ivory
   Display: Perandory v2 Condensed (embedded brand subsets,
   lowercase input renders as caps) with Italiana fallback.
   Body: Alice. Accents: Lora italic.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Perandory';
  src: url('assets/fonts/perandory-1.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0041, U+0064, U+006E-006F, U+0072;
}
@font-face {
  font-family: 'Perandory';
  src: url('assets/fonts/perandory-2.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020, U+0026, U+0041, U+0061-0062, U+0064-0066, U+0068, U+006E-006F, U+0072, U+0074-0075;
}
@font-face {
  font-family: 'Perandory';
  src: url('assets/fonts/perandory-3.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020, U+0061, U+0063, U+0065, U+0067, U+006B, U+006E-0070, U+0073-0074;
}
@font-face {
  font-family: 'Perandory';
  src: url('assets/fonts/perandory-4.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020, U+0041, U+0061, U+0063-0065, U+0067, U+0069, U+006B, U+006D-0070, U+0073, U+0075;
}
@font-face {
  font-family: 'Perandory';
  src: url('assets/fonts/perandory-5.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020, U+0063, U+0065, U+0068, U+006F-0070, U+0072-0074;
}
@font-face {
  font-family: 'Perandory';
  src: url('assets/fonts/perandory-6.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020, U+0061, U+0063, U+006E-006F, U+0073-0075;
}
@font-face {
  font-family: 'Italiana';
  src: url('assets/fonts/italiana-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Alice';
  src: url('assets/fonts/alice-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('assets/fonts/lora-italic-latin.woff2') format('woff2');
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --brown: #4A2E26;
  --brown-deep: #3A231C;
  --brown-soft: #6B4F44;
  --blue: #DEE4EC;
  --blue-line: rgba(74, 46, 38, 0.25);
  --ivory: #F6F2EB;
  --ivory-warm: #EFE9DF;
  --ink: #3E2A21;
  --ivory-text: #F1EAE0;
  --ivory-muted: rgba(241, 234, 224, 0.72);
  --display: 'Perandory', 'Italiana', 'Times New Roman', serif;
  --serif: 'Alice', 'Georgia', serif;
  --accent: 'Lora', 'Georgia', serif;
  --nav-h: 76px;
  --pad: clamp(20px, 4vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--ivory);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { scroll-margin-top: var(--nav-h); }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }
.container.narrow { max-width: 760px; }

/* ---------- Type helpers ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
/* Heading face for words the Perandory brand subset cannot render (needs w, l, y).
   Italiana, set in caps, sits alongside the Perandory headings. */
.display-alt {
  font-family: 'Italiana', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: 0.07em;
  line-height: 1.08;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: inherit;
  opacity: 0.85;
}
.section-heading {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  text-align: center;
  color: var(--brown);
}
.section-sub {
  text-align: center;
  margin-top: 14px;
  color: var(--brown-soft);
}
.text-link {
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.25s ease;
}
.text-link:hover { opacity: 0.65; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  /* leading indent mirrors the trailing letter-space so the label sits optically centred */
  text-indent: 0.22em;
  font-size: 0.72rem;
  line-height: 1;
  padding: 14px 34px 12px;
  border: 1px solid var(--brown);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-solid { background: var(--brown); color: var(--ivory-text); }
.btn-solid:hover { background: transparent; color: var(--brown); }
.btn-ghost { background: transparent; color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: var(--ivory-text); }
.btn-small { padding: 11px 22px 9px; }
button.btn { cursor: pointer; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--pad);
}
.nav-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  color: var(--brown);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--brown);
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  border-bottom: 1px solid var(--brown);
  transition: right 0.3s ease;
}
.nav-links a:hover::after { right: 0; }
/* a.nav-cta outranks the `.nav-links a` underline rule, whose padding-bottom
   otherwise wins the cascade and sinks the label */
a.nav-cta {
  border: 1px solid var(--brown);
  display: inline-flex;
  align-items: center;
  height: 36px;
  /* Alice centres its baseline in the line box, leaving caps ~3px high; the
     top-padding bias drops the label to the optical centre */
  padding: 6px 20px 0;
  line-height: 1;
  text-indent: 0.24em;
}
a.nav-cta::after { display: none; }
a.nav-cta:hover { background: var(--brown); color: var(--ivory-text) !important; }
.nav.scrolled {
  background: rgba(246, 242, 235, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(74, 46, 38, 0.12);
}
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 60;
  position: relative;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--brown);
  margin: 4px auto;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
body.menu-open .nav-burger span:first-child { transform: translateY(2.75px) rotate(45deg); background: var(--ivory-text); }
body.menu-open .nav-burger span:last-child { transform: translateY(-2.75px) rotate(-45deg); background: var(--ivory-text); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-overlay ul { text-align: center; display: grid; gap: 22px; }
.menu-overlay a {
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 1rem;
  color: var(--ivory-text);
}
.menu-tag { font-family: var(--accent); font-style: italic; color: var(--ivory-muted); }
body.menu-open { overflow: hidden; }
/* lift the nav above the overlay (z 55) so the burger X stays visible and tappable */
body.menu-open .nav {
  z-index: 60;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
body.menu-open .nav-brand { color: var(--ivory-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  animation: hero-settle 2.8s ease-out both;
}
@keyframes hero-settle {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(246,242,235,0.75) 0%, rgba(246,242,235,0) 16%),
    linear-gradient(to bottom, rgba(246,242,235,0) 45%, rgba(246,242,235,0.55) 78%, rgba(246,242,235,0.9) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad) clamp(40px, 7vh, 84px);
  color: var(--brown);
}
.hero-wordmark {
  font-size: clamp(4.6rem, 17vw, 13rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  margin-top: 10px;
}
.hero-tagline {
  font-family: var(--accent);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.12em;
  margin-top: 6px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

/* ---------- Intro ---------- */
.intro { padding: clamp(90px, 13vw, 160px) 0; text-align: center; }
.statement {
  font-family: var(--accent);
  font-style: italic;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.5;
  color: var(--brown);
  margin-top: 26px;
}
.cred-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 0;
  margin-top: 56px;
}
.cred-row li {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--brown-soft);
  padding: 0 28px;
}
.cred-row li + li { border-left: 1px solid var(--blue-line); }

/* ---------- Brown sections ---------- */
.section-brown {
  background: var(--brown);
  color: var(--ivory-text);
}

/* ---------- About ---------- */
.about { padding: clamp(90px, 12vw, 150px) 0; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-text h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: var(--ivory-text);
  margin-bottom: 34px;
  max-width: 14em;
}
.about-text p { margin-bottom: 22px; color: var(--ivory-muted); }
.about-text p:last-child { margin-bottom: 0; }
.about-close {
  font-family: var(--accent);
  font-style: italic;
  color: var(--ivory-text) !important;
  font-size: 1.12rem;
}
.about-figure { position: relative; }
.about-figure img { width: 100%; height: auto; }
.about-figure::after {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(241, 234, 224, 0.35);
  pointer-events: none;
}

/* ---------- Offering ---------- */
.offering { padding: clamp(90px, 12vw, 150px) 0; }
.group-label {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align: center;
  color: var(--brown);
  margin-top: clamp(56px, 8vw, 96px);
}
.offering-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 48px);
}
.offer {
  border-top: 1px solid var(--blue-line);
  padding-top: 26px;
}
.offer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--brown);
}
.offer p { color: var(--brown-soft); font-size: 0.98rem; }
.group-note {
  font-family: var(--accent);
  font-style: italic;
  text-align: center;
  color: var(--brown-soft);
  font-size: 0.95rem;
  margin-top: clamp(28px, 4vw, 40px);
}

/* ---------- Gallery ---------- */
.gallery { padding: 0 0 clamp(90px, 12vw, 150px); }
.gallery-box {
  margin-top: clamp(40px, 5vw, 64px);
  max-height: min(78vh, 880px);
  overflow-y: auto;
  padding: clamp(12px, 1.6vw, 20px);
  border: 1px solid var(--blue-line);
  background: var(--ivory-warm);
  scrollbar-width: thin;
  scrollbar-color: var(--brown-soft) transparent;
  -webkit-overflow-scrolling: touch;
}
.gallery-box::-webkit-scrollbar { width: 8px; }
.gallery-box::-webkit-scrollbar-thumb { background: var(--brown-soft); border-radius: 999px; }
.gallery-box::-webkit-scrollbar-track { background: transparent; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}
.gallery-item {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0d0d0d;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0d0d0d;
}

/* ---------- Blue sections ---------- */
.section-blue { background: var(--blue); }

/* ---------- Process ---------- */
/* No top padding: the gap above the heading comes from the gallery's bottom
   padding, matching the single-gap rhythm between the other ivory sections. */
.process { padding: 0 0 clamp(90px, 12vw, 150px); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(48px, 6vw, 80px);
}
.step { border-top: 1px solid var(--blue-line); padding-top: 26px; }
.step-num {
  font-family: 'Italiana', serif;
  font-size: 2.6rem;
  color: var(--brown);
  line-height: 1;
}
.step h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 400;
  color: var(--brown);
  margin: 16px 0 10px;
}
.step p { font-size: 0.92rem; color: var(--brown-soft); }
.fine-print {
  margin-top: clamp(64px, 8vw, 96px);
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brown-soft);
  opacity: 0.85;
}

/* ---------- Contact (powder blue, brown text) ---------- */
.contact { padding: clamp(90px, 12vw, 150px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--brown);
}
.contact-lede {
  font-family: var(--accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--brown-soft);
  margin-top: 20px;
  max-width: 20em;
}
.contact-details { margin-top: 44px; display: grid; gap: 12px; justify-items: start; }
.contact-line {
  font-family: 'Italiana', serif;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: 0.05em;
  color: var(--brown);
  border-bottom: 1px solid var(--blue-line);
  padding-bottom: 3px;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.contact-line:hover { border-color: var(--brown); opacity: 0.85; }
.contact-note { font-size: 0.9rem; color: var(--brown-soft); margin-top: 18px; }

.enquiry { display: grid; gap: 26px; }
.hidden-field { display: none; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.field { display: grid; gap: 8px; }
.field label, .chips legend {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--brown-soft);
}
.field input, .field textarea {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--blue-line);
  padding: 8px 2px 10px;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(74, 46, 38, 0.4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--brown);
}
.field textarea { resize: vertical; min-height: 96px; }
.chips { border: 0; }
.chips legend { margin-bottom: 14px; }
.chips { display: block; }
.chip { display: inline-block; margin: 0 10px 10px 0; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--brown-soft);
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.chip:hover span { border-color: var(--brown); color: var(--brown); }
.chip input:checked + span {
  background: var(--brown);
  color: var(--ivory-text);
  border-color: var(--brown);
}
.chip input:focus-visible + span { outline: 2px solid var(--brown); outline-offset: 2px; }
.enquiry .btn { justify-self: start; margin-top: 6px; }
.form-status {
  font-family: var(--accent);
  font-style: italic;
  color: var(--brown);
  min-height: 1.4em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--brown-deep);
  color: var(--ivory-text);
  text-align: center;
  padding: clamp(70px, 9vw, 110px) var(--pad) 44px;
}
.footer-wordmark { font-size: clamp(3.4rem, 9vw, 6.5rem); letter-spacing: 0.07em; }
.footer-tagline {
  font-family: var(--accent);
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--ivory-muted);
  margin-top: 10px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 44px;
}
.footer-links a {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--ivory-muted);
  transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--ivory-text); }
.footer-legal {
  margin-top: 52px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(241, 234, 224, 0.45);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* Capture mode: ?static=1 (design screenshots, no animation) */
html.static .reveal { opacity: 1; transform: none; transition: none; }
html.static .hero { min-height: 900px; }
html.static .hero-media img { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 480px; margin-inline: auto 18px; }
  .offering-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-brand { position: static; transform: none; }
  .nav-inner { justify-content: space-between; }
  .field-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .cred-row li { border-left: 0 !important; width: 100%; }
}
