:root{
    --ease: cubic-bezier(.22,.8,.32,1);
    --gold: #3f4328;
    --font-body: "Diatype", sans-serif;
    --font-title: "Cormorant", serif;
    --font-heading: var(--font-title);
    --titles: 46px;
  }

  
  /* ---------- Card Nav ---------- */
  :host {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.card-nav-wrap {
  width: 100%;
}

.card-nav {
  position: relative;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  box-shadow: none;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);

  /* theme tokens — dark bar is the default (used over light sections) */
  --surface: rgba(18, 18, 18, 0.55);
  --surface-2: rgba(27, 27, 27, 0.6);
  --border: rgba(255, 255, 255, 0.12);
  --ink: #f5f3ee;
  --muted: #948f83;
  --accent: #bef164;
  --scrim-top: rgba(0, 0, 0, 0.15);
  --scrim-bottom: rgba(0, 0, 0, 0.85);
  --panel-ink: #f5f3ee;
  --panel-muted: #cfcabd;

  background: var(--surface);
  border: 1px solid var(--border);
}

/* light bar — used when the section behind the nav is dark */
.card-nav.theme-light {
  --surface: rgba(246, 243, 236, 0.6);
  --surface-2: rgba(255, 255, 255, 0.65);
  --ink: #16140f;
  --muted: #71695a;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #3f4328;
  --scrim-top: rgba(255, 255, 255, 0.1);
  --scrim-bottom: rgba(20, 17, 10, 0.82);
  --panel-ink: #16140f;
  --panel-muted: #d8d3c5;
}

/* hero bar — transparent over the white hero section, dark text/icons for contrast */
.card-nav.theme-hero {
  --surface: rgba(18, 18, 18, 0.55);
  --surface-2: rgba(27, 27, 27, 0.6);
  --border: rgba(255, 255, 255, 0.12);
  --ink: #f5f3ee;
  --muted: #948f83;
  --accent: #bef164;
  --scrim-top: rgba(0, 0, 0, 0.15);
  --scrim-bottom: rgba(0, 0, 0, 0.85);
  --panel-ink: #f5f3ee;
  --panel-muted: #cfcabd;

  background: var(--surface);
  border: 1px solid var(--border);
}

.card-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 12px 0 20px;
}

.cn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body, "Diatype");
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  user-select: none;
  transition: color 0.4s var(--ease), opacity 0.2s ease;
}

.cn-logo:hover {
  opacity: 0.85;
}

.cn-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.cn-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cn-cta {
  appearance: none;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 9px 18px;
  border-radius: 10px;
  height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}
.cn-cta:hover {
  background: var(--accent);
  color: #fff;
}

.cn-toggle {
  appearance: none;
  border: none;
  background: var(--surface-2);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.4s var(--ease);
}
.cn-toggle .bar {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.cn-toggle .bar:nth-child(1) {
  transform: translateY(-4px);
}
.cn-toggle .bar:nth-child(2) {
  transform: translateY(4px);
}

.card-nav.open .cn-toggle .bar:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.card-nav.open .cn-toggle .bar:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

/* content panel */
.cn-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.card-nav.open .cn-panel {
  grid-template-rows: 1fr;
}
.cn-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.cn-panel-content {
  padding: 22px 20px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0px;
  margin-top: 4px;
}

/* Link columns — flat surface fill, no image background */
.cn-col {
  position: relative;
  min-height: 190px;
  padding: 16px 16px 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* was: flex-end */
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  background: transparent;
  border-right: 1px solid var(--border);
}

.cn-col-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.cn-col-inner {
  position: relative;
  z-index: 1;
}

.cn-col:nth-child(3) {
  border-right: none;
}

.card-nav.open .cn-col {
  opacity: 1;
  transform: translateY(0);
}
.card-nav.open .cn-col:nth-child(1) { transition-delay: 0.08s; }
.card-nav.open .cn-col:nth-child(2) { transition-delay: 0.15s; }
.card-nav.open .cn-col:nth-child(3) { transition-delay: 0.22s; }
.card-nav.open .cn-col:nth-child(4) { transition-delay: 0.29s; }

.cn-col-label {
  font-family: var(--font-body, "Diatype");
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
  color: var(--panel-ink);
  margin-bottom: 10px;
}

.cn-link {
  display: flex;
  font-family: var(--font-body, "Diatype");
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--panel-ink);
  text-decoration: none;
  font-size: 20px;
  padding: 5px 0;
}
.cn-link span.arrow,
.cn-link svg.testimonial-arrow {
  color: var(--panel-muted);
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
  transform: rotate(0deg);
}
.cn-link:hover {
  color: #fff;
}
.cn-link:hover svg.testimonial-arrow {
  color: var(--gold);
  transform: translate(3px, -3px);
}

