/* =============================================================
   Jinwoo Park — Portfolio Homepage
   Style: clean editorial, warm light-gray canvas, white rounded
   panels, single teal accent. (ref: Cozydiadora)
   ============================================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --bg:       #ecebe7;
  --paper:    #ffffff;
  --paper-2:  #f6f5f2;
  --ink:      #18181b;
  --ink-2:    #44444a;
  --muted:    #8d8d93;
  --muted-2:  #a9a9ae;
  --line:     #e9e7e2;
  --line-2:   #dedcd6;
  --dark:     #1a1a1d;
  --teal:     #1b97a3;
  --teal-deep:#157f8a;
  --teal-ink: #0c4a51;
  --teal-soft:#d4ebed;
  --teal-tint:#eef7f7;

  --sans: Pretendard, "Helvetica Neue", -apple-system, "Segoe UI", sans-serif;

  --r-panel: 34px;
  --r-card:  22px;
  --r-soft:  16px;

  --shadow-s: 0 2px 10px rgba(20,20,25,.04);
  --shadow-m: 0 14px 40px -18px rgba(20,20,25,.16);
  --shadow-l: 0 30px 70px -30px rgba(20,20,25,.28);

  --maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: -.011em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ---------- panels & layout rhythm ---------- */
.shell { display: flex; flex-direction: column; gap: 16px; padding: 16px 0 22px; }
.panel {
  background: var(--paper);
  border-radius: var(--r-panel);
  padding: clamp(26px, 4.6vw, 64px);
  box-shadow: var(--shadow-s);
  position: relative;
  overflow: hidden;
}
.panel--teal { background: var(--teal); color: #eafafa; }
.panel--flush { padding: 0; }

/* ---------- type ---------- */
.display {
  font-weight: 800;
  font-size: clamp(52px, 8.4vw, 108px);
  line-height: .94;
  letter-spacing: -.045em;
}
.h2 {
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.h3 { font-weight: 700; font-size: clamp(21px, 2vw, 27px); letter-spacing: -.025em; line-height: 1.12; }
.lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); line-height: 1.6; }
.body { font-size: 16.5px; color: var(--ink-2); line-height: 1.62; }
.tiny { font-size: 13px; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow--on-teal { color: #c8eff0; }

.serif-mark { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

/* ---------- buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 8px 0 22px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  background: var(--dark); color: #fff;
  transition: transform .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background: #000; }
.btn__ic {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: rgba(255,255,255,.16);
}
.btn--teal { background: var(--teal); }
.btn--teal:hover { background: var(--teal-deep); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); padding: 0 22px; }
.btn--ghost:hover { background: var(--paper); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 15px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(27,151,163,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(27,151,163,.45);} 70%{box-shadow:0 0 0 9px rgba(27,151,163,0);} 100%{box-shadow:0 0 0 0 rgba(27,151,163,0);} }

.tag {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 12px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-2);
}
.tag--teal { background: var(--teal-tint); border-color: transparent; color: var(--teal-deep); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 14px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 11px 11px 11px 24px;
  box-shadow: var(--shadow-m);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand__mark { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); display: inline-grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__menu { display: none; }

/* ---------- language switcher ---------- */
.langsw { position: relative; }
.langsw__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: border-color .2s, background .2s, color .2s;
}
.langsw__btn:hover { border-color: var(--teal); color: var(--teal-deep); }
.langsw__btn i { width: 16px; height: 16px; }
.langsw__caret { transition: transform .25s ease; opacity: .6; }
.langsw.open .langsw__caret { transform: rotate(180deg); }
.langsw__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 148px; padding: 6px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-l, 0 30px 60px -28px rgba(20,20,25,.28));
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.langsw.open .langsw__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.langsw__menu button {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border: 0; border-radius: 9px; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2);
  text-align: left; cursor: pointer; transition: background .15s, color .15s;
}
.langsw__menu button:hover { background: var(--paper-2); color: var(--ink); }
.langsw__menu button.on { background: var(--teal-tint, #e6f4f5); color: var(--teal-deep); font-weight: 700; }
.langsw__menu button.on::after { content: "✓"; font-size: 12px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(24px,3vw,48px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.hero__sup { font-size: clamp(20px,2.4vw,30px); font-weight: 500; color: var(--muted); letter-spacing: -.02em; }
.hero .display .accent { color: var(--teal); }
.hero .display .reg { -webkit-text-stroke: 1.4px var(--ink); color: transparent; }
.hero__desc { max-width: 40ch; }
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.motto { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.motto span { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; }
.motto b { color: var(--teal-deep); font-weight: 700; }

/* hero right cluster */
.cluster { display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 18px;
}
.card--portrait { grid-row: span 2; padding: 0; border: 0; overflow: hidden; min-height: 280px; }
.idcard { flex: 1; display: flex; flex-direction: column; gap: 14px; justify-content: flex-start; }
.idcard__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.idcard__top { display: flex; flex-direction: column; gap: 3px; }
.idcard__name { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.idcard__loc { font-size: 13px; color: var(--muted); }
.idcard__role { align-self: flex-start; }
.rate { font-weight: 700; font-size: 16px; color: var(--teal-deep); }

.photo-slot {
  width: 100%; height: 100%; min-height: 280px;
  background-color: #e7e5e0;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.03) 0 1px, transparent 1px 12px);
  display: flex; align-items: flex-end; padding: 14px;
}
.photo-slot span {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: rgba(255,255,255,.85); border-radius: 8px; padding: 6px 10px;
}

.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.soc {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-2); transition: all .2s;
}
.soc:hover { color: #fff; background: var(--teal); border-color: var(--teal); transform: translateY(-2px); }
.soc svg { width: 18px; height: 18px; }

.brands-card { grid-column: span 2; background: var(--teal-tint); border: 0; }
.brands-card .lbl { font-size: 12px; color: var(--teal-deep); font-weight: 600; margin-bottom: 12px; }
.brands-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.brands-row b { font-size: 15px; font-weight: 700; color: var(--teal-ink); letter-spacing: -.01em; opacity: .8; }

/* ---------- mission band ---------- */
.mission { display: flex; flex-direction: column; gap: 18px; }
.mission .h2 { color: #fff; max-width: 20ch; }
.mission .h2 em { font-family: Georgia, serif; font-weight: 400; font-style: italic; color: #bff0f1; }
.mission__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.mission__note { color: #c8eff0; max-width: 42ch; font-size: 16px; }

/* ---------- section header ---------- */
.sec-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px,3vw,46px); }
.sec-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* ---------- abilities ---------- */
.abil-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.abil {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
}
.abil:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); background: #fff; }
.abil__ic { width: 50px; height: 50px; border-radius: 14px; background: var(--teal-tint); color: var(--teal-deep); display: grid; place-items: center; }
.abil__ic svg { width: 24px; height: 24px; }
.abil h4 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.abil p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* split: languages + tools */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; align-items: stretch; }

.langs { display: flex; flex-direction: column; gap: 0; flex: 1; justify-content: space-between; }
.lang { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lang:last-child { border-bottom: 0; }
.lang__ic { width: 52px; height: 36px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); flex: 0 0 auto; overflow: hidden; }
.lang__ic svg { width: 22px; height: 22px; }
.lang__ic.flag { padding: 3px; background: #f4f4f6; }
.lang__ic.flag img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 4px; }
.lang__meta { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.lang__name { font-weight: 700; font-size: 16px; }
.lang__name span { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.meter { display: flex; gap: 5px; align-items: center; }
.meter i { width: 26px; height: 6px; border-radius: 3px; background: var(--line-2); }
.meter i.on { background: var(--teal); }
.lang__lvl { font-size: 12px; font-weight: 700; color: var(--teal-deep); letter-spacing: .04em; }

.tool-chip-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1;
}
.tool-chip {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: 13px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.tool-chip__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-chip__meta b { font-size: 13.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-chip__meta span { font-size: 11.5px; color: var(--muted); }
.tool__ic { width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); flex: 0 0 auto; }
.tool__ic svg { width: 18px; height: 18px; }
.tool b { font-size: 14.5px; font-weight: 700; }
.tool span { font-size: 13px; color: var(--muted); margin-left: auto; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat { padding: 4px 30px; text-align: left; display: flex; flex-direction: column; gap: 14px; position: relative; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 4px; }
.stat__n { font-weight: 800; font-size: clamp(40px,4.4vw,68px); letter-spacing: -.05em; line-height: .92; color: var(--ink); }
.stat__n .u { color: var(--teal); }
.stat__l { font-size: 14px; color: var(--muted); line-height: 1.45; font-weight: 500; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px,4vw,64px); }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step__no { font-weight: 800; font-size: 15px; color: var(--teal); letter-spacing: .04em; padding-top: 4px; }
.step h4 { font-size: clamp(19px,2vw,24px); font-weight: 700; letter-spacing: -.025em; margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- work gallery ---------- */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.work {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-m);
  transition: transform .28s ease, box-shadow .28s ease, border-color .2s ease;
}
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: var(--line-2); }
.work.open { box-shadow: var(--shadow-l); }
.work__main { display: block; }
.work__body { padding: 26px 30px; display: flex; flex-direction: column; gap: 15px; }
.work__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.work__logo {
  width: 52px; height: 52px; border-radius: 13px; flex: 0 0 auto;
  background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--muted-2); text-align: center; line-height: 1.2;
}
.work__logo.tealbg { background: var(--teal); border-color: transparent; color: rgba(255,255,255,.9); }
.work__logo--img { background: transparent; border-color: transparent; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.work__logo--dark { background: #1a1a1a; border-color: transparent; }
.work__logo img { width: 100%; height: 100%; object-fit: contain; object-position: center center; display: block; border-radius: 11px; }
.work__top { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.work__top h4 { font-size: 23px; font-weight: 700; letter-spacing: -.025em; }
.work__yr {
  font-family: var(--mono, 'SF Mono', ui-monospace, monospace);
  font-size: 12px; color: var(--muted); font-weight: 600; flex: 0 0 auto;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; white-space: nowrap;
  letter-spacing: -.01em;
}
.work__desc { font-size: 15px; color: var(--muted); line-height: 1.55; }
.work__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

/* highlight callouts in card body */
.work__highlights { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 4px; }
.work__hl {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--teal-tint); border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0; padding: 12px 15px;
}
.work__hl i { width: 18px; height: 18px; color: var(--teal-deep); flex: 0 0 auto; margin-top: 1px; }
.work__hl p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.work__hl b { color: var(--teal-deep); font-weight: 700; }
.work__toggle {
  margin-top: 10px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--teal); background: var(--teal-tint);
  font-size: 14.5px; font-weight: 700; color: var(--teal-deep);
  cursor: pointer; transition: background .2s, color .2s, box-shadow .2s, transform .2s; font-family: inherit;
  box-shadow: 0 6px 18px -8px rgba(15,118,110,.45);
}
.work__toggle:hover { background: var(--teal); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(15,118,110,.55); }
.work:hover .work__toggle { background: var(--teal); color: #fff; }
.work__toggle i { width: 17px; height: 17px; transition: transform .3s ease; }
@media (prefers-reduced-motion: no-preference) {
  .work:not(.open) .work__toggle i { animation: toggleBob 1.5s ease-in-out infinite; }
}
@keyframes toggleBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.work.open .work__toggle { background: var(--paper); border-color: var(--line-2); color: var(--ink-2); box-shadow: none; }
.work.open .work__toggle:hover { background: var(--teal-tint); color: var(--teal-deep); border-color: var(--teal); }
.work.open .work__toggle i { transform: rotate(180deg); }
/* expandable detail */
.work__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.4,0,.2,1); }
.work.open .work__detail { grid-template-rows: 1fr; }
.work__detail-inner { overflow: hidden; min-height: 0; }
/* ── Drawer panel for expanded detail ─────────────────────── */
.subwrap {
  padding: 28px 26px 30px;
  background:
    radial-gradient(900px 220px at 50% 0%, rgba(45,166,154,.06), transparent 70%),
    var(--paper-2);
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 32px;
}

/* ── Unified section headers (Impact + Selected Projects) ─── */
.impact { margin: 0; }
.impact__label,
.subhead-mini {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
}
.impact__label::after,
.subhead-mini::after {
  content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 4px;
}
.impact__label i,
.subhead-mini i { width: 14px; height: 14px; flex: 0 0 auto; }

/* Impact grid */
.impact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.impact-card {
  background: var(--teal-tint); border-radius: 16px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0; transform: translateY(16px) scale(.97);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2,.8,.3,1);
}
.work.open .impact-card { opacity: 1; transform: none; }
.work.open .impact-card:nth-child(1) { transition-delay: .05s; }
.work.open .impact-card:nth-child(2) { transition-delay: .11s; }
.work.open .impact-card:nth-child(3) { transition-delay: .17s; }
.work.open .impact-card:nth-child(4) { transition-delay: .23s; }
.impact-card__n { font-size: 27px; font-weight: 800; letter-spacing: -.03em; color: var(--teal-deep); line-height: 1.05; }
.impact-card__n .u { font-size: 17px; font-weight: 700; }
.impact-card__l { font-size: 13px; color: var(--ink-2); font-weight: 500; line-height: 1.4; }

/* ── Project list ─────────────────────────────────────────── */
.subgrid { display: flex; flex-direction: column; gap: 11px; counter-reset: pi; }
.subproj {
  counter-increment: pi;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.3,1),
              border-color .2s ease, box-shadow .2s ease;
}
.work.open .subproj { opacity: 1; transform: none; }
.work.open .subproj:nth-child(1) { transition-delay: .08s; }
.work.open .subproj:nth-child(2) { transition-delay: .15s; }
.work.open .subproj:nth-child(3) { transition-delay: .22s; }
.work.open .subproj:nth-child(4) { transition-delay: .29s; }
.work.open .subproj:nth-child(5) { transition-delay: .36s; }

/* Plain subproject — compact horizontal row */
.subproj:not(.subproj--media) {
  padding: 14px 20px;
  display: grid; grid-template-columns: 38px minmax(180px, 280px) 1fr;
  gap: 22px; align-items: center;
}
.subproj:not(.subproj--media):hover {
  border-color: var(--line-2);
  box-shadow: 0 10px 22px -16px rgba(20,20,25,.16);
}
.subproj:not(.subproj--media)::before {
  content: counter(pi, decimal-leading-zero);
  font-family: var(--mono, "SF Mono", ui-monospace, monospace);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  color: var(--teal-deep); background: var(--teal-tint);
  border-radius: 8px; text-align: center; padding: 6px 0;
}
.subproj:not(.subproj--media) h5 {
  font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.015em;
  display: block; margin: 0;
}
.subproj:not(.subproj--media) h5::before { display: none; }
.subproj:not(.subproj--media) p {
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  padding-left: 0; margin: 0;
}

/* Media subproject — elevated case-study card */
.subproj--media {
  padding: 24px 26px;
  border-radius: 18px;
  box-shadow: 0 18px 38px -24px rgba(20,20,25,.20);
}
.subproj--media h5 {
  font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.02em;
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  padding-right: 150px;
}
.subproj--media h5::before {
  content: counter(pi, decimal-leading-zero);
  flex: 0 0 auto;
  width: auto; height: 24px; padding: 0 10px;
  background: var(--teal-tint); color: var(--teal-deep);
  border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono, "SF Mono", ui-monospace, monospace);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
}
.subproj--media p { font-size: 14.5px; color: var(--muted); line-height: 1.55; padding-left: 0; }

/* Case Study pill (reuses .subproj__hint span) */
.subproj__hint {
  position: absolute; top: 22px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal-deep); background: var(--teal-tint);
  padding: 5px 11px; border-radius: 999px;
  pointer-events: none; transition: opacity .3s ease;
}
.subproj__hint i { width: 13px; height: 13px; }
.subproj--media:hover .subproj__hint,
.subproj--media:focus-within .subproj__hint { opacity: 0; }

/* Hover-reveal preview */
.subproj__preview {
  max-height: 0; opacity: 0; margin-top: 0; overflow: hidden;
  transition: max-height .55s cubic-bezier(.4,0,.2,1), opacity .4s ease, margin-top .4s ease;
}
.subproj--media:hover .subproj__preview,
.subproj--media:focus-within .subproj__preview { max-height: 2400px; opacity: 1; margin-top: 18px; }
.subproj__shots { display: grid; grid-template-columns: 1.55fr 1fr; gap: 10px; }
.subproj__shots--full { grid-template-columns: 1.5fr 1fr; align-items: stretch; }
.subproj__shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; height: 300px; background: #f4f3f0; }
.subproj__shot--full { height: 380px; background: #f6f5f2; }
.subproj__shot--full img { object-fit: contain !important; object-position: center !important; padding: 10px; }
.subproj__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .6s ease; }
.subproj__shot:hover img { transform: scale(1.03); }
.subproj__shot .cap {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.55);
  padding: 4px 9px; border-radius: 7px; backdrop-filter: blur(3px);
}

