/* Koralla — logo-aligned palette (deep brown, warm gold, cream) */
:root {
  --brown-deep: #3d2914;
  --brown-mid: #5c3d24;
  --cream: #f7f2e8;
  --cream-dark: #efe6d8;
  --cream-card: #fffdf8;
  --tan-gold: #c4a574;
  --tan-light: #dcc9a8;
  --gold: #b8956a;
  --gold-soft: #dcc9a8;
  --copper: #6b4a2e;
  --forest: #2d3e28;
  --bg-deep: #2a1a0f;
  --bg-elevated: #f0e8dc;
  --bg-card: #fffdf8;
  --text: #2a1f15;
  --text-muted: #6b5b48;
  --text-on-dark: #f7f2e8;
  --line: rgba(61, 41, 20, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-hero: cubic-bezier(0.65, 0, 0.25, 1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 165, 116, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 15%, rgba(91, 61, 36, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(196, 165, 116, 0.12), transparent 45%);
  animation: ambientDrift 28s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(2%, 1%) rotate(1.5deg);
  }
}

body.modal-open {
  overflow: hidden;
}

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

.grain--light {
  mix-blend-mode: multiply;
  opacity: 0.045;
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 248, 235, 0.09) 0%, transparent 45%),
    radial-gradient(circle, rgba(184, 149, 106, 0.24) 0%, transparent 68%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
  will-change: transform;
  mix-blend-mode: multiply;
}

body:hover .cursor-glow {
  opacity: 1;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  color: var(--brown-deep);
  background: rgba(247, 242, 232, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition:
    padding 0.45s var(--ease-soft),
    background 0.45s var(--ease-soft),
    box-shadow 0.45s var(--ease-soft),
    border-color 0.45s;
}

.site-header--scrolled {
  padding-block: 0.45rem;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 40px rgba(42, 26, 15, 0.06);
  border-bottom-color: rgba(61, 41, 20, 0.08);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-switch--drawer {
  margin-bottom: 1.5rem;
}

.lang-btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--brown-deep);
  color: var(--cream);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo--img {
  line-height: 0;
}

.logo-image {
  height: 48px;
  width: auto;
  max-width: min(42vw, 180px);
  object-fit: contain;
  display: block;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 1.1rem;
}

.logo-text {
  font-size: 1.15rem;
}

.nav {
  display: none;
  gap: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  opacity: 0.88;
  transition: opacity 0.3s var(--ease-out), color 0.3s;
}

.nav a:hover {
  opacity: 1;
}

.nav a:not(.is-active)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--tan-gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.42s var(--ease-soft);
}

.nav a:not(.is-active):hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav a.is-active::after {
  display: none;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--brown-deep);
  border-radius: 999px;
  color: var(--brown-deep);
  transition:
    background 0.35s var(--ease-soft),
    color 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
}

.nav-cta:hover {
  background: var(--brown-deep);
  color: var(--cream);
  border-color: var(--brown-deep);
  box-shadow: 0 8px 24px rgba(61, 41, 20, 0.2);
}

.nav-cta--btn {
  font: inherit;
  cursor: pointer;
  background: transparent;
}

.nav a.is-active {
  color: var(--gold);
}

.mobile-nav-cta {
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-align: left;
  cursor: pointer;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  top: 72px;
  z-index: 99;
  background: rgba(42, 26, 15, 0.97);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Hero — vertical 3-slide carousel */
.hero-vslider {
  position: relative;
  min-height: 100dvh;
  padding-top: 72px;
  background: var(--brown-deep);
}

.hero-vslider-viewport {
  height: calc(100dvh - 72px);
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.hero-vslider-track {
  display: flex;
  flex-direction: column;
  height: 300vh;
  transition: transform 1.15s var(--ease-hero);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100vh;
  min-height: calc(100dvh - 72px);
  height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  background-color: var(--brown-deep);
  background-image: var(--hero-slide-img);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-active {
    animation: heroKenPan 24s ease-in-out infinite alternate;
  }
}

@keyframes heroKenPan {
  0% {
    background-position: 48% 52%;
  }
  100% {
    background-position: 56% 44%;
  }
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(45, 29, 18, 0.94) 0%,
    rgba(45, 29, 18, 0.55) 42%,
    rgba(61, 41, 20, 0.72) 100%
  );
}

.hero-slide-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
}

