:root {
  --bk-ink: #2c2c2c;
  --bk-muted: rgba(44, 44, 44, 0.64);
  --bk-olive: #8c8557;
  --bk-olive-deep: #4d472f;
  --bk-sand: #c4b896;
  --bk-cream: #e8e2d5;
  --bk-paper: #f3efe7;
  --bk-surface: #fbf9f4;
  --bk-lime: #e8f4ac;
  --bk-line: rgba(77, 71, 47, 0.13);
  --bk-line-strong: rgba(77, 71, 47, 0.26);
  --bk-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --bk-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --bk-serif: 'EditorsNote', "Editor's Note", Georgia, serif;
  --bk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bk-mx: 0;
  --bk-my: 0;
}

.bk-paper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(1200px 700px at 85% 40%, rgba(196, 184, 150, 0.28), transparent 60%),
    var(--bk-paper);
}

.bk-paper::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.28 0 0 0 0 0.18 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bk-paper--left {
  background:
    radial-gradient(1100px 680px at 12% 30%, rgba(196, 184, 150, 0.26), transparent 60%),
    var(--bk-paper);
}

.bk-night {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(900px 560px at 80% 20%, rgba(140, 133, 87, 0.22), transparent 62%),
    #2b281c;
  color: var(--bk-cream);
}

.bk-night::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.88 0 0 0 0 0.8 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bk-ghost {
  position: absolute;
  left: -2vw;
  bottom: -6vw;
  z-index: -1;
  margin: 0;
  font-family: var(--bk-serif);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(8rem, 24vw, 28rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--bk-olive);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  animation: bk-ghost-in 1.4s var(--bk-ease) both 0.2s;
}

.bk-ghost--right { left: auto; right: -2vw; }
.bk-ghost--top { bottom: auto; top: -4vw; }
.bk-night .bk-ghost { color: var(--bk-sand); opacity: 0.06; animation-name: bk-ghost-in-night; }

@keyframes bk-ghost-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 0.07; transform: none; }
}

@keyframes bk-ghost-in-night {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 0.06; transform: none; }
}

.bk-visual {
  --bk-badge: 116px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 420px;
}

.bk-orbits {
  position: absolute;
  width: min(100%, 600px);
  aspect-ratio: 1;
  overflow: visible;
  pointer-events: none;
  transform: translate(calc(var(--bk-mx) * -14px), calc(var(--bk-my) * -14px));
  transition: transform 0.8s var(--bk-ease);
}

.bk-orbits circle {
  fill: none;
  stroke: var(--bk-olive);
  stroke-opacity: 0.35;
  stroke-width: 0.8;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.bk-orbits circle:nth-child(2) { stroke-opacity: 0.22; }

.bk-orbits .bk-dot {
  fill: var(--bk-olive);
  stroke: none;
  stroke-dasharray: none;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 300px 300px;
}

.bk-in .bk-orbits circle { animation: bk-draw 2s var(--bk-ease) forwards 0.3s; }
.bk-in .bk-orbits circle:nth-child(2) { animation-delay: 0.5s; }
.bk-in .bk-orbits .bk-dot { animation: bk-dot-in 0.6s var(--bk-ease) forwards 1.6s, bk-orbit 40s linear infinite 1.6s; }

@keyframes bk-draw { to { stroke-dashoffset: 0; } }
@keyframes bk-dot-in { to { opacity: 0.8; } }
@keyframes bk-orbit { to { transform: rotate(360deg); } }

.bk-frame {
  position: relative;
  width: min(62%, 380px);
  transform: translate(calc(var(--bk-mx) * 8px), calc(var(--bk-my) * 8px));
  transition: transform 0.8s var(--bk-ease);
}

.bk-arch {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  background: var(--bk-cream);
  box-shadow: 0 40px 80px -40px rgba(77, 71, 47, 0.55);
  clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px);
}

.bk-in .bk-arch { animation: bk-arch-in 1.2s var(--bk-ease) forwards 0.1s; }

