/* ------------------------------------------------------------------
   The Solo Developer LLC
   Dark industrial. Oversized type, outlined section numerals, one hot
   accent. Mobile first; the two-column sheet appears at 60rem.
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('/fonts/archivo-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: 'Martian Mono';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/martian-mono-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;
}

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

:root {
  color-scheme: dark;

  --void: #0b0d0f;
  --graphite: #16191d;
  --panel: #1c2026;
  --line: #2a2f36;
  --line-bright: #3c434c;
  --bone: #e8e6e1;
  --body: #a3abb3;
  --muted: #8a9299;
  --orange: #ff5a1f;
  --orange-soft: rgba(255, 90, 31, 0.13);

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gutter: 1.375rem;
  --wrap: 76rem;
  --measure: 38rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* --- links -------------------------------------------------------- */

a {
  color: var(--orange);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.18s var(--ease);
}

a:hover {
  color: var(--bone);
}

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

/* Parked above the viewport rather than at left:-9999px, which would widen
   the scrollable area on small screens. */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  transform: translateY(-200%);
  background: var(--orange);
  color: var(--void);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.skip-link:focus {
  transform: none;
}

/* --- shared layout ------------------------------------------------ */

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

.sec {
  position: relative;
  padding-block: 4.5rem;
  border-top: 1px solid var(--line);
}

.sec--alt {
  background: var(--graphite);
}

.sec__body > * + * {
  margin-top: 1.25rem;
}

.sec__body p {
  max-width: var(--measure);
  color: var(--body);
}

.sec__body .lead {
  color: var(--bone);
}

/* --- section headers ---------------------------------------------- */

.sec__head {
  margin-bottom: 2.25rem;
}

.sec__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(3.25rem, 13vw, 6rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: var(--line-bright);
  user-select: none;
}

@supports (-webkit-text-stroke: 1px red) {
  .sec__num {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--line-bright);
  }
}

.sec__title {
  font-size: clamp(1.625rem, 5.5vw, 2.5rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.sec__bar {
  display: block;
  width: 3.5rem;
  height: 4px;
  background: var(--orange);
  margin-top: 1.125rem;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 5rem 4rem;
  border-top: 0;
}

/* Machined grid, faded out toward the edges. Decorative only. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(232, 230, 225, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 230, 225, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 18% 32%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 70% at 18% 32%, #000 15%, transparent 72%);
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 11.5vw, 6.5rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero__bar {
  display: block;
  width: 6rem;
  height: 5px;
  background: var(--orange);
  margin-top: 1.75rem;
}

.hero .lead {
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--body);
  max-width: 36rem;
  margin-top: 1.75rem;
}

/* --- the phone ---------------------------------------------------- */

.contact {
  font-style: normal;
  position: relative;
  margin-top: 2.75rem;
}

/* Heat behind the number. Sits above the section background, under the text,
   so it works in every section rather than only over the hero. */
.contact::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.25rem;
  width: min(42rem, 165%, calc(100vw - 1rem));
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%) translateY(1rem);
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact > * {
  position: relative;
  z-index: 1;
}

.contact__phone {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.375rem, 7vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--orange);
  text-decoration: none;
}

.contact__phone:hover,
.contact__phone:focus-visible {
  color: var(--bone);
}

.contact__email {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: -0.03em;
  color: var(--muted);
  margin-top: 0.875rem;
  word-break: break-all;
}

.contact__email:hover {
  color: var(--orange);
}

.contact__area {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* --- what I do ---------------------------------------------------- */

.items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.item {
  background: var(--void);
  padding: 2rem 1.75rem 2.25rem;
  position: relative;
}

.sec--alt .item {
  background: var(--graphite);
}

.item::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--orange);
  transform-origin: left;
}

.js .item::before {
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}

.js .item.in::before {
  transform: scaleX(1);
}

.item__name {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: uppercase;
}

.item p {
  color: var(--body);
  margin-top: 0.875rem;
  max-width: none;
}

/* --- how it works ------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
  padding-left: 3.75rem;
  padding-bottom: 2.5rem;
}

.step:last-child {
  padding-bottom: 0;
}

/* The rail that connects the steps. */
.step::after {
  content: '';
  position: absolute;
  left: 1.125rem;
  top: 2.25rem;
  bottom: -0.25rem;
  width: 1px;
  background: var(--line);
}

.step:last-child::after {
  display: none;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--orange);
  border: 1px solid var(--orange);
  background: var(--void);
}

.sec--alt .step::before {
  background: var(--graphite);
}

