/* Invinci Media — visual system
   Tokens and pairing rules per Brand Guidelines v2 / website build prompt.
   Cormorant Garamond only. No gradients, no metallic effects, no decorative shadows. */

:root {
  --ivory: #FAF7F2;           /* primary background, 45–60% of surface */
  --creme-brulee: #A78873;    /* section moments, 20–30% */
  --moss-green: #3E483D;      /* headings, nav, wordmark */
  --forestry: #2F3E2E;        /* buttons, CTAs, dark panels */
  --bistre: #4B3A2F;          /* body text */
  --black-raspberry: #1A1715; /* deepest neutral, footer/legal */
  --moss-gardens: #758950;    /* accent only, 1–5%: dividers, selected words */

  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;

  /* Type scale */
  --step-display: clamp(3.375rem, 1.9rem + 7vw, 6rem);      /* 54 → 96 */
  --step-h1: clamp(2.375rem, 1.9rem + 2.4vw, 3.5rem);       /* 38 → 56 */
  --step-h2: clamp(1.875rem, 1.55rem + 1.6vw, 2.5rem);      /* 30 → 40 */
  --step-h3: clamp(1.3125rem, 1.2rem + 0.55vw, 1.5rem);     /* 21 → 24 */
  --step-body: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);   /* 17 → 19 */
  --step-label: 0.8125rem;                                  /* 13 */

  --hairline: 1px solid rgba(75, 58, 47, 0.18);
  --space-section: clamp(4.5rem, 10vw, 8.5rem);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-serif);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--bistre);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-weight: 400;
  color: var(--moss-green);
}

::selection {
  background: var(--moss-green);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--moss-gardens);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forestry);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip-link:focus-visible {
  left: 0;
}

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 3rem);
}

/* Labels: the only letter-spaced uppercase on the site */
.label {
  display: block;
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss-green);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--moss-green);
  text-decoration: none;
  min-width: 96px; /* logo rule: single-line wordmark never narrower than 96px */
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--moss-green);
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

/* Menu button: hidden on desktop, shown on small screens (index page only) */
.menu-toggle {
  display: none;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--moss-green);
  background: none;
  border: 0;
  padding: 0.25rem 0;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-collapsible .menu-toggle {
    display: block;
  }

  /* Dropdown panel: full-width sheet under the bar, same ivory surface */
  .nav-collapsible .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--ivory);
    border-bottom: var(--hairline);
    padding: 1.5rem clamp(1.5rem, 5vw, 3rem) 1.75rem;
  }

  .nav-collapsible.nav-open .nav-links {
    display: flex;
  }

  .nav-collapsible .nav-links a {
    font-size: 1.1875rem;
  }
}

/* ---------- Sections (shared rhythm) ---------- */

.section {
  padding-block: var(--space-section);
}

.section + .section-divided {
  border-top: var(--hairline);
}

