/* ============================================
   Mardenic — Monochrome Editorial
   ============================================ */

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

:root {
    --bg: #e5e3e6;
    --bg-light: #f4f3f5;
    --bg-dark: #c9c7ca;
    --text: #0b090d;
    --muted: #555158;
    --dot: #08060a;
    --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: radial-gradient(circle at 55% 35%, var(--bg-light) 0%, var(--bg) 45%, var(--bg-dark) 100%);
    min-height: 100vh;
}

::selection {
    background: rgba(11, 9, 13, 0.12);
    color: var(--text);
}

strong {
    font-weight: 700;
}

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

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2.5rem;
    background: rgba(229, 227, 230, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav__logo-img {
    height: 44px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.nav__logo-img:hover {
    opacity: 1;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav__link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
    transition: color 0.2s ease;
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: var(--text);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1.5px;
    background: var(--text);
}

/* Hamburger — mobile only */
.nav__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 110;
}

.nav__hamburger-line {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger-line:nth-child(1) {
    top: 4px;
}

.nav__hamburger-line:nth-child(2) {
    bottom: 4px;
}

.nav__hamburger--open .nav__hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav__hamburger--open .nav__hamburger-line:nth-child(2) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(229, 227, 230, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu--open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu__link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
    color: var(--text);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2.5rem;
}

.hero__inner {
    max-width: 1180px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* Dot visualization */
.hero__viz {
    flex-shrink: 0;
    width: 460px;
    height: 460px;
}

.dot-field {
    width: 100%;
    height: 100%;
}

.dot-field__group {
    animation: dotRotate 120s linear infinite;
    transform-origin: 230px 230px;
}

@keyframes dotRotate {
    to { transform: rotate(360deg); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
    .dot-field__group {
        animation: none;
    }
    .dot-field__group circle {
        animation: none !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Hero text */
.hero__text {
    max-width: 520px;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.hero__legend-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot);
    margin-top: 0.55em;
}

.hero__sentence {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* --- Statement --- */
.statement {
    padding: 8rem 2.5rem;
}

.statement__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.statement__text {
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: var(--text);
    max-width: 720px;
}

/* --- Content Sections --- */
.content-section {
    padding: 6rem 2.5rem;
}

.content-section--alt {
    background: rgba(11, 9, 13, 0.02);
}

.content-section__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.content-section__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.content-section__heading {
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: 640px;
    margin-bottom: 2rem;
}

.content-section__body {
    max-width: 640px;
}

.content-section__text {
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.content-section__text em {
    font-style: italic;
    color: var(--text);
}

.content-section__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.content-section__subheading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.005em;
}

.content-section__col .content-section__text {
    font-size: 1rem;
}

/* --- Principles --- */
.principles {
    padding: 4rem 2.5rem 8rem;
}

.principles__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.principle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(11, 9, 13, 0.08);
}

.principle:first-child {
    border-top: 1px solid rgba(11, 9, 13, 0.08);
}

.principle__num {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted);
    flex-shrink: 0;
    width: 2rem;
    font-variant-numeric: tabular-nums;
}

.principle__line {
    flex-shrink: 0;
    width: 40px;
    height: 1px;
    background: rgba(11, 9, 13, 0.2);
}

.principle__text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.005em;
}

/* --- Footer --- */
.footer {
    padding: 2.5rem;
}

.footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__text {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 400;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__link {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--text);
}

/* --- Page Header (About) --- */
.page-header {
    padding: 10rem 2.5rem 4rem;
}

.page-header__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.page-header__title {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.025em;
    color: var(--text);
    max-width: 680px;
    margin-top: 1rem;
}

/* --- About Principles --- */
.about-principles {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 0.5rem;
}

.about-principle {
    padding-left: 2.5rem;
    position: relative;
}

.about-principle__num {
    position: absolute;
    left: 0;
    top: 0.15em;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.about-principle__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.005em;
}

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

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

/* --- Responsive --- */
@media (max-width: 900px) {
    .nav__links {
        display: none;
    }

    .nav__hamburger {
        display: block;
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
    }

    .hero__inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3rem;
    }

    .hero__viz {
        width: 320px;
        height: 320px;
    }

    .hero__text {
        justify-content: center;
        max-width: 100%;
    }

    .statement {
        padding: 5rem 1.5rem;
    }

    .content-section {
        padding: 4rem 1.5rem;
    }

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

    .principles {
        padding: 3rem 1.5rem 5rem;
    }

    .page-header {
        padding: 8rem 1.5rem 3rem;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 1.25rem 1.25rem;
    }

    .nav__logo-img {
        height: 34px;
    }

    .hero {
        padding: 6rem 1.25rem 3rem;
        min-height: 90vh;
    }

    .hero__viz {
        width: 260px;
        height: 260px;
    }

    .hero__sentence {
        font-size: 1.5rem;
    }

    .hero__legend-dot {
        width: 8px;
        height: 8px;
    }

    .statement {
        padding: 4rem 1.25rem;
    }

    .statement__text {
        font-size: 1.25rem;
    }

    .content-section {
        padding: 3rem 1.25rem;
    }

    .content-section__heading {
        font-size: 1.375rem;
    }

    .content-section__text {
        font-size: 1rem;
    }

    .principles {
        padding: 2rem 1.25rem 4rem;
    }

    .principle {
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .principle__line {
        width: 24px;
    }

    .principle__text {
        font-size: 1rem;
    }

    .footer__inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .page-header {
        padding: 7rem 1.25rem 2.5rem;
    }

    .page-header__title {
        font-size: 1.5rem;
    }

    .about-principle {
        padding-left: 2rem;
    }
}
