/* =====================================================================
   Michael A. Lundsveen — Foredrag og rådgivning om ansvarlig KI
   Hand-coded, self-contained stylesheet. No @import, no web fonts,
   no external URLs. Self-hosted system font stack only.
   Design: editorial, premium, flowing. Warm ivory paper, deep petrol-teal
   ink, one mid-teal accent. No hard chrome, no AI clichés.
   ===================================================================== */

/* ---------------------------------------------------------------------
   BRAND TOKENS  —  change palette, accent and fonts here
   --------------------------------------------------------------------- */
:root {
  /* Palette — warm ivory paper, deep petrol-teal anchor, mid-teal accent */
  --paper:        #f4f1ea;   /* warm ivory background            */
  --paper-2:      #e8e3d6;   /* soft sand for alt sections       */
  --card:         #fbf9f2;   /* lifted card surface              */
  --ink:          #123a37;   /* deep petrol teal (text + dark) */
  --ink-soft:     #3d5450;   /* secondary text                  */
  --ink-faint:    #5c6b66;   /* muted labels (AA on paper)      */
  --line:         #d6cdba;   /* warm hairline                    */
  --accent:       #2c7a72;   /* mid teal (fills, large) */
  --accent-deep:  #176059;   /* small text / links (AA on paper)  */
  --accent-tint:  #dde9e6;   /* faint teal wash             */
  --accent-dark:  #8fc7c0;   /* light teal text on dark surfaces  */

  /* Type — system stacks only (editorial display serif + clean sans) */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  Helvetica, Arial, "Helvetica Neue", sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --radius: 6px;
  --header-h: 4.75rem;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.13rem);
  line-height: 1.68;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

ul, ol { margin: 0; padding: 0; }

/* ---------------------------------------------------------------------
   LAYOUT HELPERS
   --------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Alt sections fade in and out of the paper instead of sitting in a hard
   block — this is what gives the page flow rather than stacked rectangles. */
.section-alt {
  background:
    linear-gradient(180deg,
      var(--paper) 0%,
      var(--paper-2) 9%,
      var(--paper-2) 91%,
      var(--paper) 100%);
}

/* Editorial section head: eyebrow + heading left, intro right, no hard rule.
   The eyebrow carries a short teal tick instead of a full-width line. */
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: end;
}
@media (max-width: 780px) {
  .section-head.split { grid-template-columns: 1fr; gap: 0.9rem; align-items: start; }
}

.section-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1rem;
  font-weight: 700;
}
.section-eyebrow::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  flex: none;
}

h2 { font-size: clamp(1.95rem, 1.2rem + 2.8vw, 3.2rem); }
h3 { font-size: 1.26rem; letter-spacing: -0.01em; }

.section-head-left h2 { margin: 0; }

.section-intro {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.32rem);
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0;
  line-height: 1.55;
}

