/* Weetkit portfolio. Brand palette (shared with Finance Manager): #fbfcfc #e0e5e9 #b2c9c5 #1bd488 #45828b #055b65 */

:root {
  color-scheme: light;
  --page: #fbfcfc;
  --page-alt: #eef2f4;
  --surface: #ffffff;
  --ink: #0b0d10;
  --ink-2: #4a5560;
  --muted: #6b7480;
  --border: #e0e5e9;
  --brand: #055b65;
  --brand-hover: #45828b;
  --brand-soft: #b2c9c5;
  --brand-tint: #e6f0ef;
  --accent: #1bd488;
  --accent-ink: #04302f;
  --good-text: #007a50;
  --critical: #e11d48;
  --shadow: 0 1px 2px rgba(5, 40, 45, .06), 0 12px 32px -12px rgba(5, 40, 45, .18);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0b1416;
    --page-alt: #0e1b1e;
    --surface: #102125;
    --ink: #fbfcfc;
    --ink-2: #b2c9c5;
    --muted: #8d9aa0;
    --border: #1d3236;
    --brand-tint: #12302f;
    --accent-ink: #04302f;
    --good-text: #1bd488;
    --critical: #ff6b8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b1416;
  --page-alt: #0e1b1e;
  --surface: #102125;
  --ink: #fbfcfc;
  --ink-2: #b2c9c5;
  --muted: #8d9aa0;
  --border: #1d3236;
  --brand-tint: #12302f;
  --good-text: #1bd488;
  --critical: #ff6b8a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
code { font: .92em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--brand-tint); padding: .15em .4em; border-radius: 6px; white-space: nowrap; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { color: var(--ink); background: var(--page-alt); }
.site-nav .nav-cta { color: var(--brand); border: 1px solid var(--brand-soft); }
:root[data-theme="dark"] .site-nav .nav-cta { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-nav .nav-cta { color: var(--accent); border-color: var(--border); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fbfcfc; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand-soft); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #3fe0a0; }
.btn-lg { padding: 16px 26px; font-size: 1.05rem; }
.text-link { color: var(--brand); font-weight: 700; text-underline-offset: 3px; }
:root[data-theme="dark"] .text-link { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .text-link { color: var(--accent); } }

.eyebrow { margin: 0 0 12px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-hover); }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
.hl { background: linear-gradient(90deg, var(--brand), var(--brand-hover) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .hl { background-image: linear-gradient(90deg, var(--brand-soft), var(--accent)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl { background-image: linear-gradient(90deg, var(--brand-soft), var(--accent)); } }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; margin: 20px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platforms li { font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

.hero-art { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.orbit { position: absolute; inset: -6%; border-radius: 50%; border: 1px dashed var(--brand-soft); opacity: .7; }
.hero-watch { width: 100%; border-radius: 50%; box-shadow: 0 30px 60px -20px rgba(5, 40, 45, .45), 0 0 0 10px #15181a, 0 0 0 11px #2a2f33; }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .9rem; white-space: nowrap;
}
.chip-a { left: -8%; bottom: 12%; }
.chip-b { right: -6%; top: 8%; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--page-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2, .contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-sub { color: var(--ink-2); font-size: 1.08rem; margin: 14px 0 0; }

/* Projects */
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 40px; margin-bottom: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow);
}
.project-reverse .project-media { order: 2; }
.project-media { position: relative; min-height: 400px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; }
.project-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.project-title h3 { font-size: 1.6rem; font-weight: 800; }
.project-body, .project-media, .hero-copy { min-width: 0; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app-icon-ledger, .app-icon-fm { display: grid; place-items: center; background: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.tags span { font-size: .78rem; font-weight: 700; color: var(--brand); background: var(--brand-tint); padding: 3px 10px; border-radius: 999px; }
:root[data-theme="dark"] .tags span { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tags span { color: var(--accent); } }
.tags .tag-live { color: var(--accent-ink); background: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.tags .tag-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
:root[data-theme="dark"] .tags .tag-live { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tags .tag-live { color: var(--accent-ink); } }
.project-lede {font-size: 1.08rem; color: var(--ink-2); margin: 0 0 20px; }
.features { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 28px; color: var(--ink-2); }
.features li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%2304302f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.features strong { color: var(--ink); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; }
.stack span { font: 600 .78rem/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); border: 1px solid var(--border); padding: 6px 9px; border-radius: 8px; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

/* Gas Shop WhatsApp mockup */
.wa-media { background: linear-gradient(150deg, #0e3b33, #04302f); min-height: 540px; }
.wa-screen { background: #efeae2; padding-bottom: 14px; }
.wa-head { display: flex; align-items: center; gap: 8px; background: #055b65; color: #fff; margin: 0 -12px 10px; padding: 8px 12px; }
.wa-head b { display: block; font-size: 11.5px; }
.wa-head small { font-size: 9px; opacity: .8; }
.wa-avatar { width: 26px; height: 26px; border-radius: 50%; background: #1bd488; color: #04302f; display: grid; place-items: center; font-weight: 800; font-size: 9.5px; }
.wa-chat { display: flex; flex-direction: column; gap: 6px; }
.wa-msg { max-width: 82%; padding: 6px 8px; border-radius: 9px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.wa-msg.in { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa-msg.out { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa-btns { display: flex; gap: 4px; margin-top: 6px; }
.wa-btns span { flex: 1; text-align: center; color: #055b65; font-weight: 700; border-top: 1px solid #e0e5e9; padding-top: 5px; }
.wa-pin { display: flex; align-items: center; gap: 6px; }
.wa-pin i { width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e11d48; flex: none; }
.app-icon-wa { display: grid; place-items: center; background: var(--brand); }

/* Note after the showcased projects */
.work-more { text-align: center; max-width: 640px; margin: 56px auto 0; padding: 32px 24px; border: 1px dashed var(--border); border-radius: 28px; }
.work-more h3 { font-size: 1.35rem; font-weight: 800; margin: 0 0 10px; }
.work-more p { color: var(--ink-2); margin: 0 0 22px; }

/* Math Chalkboard media */
.chalk-media { background: radial-gradient(120% 90% at 30% 20%, #2f6a45, #1b3d29 70%); min-height: 460px; }
.chalk-dial { position: absolute; width: 62%; left: 6%; top: 50%; transform: translateY(-50%); border-radius: 50%; box-shadow: 0 0 0 8px #111, 0 24px 50px rgba(0, 0, 0, .5); }
.chalk-aod { position: absolute; width: 26%; left: 4%; bottom: 5%; border-radius: 50%; box-shadow: 0 0 0 5px #111, 0 10px 24px rgba(0, 0, 0, .5); }
.chalk-phone { position: absolute; width: 34%; right: 6%; top: 50%; transform: translateY(-50%) rotate(4deg); border-radius: 16px; box-shadow: 0 0 0 5px #111, 0 24px 50px rgba(0, 0, 0, .5); }

/* Ledger phone mockup */
.ledger-media { background: linear-gradient(150deg, var(--brand), #03393f); min-height: 520px; }
.phone { width: 250px; padding: 9px; border-radius: 38px; background: #0d1112; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.phone-screen { background: #f4f7f8; color: #0b0d10; border-radius: 30px; padding: 12px 12px 10px; font-size: 11px; line-height: 1.35; }
.m-status { display: flex; justify-content: space-between; font-weight: 700; font-size: 10px; padding: 0 6px 8px; }
.m-icons { width: 30px; height: 8px; border-radius: 3px; background: linear-gradient(90deg, #0b0d10 60%, transparent 60%); opacity: .7; }
.m-top { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; }
.m-h { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.m-sub { color: #6b7480; font-size: 10px; font-weight: 600; }
.m-avatar { width: 28px; height: 28px; border-radius: 50%; background: #b2c9c5; color: #055b65; display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.m-card { background: #fff; border-radius: 14px; padding: 10px 11px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.m-net { background: #055b65; color: #fbfcfc; }
.m-net .m-sub { color: #b2c9c5; }
.m-big { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0; }
.m-delta { color: #1bd488; font-weight: 700; font-size: 10px; }
.m-row-head { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 6px; }
.m-budget { display: flex; justify-content: space-between; font-size: 10px; color: #4a5560; margin-top: 6px; }
.m-bar { height: 6px; background: #e0e5e9; border-radius: 99px; margin-top: 3px; overflow: hidden; }
.m-bar i { display: block; height: 100%; background: #055b65; border-radius: inherit; }
.m-bar.warn i { background: #e11d48; }
.m-tx { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; padding: 4px 0; }
.m-ic { width: 22px; height: 22px; border-radius: 7px; background: #e6f0ef; display: grid; place-items: center; font-size: 11px; }
.m-tx b.neg { color: #0b0d10; } .m-tx b.pos { color: #007a50; }
.m-nav { display: flex; justify-content: space-around; padding: 8px 6px 2px; }
.m-nav i { width: 18px; height: 5px; border-radius: 9px; background: #d2dadf; }
.m-nav i.on { background: #055b65; width: 28px; }
.lock-chip, .api-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 9px 13px; border-radius: 12px; font-weight: 700; font-size: .85rem; white-space: nowrap;
}
.lock-chip { right: 5%; top: 7%; }
.lock-chip svg { color: var(--accent); }
.api-chip { left: 5%; bottom: 7%; }
.api-chip code { background: none; padding: 0; font-size: .8rem; }

/* Ledger iOS mockup */
.ios-media { background: linear-gradient(160deg, #1bd488, #055b65 70%); min-height: 520px; }
.iphone { width: 250px; padding: 8px; border-radius: 44px; background: #0d1112; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.iphone-screen { background: #f2f2f7; color: #0b0d10; border-radius: 36px; padding: 12px 12px 8px; font: 11px/1.35 -apple-system, "SF Pro Text", "Manrope", system-ui, sans-serif; }
.i-status { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 10px; padding: 0 10px 8px; }
.i-island { width: 64px; height: 18px; border-radius: 99px; background: #0d1112; }
.i-large { font-weight: 800; font-size: 21px; letter-spacing: -.02em; padding: 2px 4px 8px; }
.i-label { color: #6b7480; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px 3px; }
.i-group { background: #fff; border-radius: 12px; padding: 9px 10px; margin-bottom: 6px; }
.i-chart { display: block; width: 100%; height: auto; margin-top: 6px; }
.i-chart .s1 rect { fill: #055b65; } .i-chart .s2 rect { fill: #1bd488; }
.i-chart line { stroke: #d2dadf; }
.i-list { padding: 0 10px; }
.i-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; }
.i-row + .i-row { border-top: 1px solid #e5e5ea; }
.i-row b { font-weight: 700; }
.i-warn { color: #e11d48; }
.i-tabs { display: flex; justify-content: space-around; padding: 8px 0 2px; font-size: 8px; color: #8e8e93; }
.i-tabs span { display: grid; justify-items: center; gap: 3px; }
.i-tabs i { width: 16px; height: 14px; border-radius: 4px; background: currentColor; opacity: .55; }
.i-tabs .on { color: #055b65; } .i-tabs .on i { opacity: 1; }
.faceid-chip { right: auto; left: 5%; }

/* Finance Manager browser mockup */
.fm-media { background: linear-gradient(160deg, #e0e5e9, #b2c9c5); min-height: 420px; padding: 32px 24px 64px; }
:root[data-theme="dark"] .fm-media { background: linear-gradient(160deg, #13282c, #0b1416); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fm-media { background: linear-gradient(160deg, #13282c, #0b1416); } }
.browser { width: 100%; max-width: 480px; background: #fbfcfc; color: #0b0d10; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(5, 40, 45, .55); font-size: 10px; }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: #e0e5e9; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #b2c9c5; }
.browser-bar span { margin-left: 10px; background: #fbfcfc; padding: 3px 10px; border-radius: 6px; color: #6b7480; font-weight: 600; }
.browser-body { display: grid; grid-template-columns: 96px 1fr; min-height: 250px; }
.b-side { background: #fff; border-right: 1px solid #e0e5e9; padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; }
.b-brand { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 11px; margin-bottom: 8px; }
.b-logo { width: 14px; height: 14px; border-radius: 4px; background: #055b65; }
.b-link { padding: 4px 6px; border-radius: 6px; color: #59626d; font-weight: 600; }
.b-link.on { background: #e0e5e9; color: #055b65; }
.b-main { padding: 10px; background: #f1f4f6; display: grid; gap: 8px; align-content: start; }
.b-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.b-kpis div, .b-panel { background: #fff; border-radius: 8px; padding: 7px 8px; }
.b-kpis small, .b-panel small { display: block; color: #6b7480; font-weight: 600; font-size: 9px; margin-bottom: 2px; }
.b-kpis b { font-size: 13px; letter-spacing: -.02em; }
.b-kpis b.pos { color: #007a50; }
.b-chart { width: 100%; height: auto; }
.b-chart .grid line { stroke: #e0e5e9; stroke-width: 1; }
.b-chart .base { stroke: #b2c9c5; stroke-width: 1; }
.b-chart .s1 rect { fill: #055b65; }
.b-chart .s2 rect { fill: #1bd488; }
.b-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.b-bar { height: 6px; background: #e0e5e9; border-radius: 99px; margin: 6px 0; overflow: hidden; }
.b-bar i { display: block; height: 100%; background: #45828b; border-radius: inherit; }
.b-up { display: flex; justify-content: space-between; padding: 2px 0; color: #59626d; }
.b-up b { color: #0b0d10; }

/* Approach cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 1.2rem; font-weight: 800; margin: 18px 0 10px; }
.card p { margin: 0; color: var(--ink-2); }
.card-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
:root[data-theme="dark"] .card-ic { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-ic { color: var(--accent); } }

/* Contact */
.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px; border-radius: 28px; color: #fbfcfc;
  background: radial-gradient(120% 140% at 100% 0%, #45828b, #055b65 55%, #03393f);
}
.contact .eyebrow { color: var(--accent); }
.contact .section-sub { color: #d6e4e2; max-width: 34em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(340px, 80%); margin-top: 16px; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 20px; }
  .project-reverse .project-media { order: 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .chip-a { left: -4%; } .chip-b { right: -4%; }
  .project-media { min-height: 340px; }
  .chalk-media { min-height: 360px; }
  .ledger-media, .ios-media { min-height: 480px; }
  .fm-media { padding: 20px 12px 60px; }
  .browser-body { grid-template-columns: 1fr; }
  .b-side { display: none; }
  .contact { padding: 32px 24px; }
  .contact .btn-lg { width: 100%; font-size: .98rem; }
  .project-title h3 { font-size: 1.35rem; }
  .lock-chip { top: auto; bottom: 3%; right: 50%; transform: translateX(50%); }
  .ledger-media, .ios-media { padding-bottom: 40px; }
  .faceid-chip { left: auto; }
  .wa-media { min-height: 500px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* Countries (Android) screenshots */
.countries-media { background: radial-gradient(120% 90% at 30% 20%, #14958a, #0f766e 45%, #134e4a); min-height: 540px; }
.countries-shot { position: absolute; width: 40%; top: 50%; border-radius: 18px; box-shadow: 0 0 0 5px #111, 0 24px 50px rgba(0, 0, 0, .45); }
.countries-shot-front { left: 12%; transform: translateY(-50%) rotate(-3deg); z-index: 1; }
.countries-shot-back { right: 10%; transform: translateY(-46%) rotate(4deg); }
.app-icon-countries { display: grid; place-items: center; background: #0f766e; }

/* Countries iOS mockup */
.countries-ios-media { background: linear-gradient(160deg, #5eead4, #0f766e 70%); min-height: 520px; }
.c-search { background: #e3e3e8; color: #8e8e93; border-radius: 9px; padding: 5px 9px; margin: 0 4px 8px; }
.c-chips { display: flex; gap: 4px; padding: 0 4px 6px; overflow: hidden; }
.c-chips span { flex: none; font-size: 9px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: #fff; color: #4a5560; }
.c-chips .on { background: #0f766e; color: #fff; }
.c-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; padding: 5px 0; }
.c-row b { display: block; font-weight: 700; }
.c-row small { color: #6b7480; font-size: 9px; }
.c-flag { font-size: 15px; line-height: 1; }
.c-code { color: #8e8e93; font: 600 9px ui-monospace, "SF Mono", Menlo, monospace; }
.c-tabs .on { color: #0f766e; }
.route-chip svg { color: #0f766e; }
:root[data-theme="dark"] .route-chip svg { color: #5eead4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .route-chip svg { color: #5eead4; } }
@media (max-width: 560px) {
  .countries-media { min-height: 440px; }
  .countries-shot { width: 46%; }
  .countries-shot-front { left: 6%; }
  .countries-shot-back { right: 4%; }
  .countries-ios-media { min-height: 480px; padding-bottom: 40px; }
}

[hidden] { display: none !important; }

/* Guesstament phone mockup (the game's own parchment, green, gold and clay palette) */
.gt-media { background: radial-gradient(120% 90% at 30% 20%, #3f6d9a, #2c5a87 45%, #1d3c5c); min-height: 560px; }
.gt-screen { background: #f6f0e3; color: #2f261d; padding-bottom: 14px; }
.gt-brand { text-align: center; padding: 2px 0 8px; }
.gt-brand b { display: block; font: 700 17px/1.1 "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.gt-brand small { color: #7a6d5c; font-size: 9px; }
.gt-modes { display: flex; gap: 4px; justify-content: center; margin-bottom: 8px; }
.gt-modes span { font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #e7dcc6; }
.gt-modes span.on { background: #7b2d26; color: #fffaf0; }
.gt-meta { display: flex; justify-content: space-between; color: #7a6d5c; font-size: 9px; font-weight: 600; padding: 0 22px 6px; }
.gt-board { display: grid; gap: 4px; justify-content: center; margin-bottom: 10px; }
.gt-row { display: grid; grid-template-columns: repeat(5, 30px); gap: 4px; }
.gt-row i { height: 30px; display: grid; place-items: center; font: 800 14px/1 system-ui, sans-serif; font-style: normal; border-radius: 4px; border: 1.5px solid #9c8c71; background: #fffaf0; }
.gt-row i.h { background: #36744a; border-color: #36744a; color: #fffdf8; }
.gt-row i.n { background: #c08a26; border-color: #c08a26; color: #2f261d; }
.gt-row i.x { background: #8d8273; border-color: #8d8273; color: #fffdf8; }
.gt-verse { background: #fffaf0; border-left: 3px solid #c08a26; border-radius: 6px; padding: 7px 9px; font: italic 10px/1.4 "Iowan Old Style", Palatino, Georgia, serif; }
.gt-verse small { display: block; font: 700 9px/1 system-ui, sans-serif; color: #7b2d26; margin-top: 5px; }
@media (max-width: 560px) { .gt-media { min-height: 520px; padding-bottom: 40px; } }
