/* llc.uruq.work — the only stylesheet.
 *
 * White and blue, linear, typographic. Boring base, two loud moments: the
 * oversized hero headline and the full-bleed navy section 03. See LLC-PLAN.md
 * §5 for the spec. No inline styles anywhere: the CSP's style-src 'self'
 * refuses them.
 */

/* ------------------------------------------------------------- fonts -- */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------ tokens -- */

:root {
  --bg: #ffffff;
  --bg-subtle: #f6f8fb;
  --ink: #0b1f3a;
  --ink-muted: #4a5a70;
  --accent: #1f4fff;
  --navy: #0b1f3a;
  --on-navy: #ffffff;
  --accent-on-navy: #7fa2ff;
  --rule: #d5dce6;
  --error: #b3261e;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --fs-hero: clamp(2.75rem, 9vw, 7.5rem);
  --fs-numeral: clamp(4rem, 14vw, 10rem);
  --fs-h2: clamp(1.75rem, 4vw, 2.75rem);
  --fs-lead: clamp(1.25rem, 2.2vw, 1.5rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  --measure: 68ch;
  --gutter: max(1rem, 4vw);
  --section-space: clamp(4rem, 12vh, 9rem);
}

/* ------------------------------------------------------------- reset -- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

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

input,
textarea,
button {
  font: inherit;
  color: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ------------------------------------------------------------- base --- */

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 3px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

.kicker {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ----------------------------------------------------------- header --- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.logo {
  display: inline-flex;
  color: var(--ink);
}
.logo svg {
  width: auto;
  height: clamp(1.25rem, 7vw, 2rem);
  fill: currentColor;
}

.nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}
.nav a {
  color: var(--ink);
  font-size: clamp(var(--fs-small), 4.5vw, 1.40625rem);
  font-weight: 600;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

/* ------------------------------------------------------------- hero --- */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 14vh, 8rem);
}

@media (min-width: 48rem) {
  .hero {
    min-height: calc(100svh - 4.5rem);
  }
}

.hero h1 {
  max-width: 14ch;
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

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

/* The hero's accent sentence always starts its own row. */
.hero h1 .accent {
  display: block;
}

.hero-lead {
  max-width: 40ch;
  margin-top: 2rem;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-muted);
}

.hero .btn {
  align-self: flex-start;
  margin-top: 2.5rem;
}

/* ------------------------------------------------------------ intro --- */

.intro {
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}
.intro p {
  max-width: var(--measure);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

/* --------------------------------------------------------- services --- */

.service {
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}

.service-num {
  margin-bottom: 1.5rem;
  font-size: var(--fs-numeral);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.service h2,
.process h2,
.contact h2 {
  max-width: var(--measure);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.service p:not(.service-num) {
  max-width: var(--measure);
  margin-top: 1.25rem;
}

/* Bold move 2: section 03 inverts, edge to edge. Only this one section.
 * --accent is illegible on navy (~2.9:1), so everything blue switches to
 * --accent-on-navy in here. */
.service--inverse {
  border-top: 0;
  background: var(--navy);
  color: var(--on-navy);
}
.service--inverse + .service {
  border-top: 0;
}
.service--inverse .service-num,
.service--inverse a {
  color: var(--accent-on-navy);
}
.service--inverse .kicker {
  color: var(--accent-on-navy);
}
.service--inverse :focus-visible {
  outline-color: var(--accent-on-navy);
}

/* ---------------------------------------------------------- process --- */

.process {
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}

.steps {
  max-width: var(--measure);
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  background: var(--bg-subtle);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.steps li {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 1.25rem 1.5rem;
}
.steps li + li {
  border-top: 1px solid var(--rule);
}
.step-name {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (min-width: 40rem) {
  .steps li {
    grid-template-columns: 8rem 1fr;
    align-items: baseline;
  }
}

/* ---------------------------------------------------------- contact --- */

.contact {
  padding-block: var(--section-space);
  border-top: 1px solid var(--rule);
}

.contact-lead {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

.contact form {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
  margin-top: 2.5rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field label {
  font-size: var(--fs-small);
  font-weight: 600;
}

.optional,
.field-hint {
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--bg-subtle);
  line-height: 1.4;
}
.field textarea {
  min-height: 10rem;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact form .btn {
  justify-self: start;
}

.form-status:empty {
  display: none;
}
.form-status {
  font-weight: 600;
}
.form-status[data-state="ok"] {
  color: var(--ink);
}
.form-status[data-state="error"] {
  color: var(--error);
}

.form-note {
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

/* ------------------------------------------------------ utility pages - */

.page {
  padding-block: var(--section-space);
}
.page h1 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.page p {
  max-width: var(--measure);
  margin-top: 1.25rem;
}

/* ----------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--rule);
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 2rem;
}

/* ---------------------------------------------------- progress rail --- */

/* Optional (LLC-PLAN.md §5.6): pure CSS scroll-driven animation, no JS.
 * Browsers without support never show it; reduced motion hides it. A top
 * bar on small screens, a vertical rail at the left edge on wide ones. */
.progress {
  display: none;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      z-index: 5;
      width: 100%;
      height: 3px;
      background: var(--accent);
      transform-origin: 0 0;
      animation: progress-x linear both;
      animation-timeline: scroll(root block);
      pointer-events: none;
    }

    @media (min-width: 64rem) {
      .progress {
        width: 3px;
        height: 100vh;
        animation-name: progress-y;
      }
    }
  }
}

@keyframes progress-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes progress-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
