/* ==========================================================================
   CODIRISE — Sections
   Section classes describe internal composition only. Vertical rhythm always
   comes from .section in base.css so these can never fight it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section header block
   -------------------------------------------------------------------------- */
.sec-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 720px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.sec-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
  gap: var(--s-6);
}

.sec-head--split .sec-head__copy {
  max-width: 620px;
}

.sec-head--center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

@media (max-width: 780px) {
  .sec-head--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(140px, 18vh, 200px) clamp(80px, 10vw, 120px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Canvas paints the grid + drifting particles; JS reads the mouse. */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 70% at 50% 32%,
    #000 22%,
    transparent 76%
  );
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 32%,
    #000 22%,
    transparent 76%
  );
}

/* The floating blur. Moves a few pixels with the pointer — enough to feel
   alive, not enough to notice. */
.hero__glow {
  display: none;
}

.hero {
  position: relative;
  padding-block: clamp(90px, 12vh, 130px) clamp(40px, 6vw, 70px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: var(--z-content);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 960px) {
  .hero {
    padding-block-start: 80px;
    padding-block-end: 36px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__form-card {
    order: 1; /* Form shows FIRST right below navbar on mobile */
    padding: 22px 18px;
    border-radius: var(--r-lg);
  }

  .hero__content {
    order: 2; /* Content shows SECOND below form on mobile */
  }

  .hero__title {
    font-size: clamp(25px, 6.2vw, 36px);
  }

  .hero__form-head h2 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .form-control {
    font-size: 16px;
    padding: 12px 14px;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: var(--s-3);
}

.hero__title {
  max-width: none;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.12;
  margin-top: 4px;
}

.hero__sub {
  max-width: none;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--s-2);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.hero__meta svg {
  width: 16px;
  height: 16px;
  color: #000000;
}

/* Hero Lead Form Card */
.hero__form-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  text-align: left;
  position: relative;
}

.hero__form-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-strong);
  margin-bottom: 4px;
}

.hero__form-head p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.hero__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  background: #f4f4f5;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--ink-strong);
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-control:focus {
  background: #ffffff;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 12px 20px;
}

.form-success-msg {
  display: none;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: var(--r-md);
  color: #065f46;
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Trusted / stats — Clean Minimalist Light Theme
   -------------------------------------------------------------------------- */
.trusted__label {
  text-align: center;
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  background: #ffffff;
  border-right: 1px solid var(--line-strong);
  transition: background-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.stat:last-child {
  border-right: none;
}

.stat:hover {
  background: #fafafa;
}

.stat__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000000;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.stat__suffix {
  color: #000000;
  margin-left: 2px;
  font-weight: 700;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 780px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 24px 16px;
  }
  .stat:nth-child(2n) {
    border-right: none;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-strong);
  }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
}

/* The first two services are the revenue engine, so they get the width. */
.services .card:nth-child(1),
.services .card:nth-child(2) {
  grid-column: span 2;
}

@media (max-width: 1080px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services .card:nth-child(1),
  .services .card:nth-child(2) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .services {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Process — a rail with four stops. The line fills as you scroll, because
   the content genuinely is a sequence.
   -------------------------------------------------------------------------- */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  padding-top: var(--s-6);
}

.process::before,
.process__fill {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: 0;
  height: 1px;
}

.process::before {
  background: var(--line);
}

.process__fill {
  right: auto;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  transition: width 1.2s var(--ease);
}

.step {
  position: relative;
  padding-right: var(--s-3);
}

.step__dot {
  position: absolute;
  top: -19px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  transition: border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease), background-color var(--t-base);
}

.step.is-active .step__dot {
  background: var(--blue-accent);
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.step__num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-mono);
  color: var(--ink-faint);
}