/* ── Section dividers inside preview ──────────────────────── */
.uxdoc__head { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; }
.uxdoc__head:first-child { margin-top: 4px; }
.uxdoc__head .lbl2 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); white-space: nowrap; }
.uxdoc__head .ln { flex: 1; height: 1px; background: var(--line); }

/* ── Realistic Admin product-registration mockup ──────────── */
.adminmock {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--paper-2); box-shadow: 0 18px 40px -24px rgba(20,20,25,.22);
  font-family: var(--kr);
}
.adminmock__bar { display: flex; align-items: center; gap: 22px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.adminmock__brand { font-weight: 800; font-size: 15px; letter-spacing: -.02em; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.adminmock__nav { display: flex; gap: 15px; font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.adminmock__nav b { color: var(--ink); }
.adminmock__body { display: grid; grid-template-columns: 168px 1fr; }
.adminmock__side { border-right: 1px solid var(--line); background: #fff; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.adminmock__side .editbtn { font-size: 11px; font-weight: 700; color: #fff; background: #e84a7f; padding: 7px 10px; border-radius: 7px; text-align: center; margin-bottom: 8px; }
.adminmock__side .grp { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--ink); padding: 6px 10px; }
.adminmock__side .it { font-size: 11.5px; color: var(--muted); padding: 7px 14px; border-radius: 7px; margin-left: 4px; }
.adminmock__side .it.on { background: #fde7f0; color: #d83373; font-weight: 700; }
.adminmock__main { padding: 0; display: block; background: var(--paper-2); }

.am-topbar { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 22px; background: #fff; border-bottom: 1px solid var(--line); }
.am-head { display: flex; flex-direction: column; gap: 4px; }
.am-bc { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.am-head h6 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.am-head .am-desc { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.am-actions { display: flex; gap: 8px; align-items: center; }
.am-btn {
  height: 30px; padding: 0 14px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; font-family: inherit;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  display: inline-flex; align-items: center;
}
.am-btn.primary { background: #e84a7f; border-color: #e84a7f; color: #fff; }

.am-form { padding: 16px 22px; display: grid; grid-template-columns: 1fr 220px; gap: 14px; align-items: start; }
.am-formcol { display: flex; flex-direction: column; gap: 12px; }
.am-meta { display: flex; flex-direction: column; gap: 12px; }
.am-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.am-card__t { font-size: 13.5px; font-weight: 800; color: var(--ink); letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; }
.am-card__t::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--teal); }

.am-field { display: flex; flex-direction: column; gap: 5px; }
.am-field__l { font-size: 11px; font-weight: 600; color: var(--ink-2); }
.am-field__l b { color: #e84a7f; font-weight: 700; }
.am-input { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff; display: flex; align-items: center; padding: 0 10px; font-size: 11.5px; color: var(--ink-2); }
.am-input.muted { background: var(--paper-2); color: var(--muted); }
.am-input.sel { justify-content: space-between; }
.am-input.sel::after { content: "⌄"; color: var(--muted-2); font-size: 13px; line-height: 1; margin-top: -4px; }
.am-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* product detail mini-table */
.am-detail { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--paper-2); }
.am-detail__add { padding: 8px 12px; font-size: 11px; color: var(--muted-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.am-detail__add span { display:inline-flex; align-items:center; height:22px; padding:0 9px; background:#fff; border:1px solid var(--line); border-radius:5px; font-size:10.5px; color: var(--ink-2); }
.am-detail__th { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.am-detail__th div { font-size: 10px; font-weight: 700; color: var(--muted); padding: 8px 10px; }
.am-detail__th div b { color: #e84a7f; }
.am-detail__row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; padding: 8px; background: #fff; }
.am-detail__row .am-input { height: 26px; font-size: 10.5px; }
.am-pill { display: inline-flex; gap: 5px; align-items: center; }
.am-pill span { font-size: 10.5px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; }
.am-pill span.on { background: #f4e2ea; color: #d83373; border-color: transparent; }

/* language tabs */
.am-checks { display: flex; gap: 14px; flex-wrap: wrap; }
.am-checks label { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; color: var(--ink-2); }
.am-checks i { width: 13px; height: 13px; border-radius: 3px; background: #e84a7f; position: relative; display: inline-block; }
.am-checks i::after { content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 9px; display: grid; place-items: center; font-weight: 700; }
.am-tabs { display: flex; border-bottom: 1px solid var(--line); }
.am-tab { font-size: 11.5px; padding: 8px 14px; color: var(--muted); font-weight: 600; }
.am-tab.on { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--ink); margin-bottom: -1px; }

/* image upload */
.am-upload { display: flex; gap: 14px; align-items: flex-start; }
.am-thumb {
  width: 92px; height: 92px; border-radius: 10px;
  background: #eaf0fb; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  flex: 0 0 auto;
}
.am-thumb__cards { display: flex; gap: 3px; }
.am-thumb__cards i { width: 16px; height: 22px; border-radius: 3px; background: #6fa3ff; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; }
.am-thumb__cards i:nth-child(1) { transform: rotate(-4deg); }
.am-thumb__cards i:nth-child(3) { transform: rotate(4deg); }
.am-thumb__lbl { font-size: 9px; font-weight: 700; color: var(--ink-2); }
.am-upload__meta { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); padding-top: 4px; }
.am-upload__meta b { color: var(--ink-2); font-weight: 600; }
.am-upload__meta em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }

/* description editor */
.am-editor { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.am-editor__bar { padding: 6px 10px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; font-size: 10.5px; color: var(--muted-2); background: var(--paper-2); }
.am-editor__bar span { font-weight: 700; color: var(--ink-2); }
.am-editor__body { padding: 10px 12px; font-size: 11px; color: var(--ink-2); line-height: 1.55; max-height: 110px; overflow: hidden; }
.am-editor__body b { color: var(--ink); }

/* payment options */
.am-payselect { display: inline-flex; padding: 2px; background: var(--paper-2); border-radius: 8px; border: 1px solid var(--line); width: fit-content; }
.am-payselect span { font-size: 10.5px; font-weight: 600; padding: 5px 12px; border-radius: 6px; color: var(--muted); }
.am-payselect span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.am-tier { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--paper-2); }
.am-tier__h { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.am-tier__h em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--muted-2); margin-left: 6px; }
.am-tier__h .del { font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; background: #fff; }
.am-add { font-size: 11px; color: var(--muted-2); text-align: center; padding: 10px 0; border: 1px dashed var(--line-2); border-radius: 8px; }

/* meta cards */
.am-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink); }
.am-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #29b876; }
.am-toggle { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--ink); }
.am-toggle__sw { width: 30px; height: 17px; background: var(--teal); border-radius: 999px; position: relative; }
.am-toggle__sw::after { content: ""; width: 13px; height: 13px; background: #fff; border-radius: 50%; position: absolute; top: 2px; right: 2px; }
.am-meta__list { display: flex; flex-direction: column; gap: 7px; }

@media (max-width: 760px) {
  .adminmock__body { grid-template-columns: 1fr; }
  .adminmock__side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .am-form { grid-template-columns: 1fr; }
  .subproj:not(.subproj--media) { grid-template-columns: 38px 1fr; gap: 14px; }
  .subproj:not(.subproj--media) p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .subproj, .impact-card { opacity: 1; transform: none; transition: none; }
}

/* GEO case study layout */
.geo-split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin-top: 4px; }
.geo-main { display: flex; flex-direction: column; gap: 10px; }
.geo-side { display: flex; flex-direction: column; gap: 8px; }
.geo-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, oklch(0.22 0.04 256), oklch(0.18 0.03 256));
  color: #fff; border-radius: 10px; padding: 9px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: -.01em;
}
.geo-badge i { width: 16px; height: 16px; opacity: .85; }
.geo-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: -.01em;
}
.geo-live {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: #fff; background: #22c55e;
  padding: 2px 8px; border-radius: 999px;
}

/* ---------- footer ---------- */
.foot { display: block; }
.foot__card { background: var(--teal); border-radius: var(--r-card); padding: clamp(32px,4vw,64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; color: #fff; position: relative; overflow: hidden; }
.foot__lead .h2 { letter-spacing: -.04em; color: #fff; }
.eyebrow--light { color: #d6f3f4; }
.foot__info { display: flex; flex-direction: column; gap: 30px; }
.foot__contact { display: flex; flex-direction: column; gap: 12px; }
.foot__line { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: #fff; }
.foot__line .ic { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; color: #fff; }
.foot__line .ic svg { width: 18px; height: 18px; }
.foot__follow { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.foot__follow .lbl { color: #d6f3f4; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.social-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.spill { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); color: #fff; font-weight: 600; font-size: 15px; transition: background .18s, color .18s, border-color .18s; }
.spill:hover { background: #fff; color: var(--teal-deep); border-color: #fff; }
.spill svg { width: 17px; height: 17px; }

.foot-bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 8px 4px; flex-wrap: wrap; gap: 12px; }
.foot-bar .tiny { color: var(--muted); }

/* ---------- reveal animation (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
  html.js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .process { grid-template-columns: 1fr; }
  .abil-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__menu { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; background: var(--dark); color: #fff; }
  .split2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .stat { padding: 4px 22px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 4px; }
  .work-grid { grid-template-columns: 1fr; }
  .foot__card { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .abil-grid { grid-template-columns: 1fr; }
  .cluster { grid-template-columns: 1fr 1fr; }
  .nav { padding-left: 18px; }
  .brand span.full { display: none; }
  .work__body { padding: 22px 20px; }
  .subproj__shots { grid-template-columns: 1fr; }
  .subproj__shot { height: 200px; }
}

/* ---------- analytics line chart ---------- */
.chartcard { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px 18px; }
.chartcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.chartcard__title { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.chartcard__legend { display: flex; gap: 16px; flex-wrap: wrap; }
.chartcard__legend .lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.chartcard__legend .lg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lg--blue i { background: #2f73e8; }
.lg--green i { background: #94b87a; }
.lg--orange i { background: #f0b072; }
.chartcard__plot { width: 100%; }
.lchart { width: 100%; height: auto; display: block; overflow: visible; }
.lchart .grid { stroke: var(--line); stroke-width: 1; }
.lchart .ylab { fill: var(--muted-2); font-size: 12px; font-weight: 600; text-anchor: end; font-family: var(--mono, ui-monospace, monospace); }
.lchart .xlab { fill: var(--muted-2); font-size: 12px; font-weight: 600; text-anchor: middle; }
.lchart .area { fill: url(#blueFill); stroke: none; }
.lchart .ln { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lchart .ln--blue { stroke: #2f73e8; }
.lchart .ln--green { stroke: #94b87a; stroke-width: 2.2; }
.lchart .ln--orange { stroke: #f0b072; stroke-width: 2.2; }
.lchart .dot { fill: #2f73e8; stroke: #fff; stroke-width: 3; }
.lchart .callout rect { fill: var(--ink); }
.lchart .callout__n { fill: #fff; font-size: 15px; font-weight: 800; text-anchor: middle; letter-spacing: -.02em; }
.lchart .callout__s { fill: rgba(255,255,255,.7); font-size: 9px; font-weight: 600; text-anchor: middle; }
.chartcard__foot { margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
/* draw-in animation when the modal chart opens (visible by default) */
.lchart .ln { stroke-dasharray: 1400; stroke-dashoffset: 0; }
.lchart .area, .lchart .dot, .lchart .callout { opacity: 1; }
.lchart.play .ln--blue { animation: chartDraw 1.5s cubic-bezier(.4,.5,.2,1); }
.lchart.play .ln--green { animation: chartDraw 1.5s cubic-bezier(.4,.5,.2,1) .15s; }
.lchart.play .ln--orange { animation: chartDraw 1.5s cubic-bezier(.4,.5,.2,1) .25s; }
.lchart.play .area { animation: chartFade .8s ease .4s backwards; }
.lchart.play .dot { animation: chartFade .5s ease 1.2s backwards; }
.lchart.play .callout { animation: chartFade .5s ease 1.3s backwards; }
@keyframes chartDraw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
@keyframes chartFade { from { opacity: 0; } to { opacity: 1; } }

/* search-console chart */
.lg--scblue i { background: #5b9bd5; }
.lg--scpurple i { background: #6b46c1; }
.lchart .scln { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 1; }
.lchart .scln--blue { stroke: #5b9bd5; }
.lchart .scln--purple { stroke: #6b46c1; }
.sc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 18px; }
.sc-kpi { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.sc-kpi__l { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.sc-kpi b { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.sc-kpi--blue { background: #eaf2fb; border-color: #d3e4f6; }
.sc-kpi--blue b { color: #2f73e8; }
.sc-kpi--purple { background: #efeafb; border-color: #ddd2f4; }
.sc-kpi--purple b { color: #6b46c1; }

/* "view graph" CTA button */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gbtn {
  margin-top: 12px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--ink-2);
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.gbtn:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-1px); }
.gbtn i { width: 13px; height: 13px; }

/* icon-only colored variant — invites the click */
.gbtn--icon {
  margin-top: 0; padding: 0; gap: 0; flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-tint, #e6f4f5); border: 1px solid transparent;
  color: var(--teal-deep); position: relative;
  box-shadow: 0 4px 12px -4px rgba(27,151,163,.45);
}
.gbtn--icon i { width: 18px; height: 18px; display: block; }
.gbtn--icon svg { display: block; }
.gbtn--icon::after {
  content: ""; position: absolute; inset: -4px; border-radius: 15px;
  border: 2px solid var(--teal); opacity: 0; transform: scale(.9);
}
.gbtn--icon:hover { background: var(--teal); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(27,151,163,.6); }
@media (prefers-reduced-motion: no-preference) {
  .gbtn--icon { animation: gbtnPulse 2.4s ease-in-out infinite; }
  .gbtn--icon:hover { animation: none; }
}
@keyframes gbtnPulse {
  0%, 100% { box-shadow: 0 4px 12px -4px rgba(27,151,163,.45), 0 0 0 0 rgba(27,151,163,.4); }
  50% { box-shadow: 0 4px 12px -4px rgba(27,151,163,.45), 0 0 0 7px rgba(27,151,163,0); }
}
/* button placed to the RIGHT of text/number — boxes keep original height */
.stat__row { display: flex; align-items: center; gap: 12px; }
.stat__row .stat__l { flex: 1; }
.impact-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.impact-card__top .gbtn--icon { width: 32px; height: 32px; border-radius: 9px; }
.impact-card__top .gbtn--icon i { width: 16px; height: 16px; }

/* chart modal */
.cmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cmodal[hidden] { display: none; }
.cmodal__backdrop { position: absolute; inset: 0; background: rgba(16,18,22,.55); backdrop-filter: blur(3px); animation: cmFade .2s ease; }
.cmodal__panel {
  position: relative; z-index: 1; width: min(840px, 96vw); max-height: 92vh; overflow: auto;
  background: var(--paper); border-radius: 20px; padding: 30px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5); animation: cmPop .26s cubic-bezier(.34,1.3,.5,1);
}
.cmodal__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.cmodal__close:hover { background: var(--ink); color: #fff; }
.cmodal__close i { width: 18px; height: 18px; }
.cmodal__body .chartcard { border: 0; padding: 6px 6px 0; }
@keyframes cmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .lchart .ln, .lchart .scln { stroke-dashoffset: 0; }
  .lchart .area, .lchart .dot, .lchart .callout { opacity: 1; }
}
@media (max-width: 560px) {
  .sc-kpis { grid-template-columns: 1fr 1fr; }
  .cmodal__panel { padding: 22px 16px; }
}