/* Plain-HTML pages (case studies, insights, home fallback). Mirrors the canvas design:
   a 1120px frame with vertical lines, full-bleed section rules, sticky nav, same type scale. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/Inter-400-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/JetBrainsMono-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/JetBrainsMono-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f8f9fa; --ink: #121417; --muted: #62666d; --line: #d7dade; --accent: #2340f5; --card: #fff;
  --frame: 1120px;
  --gutter: max(16px, calc((100vw - var(--frame)) / 2)); /* distance from viewport edge to frame line */
  --inset: 36px; /* content inset inside the frame, like the canvas */
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; font-family: Inter, system-ui, sans-serif; overflow-x: clip; }
html { scroll-padding-top: 96px; }

#static { position: relative; font-feature-settings: 'cv11', 'ss01'; }
/* Frame lines down the whole page */
#static::before {
  content: ''; position: fixed; z-index: 0; top: 0; bottom: 0; left: var(--gutter); right: var(--gutter);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); pointer-events: none;
}
#static > * { position: relative; z-index: 1; }

/* ---------- type ---------- */
#static h1, #static .s-h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 20px; }
#static h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 20px; }
#static h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.012em; font-weight: 600; margin: 4px 0 8px; }
#static p, #static li, #static dd { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0 0 12px; }
#static strong { color: var(--ink); font-weight: 600; }
#static .s-lead { font-size: 19px; line-height: 1.5; letter-spacing: -0.005em; }
#static .s-eyebrow, #static .s-meta, #static .s-org, #static .s-meta-muted, #static figcaption, #static .s-back, #static .s-link {
  font-family: var(--mono); font-size: 12px; line-height: 1.6;
}
#static .s-eyebrow, #static .s-meta, #static .s-accent { color: var(--accent); font-weight: 500; }
#static .s-org, #static .s-meta-muted, #static figcaption { color: var(--muted); }
#static .s-link { font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
#static a { color: var(--ink); }
#static .s-back { display: inline-block; margin-bottom: 28px; text-decoration: none; font-size: 13px; color: var(--ink); }
#static .s-back:hover, #static .s-link:hover { text-decoration: underline; text-underline-offset: 3px; }
#static .s-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- nav (same as the canvas: rule at 24px, 64px bar, divider + black button) ---------- */
#static .s-nav {
  position: sticky; top: 0; z-index: 5; margin-top: 24px; height: 64px;
  display: flex; align-items: center; gap: 24px;
  padding: 0 calc(var(--gutter) + 20px) 0 calc(var(--gutter) + 24px);
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
#static .s-brand { display: flex; gap: 10px; align-items: center; font-weight: 650; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
#static .s-nav nav { display: flex; gap: 40px; margin-left: auto; font-size: 14px; font-weight: 500; }
#static .s-nav nav a { text-decoration: none; }
#static .s-nav nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
#static .s-nav .s-btn-sm { margin-left: 64px; position: relative; }
#static .s-nav .s-btn-sm::before { content: ''; position: absolute; left: -20px; top: -12px; bottom: -12px; border-left: 1px solid var(--line); }

/* ---------- buttons ---------- */
#static .s-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
#static .s-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
}
#static .s-btn:hover { filter: brightness(1.15); }
#static .s-btn-sm { height: 40px; width: 136px; padding: 0; }
#static .s-btn-light { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
#static .s-btn-light:hover { filter: brightness(0.97); }

/* ---------- sections ---------- */
#static .s-sec { padding: 64px calc(var(--gutter) + var(--inset)); border-bottom: 1px solid var(--line); }
#static .s-flush { padding: 0 var(--gutter); } /* content touches the frame lines (grids, bands) */
#static .s-head { padding-top: 72px; padding-bottom: 56px; }
#static .s-head h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.04; }
#static .s-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; }
#static .s-split-wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
#static .s-split > h2 { margin: 0; }
#static .s-row { padding: 40px var(--inset); border-bottom: 1px solid var(--line); }
#static .s-row:last-child { border-bottom: 0; }

/* hero */
#static .s-hero { padding-top: 64px; padding-bottom: 64px; }
#static figure { margin: 0; }
#static figure img { width: 100%; height: auto; max-width: 388px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 14px; }

/* brands band */
#static .s-brands { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
#static .s-brands p { margin: 0 32px 0 0; }
#static .s-brands ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 48px; }
#static .s-brands li { color: #43474e; font-weight: 650; font-size: 17px; letter-spacing: -0.02em; margin: 0; }

