/* ============================================================
   thefullstacklab — design system
   paper #F4F2EC · ink #0A0A0A · electric #F5FF00 · blue #1E3FFF
   ============================================================ */

:root {
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --gray: #6b6b6b;
  --yellow: #f5ff00;
  --blue: #1e3fff;
  --border: 1px solid var(--ink);
  --border-2: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow { color: var(--gray); }
.section-dark .eyebrow { color: rgba(244, 242, 236, 0.55); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border: var(--border-2);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--yellow); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--paper); }
.btn-lg { padding: 1rem 1.9rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--paper);
  border-bottom: var(--border-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
}
.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 1.2rem; }
.header-tag { color: var(--gray); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.2s; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  margin: 1.2rem 0 1.4rem;
}
.hero-title em {
  font-style: normal;
  background: var(--yellow);
  padding: 0 0.18em;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1rem; }
.hero-note { color: var(--gray); }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: var(--border);
}
.hero-stats dt { font-size: 1.5rem; font-weight: 700; }
.hero-stats dd { font-size: 0.82rem; color: var(--gray); margin-top: 0.2rem; }

.hero-media { position: relative; min-height: 480px; }
.hero-img {
  position: absolute;
  border: var(--border-2);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top;
  background: var(--paper-2);
}
.hero-img-1 { width: 64%; height: 300px; top: 0; left: 0; transform: rotate(-2deg); z-index: 1; }
.hero-img-2 { width: 58%; height: 260px; top: 36%; right: 0; transform: rotate(1.6deg); z-index: 2; }
.hero-img-3 { width: 34%; height: 200px; bottom: 0; left: 10%; transform: rotate(-1deg); z-index: 3; }

/* ---------- marquee ---------- */
.marquee-section { border-top: var(--border-2); border-bottom: var(--border-2); background: var(--ink); padding: 1.4rem 0; overflow: hidden; }
.marquee-label { color: var(--yellow); text-align: center; margin-bottom: 1rem; }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-track img {
  height: 34px;
  width: auto;
  filter: grayscale(1) invert(1) brightness(2);
  opacity: 0.85;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 5.5rem 1.5rem; }
.section-dark { max-width: none; background: var(--ink); color: var(--paper); }
.section-dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-border { border-top: var(--border-2); }
.section-head { margin-bottom: 3.2rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 1rem 0; }
.section-sub { color: var(--ink-soft); max-width: 38rem; font-size: 1.02rem; }
.section-dark .section-sub { color: rgba(244, 242, 236, 0.7); }

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--border-2);
  border-left: var(--border-2);
}
.service-card {
  position: relative;
  padding: 2rem 1.8rem 1.8rem;
  border-right: var(--border-2);
  border-bottom: var(--border-2);
  background: var(--paper);
  transition: background 0.2s ease;
}
.service-card:hover { background: var(--yellow); }
.service-icon {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 3rem;
  margin-bottom: 1.6rem;
}
.service-icon img { height: 2.6rem; width: auto; }
.service-icon svg { height: 2.6rem; width: 2.6rem; color: var(--blue); }
.service-card:hover .service-icon svg { color: var(--ink); }
.service-num {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  color: var(--gray);
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.7rem; }
.service-card p { font-size: 0.92rem; color: var(--ink-soft); }
.service-list { list-style: none; margin-top: 1.2rem; }
.service-list li { padding: 0.35rem 0; border-top: 1px dashed rgba(10, 10, 10, 0.25); font-size: 0.7rem; }
.service-list li::before { content: "→ "; }

/* ---------- work ---------- */
.section-dark { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.work-card {
  border: 2px solid var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}
.work-card:hover img { transform: scale(1.04); }
.work-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-top: 2px solid var(--paper);
  font-family: var(--font-mono);
}
.work-card figcaption .mono { font-size: 0.68rem; }
.work-metric {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
}

