/*
  Glopen-style corporate site
  Navy header · white body · gold accents
*/

:root {
  --navy-900: #1a2332;
  --navy-800: #1e2d42;
  --navy-700: #243652;
  --gold-500: #c4a35a;
  --gold-600: #b08d45;
  --gold-400: #d4b87a;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --text: #2d3748;
  --text-muted: #5a6578;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-pill: 999px;

  --bg-base: #edf1f6;
  --bg-surface: rgba(255, 255, 255, 0.78);
  --bg-surface-muted: rgba(248, 249, 251, 0.82);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-width: 1200px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(30, 45, 66, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 55% at 100% 8%, rgba(196, 163, 90, 0.1), transparent 50%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(30, 45, 66, 0.06), transparent 55%),
    linear-gradient(165deg, #f9fafb 0%, #eef2f7 42%, #f4f6fa 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 45, 66, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 45, 66, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 110% 90% at 50% 35%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 110% 90% at 50% 35%, #000 15%, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 340px at 88% 12%, rgba(196, 163, 90, 0.09), transparent 68%),
    radial-gradient(circle 420px at 6% 55%, rgba(36, 54, 82, 0.07), transparent 68%),
    radial-gradient(circle 300px at 72% 88%, rgba(196, 163, 90, 0.06), transparent 65%);
}

main {
  position: relative;
  isolation: isolate;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: 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;
}

.container {
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-200%);
  transition: transform 200ms var(--ease);
  z-index: 1000;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 200ms var(--ease);
}
.header[data-elevated="true"] {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}

.header__social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.nav__group--left {
  flex: 1;
  justify-content: flex-start;
}

.nav__group--right {
  flex: 1;
  justify-content: flex-end;
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 0 12px;
  z-index: 1;
}

.social-link {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-800);
  transition: transform 150ms var(--ease), opacity 150ms;
}
.social-link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}
.social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.nav-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--white);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.nav__group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 150ms;
}
.nav__link:hover {
  color: var(--white);
}

.nav__chevron {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease);
}

.nav__dropdown {
  position: relative;
}
.nav__link--dropdown[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  padding: 8px 0;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  z-index: 50;
}
.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu,
.nav__menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  transition: background 120ms, color 120ms;
}
.nav__menu a:hover {
  background: var(--gray-50);
  color: var(--navy-800);
}

/* Brand / Logo */
.brand__mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}
.brand__name {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  transition: background 160ms var(--ease), color 160ms, transform 140ms var(--ease), box-shadow 160ms;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn--outline {
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}
.btn--outline:hover {
  background: var(--gray-50);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn--gold {
  background: var(--gold-500);
  color: var(--white);
  border: 1px solid var(--gold-600);
  box-shadow: 0 4px 16px rgba(196, 163, 90, 0.3);
  text-transform: none;
  letter-spacing: 0.02em;
}
.btn--gold:hover {
  background: var(--gold-600);
  box-shadow: 0 6px 20px rgba(196, 163, 90, 0.4);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 64px 0 56px;
  background: transparent;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -8%;
  width: min(520px, 55vw);
  height: min(520px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.1) 0%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: min(480px, 50vw);
  height: min(480px, 50vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 45, 66, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.hero__title {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
}

.hero__price {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-500);
  letter-spacing: 0.02em;
}

.hero__desc {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 52ch;
}
.hero__intro {
  margin-top: 16px;
  width: 100%;
}
.hero__intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}
.hero__intro p + p {
  margin-top: 14px;
}

.hero__content > .btn {
  margin-top: 28px;
}

/* ── Image Gallery ── */
.hero__gallery {
  width: 100%;
  display: flex;
  align-items: center;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.gallery__cell {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(30, 45, 66, 0.1);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

.gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 45, 66, 0.14);
}

/* ── Products ── */
.section {
  padding: 72px 0 80px;
}

.section--products {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface-muted);
  border-top: 1px solid rgba(30, 45, 66, 0.06);
}

.section--products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 90, 0.4), transparent);
  pointer-events: none;
}

.section--products::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 520px at 100% 0%, rgba(30, 45, 66, 0.05), transparent 60%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 80px,
      rgba(30, 45, 66, 0.012) 80px,
      rgba(30, 45, 66, 0.012) 81px
    );
}

.section--products > .container {
  position: relative;
  z-index: 1;
}

.section__head {
  margin-bottom: 44px;
}

.section__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.section__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.15;
  max-width: 20ch;
}

.section__lead {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 26px 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(30, 45, 66, 0.08);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(30, 45, 66, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30, 45, 66, 0.1);
}

.product-card__name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-800);
}

.product-card__tagline {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-600);
  line-height: 1.5;
  min-height: 2.9em;
}

.product-card__blocks {
  display: grid;
  gap: 12px;
  flex: 1;
}

.product-card__media {
  margin: 6px 0 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.product-card__media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.product-block {
  padding: 14px;
  background: var(--gray-50);
  border-radius: 6px;
  border: 1px solid var(--gray-100);
}

.product-block__title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
}