.section-head {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head h2 {
  font-size: var(--step-h2);
  margin-top: 0.9rem;
  max-width: 22ch;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(5rem, 13vh, 9.5rem) clamp(4.5rem, 11vh, 8.5rem);
}

.hero-lockup {
  font-size: var(--step-display);
  font-weight: 300;
  line-height: 0.98;
  color: var(--moss-green);
  letter-spacing: 0.005em;
  margin-top: 1.6rem;
}

.hero-lockup span {
  display: block; /* stacked lockup: Invinci above Media */
}

.hero-line {
  font-size: var(--step-h2);
  font-weight: 400;
  color: var(--moss-green);
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.hero-line em {
  font-style: italic;
  color: var(--moss-gardens); /* accent budget: one selected word */
}

.hero-sub {
  max-width: 44ch;
  margin-top: 1.1rem;
  font-size: calc(var(--step-body) * 1.06);
}

.hero-cta {
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--forestry);
  color: var(--ivory);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 1rem 2.1rem;
  border: 1px solid var(--forestry);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.btn:hover {
  background: var(--moss-green);
}

/* Inverted button for use on the Forestry panel only —
   a forestry-on-forestry button would vanish; ivory keeps the pairing rules intact. */
.btn-inverse {
  background: var(--ivory);
  color: var(--forestry);
  border-color: var(--ivory);
}

.btn-inverse:hover {
  background: rgba(250, 247, 242, 0.88);
  color: var(--forestry);
}

/* ---------- Point of view ---------- */

.pov p {
  font-size: var(--step-h3);
  font-weight: 400;
  line-height: 1.5;
  color: var(--bistre);
  max-width: 56ch;
}

.pov p + p {
  margin-top: 1.4rem;
}

.pov .pov-close {
  color: var(--moss-green);
  font-style: italic;
}

/* ---------- Selected representation ---------- */

.creator-featured {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

/* The Maison Arch — the single signature motif on the page.
   Ratio ≈ 0.5 width-to-height, fine even stroke, smooth semicircular top. */
.arch-frame {
  aspect-ratio: 1 / 2;
  border: 1.5px solid var(--moss-green);
  border-radius: 50% 50% 0 0 / 25% 25% 0 0;
  padding: 0.7rem;
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  border-radius: 50% 50% 0 0 / 25% 25% 0 0;
}

.creator-info h3 {
  font-size: var(--step-h1);
  font-weight: 400;
  line-height: 1.05;
}

.creator-positioning {
  font-size: var(--step-h3);
  color: var(--bistre);
  max-width: 34ch;
  margin-top: 0.9rem;
}

.creator-handle {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--moss-green);
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.creator-note {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--bistre);
}

@media (max-width: 640px) {
  .creator-featured {
    grid-template-columns: 1fr;
  }
  .arch-frame {
    max-width: 260px;
  }
}

/* ---------- For brands (Crème Brûlée moment) ----------
   Contrast discipline: everything on crème is display-scale.
   Ivory on crème = 3.1:1 (AA large text only) — display statements.
   Forestry on crème = 3.5:1 (AA large text only) — the offer list, ≥26px.
   Black Raspberry on crème = 5.4:1 — the only small text allowed here. */

.for-brands {
  background: var(--creme-brulee);
}

.for-brands .label {
  color: var(--black-raspberry);
}

.for-brands-display {
  font-size: var(--step-h1);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ivory);
  max-width: 18ch;
  margin-top: 0.9rem;
}

.offer-list {
  list-style: none;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  max-width: 44rem;
}

.offer-list li {
  font-size: clamp(1.625rem, 1.3rem + 1.7vw, 2.125rem);
  font-weight: 400;
  color: var(--forestry);
  padding-block: 1.1rem;
  border-top: 1px solid rgba(47, 62, 46, 0.35);
}

.offer-list li:last-child {
  border-bottom: 1px solid rgba(47, 62, 46, 0.35);
}

.for-brands-sub {
  margin-top: 2.25rem;
  max-width: 52ch;
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--black-raspberry);
}

/* ---------- Method ---------- */

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.method-step {
  border-top: 2px solid var(--moss-green);
  padding-top: 1.4rem;
}

.method-step .step-no {
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--moss-green);
}

.method-step h3 {
  font-size: var(--step-h3);
  font-weight: 500;
  color: var(--forestry);
  margin-top: 0.7rem;
}

.method-step p {
  margin-top: 0.7rem;
  font-size: 1.0625rem;
}