.hero-slide .hero-slide-inner > .hero-eyebrow,
.hero-slide .hero-slide-inner > .hero-title,
.hero-slide .hero-slide-inner > .hero-lead,
.hero-slide .hero-slide-inner > .hero-actions {
  opacity: 0;
  transform: translateY(1.75rem);
  filter: blur(10px);
  transition:
    opacity 0.75s var(--ease-soft),
    transform 0.85s var(--ease-soft),
    filter 0.65s var(--ease-soft);
}

.hero-slide.is-active .hero-slide-inner > .hero-eyebrow {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: 0.06s;
}

.hero-slide.is-active .hero-slide-inner > .hero-title {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: 0.14s;
}

.hero-slide.is-active .hero-slide-inner > .hero-lead {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: 0.26s;
}

.hero-slide.is-active .hero-slide-inner > .hero-actions {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: 0.38s;
}

.hero-slide:not(.is-active) .hero-slide-inner > .hero-eyebrow,
.hero-slide:not(.is-active) .hero-slide-inner > .hero-title,
.hero-slide:not(.is-active) .hero-slide-inner > .hero-lead,
.hero-slide:not(.is-active) .hero-slide-inner > .hero-actions {
  transition-duration: 0.22s;
  transition-delay: 0s !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide .hero-slide-inner > .hero-eyebrow,
  .hero-slide .hero-slide-inner > .hero-title,
  .hero-slide .hero-slide-inner > .hero-lead,
  .hero-slide .hero-slide-inner > .hero-actions {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.hero-vslider-chrome {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-vslider-dir {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 242, 232, 0.35);
  background: rgba(42, 26, 15, 0.45);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}

.hero-vslider-dir:hover {
  background: rgba(196, 165, 116, 0.35);
  border-color: var(--tan-gold);
}

.hero-arrow {
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 4px;
}

.hero-arrow--down {
  transform: rotate(-135deg);
  margin-top: -4px;
}

.hero-vslider-dots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(247, 242, 232, 0.45);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.hero-dot.is-active {
  background: var(--tan-gold);
  border-color: var(--tan-gold);
  transform: scale(1.2);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.35);
}

.hero-vslider-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.25rem, 4vw, 3rem);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.55);
}

@media (max-width: 640px) {
  .hero-vslider-chrome {
    right: 0.75rem;
  }
  .hero-vslider-dir {
    width: 38px;
    height: 38px;
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan-light);
  margin: 0 0 1.5rem;
}

.eyebrow-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--tan-gold), transparent);
}

.year-counter {
  font-variant-numeric: tabular-nums;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 1.5rem;
  color: var(--cream);
}

.title-line {
  display: block;
}

.title-accent {
  color: var(--tan-light);
}

.hero-slide .title-accent em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
}

.section .title-accent em {
  color: var(--gold);
}

.hero-lead {
  max-width: 32rem;
  color: rgba(247, 242, 232, 0.78);
  margin: 0 0 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.4s var(--ease-spring),
    background 0.35s,
    color 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
}

.btn-primary {
  overflow: hidden;
  background: var(--tan-gold);
  color: var(--brown-deep);
  border-color: var(--tan-gold);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -40%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg) translateX(-180%);
  transition: transform 0.65s var(--ease-soft);
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--tan-light);
  border-color: var(--tan-light);
  box-shadow: 0 12px 32px rgba(61, 41, 20, 0.18);
}

.btn-primary:hover::before {
  transform: skewX(-18deg) translateX(520%);
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary::before {
    display: none;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 242, 232, 0.35);
}

.btn-ghost:hover {
  border-color: var(--tan-light);
  color: var(--cream);
}

