/* Warm gold light, with a clear and steady reading surface. */
.hero-copy {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: -25px -15px -20px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 72% 35%, rgb(215 183 126 / 13%), transparent 65%),
    radial-gradient(ellipse at 15% 65%, rgb(160 109 44 / 7%), transparent 58%);
  opacity: .7;
  transform-origin: center;
  animation: ambient-gold 11s ease-in-out infinite;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  line-height: 1.3;
  letter-spacing: -.7px;
}

.hero h1 > .hero-line {
  display: block;
  color: var(--text);
  animation: title-arrive .9s cubic-bezier(.22, 1, .36, 1) both;
}

.hero h1 > .hero-line-second {
  animation-delay: .14s;
}

.hero h1 .title-motion {
  --word-delay: .95s;
  display: inline-block;
  transform-origin: center;
  animation: word-float 3.8s ease-in-out var(--word-delay) infinite;
}

.hero h1 .hero-line-second .title-motion {
  --word-delay: 1.3s;
}

.hero h1 .hero-line-second .hero-word {
  --word-delay: 1.65s;
}

.hero h1 .hero-word {
  display: inline-block;
  color: var(--gold);
  text-shadow: 0 0 25px rgb(215 183 126 / 14%);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 .hero-word {
    background-image: linear-gradient(105deg,
      #c7a365 5%, #e1c48f 32%, #fff3cf 45%,
      #f1dba9 51%, #d7b77e 65%, #c7a365 95%);
    background-size: 260% 100%;
    background-position: 100% 50%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: word-float 3.8s ease-in-out var(--word-delay) infinite,
      gold-sweep 7s ease-in-out 1s infinite;
  }
}

.hero-copy > .hero-description {
  animation: title-arrive .9s cubic-bezier(.22, 1, .36, 1) .22s both;
}

.hero-copy > .factory-line {
  animation: title-arrive .9s cubic-bezier(.22, 1, .36, 1) .3s both;
}

.hero-copy > .button {
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 28px rgb(215 183 126 / 10%);
  animation: title-arrive .9s cubic-bezier(.22, 1, .36, 1) .38s both;
}

.hero-copy > .button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -40%;
  width: 35%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg,
    transparent, rgb(255 249 228 / 55%), transparent);
  transform: translateX(-220%) skewX(-20deg);
  animation: button-sheen 9s ease-in-out 1.2s infinite;
}

.hero-copy > .button > * {
  position: relative;
  z-index: 1;
}

.hero .eyebrow > span {
  box-shadow: 0 0 12px rgb(215 183 126 / 35%);
  animation: tiny-light 4.5s ease-in-out infinite;
}

.hero-visual {
  min-width: 0;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgb(215 183 126 / 42%);
  box-shadow: inset 0 0 24px rgb(215 183 126 / 8%);
  animation: frame-light 7s ease-in-out infinite;
}

/* Light follows the furniture imagery and the next step. */
.hero-photo,
.about-image {
  box-shadow: 0 0 0 1px rgb(215 183 126 / 16%),
    0 12px 38px rgb(215 183 126 / 12%);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgb(215 183 126 / 45%);
  box-shadow: inset 0 0 28px rgb(215 183 126 / 7%);
  animation: frame-light 8s ease-in-out -3s infinite;
}

.social-section {
  position: relative;
}

.social-section::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%, rgb(215 183 126 / 12%) 22%,
    #d7b77e 44%, #fff0ce 50%, #d7b77e 56%,
    rgb(215 183 126 / 12%) 78%, transparent 100%);
  background-size: 220% 100%;
  box-shadow: 0 0 12px rgb(215 183 126 / 25%);
  animation: section-light 12s ease-in-out infinite;
}

.social-link {
  background: linear-gradient(135deg, rgb(215 183 126 / 4%), transparent 65%),
    #181611;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.social-link:is(:hover, :focus-visible, :active) {
  border-color: rgb(215 183 126 / 75%);
  background: linear-gradient(135deg, rgb(215 183 126 / 8%), transparent 70%),
    #211d16;
  box-shadow: 0 5px 24px rgb(215 183 126 / 10%),
    inset 0 0 24px rgb(215 183 126 / 4%);
}

.social-icon {
  position: relative;
  transition: box-shadow .25s, transform .25s;
}

.social-icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  border: 1px solid rgb(215 183 126 / 45%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .25s, transform .25s;
}

.social-link:is(:hover, :focus-visible, :active) .social-icon {
  box-shadow: 0 0 24px rgb(215 183 126 / 22%);
  transform: scale(1.04);
}

.social-link:is(:hover, :focus-visible, :active) .social-icon::after {
  opacity: 1;
  transform: scale(1);
}

.contact-section {
  position: relative;
  background: radial-gradient(ellipse at 100% 0%, rgb(215 183 126 / 13%), transparent 62%),
    radial-gradient(ellipse at 0% 100%, rgb(174 120 52 / 7%), transparent 60%),
    var(--panel);
  border-color: #78613e;
  box-shadow: inset 0 1px 0 rgb(240 213 166 / 14%),
    0 12px 40px rgb(215 183 126 / 6%);
}

.contact-section::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #efd5a6, transparent);
  opacity: .65;
}

.contact-button,
.header-contact {
  transition: background .25s, transform .25s, box-shadow .25s;
}

.contact-button:is(:hover, :focus-visible, :active),
.header-contact:is(:hover, :focus-visible, :active) {
  box-shadow: 0 0 24px rgb(215 183 126 / 18%);
}

@keyframes title-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes word-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.015); }
}

@keyframes ambient-gold {
  0%, 100% { opacity: .55; transform: translateY(0) scale(.98); }
  50% { opacity: 1; transform: translateY(-6px) scale(1.02); }
}

@keyframes gold-sweep {
  0%, 20% { background-position: 100% 50%; }
  65%, 100% { background-position: 0% 50%; }
}

@keyframes button-sheen {
  0%, 58% { opacity: 0; transform: translateX(-220%) skewX(-20deg); }
  64% { opacity: .8; }
  83%, 100% { opacity: 0; transform: translateX(650%) skewX(-20deg); }
}

@keyframes tiny-light {
  0%, 100% { box-shadow: 0 0 8px rgb(215 183 126 / 20%); }
  50% { box-shadow: 0 0 16px rgb(215 183 126 / 55%); }
}

@keyframes frame-light {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

@keyframes section-light {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 760px) {
  .hero { padding-top: 32px; }
  .hero h1 {
    font-size: clamp(40px, 10.6vw, 60px);
    line-height: 1.35;
    letter-spacing: -.5px;
    margin-top: 19px;
    margin-bottom: 17px;
  }
  .hero-copy::before { inset: -20px -10px -15px; }
  .hero-copy > .button { border-radius: 3px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: clamp(36px, 10.6vw, 40px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .hero-copy::before { opacity: .7; transform: none; }
  .hero h1 > .hero-line,
  .hero h1 .title-motion,
  .hero-copy > .hero-description,
  .hero-copy > .factory-line,
  .hero-copy > .button { opacity: 1; transform: none; }
  .hero h1 .hero-word {
    background: none;
    -webkit-text-fill-color: var(--gold);
    color: var(--gold);
    text-shadow: none;
  }
  .hero-copy > .button::before { display: none; }
}
