:root {
  --bg: #fbf7ee;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #26342d;
  --muted: #657268;
  --green: #58735e;
  --green-dark: #344b3a;
  --sage: #dce8d6;
  --terracotta: #c9784b;
  --terracotta-dark: #9f5534;
  --gold: #d5a84f;
  --line: rgba(38, 52, 45, 0.14);
  --shadow: 0 22px 60px rgba(69, 82, 73, 0.14);
  --radius: 28px;
  --radius-sm: 16px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(220, 232, 214, 0.75), transparent 34rem),
    linear-gradient(180deg, #fffaf0 0%, var(--bg) 44%, #f7efe4 100%);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:hover {
  color: var(--terracotta-dark);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(88, 115, 94, 0.16);
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-weight: 800;
  min-width: max-content;
}

.brand-mark {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: transparent;
  overflow: hidden;
  background: url("../images/utopia-logo.png") center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(88, 115, 94, 0.2);
  font-size: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.18rem;
}

.nav a {
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav a[aria-current="page"],
.nav a:hover {
  background: var(--sage);
  color: var(--green-dark);
}

main {
  overflow: hidden;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.section.tight {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.section-header {
  max-width: 740px;
  margin-bottom: 2rem;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  color: var(--terracotta-dark);
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--terracotta);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--green-dark);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5.8vw, 5.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

h3 {
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

p {
  margin: 0.75rem 0 0;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.hero {
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(2.5rem, 6vw, 5rem);
}

.hero-grid,
.split-grid,
.media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -2rem auto auto -3rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: rgba(213, 168, 79, 0.18);
  z-index: -1;
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  color: white;
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(52, 75, 58, 0.22);
}

.button.secondary {
  background: transparent;
  color: var(--green-dark);
  border-color: rgba(88, 115, 94, 0.35);
}

.button.secondary:hover {
  color: var(--green-dark);
  background: var(--sage);
  box-shadow: none;
}

.hero-card,
.image-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero-card img {
  height: min(62vw, 540px);
  min-height: 360px;
  object-fit: cover;
}

.image-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.image-card.wide img {
  aspect-ratio: 16 / 10;
}

.caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: min(88%, 420px);
  padding: 0.75rem 0.9rem;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.92);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(38, 52, 45, 0.12);
}

.hero-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.88rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.88);
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(38, 52, 45, 0.16);
  backdrop-filter: blur(16px);
  animation: badgeFloat 4.8s ease-in-out infinite;
}

.hero-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  box-shadow: 0 0 0 5px rgba(213, 168, 79, 0.18);
}

.hero-badge-top {
  top: 1.3rem;
  left: 1.3rem;
}

.hero-badge-bottom {
  right: 1.3rem;
  top: 7.2rem;
  animation-delay: -1.6s;
}

.photo-note {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.fact,
.card,
.panel,
.quote-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: 0 14px 40px rgba(69, 82, 73, 0.08);
}

.fact {
  padding: 1rem;
}

.fact strong {
  display: block;
  color: var(--green-dark);
  font-size: 1.18rem;
}

.fact span {
  color: var(--muted);
  font-size: 0.88rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

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

.card {
  padding: 1.35rem;
}

.card.clickable {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card.clickable:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 120, 75, 0.45);
  box-shadow: var(--shadow);
  color: inherit;
}

.card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.card .link-text {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--terracotta-dark);
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.panel {
  padding: clamp(1.25rem, 3vw, 2.2rem);
}

.panel.cream {
  background: linear-gradient(135deg, #fffdf8, #f6eadb);
}

.panel.green {
  background: linear-gradient(135deg, #eff6eb, #fffaf2);
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.profile-table th,
.profile-table td {
  padding: 0.88rem 0.2rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.profile-table th {
  width: 12rem;
  color: var(--muted);
  font-weight: 800;
}

.page-hero {
  padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--terracotta-dark);
}

.list-check {
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 1.8rem;
  margin: 0.55rem 0;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--terracotta-dark);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.timeline-item {
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 4.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.64);
}

.timeline-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.18rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.note {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--terracotta);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
}

.quote-box {
  padding: 1.4rem;
  background: #fffdf8;
}

.quote-box p:first-child {
  margin-top: 0;
}

.detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.detail-nav a {
  padding: 0.55rem 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  font-weight: 800;
  color: var(--green-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  font-weight: 800;
  color: var(--green-dark);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(88, 115, 94, 0.25);
  border-radius: 14px;
  padding: 0.84rem 0.95rem;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(201, 120, 75, 0.24);
  border-color: var(--terracotta);
}

.checkbox-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.45rem;
}

.submit-status {
  display: none;
  border-radius: 18px;
  padding: 1rem;
  background: #eff6eb;
  color: var(--green-dark);
  font-weight: 800;
}

.submit-status.show {
  display: block;
}

.progress {
  display: none;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(88, 115, 94, 0.18);
}

.progress.show {
  display: block;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--terracotta));
  transition: width 900ms ease;
}

