/* ServiceHow modern theme */
:root {
  --max: 1120px;
  --pad: 22px;

  --radius: 18px;
  --radius-sm: 14px;

  --bg: #f7fafc;
  --surface: rgba(255,255,255,.78);
  --surface-solid: #ffffff;

  --text: #0f172a;
  --muted: rgba(15,23,42,.62);
  --border: rgba(15,23,42,.12);

  --accent: #2563eb;
  --accent2: #7c3aed;

  --chip: rgba(37,99,235,.10);
  --chip-border: rgba(37,99,235,.18);

  --shadow: 0 12px 30px rgba(2,6,23,.10);
  --shadow-soft: 0 10px 24px rgba(2,6,23,.08);

  --codebg: #0b1220;
  --codeborder: rgba(255,255,255,.10);
  --codetext: rgba(226,232,240,.94);
  --code-muted: rgba(148,163,184,.92);

  --headerbg: rgba(247,250,252,.72);
}

html[data-theme="dark"] {
  --bg: #070b16;
  --surface: rgba(255,255,255,.06);
  --surface-solid: rgba(255,255,255,.06);

  --text: rgba(226,232,240,.96);
  --muted: rgba(226,232,240,.68);
  --border: rgba(255,255,255,.14);

  --chip: rgba(255,255,255,.10);
  --chip-border: rgba(255,255,255,.16);

  --shadow: 0 18px 46px rgba(0,0,0,.40);
  --shadow-soft: 0 14px 32px rgba(0,0,0,.34);

  --headerbg: rgba(7,11,22,.72);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { color-scheme: light dark; }
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: .1px;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(37,99,235,.22), transparent 55%),
    radial-gradient(900px 560px at 88% 0%, rgba(124,58,237,.18), transparent 55%),
    radial-gradient(1000px 800px at 50% 120%, rgba(37,99,235,.12), transparent 55%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

header, main, footer { width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--headerbg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-weight: 760;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.18);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--muted);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle:hover { color: var(--text); }

.chip, .chipbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--chip-border);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.chip:hover, .chipbtn:hover { color: var(--text); text-decoration: none; }

.chipbtn {
  cursor: pointer;
  font: inherit;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; padding: 10px 0 0; justify-content: flex-start; }
  .nav.is-open { display: flex; }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
}

main { padding: 18px 0 0; }

.hero {
  padding: 36px 0 6px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -0.6px;
}

.hero p { margin: 0; max-width: 74ch; color: var(--muted); font-size: 16px; }

