/* rj2.pl — styles. Fonts: IBM Plex (SIL OFL 1.1, fonts/OFL.txt), served from this site. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-mono-400-latin.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: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-mono-500-latin.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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-sans-var-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/plex-sans-var-latin.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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-sans-var-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-sans-var-latin.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: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex-sans-var-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/plex-sans-var-latin.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: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-serif-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plex-serif-500-latin.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; }

/* Layout: one scrolling page — portrait-led introduction, then short sections on a single 46rem column, hairline-separated */
:root {
  --bg: #ffffff;
  --surface: #f2f5f9;
  --ink: #18202c;
  --muted: #566274;
  --line: #dbe2eb;
  --accent: #2f62a8;
  --accent-soft: #e4edf8;
  --font-display: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.375rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11161e; --surface: #182029; --ink: #e6ebf2; --muted: #9aa7b8;
    --line: #273241; --accent: #8fb6ec; --accent-soft: #1d2b3e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11161e; --surface: #182029; --ink: #e6ebf2; --muted: #9aa7b8;
  --line: #273241; --accent: #8fb6ec; --accent-soft: #1d2b3e; color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* top bar */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.7rem;
}
.mark { font-family: var(--font-mono); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.04em; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: var(--step--1); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* intro */
.intro { padding-block: 3.5rem 2.75rem; }
.intro .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2.5rem; align-items: start;
}
.intro .text { min-width: 0; }
.intro .wrap.tagrow { display: block; }
.portrait {
  width: 11rem; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 6px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
h1 {
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-3);
  line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.35rem; text-wrap: balance;
}
.role { margin: 0 0 1.4rem; color: var(--muted); font-size: var(--step-1); }
.lead { margin: 0 0 1.6rem; max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex; align-items: center; padding: 0.55rem 1.1rem; border-radius: 4px;
  font-weight: 500; font-size: var(--step--1); text-decoration: none;
  background: var(--accent); color: var(--bg); border: 1px solid var(--accent);
}
.button.quiet { background: transparent; color: var(--accent); }
.button:hover { text-decoration: none; filter: brightness(1.08); }

.tags {
  list-style: none; margin: 2.25rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted);
}
.tags li { padding: 0.15rem 0.55rem; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }

/* sections */
section { border-top: 1px solid var(--line); padding-block: 2.75rem; scroll-margin-top: 3.5rem; }
h2 {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--step--1);
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 0 0 1.4rem;
}
h3 { font-size: var(--step-0); font-weight: 600; margin: 0 0 0.2rem; }
p { margin: 0 0 1rem; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.25rem; }
.services div { min-width: 0; }
.services p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.sectors { margin: 0; display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.1rem 2rem; }
.sectors dt { font-weight: 600; }
.sectors dd { margin: 0; color: var(--muted); min-width: 0; }
.more { margin: 1.6rem 0 0; font-size: var(--step--1); }

.case {
  background: var(--accent-soft); border-radius: 6px; padding: 1.6rem 1.75rem;
}
.case + .case { margin-top: 1.25rem; }
.case h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.25; margin-bottom: 0.8rem; text-wrap: balance; }
.case ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.case li { margin-bottom: 0.45rem; }
.case .note { margin: 0; color: var(--muted); font-size: var(--step--1); }

.work { margin: 0; padding-left: 1.1rem; }
.work li { margin-bottom: 0.4rem; }

.contact { margin: 0; display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 0.5rem 1.5rem; }
.contact dt { color: var(--muted); font-size: var(--step--1); padding-top: 0.15rem; }
.contact dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.contact .mono { font-family: var(--font-mono); font-size: 0.95rem; }

footer { border-top: 1px solid var(--line); padding-block: 1.6rem 2.5rem; color: var(--muted); font-size: var(--step--1); }
footer p { margin: 0; }
footer a { color: inherit; }
footer a:hover { color: var(--accent); }

.doc { border-top: 0; }
.doc h1 { font-size: var(--step-2); margin-bottom: 1.4rem; }
.doc h3 { margin-top: 1.6rem; }
.doc p { max-width: 68ch; }
.doc .note { margin-top: 2rem; color: var(--muted); font-size: var(--step--1); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .intro { padding-block: 2rem 2rem; }
  .intro .wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .portrait { width: 8.5rem; order: -1; }
  :root { --step-3: 2rem; }
  .services { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .sectors dd { margin-bottom: 1rem; }
  .nav { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
