/* ========================================
   Danny Kim Yoon — Personal Site
   Premium navy + serif aesthetic
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

:root {
    --white: #ffffff;
    --off-white: #fafbfc;
    --cream: #f7f8f9;
    --gray-100: #eef1f4;
    --gray-200: #dde2e8;
    --gray-300: #c4cbd5;
    --gray-400: #9ba5b2;
    --gray-500: #6b7785;
    --gray-600: #505c6a;
    --gray-700: #3a444f;
    --gray-800: #262e38;
    --gray-900: #151a21;
    --black: #0a0c0f;
    --navy: #0f1729;
    --navy-light: #1a2744;
    --indigo: #4338ca;
    --indigo-light: #6366f1;
    --teal: #14b8a6;
    --amber: #f59e0b;

    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Source Serif 4', Georgia, serif;

    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 100px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 41, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 41, 0.08);
    --shadow-xl: 0 24px 48px rgba(15, 23, 41, 0.12);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-600);
    background: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }

/* ========== LAYOUT ========== */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3.display {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--gray-900);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h3, h4, h5, h6 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }
p { max-width: 65ch; }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal);
    margin-bottom: 12px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-light) 100%);
    color: var(--white) !important;
    box-shadow: 0 4px 14px rgba(67, 56, 202, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 56, 202, 0.45);
    filter: brightness(1.08);
}
.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: inset 0 0 0 1.5px var(--gray-300);
}
.btn-secondary:hover {
    box-shadow: inset 0 0 0 1.5px var(--gray-900);
}
.btn-ghost {
    background: transparent;
    color: var(--white);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

/* ========== NAVIGATION ========== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gray-100);
}
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.015em;
}
.nav-logo .accent {
    /* two-tone removed — keep selector for backward compat */
    color: inherit;
    font-style: normal;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
}
.nav-menu a:hover { color: var(--navy); }

/* ========== HERO ========== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background:
      radial-gradient(ellipse at top right, rgba(99, 102, 241, 0.10), transparent 55%),
      radial-gradient(ellipse at bottom left, rgba(20, 184, 166, 0.08), transparent 55%),
      linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 56px;
    align-items: center;
}
.hero-eyebrow {
    color: var(--teal);
}
.hero-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4rem, 9vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--navy);
    margin-bottom: 24px;
}
.hero-name .last {
    /* two-tone removed */
    color: inherit;
    font-style: normal;
}
.hero-subhead {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    line-height: 1.25;
    color: var(--gray-800);
    margin-bottom: 24px;
    max-width: 640px;
}
.hero-subhead .accent {
    font-style: italic;
    color: var(--indigo);
}
.hero-lead {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 3 / 4;
    transform: rotate(2deg);
    border: 8px solid var(--white);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== SECTIONS ========== */
section {
    padding: 90px 0;
}
section.tight { padding: 60px 0; }
section.dark {
    background: var(--navy);
    color: var(--gray-300);
}
section.dark h1, section.dark h2, section.dark h3 { color: var(--white); }
section.dark .eyebrow { color: var(--teal); }
section.cream { background: var(--cream); }

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}
.section-header p {
    margin: 16px auto 0;
    font-size: 1.0625rem;
    color: var(--gray-600);
    max-width: 580px;
}
.section-header.left {
    text-align: left;
    margin-left: 0;
}

/* ========== STORY ========== */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.story-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    border: 8px solid var(--white);
    transform: rotate(-1.5deg);
    transition: transform 0.3s ease;
}
.story-image:hover { transform: rotate(0); }
.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-image .caption {
    /* if we want captions */
}
.story-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 18px;
}
.story-content p:last-child { margin-bottom: 0; }
.image-caption {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* ========== STAT CARDS ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.stat-card {
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 500;
    color: var(--indigo);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-card:nth-child(2) .stat-number { color: var(--teal); }
.stat-card:nth-child(3) .stat-number { color: var(--amber); }
.stat-card:nth-child(4) .stat-number { color: var(--navy); }
.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.45;
}

/* ========== WORK / CASE STUDIES ========== */
.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
.work-card {
    padding: 36px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all 0.25s ease;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}
.work-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.work-meta { }
.work-meta .role {
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 4px;
}
.work-meta .company {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.work-meta .dates {
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.work-content h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.25;
}
.work-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 12px;
}
.work-content .result {
    font-weight: 600;
    color: var(--indigo);
}

/* ========== VIDEOS ========== */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.video-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--gray-900);
}
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-caption {
    padding: 20px 24px;
    background: var(--white);
}
.video-caption .label {
    font-size: 0.75rem;
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}
.video-caption .title {
    font-size: 1rem;
    color: var(--gray-900);
    font-weight: 600;
}

/* ========== APP V1 (Figma screens) ========== */
.app-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 16px 0 32px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.app-screen {
    flex: 0 0 auto;
    width: 260px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    scroll-snap-align: start;
    background: var(--gray-100);
}
.app-screen img {
    width: 100%;
    height: auto;
    display: block;
}
.app-screen .image-caption {
    margin-top: 0;
    padding: 14px 16px 16px;
    background: var(--white);
}
.app-screen.placeholder {
    aspect-ratio: 9 / 19.5;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: center;
    padding: 24px;
}

/* ========== FIELD NOTES (chapters with blurbs) ========== */
.field-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.field-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.field-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.field-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-100);
}
.field-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.field-body {
    padding: 20px 22px 22px;
}
.field-body .label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--teal);
    margin-bottom: 6px;
}
.field-body h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.field-body p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--gray-600);
    margin: 0;
}

/* ========== GALLERY ========== */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ========== CONTACT / CTA ========== */
.contact-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 64px 48px;
    text-align: center;
}
.contact-card h2 {
    color: var(--white);
    margin-bottom: 16px;
}
.contact-card p {
    color: var(--gray-300);
    margin: 0 auto 32px;
    max-width: 540px;
    font-size: 1.0625rem;
}
.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ========== FOOTER ========== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--gray-100);
    color: var(--gray-500);
    font-size: 0.875rem;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer a:hover { color: var(--navy); }

/* ========== DETAIL PAGE ========== */
.detail-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.detail-hero h1 {
    margin-bottom: 16px;
}
.detail-hero .lede {
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--gray-600);
    max-width: 640px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 24px;
}
.back-link:hover { color: var(--navy); }

.prose {
    max-width: 720px;
    margin: 0 auto;
}
.prose h2 {
    margin-top: 56px;
    margin-bottom: 16px;
    font-size: 1.875rem;
}
.prose h3 {
    margin-top: 32px;
    margin-bottom: 10px;
}
.prose p {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: var(--gray-700);
}
.prose ul {
    margin-bottom: 20px;
    padding-left: 0;
}
.prose ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--gray-700);
    font-size: 1.0625rem;
    line-height: 1.6;
}
.prose ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 600;
}
.prose blockquote {
    border-left: 3px solid var(--indigo);
    padding: 4px 0 4px 24px;
    margin: 32px 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gray-800);
    font-style: italic;
    line-height: 1.4;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .hero { padding: 130px 0 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .story-grid { grid-template-columns: 1fr; gap: 40px; }
    .work-card { grid-template-columns: 1fr; gap: 16px; }
    .work-meta { padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
    .video-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .field-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .nav-menu { gap: 18px; }
    .nav-menu a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
    section { padding: 60px 0; }
    .contact-card { padding: 40px 24px; }
}