.step__title {
  margin: var(--s-1) 0 var(--s-1);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.step__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.step__meta {
  margin-top: var(--s-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

@media (max-width: 900px) {
  .process {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-5);
    padding-top: 0;
    padding-left: var(--s-4);
  }
  .process::before,
  .process__fill {
    top: 0;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process__fill {
    height: var(--fill, 0%);
    width: 1px;
    transition: height 1.2s var(--ease);
  }
  .step__dot {
    top: 6px;
    left: -37px;
  }
}

/* --------------------------------------------------------------------------
   Why — feature bento
   -------------------------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.why__item {
  position: relative;
  padding: var(--s-4);
  background: var(--canvas);
  transition: background-color var(--t-base) var(--ease);
}

.why__item:hover {
  background: var(--surface-1);
}

.why__item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-accent);
  margin-bottom: var(--s-2);
}

.why__item h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  margin-bottom: 6px;
}

.why__item p {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-muted);
}

@media (max-width: 1024px) {
  .why {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .why {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Portfolio — CSS masonry via columns, filtered client-side
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  margin-bottom: var(--s-5);
}

.filter {
  padding: 8px 16px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: all var(--t-fast) var(--ease);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-5);
}

.filter {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  background: #f4f4f5;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}

.filter:hover {
  color: #000000;
  border-color: #000000;
  background: #ffffff;
}

.filter[aria-pressed="true"] {
  color: #ffffff;
  background: #000000;
  border-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.work {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}

.work:hover {
  border-color: #000000;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.work__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #ffffff;
  display: block;
  transition: transform var(--t-slow) var(--ease);
}

.work:hover .work__media img {
  transform: scale(1.03);
}

.work__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.work__cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
}

.work__client {
  font-size: 12px;
  color: var(--ink-muted);
}

.work__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  line-height: 1.35;
  margin: 2px 0 0;
}

/* Case study dialog */
.modal {
  width: min(880px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  padding: 0;
  color: var(--ink);
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal::backdrop {
  background: rgba(9, 12, 19, 0.72);
  backdrop-filter: blur(6px);
}

.modal__scroll {
  max-height: min(86vh, 900px);
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(18, 23, 34, 0.8);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.modal__close:hover {
  background: var(--surface-3);
}

.modal__body {
  padding: var(--s-5);
}

.modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-4);
}

@media (max-width: 620px) {
  .modal__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.modal__grid img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  margin: var(--s-3) 0;
  border-block: 1px solid var(--line);
}

.meta-row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.meta-row dd {
  font-size: var(--fs-small);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.quote__stars {
  display: flex;
  gap: 3px;
  color: var(--blue-accent);
}

.quote__stars svg {
  width: 14px;
  height: 14px;
}

.quote__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  flex: 1;
}

.quote__who {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue-accent);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote__name {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-strong);
}

.quote__role {
  font-size: 13px;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   Technologies — marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.marquee__track {
  display: flex;
  gap: var(--s-2);
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}

.tech {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  white-space: nowrap;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-muted);
  transition: color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
}

.tech:hover {
  color: var(--ink-strong);
  border-color: var(--accent-ring);
}

.tech svg {
  width: 16px;
  height: 16px;
  color: var(--blue-accent);
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.post-list {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .post-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.post {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

.post:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.post__media {
  aspect-ratio: 16 / 9;
  background: var(--canvas-deep);
  overflow: hidden;
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}

.post:hover .post__media img {
  transform: scale(1.03);
}

.post__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-3);
  flex: 1;
}

.post__meta {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.post__meta span[aria-hidden] {
  opacity: 0.4;
}

.post__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink-strong);
}

/* Vertical padding on an inline anchor grows the hit area without touching
   the line box, so a one-line headline still clears 24px. */
.post__title a {
  padding-block: 2px;
}

.post__excerpt {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-muted);
}

.post__foot {
  margin-top: auto;
  padding-top: var(--s-2);
}

/* Featured article — one wide unit above the grid */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-1);
  margin-bottom: var(--s-2);
  transition: border-color var(--t-base) var(--ease);
}

.featured:hover {
  border-color: var(--line-strong);
}

.featured__media {
  min-height: 320px;
  background: var(--canvas-deep);
  overflow: hidden;
}

.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-6);
}

@media (max-width: 860px) {
  .featured {
    grid-template-columns: minmax(0, 1fr);
  }
  .featured__media {
    min-height: 220px;
  }
  .featured__body {
    padding: var(--s-4);
  }
}