.contact-form.is-submitting .progress span {
  width: 100%;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  background: #26342d;
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer h2,
.site-footer h3 {
  color: white;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
}

.source-list {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.source-list li {
  margin: 0.35rem 0;
}

.credits-table {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
}

.credits-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid var(--line);
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 920px) {
  .header-inner,
  .hero-grid,
  .split-grid,
  .media-grid,
  .page-hero .container,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
  }

  .quick-facts,
  .cards,
  .cards.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a {
    font-size: 0.84rem;
    padding: 0.46rem 0.58rem;
  }

  .quick-facts,
  .cards,
  .cards.two,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .hero-card img {
    min-height: 300px;
  }

  .caption {
    position: static;
    border-radius: 0;
    max-width: none;
  }

  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
    padding: 0.6rem 0;
  }

  .credits-row {
    grid-template-columns: 1fr;
  }
}

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

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* Visual refresh: warmer, more tactile UI with subtle motion */
body {
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 203, 119, 0.34), transparent 24rem),
    radial-gradient(circle at 82% 8%, rgba(145, 184, 139, 0.28), transparent 26rem),
    radial-gradient(circle at 70% 86%, rgba(201, 120, 75, 0.16), transparent 24rem);
  filter: saturate(1.08);
  animation: ambientDrift 18s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(88, 115, 94, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 115, 94, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--green));
  box-shadow: 0 0 18px rgba(201, 120, 75, 0.35);
}

.site-header {
  animation: headerDrop 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

body.is-scrolled .site-header {
  border-color: rgba(88, 115, 94, 0.2);
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 14px 42px rgba(52, 75, 58, 0.12);
}

.header-inner {
  transition: padding 240ms ease;
}

body.is-scrolled .header-inner {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.brand {
  position: relative;
  isolation: isolate;
}

.brand-mark {
  width: 68px;
  height: 68px;
  border: 3px solid rgba(255, 250, 242, 0.86);
  background-size: cover;
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.brand:hover .brand-mark {
  transform: rotate(-2deg) scale(1.05);
  filter: saturate(1.08) brightness(1.04);
  box-shadow: 0 16px 38px rgba(88, 115, 94, 0.28);
}

.nav {
  padding: 0.32rem;
  border: 1px solid rgba(88, 115, 94, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.nav a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a::before {
  content: "";
  position: absolute;
  inset: auto 16% 0.28rem;
  z-index: -1;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: currentColor;
  opacity: 0.55;
  transition: transform 220ms ease;
}

.nav a:hover {
  transform: translateY(-1px);
}

.nav a:hover::before {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: white;
  background: linear-gradient(135deg, var(--green), #77936a);
  box-shadow: 0 8px 22px rgba(88, 115, 94, 0.22);
}

.nav a[aria-current="page"]::before {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(2px);
}

.hero::before {
  width: clamp(16rem, 34vw, 31rem);
  height: clamp(16rem, 34vw, 31rem);
  left: -9rem;
  top: 4rem;
  background: rgba(213, 168, 79, 0.18);
  animation: floatBlob 12s ease-in-out infinite;
}

.hero::after {
  width: clamp(13rem, 26vw, 24rem);
  height: clamp(13rem, 26vw, 24rem);
  right: -7rem;
  bottom: 1rem;
  background: rgba(88, 115, 94, 0.16);
  animation: floatBlob 14s ease-in-out infinite reverse;
}

.hero-copy::before {
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.6), transparent 34%),
    rgba(213, 168, 79, 0.18);
  animation: softPulse 5s ease-in-out infinite;
}

.eyebrow {
  padding: 0.26rem 0.72rem 0.26rem 0;
  border-radius: 999px;
}

.hero h1,
.page-hero h1 {
  font-weight: 900;
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(88, 115, 94, 0.12);
}

.lead {
  text-wrap: pretty;
}

.button {
  position: relative;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, var(--green), #78966b 52%, var(--terracotta));
  box-shadow: 0 14px 30px rgba(88, 115, 94, 0.22);
}

.button::before {
  content: "";
  position: absolute;
  inset: -50% auto -50% -55%;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: left 560ms ease;
}

.button:hover::before {
  left: 115%;
}

.button.secondary {
  border: 1px solid rgba(88, 115, 94, 0.26);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(220, 232, 214, 0.9);
}

.button .ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  animation: ripple 620ms ease-out forwards;
}

.hero-card,
.image-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 242, 0.56));
  transition: transform 320ms ease, box-shadow 320ms ease, filter 320ms ease;
}

.hero-card {
  --mx: 0;
  --my: 0;
  padding: 0.55rem;
  transform: perspective(1000px) rotateX(calc(var(--my) * -5deg)) rotateY(calc(var(--mx) * 5deg));
}

