/* ---------- Outfit (self-hosted) ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/outfit-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: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/outfit-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f5f1ea;
  --bg-soft: #ede8df;
  --bg-card: #fbf8f2;
  --fg: #0e0d0a;
  --fg-soft: #1c1a16;
  --muted: #6e6860;
  --muted-soft: #9c958a;
  --rule: #d9d2c2;
  --rule-strong: #2a2722;
  --accent: #c84b1e;

  --max-w: 1120px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --r-md: 12px;
  --r-lg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dt,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Nav ---------- */
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-logo {
  border-radius: 6px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1rem;
}

.nav-contact {
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-contact:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* ---------- Layout ---------- */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.012em;
}

.hero-lede {
  font-size: 1rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.6;
}

/* ---------- Hero schema (umbrella) ---------- */
.hero-schema {
  margin: 0;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.schema-root {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 10px;
}

.schema-root .schema-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 600;
}

.schema-root .schema-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
}

.schema-arrow {
  color: var(--muted-soft);
  font-size: 0.95rem;
  line-height: 1;
}

.schema-branches {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.schema-branches li {
  border-bottom: 1px solid var(--rule);
}

.schema-branches li:last-child {
  border-bottom: none;
}

.schema-branches a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  transition: background 160ms ease, color 160ms ease;
}

.schema-branches a:hover {
  background: var(--bg-soft);
  color: var(--fg);
}

.schema-arrow-link {
  margin-left: auto;
  color: var(--muted-soft);
  font-size: 0.95rem;
  transition: transform 200ms ease, color 160ms ease;
}

.schema-branches a:hover .schema-arrow-link {
  transform: translateX(3px);
  color: var(--fg);
}

.schema-num {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(2.5rem, 4vw, 3.75rem) 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
  max-width: 60ch;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-head p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Previously-at strip ---------- */
.prev {
  border-top: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.prev-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.prev-logos li {
  display: flex;
  align-items: center;
  height: 28px;
}

.prev-logos img {
  max-height: 28px;
  max-width: 130px;
  width: auto;
  height: auto;
  opacity: 0.42;
  transition: opacity 200ms ease;
}

.prev-logos li:hover img {
  opacity: 0.75;
}

/* ---------- Services grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 160ms ease, transform 200ms ease, box-shadow 220ms ease;
}

.tile:hover {
  border-color: var(--fg);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -22px rgba(14, 13, 10, 0.35);
}

.tile-num {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--muted-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tile h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.tile p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Products panel (dark) ---------- */
.section-products {
  padding: clamp(2rem, 3vw, 3rem) 0;
}

.panel {
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 100%;
}

.panel .kicker-light {
  color: var(--muted-soft);
}

.panel h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 22ch;
}

.panel p {
  font-size: 1rem;
  color: rgba(245, 241, 234, 0.78);
  line-height: 1.6;
  max-width: 60ch;
}

.panel-note {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
  color: var(--muted-soft) !important;
  letter-spacing: 0.02em;
}

/* ---------- Contact ---------- */
.section-contact {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  width: 100%;
  max-width: 460px;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.contact-cta:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.contact-arrow {
  font-size: 1.1em;
  transition: transform 200ms ease;
}

.contact-cta:hover .contact-arrow {
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--rule-strong);
  background: var(--fg);
  color: var(--bg);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x) clamp(1.5rem, 3vw, 2rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-brand .brand-logo {
  margin-top: 2px;
}

.footer-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--bg);
  margin-bottom: 0.25rem;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--muted-soft);
  line-height: 1.55;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted-soft);
}

.footer-nav a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-nav a:hover {
  color: var(--bg);
  border-bottom-color: var(--bg);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem var(--pad-x) 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Legal pages ---------- */
.legal-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.legal-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}

.legal-hero .kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.legal-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.legal-body {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.prose-legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--fg);
}

.prose-legal h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-top: 2rem;
  margin-bottom: 0.1rem;
}

.prose-legal h2:first-child {
  margin-top: 0;
}

.prose-legal a {
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  transition: border-color 160ms ease;
}

