/* 2Net Consulting site styles. Every colour, size, space and radius comes from tokens.css, generated from the 2Net Consulting design system. */
/* Layout: spec-sheet grid. Sections pair a margin label column with content; the home hero pairs the thesis with the "In production" status board. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; margin: 0; text-wrap: balance; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 50; background: var(--surface); padding: var(--space-2) var(--space-3); }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: max(var(--space-4), env(safe-area-inset-left, 0px));
  padding-right: max(var(--space-4), env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* Type styles from the design system */
.display-xl { font-size: clamp(37px, 1.5rem + 3.6vw, var(--fs-display-xl)); line-height: var(--lh-display-xl); font-weight: var(--fw-display-xl); }
.heading-1 { font-size: clamp(30px, 1.4rem + 2vw, var(--fs-heading-1)); line-height: var(--lh-heading-1); font-weight: var(--fw-heading-1); }
.heading-2 { font-size: clamp(21px, 1.1rem + 0.6vw, var(--fs-heading-2)); line-height: var(--lh-heading-2); font-weight: var(--fw-heading-2); }
.lede { font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--muted); max-width: var(--measure); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.label { font-family: var(--font-mono); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); }
.data { font-family: var(--font-mono); font-size: var(--fs-data); font-weight: var(--fw-data); font-variant-numeric: tabular-nums; }
.hl { background: linear-gradient(transparent 62%, var(--mark-hl) 62%); }

/* Header */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 22px; flex: none; }
.brand-name { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mark-a { fill: var(--accent); }
.mark-b { fill: currentColor; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .cta { background: var(--ink); color: var(--paper); padding: var(--space-2) 14px; border-radius: var(--radius-md); white-space: nowrap; }
.nav .cta:hover { background: var(--accent); color: var(--on-accent); }
.cta-short { display: none; }
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: var(--surface); }
.theme-switch button { display: grid; place-items: center; width: 30px; height: 28px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--muted); cursor: pointer; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.theme-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.subnav { display: none; }
@media (max-width: 820px) {
  .nav { gap: 10px; }
  .nav .page-link, .brand-sub { display: none; }
  .subnav { display: block; border-top: 1px solid var(--line); }
  .subnav .wrap { display: flex; gap: var(--space-5); padding-block: 10px; overflow-x: auto; }
  .subnav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
  .subnav a[aria-current="page"] { color: var(--accent); }
}
@media (max-width: 480px) { .cta-long { display: none; } .cta-short { display: inline; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: 600 1rem/1 var(--font-body);
  padding: 14px 20px; border-radius: var(--radius-md); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: background-color 0.15s, filter 0.15s;
}
.btn:hover { background: var(--surface); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more::after { content: " →"; }

/* Hero (home) */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-8); padding-block: 72px 64px; align-items: start; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); padding-block: 48px; } }
.hero-copy { display: grid; gap: var(--space-5); min-width: 0; }
.stack-line { display: flex; flex-wrap: wrap; gap: var(--space-2) 18px; font-family: var(--font-mono); font-size: var(--fs-label); color: var(--muted); }
.stack-line span::before { content: "▪ "; color: var(--accent); }

/* Page hero (inner pages) */
.page-hero .wrap { display: grid; gap: var(--space-4); padding-block: 64px 48px; border-bottom: 1px solid var(--line); }
.page-hero .label { color: var(--accent); }
.page-hero h1 { max-width: 20ch; }
@media (max-width: 900px) { .page-hero .wrap { padding-block: 44px 36px; } }

/* Status board */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-board); min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.board-head .label { color: var(--ink); }
.pulse { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--live); }
.dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--live); flex: none; }
.pulse .dot { animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--live); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse .dot { animation: none; } }
.board ul { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: var(--space-1) var(--space-3); padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.board li:last-child { border-bottom: 0; }
.board li .dot { align-self: center; }
.board .svc { font-weight: 600; }
.board .yr { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.board .meta { grid-column: 2 / 4; font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }
.board .meta a { font-family: var(--font-mono); font-size: 0.85rem; }
.board-foot { padding: var(--space-3) 18px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); background: var(--accent-soft); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Figures strip */
.figures { border-block: 1px solid var(--line); background: var(--surface); }
.figures .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); padding-block: var(--space-6); }
@media (max-width: 760px) { .figures .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fig b { display: block; font-family: var(--font-display); font-stretch: 112%; font-weight: var(--fw-figure); font-size: clamp(30px, 1.4rem + 2vw, var(--fs-figure)); line-height: var(--lh-figure); font-variant-numeric: tabular-nums; }
.fig span { display: block; margin-top: var(--space-2); }

/* Section frame */
.section .wrap { display: grid; grid-template-columns: var(--margin-column) minmax(0, 1fr); gap: var(--space-7); padding-block: var(--space-9); border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .section .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: var(--space-8); } }
.section-side { display: grid; gap: 10px; align-content: start; }
.section-side .label { color: var(--accent); }
.section-body { display: grid; gap: 36px; min-width: 0; }
.section-body > header { display: grid; gap: 14px; max-width: 46em; }

