/* ==========================================================================
   Yunchae Cho — Liquid Glass portfolio
   1. Tokens (light / dark)      6. Cards & chips
   2. Base & ambient background  7. Timeline
   3. Glass material             8. Case study
   4. Navigation                 9. Photos & lightbox
   5. Type, layout, buttons     10. Contact form, footer, motion
   To change the accent, edit --accent / --accent-ink / --accent-fill below.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  --bg: #eef1f8;
  --ink: #12141c;
  --ink-2: #4a5062;
  --ink-3: #737a8e;
  --line: rgba(18, 24, 48, 0.08);

  --accent: #6d8bff;          /* glows, dots, highlights */
  --accent-ink: #3f5fd8;      /* accent-colored text (AA on glass) */
  --accent-fill: #5876f0;     /* primary button fill */
  --accent-soft: rgba(109, 139, 255, 0.14);

  --glass-a: rgba(255, 255, 255, 0.78);
  --glass-b: rgba(255, 255, 255, 0.58);
  --glass-rim-hi: rgba(255, 255, 255, 0.95);
  --glass-rim-lo: rgba(255, 255, 255, 0.25);
  --glass-inner: rgba(255, 255, 255, 0.85);
  --glass-shade: rgba(20, 30, 70, 0.05);
  --glass-shadow: 0 1px 1px rgba(20, 30, 70, 0.04), 0 10px 30px -6px rgba(40, 55, 120, 0.16);
  --glass-shadow-lift: 0 2px 4px rgba(20, 30, 70, 0.05), 0 24px 50px -10px rgba(40, 55, 120, 0.26);
  --sheen: rgba(255, 255, 255, 0.55);
  --pill-active: rgba(255, 255, 255, 0.92);
  --field: rgba(255, 255, 255, 0.55);

  --blob-1: #9cc2ff;
  --blob-2: #f8c9df;
  --blob-3: #c4b5ff;
  --blob-4: #a8ecdf;
  --blob-opacity: 0.42;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Pretendard", "Apple SD Gothic Neo", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090b12;
  --ink: #f3f5fa;
  --ink-2: #b7bdcf;
  --ink-3: #8a91a6;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #93a9ff;
  --accent-ink: #a9bbff;
  --accent-fill: #6f8cff;
  --accent-soft: rgba(147, 169, 255, 0.16);
  --glass-a: rgba(46, 52, 74, 0.72);
  --glass-b: rgba(24, 28, 42, 0.52);
  --glass-rim-hi: rgba(255, 255, 255, 0.32);
  --glass-rim-lo: rgba(255, 255, 255, 0.04);
  --glass-inner: rgba(255, 255, 255, 0.14);
  --glass-shade: rgba(0, 0, 0, 0.25);
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 34px -8px rgba(0, 0, 0, 0.6);
  --glass-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 26px 56px -12px rgba(0, 0, 0, 0.7);
  --sheen: rgba(255, 255, 255, 0.12);
  --pill-active: rgba(255, 255, 255, 0.16);
  --field: rgba(255, 255, 255, 0.06);
  --blob-1: #2c4fb8;
  --blob-2: #7d3a78;
  --blob-3: #4b37a6;
  --blob-4: #17695f;
  --blob-opacity: 0.36;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #090b12;
    --ink: #f3f5fa;
    --ink-2: #b7bdcf;
    --ink-3: #8a91a6;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #93a9ff;
    --accent-ink: #a9bbff;
    --accent-fill: #6f8cff;
    --accent-soft: rgba(147, 169, 255, 0.16);
    --glass-a: rgba(46, 52, 74, 0.72);
    --glass-b: rgba(24, 28, 42, 0.52);
    --glass-rim-hi: rgba(255, 255, 255, 0.32);
    --glass-rim-lo: rgba(255, 255, 255, 0.04);
    --glass-inner: rgba(255, 255, 255, 0.14);
    --glass-shade: rgba(0, 0, 0, 0.25);
    --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 34px -8px rgba(0, 0, 0, 0.6);
    --glass-shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 26px 56px -12px rgba(0, 0, 0, 0.7);
    --sheen: rgba(255, 255, 255, 0.12);
    --pill-active: rgba(255, 255, 255, 0.16);
    --field: rgba(255, 255, 255, 0.06);
    --blob-1: #2c4fb8;
    --blob-2: #7d3a78;
    --blob-3: #4b37a6;
    --blob-4: #17695f;
    --blob-opacity: 0.36;
  }
}