.product-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 12px;
  align-self: flex-start;
  margin-top: auto;
}

/* ── AI Board Game Robots ── */
.section--chess-robots {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border-top: 1px solid rgba(30, 45, 66, 0.06);
}

.section--chess-robots::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 90, 0.35), transparent);
  pointer-events: none;
}

.section--chess-robots::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 400px at 0% 50%, rgba(196, 163, 90, 0.06), transparent 65%),
    radial-gradient(circle 360px at 100% 80%, rgba(30, 45, 66, 0.05), transparent 65%);
}

.section--chess-robots > .container {
  position: relative;
  z-index: 1;
}

.section__head--wide {
  max-width: 720px;
}

.section__title--wide {
  max-width: none;
}

.robot-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.pillar-card {
  padding: 20px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
}

.pillar-card__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy-800);
}

.pillar-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.robot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.robot-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 45, 66, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(30, 45, 66, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

.robot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(30, 45, 66, 0.08);
}

.robot-card--featured {
  border-color: rgba(196, 163, 90, 0.35);
}

.robot-card__media {
  aspect-ratio: 16 / 9;
  background: var(--white);
  overflow: hidden;
}

.robot-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.robot-card__media--judy {
  background: var(--white);
}

.robot-card__media--judy img {
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.12);
}

.robot-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
  flex: 1;
}

.robot-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.robot-card__model {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
  padding: 4px 8px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 4px;
}

.robot-card__name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.3;
}

.robot-card__tagline {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-600);
  line-height: 1.45;
}

.robot-card__list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.robot-card__list li + li {
  margin-top: 6px;
}

/* ── Calligraphy Master ── */
.section--calligraphy {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface-muted);
  border-top: 1px solid rgba(30, 45, 66, 0.06);
}

.section--calligraphy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 90, 0.4), transparent);
  pointer-events: none;
}

.section--calligraphy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(30, 45, 66, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(196, 163, 90, 0.07), transparent 55%);
}

.section--calligraphy > .container {
  position: relative;
  z-index: 1;
}

.calligraphy-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.calligraphy-showcase__body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 28px 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(30, 45, 66, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(30, 45, 66, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.calligraphy-showcase__content {
  flex: 0 0 auto;
}

.calligraphy-showcase__media {
  margin: 0;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(30, 45, 66, 0.08);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(30, 45, 66, 0.08);
}

.calligraphy-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.calligraphy-showcase__intro {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

.calligraphy-showcase__features {
  margin: 0;
  padding: 16px 18px;
  list-style: none;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
}

.calligraphy-showcase__features li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--navy-800);
}

.calligraphy-showcase__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-600);
  transform: translateY(-50%);
}

.calligraphy-showcase__features li + li {
  margin-top: 10px;
}

.calligraphy-components {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--gray-100);
}

.calligraphy-components__list {
  display: grid;
  gap: 10px;
}

.calligraphy-components__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-700);
}

.calligraphy-component {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  border-left: 3px solid var(--gold-600);
}

.calligraphy-component__index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold-600);
  background: var(--white);
  border: 1px solid rgba(196, 163, 90, 0.35);
  border-radius: 6px;
}

.calligraphy-component__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.35;
}

.calligraphy-component__text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

button.btn {
  border: none;
  font-family: inherit;
}

/* ── Contact Modal ── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
}
.contact-modal[data-open="true"] {
  display: grid;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(26, 35, 50, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.contact-modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  background: var(--gray-50);
  color: var(--navy-800);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms;
}
.contact-modal__close:hover {
  background: var(--gray-100);
}

.contact-modal__title {
  margin: 0 36px 6px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-800);
}

.contact-modal__desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-form {
  display: grid;
  gap: 0;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.contact-form__row .field {
  margin-bottom: 0;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-800);
}

.req {
  color: #c0392b;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(196, 163, 90, 0.18);
}

.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.contact-form__status {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-form__status[data-type="error"] {
  color: #c0392b;
}

.contact-form__status[data-type="success"] {
  color: #1a7f4b;
}

/* ── Partners ── */
.partners {
  padding: 36px 0 48px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}

.partners__track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.partner-logo {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 200ms, color 200ms;
}
.partner-logo:hover {
  opacity: 1;
  color: var(--navy-700);
}

/* ── Footer ── */
.footer {
  padding: 28px 0 36px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__left {
  flex: 1;
  min-width: min(100%, 520px);
}
.footer__copy {
  margin: 0;
  line-height: 1.6;
}
.footer__contact {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}
.footer__contact a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition: color 150ms;
}
.footer__contact a:hover {
  color: var(--gold-400);
}
.footer__sep {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.35);
}
.footer__links {
  display: flex;
  gap: 20px;
  align-self: center;
  flex-shrink: 0;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 150ms;
}
.footer__links a:hover {
  color: var(--gold-400);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery__cell,
  .btn,
  .social-link {
    transition: none;
  }
}
