/* ===========================================================
   Zylo Web Studio — stylesheet
   Fonts: Space Grotesk (display), Work Sans (body)
   =========================================================== */

:root {
  --paper: #efede7;
  --paper-raised: #ffffff;
  --ink: #171b1f;
  --ink-soft: #454a52;
  --grey: #6b7078;
  --line: #d9d6cc;
  --line-soft: #e4e1d8;
  --blue: #2f4bff;
  --blue-dark: #1f35d6;
  --blue-tint: #e8ebff;
  --yellow: #ffca3a;
  --yellow-dark: #e6ac00;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;

  --max: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* Buttons get a refined halo ring instead of a hard outline, since browsers
   show a focus ring on links even on mouse click (not just keyboard nav). */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--blue);
}

.cta-banner .btn:focus-visible,
.footer-social a:focus-visible {
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--yellow);
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 88px 0;
}

@media (max-width: 720px) {
  section {
    padding: 60px 0;
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head p {
  color: var(--ink-soft);
}

.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Blueprint grid texture, used sparingly on a few sections */
.grid-field {
  position: relative;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px),
    linear-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

/* corner crosshair marks — technical-drawing device, used at a few key edges */
.crosshair {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: var(--ink);
  opacity: 0.35;
}
.crosshair::before {
  width: 100%;
  height: 1.5px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.crosshair::after {
  height: 100%;
  width: 1.5px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover {
  background: var(--blue-tint);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(239, 237, 231, 0.92);
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 44px;
  width: auto;
}

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

.main-nav ul {
  display: flex;
  gap: 34px;
}

.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  position: relative;
  padding: 4px 0;
}

.main-nav a.active:not(.btn) {
  color: var(--blue);
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}

.main-nav a:not(.btn):hover::after {
  width: 100%;
}

.main-nav .btn {
  font-size: 1.02rem;
  padding: 13px 28px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 40px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow-y: auto;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .main-nav ul li a {
    display: block;
    padding: 16px 2px;
    font-size: 1.1rem;
  }

  .main-nav .btn {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.hero-copy .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-copy .tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--grey);
}

/* Hero drawing animation — the one signature motion moment */
.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-line 1.8s ease forwards 0.2s;
}

.draw-slow {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 1.6s ease forwards 0.9s;
}

.fade-block {
  opacity: 0;
  animation: fade-in 0.6s ease forwards 1.7s;
}

.blink {
  animation: blink-cursor 1.1s steps(1) infinite 2.2s;
}

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

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes blink-cursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw,
  .draw-slow {
    stroke-dashoffset: 0;
    animation: none;
  }
  .fade-block {
    opacity: 1;
    animation: none;
  }
  .blink {
    animation: none;
  }
}

/* ---------- Problem / understanding list ---------- */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 720px) {
  .trouble-grid {
    grid-template-columns: 1fr;
  }
}

.trouble-item {
  background: var(--paper-raised);
  padding: 34px;
}

.trouble-item h3 {
  margin-bottom: 10px;
}

.trouble-item p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (max-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card .num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--blue);
  font-size: 0.95rem;
}

.card h3 {
  margin-bottom: 2px;
}

.card p {
  color: var(--ink-soft);
  margin-bottom: 0;
  max-width: none;
}

.card a.card-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card a.card-link:hover {
  color: var(--blue);
}

/* ---------- Why us / feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}

@media (max-width: 720px) {
  .feature-row {
    grid-template-columns: 1fr;
  }
}

.feature {
  display: flex;
  gap: 18px;
}

.feature .mark {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.feature h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.feature p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Process steps ---------- */
.steps {
  position: relative;
}

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 620px) {
  .step {
    grid-template-columns: 56px 1fr;
    gap: 18px;
  }
}

.step .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--line);
  line-height: 1;
}

.step-body h3 {
  margin-bottom: 8px;
}

.step-body p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.step-body .step-time {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 14px;
}

.cta-banner p {
  color: #c7cad1;
  margin: 0 auto 30px;
}

.cta-banner .btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.cta-banner .btn-primary:hover {
  background: #ffd766;
}

@media (max-width: 620px) {
  .cta-banner {
    padding: 44px 26px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #d8dae0;
  padding: 64px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid #2c3138;
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  height: 34px;
  margin-bottom: 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 40px;
  width: 40px;
  margin-bottom: 0;
  border-radius: 10px;
}

.footer-logo .wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-logo .wordmark span:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #ffffff;
}

.footer-logo .wordmark span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: #7186ff;
}

.footer-brand p {
  color: #9aa0aa;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #b7bcc4;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #3a3f47;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 0.85rem;
  color: #767c86;
}

/* ---------- About page ---------- */
.story-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 820px) {
  .story-block {
    grid-template-columns: 1fr;
  }
}

.pull-figure {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.pull-figure + p {
  color: var(--ink-soft);
  margin-top: 10px;
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 620px) {
  .value-list {
    grid-template-columns: 1fr;
  }
}

.value-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.value-item p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Services page ---------- */
.service-block {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.service-block:first-of-type {
  border-top: none;
}

@media (max-width: 720px) {
  .service-block {
    padding: 40px 0;
  }
}

.service-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.service-head .service-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--line);
  font-size: 1rem;
}

.service-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

@media (max-width: 820px) {
  .service-body {
    grid-template-columns: 1fr;
  }
}

.service-for {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.service-for h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.service-for ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.service-for ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

@media (max-width: 620px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-thumb {
  height: 8px;
  background: var(--blue);
}

.post-card.acc-yellow .post-thumb {
  background: var(--yellow);
}

.post-card.acc-ink .post-thumb {
  background: var(--ink);
}

.post-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-meta {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-body h3 {
  margin-bottom: 0;
}

.post-body p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.post-read {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  padding-top: 10px;
}

.post-read:hover {
  color: var(--blue);
}

/* Article page */
.article-head {
  max-width: 780px;
}

.article-head .post-meta {
  margin-bottom: 16px;
}

.article-body {
  max-width: 700px;
}

.article-body p {
  max-width: none;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.article-body h2 {
  font-size: 1.6rem;
  margin-top: 1.2em;
}

.article-body ul {
  margin-bottom: 1.2em;
}

.article-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 2px;
}

.article-cta {
  margin-top: 48px;
  padding: 36px;
  background: var(--blue-tint);
  border-radius: var(--radius);
}

.article-cta h3 {
  margin-bottom: 10px;
}

.article-cta p {
  color: var(--ink-soft);
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info .info-item {
  margin-bottom: 28px;
}

.contact-info .info-item h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--grey);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-info .info-item a,
.contact-info .info-item p {
  font-size: 1.15rem;
  margin-bottom: 0;
}

.contact-form {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--grey);
  margin-top: 16px;
  margin-bottom: 0;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 60px 0 20px;
}

.page-hero .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lede {
  margin-top: 16px;
}

/* ---------- Misc ---------- */
.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.stat-strip {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-strip .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blue);
}

.stat-strip .stat span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
