:root {
    --bg: #f3f5f2;
    --bg-elevated: #ffffff;
    --ink: #14201a;
    --ink-soft: #3d4f45;
    --muted: #6b7c72;
    --line: rgba(20, 32, 26, 0.1);
    --accent: #1f6b52;
    --accent-deep: #14523e;
    --accent-wash: rgba(31, 107, 82, 0.1);
    --sand: #d8c4a4;
    --radius: 12px;
    --shell: min(1120px, calc(100% - 3rem));
    --font-display: "Syne", "Noto Sans KR", sans-serif;
    --font-body: "Noto Sans KR", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(243, 245, 242, 0.86);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
}

.brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.brand span {
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--ink);
}

.nav-cta {
    color: var(--accent) !important;
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 1.25rem;
    height: 1.5px;
    background: var(--ink);
    margin-inline: auto;
    transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: end start;
    overflow: hidden;
    isolation: isolate;
    padding: 8rem 0 5.5rem;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%),
        radial-gradient(ellipse 80% 60% at 85% 15%, rgba(31, 107, 82, 0.16), transparent 55%),
        radial-gradient(ellipse 70% 50% at 10% 90%, rgba(216, 196, 164, 0.35), transparent 50%),
        var(--bg);
}

.hero-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 32, 26, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 32, 26, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.hero-orb-a {
    width: min(48vw, 420px);
    aspect-ratio: 1;
    right: 6%;
    top: 18%;
    background:
        conic-gradient(from 210deg at 50% 50%, rgba(31, 107, 82, 0.35), rgba(216, 196, 164, 0.4), rgba(31, 107, 82, 0.15), rgba(31, 107, 82, 0.35));
    animation: orb-drift 14s var(--ease) infinite alternate;
}

.hero-orb-b {
    width: min(28vw, 220px);
    aspect-ratio: 1;
    right: 28%;
    top: 48%;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(20, 32, 26, 0.08);
    animation: orb-drift 10s var(--ease) infinite alternate-reverse;
}

.hero-content {
    max-width: 40rem;
}

.hero-brand {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 1.25rem;
}

.hero-brand::after {
    content: "";
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    margin-left: 0.15em;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-0.08em);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.2vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.2;
    margin-bottom: 1.1rem;
}

.hero-lead {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

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

.btn-solid {
    background: var(--accent);
    color: #f7faf8;
}

.btn-solid:hover {
    background: var(--accent-deep);
}

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.btn-ghost:hover {
    border-color: rgba(20, 32, 26, 0.28);
    background: rgba(255, 255, 255, 0.55);
}

.btn-block {
    width: 100%;
}

/* Sections */
.section {
    padding: 6.5rem 0;
}

.section-head {
    max-width: 38rem;
    margin-bottom: 3.25rem;
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.45rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 0.9rem;
}

.section-lead {
    color: var(--ink-soft);
    font-size: 1.02rem;
}

/* Approach */
.approach {
    background:
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 20%, rgba(255, 255, 255, 0.55) 80%, transparent),
        var(--bg);
}

.principle-list {
    list-style: none;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.principle {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1.25rem 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.principle-index {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 0.04em;
    padding-top: 0.35rem;
}

.principle-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
    gap: 1.5rem 2rem;
    align-items: center;
}

.principle h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.principle p {
    color: var(--ink-soft);
    max-width: 34rem;
}

.principle-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #e8ebe6;
}

/* Team */
.team-list {
    list-style: none;
    border-top: 1px solid var(--line);
}

.team-row {
    display: grid;
    grid-template-columns: 4.75rem minmax(10rem, 16rem) 1fr;
    gap: 1.25rem 1.75rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.team-avatar {
    width: 4.75rem;
    height: 4.75rem;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #e8ebe6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.team-name strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.team-name span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.team-row p {
    color: var(--ink-soft);
}

/* Products */
.products {
    background:
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(31, 107, 82, 0.08), transparent 55%),
        var(--bg);
}

.product-stack {
    display: grid;
    gap: 1.25rem;
}

