/* ksheri.com v3
   New filename on purpose: netlify.toml caches /css/* for a year. */

:root {
  /* Neutral graphite palette (no warm/brown cast) */
  --ink: #232528;
  --ink-2: #44474c;
  --muted: #5a5e64;
  --muted-2: #6b6f76;
  --line: #e7e8ea;
  --line-2: #dcdee2;
  --card-line: #e4e6e9;
  --soft: #f5f6f7;
  --paper: #ffffff;
  --accent: #1f6f5c;
  --accent-dark: #16503f;
  --online: #2fa37a;
  --offline: #a2a6ad;
  --dark: #2d3034;
  --dark-card: #373a3f;
  --dark-line: #484c52;
  --dark-input: #5a5e65;
  --on-dark-2: #e4e6e9;
  --on-dark-muted: #c3c6cb;
  --mint: #8fd3be;
  --error-on-dark: #ffb4a8;

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Noto Sans Arabic", sans-serif;

  /* Fluid layout: grows with the window instead of a fixed box */
  --container: 1360px;
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(72px, 10vw, 144px);
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(16px, 0.3vw + 15px, 18px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

::selection {
  background: var(--ink);
  color: #fff;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

section[id] {
  scroll-margin-top: 24px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ── Buttons & links ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

/* Primary: label + round chip holding the real WhatsApp mark */
.btn--primary {
  gap: 18px;
  min-height: 62px;
  padding: 0 8px 0 30px;
  background: var(--dark);
  color: #fff;
  font-size: 17px;
}

.btn--primary:hover {
  color: #fff;
  background: #1f2124;
  box-shadow: 0 14px 30px -12px rgba(35, 37, 40, 0.55);
}

.btn__label {
  display: block;
  line-height: 1;
  padding-block: 2px;
}

.btn__chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  transition: transform 0.45s var(--ease);
}

.btn__chip .icon {
  width: 22px;
  height: 22px;
}

.btn--primary:hover .btn__chip {
  transform: rotate(-14deg) scale(1.06);
}

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

.btn--dark:hover {
  color: #fff;
  background: #1f2124;
}

.btn--outline {
  min-height: 46px;
  padding: 0 22px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

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

.btn--light {
  width: 100%;
  min-height: 56px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.btn--light:hover {
  color: var(--ink);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.5);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  transition: text-underline-offset 0.25s ease;
}

.textlink:hover {
  color: var(--ink);
  text-underline-offset: 9px;
}

.textlink .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.textlink:hover .arrow {
  transform: translateX(4px);
}

/* ── Header ── */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 15px;
}

.site-nav__link {
  position: relative;
  color: var(--ink-2);
  text-decoration: none;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.site-nav__link:hover {
  color: var(--ink);
}

.site-nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ── Hero ── */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 96px);
  padding-block: clamp(48px, 7vw, 112px) clamp(56px, 7vw, 104px);
}

.hero__copy {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 30px);
}

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  align-self: flex-start;
  margin-top: 0.42em;
}

