:root {
  --bg: #EEEAE0;
  --bg-alt: #E4DFD2;
  --panel: #1a0f0c;
  --cream: #1a0f0c;
  --cream-light: #EEEAE0;
  --tan: #56534A;
  --muted: #8A8577;
  --gold: #8B4A34;
  --rust: #8B4A34;
  --line: rgba(26, 15, 12, 0.16);
  --line-soft: rgba(26, 15, 12, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

section,
footer {
  position: relative;
  z-index: 10;
}

::selection {
  background: var(--gold);
  color: #EEEAE0;
}

a {
  color: inherit;
  text-decoration: none;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8B4A34;
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  line-height: 1.05;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(.19, 1, .22, 1), transform 0.9s cubic-bezier(.19, 1, .22, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-line {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-line.in {
  opacity: 1;
  transform: translateY(0);
}

.line-grid {
  position: absolute;
  inset: 0;
  display: grid;
  z-index: 2;
  pointer-events: none;
}

.line-grid .col {
  border-right: 1px solid var(--line);
  height: 100%;
  pointer-events: auto;
  transition: background .5s ease;
}

.line-grid .col:last-child {
  border-right: none;
}

.line-grid .col:hover {
  background: rgba(26, 15, 12, 0.04);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  transition: background .5s ease, padding .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(26, 15, 12, 0.86);
  backdrop-filter: blur(14px);
  padding: 18px 48px;
  border-bottom: 1px solid var(--line-soft);
}

.navbar.scrolled .logo-text,
.navbar.scrolled .logo-sub {
  color: #EEEAE0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 22px;
  height: 22px;
}

.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: #3D261D;
  transition: color .4s ease;
}

.logo-sub {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: #3D261D;
  display: block;
  margin-top: -2px;
  transition: color .4s ease;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #5C4335;
}

.back-link .arrow {
  transition: transform .35s ease;
  display: inline-block;
}

.back-link:hover {
  color: #1a0f0c;
}

.back-link:hover .arrow {
  transform: translateX(-5px);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(26, 15, 12, 0.08);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  z-index: 200;
  position: relative;
}

.hamburger span {
  width: 15px;
  height: 1.4px;
  background: #3D261D;
  transition: transform .35s ease, opacity .35s ease, background .35s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.4px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear 0s;
}

.mobile-menu a {
  font-family: 'Fraunces', serif;
  font-size: 30px;
  color: var(--cream-light);
  position: relative;
  padding: 4px 0;
}

.mobile-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #C79A5B;
  transition: width .4s ease;
}

.mobile-menu a:hover::after {
  width: 100%;
}

.mobile-menu a:hover {
  color: #C79A5B;
}

.mobile-close {
  position: absolute;
  top: 32px;
  right: 36px;
  width: 44px;
  height: 44px;
  background: rgba(236, 223, 201, 0.08);
  border: 1px solid rgba(236, 223, 201, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
  z-index: 160;
}

.mobile-close svg {
  width: 18px;
  height: 18px;
}

.mobile-close svg path {
  transition: stroke .35s ease;
}

.mobile-close:hover {
  background: #C79A5B;
  border-color: #C79A5B;
  transform: rotate(90deg) scale(1.08);
}

.mobile-close:hover svg path {
  stroke: var(--panel);
}

section {
  position: relative;
  padding: 150px 48px;
}

.section-head {
  margin-bottom: 90px;
  max-width: 640px;
}

.section-head h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  color: #1a0f0c;
}

footer {
  position: relative;
  z-index: 10;
  padding: 34px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 15, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: #EEEAE0;
  letter-spacing: 0.04em;
}

@media (max-width:900px) {
  .navbar {
    padding: 20px 22px;
  }

  #navbarDock,
  .dock-panel {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 100px 22px;
  }

  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .section-head {
    margin-bottom: 56px;
  }
}

.dock-outer {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

.dock-panel {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 0.5rem;
  border-radius: 100px;
  background-color: rgba(26, 15, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(236, 223, 201, 0.18);
  padding: 0.35rem 0.6rem;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(236, 223, 201, 0.05);
  pointer-events: auto;
}

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(43, 24, 21, 0.85);
  border: 1px solid rgba(236, 223, 201, 0.15);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 2px 4px -1px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dock-item:hover,
.dock-item:focus {
  background-color: #C79A5B;
  border-color: #C79A5B;
  box-shadow: 0 6px 16px rgba(199, 154, 91, 0.4);
}

.dock-item:hover .dock-icon svg,
.dock-item:focus .dock-icon svg {
  stroke: #1a0f0c;
  fill: none;
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dock-icon svg {
  width: 20px;
  height: 20px;
  stroke: #EEEAE0;
  transition: stroke 0.3s ease;
}

.dock-label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: fit-content;
  white-space: pre;
  border-radius: 0.375rem;
  border: 1px solid rgba(238, 234, 224, 0.2);
  background-color: rgba(26, 15, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.25rem 0.65rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #EEEAE0;
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.dock-item:hover .dock-label,
.dock-item:focus .dock-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .dock-panel {
    display: none !important;
  }
}