/* ------------------------------------------------------------------
   CK Jeon, personal site
   Radius rule: surfaces, images and buttons = 12px; inline chips = 6px.
   One accent colour, applied identically in light and dark.
------------------------------------------------------------------- */

@font-face{
  font-family:"Geist";
  src:url("/fonts/Geist.woff2") format("woff2-variations");
  font-weight:100 900; font-display:swap; font-style:normal;
}
@font-face{
  font-family:"Geist Mono";
  src:url("/fonts/GeistMono.woff2") format("woff2-variations");
  font-weight:100 900; font-display:swap; font-style:normal;
}

:root{
  --bg:#fbfbfa;
  --surface:#ffffff;
  --text:#16181b;
  --muted:#5c6268;
  --line:#e3e3e0;
  --line-soft:#eeeeec;
  --accent:#0a6e52;
  --accent-ink:#ffffff;
  --accent-soft:rgba(10,110,82,.08);
  --shadow:0 1px 2px rgba(22,24,27,.04), 0 12px 32px -16px rgba(22,24,27,.18);

  --r:12px;
  --r-chip:6px;
  --wrap:1180px;
  --ease:cubic-bezier(.16,1,.3,1);
}

@media (prefers-color-scheme:dark){
  :root{
    --bg:#0b0d0e;
    --surface:#131618;
    --text:#e8eaec;
    --muted:#98a0a7;
    --line:#23282c;
    --line-soft:#1b1f22;
    --accent:#3ddc9a;
    --accent-ink:#04211a;
    --accent-soft:rgba(61,220,154,.10);
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 16px 40px -20px rgba(0,0,0,.7);
  }
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

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

.wrap{width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:24px}

.skip{
  position:absolute; left:-9999px; top:0; z-index:100;
  background:var(--accent); color:var(--accent-ink);
  padding:10px 16px; border-radius:var(--r); font-weight:600;
}
.skip:focus{left:12px; top:12px}

:where(a,button,.tile):focus-visible{
  outline:2px solid var(--accent); outline-offset:3px; border-radius:var(--r);
}

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:saturate(150%) blur(12px);
  -webkit-backdrop-filter:saturate(150%) blur(12px);
  border-bottom:1px solid var(--line-soft);
}
.nav-in{
  height:68px; display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{display:inline-flex; align-items:center; gap:10px; text-decoration:none; font-weight:600; letter-spacing:-.01em}
.brand-mark{
  display:grid; place-items:center; width:28px; height:28px;
  border-radius:var(--r-chip); background:var(--accent); color:var(--accent-ink);
  font-family:"Geist Mono",ui-monospace,monospace; font-size:11px; font-weight:600; letter-spacing:.02em;
}
.nav-links{display:flex; align-items:center; gap:26px; font-size:14.5px; white-space:nowrap}
.nav-links a{text-decoration:none; color:var(--muted); transition:color .2s var(--ease)}
.nav-links a:hover{color:var(--text)}
.nav-cta{
  color:var(--text) !important; font-weight:500;
  border:1px solid var(--line); border-radius:var(--r);
  padding:7px 14px; transition:border-color .2s var(--ease), background .2s var(--ease);
}
.nav-cta:hover{border-color:var(--accent); background:var(--accent-soft)}
.nav-resume{color:var(--text) !important; font-weight:500}
.nav-resume:hover{color:var(--accent) !important}
/* Section anchors collapse on small screens, but Resume and contact are the two
   actions a recruiter came for, so both survive down to the narrowest viewport. */
@media (max-width:960px){
  .nav-links a:not(.nav-cta):not(.nav-resume){display:none}
  .nav-links{gap:20px}
}
@media (max-width:420px){
  .brand-name{display:none}
  .nav-links{gap:14px}
}

/* ---------- hero ---------- */
.hero{padding:clamp(48px,7vw,88px) 0 clamp(40px,5vw,64px)}
.hero-in{
  display:grid; gap:clamp(32px,5vw,64px);
  grid-template-columns:1fr; align-items:center;
}
@media (min-width:960px){
  .hero-in{grid-template-columns:1.18fr 1fr}
}

.eyebrow{
  margin:0 0 20px;
  font-family:"Geist Mono",ui-monospace,monospace;
  font-size:11.5px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--muted);
}
h1{
  margin:0;
  font-size:clamp(2rem,3.4vw,2.7rem);
  line-height:1.1;
  letter-spacing:-.03em;
  font-weight:600;
  text-wrap:balance;
}
.lede{
  margin:22px 0 0; max-width:46ch;
  font-size:clamp(1.02rem,1.5vw,1.15rem);
  color:var(--muted);
}
.cta-row{display:flex; flex-wrap:wrap; gap:12px; margin-top:32px}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  white-space:nowrap;
  padding:12px 22px; border-radius:var(--r);
  font-size:15px; font-weight:500; text-decoration:none;
  border:1px solid transparent;
  transition:transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--accent); color:var(--accent-ink)}
