:root {
  color-scheme: light;
  --mcd-yellow: #ffbc0d;
  --mcd-yellow-soft: #fff3c2;
  --mcd-red: #d92318;
  --mcd-red-dark: #a91b13;
  --ink: #171b23;
  --ink-soft: #4c5564;
  --surface: #ffffff;
  --surface-soft: #fffaf0;
  --line: #e7dfd2;
  --success: #177245;
  --danger: #b42318;
  --shadow-sm: 0 10px 28px rgba(30, 24, 17, .08);
  --shadow-lg: 0 24px 64px rgba(30, 24, 17, .14);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --content: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 249, 231, .82), rgba(255, 253, 247, .9)),
    url('/assets/optimized/home-bg.webp') center top / cover no-repeat scroll;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

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

.page-shell {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
  padding: 20px 0 44px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(231, 223, 210, .9);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.site-brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-brand-copy strong,
.site-brand-copy span {
  display: block;
}

.site-brand-copy strong {
  font-size: 1.06rem;
  font-weight: 850;
  letter-spacing: -.02em;
}

.site-brand-copy span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: .8rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-link,
.nav-button {
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-button:hover,
.nav-link[aria-current="page"] {
  background: var(--mcd-yellow-soft);
}

.nav-link.nav-management {
  padding-inline: 17px;
  background: var(--mcd-yellow);
}

.nav-link.nav-management:hover {
  background: #f0ad00;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid #1b68d3;
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) 0 54px;
}

.hero-copy {
  padding-inline: clamp(0px, 2vw, 20px);
}

.hero h1,
.team-copy h1,
.legal-card h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.3rem);
  line-height: .96;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--mcd-red);
}

.button-primary:hover {
  background: var(--mcd-red-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--mcd-yellow);
}

.button-secondary:hover {
  background: #f0ad00;
}

.button-tertiary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.slideshow-card {
  position: relative;
  min-height: clamp(360px, 48vw, 530px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--mcd-red), var(--mcd-red-dark));
  box-shadow: var(--shadow-lg);
  contain: layout paint;
}

.slideshow {
  position: absolute;
  inset: 0;
  background: #65150f;
}

.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms ease;
}

.slideshow img.is-active {
  opacity: 1;
}

.slideshow-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--mcd-yellow);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
}

.slideshow-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 10, 8, .75));
  content: "";
  pointer-events: none;
}

.slideshow-caption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  left: 24px;
}

.slideshow-caption h2 {
  margin: 0 0 3px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.slideshow-caption p {
  margin: 0;
  color: rgba(255, 255, 255, .86);
}

.content-card {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
}

.content-card h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: -.04em;
}

.content-card > p,
.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 780;
  text-decoration: none;
}

.social-link:hover {
  border-color: #ccb73b;
  background: var(--mcd-yellow-soft);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.team-section {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.person-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.person-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  color: var(--mcd-red);
  background: var(--mcd-yellow-soft);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
}

.person-info {
  padding: 18px;
}

.person-role {
  margin: 0 0 4px;
  color: var(--mcd-red-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.person-info h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -.025em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 20px 4px 0;
  color: var(--ink-soft);
  font-size: .9rem;
  content-visibility: auto;
  contain-intrinsic-size: 100px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  font-weight: 720;
  text-underline-offset: 3px;
}

.public-dialog {
  width: min(660px, calc(100% - 24px));
  max-height: min(860px, calc(100dvh - 24px));
  margin: auto;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .32);
}

.public-dialog::backdrop {
  background: rgba(16, 18, 23, .7);
}

.dialog-inner {
  position: relative;
  padding: clamp(22px, 5vw, 36px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-content h2 {
  max-width: calc(100% - 48px);
  margin: 0;
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  letter-spacing: -.04em;
}

.dialog-content > p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.choice-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}

.choice-card:hover {
  border-color: #c69c00;
  background: var(--mcd-yellow-soft);
}

.choice-card strong,
.choice-card span {
  display: block;
}

.choice-card strong {
  font-size: 1.05rem;
}

.choice-card span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: .9rem;
}

.public-form {
  margin-top: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  min-width: 0;
}

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

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: .88rem;
  font-weight: 780;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #c8c1b7;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.form-field :where(input, textarea, select):focus {
  border-color: #1b68d3;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 720;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.button[disabled] {
  cursor: wait;
  opacity: .65;
}

.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 28px;
}

.team-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
}

.team-copy p {
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.team-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.value-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
}

.value-card h2 {
  margin: 0;
  font-size: 1.28rem;
}

.value-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.legal-card {
  max-width: 900px;
  margin: 28px auto 0;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  font-size: clamp(2.35rem, 6vw, 4.25rem);
}

.legal-card h2 {
  margin: 34px 0 10px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  letter-spacing: -.02em;
}

.legal-card p,
.legal-card li {
  color: #3f4855;
}

.legal-card li + li {
  margin-top: 10px;
}

.legal-date {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: .92rem;
}

.legal-note {
  margin: 24px 0 0;
  padding: 18px;
  border-left: 4px solid var(--mcd-yellow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-soft);
}

.scroll-top {
  position: fixed;
  z-index: 50;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #d3a600;
  border-radius: 50%;
  color: var(--ink);
  background: var(--mcd-yellow);
  box-shadow: 0 10px 28px rgba(41, 31, 7, .2);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top svg {
  width: 22px;
  height: 22px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 880px) {
  body {
    background:
      linear-gradient(rgba(255, 249, 231, .85), rgba(255, 253, 247, .92)),
      url('/assets/optimized/home-bg-mobile.webp') center top / cover no-repeat scroll;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link,
  .nav-button {
    flex: 0 0 auto;
  }

  .hero,
  .team-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .slideshow-card {
    min-height: min(480px, 82vw);
  }

  .team-grid,
  .team-values {
    grid-template-columns: 1fr;
  }

  .person-card {
    display: grid;
    grid-template-columns: minmax(120px, 35%) 1fr;
    align-items: center;
  }

  .person-photo {
    width: 100%;
    height: 100%;
    min-height: 180px;
    aspect-ratio: auto;
  }

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

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, var(--content));
    padding-top: 10px;
  }

  .site-header {
    padding: 12px;
    border-radius: 20px;
  }

  .site-brand img {
    width: 46px;
    height: 46px;
  }

  .hero {
    gap: 30px;
    padding: 42px 4px 28px;
  }

  .hero h1,
  .team-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .content-card,
  .team-section,
  .team-copy,
  .legal-card {
    border-radius: 24px;
  }

  .choice-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .form-actions,
  .form-actions .button {
    width: 100%;
  }

  .person-card {
    grid-template-columns: 1fr;
  }

  .person-photo {
    min-height: 230px;
    aspect-ratio: 4 / 3;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button,
  .nav-link,
  .nav-button,
  .social-link,
  .choice-card {
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (forced-colors: active) {
  .button,
  .nav-link,
  .nav-button,
  .choice-card,
  .scroll-top {
    border: 1px solid ButtonText;
  }
}
