/* =========================================================================
   HAYUM CO., LTD. — Minimal Light, modern corporate
   ========================================================================= */

:root {
    --bg:        #ffffff;
    --bg-soft:   #f6f4f1;
    --ink:       #16130f;   /* near-black, warm */
    --ink-soft:  #5b554d;
    --muted:     #9b938a;
    --line:      #e8e4dd;
    --accent:    #8a6a3f;   /* bronze — harmonized with logo */
    --accent-dk: #6b4f2e;
    --max:       1080px;
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Pretendard', system-ui, -apple-system, 'Malgun Gothic', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

::selection { background: var(--accent); color: #fff; }

/* ===== Top nav ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px clamp(20px, 5vw, 56px);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav.visible {
    transform: translateY(0);
    opacity: 1;
    border-bottom-color: var(--line);
}
.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--ink);
}
.nav-links {
    display: flex;
    gap: clamp(14px, 2.4vw, 34px);
    font-size: 13px;
    letter-spacing: 0.4px;
    color: var(--ink-soft);
}
.nav-links a { position: relative; transition: color 0.25s; }
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

/* ===== Hero ===== */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    position: relative;
    background:
        radial-gradient(120% 90% at 50% 0%, #fbf9f6 0%, #ffffff 55%);
    overflow: hidden;
}
.hero::after {
    /* subtle rising-sun line */
    content: '';
    position: absolute;
    left: 50%; bottom: -42vw;
    width: 84vw; height: 84vw;
    max-width: 760px; max-height: 760px;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 50%, rgba(138,106,63,0.045), transparent 62%);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 26px;
}
.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(64px, 14vw, 150px);
    line-height: 0.95;
    letter-spacing: clamp(4px, 1.4vw, 14px);
    margin: 0 0 22px;
    color: var(--ink);
}
.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(18px, 3.4vw, 28px);
    color: var(--accent-dk);
    margin: 0 0 28px;
}
.hero-sub {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.9;
}

.hero-scroll {
    position: absolute;
    bottom: 34px; left: 50%;
    transform: translateX(-50%);
    width: 26px; height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    z-index: 1;
}
.hero-scroll span {
    width: 3px; height: 8px;
    margin-top: 8px;
    border-radius: 2px;
    background: var(--accent);
    animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot {
    0%   { opacity: 0; transform: translateY(-4px); }
    40%  { opacity: 1; }
    80%  { opacity: 0; transform: translateY(12px); }
    100% { opacity: 0; }
}

/* ===== Sections ===== */
main { display: block; }
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(64px, 11vw, 130px) clamp(20px, 5vw, 56px);
    border-top: 1px solid var(--line);
}
.section:first-child { border-top: none; }

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
    gap: clamp(28px, 6vw, 80px);
    align-items: start;
}
.section-head { position: sticky; top: 92px; }
.section-index {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.08;
    letter-spacing: 0.5px;
    margin: 0;
    color: var(--ink);
}

.section-body { font-size: clamp(15px, 1.7vw, 16.5px); }
.section-body .lead {
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 22px;
}
.section-body p { color: var(--ink-soft); margin: 0 0 16px; }
.section-body p:last-child { margin-bottom: 0; }

/* ===== Cards (principles / business) ===== */
.card {
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, var(--bg-soft));
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card + .card { margin-top: 18px; }
.card:hover {
    transform: translateY(-4px);
    border-color: #ddd3c4;
    box-shadow: 0 18px 40px -24px rgba(107, 79, 46, 0.45);
}
.card-title {
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 10px;
    padding-left: 14px;
    position: relative;
}
.card-title::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
}
.card-desc {
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(14px, 1.7vw, 15.5px);
    line-height: 1.75;
}

/* ===== Notice ===== */
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 4px;
    border-top: 1px solid var(--line);
    cursor: pointer;
    transition: padding-left 0.3s var(--ease), color 0.3s;
}
.notice-item:first-child { border-top: none; }
.notice-item:hover { padding-left: 12px; color: var(--accent); }
.notice-date {
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--muted);
    flex-shrink: 0;
    min-width: 96px;
}
.notice-text { font-weight: 500; flex: 1; }
.notice-arrow {
    color: var(--accent);
    transition: transform 0.3s var(--ease);
}
.notice-item:hover .notice-arrow { transform: translateX(5px); }

/* ===== History timeline ===== */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 3px; top: 8px; bottom: 8px;
    width: 1px;
    background: var(--line);
}
.timeline-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 18px;
    padding: 12px 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px; top: 20px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg);
}
.timeline-date {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent);
    min-width: 96px;
}
.timeline-text { color: var(--ink-soft); }

/* ===== Footer ===== */
footer {
    background: #16130f;
    color: #d9d3c8;
    margin-top: clamp(40px, 8vw, 90px);
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(56px, 9vw, 96px) clamp(20px, 5vw, 56px) 48px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: clamp(36px, 7vw, 80px);
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 5px;
    color: #fff;
    display: block;
    margin-bottom: 14px;
}
.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 17px;
    color: #b39a72;
    margin: 0;
    line-height: 1.5;
}
.info-row {
    display: flex;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14.5px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
    min-width: 96px;
    flex-shrink: 0;
    color: #938b7d;
    letter-spacing: 0.3px;
}
.info-value { color: #e7e1d6; word-break: keep-all; }
.info-value a { border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.info-value a:hover { border-bottom-color: #b39a72; }

.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px clamp(20px, 5vw, 56px);
    text-align: center;
    font-size: 12.5px;
    letter-spacing: 0.5px;
    color: #7d766a;
}

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: 0.05s; }
.hero .hero-title.reveal { transition-delay: 0.12s; }
.hero .hero-tagline.reveal { transition-delay: 0.22s; }
.hero .hero-sub.reveal { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-scroll span { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 19, 15, 0.55);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--bg);
    width: 100%;
    max-width: 560px;
    max-height: 86vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 30px 80px -20px rgba(22,19,15,0.45);
    padding: 30px 32px;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.35s var(--ease);
}
.modal-overlay.active .modal-box { transform: none; }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.modal-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent);
}
.modal-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.modal-close-btn:hover { color: var(--ink); }
.modal-body h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
}
.modal-date { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.modal-text { font-size: 15px; color: var(--ink-soft); line-height: 1.8; }
.modal-text p { margin: 0 0 14px; }
.modal-text p:last-child { margin-bottom: 0; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
    .nav-links { display: none; }
    .section-grid,
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .section-head { position: static; }
    .section-title { font-size: clamp(28px, 9vw, 38px); }
    .footer-inner { padding-bottom: 40px; }
}
