/* ---------------------------------------------------------------------------
   Small Dev Shop — black and white
   Same bones as the White Mountain PT site; no hue at all.
   --------------------------------------------------------------------------- */
:root {
  --ink: #111111;
  --ink-soft: #5f5f5f;
  --mute: #8a8a8a;
  --line: #dcdcdc;
  --wash: #f3f3f3;
  --wash-high: #f8f8f8;
  --paper: #ffffff;
  --black: #000000;
  --radius: 18px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 12px;
}

/* ---------------------------------------------------------------------------
   Masthead
   --------------------------------------------------------------------------- */
.masthead {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 5px;
  color: var(--mute);
}

.mark {
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink-soft);
}

.btn,
.nav-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  background: var(--black);
  color: #fff !important;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
  transition: background 140ms ease, transform 140ms ease;
}

.btn:hover,
.nav-cta:hover {
  background: #333;
  transform: translateY(-1px);
}

.nav .nav-cta {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-ghost {
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  transition: border-color 140ms ease;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 28px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.hero-copy h1 {
  font-weight: 700;
  font-size: clamp(2.6rem, 5.4vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}

.hero-sub {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-origin {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* ---------------------------------------------------------------------------
   The scene (signature): a phone and a laptop whose screens fill in, then ship
   --------------------------------------------------------------------------- */
.scene {
  width: 100%;
  max-width: 560px;
  justify-self: end;
  border-radius: 24px;
  background: var(--black);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.scene-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* screen blocks appear one after another, once */
.blk {
  opacity: 0;
  animation: blk-in 420ms ease-out forwards;
}

@keyframes blk-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blk:nth-child(1) { animation-delay: 0.3s; }
.blk:nth-child(2) { animation-delay: 0.55s; }
.blk:nth-child(3) { animation-delay: 0.8s; }
.blk:nth-child(4) { animation-delay: 1.05s; }
.blk:nth-child(5) { animation-delay: 1.3s; }
.blk:nth-child(6) { animation-delay: 1.55s; }
.blk:nth-child(7) { animation-delay: 1.8s; }
.blk:nth-child(8) { animation-delay: 2.05s; }
.blk:nth-child(9) { animation-delay: 2.3s; }
.blk:nth-child(10) { animation-delay: 2.55s; }
.blk:nth-child(11) { animation-delay: 2.8s; }
.blk:nth-child(12) { animation-delay: 3.05s; }

/* the cursor blinks while the build runs, then leaves */
.cursor {
  animation: blink 0.9s steps(2, start) 4, gone 0s 3.6s forwards;
}

@keyframes blink {
  to {
    opacity: 0;
  }
}

@keyframes gone {
  to {
    opacity: 0;
  }
}

/* the shipped badge lands last */
.ship {
  opacity: 0;
  transform-origin: 452px 96px;
  animation: ship-in 500ms 3.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) forwards;
}

@keyframes ship-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.ship-tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 400ms 3.85s ease-out forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------------------------------------------------------------------------
   Steps (Scope / Build / Ship)
   --------------------------------------------------------------------------- */
.trail {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 28px 72px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trail-step {
  background: var(--wash);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
}

.trail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}

.trail-label i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.trail-step h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.trail-step p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 0.97rem;
}

/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */
.section {
  padding: 80px 28px;
}

.section > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.section-tint {
  background: var(--wash-high);
}

.section-black {
  background: var(--black);
  color: #fff;
}

.section-black h2,
.section-black h3 {
  color: #fff;
}

.section-black .eyebrow {
  color: #9a9a9a;
}

.section-head {
  margin-bottom: 36px;
}

.section-head > * {
  max-width: 620px;
}

.section-head h2,
.contact-grid h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-sub {
  margin: 14px 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.section-black .section-sub {
  color: #b5b5b5;
}

/* services */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}

.service h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.service p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.service p + p {
  margin-top: 10px;
}

.platforms {
  list-style: none;
  padding: 0;
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platforms li {
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--wash);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
}

/* recent work */
.work {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.project p {
  margin: 0;
  line-height: 1.55;
  color: #c9c9c9;
}

.project-stack {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.88rem;
  color: #8d8d8d;
}

.project a {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.portrait {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--wash);
  filter: grayscale(1);
}

.about-grid h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.about-grid p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

.about-grid p:last-child {
  margin-bottom: 0;
}

/* quote */
.quote {
  margin: 0;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  position: relative;
  max-width: 720px;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  right: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  color: var(--line);
}

.quote blockquote {
  margin: 0 0 16px;
  padding-right: 40px;
}

.quote blockquote p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}

.quote figcaption {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.quote figcaption strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.contact-card {
  background: var(--paper);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.contact-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.contact-email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  word-break: break-all;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.facts {
  margin: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.facts div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}

.facts dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 3px;
}

.facts dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 28px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}

.footer-fine {
  order: 3;
  flex-basis: 100%;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Responsive + reduced motion
   --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
  }

  .scene {
    justify-self: center;
  }

  .services,
  .trail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-grid {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 620px) {
  .masthead {
    padding: 18px 16px 0;
  }

  .hero,
  .section,
  .trail,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .services,
  .trail,
  .work,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 200px;
  }

  .contact-card {
    padding: 24px;
  }

  .quote {
    padding: 24px 22px 22px;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blk,
  .cursor,
  .ship,
  .ship-tick {
    animation: none;
  }

  .blk,
  .ship {
    opacity: 1;
    transform: none;
  }

  .cursor {
    opacity: 0;
  }

  .ship-tick {
    stroke-dashoffset: 0;
  }
}