/* grid cells with dividing lines (services, roles) */
#static .s-cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
#static .s-cells > * { padding: 40px var(--inset); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
#static .s-cells > *:nth-child(3n) { border-right: 0; }
#static .s-cells > *:nth-last-child(-n + 3):nth-child(3n + 1), #static .s-cells > *:nth-last-child(-n + 3):nth-child(3n + 1) ~ * { border-bottom: 0; }

/* stats band */
#static .s-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
#static .s-stats-3 { grid-template-columns: repeat(3, 1fr); }
#static .s-stats > div { padding: 40px var(--inset); border-right: 1px solid var(--line); }
#static .s-stats > div:last-child { border-right: 0; }
#static .s-stats dt { font-size: clamp(32px, 4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 14px; }
#static .s-stats-3 dt { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; }
#static .s-stats dd { margin: 0; }

/* cards */
#static .s-cards { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
#static .s-card { display: flex; flex-direction: column; background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 20px 24px 24px; text-decoration: none; margin: 0; }
#static a.s-card:hover { box-shadow: inset 0 0 0 1px var(--line), 0 6px 20px rgba(18, 20, 23, 0.06); }
#static .s-card-title { color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 40px; }
#static .s-recog .s-card { padding: 24px; justify-content: space-between; min-height: 168px; }
#static .s-work img { width: 100%; height: auto; margin: 0 0 20px; aspect-ratio: 290 / 154; object-fit: cover; border-radius: 8px; display: block; }
#static .s-work h3 { font-size: 18px; line-height: 1.35; flex: 1; margin-bottom: 20px; }
#static .s-dark { background: var(--ink); box-shadow: none; padding: 28px 24px 24px; }
#static .s-dark h3 { color: #fff; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
#static .s-dark p { color: #a9adb4; flex: 1; }
#static .s-dark .s-meta-muted { color: #8f949b; flex: 0; }
#static .s-dark .s-btn { width: 100%; }

/* case study screenshot */
#static .s-shot { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }

/* insights list + article */
#static .s-list { list-style: none; margin: 0; padding: 0; }
#static .s-list li { margin: 0; }
#static .s-list a { display: grid; text-decoration: none; }
#static .s-list a:hover h2 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
#static .s-list h2 { font-size: 28px; margin-bottom: 10px; }
#static .s-list li:not(:last-child) a { border-bottom: 1px solid var(--line); }
#static .s-prose { max-width: 680px; margin-left: calc(50% + 32px - var(--inset)); }
#static .s-prose p, #static .s-prose li { font-size: 17px; line-height: 1.65; color: #3f434a; }
#static .s-prose h2 { font-size: 26px; margin: 40px 0 12px; }
#static .s-prose h2:first-child { margin-top: 0; }
#static .s-prose ul { padding-left: 20px; margin: 0 0 16px; }
#static .s-plain { list-style: none; padding: 0; margin: 0; }
#static .s-plain li { margin-bottom: 16px; }

/* contact form (static version; the app styles its own) */
#static .cf { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
#static .cf-title { margin: 0 0 2px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
#static .cf label { display: flex; flex-direction: column; gap: 4px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
#static .cf input, #static .cf textarea { font: 400 15px/1.4 Inter, system-ui, sans-serif; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: var(--paper); resize: none; }
#static .cf input:focus, #static .cf textarea:focus { border-color: var(--accent); background: #fff; outline: none; }
#static .cf button { margin-top: 6px; height: 46px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: 600 14.5px/1 Inter, sans-serif; cursor: pointer; }

