:root {
    --ink: #0d1420;
    --ink-2: #16202f;
    --ivory: #f3ede1;
    --muted: #a9a294;
    --gold: #c6a15b;
    --gold-soft: rgba(198, 161, 91, 0.35);
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Jost", "Segoe UI", system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
    height: 100%;
}

body {
    background: radial-gradient(ellipse at 50% 35%, var(--ink-2) 0%, var(--ink) 70%);
    background-color: var(--ink);
    color: var(--ivory);
    font-family: var(--sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

#dust {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Layout */
.frame {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: clamp(24px, 5vw, 56px) clamp(16px, 6vw, 72px);
}

.frame::before {
    content: "";
    position: absolute;
    inset: clamp(10px, 2vw, 22px);
    border: 1px solid var(--gold-soft);
    pointer-events: none;
    opacity: 0;
    animation: fade 2.4s var(--ease) 0.2s forwards;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.emblem {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.emblem .draw {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: draw 2.6s var(--ease) 0.4s forwards;
}

.wordmark {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
}

.tld {
    color: var(--gold);
}

/* Hero */
.hero {
    align-self: center;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 0;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
}

h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 7.5vw, 5.25rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

h1 em {
    font-style: italic;
    color: var(--gold);
    background: linear-gradient(100deg, var(--gold) 30%, #f1dca8 50%, var(--gold) 70%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 7s ease-in-out 2.5s infinite;
}

.rule {
    display: block;
    width: 96px;
    height: 1px;
    margin: 36px auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    animation: grow 1.6s var(--ease) 1s forwards;
}

.lede {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.75;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 40px;
}

/* Call to action */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    border: 1px solid var(--gold);
    color: var(--ivory);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.5s var(--ease);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease);
    z-index: -1;
}

.cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: transform 0.5s var(--ease);
}

.cta:hover,
.cta:focus-visible {
    color: var(--ink);
}

.cta:hover::before,
.cta:focus-visible::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta:hover svg,
.cta:focus-visible svg {
    transform: translateX(4px);
}

.cta:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 4px;
}

/* Footer */
.foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.foot a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

.foot a:hover {
    color: var(--gold);
    border-color: var(--gold-soft);
}

.dot {
    color: var(--gold);
}

/* Entrance animation */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
    animation: rise 1.4s var(--ease) var(--d, 0s) forwards;
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@keyframes fade {
    to { opacity: 1; }
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

@keyframes grow {
    to { transform: scaleX(1); }
}

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

@media (max-width: 480px) {
    .wordmark { font-size: 1.05rem; }
    .emblem { width: 36px; height: 36px; }
    .dot { display: none; }
    .foot { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