.btn-primary:hover{background:color-mix(in srgb, var(--accent) 88%, var(--text))}
.btn-ghost{border-color:var(--line); color:var(--text)}
.btn-ghost:hover{border-color:var(--accent); background:var(--accent-soft)}

.shot{
  display:block; border-radius:var(--r); overflow:hidden;
  border:1px solid var(--line); background:var(--surface);
  box-shadow:var(--shadow);
  transition:transform .35s var(--ease), border-color .3s var(--ease);
}
.shot:hover{transform:translateY(-3px); border-color:color-mix(in srgb, var(--accent) 45%, var(--line))}
.shot img{width:100%}

/* ---------- metrics ---------- */
.metrics{border-block:1px solid var(--line-soft); background:var(--surface)}
.metrics-in{
  display:grid; grid-template-columns:1fr; gap:0;
}
@media (min-width:700px){ .metrics-in{grid-template-columns:repeat(2,1fr)} }
@media (min-width:1000px){ .metrics-in{grid-template-columns:repeat(4,1fr)} }
.metric{padding:28px 0}
@media (min-width:700px){
  .metric{padding:30px 28px}
  .metric:not(:first-child){border-left:1px solid var(--line-soft)}
  .metric:first-child{padding-left:0}
}
@media (min-width:700px) and (max-width:999px){
  .metric:nth-child(3){border-left:0; padding-left:0}
  .metric:nth-child(-n+2){border-bottom:1px solid var(--line-soft)}
}
.metric .num{
  display:block;
  font-family:"Geist Mono",ui-monospace,monospace;
  font-size:clamp(1.9rem,3.2vw,2.35rem);
  font-weight:500; letter-spacing:-.03em; line-height:1.1;
  color:var(--accent);
}
.metric .lab{display:block; margin-top:10px; font-size:14px; color:var(--muted); max-width:30ch}

/* ---------- generic section ---------- */
.section{padding:clamp(64px,8vw,108px) 0}
.section-alt{background:var(--surface); border-block:1px solid var(--line-soft)}
.h2{
  margin:0;
  font-size:clamp(1.55rem,3vw,2.05rem);
  line-height:1.15; letter-spacing:-.024em; font-weight:600;
}
.section-lede{margin:14px 0 0; max-width:62ch; color:var(--muted)}

/* ---------- selected work ---------- */
.feature{
  margin-top:44px; padding-top:32px; border-top:1px solid var(--line);
}
.feature-head{display:flex; flex-wrap:wrap; align-items:baseline; gap:16px 20px}
.feature h3{
  margin:0; font-size:clamp(1.3rem,2.4vw,1.7rem);
  letter-spacing:-.022em; font-weight:600;
}
.feature-body{margin:16px 0 0; max-width:70ch; color:var(--muted); font-size:16.5px}

.grid-2{
  display:grid; grid-template-columns:1fr; gap:0; margin-top:8px;
}
@media (min-width:820px){ .grid-2{grid-template-columns:1fr 1fr; column-gap:56px} }
.entry{padding:32px 0 0; margin-top:32px; border-top:1px solid var(--line-soft)}
.entry h3{margin:0 0 12px; font-size:1.12rem; letter-spacing:-.016em; font-weight:600}
.entry p{margin:0; color:var(--muted); font-size:15.2px}

.chips{list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 0; padding:0}
.chips li{
  font-family:"Geist Mono",ui-monospace,monospace;
  font-size:11.5px; letter-spacing:.01em;
  padding:4px 9px; border-radius:var(--r-chip);
  border:1px solid var(--line); color:var(--muted);
}

/* ---------- bento platforms ---------- */
.bento{
  display:grid; grid-template-columns:1fr; gap:18px; margin-top:44px;
}
/* Two featured tiles on top, four supporting tiles below. Every row holds
   equal-span tiles, so images share a height and no tile stretches to fill. */