.hero-card::before,
.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 34%, rgba(213, 168, 79, 0.12));
  opacity: 0;
  transition: opacity 260ms ease;
}

.hero-card:hover,
.image-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 72px rgba(69, 82, 73, 0.2);
}

.hero-card:hover {
  transform: perspective(1000px) rotateX(calc(var(--my) * -5deg)) rotateY(calc(var(--mx) * 5deg)) translateY(-6px);
}

.hero-card:hover::before,
.image-card:hover::before {
  opacity: 1;
}

.hero-card img,
.image-card img,
.card img {
  transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 320ms ease;
}

.hero-card:hover img,
.image-card:hover img,
.card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.02);
}

.caption {
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.quick-facts {
  perspective: 1000px;
}

.fact,
.card,
.panel,
.quote-box,
.timeline-item {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.fact::after,
.card::after,
.panel::after,
.timeline-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.58), transparent 38%);
  opacity: 0.68;
}

.fact > *,
.card > *,
.panel > *,
.timeline-item > * {
  position: relative;
  z-index: 1;
}

.fact {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.fact:hover {
  transform: translateY(-5px) rotateX(3deg);
  border-color: rgba(201, 120, 75, 0.32);
  box-shadow: 0 18px 46px rgba(69, 82, 73, 0.12);
}

.card {
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(250, 242, 229, 0.72));
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.card::before {
  content: "";
  position: absolute;
  right: -2.4rem;
  top: -2.4rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(213, 168, 79, 0.22), rgba(88, 115, 94, 0.16));
  transition: transform 380ms ease, opacity 260ms ease;
}

.card:hover::before {
  transform: scale(1.25) translate(-0.5rem, 0.5rem);
  opacity: 0.9;
}

.card.clickable:hover {
  transform: translateY(-8px);
}

.card .link-text {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: transform 180ms ease;
}

.card:hover .link-text {
  transform: translateX(4px);
}

.panel {
  background: rgba(255, 250, 242, 0.74);
}

.panel.cream {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.9), rgba(246, 234, 219, 0.78)),
    radial-gradient(circle at top right, rgba(213, 168, 79, 0.18), transparent 45%);
}

.panel.green {
  background:
    linear-gradient(135deg, rgba(239, 246, 235, 0.88), rgba(255, 250, 242, 0.82)),
    radial-gradient(circle at bottom left, rgba(88, 115, 94, 0.16), transparent 46%);
}

.page-hero {
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 1.4rem 2rem auto auto;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 120, 75, 0.22);
  opacity: 0.72;
  animation: rotateSlow 18s linear infinite;
}

.tag {
  transition: transform 180ms ease, background 180ms ease;
}

.tag:hover {
  transform: translateY(-2px);
  background: #edf3df;
}

.timeline-item {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.timeline-item:hover {
  transform: translateX(6px);
  border-color: rgba(88, 115, 94, 0.26);
  box-shadow: 0 16px 42px rgba(69, 82, 73, 0.12);
}

input,
select,
textarea {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:hover,
select:hover,
textarea:hover {
  transform: translateY(-1px);
}

.submit-status.show {
  animation: popIn 360ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.progress span {
  position: relative;
  overflow: hidden;
}

.progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.3) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.3) 75%, transparent 75%, transparent);
  background-size: 18px 18px;
  animation: stripeMove 700ms linear infinite;
}

.confetti-leaf {
  position: fixed;
  top: -1rem;
  z-index: 200;
  pointer-events: none;
  font-size: 1rem;
  filter: drop-shadow(0 5px 10px rgba(52, 75, 58, 0.16));
  animation: leafFall 1200ms ease-in forwards;
}

.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 20rem;
  height: 20rem;
  border-radius: 999px;
  background: rgba(213, 168, 79, 0.12);
}

.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 660ms ease, transform 660ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--stagger, 0ms);
}

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

body.js-enabled:not(.is-loaded) .hero-copy,
body.js-enabled:not(.is-loaded) .hero-card {
  opacity: 0;
  transform: translateY(14px);
}

body.js-enabled.is-loaded .hero-copy,
body.js-enabled.is-loaded .hero-card {
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ambientDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -1.4rem, 0) scale(1.03);
  }
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.2rem, -1.1rem, 0) scale(1.06);
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.72;
  }
}

@keyframes rotateSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stripeMove {
  to {
    background-position: 18px 0;
  }
}

@keyframes leafFall {
  to {
    opacity: 0;
    transform: translate3d(var(--leaf-x, 0), 105vh, 0) rotate(520deg);
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 920px) {
  .nav {
    border-radius: 24px;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .nav {
    width: 100%;
    padding: 0.38rem;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .hero-card {
    padding: 0.35rem;
  }

  .hero-badge {
    position: static;
    margin: 0.6rem 0.45rem 0;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .hero::before,
  .hero::after,
  .page-hero::before,
  .hero-copy::before,
  .progress span::after {
    animation: none !important;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