/* Product-update column — 4th column: image + title + description + CTA */
.cn-col-update {
  justify-content: flex-start;
  padding: 0;
  background: transparent;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.cn-update-img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

.cn-update-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cn-update-title {
  margin: 0;
  font-family: var(--font-title, "Cormorant");
  font-size: 14.5px;
  font-weight: 400;
  color: var(--panel-ink);
}

.cn-update-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--panel-muted);
  flex: 1;
}

.cn-update-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #bef164;
  text-decoration: none;
}
.cn-update-cta svg.testimonial-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}
.cn-update-cta:hover svg.testimonial-arrow {
  transform: translate(3px, -3px);
}

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

@media (max-width: 640px) {
  .cn-panel-content {
    grid-template-columns: 1fr;
  }
  .cn-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-nav *,
  .card-nav {
    transition: none !important;
  }
}

/* ---------- Sticky site navigation ---------- */

:host {
  all: initial;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-height: 62px;
  display: block;
  position: sticky;
  top: 0;
  z-index: 1000;
}

:host([overlay-hero]) {
  margin-bottom: calc(-1 * var(--nav-height));
}

.cn-shell,
.cn-shell * {
  box-sizing: border-box;
}

.cn-shell {
  width: 100%;
  color: #fff;
  font-family: var(--font-body, "Diatype");
  -webkit-font-smoothing: antialiased;
}

.cn-nav {
  --nav-surface: rgba(18, 18, 18, 1.0);
  --nav-ink: #f5f3ee;
  --nav-muted: #b7b3a9;
  --nav-border: rgba(255, 255, 255, 0.12);
  --nav-accent: #d9edb2;
  position: relative;
  width: 100%;
  background: var(--nav-surface);
  color: var(--nav-ink);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.cn-nav.theme-light {
  --nav-surface: white;
  --nav-ink: #16140f;
  --nav-muted: #71695a;
  --nav-border: rgba(0, 0, 0, 0.1);
  --nav-accent: #3f4328;
}

.cn-nav.theme-hero {
  --nav-surface: transparent;
  --nav-ink: #16140f;
  --nav-muted: #71695a;
  --nav-border: transparent;
  --nav-accent: #3f4328;
  --accent: #bef164;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.cn-nav.dropdown-open {
  --nav-surface: #000;
  --nav-ink: #f5f3ee;
  --nav-muted: #b7b3a9;
  --nav-border: rgba(255, 255, 255, 0.16);
  --nav-accent: #d9edb2;
  background-color: #000;
}

.cn-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  width: min(100%, 1440px);
  height: var(--nav-height);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.cn-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-width: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.cn-brand-mark {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.cn-desktop-links,
.cn-desktop-actions {
  display: flex;
  align-items: center;
}

.cn-desktop-links {
  justify-content: center;
  gap: clamp(12px, 2.2vw, 34px);
}

.cn-nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  mix-blend-mode: difference;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.cn-nav-trigger:hover,
.cn-nav-trigger.active,
.cn-nav-trigger[aria-expanded="true"] {
  opacity: 0.55;
}

.cn-mobile-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.cn-mobile-group.open .cn-mobile-trigger svg {
  transform: rotate(180deg);
}

.cn-desktop-actions {
  justify-self: end;
  gap: 10px;
}

.cn-primary,
.cn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cn-primary {
  background: var(--accent);
  color: #172015;
}

.cn-primary:hover {
  background: #163322;
  color: var(--paper);
}

.cn-login {
  color: white;
}

.cn-login:hover {
  border-color: var(--nav-ink);
  background: rgba(127, 127, 127, 0.1);
}

.cn-desktop-panel {
  display: block;
  height: 0;
  width: 100%;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: height 0.55s cubic-bezier(0.77, 0, 0.175, 1),
              opacity 0.35s ease,
              visibility 0.55s;
}

.cn-nav.desktop-open .cn-desktop-panel {
  height: 80vh;
  opacity: 1;
  visibility: visible;
}

.cn-mega-content {
  height: 100%;
  padding: 35px clamp(20px, 5vw, 5%) 65px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
}

.cn-mega-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cn-mega-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: #777;
  margin-bottom: 35px;
  text-transform: uppercase;
}

.cn-mega-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  transition: opacity 0.18s ease;
}

.cn-desktop-panel .cn-mega-links,
.cn-mega-image {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.cn-nav.desktop-open .cn-desktop-panel .cn-mega-links,
.cn-nav.desktop-open .cn-mega-image {
  opacity: 1;
}

.cn-nav.desktop-open .cn-mega-links.is-switching,
.cn-nav.desktop-open .cn-mega-image.is-switching {
  opacity: 0;
}

.cn-mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  color: #fff;
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 400;
  letter-spacing: -1px;
  text-decoration: none;
  transition: color 0.3s ease, padding 0.3s ease;
}

.cn-mega-link:hover {
  color: #888;
  padding-left: 8px;
}