@media (max-width: 900px) {
  .method-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Proof ---------- */

.proof {
  text-align: center;
}

.proof-line {
  font-size: clamp(1.3125rem, 1.15rem + 0.9vw, 1.625rem);
  font-style: italic;
  font-weight: 400;
  color: var(--bistre);
  max-width: 38ch;
  margin: 1.6rem auto 0;
}

.proof .rule {
  width: 72px;
  height: 1px;
  background: var(--moss-gardens);
  border: 0;
  margin: 0 auto;
}

.proof .rule + .label {
  margin-top: 1.6rem;
}

.proof-foot {
  margin-top: 1.6rem;
}

/* ---------- Enquire (Forestry panel) ---------- */

.enquire {
  background: var(--forestry);
  color: var(--ivory);
}

.enquire .label {
  color: var(--ivory);
}

.enquire h2 {
  font-size: var(--step-h2);
  color: var(--ivory);
  max-width: 24ch;
  margin-top: 0.9rem;
}

.enquire-sub {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: rgba(250, 247, 242, 0.88);
}

/* Visually hidden (still focusable/announceable) — used by the audience radios */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.enquire-panel {
  max-width: 44rem;
}

/* Audience switch: a segmented control, CSS-only via the radio inputs above.
   The active segment fills with ivory so the chosen path is unmistakable. */
.audience-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(2.25rem, 5vw, 3rem);
  max-width: 32rem;
  border: 1px solid rgba(250, 247, 242, 0.4);
}

.audience-option {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  color: rgba(250, 247, 242, 0.72);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.audience-option + .audience-option {
  border-left: 1px solid rgba(250, 247, 242, 0.4);
}

.audience-option-title {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
}

.audience-option-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Active segment: filled ivory, forestry text */
#aud-creator:checked ~ .audience-switch label[for="aud-creator"],
#aud-brand:checked ~ .audience-switch label[for="aud-brand"] {
  background: var(--ivory);
  color: var(--forestry);
}

#aud-creator:focus-visible ~ .audience-switch label[for="aud-creator"],
#aud-brand:focus-visible ~ .audience-switch label[for="aud-brand"] {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
}

/* Per-audience intro line, switched with the segments */
.audience-intro {
  margin-top: 1.6rem;
  max-width: 48ch;
  font-size: 1.0625rem;
  color: rgba(250, 247, 242, 0.9);
}

/* Show one intro + one form at a time */
#aud-creator:checked ~ .intro-brand,
#aud-brand:checked ~ .intro-creator,
#aud-creator:checked ~ .form-brand,
#aud-brand:checked ~ .form-creator {
  display: none;
}

.enquire-form {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ivory);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(250, 247, 242, 0.45);
  padding: 0.5rem 0.1rem;
  border-radius: 0;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ivory);
  outline: none;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 4px;
}

.field textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(250, 247, 242, 0.5);
}

.field input[type="file"] {
  border-bottom: 0;
  padding-left: 0;
}

.field input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(250, 247, 242, 0.55);
  padding: 0.5rem 1.1rem;
  margin-right: 1rem;
  cursor: pointer;
}

.field-hint {
  font-size: 0.875rem;
  color: rgba(250, 247, 242, 0.72);
}

.enquire-actions {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.enquire-alt {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: rgba(250, 247, 242, 0.88);
}

.enquire-alt a {
  color: var(--ivory);
  text-underline-offset: 0.3em;
}

@media (max-width: 640px) {
  .enquire-form {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.footer {
  background: var(--black-raspberry);
  color: var(--creme-brulee);
  padding-block: clamp(3rem, 7vw, 4.5rem) 2.25rem;
}

.footer .wordmark {
  color: var(--ivory);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  font-size: 1rem;
}

.footer-links a {
  color: var(--creme-brulee);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.footer-meta {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 242, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* Quiet endorsement — deliberately separate from the wordmark, low emphasis */
.endorsement {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Legal page ---------- */

.legal {
  max-width: 44rem;
}

.legal h1 {
  font-size: var(--step-h2);
  margin-top: 0.9rem;
}

.legal h2 {
  font-size: var(--step-h3);
  font-weight: 500;
  color: var(--forestry);
  margin-top: 2.5rem;
}

.legal p {
  margin-top: 0.9rem;
}

.legal .updated {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
}

/* ---------- Reveal motion (subtle, slow; disabled under reduced motion) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
