/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* Metropolis Font Family */
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/metropolis/metropolis-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ── */
:root {
  /* Colours */
  --bg-primary: #F9F7F4;
  --bg-secondary: #F2EFE9;
  --bg-dark: #141412;
  --bg-dark-mid: #1E1E1C;
  --text-primary: #1C1C1A;
  --text-secondary: #5A5A56;
  --text-muted: #9A9A94;
  --text-inverse: #F9F7F4;
  --accent: #A8966E;
  --accent-light: #C4AE84;
  --accent-dark: #8A7A58;
  --border: #E0DBD0;
  --border-dark: #2E2E2A;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Metropolis', 'Inter', system-ui, -apple-system, sans-serif;

  /* Font Sizes — fluid scale */
  --fs-xs: 0.6875rem;
  /* 11px */
  --fs-sm: 0.8125rem;
  /* 13px */
  --fs-base: 1rem;
  /* 16px */
  --fs-md: 1.125rem;
  /* 18px */
  --fs-lg: 1.25rem;
  /* 20px */
  --fs-xl: 1.5rem;
  /* 24px */
  --fs-2xl: 2rem;
  /* 32px */
  --fs-3xl: 2.75rem;
  /* 44px */
  --fs-4xl: 3.75rem;
  /* 60px */
  --fs-5xl: 5rem;
  /* 80px */
  --fs-hero: clamp(3.5rem, 8vw, 7rem);
  --fs-display: clamp(2.5rem, 5vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Section padding */
  --section-y: clamp(4rem, 8vw, 8rem);
  --section-y-lg: clamp(5rem, 10vw, 10rem);

  /* Container */
  --container-max: 1360px;
  --container-pad: clamp(1.25rem, 4vw, 5rem);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur-base: 350ms;
  --dur-slow: 600ms;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 72px rgba(0, 0, 0, 0.16);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1560px;
}

/* ── Typography ── */

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: var(--space-4);
}

.eyebrow--light {
  color: var(--accent-light);
}

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

/* Display headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.heading-xl {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1.05;
}

.heading-md {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 400;
  line-height: 1.1;
}

.heading-sm {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 400;
  line-height: 1.2;
}

.body-lg {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

.body-md {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
}

.body-sm {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Section Structure ── */
.section {
  padding-block: var(--section-y);
}

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

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
}

.section--muted {
  background-color: var(--bg-secondary);
}

.section__header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ── Divider ── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-block: var(--space-6);
}

.divider--center {
  margin-inline: auto;
}

/* ── Stat Block ── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ── Utility ── */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

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

.text-accent {
  color: var(--accent);
}

.text-inverse {
  color: var(--text-inverse);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-10 {
  margin-top: var(--space-10);
}

.mt-12 {
  margin-top: var(--space-12);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.d-flex {
  display: flex;
}

.align-center {
  align-items: center;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.gap-8 {
  gap: var(--space-8);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Scroll Animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

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

[data-reveal="fade"] {
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 100ms;
}

[data-reveal-delay="2"] {
  transition-delay: 200ms;
}

[data-reveal-delay="3"] {
  transition-delay: 300ms;
}

[data-reveal-delay="4"] {
  transition-delay: 400ms;
}

[data-reveal-delay="5"] {
  transition-delay: 500ms;
}

/* ── Image Overlay Helpers ── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-hover-scale {
  overflow: hidden;
}

.img-hover-scale img {
  transition: transform 0.8s var(--ease-smooth);
}

.img-hover-scale:hover img {
  transform: scale(1.04);
}

/* ── Placeholder image fill ── */
.img-placeholder {
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Page Hero (internal pages) ── */
.page-hero {
  padding-top: calc(var(--nav-height, 80px) + 4rem);
  padding-bottom: 4rem;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-primary);
}

/* ── Selection ── */
::selection {
  background: var(--accent);
  color: var(--white);
}