.prose-legal a:hover {
  border-bottom-color: var(--fg);
}

.prose-legal strong {
  font-weight: 600;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1.1rem;
  list-style: disc;
}

.legal-list li::marker {
  color: var(--muted-soft);
}

/* ---------- Blog ---------- */
.blog-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.blog-list-empty {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 2rem 0;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.4rem;
  color: inherit;
  transition: border-color 160ms ease, transform 200ms ease, box-shadow 220ms ease;
}

.blog-card:hover {
  border-color: var(--fg);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -22px rgba(14, 13, 10, 0.35);
}

.blog-card-meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-card-cat {
  color: var(--accent);
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--muted-soft);
  font-variant-numeric: tabular-nums;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.blog-card-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.blog-card-author {
  font-size: 0.8rem;
  color: var(--muted-soft);
  margin-top: 0.15rem;
}

/* ---------- Single post ---------- */
.post-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.post-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--rule);
}

.post-hero .kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent);
}

.post-title {
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.post-author {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.post-meta {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.post-meta .post-meta-sep {
  margin: 0 0.55rem;
  color: var(--muted-soft);
}

.post-body {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2rem);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--fg);
}

.post-body > * + * {
  margin-top: 1rem;
}

.post-body h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
}

.post-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
}

.post-body p {
  font-size: 1rem;
  line-height: 1.75;
}

.post-body a {
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  transition: border-color 160ms ease;
}

.post-body a:hover {
  border-bottom-color: var(--fg);
}

.post-body strong {
  font-weight: 600;
}

.post-body em {
  font-style: italic;
}

.post-body ul,
.post-body ol {
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li::marker {
  color: var(--muted-soft);
}

.post-body code {
  padding: 0.12rem 0.4rem;
  background: var(--rule);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.post-body pre {
  position: relative;
  background: var(--fg);
  color: var(--bg);
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
  margin-top: 1.25rem;
}

.post-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.code-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(245, 241, 234, 0.55);
  background: transparent;
  border: 1px solid rgba(245, 241, 234, 0.18);
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.code-copy svg {
  display: block;
}

.post-body pre:hover .code-copy,
.code-copy:focus-visible {
  opacity: 1;
}

.code-copy:hover {
  color: rgba(245, 241, 234, 0.95);
  border-color: rgba(245, 241, 234, 0.42);
  background: rgba(245, 241, 234, 0.06);
}

.code-copy.copied {
  color: rgba(245, 241, 234, 0.95);
  border-color: rgba(245, 241, 234, 0.42);
  opacity: 1;
}

.post-body blockquote {
  margin: 1.25rem 0 1.25rem;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--muted-soft);
  color: var(--muted);
}

.post-body blockquote p {
  margin: 0;
}

/* ---------- Callouts (note / tip / warning / danger) ---------- */
.post-body .admonition {
  --callout-stripe: var(--muted-soft);

  margin: 1.5rem 0;
  padding: 0.05rem 0 0.05rem 1rem;
  border-left: 3px solid var(--callout-stripe);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.post-body .admonition > * + * {
  margin-top: 0.5rem;
}

.post-body .admonition p {
  margin: 0;
}

.post-body .admonition-title {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--callout-stripe);
}

.post-body .admonition.note    { --callout-stripe: #6f7a86; }
.post-body .admonition.tip     { --callout-stripe: #4f7a4a; }
.post-body .admonition.warning { --callout-stripe: var(--accent); }
.post-body .admonition.danger  { --callout-stripe: #a83b2a; }

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 1.5rem auto;
}

.post-body iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--r-md);
  margin: 1.75rem 0;
  background: #000;
}

.post-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin: 1.25rem 0;
}

