:root {
  --background: #f7f4ef;
  --background-warm: #fbf8f2;
  --card: rgba(255, 255, 255, 0.97);
  --primary-card: rgba(255, 248, 238, 0.98);
  --title: #232323;
  --body: #5f6c74;
  --brand-blue: #6b8ca6;
  --logo-yellow: #f9e27d;
  --line: #ece8e2;
  --shadow-soft: 0 22px 70px rgba(35, 35, 35, 0.08);
  --shadow-card: 0 12px 34px rgba(35, 35, 35, 0.045);
  --shadow-hover: 0 24px 58px rgba(35, 35, 35, 0.11);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--title);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 34rem),
    linear-gradient(180deg, var(--background-warm) 0%, var(--background) 44%, #f5f1eb 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

body.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(107, 140, 166, 0.7);
  outline-offset: 5px;
}

.ambient-light {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .ambient-light {
    background:
      radial-gradient(
        520px circle at var(--mouse-x, 50%) var(--mouse-y, 20%),
        rgba(107, 140, 166, 0.085),
        rgba(255, 255, 255, 0) 58%
      );
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  body.is-loaded .ambient-light {
    opacity: 1;
  }
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 30px 20px 0;
}

.hero {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  animation-delay: 0s;
}

.hero-link {
  display: block;
  border-radius: 28px;
}

.hero-media {
  height: clamp(392px, 42vw, 456px);
  overflow: hidden;
  border: 1px solid rgba(236, 232, 226, 0.72);
  border-radius: 28px;
  background: #ead9c4;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.45s ease, transform 0.45s ease, border-color 0.45s ease;
}

.hero-link:hover .hero-media,
.hero-link:focus-visible .hero-media {
  border-color: rgba(107, 140, 166, 0.18);
  box-shadow: 0 30px 86px rgba(35, 35, 35, 0.12);
  transform: translateY(-2px);
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 54%;
  opacity: 0;
  transform: scale(1.006);
  transform-origin: 50% 54%;
  transition: opacity 1.1s ease, transform 0.6s ease-out;
}

body.is-loaded .hero-media img {
  opacity: 1;
}

.hero-copy {
  position: absolute;
  left: clamp(30px, 7vw, 86px);
  bottom: clamp(30px, 5vw, 52px);
  max-width: 360px;
  color: var(--title);
  pointer-events: none;
  text-wrap: balance;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(48px, 6.2vw, 76px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero-copy p {
  margin: 0;
  color: rgba(35, 35, 35, 0.68);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.65;
}

.brand-block {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  margin-top: -72px;
  animation-delay: 0.08s;
}

.brand-logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 7px solid var(--background);
  border-radius: 50%;
  background: var(--logo-yellow);
  box-shadow: 0 18px 42px rgba(35, 35, 35, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.brand-logo:hover {
  box-shadow: 0 24px 54px rgba(35, 35, 35, 0.16);
  transform: translateY(-2px) scale(1.02);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 44px;
}

.socials a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(236, 232, 226, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(35, 35, 35, 0.045);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.socials a:hover,
.socials a:focus-visible {
  border-color: rgba(107, 140, 166, 0.28);
  color: var(--brand-blue);
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(35, 35, 35, 0.09);
}

svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.links {
  display: grid;
  width: min(100%, 740px);
  gap: 18px;
  margin: 0 auto;
}

.link-card {
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 21px 26px;
  border: 1px solid rgba(236, 232, 226, 0.82);
  border-radius: 22px;
  background: var(--card);
  color: var(--title);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  text-align: left;
  animation: cardFade 0.76s ease both;
  animation-delay: calc(0.18s + var(--i, 0) * 80ms);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.link-card:nth-child(1) {
  --i: 0;
}

.link-card:nth-child(2) {
  --i: 1;
}

.link-card:nth-child(3) {
  --i: 2;
}

.link-card:nth-child(4) {
  --i: 3;
}

.link-card:nth-child(5) {
  --i: 4;
}

.link-card:nth-child(6) {
  --i: 5;
}

.link-card:nth-child(7) {
  --i: 6;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(107, 140, 166, 0.28);
  box-shadow: var(--shadow-hover);
  outline: none;
  transform: translateY(-4px);
}

.link-card:hover .chevron,
.link-card:focus-visible .chevron {
  color: rgba(107, 140, 166, 0.9);
  transform: translateX(4px);
}

.link-card.primary {
  border-color: rgba(107, 140, 166, 0.42);
  background: var(--primary-card);
}

.link-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 15px;
  background: rgba(107, 140, 166, 0.08);
  color: var(--brand-blue);
}

.link-icon.crown {
  font-size: 18px;
  line-height: 1;
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

.link-text {
  min-width: 0;
  padding: 0 18px 0 4px;
}

.link-text strong,
.link-text em {
  display: block;
  overflow-wrap: anywhere;
}

.link-text strong {
  margin-bottom: 7px;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
}

.link-text em {
  color: rgba(95, 108, 116, 0.86);
  font-size: 13.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55;
}

.chevron {
  color: rgba(35, 35, 35, 0.34);
  font-size: 31px;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(100%, 740px);
  margin: 64px auto 0;
  padding: 34px 18px 48px;
  border-top: 1px solid rgba(236, 232, 226, 0.78);
  color: rgba(95, 108, 116, 0.82);
  text-align: center;
  animation: cardFade 0.76s ease both;
  animation-delay: 0.78s;
}

.site-footer p {
  margin: 0 0 10px;
  color: var(--title);
  font-size: 13px;
  font-weight: 600;
}

.site-footer span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 35, 35, 0.28);
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 32px;
  border: 1px solid rgba(236, 232, 226, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 90px rgba(35, 35, 35, 0.18);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--body);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.dialog-panel h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0;
}

.dialog-panel p {
  margin: 0 0 24px;
  color: rgba(95, 108, 116, 0.88);
  line-height: 1.65;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-actions a {
  padding: 17px 18px;
  border: 1px solid rgba(236, 232, 226, 0.9);
  border-radius: 16px;
  background: rgba(247, 244, 239, 0.42);
  font-weight: 600;
  line-height: 1.45;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  border-color: rgba(107, 140, 166, 0.28);
  box-shadow: 0 12px 28px rgba(35, 35, 35, 0.09);
  outline: none;
  transform: translateY(-2px);
}

.contact-actions span {
  color: var(--body);
  font-size: 13px;
  font-weight: 400;
}

.reveal {
  animation: fadeUp 0.88s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 760px) {
  .page-shell {
    padding: 18px 0 0;
  }

  .hero {
    width: calc(100% + 20px);
    margin-left: -10px;
  }

  .hero-link {
    border-radius: 24px;
  }

  .hero-media {
    height: 372px;
    border-radius: 24px;
  }

  .hero-media img {
    object-position: 68% 52%;
    transform: scale(1.035);
    transform-origin: 68% 52%;
  }

  .hero-copy {
    left: 28px;
    right: 24px;
    bottom: 30px;
  }

  .hero-copy h1 {
    margin-bottom: 14px;
    font-size: clamp(48px, 13vw, 60px);
  }

  .hero-copy p {
    max-width: 230px;
    font-size: 15px;
    line-height: 1.62;
  }

  .brand-block {
    margin-top: -72px;
  }

  .socials {
    gap: 11px;
    margin: 34px 0 42px;
    padding: 0 16px;
  }

  .socials a {
    width: 48px;
    height: 48px;
  }

  .links {
    width: 100%;
    gap: 16px;
    padding: 0 16px;
  }

  .link-card {
    grid-template-columns: 44px 1fr 18px;
    min-height: 92px;
    padding: 18px 18px;
    border-radius: 21px;
  }

  .link-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .link-text {
    padding-right: 12px;
  }

  .site-footer {
    margin-top: 56px;
  }
}

@media (max-width: 430px) {
  .hero {
    width: calc(100% + 28px);
    margin-left: -14px;
  }

  .hero-media {
    height: 374px;
  }

  .hero-media img {
    object-position: 72% 51%;
    transform: scale(1.045);
    transform-origin: 72% 51%;
  }

  .hero-copy {
    left: 26px;
    bottom: 28px;
  }

  .brand-logo {
    width: 110px;
    height: 110px;
  }

  .socials {
    gap: 10px;
  }

  .link-text strong {
    font-size: 15.5px;
  }

  .link-text em {
    font-size: 12.8px;
  }
}

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