:root {
  --bg: #111211;
  --bg-soft: #1b1815;
  --panel: rgba(255, 255, 255, 0.04);
  --line: rgba(245, 234, 220, 0.18);
  --text: #f6eee5;
  --warm: #d8b981;
  --cool: #8aa7ad;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Inter", sans-serif;
  background:
    linear-gradient(135deg, rgba(138, 167, 173, 0.16) 0%, transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  font-synthesis-weight: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(246, 238, 229, 0.07) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(246, 238, 229, 0.05) 0 1px, transparent 1px 92px);
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  height: 24vh;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.34), transparent);
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  width: min(90vw, 620px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  text-align: center;
  padding: clamp(18px, 4vh, 34px) 0 clamp(28px, 6vh, 56px);
  position: relative;
  z-index: 2;
}

.portrait-wrap {
  position: relative;
  width: min(82vw, 520px);
  aspect-ratio: 1 / 1;
  border-radius: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 70px rgba(138, 167, 173, 0.16);
}

.portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(15px, 3vw, 24px);
  pointer-events: none;
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.2), transparent 36%);
  pointer-events: none;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 46%;
  filter: saturate(0.98) contrast(1.06) brightness(0.96);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.5rem, 15vw, 9.6rem);
  line-height: 0.78;
  letter-spacing: 0;
  font-weight: 600;
  color: transparent;
  background: linear-gradient(90deg, #fff6ec 0%, var(--warm) 52%, #b9c9c7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.tagline {
  width: min(88vw, 470px);
  margin: -2px 0 0;
  color: rgba(246, 238, 229, 0.76);
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  line-height: 1.6;
  font-weight: 500;
  text-wrap: balance;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  h1 {
    color: var(--text);
    background: none;
  }
}

.side-decor {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(110px, 14vw, 180px);
  height: clamp(200px, 24vw, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.side-decor.left {
  left: 28px;
}

.side-decor.right {
  right: 28px;
}

.side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  opacity: 0.22;
  filter: saturate(0.9) contrast(1.05) brightness(0.7) grayscale(0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.left-image {
  transform: rotate(-8deg);
}

.right-image {
  transform: rotate(8deg);
}

@media (max-width: 900px) {
  .side-decor {
    width: 110px;
    height: 200px;
  }

  .side-decor.left { left: 12px; }
  .side-decor.right { right: 12px; }
}

@media (max-width: 600px) {
  .side-decor {
    display: none;
  }

  .hero {
    padding-top: 18px;
  }

  .portrait-wrap::before {
    inset: 12px;
  }
}