.cn-mega-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  transition: transform 0.3s ease;
}

.cn-mega-link:hover svg {
  transform: translate(4px, -4px);
}

.cn-mega-image {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: #171717;
}

.cn-mega-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cn-mobile-links svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

@media (min-width: 821px) {
  .cn-nav.dropdown-open .cn-brand,
  .cn-nav.dropdown-open .cn-nav-trigger,
  .cn-nav.dropdown-open .cn-login,
  .cn-nav.dropdown-open .cn-primary {
    color: #fff;
  }
}

.cn-toggle,
.cn-mobile-panel {
  display: none;
}

.cn-mobile-trigger:focus-visible,
.cn-nav-trigger:focus-visible,
.cn-primary:focus-visible,
.cn-login:focus-visible,
.cn-toggle:focus-visible,
.cn-mega-link:focus-visible {
  outline: 2px solid var(--nav-accent);
  outline-offset: 3px;
}

@media (max-width: 900px) and (min-width: 821px) {
  .cn-bar {
    grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
    gap: 14px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .cn-desktop-links {
    gap: 14px;
  }

  .cn-primary,
  .cn-login {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 820px) {
  :host {
    --nav-height: 64px;
  }

  .cn-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
  }

  .cn-desktop-links,
  .cn-desktop-actions {
    display: none;
  }

  .cn-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--nav-border);
    border-radius: 9px;
    background: transparent;
    color: white;
    cursor: pointer;
  }

  .cn-toggle-bar {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease);
  }

  .cn-toggle-bar:first-child {
    transform: translateY(-4px);
  }

  .cn-toggle-bar:last-child {
    transform: translateY(4px);
  }

  .cn-nav.mobile-open .cn-toggle-bar:first-child {
    transform: rotate(45deg);
  }

  .cn-nav.mobile-open .cn-toggle-bar:last-child {
    transform: rotate(-45deg);
  }

  .cn-desktop-panel {
    display: none;
  }

  .cn-mega-content {
    grid-template-columns: 1fr;
    padding: 25px 6%;
    gap: 25px;
  }

  .cn-nav.desktop-open .cn-desktop-panel {
    height: 75vh;
  }

  .cn-mega-links {
    gap: 12px;
  }

  .cn-mega-link {
    font-size: 25px;
  }

  .cn-mobile-panel {
    position: fixed;
    inset: var(--nav-height) 0 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: calc(100dvh - var(--nav-height));
    overflow: hidden;
    background: black;
    color: white;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
    visibility: hidden;
  }

  .cn-nav.mobile-open .cn-mobile-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
    visibility: visible;
  }

  .cn-mobile-groups {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 22px 24px;
  }

  .cn-mobile-group {
    border-bottom: 1px solid white;
  }

  .cn-mobile-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
    padding: 0;
    border: 0;
    background: transparent;
    color: white;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .cn-mobile-links {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ease);
  }

  .cn-mobile-group.open .cn-mobile-links {
    grid-template-rows: 1fr;
  }

  .cn-mobile-links-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 0 0 4px;
    transition: padding 0.3s var(--ease);
  }

  .cn-mobile-group.open .cn-mobile-links-inner {
    padding-bottom: 15px;
  }

  .cn-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding: 0 8px;
    opacity: 0;
    color: var(--nav-muted);
    font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }

  .cn-mobile-group.open .cn-mobile-links a {
    opacity: 1;
  }

  .cn-mobile-links a:hover {
    color: var(--nav-ink);
  }

  .cn-mobile-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 18px max(18px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--nav-border);
    background: var(--nav-surface);
  }

  .cn-mobile-actions .cn-primary,
  .cn-mobile-actions .cn-login {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cn-shell *,
  .cn-shell *::before,
  .cn-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.f13-socials a {
  display: flex;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
  color: var(--f13-text-muted);
  transition: color 0.2s ease, transform 0.1s ease;
}

.f13-socials a:hover {
  color: var(--f13-white);
}

.f13-socials a:active {
  transform: scale(0.96);
}

.f13-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 20px;
  row-gap: 6px;
}

.f13-links a {
  font-weight: 400;
  color: var(--f13-text-faint);
  transition: color 0.2s ease;
}

.f13-links a:hover {
  color: var(--f13-text-body);
}

.dev-banner{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100% - 32px);
  background: #14110a;
  color: #f5f3ee;
  padding: 14px 16px 14px 20px;
  border-radius: 14px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.5);
  font-family: var(--font-body);
}

.dev-banner-text{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.dev-banner-link{
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 4px;
}
.dev-banner-link:hover{ color: #e2c07f; }

.dev-banner-close{
  appearance: none;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #f5f3ee;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s var(--ease);
}
.dev-banner-close:hover{ background: rgba(255,255,255,0.16); }

@media (max-width: 640px){
  .dev-banner{
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: none;
    max-width: none;
  }
}