.hero .cta {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.section-title { margin: 34px 0 12px; font-size: 18px; letter-spacing: .2px; }
.muted { color: var(--muted); }

.lead { font-size: 18px; color: var(--muted); margin: 8px 0 0; }

.grid2 {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

@media (max-width: 860px) {
  .grid2 { grid-template-columns: 1fr; }
}

.card.link { text-decoration: none; color: inherit; display: block; }
.card.link:focus { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }

.bullets { margin: 0; padding-left: 18px; }
.bullets li { margin: 8px 0; }


.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  margin: 22px 0;
}

.card {
  grid-column: span 6;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(37,99,235,.22);
}

.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: .1px; }
.card p { margin: 0 0 10px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card.small { grid-column: span 4; }

@media (max-width: 860px) {
  .card, .card.small { grid-column: span 12; }
  .hero h1 { font-size: 30px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}

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

.btn.primary {
  border: 1px solid rgba(37,99,235,.26);
  background: linear-gradient(135deg, rgba(37,99,235,.94), rgba(124,58,237,.88));
  color: #fff;
  box-shadow: 0 16px 36px rgba(37,99,235,.24);
}

.btn.primary:hover { filter: brightness(1.03); }

.btn.ghost {
  background: transparent;
  box-shadow: none;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

pre {
  background: var(--codebg);
  border: 1px solid var(--codeborder);
  border-radius: var(--radius);
  padding: 14px;
  overflow: auto;
  position: relative;
  box-shadow: 0 18px 44px rgba(0,0,0,.25);
}

code {
  color: var(--codetext);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.copybtn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--codeborder);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  color: var(--code-muted);
}

.copybtn:hover { color: var(--codetext); }

.langbar {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px;
  margin: 18px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.langbar strong { font-weight: 650; }
.langbar .actions { display: flex; gap: 10px; margin-top: 10px; align-items: center; flex-wrap: wrap; }

form { display: grid; gap: 10px; max-width: 640px; }
input, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  background: var(--surface-solid);
  color: var(--text);
}

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

.note { font-size: 13px; color: var(--muted); }
.hr { border-top: 1px solid var(--border); margin: 22px 0; }

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.logo{height:24px;width:auto;display:block;}

.chip.is-active{color:var(--text);background:rgba(37,99,235,.14);border-color:rgba(37,99,235,.28);}
.flag{height:16px;width:auto;display:block;border-radius:3px;box-shadow:0 8px 16px rgba(2,6,23,.14);}
.langchip{padding:6px 10px;}
#langbar{display:none !important;}
.profile-card{display:flex;gap:14px;align-items:center;}
.profile-photo{width:112px;height:112px;border-radius:999px;object-fit:cover;border:1px solid rgba(148,163,184,.25);box-shadow:0 14px 24px rgba(2,6,23,.25);}
.profile-meta h3{margin:0 0 6px 0;}
.profile-meta p{margin:0;}
.resources-split{margin-top:14px;}
.resources-split .card{height:100%;}
.section-split{margin:18px 0;}

/* Cookie banner */
.cookiebar-inner { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.cookiebar-actions { display:flex; gap:10px; }

/* --- Layout polish (2026-01-29) --- */

/* Prevent gradient/image tiling on scroll */
html, body {
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}

/* More breathing room in hero area */
.hero {
	padding-bottom: 28px;
}
.hero .actions {
	margin-top: 14px;
	margin-bottom: 18px;
}
.hero .cards {
	margin-top: 18px;
}

/* General vertical rhythm */
.section {
	padding-top: 28px;
	padding-bottom: 28px;
}
.section h2 {
	margin-bottom: 14px;
}
.stack > * + * {
	margin-top: 14px;
}

/* Homepage: Featured work list spacing */
.featured-work .card {
	margin-bottom: 14px;
}

/* Case page: buttons under Result box need space */
.case-cta {
	margin-top: 16px;
}
.case-cta .btn {
	margin-bottom: 10px;
}

/* Cards: avoid cramped edges */
.card {
	padding: 18px;
}

/* --- Spacing + grids (2026-01-29-3) --- */

/* Cards container should actually space cards */
.cards {
	display: grid;
	gap: 14px;
	margin-top: 18px;
}

/* 3-column grid used on homepage for featured cases */
.grid3 {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 22px 0;
}
@media (max-width: 900px) {
	.grid3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.grid3 {
		grid-template-columns: 1fr;
	}
}

/* Extra breathing room between featured cards on homepage */
.featured-work .grid3 {
	margin-top: 14px;
}

/* --- Hire-me polish (2026-01-29-4) --- */
.grid3 {
	gap: 20px;
}
.grid2 {
	gap: 18px;
}
.hero + .grid3 {
	margin-top: 20px;
	margin-bottom: 6px;
}
.section {
	padding-top: 32px;
	padding-bottom: 32px;
}

/* --- UX/Marketing upgrades (2026-01-29-5) --- */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 10px;
	background: var(--surface-solid);
	color: var(--text);
	border: 1px solid var(--border);
	padding: 10px 12px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-soft);
	z-index: 9999;
}
.skip-link:focus {
	left: 10px;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 3px solid rgba(37,99,235,.55);
	outline-offset: 2px;
}

.nav a.nav-cta, .nav .nav-cta {
	padding: 9px 12px;
	border-radius: 999px;
	background: var(--chip);
	border: 1px solid var(--chip-border);
}

.breadcrumbs {
	margin: 10px 0 16px 0;
	font-size: 14px;
}
.breadcrumbs .sep {
	margin: 0 8px;
	color: var(--muted);
}
.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
}
.breadcrumbs a:hover {
	color: var(--text);
	text-decoration: underline;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 18px;
	padding: 26px 0;
}
@media (max-width: 720px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}
.footer-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 14px;
	align-content: start;
}
.footer-links a {
	color: var(--muted);
	text-decoration: none;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; }

.chip-static {
	cursor: default;
}
.case-tags { margin-top: 10px; }

.float-contact {
	position: fixed;
	right: 16px;
	bottom: 18px;
	z-index: 9998;
	padding: 10px 12px;
	border-radius: 999px;
	background: var(--surface-solid);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-soft);
	text-decoration: none;
	color: var(--text);
	font-size: 14px;
}
.float-contact:hover {
	transform: translateY(-1px);
}

.case-grid4 {
	margin-top: 18px;
}


/* --- Overrides: layout + a11y --- */
.vh{
	position:absolute;
	width:1px;
	height:1px;
	padding:0;
	margin:-1px;
	overflow:hidden;
	clip:rect(0,0,0,0);
	white-space:nowrap;
	border:0;
}

html, body{
	background-repeat:no-repeat;
	background-attachment:fixed;
}

@media (max-width: 700px){
	html, body{ background-attachment:scroll; }
}

.grid2{ gap:20px; }
.grid3{ gap:20px; }
.cards{ gap:20px; }

.card.link{ text-decoration:none; }
.card.link:hover{ transform: translateY(-1px); }

.case-toc{
	position:sticky;
	top:12px;
	padding:12px;
	display:flex;
	gap:10px;
	flex-wrap:wrap;
	align-items:center;
}

.case-toc a{
	text-decoration:none;
	padding:6px 10px;
	border-radius:999px;
	border:1px solid var(--stroke);
	background: rgba(255,255,255,0.02);
}

@media (prefers-reduced-motion: reduce){
	*{ scroll-behavior:auto !important; }
	*, *::before, *::after{ transition:none !important; animation:none !important; }
}
.toc{
	position:sticky;
	top:12px;
	padding:12px;
}
.toc a{
	display:block;
	text-decoration:none;
	padding:4px 0;
}