.searchbar {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.searchbar svg {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
  pointer-events: none;
}

.searchbar .input {
  padding-left: 42px;
  border-radius: var(--r-pill);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}

/* --------------------------------------------------------------------------
   Article body (blog post page)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 68ch;
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.85;
}

.prose > * + * {
  margin-top: var(--s-3);
}

.prose h2 {
  margin-top: var(--s-6);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink-strong);
}

.prose h3 {
  margin-top: var(--s-5);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
}

.prose a {
  color: var(--blue-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: var(--s-3);
}

.prose li {
  margin-top: var(--s-1);
  list-style: disc;
}

.prose ol li {
  list-style: decimal;
}

.prose blockquote {
  padding-left: var(--s-3);
  border-left: 2px solid var(--blue-primary);
  color: var(--ink);
  font-size: 19px;
}

.prose img {
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--canvas-deep);
  border: 1px solid var(--line);
  color: var(--ink);
}

.prose pre {
  padding: var(--s-3);
  overflow-x: auto;
  background: var(--canvas-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
}

/* --------------------------------------------------------------------------
   CTA — Clean Minimalist Light Card
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: clamp(48px, 6vw, 76px) clamp(20px, 4vw, 48px);
  text-align: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  max-width: 660px;
  margin-inline: auto;
}

.cta__inner .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cta__inner .t-h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #000000;
  line-height: 1.15;
}

.cta__inner .t-body {
  font-size: clamp(14px, 1.2vw, 17px);
  color: var(--ink-muted);
  line-height: 1.6;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--canvas-deep);
  border-top: 1px solid var(--line);
  padding-block: var(--s-10) var(--s-5);
  position: relative;
  z-index: var(--z-content);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-6);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5);
  }
}
@media (max-width: 520px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer__brand p {
  max-width: 34ch;
  margin-top: var(--s-2);
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--ink-muted);
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s-2);
}

.footer__links li + li {
  margin-top: 2px;
}

/* Padding rather than margin so each link's hit area clears the 24px WCAG
   2.5.8 minimum — these are standalone links, not links inside a sentence. */
.footer__links a {
  display: inline-block;
  padding-block: 4px;
  font-size: var(--fs-small);
  color: var(--ink-muted);
  transition: color var(--t-fast) var(--ease);
}

.footer__links a:hover {
  color: var(--ink-strong);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-4);
}

.footer__legal {
  font-size: 13px;
  color: var(--ink-faint);
}

/* These sit inside a sentence, so WCAG 2.5.8 exempts them — but the padding
   costs nothing and makes them comfortable on a phone. */
.footer__legal a {
  display: inline-block;
  padding-block: 4px;
}

/* Contact details are standalone links, not prose: give them a real target. */
.contact__details dd a {
  display: inline-block;
  padding-block: 4px;
}

.socials {
  display: flex;
  gap: var(--s-1);
}

.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  transition: all var(--t-fast) var(--ease);
}

.socials a:hover {
  color: var(--ink-strong);
  border-color: var(--line-strong);
  background: var(--surface-1);
}

.socials svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(120px, 15vh, 176px) clamp(40px, 6vw, 64px);
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 100% at 50% 0%,
    rgba(65, 92, 133, 0.18),
    transparent 70%
  );
  pointer-events: none;
}

.page-head__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 760px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s-1);
}

/* Same 24px minimum target reasoning as the footer links. */
.crumbs a {
  display: inline-block;
  padding-block: 6px;
}

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

.crumbs li {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.crumbs li + li::before {
  content: "/";
  opacity: 0.4;
}

/* --------------------------------------------------------------------------
   Contact split
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--s-8);
  align-items: start;
}

@media (max-width: 940px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-6);
  }
}

.contact__aside {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

@media (max-width: 940px) {
  .contact__aside {
    position: static;
  }
}

.contact__item {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
}

.contact__item svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  color: var(--blue-accent);
}

.contact__item dt {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-strong);
}

.contact__item dd {
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-2);
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .form {
    padding: var(--s-3);
  }
}

/* Success state — replaces the form in place, no layout jump */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  text-align: center;
  padding: var(--s-10) var(--s-4);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.form-success__tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  color: var(--blue-accent);
  animation: tick-in 520ms var(--ease);
}

