/* =========================================================
   Fatih Donmez - QA Automation Engineer
   Light by default, dark theme via [data-theme="dark"]
   ========================================================= */

:root {
  /* surfaces */
  --bg:        #f6f7f9;
  --bg-soft:   #eef1f5;
  --panel:     #ffffff;
  --titlebar:  #f3f4f6;
  --line:      #dde1e7;
  --line-soft: #e8ebef;

  /* text */
  --text:      #17212c;
  --text-2:    #3f4b59;
  --muted:     #6c7885;

  /* accents */
  --accent:    #2563eb;
  --green:     #1a7f37;
  --green-bg:  #e8f5ec;
  --amber:     #9a6700;
  --amber-bg:  #fdf5e3;
  --red:       #cf222e;

  /* code */
  --code-bg:   #ffffff;
  --code-text: #24292f;
  --code-ln:   #b3bcc6;
  --syn-k:     #9b2393;
  --syn-t:     #0f766e;
  --syn-s:     #a31515;
  --syn-c:     #5c7a5c;
  --syn-a:     #7a5c00;
  --syn-f:     #6f42c1;
  --syn-n:     #0550ae;

  --shadow:    0 18px 40px -24px rgba(16,24,40,.45), 0 2px 6px rgba(16,24,40,.06);
  --shadow-lg: 0 26px 60px -28px rgba(16,24,40,.55), 0 3px 10px rgba(16,24,40,.08);

  --mono: "JetBrains Mono", Consolas, "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --win-font: "Segoe UI Variable Text", "Segoe UI", var(--sans);

  --maxw: 1400px;

  /* native scrollbars / form controls follow the theme */
  color-scheme: light;
  --scroll-thumb: #c6ccd5;
  --scroll-thumb-hover: #a9b2be;
}

[data-theme="dark"] {
  color-scheme: dark;
  --scroll-thumb: #39434f;
  --scroll-thumb-hover: #4b5766;

  --bg:        #0d1117;
  --bg-soft:   #161b22;
  --panel:     #12181f;
  --titlebar:  #1c232c;
  --line:      #2a323d;
  --line-soft: #232a34;

  --text:      #e6edf3;
  --text-2:    #b8c2ce;
  --muted:     #8b95a2;

  --accent:    #58a6ff;
  --green:     #3fb950;
  --green-bg:  rgba(63,185,80,.12);
  --amber:     #d29922;
  --amber-bg:  rgba(210,153,34,.12);
  --red:       #f85149;

  --code-bg:   #12181f;
  --code-text: #c9d1d9;
  --code-ln:   #414b57;
  --syn-k:     #ff7b72;
  --syn-t:     #7ee787;
  --syn-s:     #a5d6ff;
  --syn-c:     #7d8b99;
  --syn-a:     #d2a8ff;
  --syn-f:     #d2a8ff;
  --syn-n:     #79c0ff;

  --shadow:    0 18px 40px -24px rgba(0,0,0,.8), 0 2px 6px rgba(0,0,0,.4);
  --shadow-lg: 0 26px 60px -26px rgba(0,0,0,.9), 0 3px 10px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: var(--panel);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.monogram {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: #fff; background: #2b3543;
}
[data-theme="dark"] .monogram { background: var(--bg-soft); color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; }
.brand-text small { font-size: 11.5px; font-weight: 400; color: var(--muted); }

.nav-links { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text-2); font-size: 14px; padding: 8px 11px; border-radius: 7px;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }

.theme-btn {
  margin-left: 8px; width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); color: var(--text-2);
}
.theme-btn:hover { background: var(--bg-soft); color: var(--text); }
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }

.nav-toggle {
  display: none; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); border-radius: 8px; padding: 7px 10px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 9px;
  font-size: 14px; font-weight: 500; font-family: var(--sans);
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--bg-soft); text-decoration: none; }
.btn-primary { background: #1f2937; border-color: #1f2937; color: #fff; }
.btn-primary:hover { background: #111827; }
[data-theme="dark"] .btn-primary { background: var(--text); border-color: var(--text); color: #0d1117; }
[data-theme="dark"] .btn-primary:hover { background: #fff; }
.btn-sm { padding: 6px 11px; font-size: 13px; }

/* ---------- Sections ---------- */
section { padding: 74px 0 0; }
.sec-head { margin-bottom: 26px; }
.sec-title { font-size: 25px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.4px; }
.sec-sub { color: var(--muted); margin: 0; max-width: 62ch; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line); background: var(--panel);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.hero h1 { font-size: 40px; line-height: 1.1; margin: 0 0 6px; letter-spacing: -1px; }
.hero-role { font-size: 17px; color: var(--text-2); margin: 0 0 16px; }
.hero p.lead { color: var(--text-2); font-size: 16px; margin: 0 0 24px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.chip {
  font-size: 12.5px; font-family: var(--mono); color: var(--text-2);
  border: 1px solid var(--line); background: var(--panel);
  padding: 4px 10px; border-radius: 6px;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 13px 10px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 19px; font-family: var(--mono); color: var(--green); }
.stat span { font-size: 11.5px; color: var(--muted); line-height: 1.35; display: block; }

/* =========================================================
   Windows-style application windows
   ========================================================= */
.win {
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
  font-family: var(--win-font);
  transition: box-shadow .28s ease, border-color .28s ease;
}
.win:hover,
.win:focus-within { box-shadow: var(--shadow-lg); border-color: #c3cad3; }
[data-theme="dark"] .win:hover,
[data-theme="dark"] .win:focus-within { border-color: #3a4552; }
.win:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* EXPERIMENT: stagger the windows left and right down the section.
   Delete this block to put them all back on one edge. */
@media (min-width: 1551px) {
  .ws-live {
    --shift: 80px;
    /* free space beside the container - how far a window may hang outside it */
    --room: max(0px, (100vw - var(--maxw)) / 2 + 8px);
    /* whatever the shift cannot take from that space, it takes from the width */
    --inset: max(0px, var(--shift) - var(--room));
  }
  .ws-live > div,
  .ws-live > .bwin.solo,
  .ws-live > p { width: calc(100% - 2 * var(--inset)); margin-inline: auto; }
  /* `translate` rather than `transform`: it composes with the reveal animation */
  .ws-live > div:nth-of-type(odd),
  .ws-live > p:nth-of-type(odd)    { translate: calc(-1 * var(--shift)); }
  .ws-live > div:nth-of-type(even),
  .ws-live > p:nth-of-type(even)   { translate: var(--shift); }
}

/* a line above each window saying what you are looking at */
.win-cap { margin: 30px 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.win-cap:first-child { margin-top: 0; }
.win-cap b { color: var(--text); font-weight: 600; }

/* When a window is capped in height, only its body may shrink - the chrome
   (title bar, menus, tabs, status strips) keeps its natural size. */
.win > .win-bar,
.win > .menu-row,
.win > .tab-row,
.win > .status-strip,
.win > .pm-url,
.win > .pm-tabs,
.win > .pm-status,
.win > .stats { flex: none; }

/* scrollbars inside the windows, in the site's own colours */
.win *, .bwin * { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
.win *::-webkit-scrollbar, .bwin *::-webkit-scrollbar { width: 11px; height: 11px; }
.win *::-webkit-scrollbar-track, .bwin *::-webkit-scrollbar-track { background: transparent; }
.win *::-webkit-scrollbar-thumb, .bwin *::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb); border: 3px solid transparent;
  background-clip: content-box; border-radius: 8px;
}
.win *::-webkit-scrollbar-thumb:hover, .bwin *::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-thumb-hover); border: 3px solid transparent; background-clip: content-box;
}
.win *::-webkit-scrollbar-corner, .bwin *::-webkit-scrollbar-corner { background: transparent; }

.win-bar {
  display: flex; align-items: center; gap: 9px; height: 34px;
  padding-left: 11px; background: var(--titlebar);
  border-bottom: 1px solid var(--line-soft);
  cursor: default; user-select: none;
}
.app-ic {
  width: 16px; height: 16px; flex: none; object-fit: contain;
  display: grid; place-items: center; border-radius: 4px;
  font-family: var(--sans); font-size: 9px; font-weight: 700; color: #fff;
}
.win-title {
  font-size: 12.5px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-title b { color: var(--text); font-weight: 600; }
.win-ctrls { margin-left: auto; display: flex; align-self: stretch; flex: none; }
.win-ctrls .wc {
  width: 44px; align-self: stretch; color: var(--text-2);
  display: grid; place-items: center;
}
.win-ctrls .wc:hover { background: rgba(0,0,0,.06); }
[data-theme="dark"] .win-ctrls .wc:hover { background: rgba(255,255,255,.08); }
.win-ctrls .wc.close:hover { background: #c42b1c; color: #fff; }
.win-body { flex: 1; min-height: 0; }

/* menu + tab strips */
.menu-row {
  display: flex; gap: 15px; padding: 5px 12px;
  border-bottom: 1px solid var(--line-soft); background: var(--panel);
  font-size: 12px; color: var(--text-2);
}
.tab-row { display: flex; background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.tab {
  font-size: 12px; color: var(--muted); padding: 7px 12px;
  border-right: 1px solid var(--line-soft); white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.tab.on { background: var(--panel); color: var(--text); box-shadow: inset 0 2px 0 var(--accent); }
.tab .x { color: var(--muted); font-size: 11px; }
.file-ic { width: 14px; height: 14px; flex: none; object-fit: contain; }

/* ---------- Eclipse ---------- */
.ide-main { display: grid; grid-template-columns: 250px 1fr; min-height: 0; }
.ide-main > * { min-height: 0; }
.explorer {
  border-right: 1px solid var(--line-soft); background: var(--panel);
  padding: 0 0 10px; overflow: auto;
}

/* Eclipse view tab + view toolbar */
.ex-head {
  display: flex; align-items: stretch; height: 28px;
  background: var(--titlebar); border-bottom: 1px solid var(--line-soft);
  padding-right: 5px;
}
.ex-tab {
  display: flex; align-items: center; gap: 6px; padding: 0 9px;
  font-size: 12px; color: var(--text); background: var(--panel);
  box-shadow: inset 0 -2px 0 #0a6ed1;
}
.ex-tab .x { font-size: 10px; color: var(--muted); font-style: normal; margin-left: 3px; }
.ex-tools { margin-left: auto; display: flex; align-items: center; gap: 1px; }
.ex-tools i {
  width: 20px; height: 20px; display: grid; place-items: center;
  font-style: normal; font-size: 12px; color: var(--muted); border-radius: 3px;
}
.ex-tools i:hover { background: rgba(0,0,0,.06); color: var(--text); }
[data-theme="dark"] .ex-tools i:hover { background: rgba(255,255,255,.08); }

/* tree rows */
.tree { list-style: none; margin: 0; padding: 4px 0 0; font-size: 12px; }
.tree li {
  height: 19px; display: flex; align-items: center; gap: 4px;
  padding-right: 12px; color: var(--text); white-space: nowrap;
}
.tree li:hover { background: rgba(10,110,209,.08); }
.tree li.on { background: #0a6ed1; color: #fff; }
.tree .tw {
  flex: none; width: 13px; text-align: center; font-style: normal;
  font-size: 11px; line-height: 1; color: #7a8797;
}
.tree li.on .tw { color: #dbe9fb; }
.ei { flex: none; width: 16px; height: 16px; object-fit: contain; }
.l0 { padding-left: 4px; }
.l1 { padding-left: 20px; }
.l2 { padding-left: 36px; }
.l3 { padding-left: 52px; }

.code {
  margin: 0; padding: 12px 14px 14px; overflow: auto;
  font-family: var(--mono); font-size: 12.3px; line-height: 1.5;
  background: var(--code-bg); color: var(--code-text); counter-reset: ln;
  /* rows are block spans, so the newlines between them must not become lines of their own */
  white-space: normal;
}
.code .ln { display: block; white-space: pre; }
.code .ln::before {
  counter-increment: ln; content: counter(ln);
  display: inline-block; width: 24px; margin-right: 14px;
  text-align: right; color: var(--code-ln); user-select: none;
}
.k { color: var(--syn-k); } .t { color: var(--syn-t); } .s { color: var(--syn-s); }
.c { color: var(--syn-c); } .a { color: var(--syn-a); } .f { color: var(--syn-f); }
.n { color: var(--syn-n); }

.status-strip {
  border-top: 1px solid var(--line-soft); background: var(--bg-soft);
  padding: 7px 13px; font-family: var(--mono); font-size: 11.4px;
  color: var(--muted); display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.status-strip .ok { color: var(--green); }

/* ---------- Postman ---------- */
.pm-url { display: flex; align-items: stretch; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.method {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--green); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 9px; background: var(--panel); flex: none;
}
.url-box {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 11.8px; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  padding: 6px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.send {
  flex: none; font-size: 12px; font-weight: 600; color: #fff;
  background: #ef5b25; border-radius: 6px; padding: 6px 16px; display: grid; place-items: center;
}
.pm-tabs { display: flex; padding: 0 12px; border-bottom: 1px solid var(--line-soft); background: var(--panel); }
.pm-tabs span { font-size: 12px; color: var(--muted); padding: 7px 10px; }
.pm-tabs span.on { color: var(--text); box-shadow: inset 0 -2px 0 #ef5b25; }
.pm-status {
  display: flex; gap: 16px; padding: 7px 13px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11.4px; color: var(--muted); flex-wrap: wrap;
}
.pm-status b { color: var(--green); font-weight: 600; }
.pm-cols { display: grid; grid-template-columns: 1fr 1fr; }
.pm-cols > div { min-width: 0; }
.pm-cols > div:first-child { border-right: 1px solid var(--line-soft); }
.pane-label {
  font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
  padding: 8px 14px 0; margin: 0;
}

/* ---------- Cascading browsers ----------
   The first window stays in the flow so the stack sizes itself: the container
   is as tall as one window plus the offset of the last one. No fixed height. */
.cascade { position: relative; padding-bottom: 116px; }
.bwin {
  position: absolute; width: calc(100% - 76px);
  border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow);
  font-family: var(--win-font);
  transition: box-shadow .28s ease, border-color .28s ease;
}
.bwin:nth-child(1) { position: relative; top: auto; left: 0; z-index: 1; }
.bwin:nth-child(2) { top: 58px;  left: 38px; z-index: 2; }
.bwin:nth-child(3) { top: 116px; left: 76px; z-index: 3; }
.bwin:hover, .bwin:focus-within { z-index: 6; box-shadow: var(--shadow-lg); border-color: #c3cad3; }
[data-theme="dark"] .bwin:hover, [data-theme="dark"] .bwin:focus-within { border-color: #3a4552; }

.b-bar { display: flex; align-items: center; gap: 8px; height: 32px; padding-left: 10px; background: var(--titlebar); }
.blogo { width: 16px; height: 16px; flex: none; }
.b-tab {
  display: flex; align-items: center; gap: 7px; font-size: 11.8px; color: var(--text);
  background: var(--panel); border-radius: 7px 7px 0 0; padding: 5px 12px; margin-top: 4px;
  max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* a browser window standing on its own, outside the cascade */
.bwin.solo { position: static; width: 100%; top: auto; left: auto; }
.b-tab.ghost { background: transparent; color: var(--muted); }
.tab-fav { width: 13px; height: 13px; flex: none; object-fit: contain; }
/* single-colour brand marks need a lift on the dark theme */
[data-theme="dark"] .ic-mono { filter: brightness(2.5) saturate(1.15); }
.b-bar .badge { margin-left: auto; margin-right: 8px; }
.b-bar .win-ctrls { margin-left: auto; }
.b-bar .badge + .win-ctrls { margin-left: 0; }
.b-url-row { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-bottom: 1px solid var(--line-soft); }
.b-nav { color: var(--muted); font-size: 12px; letter-spacing: 3px; flex: none; }
.b-url {
  flex: 1; min-width: 0; font-size: 11.6px; color: var(--text-2);
  background: var(--bg-soft); border-radius: 999px; padding: 4px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.page { padding: 16px 18px 14px; }
.page h4 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.field { height: 26px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-soft); margin-bottom: 9px; max-width: 300px; }
.page .fake-btn { display: inline-block; font-size: 11.5px; color: #fff; background: #1a7f37; border-radius: 5px; padding: 5px 14px; }
.b-status {
  display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft);
  padding: 6px 12px; font-family: var(--mono); font-size: 11.2px; color: var(--muted);
}
.badge {
  margin-left: auto; font-family: var(--mono); font-size: 10.6px; font-weight: 700;
  letter-spacing: .5px; padding: 2px 8px; border-radius: 5px;
  color: var(--green); background: var(--green-bg); border: 1px solid var(--green);
}
.badge.run { color: var(--amber); background: var(--amber-bg); border-color: var(--amber); }

/* ---------- MySQL Workbench ---------- */
.sql-main { display: grid; grid-template-columns: 230px 1fr; min-height: 0; }
.sql-main > * { min-height: 0; }
.sql-nav {
  border-right: 1px solid var(--line-soft); background: var(--bg-soft);
  padding: 8px 0 10px; overflow: auto;
}
.sch-head {
  margin: 0; padding: 2px 12px 8px; font-size: 11px;
  letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
}
.sch { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.sch li {
  height: 19px; display: flex; align-items: center; gap: 5px;
  padding-right: 10px; color: var(--text); white-space: nowrap;
}
.sch li:hover { background: rgba(10,110,209,.08); }
.sch .tw { flex: none; width: 13px; text-align: center; font-size: 11px; color: #7a8797; font-style: normal; }
.sch .gl { flex: none; width: 14px; text-align: center; font-size: 11px; font-style: normal; }
.gl-db { color: #4479a1; } .gl-fold { color: #b8860b; } .gl-tbl { color: #4479a1; }
.s0 { padding-left: 4px; } .s1 { padding-left: 18px; } .s2 { padding-left: 34px; }
.sch li.on { background: #0a6ed1; color: #fff; }
.sch li.on .gl, .sch li.on .tw { color: #dbe9fb; }

.sql-right { display: flex; flex-direction: column; min-height: 0; }
.sql-right .code { flex: none; border-bottom: 1px solid var(--line-soft); }
.rgrid-wrap { flex: 1; min-height: 0; overflow: auto; background: var(--panel); }
.rgrid { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 11.6px; }
.rgrid th, .rgrid td {
  text-align: left; padding: 5px 12px; white-space: nowrap;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.rgrid thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-soft); color: var(--text-2); font-weight: 600;
}
.rgrid td { color: var(--text-2); }
.rgrid td.rownum { color: var(--muted); background: var(--bg-soft); text-align: right; }
.rgrid tbody tr:hover td { background: rgba(10,110,209,.07); }
.rgrid .v-ok { color: var(--green); }
.rgrid .v-null { color: var(--muted); font-style: italic; }

/* ---------- Jira board ---------- */
.jira { background: var(--panel); padding: 14px 16px 16px; }
.jira-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.jira-title { font-size: 13.5px; font-weight: 600; }
.jira-meta { font-size: 11.5px; color: var(--muted); }
.avatars { margin-left: auto; display: flex; }
.avatars i {
  width: 22px; height: 22px; border-radius: 50%; font-style: normal;
  background: #2563eb; color: #fff; font-size: 9.5px; font-weight: 700;
  display: grid; place-items: center; margin-left: -6px; border: 2px solid var(--panel);
}
.avatars i:nth-child(2) { background: #8b5cf6; }
.avatars i:nth-child(3) { background: #0f766e; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col { background: var(--bg-soft); border-radius: 6px; padding: 9px 9px 3px; }
.col h5 {
  margin: 0 0 9px; font-size: 11px; letter-spacing: .7px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; display: flex; gap: 6px; padding-left: 2px;
}
.col h5 b { color: var(--text-2); }
.jcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
  padding: 8px 9px; margin-bottom: 7px; box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.jcard p { margin: 0 0 8px; font-size: 12.4px; line-height: 1.4; color: var(--text); }
.jcard.done p { color: var(--muted); }
.jmeta { display: flex; align-items: center; gap: 7px; }
.jtype {
  width: 14px; height: 14px; border-radius: 3px; font-style: normal;
  font-size: 9px; font-weight: 700; color: #fff; display: grid; place-items: center;
}
.jtype.story { background: #22a06b; }
.jtype.task  { background: #2563eb; }
.jtype.bug   { background: #c9372c; }
.jkey { font-family: var(--mono); font-size: 10.6px; color: var(--muted); }
.tick { margin-left: auto; color: var(--green); font-size: 12px; }
.pts {
  margin-left: auto; min-width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-2); font-size: 10px;
  font-family: var(--mono); display: grid; place-items: center;
}
/* card avatars use the same colours as the ones in the board header */
.ava {
  width: 18px; height: 18px; border-radius: 50%; background: #2563eb; color: #fff;
  font-size: 8.5px; font-weight: 700; display: grid; place-items: center;
}
.ava.td { background: #8b5cf6; }
.ava.sk { background: #0f766e; }

/* ---------- Jenkins ---------- */
.ci-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ci-left { border-right: 1px solid var(--line-soft); padding: 13px 15px 15px; }
.pipeline { display: flex; gap: 6px; margin: 11px 0 14px; flex-wrap: wrap; }
.stage {
  flex: 1; min-width: 88px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel); padding: 8px 9px; text-align: center;
}
.stage.ok { border-color: var(--green); background: var(--green-bg); }
.stage.now { border-color: var(--amber); background: var(--amber-bg); }
.stage b { display: block; font-size: 11.5px; font-weight: 600; }
.stage span { font-family: var(--mono); font-size: 10.4px; color: var(--muted); }
.build-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--mono); font-size: 11.4px; color: var(--muted); }
.build-meta b { color: var(--text-2); font-weight: 600; }
.progress { height: 6px; border-radius: 3px; background: var(--bg-soft); overflow: hidden; margin-top: 11px; }
.progress i { display: block; height: 100%; width: 82%; background: var(--green); }
.term {
  padding: 12px 15px; font-family: var(--mono); font-size: 11.8px; line-height: 1.75;
  background: var(--code-bg); color: var(--code-text); overflow-x: auto;
}
.term .l { display: block; white-space: pre-wrap; }
.ok { color: var(--green); } .warn { color: var(--amber); } .dim { color: var(--muted); }
.info { color: var(--accent); }
.cursor { display: inline-block; width: 7px; height: 13px; background: var(--green); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 0%,50% { opacity: 1 } 51%,100% { opacity: 0 } }

/* terminal card in hero */


/* ---------- Experience ---------- */
.job { padding: 22px 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 0; }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 2px; }
.job h3 { margin: 0; font-size: 17px; }
.job .co { color: var(--text-2); font-size: 15px; }
.job .when { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.job .where { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.job ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.job li { margin-bottom: 6px; }

/* ---------- Skills ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.skill-card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 16px 17px; }
.skill-card h3 { margin: 0 0 11px; font-size: 12.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-family: var(--mono); font-size: 11.8px; color: var(--text-2);
  border: 1px solid var(--line); background: var(--panel);
  padding: 3px 9px; border-radius: 6px;
}

/* ---------- Projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.proj {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  padding: 18px 19px; display: flex; flex-direction: column;
}
.proj h3 { margin: 0 0 8px; font-size: 16.5px; }
.proj p { margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; }
.proj ul { margin: 0 0 14px; padding-left: 17px; color: var(--muted); font-size: 13.5px; }
.proj ul li { margin-bottom: 4px; }
.proj .tags { margin-top: auto; }

/* ---------- Cards / contact ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p { margin: 0; color: var(--text-2); font-size: 14.6px; }

.contact-grid {
  display: grid; gap: 12px; margin-bottom: 20px;
  /* two fixed columns: four narrow ones would cut the email address short */
  grid-template-columns: repeat(2, 1fr); max-width: 940px;
}
.contact-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  padding: 14px 16px;
}
.contact-item .ci-ic {
  width: 32px; height: 32px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--text-2);
}
/* the value is always shown in full: it never wraps and is never truncated,
   so the card is the part that gives way */
.contact-item > div { min-width: 0; flex: 1; }
.contact-item span { display: block; font-size: 11px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.contact-item a, .contact-item strong {
  display: block; font-size: 14.2px; color: var(--text); font-weight: 500;
  white-space: nowrap; overflow: visible;
}
.contact-item a:hover { color: var(--accent); }
.copy-btn { margin-left: auto; flex: none; }
.copy-btn.done { color: var(--green); border-color: var(--green); }

/* ---------- Footer ---------- */
footer {
  margin-top: 72px; border-top: 1px solid var(--line); padding: 22px 0 36px;
  color: var(--muted); font-size: 13.4px;
}
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
/* deliberately faint: the old work is there if you look for it */
.old-projects { opacity: .2; transition: opacity .2s ease; }
.old-projects:hover, .old-projects:focus-visible { opacity: 1; text-decoration: none; }

/* ---------- Reveal ----------
   Runs as an animation, not a transition: a `transition` here would replace the
   hover transition of any element that also carries .reveal (the windows do). */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { animation: reveal-in .5s ease forwards; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.in { animation: none; }
  .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Workspace hint + screenshot fallback ---------- */
.ws-hint { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.ws-shots { display: none; }
.shot-fig { margin: 0 0 22px; }
/* the PNGs carry their own window frame on a transparent background */
.shot-img { width: 100%; height: auto; display: block; }
.shot-fig figcaption { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.shot-fig figcaption b { color: var(--text); font-weight: 600; }

/* ---------- Responsive ---------- */
/* laptop / large tablet: tighten the live windows */
@media (max-width: 1100px) {
  .ide-main { grid-template-columns: 196px 1fr; }
  .code { font-size: 11.9px; }
  .explorer { font-size: 11.5px; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .two-col { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 940px) {
  .ci-grid, .pm-cols { grid-template-columns: 1fr; }
  .ci-left { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .pm-cols > div:first-child { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .cascade { padding-bottom: 56px; }
  .bwin { width: calc(100% - 56px); }
  .bwin:nth-child(2) { top: 28px; left: 28px; }
  .bwin:nth-child(3) { top: 56px; left: 56px; }
}
/* tablets and phones: swap the live windows for screenshots */
@media (max-width: 900px) {
  .ws-live { display: none; }
  .ws-shots { display: block; }
  section { padding-top: 64px; }
  .sec-title { font-size: 23px; }
  .skill-grid, .proj-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}
@media (max-width: 720px) {
  section { padding-top: 54px; }
  .wrap { padding: 0 18px; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: 32px; }
  .hero-role { font-size: 15.5px; }
  .hero p.lead { font-size: 15.4px; }
  .hero-status { font-size: 12.4px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .nav-toggle { display: block; margin-left: 8px; }
  .theme-btn { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 14px;
    background: var(--panel); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 15px; }

  .term { font-size: 11.2px; padding: 11px 12px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 11px 4px; }
  .stat b { font-size: 17px; }
  .stat span { font-size: 10.6px; }

  .job { padding: 18px 0; }
  .job .when { margin-left: 0; width: 100%; }
  .job ul, .proj p { font-size: 14.6px; }
  .skill-grid, .proj-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  footer { margin-top: 56px; }
}
@media (max-width: 420px) {
  .contact-item { gap: 10px; padding: 13px 13px; }
  .contact-item a, .contact-item strong { font-size: 13.4px; }
  .contact-item .copy-btn { padding: 5px 9px; font-size: 12.5px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 29px; }
  .stat b { font-size: 16px; }
  .stat span { font-size: 10px; }
  .shot-fig figcaption { font-size: 12.5px; }
}
