:root {
    --ink: #101011;
    --surface: #1A1A1C;
    --chalk: #EDEDEA;
    --muted: rgba(237, 237, 234, 0.58);
    --dim: rgba(237, 237, 234, 0.34);
    --line: rgba(237, 237, 234, 0.09);
    --red: #C73E3A;
    --seal: #B8352F;
    --paper: #F4F2ED;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--ink);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: var(--chalk);
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 300;
}

a {
    color: inherit;
}

.site-shell {
    display: grid;
    grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
    min-height: 100vh;
}

.photo-panel {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #050506;
}

.hero-photos,
.hero-photo,
.photo-gradient {
    position: absolute;
    inset: 0;
}

.hero-photo {
    z-index: 0;
    margin: 0;
    background:
        linear-gradient(120deg, rgba(16, 16, 17, 0.10), rgba(16, 16, 17, 0.68)),
        var(--hero-image),
        radial-gradient(circle at 24% 22%, rgba(237, 237, 234, 0.22), transparent 34%),
        linear-gradient(135deg, #232326, #070708 70%);
    background-position: center;
    background-size: cover;
    opacity: 0;
    animation: heroFade 18s infinite;
}

.hero-photo span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hero-photo-1 {
    opacity: 1;
}

.hero-photo-2 {
    animation-delay: 6s;
}

.hero-photo-3 {
    animation-delay: 12s;
}

.photo-gradient {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(16, 16, 17, 0) 64%, rgba(16, 16, 17, 0.72) 100%),
        linear-gradient(0deg, rgba(16, 16, 17, 0.52), rgba(16, 16, 17, 0) 28%);
    pointer-events: none;
}

.photo-seal {
    position: absolute;
    z-index: 2;
    left: 24px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(237, 237, 234, 0.75);
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.seal-mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 5px;
    background: var(--seal);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.seal-mark svg {
    width: 17px;
    height: 12px;
    fill: none;
}

.seal-mark path {
    stroke: var(--paper);
    stroke-width: 14;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.photo-dots {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 26px;
    display: flex;
    gap: 8px;
}

.photo-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(237, 237, 234, 0.34);
    animation: dotFade 18s infinite;
}

.photo-dots span:nth-child(2) {
    animation-delay: 6s;
}

.photo-dots span:nth-child(3) {
    animation-delay: 12s;
}

.content-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 44px 56px 36px;
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.brand-mark {
    width: 30px;
    height: 20px;
    fill: none;
}

.brand-mark path {
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mark-red {
    stroke: var(--red);
}

.mark-light {
    stroke: var(--chalk);
}

.call-sign,
.site-footer,
.eyebrow,
.discipline-list .index,
.link-list {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.call-sign {
    color: rgba(237, 237, 234, 0.45);
    font-size: 11px;
}

.hero-copy {
    width: min(100%, 560px);
    padding: 48px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 12px;
    letter-spacing: 0.14em;
}

h1 {
    margin: 0;
    color: var(--chalk);
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    font-weight: 600;
    line-height: 1.02;
}

.shadow-rule {
    width: min(260px, 64%);
    height: 1px;
    margin: 20px 0 18px;
    background: linear-gradient(90deg, rgba(237, 237, 234, 0.38), rgba(237, 237, 234, 0));
}

.discipline-list {
    display: flex;
    flex-direction: column;
    margin: 0 0 22px;
}

.discipline-list a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto auto;
    align-items: baseline;
    gap: 14px;
    min-height: 42px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    color: var(--chalk);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, padding-left 160ms ease;
}

.discipline-list a:hover,
.discipline-list a:focus-visible {
    border-bottom-color: var(--red);
    color: #fff;
    padding-left: 6px;
}

.discipline-list .index {
    color: var(--dim);
    font-size: 10px;
}

.discipline-list .hangul {
    color: var(--dim);
    font-family: "IBM Plex Sans KR", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 300;
}

.discipline-list a span:last-child {
    color: var(--red);
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
}

.link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11.5px;
}

.link-list a {
    min-height: 34px;
    min-width: 72px;
    padding: 8px 15px;
    border: 1px solid rgba(237, 237, 234, 0.18);
    border-radius: 999px;
    color: rgba(237, 237, 234, 0.78);
    text-align: center;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.link-list a:hover,
.link-list a:focus-visible {
    border-color: var(--red);
    background: var(--surface);
    color: var(--chalk);
}

.site-footer {
    color: rgba(237, 237, 234, 0.30);
    font-size: 10.5px;
}

@keyframes heroFade {
    0%,
    28% {
        opacity: 1;
    }

    33%,
    95% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes dotFade {
    0%,
    28% {
        background: var(--red);
    }

    33%,
    100% {
        background: rgba(237, 237, 234, 0.34);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .hero-photo-1 {
        opacity: 1;
    }
}

@media (max-width: 860px) {
    .site-shell {
        display: block;
    }

    .photo-panel {
        min-height: 42vh;
    }

    .content-panel {
        min-height: 58vh;
        padding: 28px 24px 26px;
    }

    .hero-copy {
        padding: 42px 0;
    }

    .photo-gradient {
        background:
            linear-gradient(0deg, var(--ink) 0%, rgba(16, 16, 17, 0) 52%),
            linear-gradient(90deg, rgba(16, 16, 17, 0.10), rgba(16, 16, 17, 0.38));
    }
}

@media (max-width: 520px) {
    .content-panel {
        padding: 24px 18px 22px;
    }

    .site-header,
    .site-footer {
        gap: 18px;
    }

    h1 {
        font-size: 2.7rem;
    }

    .discipline-list a {
        grid-template-columns: 24px minmax(0, 1fr) auto;
    }

    .discipline-list a span:last-child {
        display: none;
    }

    .photo-seal {
        left: 18px;
        bottom: 18px;
    }

    .photo-dots {
        right: 18px;
        bottom: 23px;
    }
}