/* 2. Base & ambient background --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;  /* keeps section titles clear of the floating menu */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 500ms var(--ease), color 400ms ease;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* soft, slowly drifting color fields that the glass refracts */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient span {
  position: absolute;
  width: 52vmax;
  height: 52vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  animation: drift 32s var(--ease) infinite alternate;
  transition: background-color 600ms ease, opacity 600ms ease;
}

.ambient span:nth-child(1) { background: var(--blob-1); top: -18vmax; left: -12vmax; }
.ambient span:nth-child(2) { background: var(--blob-2); top: 10vh; right: -20vmax; opacity: 0.34; animation-delay: -8s; animation-duration: 38s; }
.ambient span:nth-child(3) { background: var(--blob-3); bottom: -24vmax; left: 18vw; animation-delay: -16s; animation-duration: 44s; }
.ambient span:nth-child(4) { background: var(--blob-4); bottom: -10vmax; right: 8vw; width: 34vmax; height: 34vmax; animation-delay: -4s; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 7vmax, 0) scale(0.96); }
}

/* subtle film grain keeps large gradients from banding */
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 3. Glass material -------------------------------------------------------- */
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(155deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 1px 0 var(--glass-inner),
    inset 0 -1px 0 var(--glass-shade),
    var(--glass-shadow);
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease), background 500ms ease;
}

/* the light-catching rim: bright at top-left, fading, catching again bottom-right */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg,
    var(--glass-rim-hi) 0%,
    var(--glass-rim-lo) 35%,
    var(--glass-rim-lo) 65%,
    var(--glass-rim-hi) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* pointer-following sheen on interactive glass (JS feeds --mx / --my) */
.glass.is-interactive::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--sheen), transparent 45%);
  opacity: 0;
  transition: opacity 350ms ease;
}

.glass.is-interactive:hover::after { opacity: 1; }

.glass.is-lift:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 var(--glass-inner), inset 0 -1px 0 var(--glass-shade), var(--glass-shadow-lift);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-a); }
}

/* 4. Navigation ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 14px auto 0;
  padding: 6px;
  border-radius: 999px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  color: var(--ink);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: 999px;
}

.nav-brand:hover { text-decoration: none; }

.nav-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8fb2ff, #b49cff 55%, #f3a9cf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 250ms ease, color 250ms ease, box-shadow 250ms ease;
}

.nav-links a:hover { color: var(--ink); text-decoration: none; background: var(--accent-soft); }

.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--pill-active);
  box-shadow: 0 1px 2px rgba(20, 30, 70, 0.08), inset 0 1px 0 var(--glass-inner);
}

.icon-btn {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  transition: background 250ms ease, color 250ms ease;
}

.icon-btn:hover { color: var(--ink); background: var(--accent-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .i-sun { display: none; }
:root[data-theme="dark"] .icon-btn .i-sun { display: block; }
:root[data-theme="dark"] .icon-btn .i-moon { display: none; }

@media (max-width: 720px) {
  .nav { width: calc(100% - 24px); max-width: none; }
  .nav-brand span:last-child { display: none; }
  .nav-brand { padding-right: 6px; }
  .nav-links { flex: 1; min-width: 0; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav-links a { padding: 7px 11px; }
}

/* 5. Type, layout, buttons ------------------------------------------------- */
.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

.page-narrow { max-width: 860px; }
.page-case { max-width: 1120px; }  /* project case-study pages: ~15% wider each side */

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: 0;
}

.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 44rem;
  margin: 18px 0 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.section { margin-top: 88px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-sub { margin: 6px 0 0; color: var(--ink-3); font-size: 16px; }

.muted { color: var(--ink-3); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), background 300ms ease;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .bi { font-size: 1.05em; }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-fill) 85%, #fff), var(--accent-fill));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px -6px color-mix(in srgb, var(--accent-fill) 70%, transparent);
}

.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 30px -8px color-mix(in srgb, var(--accent-fill) 80%, transparent); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}

