/* Local Custom Font Declarations */
@font-face {
  font-family: "Kendamil Serif";
  src: url("assets/Kendamil Serif-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Kendamil Serif Italic";
  src: url("assets/Kendamil Serif-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Elza Condensed";
  src: url("assets/Elza-CondensedBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Elza Condensed Semibold";
  src: url("assets/elza-condensed-semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

:root {
  --kendamil-blue: #072250;
  --whole-milk-cream: #f8f3ec;
  --organic-green: #15681a;
  --crown-gold: #c6923c;
  --active-accent: #072250;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--whole-milk-cream);
  color: var(--kendamil-blue);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  position: relative;
}

/* Floating Custom Cursor Hover Tooltip */
.cursor-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  background: #1e1e2e;
  color: #f8f3ec;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, -130%);
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.cursor-tooltip.is-visible {
  opacity: 1;
}

.brand-experience {
  width: min(100%, 1120px);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(7, 34, 80, 0.12);
  border-radius: 32px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 30px 60px rgba(7, 34, 80, 0.08);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .brand-experience {
    grid-template-columns: 1fr;
  }
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 34, 80, 0.05);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: "Elza Condensed Semibold", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.crown-icon {
  width: 20px;
  height: auto;
}

.brand-logo-wrapper {
  margin-bottom: 16px;
}

.brand-wordmark {
  max-width: 170px;
  height: auto;
}

/* Campaign Asset Switcher Bar */
.asset-switcher-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.asset-btn {
  background: rgba(7, 34, 80, 0.05);
  border: 1px solid rgba(7, 34, 80, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: "Elza Condensed Semibold", sans-serif;
  font-size: 0.8rem;
  color: var(--kendamil-blue);
  cursor: pointer;
  transition: all 0.2s ease;
}

.asset-btn.is-active,
.asset-btn:hover {
  background: var(--kendamil-blue);
  color: #fff;
}

/* Interactive Card Showcase */
.interactive-asset-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(7, 34, 80, 0.12);
  padding: 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(7, 34, 80, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.interactive-asset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(7, 34, 80, 0.12);
}

.card-media {
  width: 100%;
  height: 230px;
  background: var(--active-accent);
  border-radius: 14px;
  position: relative;
  margin-bottom: 16px;
  transition: background 0.4s ease;
  overflow: hidden;
}

.asset-view {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
}

.asset-view.is-active {
  display: flex;
}

.product-img {
  max-height: 190px;
  object-fit: contain;
}

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

.type-specimen-box {
  padding: 24px;
  text-align: center;
  color: #fff;
}

.specimen-serif {
  font-family: "Kendamil Serif", serif;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
  transition: font-size 0.2s ease;
}

.specimen-sans {
  font-family: "Elza Condensed Semibold", sans-serif;
  font-size: 0.9rem;
  opacity: 0.9;
}

.provenance-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 99px;
  font-family: "Elza Condensed Semibold", sans-serif;
  font-size: 0.75rem;
  color: var(--kendamil-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.provenance-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27c93f;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.token-name {
  font-family: "Kendamil Serif", serif;
  font-size: 1.2rem;
}

.token-hex {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  background: rgba(7, 34, 80, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

.token-role {
  font-size: 0.82rem;
  color: rgba(7, 34, 80, 0.68);
  margin-bottom: 8px;
}

/* Regulatory Disclaimer Notice */
.regulatory-disclaimer {
  display: none;
  font-family: "Elza Condensed Semibold", sans-serif;
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(7, 34, 80, 0.75);
  background: rgba(7, 34, 80, 0.04);
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 2px solid var(--kendamil-blue);
  margin-top: 8px;
}

.regulatory-disclaimer.is-visible {
  display: block;
}

.copy-toast {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--kendamil-blue);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}

.interactive-asset-card.copied .copy-toast {
  opacity: 1;
  transform: translateY(0);
}

/* Controls Panel */
.interactive-controls-panel {
  background: rgba(7, 34, 80, 0.03);
  border: 1px solid rgba(7, 34, 80, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-group.toggle-group {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.control-label {
  font-family: "Elza Condensed Semibold", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: rgba(7, 34, 80, 0.7);
}

.range-slider {
  width: 100%;
  accent-color: var(--kendamil-blue);
  cursor: pointer;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--kendamil-blue);
}
input:checked + .slider:before {
  transform: translateX(18px);
}

/* macOS Code Window */
.code-window {
  background: #1e1e2e;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: "DM Mono", monospace;
}

.code-window__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #181825;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
}
.dot--red {
  background: #ff5f56;
}
.dot--yellow {
  background: #ffbd2e;
}
.dot--green {
  background: #27c93f;
}

.code-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: inherit;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab.is-active,
.tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.code-window__body {
  padding: 20px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #cdd6f4;
  min-height: 180px;
}

.code-pane {
  display: none;
}
.code-pane.is-active {
  display: block;
}

.interactive-line {
  display: block;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.interactive-line:hover,
.interactive-line.is-selected {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.token-selector {
  color: #89b4fa;
}
.token-property {
  color: #f9e2af;
}
.token-string {
  color: #a6e3a1;
}
.token-comment {
  color: #6c7086;
  font-style: italic;
}
/* Allow the original guide to fit the portfolio's narrower embedded viewport. */
.brand-experience > * {
  min-width: 0;
}
.asset-switcher-bar {
  flex-wrap: wrap;
}
.code-window__body {
  overflow-x: auto;
}
@media (max-width: 480px) {
  body {
    padding: 16px 12px;
  }
  .brand-experience {
    padding: 20px 16px;
    gap: 24px;
  }
  .code-window__header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand-badge {
    font-size: 0.65rem;
  }
  .interactive-asset-card {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