.form-success__tick svg {
  width: 26px;
  height: 26px;
}

@keyframes tick-in {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s-3);
  min-height: 70vh;
  padding-block: var(--s-15);
}

.notfound__code {
  font-family: var(--font-mono);
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}

/* --------------------------------------------------------------------------
   Rich Article & Prose Styling (.prose) — High-Contrast & Mobile Readable
   -------------------------------------------------------------------------- */
.prose {
  max-width: 760px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.8;
  color: #1e293b;
  letter-spacing: -0.005em;
}

.prose p {
  font-size: 18px;
  line-height: 1.8;
  color: #1e293b;
  margin-bottom: 24px;
}

.prose h2 {
  font-size: clamp(24px, 3.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-top: 48px;
  margin-bottom: 20px;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.prose h3 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #0f172a;
  margin-top: 36px;
  margin-bottom: 14px;
  line-height: 1.35;
}

.prose h4 {
  font-size: clamp(17px, 2.4vw, 19px);
  font-weight: 600;
  color: #1e293b;
  margin-top: 28px;
  margin-bottom: 12px;
}

.prose ul, .prose ol {
  margin-top: 14px;
  margin-bottom: 28px;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 18px;
  color: #1e293b;
}

.prose li {
  line-height: 1.75;
}

.prose blockquote {
  margin: 36px 0;
  padding: 22px 28px;
  background: #f8fafc;
  border-left: 4px solid #0f172a;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: #0f172a;
  box-shadow: var(--shadow-sm);
}

.prose img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 32px 0;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
}

/* Responsive Table Wrapper for Blog Posts */
.table-responsive,
.prose-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.table-responsive::-webkit-scrollbar,
.prose-table-wrap::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-track,
.prose-table-wrap::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb,
.prose-table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-responsive table,
.prose-table-wrap table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border: none;
  box-shadow: none;
  border-radius: 0;
  border-collapse: collapse;
}

.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  font-size: 15px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose th, .prose td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: normal;
  font-size: 15px;
}

.prose th {
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: none;
}

.prose td {
  color: #0f172a;
}

.prose tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.7);
}

.prose tr:last-child td {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Post Layout Grid & Sidebar Styling
   -------------------------------------------------------------------------- */
.post-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.post-main-column {
  min-width: 0;
  max-width: 100%;
}

.post-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.sidebar-card {
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.sidebar-card--whatsapp {
  background: #f8fafc;
  border-color: rgba(37, 211, 102, 0.3);
}

@media (max-width: 960px) {
  .post-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .post-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .prose {
    font-size: 17.5px;
    line-height: 1.75;
    color: #1e293b;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .prose p {
    font-size: 17.5px;
    line-height: 1.75;
    color: #1e293b;
    margin-bottom: 20px;
  }

  .prose ul, .prose ol {
    font-size: 17px;
    padding-left: 22px;
    gap: 10px;
    margin-bottom: 22px;
    color: #1e293b;
  }

  .prose li {
    line-height: 1.7;
  }

  .prose h2 {
    font-size: clamp(22px, 6vw, 26px);
    margin-top: 36px;
    margin-bottom: 16px;
    color: #0f172a;
  }

  .prose h3 {
    font-size: clamp(19px, 5vw, 22px);
    margin-top: 28px;
    margin-bottom: 12px;
    color: #0f172a;
  }

  .prose h4 {
    font-size: 17px;
    margin-top: 22px;
    margin-bottom: 10px;
    color: #1e293b;
  }

  .prose blockquote {
    padding: 16px 20px;
    font-size: 17px;
    line-height: 1.65;
    margin: 28px 0;
    border-radius: 0 12px 12px 0;
    color: #0f172a;
  }

  .prose th {
    padding: 12px 14px;
    font-size: 12.5px;
  }

  .prose td {
    padding: 12px 14px;
    font-size: 14.5px;
    color: #0f172a;
  }

  .sidebar-card {
    padding: 20px;
    border-radius: 16px;
  }
}

