/* DataFluentix: one stylesheet, no build step. Dark theme follows prefers-color-scheme only. */

:root {
  /* layout: engineer's ledger — left-aligned editorial column + mono fact rail */
  --paper: #F3F6F7;      /* cool off-white, slight blue bias */
  --paper-2: #E9EEF0;    /* section band / card fill */
  --ink: #1B3A45;        /* slate ink (matches Jared's resume) */
  --ink-2: #4F6470;      /* muted text */
  --line: #CFD9DE;       /* hairlines */
  --accent: #14636B;     /* teal (resume teal) — links, CTA, the fluency line */
  --accent-ink: #FFFFFF; /* text on accent */
  --signal: #D98E2B;     /* amber — used ONCE: the resolved end of the fluency line */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --paper:#0F1C22; --paper-2:#152730; --ink:#E6EEF0; --ink-2:#9FB1B9; --line:#27404A; --accent:#3FB7C0; --accent-ink:#06282C; --signal:#E8A848; color-scheme: dark; }
}

/* Layout values (derived, not brand tokens). */
:root {
  --max: 1120px;
  --gutter: 16px;
  --rail: 15rem;
  --rail-gap: 3rem;
  --radius: 4px;
  --section-space: 4.5rem;
  /* Form field and secondary-button outline: >= 3:1 against --paper and --paper-2 in both themes. */
  --field-border: color-mix(in srgb, var(--ink-2) 80%, var(--paper));
}
@supports not (color: color-mix(in srgb, red, blue)) {
  :root { --field-border: var(--ink-2); }
}
@media (min-width: 480px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; --section-space: 6.5rem; }
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
}
@media (min-width: 720px) {
  body { font-size: 1.125rem; }
}
@media (prefers-color-scheme: dark) {
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
/* desktop / phone: 64/40, 36/28, 22/20, interpolated between 400px and 1120px viewports */
h1 { font-size: clamp(2.5rem, 1.6667rem + 3.3333vw, 4rem); line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.4722rem + 1.1111vw, 2.25rem); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 1.1806rem + 0.2778vw, 1.375rem); line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