@media (min-width:620px) and (max-width:899px){
  .bento{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:900px){
  .bento{grid-template-columns:repeat(4,1fr); gap:20px}
  .tile-wide{grid-column:span 2}
}
.tile{
  display:flex; flex-direction:column;
  border:1px solid var(--line); border-radius:var(--r);
  background:var(--bg); overflow:hidden; text-decoration:none;
  transition:transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover{transform:translateY(-3px); border-color:color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow:var(--shadow)}
.tile-shot{display:block; overflow:hidden; border-bottom:1px solid var(--line-soft); background:var(--surface)}
.tile-shot img{width:100%; transition:transform .5s var(--ease)}
.tile:hover .tile-shot img{transform:scale(1.02)}
.tile-meta{display:block; padding:18px 20px 20px}
.tile-name{display:block; font-weight:600; letter-spacing:-.014em; font-size:1.02rem}
.tile-wide .tile-name{font-size:1.15rem}
.tile-desc{display:block; margin-top:7px; color:var(--muted); font-size:14.2px; line-height:1.55}
.tile-url{
  display:block; margin-top:12px;
  font-family:"Geist Mono",ui-monospace,monospace;
  font-size:11.5px; color:var(--accent);
}
.also{margin:26px 0 0; font-size:14.5px; color:var(--muted)}
.also a{color:var(--text); text-underline-offset:3px; text-decoration-color:var(--line)}
.also a:hover{text-decoration-color:var(--accent)}

/* ---------- timeline ---------- */
.timeline{list-style:none; margin:44px 0 0; padding:0}
.role{
  display:grid; grid-template-columns:1fr; gap:8px 40px;
  padding:30px 0; border-top:1px solid var(--line-soft);
}
.role:first-child{border-top:1px solid var(--line)}
@media (min-width:780px){ .role{grid-template-columns:120px 1fr} }
.role-when{
  display:flex; gap:6px; align-items:baseline;
  font-family:"Geist Mono",ui-monospace,monospace; font-size:13px; color:var(--muted);
}
@media (min-width:780px){ .role-when{flex-direction:column; gap:0} }
.yr{color:var(--text); font-weight:500}
.yr-to::before{content:"to "; color:var(--muted)}
@media (max-width:779px){ .yr-to::before{content:"to "} }
.role-what h3{margin:0; font-size:1.1rem; letter-spacing:-.016em; font-weight:600; line-height:1.35}
.role-org{margin:5px 0 12px; font-size:14px; color:var(--accent)}
.role-what p:last-child{margin:0; color:var(--muted); font-size:15.2px; max-width:68ch}

/* ---------- stack ---------- */
.logos{
  list-style:none; margin:40px 0 0; padding:0;
  display:flex; flex-wrap:wrap; align-items:center; gap:14px 30px;
  padding-bottom:38px; border-bottom:1px solid var(--line-soft);
}
.lg{
  display:block; width:26px; height:26px;
  background:var(--muted);
  -webkit-mask:var(--i) center/contain no-repeat;
  mask:var(--i) center/contain no-repeat;
  transition:background .25s var(--ease);
}
.logos li:hover .lg{background:var(--text)}

.clusters{display:grid; grid-template-columns:1fr; gap:34px; margin-top:38px}
@media (min-width:860px){ .clusters{grid-template-columns:repeat(3,1fr); gap:44px} }
.cluster h3{margin:0 0 14px; font-size:.95rem; font-weight:600; letter-spacing:-.01em}

/* ---------- credentials ---------- */
.creds{display:grid; grid-template-columns:1fr; gap:44px}
@media (min-width:780px){ .creds{grid-template-columns:1fr 1fr; gap:64px} }
.plain{list-style:none; margin:22px 0 0; padding:0}
.plain li{padding:13px 0; border-top:1px solid var(--line-soft); color:var(--muted); font-size:15.2px}
.plain li strong{color:var(--text); font-weight:500}

/* ---------- footer ---------- */
.foot{background:var(--surface); border-top:1px solid var(--line); padding:clamp(56px,7vw,88px) 0 0}
.foot-in{
  display:grid; grid-template-columns:1fr; gap:36px; align-items:start;
  padding-bottom:52px;
}
@media (min-width:820px){ .foot-in{grid-template-columns:1.6fr 1fr} }
.foot-lead p{margin:14px 0 26px; max-width:52ch; color:var(--muted)}
.foot-lead .cta-row{margin-top:0}
.foot-links{display:flex; flex-direction:column; gap:12px; font-size:15px}
@media (min-width:820px){ .foot-links{align-items:flex-end} }
.foot-links a{text-decoration:none; color:var(--muted); transition:color .2s var(--ease)}
.foot-links a:hover{color:var(--accent)}
.foot-base{
  padding-block:22px; border-top:1px solid var(--line-soft);
  font-size:13px; color:var(--muted);
}

/* ---------- reveal ----------
   Purpose: sequence entries so the eye lands on one item at a time instead of
   a wall of text. Driven entirely by the CSS view timeline, so there is no JS
   dependency: browsers without support simply render the content visible.     */
@keyframes rise{
  from{opacity:0; transform:translateY(14px)}
  to{opacity:1; transform:none}
}
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()){
    .reveal{
      animation:rise linear both;
      animation-timeline:view();
      animation-range:entry 0% entry 40%;
    }
  }
}