.section-foot {
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--ink-soft);
  font-size: 1.04rem;
}
.section-foot a { font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------------------
   ACCESSIBILITY: skip link + focus
   --------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------------------------------------------------------------------
   HEADER / NAV  —  transparent over the hero, soft frosted on scroll.
   No hard border line. With JS off it keeps a subtle readable backdrop.
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  /* no-JS fallback: a gentle translucent backdrop so nav stays legible */
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(120%) blur(7px);
}
/* With JS: start fully transparent, blended into the hero */
.js .site-header { background: transparent; backdrop-filter: none; box-shadow: none; }
/* Once scrolled past the top, ease in a soft frosted panel (no line) */
.js .site-header.is-stuck {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(135%) blur(11px);
}
/* Wavy hem on the scrolled header — an organic bottom edge instead of a straight line */
.js .site-header.is-stuck::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V13 C1152,27 1008,1 720,13 C432,25 288,2 0,13 Z' fill='%23f4f1ea'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 5px 6px rgba(18, 58, 55, 0.10));
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .site-header.is-stuck::after { filter: none; }
}
@supports not (background: color-mix(in srgb, white, black)) {
  .site-header, .js .site-header.is-stuck { background: var(--paper); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
/* Combined logo lockup (flourish emblem + vector signature). Full lockup on
   desktop; compact flourish-only mark on small screens to save width. */
.brand-logo { display: block; flex: none; }
.brand-logo--full { height: 1.95rem; width: auto; }
.brand-logo--mark { display: none; height: 2.15rem; width: auto; }
@media (max-width: 768px) {
  .brand-logo--full { display: none; }
  .brand-logo--mark { display: block; }
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
/* (The header name is now baked into the combined logo SVG — see .brand-logo.) */

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.1rem);
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--accent-dark) !important;
  background: var(--ink);
  padding: 0.5rem 1.05rem;
  border-radius: 100px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { background: #0d2e2b; transform: translateY(-1px); }

/* Hamburger toggle — hidden on desktop; shown on mobile (JS only, see @media) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.4rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  display: block;
  width: 23px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before { position: absolute; left: 0; top: -7px; }
.nav-toggle-lines::after  { position: absolute; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after  { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle-lines,
  .nav-toggle-lines::before,
  .nav-toggle-lines::after { transition: none; }
}

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  padding: 0.92rem 1.7rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease,
              border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover {
  background: #0d2e2b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -18px rgba(18, 58, 55, 0.7);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------------------------------------------------------------------
   HERO
   --------------------------------------------------------------------- */
.hero {
  padding-block: clamp(4rem, 9vw, 8.5rem) clamp(3.25rem, 6vw, 5.5rem);
  background:
    radial-gradient(125% 100% at 88% -25%, var(--accent-tint) 0%, transparent 54%),
    radial-gradient(90% 80% at -12% 118%, color-mix(in srgb, var(--ink) 8%, transparent), transparent 60%),
    var(--paper);
}
.hero-inner { max-width: 64rem; }

.hero h1 {
  font-size: clamp(2.55rem, 1.3rem + 5.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 0.5em;
  max-width: 16ch;
}
.accent-text { color: var(--accent-deep); font-style: italic; }

.lede {
  font-size: clamp(1.16rem, 1rem + 0.75vw, 1.52rem);
  color: var(--ink-soft);
  max-width: 46rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2.2rem 0 0;
}

/* Credibility rail — the proof points that are true today, editorial */
.hero-cred {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.75rem, 5vw, 4rem);
  margin: clamp(2.75rem, 5vw, 3.75rem) 0 0;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.hero-cred .cred-block { margin: 0; }
.hero-cred dt {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.hero-cred dt::first-letter { color: inherit; }
.hero-cred dd {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
  max-width: 17ch;
}

/* ---------------------------------------------------------------------
   POSITIONING STRIP  —  soft navy band with a gentle depth gradient
   --------------------------------------------------------------------- */
.strip {
  position: relative;
  background:
    radial-gradient(120% 140% at 12% -20%, #1e5b56 0%, transparent 55%),
    var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 6vw, 6.25rem);
}
.strip .wrap { position: relative; z-index: 1; }
/* Organic wavy top & bottom edges so the dark band reads alive, not as a hard box */
.strip::before,
.strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(20px, 3vw, 38px);
  background-repeat: no-repeat;
  background-size: 100% 101%;
  pointer-events: none;
  z-index: 0;
}
.strip::before {
  top: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V22 C1120,44 980,4 720,22 C460,40 320,2 0,22 Z' fill='%23f4f1ea'/%3E%3C/svg%3E");
}
.strip::after {
  bottom: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,40 H1440 V18 C1120,-4 980,36 720,18 C460,0 320,38 0,18 Z' fill='%23f4f1ea'/%3E%3C/svg%3E");
}
.strip-statement {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 1rem + 2vw, 2.45rem);
  line-height: 1.34;
  letter-spacing: -0.01em;
  max-width: 55rem;
  color: var(--paper);
}
.strip-accent { color: var(--accent-dark); font-style: italic; }

/* ---------------------------------------------------------------------
   FOREDRAG / TOPICS — editorial numbered index (distinct from cards)
   --------------------------------------------------------------------- */
.topics { list-style: none; display: grid; gap: 0; }
.topic {
  display: grid;
  grid-template-columns: minmax(0, 5rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.75rem);
  padding: clamp(1.6rem, 3vw, 2.3rem) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.topic:last-child { border-bottom: 1px solid var(--line); }
.topic-index {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "lnum" 1;
}
.topic-body { max-width: 46rem; }
.topic-body h3 { margin-bottom: 0.4rem; font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem); }
.topic-body p { color: var(--ink-soft); margin: 0; }
@media (max-width: 560px) {
  .topic { grid-template-columns: 1fr; gap: 0.4rem; }
  .topic-index { font-size: 1.7rem; }
}

/* ---------------------------------------------------------------------
   SERVICE CARDS (advisory) — soft, shadowed, borderless: not boxes
   --------------------------------------------------------------------- */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
}
.card {
  position: relative;
  background: var(--card);
  border: none;
  border-radius: 14px;
  padding: 2.1rem 1.9rem 1.95rem;
  box-shadow: 0 1px 2px rgba(18, 58, 55, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 55px -30px rgba(18, 58, 55, 0.5);
}
.card-index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
  line-height: 1;
  font-feature-settings: "lnum" 1;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.99rem; margin: 0; }

/* ---------------------------------------------------------------------
   APPROACH GRID
   --------------------------------------------------------------------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.approach-item { padding-top: 1.3rem; position: relative; }
.approach-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2.4rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.approach-item h3 { margin-bottom: 0.5rem; }
.approach-item p { color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------------------
   ABOUT
   --------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
  gap: clamp(2.25rem, 5vw, 4.75rem);
  align-items: start;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-portrait { position: sticky; top: 6.5rem; }
@media (max-width: 820px) {
  .about-portrait { position: static; max-width: 18rem; }
}
/* Editorial offset teal frame behind the portrait */
.portrait-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background:
    repeating-linear-gradient(135deg,
      var(--card) 0 14px, var(--paper-2) 14px 28px);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.3rem;
  color: var(--ink-faint);
  box-shadow: 0.85rem 0.85rem 0 0 var(--accent);
}
.portrait-placeholder span { font-family: var(--font-display); font-size: 1.2rem; }
.portrait-placeholder small { font-size: 0.78rem; letter-spacing: 0.04em; }