/* 6. Cards & chips --------------------------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 10px;
  color: inherit;
  border-radius: var(--r-xl);
}

a.card:hover { text-decoration: none; }

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--r-xl) - 10px);
  background: var(--accent-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.card:hover .card-media img { transform: scale(1.04); }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 12px 10px;
}

.card-meta { font-size: 13px; color: var(--ink-3); }

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.card-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
}

.card-foot.is-soon { color: var(--ink-3); font-weight: 500; }
.card-foot .bi { transition: transform 300ms var(--ease); }
.card:hover .card-foot .bi-arrow-right { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--accent-soft);
}

/* glass tag floating over imagery */
.float-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: #1a1d29;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 16px -4px rgba(0, 0, 0, 0.25);
}

.float-chip .bi { color: #c08a00; }

/* 7. Timeline -------------------------------------------------------------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 15%, transparent));
}

.timeline > li {
  position: relative;
  padding: 0 0 26px 40px;
}

.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.timeline > li.is-future::before {
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline > li.is-now { padding-bottom: 26px; }
.timeline > li.is-now::before { display: none; }

.now-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: var(--accent-ink);
  background: var(--accent-soft);
  margin-left: -36px;
}

.now-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  80%, 100% { box-shadow: 0 0 0 10px transparent; }
}

.tl-date { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.tl-title { margin: 2px 0 4px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.35; }
.tl-text { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }

.panel { padding: clamp(22px, 4vw, 40px); border-radius: var(--r-xl); }

/* 8. Case study ------------------------------------------------------------ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  font-size: 15px;
  font-weight: 600;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 18px;
  margin-top: 34px;
  padding: 22px 26px;
}

.meta-label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.meta-value { margin: 0; font-weight: 600; }

.case-section { margin-top: 26px; }

.case-section h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.case-section h3 { margin: 30px 0 12px; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.case-section p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.7; }
.case-section p strong { color: var(--ink); }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 22px 48px;
}

.two-col h3 { margin-top: 0; }

.figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--field);
  box-shadow: 0 0 0 1px var(--line);
}

.figure img { width: 100%; height: auto; }

.img-missing {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: 16px;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--accent-soft) 10px 11px);
}

.insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.insight { padding: 20px 22px; border-radius: var(--r-md); }
.insight-num { font-size: 13px; font-weight: 650; color: var(--accent-ink); }
.insight strong { display: block; margin: 6px 0 4px; font-size: 17px; }
.insight p { margin: 0; font-size: 15px; }

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.compare-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: var(--accent-soft);
}

.compare-arrow { color: var(--accent); font-size: 24px; padding-top: 26px; }

.change { margin-top: 34px; }
.change + .change { padding-top: 30px; border-top: 1px solid var(--line); }
.change-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.change-title span { font-size: 13px; font-weight: 650; color: var(--accent-ink); }
.change-title strong { font-size: 18px; }
.change-caption { margin-top: 14px; }
.change-caption strong { display: block; margin-bottom: 2px; color: var(--ink); }
.change-caption p { margin: 0; font-size: 15px; }

@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { padding: 0; transform: rotate(90deg); justify-self: center; }
}

.outcome {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px 48px;
  align-items: start;
}

.metric {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 6.5rem);
  font-weight: 750;
  line-height: 0.95;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, #6d8bff, #a98bff 50%, #f08fc0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-label { display: block; margin-top: 10px; color: var(--ink-2); font-size: 15px; }

/* 9. Photos & lightbox ----------------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--accent-soft);
  cursor: zoom-in;
  box-shadow: var(--glass-shadow);
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease);
}

.photo:hover { transform: translateY(-4px); box-shadow: var(--glass-shadow-lift); }

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.photo:hover img { transform: scale(1.04); }

.photo-info {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 16px;
  text-align: left;
  color: #fff;
  background: rgba(20, 22, 30, 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 400ms var(--ease);
}

.photo:hover .photo-info,
.photo:focus-visible .photo-info { opacity: 1; transform: none; }

.photo-info b { display: block; font-size: 13px; font-weight: 650; }
.photo-info span { display: block; font-size: 12.5px; opacity: 0.85; }
.photo-info p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.4; }

@media (hover: none) {
  .photo-info { opacity: 1; transform: none; }
}

.lightbox {
  max-width: min(94vw, 1200px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(10, 12, 20, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  backdrop-filter: blur(24px) saturate(140%);
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lightbox .icon-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* 10. Contact form, footer, motion ----------------------------------------- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}

.link-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: var(--ink);
  border-radius: var(--r-lg);
}

.link-tile:hover { text-decoration: none; }
.link-tile .bi { font-size: 22px; color: var(--accent-ink); }
.link-tile b { display: block; font-size: 16px; }
.link-tile span { display: block; font-size: 13.5px; color: var(--ink-3); overflow-wrap: anywhere; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

.form input,
.form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 4px var(--glass-shade);
  transition: box-shadow 250ms ease, background 250ms ease;
}

.form textarea { min-height: 170px; resize: vertical; }

.form input:focus,
.form textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft);
}

.form-status { margin: 0; font-size: 14px; color: var(--ink-3); }

.footer {
  max-width: 1120px;
  margin: 96px auto 0;
  padding: 24px 20px calc(36px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}

.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--ink-2); }

/* scroll reveal — the class is only added by JS, so content shows without it */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 800ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 11. Page pieces ---------------------------------------------------------- */

/* home hero: copy left, portrait right */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 48px;
  padding-block: 8px 0;
}