.hero-slide .btn-ghost {
  color: var(--cream);
  border-color: rgba(247, 242, 232, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--tan-gold), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Marquee */
.strip-marquee {
  position: relative;
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
  padding: 0.95rem 0;
  transform: skewY(-0.6deg);
  margin-block: -0.35rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 32s linear infinite;
  will-change: transform;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.strip-marquee .marquee-track span {
  background: linear-gradient(90deg, var(--text-muted), var(--brown-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.92;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .strip-marquee .marquee-track span {
    color: var(--text-muted);
    background: none;
    opacity: 1;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Stats */
.stats-strip {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brown-deep);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Sections */
.section {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.section-grid {
  display: grid;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 900px) {
  .section-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.section-grid--about {
  align-items: start;
}

.about-figure {
  margin: 0;
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
}

.about-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transform: scale(1.02);
}

.about-card--overlap {
  position: relative;
  margin-top: -4rem;
  margin-inline: 1.25rem;
  z-index: 2;
}

@media (min-width: 900px) {
  .about-card--overlap {
    margin-inline: 2rem;
  }
}

.section-lead--tight {
  margin-top: -0.75rem;
}

/* Heritage timeline */
.heritage-head {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.heritage-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .heritage-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .heritage-inner .timeline {
    margin: 0;
    max-width: none;
  }
}

.heritage-visual {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px rgba(61, 41, 20, 0.1);
  background: var(--cream-dark);
}

.heritage-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(201, 162, 39, 0.35);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg-deep);
}

.timeline-year {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: var(--brown-deep);
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}

.section-title.light em {
  color: var(--cream);
}

.title-num {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
  font-weight: 300;
}

.section-lead.narrow {
  max-width: 32rem;
}

.about-visual {
  position: relative;
}

.about-card {
  background: linear-gradient(145deg, var(--cream-card), var(--cream-dark));
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 28px 60px rgba(61, 41, 20, 0.12);
}

.about-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  margin: 0;
  color: var(--brown-deep);
}

.about-quote strong {
  color: var(--brown-mid);
  font-weight: 400;
}

.about-float {
  margin-top: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 90%;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--line);
}

.about-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.about-list strong {
  color: var(--gold-soft);
  font-weight: 600;
  margin-right: 0.5rem;
}

.link-arrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(232, 213, 163, 0.35);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}

.link-arrow:hover {
  color: var(--text);
  border-color: var(--text);
}

/* Facilities bento */
.facilities-head {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.bento {
  display: grid;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.bento-media {
  position: relative;
  padding: 0;
  min-height: 200px;
  overflow: hidden;
  background-image: var(--bento-img);
  background-size: cover;
  background-position: center;
}

.bento-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 10, 8, 0.15) 40%, rgba(12, 10, 8, 0.92) 100%);
}

.bento-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  margin-top: auto;
}

.bento-media .bento-body p {
  color: rgba(244, 240, 232, 0.78);
}

.bento-media h3 {
  color: var(--cream);
}

.bento-item:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-4px);
}

.bento-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.bento-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .bento-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .bento-tall {
    grid-row: span 2;
    min-height: 280px;
  }

  .bento-wide {
    grid-column: span 3;
    min-height: 240px;
  }
}

/* Products horizontal */
.products-head {
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.product-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 1200px;
  margin: 0 auto;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.product-card {
  flex: 0 0 min(85vw, 360px);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  padding: 0;
  transition:
    border-color 0.4s var(--ease-soft),
    background 0.4s,
    transform 0.45s var(--ease-spring),
    box-shadow 0.45s var(--ease-soft);
}

.product-card--visual {
  display: flex;
  flex-direction: column;
}

.product-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-visual img {
  transform: scale(1.06);
}

.product-body {
  padding: 1.75rem 2rem 2rem;
}

.product-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(61, 41, 20, 0.12);
}

.product-card-feature {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), var(--bg-card));
}

.product-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.product-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.product-card-feature .product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.25);
  pointer-events: none;
}

/* Health */
.health {
  background: linear-gradient(180deg, var(--brown-deep) 0%, var(--forest) 55%, #1a2418 100%);
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
}

.health .section-title {
  color: var(--cream);
}

.health-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .health-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.health-content p {
  color: rgba(244, 240, 232, 0.78);
  max-width: 36rem;
  margin: 0 0 1rem;
}

.health-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.health-chips span {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 240, 232, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.health-figure {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 232, 0.12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.health-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.health-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.nut-ring {
  position: relative;
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  animation: spinSlow 48s linear infinite;
}

.nut-ring span {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--copper));
  box-shadow: inset -4px -4px 12px rgba(0, 0, 0, 0.35);
  top: 50%;
  left: 50%;
  margin: -18px;
}

.nut-ring span:nth-child(1) {
  transform: rotate(0deg) translateY(-140px);
}
.nut-ring span:nth-child(2) {
  transform: rotate(60deg) translateY(-140px);
}
.nut-ring span:nth-child(3) {
  transform: rotate(120deg) translateY(-140px);
}
.nut-ring span:nth-child(4) {
  transform: rotate(180deg) translateY(-140px);
}
.nut-ring span:nth-child(5) {
  transform: rotate(240deg) translateY(-140px);
}
.nut-ring span:nth-child(6) {
  transform: rotate(300deg) translateY(-140px);
}

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

/* Credentials */
.credentials {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-deep));
}