.step__name {
  font-size: 1.1875rem;
  font-weight: 800;
  font-stretch: 105%;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding-top: 0.15rem;
}

.step p {
  color: var(--muted);
  margin-top: 0.625rem;
}

/* --- what you own ------------------------------------------------- */

.sec--weighted {
  background: var(--panel);
}

.sec--weighted .sec__body {
  border-left: 3px solid var(--orange);
  padding-left: clamp(1.25rem, 4vw, 2.75rem);
}

.sec--weighted .sec__body p {
  font-size: clamp(1.0625rem, 2.1vw, 1.3125rem);
  line-height: 1.6;
  color: var(--bone);
  max-width: 40rem;
}

.sec--weighted .sec__body > * + * {
  margin-top: 1.5rem;
}

.sec--weighted .step::before,
.sec--weighted .item {
  background: var(--panel);
}

/* --- who I am ----------------------------------------------------- */

.portrait-frame {
  position: relative;
  width: 11rem;
  margin-bottom: 2.25rem;
}

/* Offset block behind the photo. Sharp, not a shadow. */
.portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0.85rem -0.85rem -0.85rem 0.85rem;
  border: 1px solid var(--orange);
  z-index: 0;
}

.portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--line);
  filter: grayscale(1) contrast(1.05);
}

/* --- for IT providers --------------------------------------------- */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  background: var(--graphite);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.sec--alt .callout {
  background: var(--void);
}

.callout p {
  max-width: 44rem;
  color: var(--body);
}

.callout__cta {
  margin-top: 1.75rem;
}

.callout__cta a {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.7rem 1.5rem;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.callout__cta a:hover,
.callout__cta a:focus-visible {
  background: var(--orange);
  color: var(--void);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem 6.5rem;
}

.site-footer p {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

/* --- sticky call bar (small screens) ------------------------------ */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--orange);
  color: var(--void);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
  padding: 0.95rem 1rem;
  transform: translateY(105%);
  transition: transform 0.35s var(--ease);
}

.callbar.show {
  transform: none;
}

.callbar:hover,
.callbar:focus-visible {
  color: var(--void);
  background: #ff6f3c;
}

.callbar__label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* --- scroll reveals ----------------------------------------------- */

/* Everything here is scoped to .js, which the inline bootstrap in <head>
   sets before first paint. With JavaScript off or app.js failing to load,
   none of this applies and the page is simply visible. */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Hero animates on load rather than on scroll. */
.js .hero .reveal {
  transform: translateY(26px);
}

/* --- wider screens ------------------------------------------------ */

@media (min-width: 48rem) {
  :root {
    --gutter: 2.5rem;
  }

  .sec {
    padding-block: 6.5rem;
  }

  .hero {
    padding-block: 8rem 7rem;
  }

  .items {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    padding-left: 5rem;
    padding-bottom: 3rem;
  }

  .step::before {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.75rem;
  }

  .step::after {
    left: 1.375rem;
    top: 2.75rem;
  }

  .portrait-frame {
    width: 13rem;
  }

  /* The call bar is a phone affordance; on a desktop it is noise. */
  .callbar {
    display: none;
  }

  .site-footer {
    padding-bottom: 3rem;
  }
}

@media (min-width: 60rem) {
  .sec__inner {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    column-gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
  }

  /* The heading parks itself while its section scrolls past. */
  .sec__head {
    position: sticky;
    top: 3.5rem;
    margin-bottom: 0;
  }

  /* One section runs full width so the three panels get real room, and so
     the page is not seven identical two-column rows. */
  .sec--wide .sec__inner {
    display: block;
  }

  .sec--wide .sec__head {
    position: static;
    margin-bottom: 2.75rem;
  }

  .sec--wide .sec__num {
    display: inline-block;
    vertical-align: middle;
    margin-right: 1.5rem;
  }

  .sec--wide .sec__title {
    display: inline-block;
    vertical-align: middle;
    margin-top: 0;
  }

  .sec--about .sec__inner {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  }

  .portrait-frame {
    margin-top: 2.25rem;
    margin-bottom: 0;
    width: 100%;
    max-width: 13rem;
  }
}

/* --- motion off --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .js .item::before,
  .callbar,
  a {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .item::before {
    transform: scaleX(1);
  }
}

/* --- print -------------------------------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .skip-link,
  .callbar,
  .portrait-frame,
  .sec__num,
  .hero::before,
  .contact::before {
    display: none;
  }

  a,
  .contact__phone,
  .sec__body p {
    color: #000;
  }

  .sec {
    border-top: 1px solid #999;
    break-inside: avoid;
    padding-block: 1.25rem;
    background: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
