:root {
  color-scheme: dark;
  --bg: #0a0908;
  --text: #f4efe6;
  --muted: #a39c8f;
  --faint: #6f695f;
  --gold: #d4af6a;
  --gold-light: #f6e7c1;
  --line: rgba(244, 239, 230, 0.1);
  --card: rgba(244, 239, 230, 0.035);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Backdrop */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}
.glow-a {
  width: 620px; height: 620px;
  top: -220px; right: -140px;
  background: rgba(212, 175, 106, 0.28);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.glow-b {
  width: 560px; height: 560px;
  bottom: -260px; left: -180px;
  background: rgba(74, 58, 150, 0.34);
  animation: drift-b 26s ease-in-out infinite alternate;
}
.glow-c {
  width: 380px; height: 380px;
  top: 42%; left: 46%;
  background: rgba(150, 70, 90, 0.16);
  animation: drift-a 30s ease-in-out infinite alternate-reverse;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift-a { to { transform: translate(-70px, 60px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(90px, -50px) scale(1.08); } }

/* Layout */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
header.wrap { padding-top: 28px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}
.mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(212, 175, 106, 0.6);
  border-radius: 10px;
  background: rgba(212, 175, 106, 0.07);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 56px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
h1 em {
  display: inline-block;
  padding-right: 0.08em;
  background: linear-gradient(100deg, var(--gold-light) 0%, var(--gold) 48%, #f1dfb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 34em;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}
.lead strong { color: var(--text); font-weight: 500; }

/* Phone */
.device { display: grid; place-items: center; }
.phone {
  position: relative;
  width: min(270px, 62vw);
  aspect-ratio: 9 / 18.6;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(150deg, #4a4337 0%, #17140f 38%, #0d0b08 62%, #3a3429 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 50px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 140px -30px rgba(212, 175, 106, 0.45);
  transform: rotate(5deg);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  50% { transform: rotate(3.5deg) translateY(-14px); }
}
.screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  border-radius: 38px;
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(212, 175, 106, 0.22), transparent 70%),
    radial-gradient(80% 50% at 50% 100%, rgba(74, 58, 150, 0.28), transparent 70%),
    #0c0b09;
  overflow: hidden;
  text-align: center;
}
.island {
  position: absolute;
  top: 11px; left: 50%;
  width: 30%; height: 22px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
.screen .mark {
  width: 60px; height: 60px;
  border-radius: 17px;
  font-size: 2.5rem;
  box-shadow: 0 10px 40px -8px rgba(212, 175, 106, 0.55);
}
.screen-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.15;
}
.screen-sub { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; }
.bar {
  position: relative;
  width: 62%;
  height: 3px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.12);
  overflow: hidden;
}
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: slide 2.4s ease-in-out infinite;
}
@keyframes slide {
  from { transform: translateX(-110%); }
  to { transform: translateX(240%); }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 16px;
}
.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.055), rgba(244, 239, 230, 0.015));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover { border-color: rgba(212, 175, 106, 0.45); transform: translateY(-3px); }
.card-num {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}
.card h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
}
.card p { margin-top: 8px; color: var(--muted); font-size: 0.94rem; }

/* Contact */
.contact { padding-bottom: 64px; }
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(212, 175, 106, 0.09), rgba(244, 239, 230, 0.02) 60%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.contact h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.1;
}
.contact p { margin-top: 6px; color: var(--muted); font-size: 0.94rem; }
.mail {
  padding: 12px 22px;
  border: 1px solid rgba(212, 175, 106, 0.6);
  border-radius: 999px;
  background: rgba(212, 175, 106, 0.08);
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background 0.3s, border-color 0.3s;
}
.mail:hover, .mail:focus-visible { background: rgba(212, 175, 106, 0.18); border-color: var(--gold); }

footer {
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  padding-bottom: 26px;
}
footer a { color: inherit; text-decoration: none; transition: color 0.3s; }
footer a:hover, footer a:focus-visible { color: var(--text); }

/* Text pages */
.page { justify-content: flex-start; padding: 64px 0 88px; }
.prose { max-width: 720px; color: #c9c2b5; }
.prose h1 { font-size: clamp(2.6rem, 6vw, 4rem); color: var(--text); }
.prose .meta { margin-top: 16px; color: var(--faint); font-size: 0.85rem; letter-spacing: 0.04em; }
.prose h2 {
  margin-top: 48px;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.2;
}
.prose p, .prose ul { margin-top: 14px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--gold-light); text-underline-offset: 3px; }
.prose a:hover, .prose a:focus-visible { color: var(--gold); }

/* Entrance */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 48px; }
  .cards { grid-template-columns: 1fr; }
  .contact-panel { padding: 26px 24px; }
  .mail { padding: 11px 16px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .bar::after { transform: translateX(60%); }
}