.credentials-inner {
  max-width: 900px;
  margin: 0 auto;
}

.credentials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.credentials-list li {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding-left: 3rem;
  position: relative;
}

.credentials-list li::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 1.35rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Blog preview */
.blog-preview-block {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.blog-preview-head {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem;
}

.blog-preview-head .section-title {
  flex: 1 1 280px;
  margin-bottom: 0;
}

.blog-preview-head .section-lead {
  flex: 1 1 240px;
  margin-bottom: 0;
}

.blog-all-link {
  flex-shrink: 0;
}

.blog-preview-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .blog-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .blog-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.blog-card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-6px);
}

.blog-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 1.5rem;
  position: relative;
}

.blog-card-meta {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.25;
}

.blog-card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-card-more {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--gold-soft);
}

/* Blog page */
.blog-main {
  padding-top: 5.5rem;
  min-height: 100dvh;
  background: var(--cream);
}

.blog-main .btn-ghost {
  color: var(--brown-deep);
  border-color: var(--line);
}

.blog-main .btn-ghost:hover {
  border-color: var(--tan-gold);
  color: var(--brown-mid);
}

.blog-page-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.blog-page-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.blog-page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.blog-page-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}

.blog-page-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.blog-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-list-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.3s;
}

@media (min-width: 768px) {
  .blog-list-row {
    grid-template-columns: 280px 1fr;
  }
}

.blog-list-row:hover {
  border-color: rgba(201, 162, 39, 0.35);
}

.blog-list-img {
  aspect-ratio: 16 / 10;
  min-height: 180px;
}

.blog-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-text {
  padding: 1.5rem 1.75rem 1.75rem;
}

.blog-list-text h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.5rem 0;
  font-weight: 700;
}

.blog-list-text p {
  margin: 0;
  color: var(--text-muted);
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 5rem;
}

.blog-back {
  margin-bottom: 1.5rem;
}

.blog-article-hero {
  margin: 0 0 2rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.blog-article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.blog-article-meta {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.blog-article-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 1.5rem;
  line-height: 1.15;
}

.blog-article-body p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.blog-article-body p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact {
  padding-bottom: 6rem;
}

.contact-split {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--bg-card);
}

@media (min-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.contact-visual {
  min-height: 280px;
}

.contact-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-card {
  padding: clamp(2rem, 5vw, 3rem);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-lead {
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-size: 1.0625rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.contact-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-note a {
  border-bottom: 1px solid rgba(163, 154, 140, 0.35);
  transition: color 0.25s;
}

.contact-note a:hover {
  color: var(--gold-soft);
}

.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--line);
}

/* Chairman */
.chairman {
  background: linear-gradient(165deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.chairman-shell {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--cream-card);
  box-shadow: 0 40px 80px rgba(61, 41, 20, 0.08);
  overflow: hidden;
}

.chairman-pattern {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  border: 3px solid rgba(196, 165, 116, 0.35);
  border-radius: 50% 50% 50% 0;
  pointer-events: none;
  opacity: 0.6;
}

.chairman-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

@media (min-width: 768px) {
  .chairman-grid {
    grid-template-columns: minmax(200px, 280px) 1fr;
  }
}

.chairman-photo {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 56px rgba(61, 41, 20, 0.12);
}

.chairman-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.chairman-inner {
  position: relative;
  min-width: 0;
}

.chairman-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin-bottom: 1rem;
}

.chairman-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: var(--brown-deep);
}

.chairman-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.chairman-body p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 52rem;
}