.hero + .section { margin-top: 64px; }

.hero-chips { margin: 22px 0 30px; }

.portrait {
  position: relative;
  display: block;
  padding: 12px;
  border-radius: 48% 48% 40px 40px / 38% 38% 40px 40px;
  aspect-ratio: 4 / 5;
  max-width: 400px;
  width: 100%;
  justify-self: center;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  border-radius: inherit;
}

.portrait:hover { text-decoration: none; }

.portrait-chip {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1d29;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 20px -6px rgba(0, 0, 0, 0.25);
  transform: translateX(-50%);
  transition: transform 400ms var(--ease);
}

.portrait:hover .portrait-chip { transform: translateX(-50%) translateY(-3px); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: 8px; }
  .portrait { max-width: 320px; order: -1; }
}

/* home: wide glass call-to-action */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 4vw, 40px);
  color: var(--ink);
  border-radius: var(--r-xl);
}

.cta:hover { text-decoration: none; }

.cta-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  background: var(--accent-fill);
  transition: transform 400ms var(--ease);
}

.cta:hover .cta-arrow { transform: translateX(4px); }

/* about page */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.about-side { display: grid; gap: 18px; position: sticky; top: 96px; }
.portrait-static { max-width: none; }
.edu p { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-2); }
.edu-school { margin: 4px 0 8px; font-size: 21px; font-weight: 650; letter-spacing: -0.015em; }

.prose p { margin: 0 0 1.1em; font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.prose p:first-child::first-line { color: var(--ink); font-weight: 600; }
.prose-actions { margin-top: 28px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
}

/* case study */
.hero-figure { margin-top: 36px; border-radius: var(--r-xl); }
.meta-grid { margin-bottom: 0; }
.meta-grid dd { margin: 0; }
.case-section .eyebrow { margin-bottom: 4px; }

.next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding: 22px 26px;
  color: var(--ink);
  border-radius: var(--r-lg);
}

.next-link:hover { text-decoration: none; }
.next-link b { font-size: 18px; }
.next-link .bi { font-size: 20px; color: var(--accent-ink); }

/* blanks still to be filled in: search the HTML for class="ph" or "[" */
.ph {
  color: var(--ink-3);
  font-style: italic;
  font-weight: 400;
  text-decoration: underline dashed color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: 4px;
}

.metric .ph, .chip .ph { text-decoration: none; }

/* Nexen case study: six-stage journey and deliverables list */
.journey {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.journey li {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line);
}

.journey li::before {
  counter-increment: stage;
  content: "0" counter(stage);
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 650;
  color: var(--accent-ink);
}

.methods { margin-bottom: 8px; }

.deliverables { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.deliverables li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.deliverables .bi { color: var(--accent-ink); font-size: 18px; }

/* Nexen case study: CDJ table, evaluation framework, findings, roadmap */
.note { font-size: 13.5px !important; color: var(--ink-3) !important; margin-top: 10px !important; }

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 4px;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--line);
  background: var(--field);
}

