/* Seongmin Joo — personal site. Light, black & white. */
:root {
  --bg: #ffffff;
  /* AIM Brand Library: color/ink, gray/600, color/deep, lavender/700 */
  --ink: #0B0F2A;
  --mute: #5B607A;
  --deep: #0B1236;
  --accent: #5A60C8;
  --line: #e4e4e4;
  --soft: #f4f4f3;
  --max: 1920px;
  --pad: clamp(20px, 4vw, 72px);
  --font: "Funnel Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Mona Sans", "Helvetica Neue", Arial, sans-serif; /* AIM Brand Library 02. TYPOGRAPHY: Signature = Mona Sans wdth 112 wght 440, Body = Funnel Sans */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.label { font-size: 14px; color: var(--mute); }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 600; letter-spacing: -.01em; font-size: 16px; }
.nav { display: flex; gap: 4px; }
.nav a { font-size: 15px; padding: 10px 12px; color: var(--mute); }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); }

/* hero */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero h1 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; }
.hero .by { margin-top: 28px; color: var(--mute); font-size: 18px; }
.hero .by b { color: var(--ink); font-weight: 500; }
.hero figure { background: var(--soft); border-radius: 4px; overflow: hidden; }
.hero figure img { mix-blend-mode: multiply; }

/* proof strip */
.proof { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.proof .wrap > div { padding: 22px 24px 22px 0; }
.proof .wrap > div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.proof strong { display: block; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.proof span { color: var(--mute); font-size: 14px; }

/* sections */
section.block { padding: clamp(64px, 10vw, 128px) 0; }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.03em; line-height: 1.02; font-weight: 600; }
.more { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }

/* product */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.product p { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; letter-spacing: -.01em; }
.product p + p { margin-top: 18px; color: var(--mute); font-size: 17px; letter-spacing: 0; }
.steps { margin-top: 32px; border-top: 1px solid var(--line); }
.steps li { list-style: none; display: grid; grid-template-columns: 90px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.terrain { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: clamp(32px, 5vw, 56px); }
.terrain figure { background: var(--soft); }
.terrain img { mix-blend-mode: multiply; aspect-ratio: 16/10; object-fit: cover; width: 100%; filter: grayscale(1); }
.terrain figcaption { padding: 10px 12px 12px; }

/* statement */
.statement { background: var(--deep); color: #fff; }
.statement blockquote { font-size: clamp(28px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 500; max-width: 18ch; }
.statement .label { color: #9a9a9a; margin-top: 28px; display: block; }

/* feed list */
.feed-list { border-top: 1px solid var(--ink); }
.feed-item { display: grid; grid-template-columns: 110px 110px 1fr 40px; gap: 16px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feed-item h3 { font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.feed-item p { color: var(--mute); font-size: 15px; margin-top: 4px; }
.feed-item .arrow { text-align: right; font-size: 20px; }
a.feed-item:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: inherit; font-size: 14px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; min-height: 44px; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* story */
.page-title { padding: clamp(48px, 8vw, 104px) 0 clamp(24px, 4vw, 40px); }
.page-title h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -.04em; line-height: .95; font-weight: 600; }
.page-title p { margin-top: 24px; max-width: 40ch; font-size: clamp(18px, 1.7vw, 22px); color: var(--mute); }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.numbers div { padding: 28px 24px 28px 0; }
.numbers div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.numbers strong { display: block; font-size: clamp(44px, 6vw, 80px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.timeline { border-top: 1px solid var(--ink); }
.timeline li { list-style: none; display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline .yr { font-size: 15px; color: var(--mute); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; font-weight: 600; line-height: 1.2; }
.timeline p { color: var(--mute); margin-top: 8px; max-width: 62ch; }
.todo { background: #fff3b0; padding: 0 4px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.contact-grid div { padding: 28px 24px 32px 0; }
.contact-grid div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.contact-grid h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 12px 0 8px; }
.contact-grid p { color: var(--mute); font-size: 15px; }
.btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; }
.btn:hover, .btn.solid { background: var(--ink); color: #fff; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 56px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer .big { display: inline-block; font-size: clamp(22px, 3vw, 36px); overflow-wrap: anywhere; letter-spacing: -.03em; font-weight: 600; line-height: 1; }
footer ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
footer li a { font-size: 15px; display: inline-block; padding: 12px 0; }
footer small { display: block; color: var(--mute); margin-top: 16px; font-size: 13px; }

/* mobile */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .top .wrap { height: 56px; }
  .nav a { padding: 10px 8px; font-size: 15px; }
  .hero .wrap, .product { grid-template-columns: 1fr; }
  .proof .wrap { grid-template-columns: 1fr; }
  .proof .wrap > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .terrain { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--pad) * -1); }
  .terrain figure { scroll-snap-align: start; }
  .feed-item { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .feed-item .date, .feed-item .cat { grid-column: 1; }
  .feed-item .date { order: 0; }
  .feed-item > div { grid-column: 1; }
  .feed-item .arrow { grid-column: 2; grid-row: 1; }
  .numbers, .contact-grid { grid-template-columns: 1fr; }
  .numbers div + div, .contact-grid div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
}

/* render gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 2px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr; } }

/* the one accent: CES line, and link hover */
.proof .award strong { color: var(--accent); }
.more:hover, footer a:hover, .page-title a:hover { color: var(--accent); }

/* Brand type: signature (Mona Sans 112/440) for display text; body stays Funnel Sans */
.logo, .hero h1, .proof strong, .head h2, .statement blockquote, .page-title h1,
.numbers strong, .timeline h3, .contact-grid h3, footer .big {
  font-family: var(--display); font-stretch: 112%; font-weight: 440; letter-spacing: -.02em;
}
.page-title h1, .numbers strong { letter-spacing: -.03em; }
@media (max-width: 820px) {
  /* wider signature face: keep the longest hero line inside the margin at 390px */
  .hero h1 { font-size: clamp(30px, 8.4vw, 44px); }
}

/* feed cards: featured items; photo cards get a dark fade so white text reads, text cards sit on Deep */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.cards[hidden] { display: none; }
.card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3.4; border-radius: 4px; overflow: hidden; background: var(--deep); color: #fff; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:not(.card-text)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,15,42,.94) 0%, rgba(11,15,42,.78) 32%, rgba(11,15,42,.3) 60%, rgba(11,15,42,0) 82%); }
.card-body { position: relative; z-index: 1; padding: clamp(18px, 2vw, 28px); }
.card .meta { display: block; font-size: 13px; color: rgba(255,255,255,.78); margin-bottom: 10px; }
.card h3 { font-family: var(--display); font-stretch: 112%; font-weight: 440; letter-spacing: -.02em; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.18; }
.card-text h3 { font-size: clamp(22px, 2.1vw, 32px); }
.card .src { display: block; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.78); }
.card .arrow { position: absolute; z-index: 1; top: clamp(12px, 1.4vw, 18px); right: clamp(12px, 1.4vw, 18px); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(11,15,42,.6); font-size: 18px; line-height: 1; }
a.card:hover img { transform: scale(1.03); }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.feed-item .src { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); }
.list-head { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3; }
  .card-text { aspect-ratio: auto; min-height: 200px; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* hover focus (ref: sabum.kr/lab, adapted for a light page): on pointer devices the row under the cursor
   gets a faint band and its text column nudges right; other rows stay fully readable */
@media (hover: hover) {
  .feed-item, .timeline li { transition: background-color .2s ease, box-shadow .2s ease; }
  .feed-item > div, .timeline li > div { transition: transform .25s ease; }
  .feed-item:hover, .timeline li:hover {
    background: var(--soft);
    box-shadow: -16px 0 0 var(--soft), 16px 0 0 var(--soft); /* band reaches past the text without moving it */
  }
  .feed-item:hover > div, .timeline li:hover > div { transform: translateX(4px); }
}