.chairman-sig {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chairman-sig strong {
  font-size: 1.125rem;
  color: var(--brown-deep);
}

.chairman-sig span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Product catalog grid */
.product-catalog {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  perspective: 1400px;
  transform-style: preserve-3d;
}

@media (min-width: 640px) {
  .product-catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .product-catalog {
    grid-template-columns: repeat(3, 1fr);
  }
}

.catalog-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.35rem 1.5rem;
  transition:
    border-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft),
    transform 0.35s var(--ease-soft);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.catalog-card-media {
  margin: -1.35rem -1.5rem 0.85rem;
  aspect-ratio: 16 / 10;
  background: var(--cream-dark);
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.catalog-card:hover {
  border-color: rgba(196, 165, 116, 0.45);
  box-shadow: 0 20px 48px rgba(61, 41, 20, 0.1);
}

.catalog-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--tan-gold);
  letter-spacing: 0.1em;
}

.catalog-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.5rem 0 0.35rem;
  color: var(--brown-deep);
}

.catalog-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.section-lead--note {
  font-size: 0.95rem;
  opacity: 0.9;
}

.product-scroll--highlights {
  margin-top: 0.5rem;
}

/* Certificate wall */
.cert-wall {
  background: var(--cream-dark);
  border-block: 1px solid var(--line);
}

.cert-wall-head {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem;
}

.cert-wall-head .section-title {
  flex: 1 1 280px;
  margin-bottom: 0;
}

.cert-wall-head .section-lead {
  flex: 2 1 320px;
  margin-bottom: 0;
}

.cert-wall-cta {
  flex-shrink: 0;
}

.cert-wall-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cert-wall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cert-wall-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cert-chip {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}

.cert-chip:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 165, 116, 0.5);
}

.cert-chip-code {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--brown-mid);
  margin-bottom: 0.5rem;
}

.cert-chip h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  color: var(--brown-deep);
}

.cert-chip p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Certificates page */
.cert-page-main {
  padding: 5.5rem clamp(1.25rem, 4vw, 3rem) 4rem;
  min-height: 100dvh;
  background: var(--cream);
}

.cert-page-banner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(61, 41, 20, 0.08);
  aspect-ratio: 21 / 9;
  background: var(--cream-dark);
}

.cert-page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-page-hero {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.cert-page-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin: 0 0 0.5rem;
}

.cert-page-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--brown-deep);
}

.cert-page-h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.cert-page-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cert-page-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cert-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cert-page-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.cert-page-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--tan-gold), var(--brown-mid));
}

.cert-page-code {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brown-deep);
}

.cert-page-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0.75rem 0 0.5rem;
  color: var(--brown-deep);
}

.cert-page-card p {
  margin: 0;
  color: var(--text-muted);
}

.cert-page-footnote {
  max-width: 1100px;
  margin: 2rem auto 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Contact modal */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 26, 15, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--cream-card);
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: 0 50px 120px rgba(42, 26, 15, 0.35);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  opacity: 0;
  transform: scale(0.92) translateY(28px);
  transform-origin: center center;
  transition:
    opacity 0.45s var(--ease-soft),
    transform 0.55s var(--ease-spring),
    box-shadow 0.45s;
}

.modal.modal--open .modal-backdrop {
  opacity: 1;
}

.modal.modal--open .modal-panel {
  opacity: 1;
  transform: none;
  box-shadow: 0 60px 140px rgba(42, 26, 15, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal-panel {
    transition-duration: 0.01ms;
  }
  .modal-panel {
    transform: none;
  }
}

.modal-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brown-deep), var(--tan-gold), var(--brown-mid));
  border-radius: 1.25rem 1.25rem 0 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--brown-deep);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--tan-light);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  margin: 0.5rem 0 0.5rem;
  color: var(--brown-deep);
  padding-right: 2.5rem;
}

.modal-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-mid);
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  font: inherit;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--tan-gold);
  box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.25);
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.modal-submit {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}

.link-arrow--btn {
  display: inline;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(184, 149, 106, 0.4);
  padding: 0 0 2px;
  cursor: pointer;
  text-align: left;
}

.link-arrow--btn:hover {
  color: var(--brown-deep);
  border-color: var(--brown-deep);
}

@media (max-width: 520px) {
  .modal-form {
    grid-template-columns: 1fr;
  }
}

/* Reveal animation */
[data-reveal] {
  --reveal-stagger: 0;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  filter: blur(12px);
  transition:
    opacity 1s var(--ease-soft),
    transform 1s var(--ease-soft),
    filter 0.85s var(--ease-soft);
  transition-delay: calc(var(--reveal-stagger) * 0.055s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
