/* ============================================================
   Kim Au Le — Portfolio  (rebuild of kimaule.com)
   Design system
   ============================================================ */

:root {
  --bg:        #fafafa;
  --bg-warm:   #f4f2ec;
  --surface:   #ffffff;
  --ink:       #383838;   /* primary text  */
  --ink-strong:#282828;   /* headings      */
  --muted:     #6e6e6e;
  --green:     #455c33;   /* brand accent  */
  --green-soft:#e7ecdf;
  --line:      #e6e6e6;
  --blue:      #0099ff;
  --orange:    #ff6d38;

  --serif: 'Rokkitt', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'Fragment Mono', 'SFMono-Regular', ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 18px;
  --radius-lg: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Section label (mono, spaced) ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-strong);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 34px;
}
.eyebrow::before { content: "↳"; font-size: 16px; color: var(--ink-strong); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(250,250,250,.82);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--green);
  letter-spacing: -.02em;
  display: inline-flex;
  align-items: center;
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-strong);
  transition: color .2s;
}
.nav-links a:hover { color: var(--green); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 40px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr .8fr;
  gap: 48px;
  align-items: flex-start;
}
.hero-hello {
  display: inline-block;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-strong);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 9px 18px;
  margin: 6px 0 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.32;
  letter-spacing: 0;
  color: var(--green);
  margin: 0 0 30px;
  max-width: 20ch;
}
.hero h1 .ital {
  font-style: italic;
  font-family: 'Libre Baskerville', var(--serif);
  font-size: .92em;
}
.hero h1 .d-orange { color: var(--orange); }
.hero h1 .d-purple { color: #9d2eff; }
.hero h1 .d-ink { color: var(--ink-strong); }
.hero-status {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 26px;
}
.hero-status a { font-weight: 600; }
.lk-blue { color: var(--blue); }
.lk-red  { color: #e5484d; }

.social-row { display: flex; gap: 12px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: background .2s, color .2s, border-color .2s;
}
.social-row a:hover { border-color: var(--green); color: var(--green); }

.hero-photo { display: flex; justify-content: center; padding-top: 8px; }
.hero-photo img {
  width: 280px;
  height: 280px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-soft);
}
@media (max-width: 900px) {
  .hero-photo { justify-content: flex-start; }
}

/* ============================================================
   WORKS
   ============================================================ */
.section { padding: 72px 0; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 30px;
  align-items: start;
}
.work-card {
  background: #f1f0ec;
  border-radius: 22px;
  overflow: hidden;
  padding: 14px 14px 8px;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
  display: flex;
  flex-direction: column;
}
.work-card:hover { transform: translateY(-5px); }
.work-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--green-soft);
}
.work-thumb img, .work-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.work-card:hover .work-thumb img, .work-card:hover .work-thumb video { transform: scale(1.03); }
.work-body { padding: 20px 8px 18px; }
.work-body h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-strong);
  margin: 0 0 8px;
}
.work-body p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  aspect-ratio: 800 / 766;
  object-fit: cover;
  background: var(--green-soft);
}
.about-hi {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  color: var(--ink-strong);
  margin: 0 0 20px;
}
.about-copy p { margin: 0 0 20px; font-size: 19px; color: var(--ink); line-height: 1.7; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy em { color: var(--green); font-style: italic; }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-list { border-top: 1px solid var(--line); }
.exp-item {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 24px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .2s, padding-left .2s;
}
.exp-item:hover { background: var(--surface); padding-left: 20px; }
.exp-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink-strong);
}
.exp-date { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
.exp-role { color: var(--ink); font-size: 17px; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
  margin: 40px 0 0;
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 20px;
}
.cta p { color: rgba(255,255,255,.86); font-size: 18px; margin: 0 0 30px; max-width: 46ch; }
.cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--green);
  font-weight: 700;
  font-size: 17px;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.cta .btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.cta-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 588 / 601;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 46px 0;
  text-align: center;
}
.footer .foot-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 16px; }
.footer .foot-links a { color: var(--muted); font-size: 15px; }
.footer .foot-links a:hover { color: var(--green); }
.footer .copy { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { order: -1; max-width: 360px; }
  .works-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 380px; }
  .exp-item { grid-template-columns: 1fr; gap: 4px; }
  .exp-date { order: 3; }
  .cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-photo { max-width: 260px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav-links a { padding: 8px 12px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
  .wrap { padding: 0 18px; }
  .hero { padding: 52px 0 48px; }
  .section { padding: 52px 0; }
  .cta { padding: 32px 22px; }
}

/* page (case study) helpers reused across portfolio pages */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em;
  color: var(--green); margin-bottom: 30px;
}
.back-link:hover { text-decoration: underline; }

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.case-hero { padding: 56px 0 44px; }
.case-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--ink-strong);
  margin: 10px 0 16px;
}
.case-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--ink-strong);
  margin: 0 0 40px;
  max-width: 34ch;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.meta-item .k {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin-bottom: 10px;
}
.meta-item .v { font-size: 16px; color: var(--ink); line-height: 1.5; }

/* anchor jump nav */
.jump-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 34px 0 10px;
}
.jump-nav a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: all .2s;
}
.jump-nav a:hover { border-color: var(--green); color: var(--green); }

/* content */
.case-section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.case-section:last-of-type { border-bottom: none; }
.case-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 18px;
}
.case-h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink-strong);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -.01em;
}
.case-h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  color: var(--ink-strong);
  margin: 30px 0 12px;
}
.case-body { max-width: 760px; }
.case-body p { font-size: 18px; line-height: 1.75; color: var(--ink); margin: 0 0 18px; }
.lead { font-size: 21px !important; line-height: 1.6 !important; color: var(--ink-strong) !important; font-weight: 500; }

.bullets { list-style: none; padding: 0; margin: 0 0 18px; max-width: 760px; }
.bullets li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.bullets li::before {
  content: "✽";
  position: absolute; left: 0; top: 0;
  color: var(--green);
}

.figure { margin: 30px 0; }
.figure img, .figure video {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--green-soft);
}
.figure.plain img, .figure.plain video { border: none; background: transparent; }
.figure figcaption {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  letter-spacing: .04em;
}
.fig-grid { display: grid; gap: 20px; margin: 30px 0; }
.fig-grid.two { grid-template-columns: 1fr 1fr; }
.fig-grid.three { grid-template-columns: repeat(3, 1fr); }

.card-row { display: grid; gap: 20px; margin: 26px 0; }
.card-row.two { grid-template-columns: 1fr 1fr; }
.card-row.three { grid-template-columns: repeat(3, 1fr); }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.info-card .num {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 26px;
  color: var(--green);
  margin-bottom: 8px;
}
.info-card h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink-strong);
  margin: 0 0 10px;
}
.info-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

.quote {
  border-left: 3px solid var(--green);
  padding: 6px 0 6px 22px;
  margin: 22px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--ink-strong);
  max-width: 720px;
}
.quote .who { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); margin-top: 8px; }

.callout {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 26px 0;
  max-width: 820px;
}
.callout p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--green); font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin: 26px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.stat .big { font-family: var(--serif); font-weight: 800; font-size: 34px; color: var(--green); }
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 6px; }

@media (max-width: 820px) {
  .meta-grid { grid-template-columns: repeat(2,1fr); }
  .fig-grid.two, .fig-grid.three,
  .card-row.two, .card-row.three { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

/* case study: leading hero image sits above the title block */
.case-lead-img { padding-top: 40px; }
.case-lead-img .figure { margin: 0; }
.case-lead-img .figure img { border-radius: var(--radius-lg); }
.case-hero { padding-top: 34px; }
