:root {
  --paper: #f3ede1;
  --ink: #2c241c;
  --muted: #6c5f52;
  --gold: #8a765f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  overflow-x: hidden;
}

.paper-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(44, 36, 28, 0.05) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 2px;
  background: rgba(44, 36, 28, 0.08);
}

.scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(138, 118, 95, 0.35), rgba(138, 118, 95, 0.9));
}

.header-shell {
  position: sticky;
  top: 0.65rem;
  z-index: 40;
  background: rgba(243, 237, 225, 0.84);
  backdrop-filter: blur(8px);
}

.section-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.69rem;
  color: var(--muted);
}

.hero-title {
  text-wrap: balance;
}

.quote-panel {
  margin: 0;
  border: 1px solid rgba(44, 36, 28, 0.16);
  background: rgba(255, 255, 255, 0.28);
  padding: 0.95rem 1rem;
  color: #4f4338;
  font-style: italic;
}

.nav-link {
  position: relative;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 1px;
  background: rgba(44, 36, 28, 0.45);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 36, 28, 0.24);
  background: rgba(247, 241, 229, 0.75);
  color: #2c241c;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header-cta:hover {
  background: rgba(239, 229, 212, 0.95);
  border-color: rgba(44, 36, 28, 0.36);
}

.mobile-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(44, 36, 28, 0.2);
  background: rgba(247, 241, 229, 0.82);
  color: #2c241c;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.72rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 36, 28, 0.22);
  background: #f7f1e5;
  color: #2c241c;
  text-decoration: none;
  padding: 0.58rem 1.04rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.action-btn:hover {
  background: #efe5d4;
  border-color: rgba(44, 36, 28, 0.35);
  transform: translateY(-1px);
}

.action-btn-primary {
  background: #8a765f;
  border-color: #7b6650;
  color: #fbf7ee;
}

.action-btn-primary:hover {
  background: #7d684f;
  border-color: #6d5a46;
}

.logo-shell {
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(44, 36, 28, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ede4d2;
}

.logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(44, 36, 28, 0.8);
  transition: opacity 0.3s ease;
}

.logo-shell.has-image .logo-fallback {
  opacity: 0;
}

.meta-box {
  border: 1px solid rgba(44, 36, 28, 0.17);
  background: rgba(247, 242, 232, 0.8);
  padding: 0.7rem 0.85rem;
}

.image-shell {
  position: relative;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.73rem;
  color: rgba(108, 95, 82, 0.85);
  transition: opacity 0.3s ease;
}

.image-shell.has-image .image-placeholder {
  opacity: 0;
}

.smart-image {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.smart-image.is-ready {
  opacity: 1;
  transform: scale(1);
}

.image-missing {
  outline: 1px dashed rgba(44, 36, 28, 0.25);
}

.dropcap::first-letter {
  float: left;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.1rem;
  line-height: 0.88;
  margin-right: 0.45rem;
  margin-top: 0.18rem;
  color: #5f4f3f;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(44, 36, 28, 0.2);
  background: #f7f1e5;
  color: #2c241c;
  text-decoration: none;
  padding: 0.62rem 1.05rem;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.link-btn:hover {
  background: #efe5d4;
  border-color: rgba(44, 36, 28, 0.32);
  transform: translateY(-1px);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 1023px) {
  .header-shell {
    top: 0.4rem;
  }

  .bio-side {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(44, 36, 28, 0.15);
    padding-top: 1.2rem;
  }
}

@media (max-width: 767px) {
  .paper-grain {
    opacity: 0.15;
  }

  .header-shell {
    top: 0;
  }

  .dropcap::first-letter {
    font-size: 2.5rem;
    margin-top: 0.1rem;
  }

  .link-btn,
  .action-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .header-cta {
    padding: 0.45rem 0.7rem;
    font-size: 0.84rem;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ece3d2;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(138, 118, 95, 0.75), rgba(92, 78, 63, 0.72));
  border-radius: 999px;
}