.about-body p { color: var(--ink-soft); }
.about-body h2 { color: var(--ink); }
.cred-heading {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin: 2rem 0 0.85rem;
  font-weight: 700;
}
.cred-list { list-style: none; display: grid; gap: 0.5rem; }
.cred-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.99rem;
}
.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ---------------------------------------------------------------------
   INNSIKT / INSIGHTS (placeholder)
   --------------------------------------------------------------------- */
.insights-empty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.1rem, 2vw, 1.6rem);
  margin-bottom: 2.4rem;
}
.insight-card {
  border-radius: 14px;
  padding: 1.7rem 1.5rem;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(18, 58, 55, 0.05);
}
.insight-card.placeholder {
  background:
    repeating-linear-gradient(135deg,
      transparent 0 22px, rgba(95,100,122,0.045) 22px 44px),
    var(--card);
  box-shadow: none;
  opacity: 0.85;
}
.insight-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.7rem;
  font-weight: 700;
}
.insight-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.insight-sum { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 1rem; }
.insight-soon {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.insights-cta { color: var(--ink-soft); }

/* ---------------------------------------------------------------------
   KONTAKT / CONTACT
   --------------------------------------------------------------------- */
.section-contact {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 14%, var(--paper-2) 100%);
}
.contact-inner { max-width: 48rem; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}
.tag-placeholder {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}
.contact-list {
  list-style: none;
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.85rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
@media (max-width: 520px) {
  .contact-list li { grid-template-columns: 1fr; gap: 0.15rem; }
}
.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------------
   FOOTER
   --------------------------------------------------------------------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(120% 160% at 88% -40%, #1e5b56 0%, transparent 55%),
    var(--ink);
  color: var(--paper);
  padding-block: clamp(3.75rem, 5vw, 5rem);
}
/* Wavy top edge so the footer flows out of the page instead of a hard band */
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: clamp(20px, 3vw, 38px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V22 C1120,44 980,4 720,22 C460,40 320,2 0,22 Z' fill='%23e8e3d6'/%3E%3C/svg%3E") no-repeat;
  background-size: 100% 101%;
  pointer-events: none;
  z-index: 0;
}
.footer-inner { display: grid; gap: 0.95rem; position: relative; z-index: 1; }
.footer-brand { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.footer-logo { width: 20rem; max-width: 100%; height: auto; display: block; }
.footer-brand .brand-name { color: var(--paper); font-size: 1.22rem; }
.footer-domain { color: var(--accent-dark); font-size: 0.9rem; letter-spacing: 0.04em; }
.footer-note { color: #bcccc8; font-size: 0.9rem; max-width: 44rem; margin: 0; }
.footer-legal { color: #7e918d; font-size: 0.82rem; margin: 0; }

/* ---------------------------------------------------------------------
   MOTION — scroll reveal (progressive enhancement, JS-gated)
   With JS off or reduced-motion on, content is fully visible.
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s ease, transform 0.75s ease;
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   RESPONSIVE NAV — hamburger dropdown on mobile
   With JS: the nav collapses behind a hamburger and opens as a frosted
   dropdown panel. Without JS: no hamburger is shown, and the nav simply
   wraps below the wordmark so it stays fully usable.
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Show the hamburger only when JS can operate it */
  .js .nav-toggle { display: inline-flex; }

  /* JS: collapse the nav into a dropdown panel under the header */
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 0.35rem var(--gutter) 1.15rem;
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    box-shadow: 0 26px 44px -26px rgba(18, 58, 55, 0.6);
    border-radius: 0 0 18px 18px;
  }
  @supports not (background: color-mix(in srgb, white, black)) {
    .js .site-nav { background: var(--paper); }
  }
  .js .site-nav.is-open { display: block; }

  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li { border-top: 1px solid var(--line); }
  .js .site-nav li:first-child { border-top: none; }
  .js .site-nav a {
    display: block;
    padding: 0.95rem 0.25rem;
    font-size: 1.06rem;
    color: var(--ink);
  }
  .js .site-nav a:hover { color: var(--accent-deep); }

  /* Last item is the CTA — render it as a full-width button, no divider */
  .js .site-nav li:last-child { border-top: none; }
  .js .site-nav .nav-cta {
    display: block;
    margin-top: 1rem;
    text-align: center;
    padding: 0.9rem 1rem;
    font-weight: 600;
  }

  /* No-JS fallback: keep the menu visible, wrapping below the wordmark */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.7rem; }
  html:not(.js) .site-nav { width: 100%; }
  html:not(.js) .site-nav ul { gap: 0.75rem 1.1rem; }
}
