/* Brand tokens — Light Premium Scandinavian */
:root {
  --bg: #f7f5f1;
  --bg-warm: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f0eeea;
  --surface-soft: #e8ebe6;
  --text: #1c2420;
  --text-strong: #121916;
  --muted: #5c675f;
  --primary: #2f5d45;
  --primary-hover: #254a37;
  --primary-soft: #e4efe8;
  --accent: #8fa68e;
  --accent-soft: #d5e0d4;
  --solar: #c9a84c;
  --solar-soft: #f5edd4;
  --border: #d9ddd6;
  --border-strong: #c2c8bf;
  --focus: #2f5d45;
  --danger: #8b3a3a;
  --success: #2f5d45;
  --overlay: rgba(18, 25, 22, 0.48);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(18, 25, 22, 0.05);
  --shadow-md: 0 8px 28px rgba(18, 25, 22, 0.07);
  --shadow-lg: 0 18px 48px rgba(18, 25, 22, 0.1);
  --container: 1240px;
  --section-space: clamp(4rem, 8vw, 7rem);
  --header-h: 76px;
  --font-display: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.28s var(--ease);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  position: relative;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(143, 166, 142, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(201, 168, 76, 0.1), transparent 45%),
    linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 40%, #f3f1ec 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10000;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
  max-width: 100%;
}

.section--alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(240, 238, 234, 0.7));
}

.section--dark {
  background: linear-gradient(145deg, #1c2b23 0%, #24352c 55%, #1a2620 100%);
  color: #f3f6f3;
}

.section--dark .muted,
.section--dark .section-kicker {
  color: rgba(243, 246, 243, 0.72);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.85rem;
}

.section-kicker::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--solar);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  color: var(--text-strong);
  margin: 0 0 1rem;
}

.section-lead {
  max-width: 42rem;
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn .arrow {
  transition: transform var(--transition);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 93, 69, 0.22);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: var(--surface);
  color: var(--text-strong);
  text-decoration: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

.btn--light {
  background: #fff;
  color: var(--primary);
}

.btn--light:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
  text-decoration: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

@media (hover: hover) and (pointer: fine) {
  .card--lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-soft);
  }
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .card-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--solar);
  margin-bottom: 0.75rem;
}

.media-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, #e7ebe4 0%, #d8e0d6 45%, #ece8dc 100%);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  min-height: 180px;
}

.media-placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 1rem 1rem auto;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.media-placeholder--tall {
  aspect-ratio: 4 / 5;
}

.media-placeholder--hero {
  aspect-ratio: 4 / 3;
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(47, 93, 69, 0.12), transparent 50%),
    linear-gradient(135deg, #dfe6dc 0%, #f0ebe0 50%, #d3ddd2 100%);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: var(--shadow-sm);
}

.media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-frame--hero {
  aspect-ratio: 4 / 3;
  min-height: 280px;
}

.media-frame--hero img {
  object-position: 68% center;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

.media-frame--tall img {
  object-position: center top;
}

.media-frame--wide {
  aspect-ratio: 16 / 10;
}

.media-frame--landscape {
  aspect-ratio: 16 / 9;
}

.media-frame--person img {
  object-position: center 18%;
}

.gallery-item .media-frame {
  aspect-ratio: 4 / 3;
}

@media (max-width: 720px) {
  .media-frame--hero img {
    object-position: 60% center;
  }

  .media-frame--person img {
    object-position: center 12%;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 2rem 0;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.note--strong {
  background: var(--solar-soft);
  border: 1px solid #e6d7a8;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  color: var(--text);
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-check li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.14s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.26s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .stagger > .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .btn .arrow {
    transition: none !important;
  }
}
