/* ════════════════════════════════════════════════════════════════════
   the01company — landing
   Aesthetic: engineering document / technical drawing. Warm paper white,
   hairline rules, monospace throughout, one signal-orange accent used
   sparingly. Light only, on purpose.

   Two accent tokens, not one: signal orange is vivid but only reaches
   2.94:1 against paper, so it is confined to fills (where dark ink sits
   on top at 6.02:1). Anything that is actually *text* uses --accent,
   a deeper burnt orange at 5.47:1 — AA even at the 10px eyebrow size,
   and with enough headroom to stay AA when it sits on its own 10% tint.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #faf9f7;  /* warm paper, not clinical #fff */
  --bg-lift:   #f1efea;
  --fg:        #14130f;  /* 17.67:1 */
  --fg-dim:    #4a4741;  /*  8.80:1 */
  --fg-faint:  #6b675f;  /*  5.35:1 */
  --rule:      rgba(20, 19, 15, 0.16);
  --rule-soft: rgba(20, 19, 15, 0.09);
  --accent:        #b83a05;  /* text-safe, 5.47:1 */
  --accent-bright: #ff5c1a;  /* fills only */
  --accent-sm: rgba(184, 58, 5, 0.10);

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wide: 'Martian Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: clamp(0.875rem, 0.82rem + 0.22vw, 1rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--bg);
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* ── Atmosphere: hairline column rules + film grain ─────────────────── */

.rules {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.rules i { border-left: 1px solid var(--rule-soft); }
.rules i:first-child { border-left-color: transparent; }

@media (max-width: 720px) {
  .rules { grid-template-columns: repeat(2, 1fr); }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Shell ──────────────────────────────────────────────────────────── */

.site-head,
main,
.site-foot {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.25rem, 3vw, 2rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.brand__mark {
  font-family: var(--wide);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--bg);
  background: var(--fg);
  padding: 0.28rem 0.4rem;
  line-height: 1;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.brand:hover .brand__mark { background: var(--accent); color: var(--bg); }
.brand__name {
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
}

.head-right {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.langs {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  border: 1px solid var(--rule);
}
.langs li + li { border-left: 1px solid var(--rule); }
.langs a {
  display: block;
  padding: 0.3rem 0.55rem;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.langs a:hover { color: var(--fg); }
.langs a[aria-current] { color: var(--accent); background: var(--accent-sm); }

@media (max-width: 560px) {
  .head-cta { display: none; }
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  --btn-pad: 0.7rem 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--btn-pad);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--rule);
  position: relative;
  transition: color 0.3s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--solid {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--fg);
  font-weight: 600;
}
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.btn--ghost { color: var(--fg-dim); }
.btn--ghost:hover { color: var(--fg); border-color: var(--fg-faint); background: var(--bg-lift); }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3rem, 11vh, 7rem) clamp(3rem, 9vh, 6rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--wide);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.75rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.status__dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(184, 58, 5, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(184, 58, 5, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 58, 5, 0); }
}

.h1 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.1rem, 1.1rem + 4.6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}
.h1 span { display: block; }
.h1 .accent { color: var(--accent); }

.caret {
  display: inline-block;
  width: 0.5em;
  height: 0.78em;
  background: var(--accent);
  margin-left: 0.14em;
  vertical-align: baseline;
  translate: 0 0.06em;
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.lead {
  max-width: 62ch;
  color: var(--fg-dim);
  font-size: clamp(0.9375rem, 0.88rem + 0.3vw, 1.0625rem);
  line-height: 1.72;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.cta-row--lg { margin-top: clamp(2rem, 4vw, 2.75rem); }

.prompt {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.75rem;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}
.prompt__sign { color: var(--accent); }

/* ── Stats ──────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.5rem);
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat__value {
  display: block;
  font-family: var(--wide);
  font-weight: 700;
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.stat__label {
  display: block;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--fg-faint);
}

@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}

/* ── Sections ───────────────────────────────────────────────────────── */

.section { padding-block: clamp(4rem, 12vh, 8rem); }

.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
@media (max-width: 880px) {
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
}

.section__lead {
  color: var(--fg-dim);
  max-width: 46ch;
  line-height: 1.72;
}

.eyebrow {
  font-family: var(--wide);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.15rem;
}
.eyebrow span { color: var(--fg-faint); }

.h2 {
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.h2--tight { max-width: 12ch; }
.h2--display { font-size: clamp(1.875rem, 1.2rem + 3.2vw, 4rem); letter-spacing: -0.045em; }

/* ── Service cards ──────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem) clamp(1.75rem, 3.5vw, 2.5rem);
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.4s var(--ease);
}
.card:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 900px) {
  .card { border-left: 0; padding-left: 0; }
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover { background: var(--bg-lift); }
.card:hover::before { transform: scaleX(1); }

.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.card__num {
  font-family: var(--wide);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
}
.card__key {
  font-family: var(--wide);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.card__title {
  font-weight: 600;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  letter-spacing: -0.025em;
  line-height: 1.24;
  margin-bottom: 0.875rem;
}
.card__body {
  color: var(--fg-dim);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.tags li {
  font-size: 0.6875rem;
  color: var(--fg-faint);
  border: 1px solid var(--rule-soft);
  padding: 0.2rem 0.5rem;
}

/* ── Process track ──────────────────────────────────────────────────── */

.track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
@media (max-width: 900px) { .track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .track { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 2rem clamp(1rem, 2vw, 1.75rem) 0 0;
  border-top: 1px solid var(--rule);
}
.step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.step__marker {
  display: block;
  font-family: var(--wide);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--fg-faint);
  margin-bottom: 0.875rem;
}
.step__title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.step__body {
  color: var(--fg-dim);
  font-size: 0.8125rem;
  line-height: 1.68;
  padding-bottom: 2rem;
}

/* ── About ──────────────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }

.about__aside { position: sticky; top: 2rem; align-self: start; }
@media (max-width: 880px) { .about__aside { position: static; } }

.about__body p {
  color: var(--fg-dim);
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.78;
  max-width: 60ch;
}
.about__body p + p { margin-top: 1.5rem; }
.about__body p:first-child { color: var(--fg); }

/* ── Contact ────────────────────────────────────────────────────────── */

.contact {
  border-top: 1px solid var(--rule);
  padding-top: clamp(3rem, 8vh, 5.5rem);
}
.contact__body {
  color: var(--fg-dim);
  max-width: 54ch;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
  line-height: 1.74;
  margin-top: 1.5rem;
}
.contact__mail {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.8125rem;
  color: var(--fg-faint);
}
.contact__mail a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact__mail a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  border-top: 1px solid var(--rule);
  padding-block: clamp(1.5rem, 3vw, 2rem);
  margin-top: clamp(2rem, 6vw, 4rem);
  font-size: 0.75rem;
  color: var(--fg-faint);
}
.foot__brand { color: var(--fg-dim); }

/* ── Load reveal ────────────────────────────────────────────────────── */
/* Content is visible by default; the animation is layered on only where
   motion is welcome, so no-JS and reduced-motion visitors never see a
   blank hero. */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.85s var(--ease) both;
    animation-delay: var(--d, 0ms);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .status__dot, .caret { animation: none; }
  .btn:hover { transform: none; }
}
