:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #f2efe8;
  --text: #1f2430;
  --muted: #5f6672;
  --line: #d9d2c4;
  --primary: #0f766e;
  --primary-strong: #0b5e58;
  --accent: #ca8a04;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 18px 50px rgba(20, 23, 31, 0.12);
  /* Hero presets: subtle=1.4/1.04, vivid=1.7/1.06, punchy=2.0/1.10 */
  --hero-saturation: 1.4;
  --hero-contrast: 1.04;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 0% -5%, #d8efe8 0%, transparent 60%),
    radial-gradient(800px 420px at 100% 5%, #f6eacb 0%, transparent 60%),
    var(--bg);
}

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

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 76%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, white);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: 0.16em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 10px rgba(20, 23, 31, 0.08);
}

.brand-mark {
  width: 3.3rem;
  height: 3.3rem;
  display: inline-grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 1;
}

.site-nav {
  display: flex;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a.is-active {
  color: var(--text);
  position: relative;
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font: inherit;
  align-items: center;
  justify-content: center;
}

.menu-toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.hero {
  position: relative;
  padding: 2.8rem 0 3.2rem;
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(240, 230, 206, 0.68), rgba(214, 232, 226, 0.56)),
    url("../img/berge.png") center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.8rem;
  align-items: end;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

h1,
h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.55rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero-copy p {
  max-width: 58ch;
}

.hero-card {
  background: color-mix(in srgb, var(--surface) 88%, white);
  border: 1px solid color-mix(in srgb, var(--line) 78%, white);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.hero-proof {
  margin-top: 0.95rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, white);
  padding-top: 0.8rem;
  line-height: 1.4;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-proof-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--primary);
  flex: 0 0 auto;
  margin-top: 0.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 94, 88, 0.3);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: color-mix(in srgb, var(--surface-soft) 68%, white);
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, white);
}

.card-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 68%, white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20, 23, 31, 0.07);
}

.info-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.info-card div {
  padding: 1rem 1rem 1.15rem;
}

.read-more {
  margin-top: 0.25rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 65%, white);
  padding-top: 0.7rem;
}

.read-more summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more summary::-webkit-details-marker {
  display: none;
}

.read-more summary::after {
  content: "+";
  font-weight: 800;
  transform: translateY(-1px);
}

.read-more[open] summary::after {
  content: "-";
}

.read-more p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 1.2rem;
  margin-top: 1rem;
  align-items: start;
}

.portrait {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 68%, white);
  box-shadow: 0 12px 30px rgba(20, 23, 31, 0.08);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stack {
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 70%, white);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 0.35rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 70%, white);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 12px 30px rgba(20, 23, 31, 0.08);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-links .btn-primary {
  padding: 0.82rem 1.25rem;
  box-shadow: 0 14px 30px rgba(11, 94, 88, 0.36);
}

.site-footer {
  padding: 1.6rem 0 2.4rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero {
    padding-top: 2.2rem;
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 1.25rem;
    left: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0.7rem;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 0.55rem;
    line-height: 1.4;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible,
  .site-nav a.is-active {
    background: color-mix(in srgb, var(--surface-soft) 68%, white);
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