.hero__title {
  font-size: clamp(2.6rem, 5.6vw, 6rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.hero__lede {
  max-width: 33em;
  font-size: clamp(18px, 0.6vw + 14px, 22px);
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  margin-top: 6px;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.status__dot {
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  flex: none;
  border-radius: 50%;
  background: var(--offline);
}

.status__dot.is-online {
  background: var(--online);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 163, 122, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(47, 163, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 163, 122, 0); }
}

.hero__portrait {
  flex: 0 1 clamp(300px, 34vw, 540px);
  min-width: 0;
  margin-block: -32px -48px;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.hero__portrait img {
  width: 100%;
  height: auto;
}

.sketch {
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 70%);
  mask-image: radial-gradient(circle, #000 45%, transparent 70%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 50% 30%;
  mask-position: 50% 30%;
  -webkit-mask-size: 420% 420%;
  mask-size: 420% 420%;
  animation: sketch-in 2.6s var(--ease) 0.25s both;
}

@keyframes sketch-in {
  from { -webkit-mask-size: 0% 0%; mask-size: 0% 0%; opacity: 0.3; }
  to { -webkit-mask-size: 420% 420%; mask-size: 420% 420%; opacity: 1; }
}

/* Hero title: words rise in (JS splits the words; without JS the title just shows) */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: word-up 1s var(--ease) both;
  animation-delay: calc(120ms + var(--i, 0) * 60ms);
}

@keyframes word-up {
  to { transform: none; }
}

/* ── Proof line ── */

.proof {
  border-block: 1px solid var(--line);
}

.proof p {
  padding-block: 24px;
  font-size: clamp(16px, 0.4vw + 14px, 19px);
  color: var(--ink-2);
}

.proof strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ── Sections ── */

.section {
  padding-block: var(--section);
}

.section--soft {
  background: var(--soft);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: clamp(36px, 4vw, 64px);
}

.section__head > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 44em;
}

.section__title {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.section__lede {
  font-size: clamp(17px, 0.4vw + 15px, 20px);
  color: var(--muted);
}

/* Services */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 1.6vw, 28px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 2.4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: 0 28px 50px -30px rgba(35, 37, 40, 0.35);
}

.card__problem {
  font-size: 15px;
  color: var(--muted-2);
}

.card__title {
  font-size: clamp(22px, 1vw + 16px, 28px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.card__body {
  color: var(--ink-2);
}

.card__example {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.card__example b {
  font-weight: 600;
  color: var(--accent);
}

/* Work */

.cases {
  border-bottom: 1px solid var(--line-2);
}

.case {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr);
  gap: 16px clamp(24px, 5vw, 96px);
  padding-block: clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--line-2);
}

.case__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case__client {
  font-weight: 600;
}

.case__sector {
  font-size: 14px;
  color: var(--muted-2);
}

.case__link {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.case__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case__title {
  font-size: clamp(24px, 1.6vw + 14px, 36px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.12;
  transition: transform 0.45s var(--ease);
}

.case:hover .case__title {
  transform: translateX(8px);
}

.case__body p {
  max-width: 46em;
  color: var(--ink-2);
}

.case__result {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 600;
  color: var(--ink);
}

/* Testimonial */

.testimonial {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 24px clamp(24px, 5vw, 96px);
  align-items: start;
}

.testimonial__label {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial__logo {
  width: clamp(150px, 14vw, 200px);
  height: auto;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.testimonial:hover .testimonial__logo {
  filter: none;
  opacity: 1;
}

.testimonial blockquote {
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: pretty;
}

.testimonial blockquote .mark {
  color: var(--accent);
}

.testimonial__cite {
  margin-top: 28px;
  color: var(--muted);
}

.testimonial__cite strong {
  color: var(--ink);
}

/* Process */

.steps {
  position: relative;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 28px clamp(20px, 2vw, 36px);
}

.steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 20px;
  right: 0;
  height: 1.5px;
  background: var(--line-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.6, 0, 0.2, 1) 0.2s;
}

.js .steps.is-in::before,
.no-motion .steps::before {
  transform: scaleX(1);
}

html:not(.js) .steps::before {
  transform: scaleX(1);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 15px;
  font-weight: 700;
}

.step h3 {
  font-size: clamp(19px, 0.5vw + 16px, 22px);
  font-weight: 650;
}

.step p {
  color: var(--ink-2);
}

.note {
  margin-top: clamp(36px, 4vw, 56px);
  font-size: 15px;
  color: var(--muted);
}

/* Technical fine print */

.tech {
  border-top: 1px solid var(--line);
}

.tech__inner {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.2fr);
  gap: 12px clamp(24px, 5vw, 96px);
  padding-block: clamp(40px, 5vw, 64px);
}

.tech__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tech__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 52em;
  font-size: 15px;
  color: var(--muted);
}

.tech__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 600;
}

/* ── Contact ── */

.contact {
  background: var(--dark);
  color: #fff;
}

.contact a {
  color: #fff;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 112px);
  padding-block: var(--section) clamp(56px, 7vw, 104px);
}

.contact__pitch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__question {
  font-size: clamp(17px, 0.4vw + 15px, 20px);
  color: var(--on-dark-muted);
}

.contact__title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.contact__title span {
  color: var(--mint);
}

.contact__lede {
  max-width: 30em;
  color: var(--on-dark-2);
}

.direct {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  padding: clamp(20px, 2vw, 28px);
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
}

.direct__qr {
  width: clamp(104px, 9vw, 128px);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  border-radius: 10px;
}

.direct__lines {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-caps {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.direct__phone {
  font-size: clamp(22px, 1.4vw + 14px, 30px);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-decoration: none;
}

.direct__phone:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.contact .direct__email {
  color: var(--on-dark-2);
  overflow-wrap: anywhere;
}

.direct__hint {
  font-size: 13px;
  color: var(--on-dark-muted);
}

/* Form */

.form,
.form-success {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
}

.form__title {
  font-size: clamp(19px, 0.5vw + 16px, 22px);
  font-weight: 650;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 14px;
  color: var(--on-dark-2);
}

.field .optional {
  color: var(--on-dark-muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--dark-input);
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: #6f747b;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #9da1a8;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
}

.field__error {
  font-size: 13px;
  color: var(--error-on-dark);
}

.field__error:empty {
  display: none;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--error-on-dark);
}

.form__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form__note,
.form__status {
  font-size: 13px;
  color: var(--on-dark-muted);
}

.form__status:empty {
  display: none;
}

.form__status.is-error {
  color: var(--error-on-dark);
}

.form-success {
  justify-content: center;
}

.form-success h3 {
  font-size: clamp(26px, 1.6vw + 16px, 36px);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.form-success p {
  color: var(--on-dark-2);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px 36px;
  border-top: 1px solid var(--dark-line);
  font-size: 14px;
  color: var(--on-dark-muted);
}

.site-footer p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.site-footer__ar {
  font-family: var(--font-ar);
  color: #fff;
}

.site-footer__links {
  display: flex;
  gap: 22px;
}

/* ── Floating WhatsApp button ── */

.wa {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.wa.is-hidden {
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
}

.js .wa.is-waiting {
  opacity: 0;
  transform: translateY(16px) scale(0.9);
}

.wa__fab {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(35, 37, 40, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.25s ease;
}

.wa__fab:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.04);
}

.wa__fab .icon {
  width: 26px;
  height: 26px;
}

.wa__fab .icon-close {
  display: none;
  width: 22px;
  height: 22px;
}

.wa.is-open .wa__fab .icon-wa {
  display: none;
}

.wa.is-open .wa__fab .icon-close {
  display: block;
}

.wa__panel {
  width: 272px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--card-line);
  border-radius: 20px;
  box-shadow: 0 24px 48px -16px rgba(35, 37, 40, 0.28);
  transform-origin: bottom right;
  animation: pop 0.3s var(--ease) both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.wa__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.wa__title {
  font-size: 16px;
  font-weight: 650;
}

.wa__hint {
  font-size: 13px;
  color: var(--muted);
}

.wa__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px 0 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.wa__close:hover {
  background: var(--soft);
}

.wa__close .icon {
  width: 18px;
  height: 18px;
}

.wa__qr {
  width: 180px;
  height: 180px;
  align-self: center;
}

.wa__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.wa__lines a {
  color: var(--ink);
  text-decoration: none;
}

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

.wa__lines .wa__web {
  color: var(--accent);
  font-weight: 600;
}

/* ── Cursor follower (desktop only, real cursor stays visible) ── */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 250;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), opacity 0.3s ease;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-hover {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
}

.cursor.is-text {
  width: 4px;
  height: 28px;
  margin: -14px 0 0 -2px;
  border-radius: 2px;
}

/* ── Scroll reveals (JS adds .js; without JS everything simply shows) ── */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js [data-intro] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: intro 0.9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

@keyframes intro {
  to { opacity: 1; transform: none; }
}

/* ── Simple pages (404, thank you) ── */

.simple {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.simple__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-block: 80px;
}

.simple__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.simple__lede {
  font-size: 19px;
  color: var(--muted);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .case,
  .tech__inner,
  .testimonial {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-nav__link {
    display: none;
  }

  .hero__portrait {
    flex-basis: 100%;
    max-width: 340px;
    margin: 0 auto -24px;
  }

  .btn--primary {
    font-size: 16px;
    padding-left: 24px;
  }

  /* A QR code is no use on the phone it's displayed on */
  .direct__qr,
  .direct__hint {
    display: none;
  }
}

/* ── Reduced motion: everything visible, nothing moves ── */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal],
  .js [data-intro],
  .word > span {
    opacity: 1 !important;
    transform: none !important;
  }

  .steps::before {
    transform: scaleX(1);
  }

  .hero__portrait {
    transform: none;
  }

  .cursor {
    display: none;
  }
}
