/* =========================================================
   Adrian Rodriguez — Web Design & Implementation
   ========================================================= */

:root {
  --ink: #1f2340;
  --ink-soft: #505571;
  --muted: #5c6078;
  --blue: #2f5bd3;
  --light-blue: #d9e7ff;
  --coral: #ff6b61;
  --yellow: #ffd84d;
  --mint: #bdebc9;
  --paper: #fffdf8;
  --white: #fff;
  --line: rgba(31, 35, 64, .16);

  --radius: 18px;
  --border: 2px solid var(--ink);
  --header-h: 82px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 6px);
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }

h1, h2, h3 { font-weight: 850; margin: 0; }

h1 {
  max-width: 1060px;
  margin: 36px auto 30px;
  font-size: clamp(3.6rem, 8.2vw, 7.2rem);
  line-height: .94;
  letter-spacing: -.072em;
}

h2 {
  font-size: clamp(2.7rem, 5.4vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

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

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

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

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 8px;
  background: var(--ink); color: var(--white);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: 4px; background: var(--light-blue); pointer-events: none;
}
.scroll-progress__fill {
  height: 100%; background: var(--blue);
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 26px;
  min-height: 54px; padding: 14px 22px;
  border: 2px solid var(--blue); border-radius: 8px;
  background: var(--blue); color: var(--white);
  font-weight: 800; line-height: 1.2;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(31, 35, 64, .15); }
.button--small { min-height: 44px; padding: 10px 16px; gap: 16px; }
.button--dark { background: var(--ink); border-color: var(--ink); }
.button--outline { background: transparent; color: var(--ink); border-color: var(--ink); }

.text-link {
  display: inline-flex; align-items: center; gap: 18px;
  padding-bottom: 3px; border-bottom: 2px solid currentColor;
  font-weight: 800;
}

/* ---------- Top bar ---------- */
/* Contact details above the header. It scrolls away; the header below stays pinned. */
.topbar { background: var(--ink); color: #e6e8f2; font-size: .8rem; font-weight: 600; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px;
  min-height: 40px;
}
.topbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--yellow); }
.topbar__dot { color: var(--yellow); }

/* Phone and email icons before the links (drawn with CSS, so no HTML changes are needed). */
.topbar a[href^="tel:"],
.topbar a[href^="mailto:"] { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; }
.topbar a[href^="tel:"]::before,
.topbar a[href^="mailto:"]::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--yellow);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.topbar a[href^="tel:"]    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.topbar a[href^="mailto:"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
.topbar a:hover::before { background: currentColor; }

/* Language switch, in the top bar: a light, compact version for the dark background. */
.topbar .lang-switch {
  min-height: 30px; margin: 0; padding: 3px 9px; gap: 7px;
  color: var(--white); border-color: rgba(255, 255, 255, .3);
  font-size: .75rem;
}
.topbar .lang-switch:hover { color: var(--white); border-color: var(--yellow); }
.topbar .lang-switch__track { width: 30px; height: 18px; background: rgba(255, 255, 255, .28); }
.topbar .lang-switch__track::before { width: 12px; height: 12px; }
html[lang="es"] .topbar .lang-switch__track { background: var(--blue); }
html[lang="es"] .topbar .lang-switch__track::before { transform: translateX(12px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-color: var(--line); }

.nav { position: relative; min-height: var(--header-h); display: flex; align-items: center; }

.brand { font-size: 1.45rem; font-weight: 850; letter-spacing: -.06em; }
.brand span { color: var(--coral); }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: .92rem; font-weight: 700; }
.nav-links > a:not(.button):hover { color: var(--blue); }
.nav-links > a:not(.button) { padding-block: 10px; }  /* taller tap area on tablets; looks the same */

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  min-height: 44px; margin: 0 24px 0 auto; padding: 6px 10px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 99px;
  font-size: .875rem; font-weight: 800; cursor: pointer;
}
.lang-switch__track {
  display: block; width: 34px; height: 20px; padding: 3px;
  border-radius: 99px; background: var(--ink);
  transition: background-color .2s;
}
.lang-switch__track::before {
  content: ""; display: block; width: 14px; height: 14px;
  border-radius: 50%; background: var(--white);
  transition: transform .2s;
}
/* The Spanish page shows the switch in its "ES" position. */
html[lang="es"] .lang-switch__track { background: var(--blue); }
html[lang="es"] .lang-switch__track::before { transform: translateX(14px); }
.lang-switch:hover { border-color: var(--ink); }

/* Hamburger */
.menu-button {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 0; cursor: pointer;
}
.menu-button span:not(.sr-only) {
  display: block; height: 2px; margin: 5px 0;
  background: var(--ink); transition: transform .2s, opacity .2s;
}
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 100px 0 88px; text-align: center; }

