@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
    --forest: #0f3d2e;
    --forest-mid: #1a5c44;
    --leaf: #2f8f63;
    --mist: #e7f2eb;
    --sand: #f3eee4;
    --ink: #132019;
    --muted: #4d6157;
    --line: rgba(19, 32, 25, 0.12);
    --white: #ffffff;
    --radius: 4px;
    --max: 1120px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--sand);
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ——— Nav ——— */
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: transparent;
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom: 1px solid transparent;
}

.site-nav.is-solid {
    background: rgba(243, 238, 228, 0.92);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
}

.site-nav.is-solid .brand,
.site-nav.is-solid .nav-links a { color: var(--ink); }

.site-nav.is-solid .nav-links a:hover { color: var(--forest-mid); }

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--white);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-links a { color: rgba(255, 255, 255, 0.88); }
.nav-links a:hover { color: var(--white); }

.nav-cta {
    background: var(--white);
    color: var(--forest) !important;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav.is-solid .nav-cta {
    background: var(--forest);
    color: var(--white) !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 61, 46, 0.25);
}

/* ——— Hero ——— */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    isolation: isolate;
    overflow: hidden;
}

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

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    image-orientation: from-image;
    transform: scale(1.04);
    animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 61, 46, 0.28) 0%, rgba(15, 61, 46, 0.68) 52%, rgba(10, 36, 28, 0.94) 100%);
    pointer-events: none;
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.16;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%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");
}

.hero-inner {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 140px 24px 72px;
    animation: riseIn 1s ease both;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
    margin-bottom: 22px;
}

.hero-lead {
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    max-width: 36rem;
    opacity: 0.95;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
    background: var(--white);
    color: var(--forest);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    color: var(--white);
    background: transparent;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-dark {
    background: var(--forest);
    color: var(--white);
}

.btn-dark:hover { background: var(--forest-mid); }

.btn-outline-dark {
    border: 1.5px solid var(--forest);
    color: var(--forest);
    background: transparent;
}

.btn-outline-dark:hover { background: var(--mist); }

/* ——— Shared section chrome ——— */
.section { padding: 88px 24px; }

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.section-kicker {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--leaf);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--ink);
}

.section-subtitle {
    color: var(--muted);
    max-width: 40rem;
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

a.inline {
    color: var(--forest-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Full-bleed photo bands (visual anchors between sections) */
.photo-band {
    position: relative;
    min-height: clamp(280px, 42vw, 460px);
    display: flex;
    align-items: flex-end;
    color: var(--white);
    overflow: hidden;
}

.photo-band-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    image-orientation: from-image;
    transform: scale(1.02);
}

.photo-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 36, 28, 0.15) 0%, rgba(10, 36, 28, 0.78) 100%);
}

.photo-band-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px;
}

.photo-band-inner p {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 22ch;
}

.photo-farmers {
    /* Landscape rice terrace — horizon upright */
    background-image: url("https://images.unsplash.com/photo-1592982537447-7440770cbfc9?auto=format&fit=crop&w=2400&h=1200&q=80");
}

.photo-aerial {
    background-image: url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=2400&h=1200&q=80");
}

.photo-terrace {
    background-image: url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=2400&h=1200&q=80");
}

/* Split: text + photo */
.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.split-photo {
    min-height: 380px;
    border-radius: 2px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    image-orientation: from-image;
    box-shadow: 0 24px 60px rgba(15, 61, 46, 0.18);
}

.split-photo.bangkok {
    /* Temple complex — level horizon */
    background-image: url("https://images.unsplash.com/photo-1528181304800-259b08848526?auto=format&fit=crop&w=1400&h=1600&q=80");
    background-position: center 35%;
}

.split-photo.rice-hands {
    background-image: url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?auto=format&fit=crop&w=1400&h=1600&q=80");
    background-position: center 70%; /* keep soil at bottom of frame */
}

.split-photo.satellite {
    background-image: url("https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=1400&h=1600&q=80");
    background-position: center center;
}

.split-photo.banking {
    background-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1400&h=1600&q=80");
    background-position: center center;
}

.split-photo.coffee {
    background-image: url("https://images.unsplash.com/photo-1447933601403-0c6688de566e?auto=format&fit=crop&w=1400&h=1600&q=80");
    background-position: center center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-copy p {
    color: var(--muted);
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.split-copy p strong { color: var(--ink); font-weight: 600; }

/* Recognition */
.recognition {
    background:
        linear-gradient(180deg, #fbf8f2 0%, #f3eee4 100%);
}

.recognition-mark {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 6.5rem);
    line-height: 0.85;
    color: var(--forest);
    letter-spacing: -0.04em;
    margin-top: 20px;
}

.recognition-mark span {
    display: block;
    font-size: 0.28em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--leaf);
    margin-top: 16px;
}

.recognition-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
    font-size: 0.9rem;
    color: var(--muted);
}

.recognition-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.recognition-meta span::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--leaf);
}

/* Problem metrics */
.problem {
    background:
        radial-gradient(ellipse at 8% 10%, rgba(47, 143, 99, 0.1), transparent 45%),
        var(--sand);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.metric strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: var(--forest);
    letter-spacing: -0.02em;
}