.product-link {
    display: grid;
    grid-template-columns: minmax(9rem, 14rem) 1fr;
    gap: 0;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    transition: border-color 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-link:hover {
    border-color: rgba(31, 107, 82, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(20, 32, 26, 0.08);
}

.product-featured {
    min-height: 17rem;
}

.product-visual {
    position: relative;
    display: grid;
    place-items: center;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 45%),
        radial-gradient(circle at 30% 25%, rgba(216, 196, 164, 0.45), transparent 55%),
        linear-gradient(165deg, #1f6b52 0%, #14523e 100%);
    overflow: hidden;
}

.product-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 75%);
}

.product-mark {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    color: rgba(247, 250, 248, 0.92);
    line-height: 1;
}

.product-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem 2rem 1.85rem;
}

.product-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
}

.product-tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-wash);
    padding: 0.28rem 0.55rem;
    border-radius: 6px;
}

.product-domain {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}

.product-meta h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.65rem;
}

.product-meta p {
    color: var(--ink-soft);
    max-width: 36rem;
    font-size: 1.02rem;
}

.product-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.product-points li {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(243, 245, 242, 0.7);
}

.product-go {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    color: var(--accent);
    padding-bottom: 0.15rem;
    border-bottom: 1.5px solid currentColor;
    transition: gap 0.25s var(--ease);
}

.product-link:hover .product-go {
    gap: 0.7rem;
}

/* Contact */
.contact {
    padding-bottom: 7.5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 26rem);
    gap: 3.5rem;
    align-items: start;
}

.contact .section-head {
    margin-bottom: 0;
}

.contact-points {
    list-style: none;
    margin-top: 1.75rem;
    display: grid;
    gap: 0.7rem;
}

.contact-points li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--ink-soft);
}

.contact-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--accent);
}

.contact-email {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    min-height: 12rem;
    padding: 2rem 1.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
}

.contact-email-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
}

.contact-email-link {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    word-break: break-all;
    line-height: 1.3;
    border-bottom: 2px solid rgba(31, 107, 82, 0.35);
    align-self: flex-start;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email-link:hover {
    color: var(--accent-deep);
    border-bottom-color: var(--accent);
}

.contact-email-hint {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.75rem 0 3.25rem;
    background: #e9ece7;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(10rem, 16rem) 1fr;
    gap: 2rem 3rem;
    align-items: start;
}

.footer-brand .brand + p {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-company {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.footer-company a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.footer-company a:hover {
    color: var(--ink);
}

.footer-copy {
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.84rem;
}

/* Motion */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.32s; }

@keyframes orb-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-18px, 22px, 0) scale(1.04); }
}

@media (max-width: 860px) {
    :root {
        --shell: min(1120px, calc(100% - 2rem));
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1rem 1.25rem;
        background: rgba(243, 245, 242, 0.96);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(14px);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 0.85rem 0.5rem;
        border-bottom: 1px solid var(--line);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

    .hero {
        place-items: center start;
        padding: 7rem 0 4.5rem;
    }

    .hero-orb-a {
        right: -8%;
        top: 10%;
        opacity: 0.85;
    }

    .principle {
        grid-template-columns: 3rem 1fr;
        gap: 0.85rem 1rem;
    }

    .principle-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .principle-image {
        max-width: 22rem;
        border-radius: 12px;
    }

    .team-row {
        grid-template-columns: 4.25rem 1fr;
        gap: 0.9rem 1rem;
        align-items: start;
    }

    .team-avatar {
        width: 4.25rem;
        height: 4.25rem;
        border-radius: 16px;
    }

    .team-row .team-name {
        align-self: center;
    }

    .team-row p {
        grid-column: 1 / -1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .product-link {
        grid-template-columns: 1fr;
    }

    .product-visual {
        min-height: 8.5rem;
    }

    .product-body {
        padding: 1.5rem 1.35rem 1.4rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal,
    .btn,
    .product-link,
    .hero-orb {
        transition: none !important;
        animation: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