.post-body th,
.post-body td {
  text-align: center;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.post-body th {
  font-weight: 600;
  color: var(--fg);
}

.post-footer {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-tag {
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.back-to-blog {
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: color 160ms ease, border-color 160ms ease;
}

.back-to-blog:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* ---------- Team ---------- */
.team-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.team-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.team-hero .kicker {
  margin-bottom: 0.5rem;
}

.team-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.team-lede {
  font-size: 1rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.65;
}

.team-meta {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 0.4rem;
}

.team-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2.75rem, 5vw, 3.75rem);
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.team-loading,
.team-empty {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
}

.team-photo {
  position: relative;
  width: clamp(124px, 18vw, 156px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  margin-bottom: 1.1rem;
  transition: border-color 200ms ease, box-shadow 240ms ease;
}

.team-member:hover .team-photo {
  border-color: var(--fg);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--rule);
}

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.2) saturate(0.92);
  transition: filter 280ms ease, transform 380ms ease;
}

.team-member:hover .team-photo img {
  filter: none;
  transform: scale(1.04);
}

.team-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--bg-soft) 0%, var(--rule) 100%);
  color: var(--muted-soft);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  user-select: none;
}

.team-role {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.team-name {
  font-size: clamp(1.3rem, 2.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

.team-profession {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 38ch;
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.005em;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.team-link:hover {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.team-link-arrow {
  transition: transform 200ms ease;
  font-size: 0.95em;
}

.team-link:hover .team-link-arrow {
  transform: translateX(2px);
}

.team-divider {
  width: 32px;
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.team-talks {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.team-talks-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 600;
  margin: 0 0 1rem;
  text-align: center;
}

.talk-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.talk-row {
  display: grid;
  grid-template-columns: 5.25em 5em minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.15rem;
  align-items: baseline;
  font-size: 0.9rem;
  line-height: 1.45;
}

.talk-date {
  color: var(--muted-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  white-space: nowrap;
}

.talk-role {
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

.talk-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.talk-title {
  color: var(--fg);
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

a.talk-title {
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

a.talk-title:hover {
  border-bottom-color: var(--fg);
}

.talk-arrow {
  font-size: 0.85em;
  color: var(--muted);
  transition: transform 200ms ease;
}

a.talk-title:hover .talk-arrow {
  transform: translateX(2px);
  color: var(--fg);
}

.talk-meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ---------- Brand kit ---------- */
.brand-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.brand-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.brand-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.brand-lede {
  font-size: 1rem;
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.65;
}

.brand-lede a {
  color: var(--fg);
  border-bottom: 1px solid var(--rule);
  transition: border-color 160ms ease;
}

.brand-lede a:hover {
  border-bottom-color: var(--fg);
}

.brand-section {
  padding: clamp(2rem, 3.5vw, 3rem) 0;
  border-top: 1px solid var(--rule);
}

.brand-section-end {
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.85rem;
}

.brand-grid-social {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
}

.logo-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 100%;
}

.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  height: 200px;
}

.logo-preview img {
  max-height: 96px;
  max-width: 80%;
  width: auto;
  height: auto;
}

.logo-preview-light {
  background: #f5f1ea;
}

.logo-preview-dark {
  background: #14110d;
}

.logo-preview-wide {
  padding: 2rem 1.5rem;
}

.logo-preview-edge {
  padding: 0;
  height: auto;
}

.logo-preview-edge img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
}

.logo-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

.logo-meta {
  padding: 1rem 1.1rem 1.15rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo-meta h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.logo-meta > p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.logo-files {
  margin-top: 0.5rem !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.logo-files a,
.type-files a {
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.logo-files a:hover,
.type-files a:hover {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.palette-themes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.palette-theme {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 1.1rem 1.1rem 1.25rem;
}

.palette-theme-dark {
  background: #14110d;
  border-color: #2f2a22;
  color: #f0ead8;
}

.palette-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.palette-theme-dark .palette-label {
  color: #79716a;
}

.swatches {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.swatch {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.7rem;
  align-items: center;
}

.swatch-chip {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.swatch-meta {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr;
  gap: 0.6rem 1rem;
  align-items: baseline;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.swatch-hex {
  letter-spacing: 0.06em;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, "Roboto Mono", Menlo, monospace;
  font-size: 0.78rem;
}

.swatch-role {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.palette-theme-dark .swatch-role {
  color: #a39c8e;
}

.swatch-accent .swatch-hex {
  color: var(--accent);
}

.palette-theme-dark .swatch-accent .swatch-hex {
  color: #e26a3f;
}

.type-specimens {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.type-specimen {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}

.type-specimen:last-child {
  border-bottom: 0;
}

.type-line {
  color: var(--fg);
  line-height: 1.15;
}

.type-display {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.type-h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.type-tagline {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.type-body {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 60ch;
}

.type-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted-soft);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.type-meta span:first-child {
  color: var(--muted);
  font-weight: 600;
}

.type-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.brand-rules {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 64ch;
}

.brand-rules li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 1rem;
  border-left: 2px solid var(--rule);
}

.brand-rules strong {
  color: var(--fg);
  font-weight: 600;
}

.press-quote {
  margin: 0;
  padding: 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--muted-soft);
  border-radius: var(--r-md);
  max-width: 72ch;
}

.press-quote p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg-soft);
}

@media (max-width: 720px) {
  .brand-grid,
  .palette-themes {
    grid-template-columns: 1fr;
  }
}

/* ---------- Dark mode ---------- */
html.dark {
  --bg: #14110d;
  --bg-soft: #1c1813;
  --bg-card: #221d17;
  --fg: #f0ead8;
  --fg-soft: #d8d2c0;
  --muted: #a39c8e;
  --muted-soft: #79716a;
  --rule: #2f2a22;
  --rule-strong: #3d3528;
  --accent: #e26a3f;

  color-scheme: dark;
}

html.dark .panel {
  background: var(--bg-card);
  color: var(--fg);
  border: 1px solid var(--rule);
}

html.dark .panel p {
  color: var(--muted);
}

html.dark .panel .panel-note {
  color: var(--muted-soft) !important;
}

html.dark .footer {
  background: var(--bg-soft);
  color: var(--fg);
  border-top: 1px solid var(--rule);
}

html.dark .footer-name {
  color: var(--fg);
}

html.dark .footer-meta,
html.dark .footer-nav {
  color: var(--muted);
}

html.dark .footer-nav a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

html.dark .footer-bottom {
  color: var(--muted-soft);
  border-top: 1px solid var(--rule);
}

html.dark .post-body pre {
  background: #0a0907;
  color: #ece6d4;
  border: 1px solid var(--rule);
}

html.dark .post-body .admonition.note   { --callout-stripe: #8993a0; }
html.dark .post-body .admonition.tip    { --callout-stripe: #7fb088; }
html.dark .post-body .admonition.danger { --callout-stripe: #dc6a52; }

html.dark .tile:hover,
html.dark .blog-card:hover {
  box-shadow: 0 12px 28px -22px rgba(0, 0, 0, 0.65);
}

html.dark .team-photo img {
  filter: grayscale(0.28) saturate(0.88) brightness(0.95);
}

html.dark .team-member:hover .team-photo img {
  filter: brightness(0.98);
}

html.dark .team-member:hover .team-photo {
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--rule-strong);
}

html.dark .team-link {
  background: var(--bg-soft);
}

html.dark .team-link:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

html:not(.dark) .brand-logo-dark {
  display: none;
}

html.dark .brand-logo-light {
  display: none;
}

html.dark .prev-logos img {
  filter: invert(1);
  opacity: 0.5;
}

html.dark .prev-logos li:hover img {
  opacity: 0.78;
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font: inherit;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--fg);
  background: var(--bg-card);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

.theme-toggle .theme-icon {
  display: none;
}

.theme-toggle[data-theme="auto"] .theme-icon-auto,
.theme-toggle[data-theme="light"] .theme-icon-light,
.theme-toggle[data-theme="dark"] .theme-icon-dark {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-schema {
    order: 2;
    max-width: 360px;
  }
}

@media (max-width: 540px) {
  .talk-row {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .talk-date {
    order: -1;
  }
  .talk-role {
    font-size: 0.65rem;
  }
}

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

  .nav {
    gap: 0.85rem;
  }

  .nav-contact {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .footer-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