.bk-arch img,
.bk-arch video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.bk-arch--cycle img { opacity: 0; animation: bk-photo-cycle 21s infinite; }
.bk-arch--cycle img:nth-child(1) { animation-delay: -1.3s; }
.bk-arch--cycle img:nth-child(2) { animation-delay: 5.7s; }
.bk-arch--cycle img:nth-child(3) { animation-delay: 12.7s; }

@keyframes bk-arch-in {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px); }
  to { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); }
}

@keyframes bk-photo-cycle {
  0% { opacity: 0; transform: scale(1.08); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}

.bk-seal {
  position: absolute;
  top: calc(var(--bk-badge) * -0.32);
  right: calc(var(--bk-badge) / -2);
  width: var(--bk-badge);
  height: var(--bk-badge);
  overflow: visible;
  opacity: 0;
}

.bk-in .bk-seal { animation: bk-seal-in 0.9s var(--bk-ease) forwards 0.9s; }

.bk-seal text {
  font-family: var(--bk-sans);
  font-size: 8.6px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--bk-olive-deep);
}

.bk-seal .bk-seal__ring {
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: bk-orbit 24s linear infinite;
}

.bk-seal .bk-seal__disc { fill: var(--bk-paper); stroke: rgba(140, 133, 87, 0.35); stroke-width: 0.8; }

.bk-seal .bk-seal__mark {
  font-family: var(--bk-serif);
  font-style: italic;
  font-size: 34px;
  font-weight: 200;
  letter-spacing: 0;
  fill: var(--bk-olive);
}

@keyframes bk-seal-in {
  from { opacity: 0; transform: scale(0.6) rotate(-40deg); }
  to { opacity: 1; transform: none; }
}

.bk-caption {
  position: absolute;
  right: calc(100% + 24px);
  bottom: 6%;
  width: max-content;
  max-width: 9ch;
  margin: 0;
  font-family: var(--bk-serif);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.5rem, 0.8rem + 1.2vw, 2.2rem);
  line-height: 1.05;
  color: var(--bk-olive-deep);
  text-align: right;
  text-wrap: balance;
}

.bk-caption::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 0 14px auto;
  background: var(--bk-olive);
}

.bk-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--bk-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bk-olive);
}

.bk-eyebrow i {
  font-family: var(--bk-serif);
  font-size: 17px;
  font-weight: 200;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bk-olive-deep);
}

.bk-eyebrow i::after {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.6;
}

.bk-night .bk-eyebrow { color: var(--bk-sand); }
.bk-night .bk-eyebrow i { color: var(--bk-cream); }

.bk-title {
  margin: 0;
  font-family: var(--bk-display);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--bk-ink);
  text-wrap: balance;
}

.bk-title em {
  font-family: var(--bk-serif);
  font-style: italic;
  font-weight: 200;
  letter-spacing: 0;
  color: var(--bk-olive);
}

.bk-night .bk-title { color: var(--bk-cream); }
.bk-night .bk-title em { color: var(--bk-sand); }

.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 0 26px 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--bk-olive-deep);
  color: var(--bk-paper);
  font-family: var(--bk-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 18px 36px -20px rgba(77, 71, 47, 0.75);
  transition: background-color 0.28s var(--bk-ease), transform 0.28s var(--bk-ease), box-shadow 0.28s var(--bk-ease);
}

.bk-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  flex: none;
  transition: transform 0.28s var(--bk-ease);
}

.bk-btn:hover,
.bk-btn:focus-visible { background: #3d3825; transform: translateY(-1px); box-shadow: 0 24px 44px -22px rgba(77, 71, 47, 0.85); }
.bk-btn:hover svg,
.bk-btn:focus-visible svg { transform: translateX(4px); }
.bk-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(196, 184, 150, 0.6); }
.bk-btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.bk-btn--block { width: 100%; }
.bk-btn--lime { background: var(--bk-lime); color: var(--bk-olive-deep); }
.bk-btn--lime:hover,
.bk-btn--lime:focus-visible { background: #f1f9c8; }

.bk-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 2px;
  font-family: var(--bk-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bk-olive-deep);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size 0.56s var(--bk-ease);
}