/* ---------- numbers strip ---------- */
.numbers-strip { border-top: var(--border-2); border-bottom: var(--border-2); background: var(--yellow); }
.numbers-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.number-cell {
  padding: 2.2rem 1.4rem;
  text-align: center;
  border-right: var(--border);
}
.number-cell:first-child { border-left: var(--border); }
.number-big { display: block; font-size: 2.2rem; font-weight: 700; }
.number-label { display: block; font-size: 0.8rem; margin-top: 0.4rem; }

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.why-card {
  border: var(--border-2);
  padding: 1.8rem 1.6rem;
  background: var(--paper);
}
.why-num { display: inline-block; background: var(--ink); color: var(--paper); padding: 0.3rem 0.6rem; margin-bottom: 1.2rem; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.why-card p { font-size: 0.88rem; color: var(--ink-soft); }
.why-card-accent { background: var(--blue); color: var(--paper); border-color: var(--ink); box-shadow: var(--shadow); }
.why-card-accent .why-num { background: var(--yellow); color: var(--ink); }
.why-card-accent p { color: rgba(244, 242, 236, 0.85); }

/* ---------- process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.process-step {
  border: var(--border-2);
  padding: 2rem 1.8rem;
  background: var(--paper);
  position: relative;
}
.process-step:hover { box-shadow: var(--shadow); transform: translate(-3px, -3px); transition: 0.15s ease; }
.process-num {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--yellow);
  border: var(--border-2);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.4rem;
}
.process-step h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.process-step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.testi-card {
  border: var(--border-2);
  background: var(--paper);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6rem;
}
.testi-card:hover { box-shadow: var(--shadow); transform: translate(-3px, -3px); transition: 0.15s ease; }
.testi-card p { font-size: 0.95rem; font-family: var(--font-display); font-weight: 500; line-height: 1.45; }
.testi-card footer { display: flex; align-items: center; gap: 0.9rem; }
.testi-card footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: var(--border); }
.testi-card footer strong { display: block; font-family: var(--font-display); font-size: 0.9rem; }
.testi-card footer .mono { color: var(--gray); font-size: 0.65rem; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 1rem 0; }
.contact-details { margin-top: 2.6rem; display: grid; gap: 1.8rem; }
.contact-detail span { display: block; color: var(--yellow); margin-bottom: 0.4rem; }
.contact-detail a { color: var(--paper); font-family: var(--font-display); font-size: 1.1rem; }
.contact-detail address { font-style: normal; color: rgba(244, 242, 236, 0.8); font-size: 0.95rem; line-height: 1.7; }
.social-links { display: flex; gap: 1.4rem; }
.social-links a { font-size: 0.95rem; }

.contact-form {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--paper);
  padding: 2.2rem;
}
.contact-form h3 { margin-bottom: 1.6rem; font-size: 0.8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: var(--border);
  background: #fff;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  border-radius: 0;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230a0a0a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid { outline: 2px solid #e24b4a; }
.form-status { margin-top: 0.9rem; min-height: 1.1rem; font-size: 0.72rem; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #e24b4a; }
.form-note { margin-top: 0.8rem; font-size: 0.75rem; color: var(--gray); }
.form-note a { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { border-top: var(--border-2); }
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}
.footer-cta h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}
.footer-brand p { margin: 1rem 0; color: var(--gray); }
.footer-brand address { font-style: normal; color: var(--gray); font-size: 0.85rem; line-height: 1.7; }
.footer-head { display: block; color: var(--gray); margin-bottom: 1rem; }
.footer-col a { display: block; text-decoration: none; font-size: 0.9rem; padding: 0.28rem 0; }
.footer-col a:hover { color: var(--blue); }
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: var(--border);
  padding: 1.4rem 1.5rem;
  color: var(--gray);
  font-size: 0.65rem;
}

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.72); }
.modal-panel {
  position: relative;
  background: var(--paper);
  border: var(--border-2);
  box-shadow: 10px 10px 0 var(--ink);
  width: min(760px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: var(--border-2);
}
.modal-head h3 { font-size: 1.4rem; }
.modal-close {
  background: var(--ink);
  color: var(--paper);
  border: none;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.modal-close:hover { background: var(--blue); }
.modal-body { padding: 1.6rem; overflow-y: auto; font-size: 0.92rem; }
.modal-body h4 { font-size: 1rem; margin: 1.4rem 0 0.4rem; }
.modal-body p { margin-bottom: 0.7rem; color: var(--ink-soft); }
.modal-body .mono { color: var(--gray); }
.modal-body a { color: var(--blue); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 420px; max-width: 640px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .testi-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-inner { grid-template-columns: repeat(3, 1fr); }
  .number-cell:nth-child(-n + 3) { border-bottom: var(--border); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: var(--border-2);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 1rem 1.5rem; border-top: var(--border); }
  .nav-toggle { display: flex; }
  .header-tag { display: none; }
  .site-header { padding: 0.75rem 1rem; gap: 0.9rem; }
  .header-right { gap: 0.8rem; }
  .header-right .btn { padding: 0.55rem 0.9rem; font-size: 0.7rem; }
  .hero { padding: 3rem 1.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-media { min-height: 340px; }
  .services-grid, .work-grid, .testi-grid, .process-grid, .why-grid { grid-template-columns: 1fr; }
  .numbers-inner { grid-template-columns: repeat(2, 1fr); }
  .number-cell { border-bottom: var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cta { padding: 3rem 1.2rem; }
}

@media (max-width: 460px) {
  .header-right .btn { display: none; }
}
