:root {
  --ink: #1c1410;
  --coffee: #4b3626;
  --clay: #a9714c;
  --cream: #f5e9ce;
  --amber: #e2963c;
  --cream-dim: #e7d8b3;
  --coffee-dim: #6b503a;
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --wrap: 1160px;
  --radius-bill: 60% 40% 50% 50% / 40% 50% 50% 60%;
  --ease: cubic-bezier(.22, .8, .34, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  display: block;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 28px;
  color: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-radius 0.35s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(226, 150, 60, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px -12px rgba(226, 150, 60, 0.75);
}

.btn-large {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-ghost {
  border-color: rgba(245, 233, 206, 0.25);
  color: var(--cream);
  padding: 10px 18px;
  font-size: 14px;
}

.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-text {
  background: none;
  padding: 14px 4px;
  color: var(--cream);
  border-radius: 0;
}

.btn-text span {
  transition: transform 0.25s var(--ease);
  display: inline-block;
}

.btn-text:hover span {
  transform: translateX(4px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(28, 20, 16, 0.86);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-color: rgba(245, 233, 206, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  border-radius: 50%;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}

.site-nav a {
  color: var(--cream-dim);
  transition: color 0.2s ease;
  position: relative;
}

.site-nav a:hover {
  color: var(--amber);
}

.header-cta svg {
  opacity: 0.85;
}

.hero {
  position: relative;
  padding: 168px 0 0;
  overflow: hidden;
  background: radial-gradient(circle at 82% 18%, rgba(226, 150, 60, 0.14), transparent 55%), var(--ink);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-bottom: 96px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clay);
  letter-spacing: 0.02em;
  margin: 0 0 20px;
}

.eyebrow em {
  color: var(--amber);
  font-style: normal;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--cream);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--cream-dim);
  max-width: 46ch;
  margin: 0 0 38px;
}

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

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  width: 380px;
  height: 380px;
  background: linear-gradient(160deg, var(--amber), var(--clay));
  border-radius: var(--radius-bill);
  opacity: 0.22;
  filter: blur(6px);
  animation: blob-morph 14s ease-in-out infinite;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%;
  }
  50% {
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
  }
}

.hero-mascot {
  position: relative;
  width: min(380px, 90%);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.bill-divider {
  position: relative;
  line-height: 0;
  color: var(--coffee);
}

.bill-divider svg {
  width: 100%;
  height: 70px;
  display: block;
}

.bill-divider path {
  fill: currentColor;
}

.bill-divider-flip {
  transform: scaleY(-1);
  color: var(--coffee);
  margin-bottom: -1px;
}

.principle {
  background: var(--coffee);
  padding: 8px 0 100px;
}

.principle-inner {
  max-width: 760px;
}

.principle-text {
  font-size: 19px;
  line-height: 1.75;
  color: var(--cream-dim);
  margin: 0 0 22px;
}

.principle-text em {
  color: var(--amber);
  font-style: normal;
  font-family: var(--font-display);
}

.traits {
  background: var(--ink);
  padding: 110px 0 120px;
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.trait-card {
  background: rgba(245, 233, 206, 0.035);
  border: 1px solid rgba(245, 233, 206, 0.08);
  border-radius: 22px;
  padding: 36px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
  opacity: 0;
  transform: translateY(18px);
}

.trait-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.trait-card:hover {
  border-color: rgba(226, 150, 60, 0.4);
  background: rgba(245, 233, 206, 0.06);
  transform: translateY(-4px);
}

.trait-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(226, 150, 60, 0.12);
  color: var(--amber);
  margin-bottom: 22px;
}

.trait-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 12px;
  color: var(--cream);
}

.trait-card p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 15.5px;
  line-height: 1.65;
}

.work {
  position: relative;
  background: var(--coffee);
}

.work-inner {
  text-align: center;
  max-width: 640px;
  padding: 20px 0 120px;
}

.work-inner .section-tag {
  display: inline-block;
}

.work-sub {
  color: var(--cream-dim);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 40px;
}

.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(245, 233, 206, 0.08);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.footer-brand img {
  border-radius: 50%;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--clay);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--amber);
}

.footer-copy {
  font-size: 13px;
  color: var(--coffee-dim);
}

@media (max-width: 880px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 128px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 60px;
  }

  .hero-art {
    order: -1;
    margin-bottom: 20px;
  }

  .hero-mascot {
    width: min(280px, 70%);
  }

  .hero-blob {
    width: 260px;
    height: 260px;
  }

  .trait-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