.hero h1 em {
  position: relative; z-index: 0;
  font-style: normal; color: var(--blue); white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; z-index: -1;
  left: 2%; right: 0; bottom: -7px; height: 9px;
  border-radius: 99px; background: var(--yellow);
  transform: rotate(-1deg);
}
html[lang="es"] .hero h1 em { white-space: normal; }

.hero__intro {
  display: flex; align-items: center; gap: 28px;
  max-width: 760px; margin: 0 auto; text-align: left;
}
.hero__photo {
  width: 144px; height: 144px; flex: 0 0 144px;
  object-fit: cover; border: var(--border); border-radius: 50%;
  box-shadow: 5px 5px 0 var(--yellow);
}
.hero__copy { flex: 1; margin: 0; color: var(--ink-soft); font-size: 1.22rem; line-height: 1.65; }

.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px;
  margin-top: 36px;
}

.hero__note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px;
  max-width: 760px; min-height: 84px; margin: 72px auto 0; padding: 14px;
  background: var(--light-blue); border: var(--border); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  font-size: 1.05rem; font-weight: 850;
  transform: rotate(-1deg);
}
.hero__note b { color: var(--coral); font-size: 1.5rem; }

/* ---------- Specialties strip ---------- */
.strip { overflow: hidden; background: var(--yellow); border-block: var(--border); }
.strip__inner {
  display: flex; align-items: center; justify-content: center; gap: 34px;
  min-width: max-content; min-height: 62px; padding: 0 24px;
  font-size: .8rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase;
}
.strip__inner i { font-style: normal; color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }

.section-heading { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.section-heading > p:last-child:not(.eyebrow) {
  max-width: 650px; margin: 24px auto 0; color: var(--muted); font-size: 1.08rem;
}
.section-heading--light .eyebrow { color: var(--yellow); }

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

.service-card {
  display: flex; flex-direction: column; gap: 14px;
  min-height: 420px; padding: 28px;
  border: var(--border); border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform .2s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card--blue { background: var(--blue); color: var(--white); }
.service-card--yellow { background: var(--yellow); }
.service-card--coral { background: var(--coral); }
.service-card--mint { background: var(--mint); }
.service-card--sky { background: var(--light-blue); }

.service-card__num { font-size: .76rem; font-weight: 850; letter-spacing: .1em; }
.service-card__icon { margin: auto 0; font-size: 3.2rem; line-height: 1.6; }
.service-card h3 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.035em; }
.service-card p { margin: 0; font-size: .94rem; line-height: 1.55; opacity: .83; }
/* Five cards share one row on wide screens, so they are a little tighter. */
@media (min-width: 1101px) {
  .service-card { padding: 24px; }
  .service-card h3 { font-size: 1.28rem; }
}

/* ---------- Feature band ---------- */
.feature { padding: 110px 0; background: var(--light-blue); }
.feature__inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: center; }
.feature__copy h2 { font-size: clamp(2.7rem, 4.7vw, 4.6rem); }
.feature__copy > p:not(.eyebrow) { margin: 25px 0 30px; color: var(--ink-soft); font-size: 1.08rem; }

.feature__image {
  overflow: hidden;
  background: #eaf1f8; border: var(--border); border-radius: 20px;
  box-shadow: 13px 13px 0 var(--ink);
  transform: rotate(1.2deg);
}
.feature__image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Portfolio ---------- */
.projects { display: grid; gap: 34px; }

.project {
  display: grid; grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: 9px 9px 0 var(--ink);
}

/* The image area keeps the showcase images' 16:10 shape, so they show in full.
   The placeholder text shows only if the image is missing (the image covers it). */
.project__media {
  position: relative; display: grid; place-items: center;
  margin: 0; aspect-ratio: 16 / 10;
  background: var(--ink); border-right: var(--border);
}
.project__media::before {
  content: attr(data-placeholder);
  color: var(--yellow); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 850; letter-spacing: -.04em;
}
.project__media img {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center;
}

/* Side by side on larger screens: every second project puts its image on the right. */
@media (min-width: 1101px) {
  .project:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
  .project:nth-child(even) .project__media { order: 2; border-right: 0; border-left: var(--border); }
}

.project__body { align-self: center; padding: clamp(28px, 4vw, 52px); }
.project__meta {
  margin: 0 0 14px; color: var(--blue);
  font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase;
}
.project h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.045em; }
.project__body > p:not(.project__meta):not(.project__tech-label) { margin: 18px 0 28px; color: var(--ink-soft); font-size: 1.02rem; }

