/* ────────────────────────────────────────────────────────────
   Dosucorp — shared stylesheet
   ──────────────────────────────────────────────────────────── */

:root {
    --bg-primary: #fafaf8;
    --bg-secondary: #f0f0ec;
    --text-primary: #0f0f0f;
    --text-secondary: #5a5a5a;
    --divider: #e5e5e0;
    --hover: #000000;
    --accent: #9c6a3a;
    --accent-deep: #7a4f23;
    --footer-bg: #0f0f0f;
    --footer-text: #fafaf8;
    --footer-text-secondary: #a8a8a4;
    --footer-divider: #2a2a2a;
    --footer-accent: #c79c69;

    --max-content: 1200px;
    --max-prose: 680px;
    --header-height: 72px;

    --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover { color: var(--accent-deep); }

.site-header a:hover,
.site-footer a:hover { color: var(--hover); }

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

::selection { background: var(--text-primary); color: var(--bg-primary); }

/* ────────────────────────────────────────────────────────────
   HEADER
   ──────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--divider);
}

.site-header__inner {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-primary);
}

.site-header__brand img { width: 32px; height: 32px; }

.site-header__wordmark {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2em;
}


/* ────────────────────────────────────────────────────────────
   LAYOUT
   ──────────────────────────────────────────────────────────── */
main { display: block; }

.section {
    padding: 6rem 2rem;
}

.section--lg { padding: 8rem 2rem; }

.section--bg-secondary { background: var(--bg-secondary); }

.section__inner {
    max-width: var(--max-content);
    margin: 0 auto;
}

.section__inner--prose {
    max-width: var(--max-prose);
    margin: 0 auto;
}

.section__inner--center { text-align: center; }

.divider {
    max-width: var(--max-content);
    margin: 0 auto;
    border: 0;
    border-top: 1px solid var(--divider);
}

/* ────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ──────────────────────────────────────────────────────────── */
.subhead {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
}

.subhead::before {
    content: "";
    display: inline-block;
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
    flex-shrink: 0;
}

.subhead--secondary { color: var(--text-secondary); }

.display-hero {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.display-section {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.motto {
    font-family: var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.lineage {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.body-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.body-text + .body-text { margin-top: 1.25rem; }

.text-secondary { color: var(--text-secondary); }

.small { font-size: 0.875rem; }

.caption {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ────────────────────────────────────────────────────────────
   HOME — HERO
   ──────────────────────────────────────────────────────────── */
.hero {
    padding: 8rem 2rem;
    text-align: center;
}

.hero__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__mark {
    width: 80px;
    height: 80px;
    margin-bottom: 4rem;
}

.hero__sub {
    margin-top: 1.5rem;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

.hero__rule {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--accent);
    margin: 3.5rem auto 0;
}

.hero__motto { margin-top: 2.5rem; }
.hero__lineage { margin-top: 1.5rem; }

/* ────────────────────────────────────────────────────────────
   HOME — THESIS
   ──────────────────────────────────────────────────────────── */
.thesis {
    padding: 4rem 2rem 8rem;
    background: var(--bg-primary);
}

.thesis__inner {
    max-width: var(--max-prose);
    margin: 0 auto;
}

/* ────────────────────────────────────────────────────────────
   HOME — PORTFOLIO HEADING
   ──────────────────────────────────────────────────────────── */
.portfolio-preview__heading {
    margin-bottom: 4rem;
    max-width: 900px;
}

/* ────────────────────────────────────────────────────────────
   HOME — CLOSING
   ──────────────────────────────────────────────────────────── */
.closing {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--bg-primary);
}

.closing p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.375rem;
    color: var(--text-primary);
}

.closing a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

/* ────────────────────────────────────────────────────────────
   GROUP / GENERIC PAGE HEADERS
   ──────────────────────────────────────────────────────────── */
.page-header {
    padding: 8rem 2rem 4rem;
}

.page-header__inner {
    max-width: var(--max-content);
    margin: 0 auto;
}

.page-header__display { max-width: 900px; }

.page-header__lede {
    margin-top: 1.5rem;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: var(--max-prose);
    line-height: 1.6;
}

.section--narrow {
    padding: 4rem 2rem;
}

.section--narrow .section__inner { max-width: var(--max-content); }

.prose {
    max-width: var(--max-prose);
}

/* ────────────────────────────────────────────────────────────
   OPERATING PRINCIPLES
   ──────────────────────────────────────────────────────────── */
.principles {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: var(--max-prose);
    counter-reset: principle;
    list-style: none;
}

.principles > div,
.principles > li {
    position: relative;
    padding-left: 5rem;
    counter-increment: principle;
}

.principles > div::before,
.principles > li::before {
    content: counter(principle, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -0.125rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.125rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 0.01em;
}

.principle__title {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}

.principle__body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

@media (max-width: 700px) {
    .principles > div,
    .principles > li { padding-left: 3.5rem; }
    .principles > div::before,
    .principles > li::before { font-size: 1.625rem; }
}

/* ────────────────────────────────────────────────────────────
   PORTFOLIO DETAIL
   ──────────────────────────────────────────────────────────── */
.subsidiary {
    padding: 4rem 2rem;
}

.subsidiary__inner {
    max-width: var(--max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 5rem;
    align-items: start;
}

.subsidiary__main { max-width: var(--max-prose); }

.subsidiary__heading {
    margin-bottom: 1.75rem;
}

.subsidiary__meta {
    text-align: right;
    font-size: 0.875rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.subsidiary__meta dl {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subsidiary__meta dt {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.subsidiary__meta dd {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.subsidiary__meta a {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 1px;
}

/* ────────────────────────────────────────────────────────────
   CONTACT
   ──────────────────────────────────────────────────────────── */
.inquiry-list {
    max-width: var(--max-content);
    margin: 0 auto;
    list-style: none;
}

.inquiry {
    padding: 2rem 0;
    border-top: 1px solid var(--divider);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: baseline;
}

.inquiry:last-child { border-bottom: 1px solid var(--divider); }

.inquiry__label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
}

.inquiry__email {
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--divider);
    padding-bottom: 2px;
}

.inquiry__email:hover { border-color: var(--text-primary); }

.connect {
    margin-top: 2rem;
    max-width: var(--max-prose);
}

.connect p { margin-bottom: 1rem; }

.connect a {
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

/* ────────────────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 5rem 2rem 2rem;
}

.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #ffffff; }

.site-footer__inner {
    max-width: var(--max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 5rem;
    padding-bottom: 4rem;
}

.site-footer__wordmark {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--footer-text);
    margin-bottom: 2rem;
    display: block;
}

.site-footer__motto {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.125rem;
    color: var(--footer-text);
    margin-bottom: 1.5rem;
}

.site-footer__identity {
    font-size: 0.875rem;
    color: var(--footer-text-secondary);
    line-height: 1.6;
    max-width: 320px;
}

.site-footer__col-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--footer-text-secondary);
    margin-bottom: 1.5rem;
}

.site-footer__nav,
.site-footer__contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-footer__nav a,
.site-footer__contact a {
    font-size: 0.9375rem;
    font-weight: 400;
}

.site-footer__contact .row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.site-footer__contact .row span {
    font-size: 0.75rem;
    color: var(--footer-text-secondary);
    letter-spacing: 0.05em;
}

.site-footer__linkedin {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text-secondary);
    transition: color 0.2s ease;
}

.site-footer__linkedin svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
}

.site-footer__linkedin:hover { color: var(--footer-text); }

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.linkedin-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
}

.linkedin-icon:hover { color: var(--text-primary); }

.site-footer__strip {
    border-top: 1px solid var(--footer-divider);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 0.75rem;
    color: var(--footer-text-secondary);
    max-width: var(--max-content);
    margin: 0 auto;
}

/* ────────────────────────────────────────────────────────────
   FADE-IN ON SCROLL (CSS only — no JS)
   ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .fade-in {
            animation: fadeInUp linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(16px); }
            to   { opacity: 1; transform: translateY(0); }
        }
    }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .site-header { height: 64px; }
    .site-header__inner { padding: 0 1.5rem; }

    .section, .section--lg, .hero {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section { padding-top: 3rem; padding-bottom: 3rem; }
    .section--lg { padding-top: 4rem; padding-bottom: 4rem; }
    .hero { padding-top: 4rem; padding-bottom: 4rem; }

    .page-header { padding: 4rem 1.5rem 2rem; }
    .section--narrow { padding: 2rem 1.5rem; }
    .thesis { padding: 2rem 1.5rem 4rem; }
    .closing { padding: 3rem 1.5rem; }

    .subsidiary__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .subsidiary__meta {
        text-align: left;
        padding-top: 2rem;
        border-top: 1px solid var(--divider);
    }

    .inquiry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }

    .site-footer { padding: 3rem 1.5rem 2rem; }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-bottom: 2.5rem;
    }

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

@media (max-width: 480px) {
    .hero__mark { width: 64px; height: 64px; margin-bottom: 2.5rem; }
}