/* Offer cards */
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 760px) { .offers { grid-template-columns: minmax(0, 1fr); } }
.offer { background: var(--surface); padding: var(--space-6); display: grid; gap: 14px; align-content: start; grid-template-rows: auto auto 1fr auto; scroll-margin-top: 90px; }
.offer .for { font-size: 0.95rem; color: var(--accent); font-weight: 600; }
.offer ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.offer ul li::marker { color: var(--accent); }
.offer .how { color: var(--ink); font-size: 0.95rem; }
.terms { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 14px; border-top: 1px dashed var(--line); margin: 0; }
.terms dt { color: var(--muted); }
.terms div { display: flex; gap: var(--space-2); }
.terms dd { margin: 0; }

/* Offer index (home) */
.offer-index { display: grid; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.offer-index a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: var(--space-2) var(--space-5); padding: 18px var(--space-5); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); align-items: baseline; }
.offer-index a:last-child { border-bottom: 0; }
.offer-index a:hover { background: var(--accent-soft); }
.offer-index b { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.15rem; }
.offer-index .small { color: var(--muted); }
.offer-index .data { color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) { .offer-index a { grid-template-columns: minmax(0, 1fr); } }

/* Note */
.note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.note .label { padding-top: 3px; }
@media (max-width: 520px) { .note { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: step; padding: var(--space-4) var(--space-4) var(--space-4) 0; display: grid; gap: 6px; align-content: start; border-bottom: 1px solid var(--line); }
@media (min-width: 901px) { .steps li { border-bottom: 0; border-right: 1px solid var(--line); padding-left: var(--space-4); } .steps li:first-child { padding-left: 0; } .steps li:last-child { border-right: 0; } }
.steps li::before { content: "Step " counter(step); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent); }
.steps b { font-family: var(--font-display); font-stretch: 112%; font-size: 1.1rem; }
.steps span { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: var(--measure); }

/* Decision records */
.records { display: grid; gap: 20px; }
.record { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.record-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px var(--space-4); padding: 20px var(--space-5); border-bottom: 1px solid var(--line); }
.record-head .client { color: var(--muted); font-size: 0.95rem; }
.record-head .yr { color: var(--muted); }
.record dl { margin: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); }
.record dt, .record dd { padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--line); }
.record dt { padding-top: 15px; padding-right: 0; }
.record dd { margin: 0; padding-left: 0; }
.record dl > :nth-last-child(-n+2) { border-bottom: 0; }
.record dd.result { font-weight: 600; }
.chip { display: inline-block; font-family: var(--font-mono); font-size: 0.88rem; background: var(--accent-soft); padding: 1px 6px; border-radius: var(--radius-sm); white-space: nowrap; margin: 2px 2px 2px 0; }
@media (max-width: 600px) {
  .record dl { grid-template-columns: minmax(0, 1fr); }
  .record dt { border-bottom: 0; padding-bottom: 0; }
  .record dd { padding-left: var(--space-5); }
}
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filters button { font: 500 0.92rem var(--font-body); padding: 7px 14px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.count { color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } }
.prose { display: grid; gap: 18px; max-width: var(--measure); }
.principles { display: grid; border-top: 2px solid var(--ink); align-content: start; }
.principles div { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); display: grid; gap: var(--space-1); }
.principles b { font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.1rem; }
.principles span { color: var(--muted); font-size: 0.95rem; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); display: grid; place-items: center; color: var(--muted); text-align: center; padding: var(--space-5); }
.portrait svg { width: 72px; height: 46px; margin-bottom: var(--space-3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.career { border-collapse: collapse; width: 100%; min-width: 560px; }
.career th, .career td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.career th { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); font-weight: 400; }
.career tr:last-child td { border-bottom: 0; }
.career td.yr { font-family: var(--font-mono); font-size: var(--fs-data); white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.career td b { font-weight: 600; }
.list { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); }

/* Contact band */
.contact { background: var(--band); color: var(--on-band); scroll-margin-top: 70px; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-block: var(--space-9); align-items: end; }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-8); } }
.contact h2 { color: var(--on-band); }
.contact p { color: var(--band-muted); font-size: var(--fs-lede); line-height: 1.5; margin-top: 18px; max-width: 32em; }
.contact-card { display: grid; gap: var(--space-4); }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: var(--space-4) 18px; border: 1px solid var(--band-line); border-radius: var(--radius-lg); }
.email-row a { font-family: var(--font-mono); font-size: 1.15rem; color: var(--on-band); text-decoration: none; overflow-wrap: anywhere; flex: 1 1 auto; min-width: 0; }
.email-row a:hover { text-decoration: underline; }
.copy { font: 500 0.85rem var(--font-mono); background: var(--mark); color: var(--on-mark); border: 0; border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); cursor: pointer; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px var(--space-5); font-size: 0.95rem; }
.contact-links a { color: var(--on-band); }
.contact-links span { color: var(--band-muted); }

/* Footer */
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-5); padding-block: var(--space-5); font-size: 0.85rem; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-foot a { color: var(--muted); }

/* Phone refinements */
@media (max-width: 900px) { .portrait { max-width: 280px; aspect-ratio: 1 / 1; } }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table.career { min-width: 0; }
  .career thead { position: absolute; left: -9999px; }
  .career tr { display: grid; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); margin-bottom: var(--space-3); }
  .career td { display: block; padding: 0; border: 0; }
  .career td:last-child { color: var(--muted); font-size: var(--fs-small); }
}