/* "Built with" technology tags */
.project__tech-label {
  margin: 20px 0 10px; color: var(--muted);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.project__tech { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.project__tech li {
  padding: 5px 12px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 99px;
  font-size: .82rem; font-weight: 800; line-height: 1.2;
}

/* ---------- Process ---------- */
.process { padding: 115px 0; background: var(--ink); color: var(--white); }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 0; padding: 0; list-style: none;
}
.steps li {
  min-height: 300px; padding: 26px;
  background: #2b304f; border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px;
}
.steps__num {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900;
}
.steps h3 { margin: 56px 0 12px; font-size: 1.45rem; }
.steps p { margin: 0; color: #c9ccdc; font-size: .93rem; }

/* ---------- Pricing ---------- */
.pricing { background: #f4f6fb; }
.pricing__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.price-card {
  --card-muted: #555a72;
  --card-line: var(--line);
  --card-check: var(--blue);
  display: flex; flex-direction: column;
  padding: 30px;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
}
.price-card--blue {
  --card-muted: #f2f5ff;
  --card-line: rgba(255, 255, 255, .42);
  --card-check: var(--yellow);
  background: var(--blue); color: var(--white);
}
.price-card--blue .button--outline { color: var(--white); border-color: var(--white); }
.price-card--blue .button--outline:hover { background: rgba(255, 255, 255, .13); }
.price-card--yellow { background: var(--yellow); }
.price-card--coral { background: var(--coral); }
.price-card--mint { background: var(--mint); }

.price-card__top h3 { font-size: 1.7rem; line-height: 1.6; letter-spacing: -.04em; }
.price-card__top p { min-height: 54px; margin: 8px 0 24px; color: var(--card-muted); }

.price-card small {
  display: block;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.price-card__once { padding: 22px 0 18px; border-top: 1px solid var(--card-line); }
.price-card__once strong { font-size: 3.3rem; line-height: 1; letter-spacing: -.06em; }
.price-card__monthly { padding: 18px 0; border-block: 1px solid var(--card-line); }
.price-card__monthly strong { font-size: 1.8rem; letter-spacing: -.045em; }
.price-card__once > span,
.price-card__monthly > span { color: var(--card-muted); font-size: .76rem; }
.price-card--yellow, .price-card--coral, .price-card--mint { --card-muted: #4a4f68; }

.price-card ul { margin: 24px 0 30px; padding: 0; list-style: none; }
.price-card li { padding: 8px 0; font-size: .9rem; }
.price-card li::before { content: "✓"; margin-right: 9px; color: var(--card-check); font-weight: 900; }
.price-card .button { margin-top: auto; }

.price-card--custom .price-card__top p { margin-bottom: 20px; }
.price-card--custom ul { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--card-line); }

.fine-print { margin: 24px 0 0; color: #777b8f; font-size: .78rem; text-align: center; }

/* ---------- Consultation ---------- */
.consult { padding: 110px 0; background: var(--blue); color: var(--white); }
.consult .eyebrow { color: var(--yellow); }
.consult__inner { display: grid; grid-template-columns: 1fr .75fr; gap: 100px; }
.consult__lead { margin: 0 0 28px; color: #e3e9ff; font-size: 1.16rem; }
.consult__list { margin: 0 0 32px; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .35); }
.consult__list li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.consult__list li::before { content: "✓"; margin-right: 10px; color: var(--yellow); font-weight: 900; }
.consult small { display: block; margin-top: 15px; color: #d9e1ff; }

/* ---------- Footer ---------- */
.footer { padding: 100px 0 34px; background: var(--yellow); }
.footer h2 { font-size: clamp(4rem, 10vw, 8.5rem); line-height: .84; }
.footer__email {
  display: inline-flex; gap: 30px; margin-top: 55px;
  border-bottom: 3px solid var(--ink);
  font-size: clamp(1.15rem, 2.2vw, 1.8rem); font-weight: 850;
  overflow-wrap: anywhere;
}
.footer__meta {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 90px; padding-top: 22px; border-top: var(--border);
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Blog ---------- */
.nav-links > a[aria-current="page"] { color: var(--blue); }

.page-title {
  margin: 0;
  font-size: clamp(2.7rem, 5.4vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.post-card {
  background: var(--white); border: var(--border); border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform .2s;
}
.post-card:hover { transform: translateY(-5px); }
.post-card__link { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 28px; }
.post-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 0; color: var(--muted); font-size: .8rem; font-weight: 700;
}
.post-card__tag {
  padding: 3px 10px; border: 1px solid var(--ink); border-radius: 99px;
  background: var(--yellow); color: var(--ink);
  font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
}
.post-card :is(h2, h3) { font-size: 1.45rem; line-height: 1.15; letter-spacing: -.035em; }
.post-card p:not(.post-card__meta) { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.post-card__more {
  display: inline-flex; gap: 12px; margin-top: auto; padding-top: 10px;
  color: var(--blue); font-weight: 800;
}

.blog-more { margin-top: 44px; text-align: center; }

/* Article */
.post { max-width: 760px; padding: 72px 0 110px; }
.post__back { margin-bottom: 48px; }
.post__header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: var(--border); }
.post__meta { margin: 22px 0 0; color: var(--muted); font-size: .9rem; font-weight: 700; }

.prose { color: var(--ink-soft); font-size: 1.12rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.2em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 {
  margin-top: 2em; color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.035em;
}
.prose strong { color: var(--ink); }
.prose a { color: var(--blue); border-bottom: 2px solid currentColor; font-weight: 700; }
.prose li + li { margin-top: .4em; }

.share { margin-top: 56px; padding-top: 28px; border-top: var(--border); }
.share[hidden], .share__button[hidden] { display: none; }
.share__title { margin: 0 0 16px; font-size: 1.1rem; letter-spacing: -.02em; }
.share__links { display: flex; flex-wrap: wrap; gap: 10px; }
.share__button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 99px;
  font-size: .9rem; font-weight: 800; line-height: 1.2; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.share__button:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.share__button--native { background: var(--blue); border-color: var(--blue); color: var(--white); }
.share__status { min-height: 1.6em; margin: 12px 0 0; color: var(--blue); font-size: .88rem; font-weight: 700; }

.post__cta {
  margin-top: 64px; padding: clamp(28px, 5vw, 44px);
  background: var(--light-blue); border: var(--border); border-radius: var(--radius);
  box-shadow: 9px 9px 0 var(--ink);
}
.post__cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.post__cta p { margin: 14px 0 26px; color: var(--ink-soft); }

/* ---------- 404 ---------- */
.not-found { padding: 90px 0 120px; text-align: center; }
.not-found__code {
  display: inline-block; margin: 0 0 36px; padding: 6px 34px;
  background: var(--yellow); border: var(--border); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  font-size: clamp(5rem, 16vw, 10rem); font-weight: 850; line-height: 1; letter-spacing: -.07em;
  transform: rotate(-2deg);
}
.not-found__code span { color: var(--blue); }
.not-found .page-title { max-width: 820px; margin-inline: auto; }
.not-found__copy { max-width: 560px; margin: 24px auto 0; color: var(--ink-soft); font-size: 1.12rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  /* Portfolio: image above text, so the image always shows in full. */
  .project { grid-template-columns: 1fr; }
  .project__media { border-right: 0; border-bottom: var(--border); }
  .pricing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Five services: three on top, two below */
  .services { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .service-card { grid-column: span 2; }
  .service-card:nth-child(n + 4) { grid-column: span 3; }
}

@media (max-width: 960px) {
  .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(n + 4) { grid-column: auto; }
  .service-card:last-child { grid-column: 1 / -1; }
  .feature__inner, .consult__inner { grid-template-columns: 1fr; gap: 50px; }
  .service-card { min-height: 350px; }
  .price-card__top p { min-height: 0; }
  .nav-links { gap: 16px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1180px); }

  .site-header { background: var(--paper); }
  /* Phones: phone and email become icon-only buttons (their text is still read by screen readers). */
  .topbar__group { gap: 4px; }
  .topbar__group .topbar__dot { display: none; }
  .topbar a[href^="tel:"],
  .topbar a[href^="mailto:"] { justify-content: center; width: 40px; height: 40px; gap: 0; font-size: 0; }
  .topbar a[href^="tel:"]::before,
  .topbar a[href^="mailto:"]::before { width: 18px; height: 18px; }
  .topbar__group:first-child { margin-left: -11px; }  /* line the first icon up with the logo */
  .menu-button { display: block; margin-left: auto; }
  .nav-links {
    position: absolute; left: -16px; right: -16px; top: calc(var(--header-h) - 1px);
    display: none; flex-direction: column; align-items: stretch; gap: 18px;
    padding: 24px; background: var(--paper); border-bottom: var(--border);
  }
  .nav-links.is-open { display: flex; }
  .nav-links .button { width: 100%; }

  .hero { padding: 72px 0 68px; }
  h1 { font-size: clamp(3.1rem, 15vw, 5.7rem); }
  .hero h1 em { white-space: normal; }
  .hero__copy { font-size: 1.06rem; }
  .hero__note { gap: 10px; min-height: 72px; margin-top: 56px; font-size: .85rem; box-shadow: 7px 7px 0 var(--ink); }

  .strip__inner { justify-content: flex-start; }

  .section { padding: 84px 0; }
  .section-heading { margin-bottom: 44px; }
  .services, .steps, .pricing__grid, .posts { grid-template-columns: 1fr; }
  .service-card:last-child { grid-column: auto; }
  .post { padding: 48px 0 80px; }
  .service-card { min-height: 330px; }
  .steps li { min-height: 260px; }
  .feature, .process, .consult { padding: 80px 0; }
  .consult__inner { gap: 42px; }

  .footer { padding-top: 80px; }
  .footer__meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero__intro { flex-direction: column; gap: 24px; text-align: center; }
  .hero__photo { width: 120px; height: 120px; flex-basis: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
