:root {
  color-scheme: light;
  --bg: #f7fbf8;
  --surface: #ffffff;
  --surface-strong: #eef8ef;
  --text: #13201a;
  --muted: #5d6b63;
  --line: rgba(19, 32, 26, 0.12);
  --green: #16794c;
  --green-dark: #0f5737;
  --mint: #bff3d1;
  --gold: #f5a623;
  --coral: #e56f51;
  --blue: #3267d6;
  --shadow: 0 24px 70px rgba(36, 78, 54, 0.16);
  --radius: 8px;
  --max: 1160px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101612;
  --surface: #17221c;
  --surface-strong: #20352a;
  --text: #f0f7f2;
  --muted: #b9c8be;
  --line: rgba(240, 247, 242, 0.14);
  --green: #68d391;
  --green-dark: #9ae6b4;
  --mint: #215f43;
  --gold: #ffc857;
  --coral: #ff8c66;
  --blue: #7aa7ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(22, 121, 76, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-strong) 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--text);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--green);
  color: white;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.theme-toggle {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
}

.nav-links a:hover,
.nav-links a.is-active,
.theme-toggle:hover {
  background: var(--surface);
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: 92px;
}

.hero {
  min-height: min(720px, calc(100vh - 104px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: 54px;
  padding-top: 48px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6.4vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-text,
.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.coffee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 100%;
  padding: 12px 18px;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.button.primary {
  background: var(--green);
  color: white;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
}

.coffee-button {
  background: var(--gold);
  color: #241509;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-stats strong {
  color: var(--text);
}

.hero-visual {
  position: relative;
  min-height: 450px;
}

.hero-visual img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.floating-card.top {
  top: 24px;
  left: -24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.floating-card.bottom {
  right: -20px;
  bottom: 24px;
  max-width: 280px;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--green) 18%, transparent);
}

.section-heading {
  margin-bottom: 34px;
}

.mission-grid,
.split-section,
.coffee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 36px;
  align-items: center;
}

.mission-panel,
.join-box,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}

.mission-panel span {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-weight: 800;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 10px;
}

.work-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card,
.project-card {
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.work-card:hover,
.work-card:focus,
.project-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--green) 44%, var(--line));
  box-shadow: var(--shadow);
  outline: none;
}

.work-card p,
.project-card p,
.split-copy p,
.coffee-copy p,
.contact-card p {
  color: var(--muted);
}

.card-icon,
.tag {
  display: inline-flex;
  margin-bottom: 42px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--green-dark);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.tag {
  margin-bottom: 26px;
  background: color-mix(in srgb, var(--blue) 12%, var(--surface));
  color: var(--blue);
}

.split-section,
.coffee,
.contact-card {
  border-top: 1px solid var(--line);
}

.join-box h3 {
  margin-bottom: 18px;
}

.coffee {
  align-items: center;
}

.coffee-visual {
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 26%, transparent), transparent),
    var(--surface);
  box-shadow: var(--shadow);
}

.cup {
  position: relative;
  width: 170px;
  height: 130px;
  border-radius: 18px 18px 44px 44px;
  background: linear-gradient(180deg, #fff7e5, #f0c178);
  box-shadow: inset 0 -18px 0 rgba(94, 47, 12, 0.12), 0 24px 42px rgba(90, 56, 17, 0.2);
}

.cup::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -46px;
  width: 58px;
  height: 58px;
  border: 14px solid #f0c178;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.steam {
  position: absolute;
  bottom: 138px;
  width: 18px;
  height: 70px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
  animation: steam 2.4s ease-in-out infinite;
}

.steam.one {
  left: 36px;
}

.steam.two {
  left: 76px;
  animation-delay: 0.35s;
}

.steam.three {
  left: 116px;
  animation-delay: 0.7s;
}

.note {
  font-size: 0.92rem;
}

.contact {
  padding-top: 60px;
}

.contact-card {
  text-align: center;
}

.contact-card h2 {
  margin-inline: auto;
}

.email-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: clamp(1.08rem, 3vw, 1.5rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--green-dark);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(18px) scaleY(0.78);
  }
  35% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(-24px) scaleY(1.08);
  }
}

@media (max-width: 980px) {
  .hero,
  .mission-grid,
  .split-section,
  .coffee {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 380px;
    height: 400px;
  }

  .work-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-card.top {
    left: 16px;
  }

  .floating-card.bottom {
    right: 16px;
  }
}

@media (max-width: 720px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .theme-toggle {
    text-align: left;
  }

  .section {
    padding: 68px 0;
    scroll-margin-top: 82px;
  }

  .hero {
    padding-top: 44px;
    gap: 34px;
  }

  h1 {
    font-size: clamp(2.6rem, 16vw, 4.6rem);
  }

  .hero-actions,
  .coffee-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .work-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .project-card {
    min-height: 210px;
  }

  .floating-card {
    position: static;
    margin-top: 12px;
  }

  .hero-visual {
    display: grid;
  }

  .hero-visual img {
    height: 320px;
    min-height: 320px;
  }

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

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