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

* {
  margin: 0;
}

html {
  min-height: 100%;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  background-color: #fbf7ee;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.76), rgba(255, 252, 245, 0.18)),
    linear-gradient(135deg, #fbf7ee 0%, #e9dfd2 34%, #c2cbb9 68%, #747d70 100%);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
}

body {
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #36291f;
  background-color: #fbf7ee;
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.76), rgba(255, 252, 245, 0.18)),
    linear-gradient(135deg, #fbf7ee 0%, #e9dfd2 34%, #c2cbb9 68%, #747d70 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

img,
svg {
  display: block;
}

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

.min-h-screen {
  min-height: 100svh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

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

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.px-4 {
  padding-inline: 1rem;
}

.py-12 {
  padding-block: clamp(2rem, 6svh, 4.5rem) 2rem;
}

.logo-wrap {
  --logo-padding: clamp(0.5rem, 2vw, 1.25rem);
  position: relative;
  width: min(100%, 1000px, calc(100svh - 22rem));
  min-width: min(500px, 100%);
  max-width: 1000px;
  aspect-ratio: 1;
  overflow: hidden;
  filter: drop-shadow(0 1.5rem 2.75rem rgba(72, 52, 35, 0.18));
}

.logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: var(--logo-padding);
}

.logo-video-mask {
  position: absolute;
  z-index: 3;
  inset: var(--logo-padding);
  opacity: 0.36;
  pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: url("../assets/images/logo-yellow-mask.svg");
  mask-image: url("../assets/images/logo-yellow-mask.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-size: cover;
}

.logo-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  height: 82%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 1.2s ease;
}

.logo-video.is-active {
  opacity: 1;
}

@property --glare-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 210deg;
}

.logo-ring-glare {
  --glare-angle: 210deg;
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(
    from var(--glare-angle),
    transparent 0deg,
    rgba(210, 180, 110, 0.5) 5deg,
    rgba(255, 252, 225, 0.95) 9deg,
    rgba(210, 180, 110, 0.5) 13deg,
    transparent 18deg 360deg
  );
  -webkit-mask:
    radial-gradient(circle at center, transparent 44%, black 46%, black 49%, transparent 51%),
    conic-gradient(from 135deg, transparent 0deg 90deg, black 90deg 360deg);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle at center, transparent 44%, black 46%, black 49%, transparent 51%),
    conic-gradient(from 135deg, transparent 0deg 90deg, black 90deg 360deg);
  mask-composite: intersect;
}

.logo-ring-glare.is-active {
  animation: logo-ring-glare 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes logo-ring-glare {
  0%   { --glare-angle: 210deg; opacity: 0; }
  6%   { opacity: 1; }
  88%  { opacity: 0.85; }
  100% { --glare-angle: 510deg; opacity: 0; }
}

.social-link {
  position: relative;
  isolation: isolate;
  width: 3.75rem;
  height: 3.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(88, 66, 43, 0.2);
  border-radius: 999px;
  color: #513b28;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.18)),
    rgba(247, 241, 229, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1rem 2rem rgba(85, 62, 38, 0.14);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from 120deg,
    transparent 0 36%,
    rgba(255, 255, 255, 0.95) 43%,
    rgba(195, 165, 105, 0.72) 50%,
    transparent 58% 100%
  );
  opacity: 0;
  pointer-events: none;
  animation: social-border-glare 6s ease-in-out infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.social-link:nth-child(2)::before {
  animation-delay: 0.45s;
}

.social-link:nth-child(3)::before {
  animation-delay: 0.9s;
}

.social-link:hover,
.social-link:focus-visible {
  color: #2f2118;
  border-color: rgba(101, 72, 40, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1.25rem 2.3rem rgba(85, 62, 38, 0.2);
  transform: translateY(-2px);
}

.social-link:focus-visible {
  outline: 2px solid rgba(101, 72, 40, 0.48);
  outline-offset: 4px;
}

.social-link svg {
  position: relative;
  z-index: 1;
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes social-border-glare {
  0%,
  62%,
  100% {
    opacity: 0;
    transform: rotate(0deg);
  }

  70% {
    opacity: 0.9;
  }

  84% {
    opacity: 0;
    transform: rotate(210deg);
  }
}

.address {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(54, 41, 31, 0.52);
  letter-spacing: 0.035em;
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
  }

  body {
    background:
      linear-gradient(180deg, rgba(255, 252, 245, 0.76), rgba(255, 252, 245, 0.18)),
      linear-gradient(135deg, #fbf7ee 0%, #e9dfd2 34%, #c2cbb9 68%, #747d70 100%);
  }

  .min-h-screen {
    min-height: 100svh;
  }

  main {
    max-height: none;
  }

  .px-4 {
    padding-inline: 10px;
  }

  .py-12 {
    padding-block: clamp(1rem, 3svh, 1.5rem) 1rem;
  }

  .gap-8 {
    gap: clamp(1rem, 3svh, 1.5rem);
  }

  .logo-wrap {
    --logo-padding: 0px;
    width: 100%;
  }

  .logo {
    padding: 0;
  }

  .social-link {
    width: 3.35rem;
    height: 3.35rem;
  }

  .social-link svg {
    width: 1.6rem;
    height: 1.6rem;
  }

  .address {
    margin-top: clamp(1rem, 3svh, 1.75rem);
    font-size: clamp(0.9rem, 4vw, 1rem);
    line-height: 1.55;
  }

  .is-ios-safari,
  .is-ios-safari body {
    height: auto;
    min-height: 125dvh;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }

  .is-ios-safari .py-12 {
    padding-top: max(env(safe-area-inset-top), clamp(1rem, 3svh, 1.5rem));
    padding-bottom: max(env(safe-area-inset-bottom), 25dvh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-link::before {
    animation: none;
  }
}