.metric span {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Solution / role */
.solution { background: var(--forest); color: var(--white); }

.solution .section-kicker { color: rgba(255, 255, 255, 0.6); }
.solution .section-title { color: var(--white); }
.solution .section-subtitle { color: rgba(255, 255, 255, 0.78); }

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 8px;
}

.role-item {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.role-item h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.role-item p {
    font-size: 0.98rem;
    opacity: 0.82;
}

/* Journey */
.journey {
    background:
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(231, 242, 235, 0.7), transparent 55%),
        #f7f3eb;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 28px;
    counter-reset: journey;
}

.journey-step {
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--line);
}

.journey-step::before {
    counter-increment: journey;
    content: "0" counter(journey);
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--leaf);
    margin-bottom: 8px;
}

.journey-step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.journey-step p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Architecture */
.architecture {
    background:
        linear-gradient(180deg, var(--mist) 0%, var(--sand) 100%);
}

.arch-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}

.arch-item {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.arch-item:nth-child(odd) {
    padding-right: 32px;
    border-right: 1px solid var(--line);
}

.arch-item:nth-child(even) { padding-left: 32px; }

.arch-item h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--forest);
    margin-bottom: 8px;
}

.arch-item p {
    color: var(--muted);
    font-size: 0.96rem;
}

/* Evidence abroad */
.abroad {
    background:
        linear-gradient(180deg, #f7f3eb 0%, var(--mist) 100%);
}

.abroad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.abroad-item h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--forest);
}

.abroad-item p {
    color: var(--muted);
    font-size: 0.96rem;
}

/* Indonesia */
.indonesia {
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.indonesia::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=1800&h=1200&q=70")
            right center / cover no-repeat;
    opacity: 0.3;
    image-orientation: from-image;
    mask-image: linear-gradient(90deg, transparent 15%, black 70%);
    -webkit-mask-image: linear-gradient(90deg, transparent 15%, black 70%);
}

.indonesia-inner {
    position: relative;
    z-index: 1;
    max-width: 36rem;
}

.indonesia .section-kicker { color: rgba(255, 255, 255, 0.55); }
.indonesia .section-title { color: var(--white); }

.indonesia p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.region-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.region-tags span {
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 7px 12px;
    font-size: 0.85rem;
    border-radius: 999px;
}

/* Team */
.team { background: var(--sand); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 8px;
}

.team-grid-founders {
    grid-template-columns: repeat(3, 1fr);
    max-width: 56rem;
    gap: 28px 32px;
}

.team-member {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.team-member strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.team-member .team-role {
    display: block;
    color: var(--leaf);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-member .team-bio {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0 0 12px;
}

.team-member .team-link {
    color: var(--forest);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.team-member .team-link:hover {
    color: var(--leaf);
}

/* Photo mosaic */
.mosaic {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 220px 220px;
    gap: 12px;
    padding: 0 24px 0;
    max-width: calc(var(--max) + 48px);
    margin: -28px auto 0;
}

.mosaic figure {
    margin: 0;
    overflow: hidden;
    border-radius: 2px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    image-orientation: from-image;
}

.mosaic figure:first-child {
    grid-row: 1 / span 2;
    background-image: url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=1400&h=1800&q=80");
}

.mosaic figure:nth-child(2) {
    background-image: url("https://images.unsplash.com/photo-1592982537447-7440770cbfc9?auto=format&fit=crop&w=1000&h=800&q=80");
}

.mosaic figure:nth-child(3) {
    background-image: url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1000&h=800&q=80");
}

/* CTA */
.cta {
    background: var(--white);
    text-align: center;
}

.cta .section-title {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.cta .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-closing {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--forest);
    margin-top: 36px;
    letter-spacing: -0.02em;
}

/* Footer */
.site-footer {
    background: #0a1812;
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 24px 28px;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto 24px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-inner strong {
    font-family: var(--font-display);
    color: var(--white);
    display: block;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.footer-inner p {
    max-width: 30rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
    max-width: var(--max);
    margin: 0 auto;
    font-size: 0.82rem;
    opacity: 0.55;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
}

@keyframes heroDrift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
    .split,
    .split.reverse,
    .role-grid,
    .journey-steps,
    .arch-list,
    .abroad-grid,
    .metric-row,
    .team-grid,
    .mosaic {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .mosaic {
        grid-template-rows: 220px 180px 180px;
        margin-top: 0;
        padding-top: 24px;
    }

    .mosaic figure:first-child { grid-row: auto; min-height: 220px; }

    .arch-item:nth-child(odd),
    .arch-item:nth-child(even) {
        padding: 22px 0;
        border-right: none;
    }

    .team-grid { grid-template-columns: 1fr 1fr; }
    .team-grid-founders { grid-template-columns: 1fr; }

    .indonesia::before {
        opacity: 0.2;
        mask-image: linear-gradient(180deg, transparent 0%, black 50%);
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 50%);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-inner { padding: 120px 20px 56px; }
    .section { padding: 64px 20px; }
    .split-photo { min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-media img,
    .hero-inner,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1;
        transform: none;
    }
}