.bk-link:hover,
.bk-link:focus-visible { background-size: 100% 1px; }
.bk-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform 0.28s var(--bk-ease); }
.bk-link:hover svg { transform: translate(2px, -2px); }
.bk-night .bk-link { color: var(--bk-cream); }

.bk-field { display: block; margin: 0 0 22px; }

.bk-field > span,
.bk-field > label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--bk-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bk-olive-deep);
}

.bk-field input,
.bk-field select,
.bk-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--bk-line-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--bk-sans);
  font-size: 17px;
  color: var(--bk-ink);
  transition: border-color 0.28s var(--bk-ease), box-shadow 0.28s var(--bk-ease);
}

.bk-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.bk-field input::placeholder,
.bk-field textarea::placeholder { color: rgba(44, 44, 44, 0.38); }

.bk-field input:focus,
.bk-field select:focus,
.bk-field textarea:focus {
  outline: none;
  border-bottom-color: var(--bk-olive-deep);
  box-shadow: 0 1px 0 0 var(--bk-olive-deep);
}

.bk-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--bk-ease), transform 0.8s var(--bk-ease); }
.bk-reveal.is-in { opacity: 1; transform: none; }
.bk-reveal[data-bk-delay='1'] { transition-delay: 0.1s; }
.bk-reveal[data-bk-delay='2'] { transition-delay: 0.2s; }
.bk-reveal[data-bk-delay='3'] { transition-delay: 0.3s; }
.bk-reveal[data-bk-delay='4'] { transition-delay: 0.4s; }

.bk-rule {
  display: block;
  height: 1px;
  background: var(--bk-line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--bk-ease);
}

.bk-rule.is-in { transform: none; }

@media (max-width: 1200px) {
  .bk-caption { display: none; }
}

@media (max-width: 960px) {
  .bk-visual { --bk-badge: 76px; min-height: 0; padding: 24px 0; }
  .bk-orbits { width: min(92vw, 420px); }
  .bk-frame { width: min(58vw, 260px); }
  .bk-seal { top: auto; bottom: calc(var(--bk-badge) * -0.12); right: calc(var(--bk-badge) * -0.62); }
  .bk-ghost { font-size: clamp(6rem, 34vw, 12rem); bottom: -3vw; }
}

@media (max-width: 600px) {
  .bk-visual { --bk-badge: 66px; }
  .bk-btn { min-height: 54px; padding: 0 22px; letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-ghost,
  .bk-in .bk-arch,
  .bk-in .bk-seal,
  .bk-in .bk-orbits circle,
  .bk-in .bk-orbits .bk-dot,
  .bk-seal .bk-seal__ring,
  .bk-arch--cycle img { animation: none; }
  .bk-arch { clip-path: none; }
  .bk-seal { opacity: 1; }
  .bk-orbits circle { stroke-dashoffset: 0; }
  .bk-arch--cycle img:first-child { opacity: 1; }
  .bk-reveal { opacity: 1; transform: none; transition: none; }
  .bk-rule { transform: none; transition: none; }
}

.bk-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(251, 249, 244, 0.92);
  color: var(--bk-olive-deep);
  box-shadow: 0 14px 34px -18px rgba(77, 71, 47, 0.6);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.4s var(--bk-ease), transform 0.4s var(--bk-ease), visibility 0s linear 0.4s, background-color 0.28s var(--bk-ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.bk-top.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.bk-top:hover { background: var(--bk-olive-deep); color: var(--bk-paper); }
.bk-top:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(196, 184, 150, 0.7); }
.bk-top svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bk-top .bk-top__track { fill: none; stroke: var(--bk-line-strong); stroke-width: 1; }
.bk-top .bk-top__bar { fill: none; stroke: var(--bk-olive); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--bk-progress, 0)); transform: rotate(-90deg); transform-origin: 50% 50%; }
.bk-top .bk-top__arrow { position: relative; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform 0.28s var(--bk-ease); }
.bk-top:hover .bk-top__arrow { transform: translateY(-2px); }
.bk-top.is-raised { bottom: calc(92px + env(safe-area-inset-bottom)); }

@media (max-width: 600px) {
  .bk-top { width: 46px; height: 46px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-top, .bk-top .bk-top__arrow { transition: none; }
}