.cdj-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; }
.cdj-table th, .cdj-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cdj-table thead th { font-size: 12.5px; font-weight: 650; color: var(--accent-ink); background: var(--accent-soft); white-space: nowrap; }
.cdj-table tbody th { font-weight: 650; white-space: nowrap; }
.cdj-table td { color: var(--ink-2); }
.cdj-table td b { color: var(--ink); font-weight: 650; }
.cdj-table tbody tr:last-child > * { border-bottom: 0; }

.stage-map, .roadmap { display: grid; gap: 10px; margin: 18px 0 26px; padding: 0; list-style: none; }
.stage-map li, .roadmap li {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 6px 20px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--field);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage-map b, .roadmap b { font-weight: 650; }
.stage-map span, .roadmap span { color: var(--ink-2); font-size: 15.5px; }
.stage-map em { font-style: normal; font-weight: 650; color: var(--accent-ink); }
@media (max-width: 720px) { .stage-map li, .roadmap li { grid-template-columns: 1fr; } }

.roadmap { counter-reset: phase; }
.roadmap b::before { counter-increment: phase; content: counter(phase); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; border-radius: 50%; font-size: 13px; color: #fff; background: var(--accent-fill); }

.framework { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.framework .insight strong { margin-bottom: 12px; }
.criteria { margin: 0; }
.criteria dt { font-weight: 650; font-size: 15px; margin-top: 10px; }
.criteria dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

.weights { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.weights li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; color: var(--ink-2); }
.weights b { font-weight: 650; color: var(--ink); font-size: 13.5px; }
.weights li::after {
  content: "";
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent) var(--w, 0%), var(--accent-soft) var(--w, 0%));
}

.ticks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ticks li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--accent-ink); }

.findings { display: grid; gap: 14px; margin-top: 18px; }
.finding { padding: 20px 22px; border-radius: var(--r-md); background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }
.finding > strong { display: block; margin: 6px 0 6px; font-size: 18px; }
.finding p { margin: 0 !important; font-size: 15.5px; }

