/* Dili — site template */

:root {
    --ink: #0b1c24;
    --ink-soft: #243942;
    --paper: #eef2f4;
    --paper-warm: #f5f2eb;
    --mist: rgba(238, 242, 244, 0.88);
    --sea: #1f5a68;
    --sea-deep: #0f3540;
    --signal: #b8954a;
    --signal-hover: #c9a85a;
    --line: rgba(11, 28, 36, 0.12);
    --font-display: "Instrument Serif", Georgia, serif;
    --font-body: "Outfit", "Segoe UI", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --space: clamp(1.25rem, 3vw, 2.5rem);
    --max: 68rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.05rem + 0.2vw, 1.15rem);
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

a:hover {
    color: var(--sea);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.65rem 1rem;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.9rem;
    border-radius: 0.25rem;
}

.skip-link:focus {
    top: 1rem;
}

/* —— Hero —— */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: center;
    color: var(--paper);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.06);
    animation: hero-drift 22s var(--ease) forwards;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(11, 28, 36, 0.35) 0%,
            rgba(11, 28, 36, 0.22) 40%,
            rgba(11, 28, 36, 0.78) 100%
        ),
        linear-gradient(
            90deg,
            rgba(11, 28, 36, 0.45) 0%,
            rgba(11, 28, 36, 0.1) 55%,
            transparent 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(100% - 2.5rem, var(--max));
    margin: 0 auto;
    padding: clamp(4rem, 10vh, 6rem) 0;
}

.brand {
    margin: 0 0 1.35rem;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 7vw, 5.25rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.headline {
    margin: 0 0 1.15rem;
    max-width: 14ch;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.headline em {
    font-style: italic;
    color: #e8d7a8;
}

.lede {
    margin: 0 0 2rem;
    max-width: 32ch;
    font-weight: 300;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.55;
    color: var(--mist);
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

/* —— Buttons —— */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.35rem;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.3s var(--ease),
        color 0.3s var(--ease),
        border-color 0.3s var(--ease),
        transform 0.3s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--signal);
    color: var(--ink);
    border-color: var(--signal);
}

.btn-primary:hover {
    background: var(--signal-hover);
    color: var(--ink);
    border-color: var(--signal-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: rgba(238, 242, 244, 0.45);
}

.btn-ghost:hover {
    background: rgba(238, 242, 244, 0.1);
    color: var(--paper);
    border-color: rgba(238, 242, 244, 0.75);
}

/* —— Sections —— */

.section {
    padding: clamp(4.5rem, 12vh, 7.5rem) 0;
}

.section-inner {
    width: min(100% - 2.5rem, 38rem);
    margin: 0 auto;
}

.about {
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(31, 90, 104, 0.08), transparent 55%),
        linear-gradient(180deg, #e8edf0 0%, var(--paper) 100%);
}

.contact {
    background:
        linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
    border-top: 1px solid var(--line);
}

.section-title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--ink);
}

.section-text {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 300;
}

.contact-action {
    margin: 2rem 0 0;
}

.contact .btn-primary {
    background: var(--sea-deep);
    border-color: var(--sea-deep);
    color: var(--paper);
}

.contact .btn-primary:hover {
    background: var(--sea);
    border-color: var(--sea);
    color: var(--paper);
}

/* —— Footer —— */

.site-footer {
    background: var(--ink);
    color: rgba(238, 242, 244, 0.72);
    padding: 2.75rem 0 2.25rem;
}

.footer-inner {
    width: min(100% - 2.5rem, var(--max));
    margin: 0 auto;
    display: grid;
    gap: 0.55rem;
}

.footer-brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--paper);
}

.footer-meta,
.footer-copy {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 300;
}

.footer-meta a {
    text-decoration: none;
    border-bottom: 1px solid rgba(238, 242, 244, 0.28);
}

.footer-meta a:hover {
    color: var(--paper);
    border-bottom-color: rgba(238, 242, 244, 0.7);
}

/* —— Motion —— */

.reveal {
    opacity: 0;
    transform: translateY(1.1rem);
    transition:
        opacity 0.9s var(--ease),
        transform 0.9s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero .reveal:nth-child(1) { transition-delay: 0.12s; }
.hero .reveal:nth-child(2) { transition-delay: 0.28s; }
.hero .reveal:nth-child(3) { transition-delay: 0.42s; }
.hero .reveal:nth-child(4) { transition-delay: 0.56s; }

@keyframes hero-drift {
    from {
        transform: scale(1.06) translate3d(0, 0, 0);
    }
    to {
        transform: scale(1) translate3d(0, -1.5%, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-image {
        animation: none;
        transform: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .hero-content {
        width: min(100% - 1.75rem, var(--max));
        padding-bottom: 3rem;
    }

    .headline {
        max-width: 12ch;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