/* Utilities */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.num {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Buttons: the only transition is the 150ms fill change. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.btn-primary { background-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background-color: var(--ink); color: var(--paper); }
.btn-secondary { background-color: transparent; color: var(--ink); border-color: var(--field-border); }
.btn-secondary:hover { background-color: var(--paper-2); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn[disabled] { cursor: progress; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "brand cta"
    "nav   nav";
  align-items: center;
  column-gap: 16px;
  padding-block: 14px 6px;
}

.brand { grid-area: brand; justify-self: start; border-radius: 2px; }
.brand img { height: 34px; width: auto; }

.header-cta { grid-area: cta; }

.site-nav { grid-area: nav; margin-top: 6px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 22px;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding-block: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease-out;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

@media (max-width: 359px) {
  .header-cta { display: none; }
}
@media (min-width: 960px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav cta";
    column-gap: 40px;
    min-height: 84px;
    padding-block: 0;
  }
  .brand img { height: 40px; }
  .site-nav { justify-self: end; margin-top: 0; }
  .nav-links { column-gap: 32px; }
}

/* Hero */
.hero { padding-block: 3rem 2.75rem; }
.hero .eyebrow { margin-bottom: 1.25rem; }

.hero-grid { display: grid; row-gap: 2.5rem; }

.lead {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: 1.125rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

/* Fact rail: big mono figure over a small mono label. */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.fact {
  padding: 0.875rem 0.875rem 1rem 0;
  border-bottom: 1px solid var(--line);
}
.fact:nth-child(even) {
  padding-left: 0.875rem;
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.fact dt {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fact dd {
  margin-top: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero-line { margin-top: 2.75rem; }

@media (min-width: 720px) {
  .lead { font-size: 1.25rem; line-height: 1.55; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact,
  .fact:nth-child(even) { padding: 0.875rem 1rem 1rem; border-left: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; border-left: 0; }
  .fact dt { font-size: 1.375rem; }
}
@media (min-width: 960px) {
  .hero { padding-block: 5.5rem 3.5rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 16rem;
    column-gap: 4rem;
    align-items: start;
  }
  .facts {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .fact,
  .fact:nth-child(even),
  .fact:first-child {
    padding: 1.125rem 0 1.125rem 1.5rem;
    border-left: 0;
  }
  .fact:first-child { padding-top: 0.25rem; }
  .fact:last-child { border-bottom: 0; }
  .fact dt { font-size: 1.625rem; }
  .hero-line { margin-top: 4rem; }
}

/* The fluency line: drawn once, used in the hero (wide and phone variants), the mark and the favicon. */
.fluency { width: 100%; height: auto; overflow: visible; }
.fluency--narrow { display: none; }
.fl-dots circle { fill: var(--ink-2); }
.fl-stroke { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fl-stop-accent { stop-color: var(--accent); }
.fl-stop-signal { stop-color: var(--signal); }

/* Keep the rendered stroke near 3-3.5px as the wide drawing scales down. */
@media (max-width: 1023px) {
  .fluency--wide .fl-stroke { stroke-width: 4.25; }
}
@media (max-width: 799px) {
  .fluency--wide .fl-stroke { stroke-width: 5.5; }
}
@media (max-width: 639px) {
  .fluency--wide { display: none; }
  .fluency--narrow { display: block; max-width: 32rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .fl-dots circle {
    opacity: 0;
    animation: fl-fade 480ms ease-out forwards;
  }
  .fl-dots circle:nth-child(2) { animation-delay: 45ms; }
  .fl-dots circle:nth-child(3) { animation-delay: 90ms; }
  .fl-dots circle:nth-child(4) { animation-delay: 135ms; }
  .fl-dots circle:nth-child(5) { animation-delay: 180ms; }
  .fl-dots circle:nth-child(6) { animation-delay: 225ms; }
  .fl-dots circle:nth-child(7) { animation-delay: 270ms; }
  .fl-dots circle:nth-child(8) { animation-delay: 315ms; }
  .fl-dots circle:nth-child(9) { animation-delay: 360ms; }
  .fl-dots circle:nth-child(10) { animation-delay: 405ms; }
  .fl-dots circle:nth-child(11) { animation-delay: 450ms; }
  .fl-dots circle:nth-child(12) { animation-delay: 495ms; }
  .fl-dots circle:nth-child(13) { animation-delay: 540ms; }
  /* pathLength="1": the dash covers the whole stroke; the gap is slightly longer so no round cap peeks out. */
  .fl-stroke {
    stroke-dasharray: 1 1.04;
    stroke-dashoffset: 1.02;
    animation: fl-draw 1.6s cubic-bezier(0.6, 0, 0.2, 1) 420ms forwards;
  }
  .nav-links a::after { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links a::after,
  .btn { transition: none; }
}
@keyframes fl-fade { to { opacity: 1; } }
@keyframes fl-draw { to { stroke-dashoffset: 0; } }

/* Sections: the ledger. Mono label in a left rail, content in the main column. */
.section {
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}

.ledger { display: grid; row-gap: 0.75rem; }
.section-body { margin-top: 1.75rem; }

@media (min-width: 960px) {
  .ledger {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--rail-gap);
    row-gap: 0;
    align-items: baseline;
  }
  .ledger > .eyebrow { grid-column: 1; }
  .ledger > :not(.eyebrow) { grid-column: 2; }
  .section-body { margin-top: 2.5rem; }
}

/* When to call */
.call-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.call-list li {
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

/* Services: one of two places with card styling. */
.services {
  display: grid;
  gap: 16px;
  list-style: none;
}
.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 1.0625rem; line-height: 1.6; }
@media (min-width: 720px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card { padding: 1.75rem; }
}

/* Approach: the one numbered sequence. */
.steps {
  list-style: none;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.step-n {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink-2);
}
.step-time { margin-top: 0.25rem; }
.step-body { margin-top: 0.75rem; max-width: 62ch; }
.engagement {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}
@media (min-width: 720px) {
  .step {
    grid-template-columns: 3rem 13rem minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: baseline;
  }
  .step-n { grid-row: auto; }
  .step-body { margin-top: 0; }
}

/* Results: figure | sentence ledger. */
.results {
  list-style: none;
  border-top: 1px solid var(--line);
}
.result {
  display: grid;
  row-gap: 0.375rem;
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--line);
}
.result-fig {
  font-family: var(--font-mono);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.result-text { max-width: 62ch; }
.result-src {
  margin-top: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
}
@media (min-width: 720px) {
  .result {
    grid-template-columns: 14rem minmax(0, 1fr);
    column-gap: 2rem;
    align-items: baseline;
  }
  .result-fig { font-size: 2.125rem; }
}

/* About */
.about-grid { display: grid; gap: 2rem; }
.portrait {
  display: grid;
  place-items: center;
  width: 240px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.about-text p { max-width: 62ch; }
.about-text p + p { margin-top: 1em; }
.about-facts {
  margin-top: 2rem;
  list-style: none;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.about-facts li {
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

/* Contact: the other place with card styling. */
.contact-intro { max-width: 60ch; }
.contact-grid { display: grid; gap: 2.5rem; margin-top: 2rem; }

.form,
.form-done {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.form { display: grid; gap: 1.25rem; }
.form[hidden],
.form-done[hidden] { display: none; }

.field-row { display: grid; gap: 1.25rem; }

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.field .optional { font-weight: 400; color: var(--ink-2); }

.input {
  display: block;
  width: 100%;
  padding: 0.6875rem 0.75rem;
  border: 1px solid var(--field-border);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
textarea.input { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--ink-2); opacity: 1; }
.input[aria-invalid="true"] {
  border: 2px solid var(--ink);
  padding: calc(0.6875rem - 1px) calc(0.75rem - 1px);
}

.field-error {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.field-error:empty { display: none; }

/* Honeypot: off-screen, out of the tab order and the accessibility tree. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Stays rendered (and so stays a live region) while empty. */
.form-error { font-size: 0.9375rem; line-height: 1.5; }
.form-error:not(:empty) {
  padding: 0.75rem 1rem;
  border: 1px solid var(--field-border);
  border-left: 3px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
}

.form-note { font-size: 0.9375rem; color: var(--ink-2); }
.form-consent {
  margin-top: -0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.form-done:focus { outline: none; }
.form-done:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-done-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1806rem + 0.2778vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
}

.direct {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.direct-list {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.direct-list li + li { margin-top: 0.5rem; }
.direct-email { font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }

@media (min-width: 640px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .form,
  .form-done { padding: 2rem; }
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: 3rem;
    align-items: start;
  }
  .direct {
    padding: 0.25rem 0 0 1.5rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* Footer */
.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; row-gap: 1.5rem; }
.footer-brand img { height: 32px; width: auto; }
.tagline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1806rem + 0.2778vw, 1.375rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.25rem;
  margin-top: 0.75rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.footer-meta li:not(:last-child)::after {
  content: "\00B7";
  content: "\00B7" / "";
  margin-inline: 0.6em;
}
/* Rows 2 and 3: the legal line and the independence note, full width under a hairline. */
.footer-legal {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.footer-legal .footer-meta { margin-top: 0; }
.footer-note {
  max-width: 72ch;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}
/* Until the whole legal line fits on one row, the copyright gets its own line and no trailing dot; on the
   narrowest phones it breaks between its two sentences rather than before the last word. */
@media (max-width: 719px) {
  .footer-legal li:first-child { flex-basis: 100%; text-wrap: balance; }
  .footer-legal li:first-child::after { content: none; }
}
@media (min-width: 960px) {
  .site-footer { padding-block: 4rem; }
  .footer-grid {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--rail-gap);
    align-items: start;
  }
  .footer-brand { padding-top: 0.125rem; }
  .footer-legal { grid-column: 1 / -1; margin-top: 1rem; }
}

/* Inner pages (privacy, terms, accessibility, 404): one readable column, in the ledger's main column on
   wide screens. Legal section headings use the h3 step of the scale: they label short sections. */
.page { padding-block: 3rem var(--section-space); }
.page-col { max-width: 68ch; }
.page-col > h1 + * { margin-top: 1.5rem; }
.page-col h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.25rem, 1.1806rem + 0.2778vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.page-col h2 + * { margin-top: 0.75rem; }
.page-col p + p { margin-top: 1em; }
.page-col ul {
  margin-top: 1em;
  list-style: none;
  border-top: 1px solid var(--line);
}
.page-col li {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
}
.page-col b { font-weight: 600; }
.page-col > p + .page-date { margin-top: 2.5rem; }
@media (min-width: 960px) {
  .page { padding-block: 5.5rem var(--section-space); }
}