.takeaway {
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, #f3a9cf 18%, transparent));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.takeaway p { margin: 6px 0 0 !important; color: var(--ink) !important; font-size: 17px; }

.outcome-item + .outcome-item { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.outcome-item h3 { margin-top: 0; }
.outcome-item .figure + p { margin-top: 14px; }
.case-section .figure + h3 { margin-top: 30px; }

/* BOJ case study: at-a-glance stats, personas, compact tables, questionnaire */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.stat { padding: 20px 22px; border-radius: var(--r-md); background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #6d8bff, #a98bff 50%, #f08fc0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.stat-label small { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-3); }

.personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 18px; }
.persona { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r-md); }
.persona-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.persona-head strong { display: block; margin: 2px 0 2px; font-size: 19px; }
.persona-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; color: var(--accent-ink); background: var(--accent-soft); }
.persona-tag { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.45; }
.persona-body { flex: 1; margin: 0; }
.persona-body dt { margin-top: 14px; font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.persona-body dd { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ticks-x li::before { content: "\F62A"; color: #d9677a; }
.persona-task { display: flex; gap: 10px; margin: 18px 0 0 !important; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14.5px; background: var(--accent-soft); }
.persona-task .bi { color: var(--accent-ink); }
.persona-task b { color: var(--ink); }

.cdj-table.compact { min-width: 560px; }
.cdj-table.num td { font-variant-numeric: tabular-nums; }
.cdj-table.compact thead th { white-space: normal; }

.disclosure { margin-top: 22px; border-radius: var(--r-md); background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }
.disclosure summary { padding: 14px 18px; font-weight: 600; cursor: pointer; }
.disclosure[open] summary { border-bottom: 1px solid var(--line); }
.q-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px 24px; padding: 16px 18px 18px; }
.q-grid b { font-size: 14px; color: var(--accent-ink); }
.q-grid ol { margin: 6px 0 0; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.q-grid li + li { margin-top: 4px; }
.meta-grid.meta-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .meta-grid.meta-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.insights.two-up { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.persona { align-items: center; text-align: center; }
.persona > strong { display: block; margin: 2px 0; font-size: 20px; }
.persona > p:not(.persona-task) { margin: 14px 0 18px !important; font-size: 15px; }
.persona-avatar { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 14px; border-radius: 50%; font-size: 52px; color: var(--accent-ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.persona .persona-task { margin-top: auto !important; text-align: left; align-self: stretch; }
.figure-sm { max-width: 45%; margin-inline: auto; }
@media (max-width: 720px) { .figure-sm { max-width: 100%; } }
.disclosure summary .summary-hint { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.table-wrap.in-disclosure { margin: 0; border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: none; background: transparent; }
.figure-sm + .note { text-align: center; }

/* Case study with sticky table of contents (right rail) */
.page-case.has-toc { max-width: 1320px; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 44px; align-items: start; margin-top: 34px; }
.case-body > .case-section:first-child { margin-top: 0; }
.has-toc .case-section { margin-top: 36px; scroll-margin-top: 96px; }
.toc { position: sticky; top: 96px; }
.toc-inner { padding: 18px 14px 14px; border-radius: var(--r-lg); }
.toc-title { display: block; padding: 0 10px 10px; font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 14px; line-height: 1.35; color: var(--ink-2); transition: background 200ms, color 200ms; }
.toc a span { flex: none; width: 18px; font-size: 12px; font-weight: 650; color: var(--ink-3); padding-top: 1px; }
.toc a:hover { color: var(--ink); text-decoration: none; background: var(--accent-soft); }
.toc a.is-active { color: var(--ink); font-weight: 600; background: var(--accent-soft); }
.toc a.is-active span { color: var(--accent-ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (max-width: 1100px) {
  .case-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}

/* Figure-style flow diagram (Diagnosis) + friction-to-principle list */
.diagram { margin: 8px 0 0; }
.diagram-scroll { overflow-x: auto; padding: 20px 18px 12px; border-radius: var(--r-md); background: #fbfaf8; box-shadow: 0 0 0 1px var(--line); }
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: "Inter", -apple-system, system-ui, sans-serif; }
.diagram figcaption { margin-top: 12px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.d-box { fill: #eeeae4; }
.d-tag { fill: #5c5c5c; }
.d-tagt { fill: #fff; font-size: 12px; font-weight: 600; text-anchor: middle; }
.d-t { fill: #3b3b3b; font-size: 14px; font-weight: 500; text-anchor: middle; }
.d-s { fill: #7a7670; font-size: 12px; text-anchor: middle; }
.d-line { fill: none; stroke: #8a8a8a; stroke-width: 1.3; }
.d-dash { stroke-width: 1.3; stroke-dasharray: 3 3; }
.d-pain-l { stroke: #c0606b; }
.d-user-l { stroke: #4a84c0; }
.d-pain { fill: #fbeeee; }
.d-user { fill: #eaf2fa; }
.d-pain-i { fill: none; stroke: #c0606b; stroke-width: 1.4; }
.d-pain-x { fill: #c0606b; font-size: 11px; font-weight: 700; text-anchor: middle; }
.d-user-i { fill: none; stroke: #4a84c0; stroke-width: 1.4; }
.d-pain-t { fill: #b0505c; font-size: 12.5px; font-weight: 500; }
.d-user-t { fill: #3d74ad; font-size: 12.5px; font-weight: 500; }
.d-lane { fill: #4a4a4a; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; }
.d-lane-s { fill: #8a857e; font-size: 12.5px; }
.d-rule { stroke: #e4e0da; stroke-width: 1; }
.d-big { fill: #3b3b3b; font-size: 34px; font-weight: 700; text-anchor: end; letter-spacing: -0.03em; }
.d-big-s { fill: #8a857e; font-size: 12.5px; text-anchor: end; }

.f2p { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.f2p li { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.f2p li > .bi { color: var(--ink-3); font-size: 15px; }
.f2p-from, .f2p-to { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.f2p b { display: block; font-size: 15px; font-weight: 650; color: var(--ink); }
.f2p-to b { color: var(--accent-ink); }
@media (max-width: 720px) {
  .f2p li { grid-template-columns: 1fr; gap: 4px; }
  .f2p li > .bi { transform: rotate(90deg); }
}

/* eSIM case study: journey figure extras + concept layout */
.d-small { font-size: 11.5px; }
.d-cov-on { fill: #8a857e; }
.d-cov-off { fill: #e4e0da; }
.d-opp { fill: none; stroke: #4a84c0; stroke-width: 1.4; stroke-dasharray: 5 4; }
.d-opp-t { fill: #3d74ad; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-anchor: middle; }
.d-lane-bar { fill: #eaf2fa; }
.d-lane-dot { fill: #4a84c0; }
.d-lane-n { fill: #fff; font-size: 11.5px; font-weight: 700; text-anchor: middle; }
.d-lane-l { fill: #2f5f91; font-size: 13px; font-weight: 500; }

.concept { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 32px; align-items: start; }
@media (max-width: 860px) { .concept { grid-template-columns: 1fr; } }
.concept-text p { font-size: 15.5px; }
.concept-text .ticks { margin-top: 4px; }
.concept-text .ticks b { color: var(--ink); font-weight: 650; }
.concept blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); font-size: 16px; line-height: 1.55; color: var(--ink); }
.concept blockquote cite { display: block; margin-top: 6px; font-size: 13px; font-style: normal; color: var(--ink-3); }
.d-focus { fill: none; stroke: #4a84c0; stroke-width: 1.4; }

/* Kurly case study: code toggles, decision tables, rule timeline */
.disclosure + .disclosure { margin-top: 10px; }
.code-title { display: block; padding: 16px 18px 0; font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.code-block { margin: 0; padding: 10px 18px 18px; overflow-x: auto; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-2); white-space: pre; tab-size: 2; }
.code-block + .code-title { border-top: 1px solid var(--line); }
.code-block .kw { color: var(--accent-ink); font-weight: 600; }
.code-block .cm { color: var(--ink-3); font-style: italic; }
.dt-wrap { padding: 4px 0 6px; }
.dt-wrap + .dt-wrap { border-top: 1px solid var(--line); }
.dt-wrap .table-wrap { margin: 8px 18px 14px; }
.dt-table td { text-align: center; font-variant-numeric: tabular-nums; }
.dt-table td.x { color: var(--accent-ink); font-weight: 700; }
.dt-table tr.dt-split > * { border-top: 2px solid var(--line); }
.dt-legend { padding: 0 18px 14px; font-size: 13px; color: var(--ink-3); }
.schema-table td u { text-underline-offset: 3px; }
.schema-table td .fk { color: #3d74ad; }
.d-band-30 { fill: #eaf2fa; }
.d-band-50 { fill: #d3e3f4; }
.d-batch { fill: #fff; stroke: #8a8a8a; stroke-width: 1.2; }
.d-batch-hot { fill: #fff; stroke: #4a84c0; stroke-width: 1.6; }
.d-step { fill: #3d74ad; font-size: 12.5px; font-weight: 600; text-anchor: middle; }
.d-left { text-anchor: start; }

/* Home: Updates & News, collapsible older items */
.tl-more { margin-top: 22px; }
.tl-more > .timeline { margin-top: 22px; }
.tl-more summary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); cursor: pointer; list-style: none; }
.tl-more summary::-webkit-details-marker { display: none; }
.tl-more summary .bi { font-size: 12px; transition: transform .2s ease; }
.tl-more[open] summary .bi { transform: rotate(180deg); }
.tl-more .tl-more-close, .tl-more[open] .tl-more-open { display: none; }
.tl-more[open] .tl-more-close { display: inline; }
.tl-text a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.disclosure-body { padding: 18px; }
.disclosure-body > .framework { margin-top: 0; }
.disclosure-body h3:first-of-type { margin-top: 26px; }
.d-dot-off { fill: none; stroke: #c9c4bc; stroke-width: 1.3; }
.d-mid { text-anchor: middle; }

/* Nexen: "How we measured" cards */
.methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 860px) { .methods { grid-template-columns: 1fr; } }
.method { display: flex; flex-direction: column; padding: 12px 12px 16px; border-radius: var(--r-md); background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }
.method-img { display: block; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; border-radius: var(--r-sm); background: var(--glass-a); box-shadow: inset 0 0 0 1px var(--line); }
.method-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.method-img:hover img { transform: scale(1.03); }
.method .insight-num, .method strong, .method p { padding-inline: 4px; }
.method strong { display: block; margin: 4px 0 4px; font-size: 16px; }
.method p { margin: 0 !important; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* eSIM: core-value pills */
.d-val-bg { fill: #4a84c0; }
.d-val { fill: #fff; font-size: 17px; font-weight: 700; text-anchor: middle; letter-spacing: 0.01em; }