/* footer */
#static .s-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding-top: 44px; padding-bottom: 48px; }
#static .s-foot-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
#static .s-foot-brand p { margin: 0; }
#static .s-foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
#static .s-col-h { color: var(--ink); font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
#static .s-foot ul { list-style: none; padding: 0; margin: 0; }
#static .s-foot li { margin: 0 0 10px; font-size: 14.5px; font-weight: 450; }
#static .s-foot li a { color: var(--ink); text-decoration: none; }
#static .s-foot li a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- tablet / phone ---------- */
@media (max-width: 900px) {
  :root { --inset: 16px; }
  #static .s-nav { padding: 0 calc(var(--gutter) + 12px); gap: 12px; }
  #static .s-nav nav { display: none; }
  #static .s-nav .s-btn-sm { margin-left: auto; width: 100px; }
  #static .s-nav .s-btn-sm::before { display: none; }
  #static .s-sec { padding-top: 44px; padding-bottom: 44px; }
  #static .s-flush { padding-top: 0; padding-bottom: 0; }
  #static .s-split, #static .s-split-wide { grid-template-columns: 1fr; }
  #static .s-cells, #static .s-cards { grid-template-columns: 1fr; }
  #static .s-cells > * { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  #static .s-cells > *:last-child { border-bottom: 0 !important; }
  #static .s-stats { grid-template-columns: 1fr 1fr; }
  #static .s-stats > div { border-bottom: 1px solid var(--line); }
  #static .s-stats > div:nth-child(2n) { border-right: 0; }
  #static .s-stats-3 { grid-template-columns: 1fr; }
  #static .s-stats-3 > div { border-right: 0; }
  #static .s-prose { margin-left: 0; }
  #static .s-foot, #static .s-foot-cols { grid-template-columns: 1fr; }
  #static .s-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #static figure img { max-width: 100%; aspect-ratio: 356 / 300; }
}

/* small search-result illustration in the plain version */
#static .s-serp { background: var(--card); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); padding: 16px; margin: 20px 0; }
#static .s-serp-q { margin: 0 0 12px; padding: 10px 16px; border-radius: 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 15px; }
#static .s-serp-hit { position: relative; background: #f3f5ff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--accent); padding: 14px 16px; }
#static .s-serp-hit p { margin: 0; }
#static .s-serp-title { color: var(--accent) !important; font-size: 18px !important; font-weight: 500; margin-top: 6px !important; }
#static .s-serp-badge { position: absolute; right: 14px; top: 12px; background: var(--accent); color: #fff; border-radius: 12px; padding: 2px 10px; font: 500 11px/20px var(--mono); }

/* website development portfolio: live builds in browser frames */
#static .s-sites { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
#static .s-site { margin: 0; display: flex; flex-direction: column; min-width: 0; }
#static .s-site h2 { color: var(--ink); font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; margin: 2px 0 10px; }
#static .s-site .s-ctas { margin-top: auto; padding-top: 8px; }
#static .s-site-frame { display: block; margin-bottom: 20px; border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(18, 20, 23, 0.04); transition: box-shadow 0.2s, transform 0.2s; }
#static .s-site-frame:hover { box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px rgba(18, 20, 23, 0.1); transform: translateY(-2px); }
#static .s-site-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); }
#static .s-site-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
#static .s-site-bar span { flex: 1; min-width: 0; margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: var(--paper); font: 400 11px/1.4 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#static .s-site-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
@media (max-width: 900px) {
  #static .s-sites { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
#static .s-scrollcard { padding: 14px 14px 22px; min-width: 0; }
#static .s-scrollcard .s-site-frame { margin-bottom: 18px; }
#static .s-scrollcard > :not(.s-site-frame) { padding: 0 10px; }
#static .s-scroll { display: block; height: 230px; overflow: hidden; }
#static .s-scroll img { display: block; width: 100%; height: auto; aspect-ratio: auto; margin: 0; border-radius: 0; animation: s-scroll 26s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
#static .s-scrollcard:nth-child(2) .s-scroll img { animation-delay: -8s; }
#static .s-scrollcard:nth-child(3) .s-scroll img { animation-delay: -16s; }
#static .s-scrollcard:hover .s-scroll img { animation-play-state: paused; }
@keyframes s-scroll { 0%, 6% { transform: translateY(0); } 94%, 100% { transform: translateY(calc(-100% + 230px)); } }
@media (prefers-reduced-motion: reduce) { #static .s-scroll img { animation: none; } }

/* skills chips + about expertise list */
#static .s-chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; }
#static .s-chips li { margin: 0; padding: 5px 11px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.4; }
#static .s-expertise { margin: 4px 0 16px; }
#static .s-expertise li { margin-bottom: 10px; }
#static .s-cards > li { display: flex; margin: 0; }
#static .s-cards > li > .s-card { flex: 1; }
#static .s-cards > li .s-work h3 { flex: none; }
#static .s-cards > li .s-work p:not(.s-meta):not(.s-link) { flex: 1; }

/* article extras: subheadings and code samples (posts moved from WordPress) */
#static .s-prose h3 { font-size: 19px; margin: 24px 0 8px; }
#static .s-prose pre { margin: 0 0 16px; padding: 16px 18px; border-radius: 10px; background: #131518; color: #e0e2e5; overflow-x: auto; font: 400 13px/1.6 var(--mono); }
