.tiger-home {
  --dark: #12100e;
  --header-tone: #100e0c;
  --signature-ink-color: #e8cb9f;
  --surface: #181410;
  --gold: #d8b585;
  --line: #b28d5b50;
}
.tiger-home .hero {
  background: radial-gradient(ellipse at 84% 43%, #32241a, #17120e 54%, #110f0d 82%);
  min-height: clamp(620px, calc(100svh - 75px), 810px);
}
.hero-inner { align-self: end; }
.hero-copy { width: min(40%, 440px); padding-block: 0 clamp(4rem, 10vh, 7rem); }
.hero-copy .eyebrow { margin-bottom: .75rem; }
.hero-subtitle { margin-top: .75rem; }
.tiger-home .hero-actions .outline { border-color: #d8b58582; }
.tiger-hero-image {
  position: absolute;
  display: block;
  inset: 0 0 0 auto;
  width: 85%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 3%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 3%, #000 42%);
}
.tiger-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 39%;
  -webkit-mask-image: radial-gradient(ellipse 67% 75% at 56% 42%, #000 23%, #000e 41%, #0008 58%, transparent 88%);
  mask-image: radial-gradient(ellipse 67% 75% at 56% 42%, #000 23%, #000e 41%, #0008 58%, transparent 88%);
}
.tiger-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #110f0d 1%, transparent 39%);
}
@media (max-width: 740px) {
  .tiger-home .hero { display: grid; min-height: clamp(550px, 143vw, 715px); }
  .tiger-hero-image {
    width: 100%;
    height: 86%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .tiger-hero-image img {
    object-position: center 26%;
    -webkit-mask-image: radial-gradient(ellipse 74% 69% at 50% 32%, #000 24%, #000e 44%, #0008 63%, transparent 92%);
    mask-image: radial-gradient(ellipse 74% 69% at 50% 32%, #000 24%, #000e 44%, #0008 63%, transparent 92%);
  }
  .hero-copy { width: auto; padding-block: 1rem 1.8rem; }
  .hero-copy .eyebrow { margin-bottom: .5rem; }
  .hero-subtitle { margin-top: 0; }
}

/* Keep the title high and the tiger's eyes clear at both breakpoints. */
@media (min-width: 741px) {
  .hero-inner { align-self: start; }
  .hero-copy { padding-block: clamp(5.5rem, 18vh, 10.5rem) 2rem; }
  .tiger-hero-image { width: 92%; }
  .tiger-hero-image img { object-position: center 27%; }
}
@media (max-width: 740px) {
  .tiger-hero-image { height: 92%; }
  .tiger-hero-image img { transform: scale(1.09); transform-origin: center 26%; }
  .hero-copy { padding-bottom: clamp(3.6rem, 14vw, 6rem); }
}

.tiger-hero-image { container-type: size; }
.tiger-opening-eyes { display: none; }
.tiger-opening-eyes > span {
  position: absolute;
  left: 50%;
  top: 27%;
  width: max(100%, 126.94215cqh);
  aspect-ratio: 1536 / 1210;
  transform: translate(-50%, -27%);
  background: url("art/tiger.webp") center / 100% 100%;
  mask: url("art/tiger-iris-mask.svg") center / 100% 100% no-repeat;
  filter: brightness(1.15) saturate(1.22);
}
@media (max-width: 740px) {
  .tiger-opening-eyes { transform: scale(1.09); transform-origin: center 26%; }
  .tiger-opening-eyes > span { top: 26%; transform: translate(-50%, -26%); }
}
@media (prefers-reduced-motion: no-preference) {
  .tiger-intro {
    --intro-hold: 3s;
    --intro-fade: 1.35s;
    --intro-header-delay: 3.75s;
    --intro-header-fade: .5s;
    --signature-start: calc(var(--intro-hold) + var(--intro-fade));
    --pen-time-scale: .62;
    --intro-copy-delay: var(--signature-start);
    /* Finish after the final pen stroke so the intro cleanup won't cut it short. */
    --intro-copy-fade: 1.7s;
  }
  :is(.tiger-intro, .tiger-intro-loading) .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #110f0d;
    pointer-events: none;
  }
  :is(.tiger-intro, .tiger-intro-loading) .header::before {
    content: "";
    position: absolute;
    inset: 0 0 -1px;
    background: #110f0d;
    pointer-events: none;
  }
  .tiger-intro .hero::before {
    animation: tiger-cover-fade var(--intro-fade) ease-in-out var(--intro-hold) both;
  }
  :is(.tiger-intro, .tiger-intro-loading) :is(.header-brand, .header-nav, .header-contact, .hero-copy > *, .tiger-hero-image img, .gallery-strip, main > section:not(.hero), .footer) {
    opacity: 0;
  }
  .tiger-intro .tiger-hero-image img {
    animation: tiger-scene-fade var(--intro-fade) ease-in-out var(--intro-hold) both;
  }
  :is(.tiger-intro, .tiger-intro-loading) :is(.header-brand, .header-nav, .header-contact) {
    visibility: hidden;
  }
  .tiger-intro :is(.header-brand, .header-nav, .header-contact) {
    animation: tiger-header-in var(--intro-header-fade) ease-in-out var(--intro-header-delay) both;
  }
  .tiger-intro :is(.hero-copy > *, .gallery-strip, main > section:not(.hero), .footer) {
    animation: tiger-scene-fade var(--intro-copy-fade) ease-in-out var(--intro-copy-delay) both;
  }
  .tiger-intro .header::before {
    animation: tiger-cover-fade var(--intro-header-fade) ease-in-out var(--intro-header-delay) both;
  }
  .tiger-intro .tiger-opening-eyes {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: tiger-cover-fade var(--intro-fade) ease-in-out var(--intro-hold) both;
  }

}
@keyframes tiger-cover-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes tiger-header-in {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}
@keyframes tiger-scene-fade { from { opacity: 0; } to { opacity: 1; } }

.signature-ink-defs { position: absolute; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .tiger-intro .hero-copy .hero-signature {
    opacity: 1;
    animation: none;
    mask-image: url("#signature-ink");
  }
  .signature-ink-defs polyline, .signature-ink-defs rect { opacity: 0; }
  .tiger-intro .signature-ink-defs polyline {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: signature-pen calc(var(--pen-length) * var(--pen-time-scale)) linear
      calc(var(--signature-start) + var(--pen-offset) * var(--pen-time-scale)) both;
  }
  .tiger-intro .signature-ink-defs rect {
    animation: tiger-scene-fade calc(.18s * var(--pen-time-scale)) ease-out
      calc(var(--signature-start) + 2.46s * var(--pen-time-scale)) both;
  }
}
@keyframes signature-pen {
  from { opacity: 0; stroke-dashoffset: 1; }
  1% { opacity: 1; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

/* Keep the lettering legible where the light canvas meets the copy. */
.tiger-hero-image::after {
  background:
    linear-gradient(90deg, #110f0de0 0%, #110f0d9c 26%, #110f0d73 38%, transparent 55%),
    linear-gradient(0deg, #110f0d 1%, transparent 39%);
}
.hero-copy {
  text-shadow: 0 2px 3px #080605, 0 0 12px #080605b0;
}
.hero-copy .hero-signature {
  filter: drop-shadow(0 2px 2px #080605eb) drop-shadow(0 4px 7px #080605a6);
}
.hero-copy .intro { color: #eee0d1; }
.hero-copy .hero-actions .outline { background-color: #140f0bbf; }
.hero-copy .hero-actions .outline:hover { background-color: #2e2219; }
@media (max-width: 740px) {
  .tiger-hero-image::after {
    background: linear-gradient(0deg, #110f0d 0%, #110f0dc9 16%, #110f0d54 34%, transparent 58%);
  }
}

.tiger-home :is(.header, .footer) { background-color: var(--header-tone); }
.tiger-home .gallery-strip { background-color: var(--surface); }
@media (prefers-reduced-motion: no-preference) {
  :is(.tiger-intro, .tiger-intro-loading) :is(.hero-copy, .tiger-hero-image, .gallery-strip) {
    pointer-events: none;
  }
}
