/* ==========================================================================
   Cowboy IT — site styles
   Plain CSS, no framework. Colours and type live in :root below.
   ========================================================================== */

:root {
  /* Brand */
  --orange: #F94D1C;        /* accents, matches the logo */
  --rust: #D63D0E;          /* buttons + links on light backgrounds (passes contrast) */
  --rust-dark: #B3320A;

  /* Neutrals */
  --ink: #18181A;
  --ink-2: #232327;
  --ink-3: #2E2E34;
  --text: #45474D;
  --muted: #6C6F76;
  --sand: #F7F3EC;
  --sand-2: #EFE8DC;
  --paper: #FFFFFF;
  --line: #E6DED1;
  --line-dark: rgba(255, 255, 255, 0.12);
  --ok: #2E9E54;

  /* Type */
  --font-display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 26, 0.05);
  --shadow: 0 1px 2px rgba(24, 24, 26, 0.04), 0 12px 32px -12px rgba(24, 24, 26, 0.18);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.45);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.2; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); font-weight: 700; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.72); }
.section--ink h2, .section--ink h3 { color: #fff; }
.topo { position: relative; isolation: isolate; }
.topo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/topo-dark.svg") center / cover no-repeat;
}
.section--ink.topo::before, .hero.topo::before, .page-hero.topo::before, .cta-band.topo::before { background-image: url("../img/topo-light.svg"); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { font-size: 1.12rem; color: var(--muted); margin: 0; }
.section--ink .section-head p { color: rgba(255, 255, 255, 0.66); }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 680px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust);
  margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(45deg); }
.hero .eyebrow, .page-hero .eyebrow, .section--ink .eyebrow { color: #F5B9A3; }
.cta-band .eyebrow { color: var(--ink); }
.cta-band .eyebrow::before { background: var(--ink); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--rust); --btn-fg: #fff; --btn-border: var(--rust);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 1rem/1 var(--font-body); letter-spacing: 0.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--btn-border); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { --btn-bg: var(--rust-dark); --btn-border: var(--rust-dark); color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(214, 61, 14, 0.6); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.35); }
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-border: #fff; box-shadow: none; }
.btn--dark { --btn-bg: var(--ink); --btn-border: var(--ink); }
.btn--dark:hover { --btn-bg: #000; --btn-border: #000; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line); }
.btn--ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-border: var(--ink); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--rust); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.section--ink .link-arrow { color: #F5B9A3; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav ul a {
  display: block; padding: 10px 16px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; color: rgba(255, 255, 255, 0.82); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav ul a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav ul a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--orange); }
.header-phone:hover { color: var(--orange); }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-mobile-extra { display: none; }

@media (max-width: 1080px) { .header-phone { display: none; } }
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    padding: 12px var(--gutter) 24px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav ul a { padding: 14px 12px; font-size: 1.15rem; border-radius: var(--radius-sm); }
  .nav-mobile-extra { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-dark); }
  .nav-mobile-extra .btn { width: 100%; }
}

/* ---------- Home hero ---------- */
.hero { background: var(--ink); color: rgba(255, 255, 255, 0.74); padding-top: clamp(40px, 6vw, 88px); overflow: hidden; }
.hero .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 0.35em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); max-width: 580px; }
.hero .btn-row { margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.55); }
.horizon { display: block; width: 100%; height: clamp(80px, 11vw, 160px); margin-top: clamp(32px, 5vw, 56px); }
@media (max-width: 900px) {
  .hero .split { grid-template-columns: minmax(0, 1fr); }
}

/* "Your IT, handled" card */
.handled {
  background: var(--paper); color: var(--text); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 10px; max-width: 460px; width: 100%; justify-self: end;
}
.handled__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; }
.handled__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.handled__status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--ok); background: #E8F5EC; padding: 5px 10px; border-radius: 999px; }
.handled__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(46, 158, 84, 0.2); }
.handled ul { list-style: none; display: grid; gap: 6px; }
.handled li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 26px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--sand); }
.handled li .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--paper); display: grid; place-items: center; color: var(--rust); box-shadow: var(--shadow-sm); }
.handled li .ic svg { width: 20px; height: 20px; }
.handled li strong { display: block; color: var(--ink); font-size: 0.98rem; line-height: 1.25; }
.handled li small { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
.handled li .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.handled li .tick svg { width: 14px; height: 14px; stroke-width: 3; }
.handled__foot { padding: 14px 16px 8px; font-size: 0.92rem; color: var(--muted); }
.handled__foot a { font-weight: 600; }
.js .handled li { opacity: 0; transform: translateX(10px); animation: row-in .5s ease forwards; }
.js .handled li:nth-child(2) { animation-delay: .1s; }
.js .handled li:nth-child(3) { animation-delay: .2s; }
.js .handled li:nth-child(4) { animation-delay: .3s; }
.js .handled li:nth-child(5) { animation-delay: .4s; }
@keyframes row-in { to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .handled { justify-self: start; } }
@media (max-width: 420px) {
  .handled li { grid-template-columns: 36px minmax(0, 1fr) 24px; gap: 12px; padding: 11px 12px; }
  .handled li .ic { width: 36px; height: 36px; }
}

/* ---------- Inner page hero ---------- */
.page-hero { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 920px; }
.page-hero p.lede { font-size: clamp(1.08rem, 1.6vw, 1.2rem); max-width: 680px; margin: 0; }
.page-hero .btn-row { margin-top: 28px; }

/* ---------- Icon tile ---------- */
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: rgba(249, 77, 28, 0.1); color: var(--rust);
}
.icon-tile svg { width: 26px; height: 26px; }
.section--ink .icon-tile { background: rgba(249, 77, 28, 0.16); color: var(--orange); }

/* ---------- Services list (home) ---------- */
.svc-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); }
.svc-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.svc-list h3 { margin-bottom: 6px; }
.svc-list p { margin: 0; }
.svc-list a { color: inherit; text-decoration: none; }
.svc-list a:hover h3 { color: var(--rust); }
@media (max-width: 760px) { .svc-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); counter-reset: step; }
.steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--orange); margin-bottom: 18px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Case study highlight ---------- */
.case-feature {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.case-feature__main { padding: clamp(28px, 4vw, 56px); }
.case-feature__main h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.case-feature__aside { background: var(--ink); color: rgba(255, 255, 255, 0.78); padding: clamp(28px, 4vw, 56px); }
.case-feature__aside h3 { color: #fff; font-size: 1.2rem; margin-bottom: 1.1em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 32px; }
.stat { background: var(--sand); border-radius: var(--radius-sm); padding: 16px 14px; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; color: var(--ink); margin-bottom: 6px; white-space: nowrap; }
.stat span { display: block; font-size: 0.86rem; line-height: 1.35; color: var(--muted); }
.ba-list { list-style: none; display: grid; gap: 14px; }
.ba-list li { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.2fr); gap: 10px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); font-size: 0.95rem; line-height: 1.4; }
.ba-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ba-list .before { color: rgba(255, 255, 255, 0.5); }
.ba-list .after { color: #fff; font-weight: 600; }
.ba-list svg { width: 18px; height: 18px; color: var(--orange); }
@media (max-width: 900px) { .case-feature { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { display: flex; align-items: center; gap: 14px; }
  .stat strong { margin: 0; flex: none; min-width: 112px; }
  .ba-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ba-list svg { display: none; }
}

/* ---------- Industries ---------- */
.industries { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.industries li { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.industries .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.industries .icon-tile svg { width: 22px; height: 22px; }
.industries h3 { font-size: 1.15rem; margin-bottom: 4px; }
.industries p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 960px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .industries { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services page ---------- */
.svc-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.svc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.2vw, 40px); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.svc-card__num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #C3B8A7; }
.svc-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 10px; }
.svc-card > p { margin-bottom: 20px; }
.svc-card:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249, 77, 28, 0.18); }
@media (max-width: 860px) { .svc-detail { grid-template-columns: minmax(0, 1fr); } }

/* Check list */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); line-height: 1.5; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- About ---------- */
.callout {
  background: var(--ink); color: rgba(255, 255, 255, 0.75); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
}
.callout p.big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; color: #fff; margin-bottom: 0.6em; }
.callout p.big em { font-style: normal; color: var(--orange); }
.principle { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 30px); }
.principle .icon-tile { margin-bottom: 18px; }
.principle h3 { font-size: 1.25rem; margin-bottom: 6px; }
.principle p { margin: 0; }
.where { display: flex; gap: 20px; align-items: flex-start; }
.where p { margin: 0; }

/* ---------- Case study page ---------- */
.facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.facts li { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 16px 18px; }
.facts span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 4px; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; color: #fff; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-cta { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.aside-cta h3 { font-size: 1.35rem; }
.aside-cta .btn { width: 100%; margin-top: 8px; }
.aside-cta .aside-phone { display: block; text-align: center; margin-top: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.aside-cta .aside-phone:hover { color: var(--rust); }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
}

.prose { font-size: 1.08rem; line-height: 1.75; max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose p.lead { font-size: 1.22rem; line-height: 1.6; color: var(--ink-2); }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 1.7em 0 0.6em; }
.prose h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; margin: 1.6em 0 0.5em; }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: 0.45em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--rust); }
.prose .table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

/* ---------- Work: device mockups ---------- */
.mockup { position: relative; padding: 0 13% 9% 0; }
.browser { border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--sand-2); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3C7B5; flex: none; }
.browser__url {
  margin-left: 10px; flex: 1; min-width: 0; height: 22px; border-radius: 999px; background: var(--paper);
  display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 0.75rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__url svg { width: 11px; height: 11px; flex: none; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 27%; padding: 5px; border-radius: 24px;
  background: var(--ink); box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; aspect-ratio: 9 / 18.5; object-fit: cover; object-position: top; border-radius: 19px; }
.phone::before { content: ""; position: absolute; top: 11px; left: 50%; width: 26%; height: 6px; border-radius: 999px; background: var(--ink); transform: translateX(-50%); z-index: 1; }

/* Work page rows */
.work-list { display: grid; gap: clamp(56px, 8vw, 112px); }
.work-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.work-row:nth-child(even) .mockup { order: 2; }
.work-row h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 10px; }
.work-row .pill { margin-bottom: 14px; }
.work-row > div > p { font-size: 1.08rem; }
.work-row .checklist { margin: 20px 0 28px; }
@media (max-width: 900px) {
  .work-row { grid-template-columns: minmax(0, 1fr); }
  .work-row:nth-child(even) .mockup { order: 0; }
}
.pill {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: rgba(249, 77, 28, 0.1); color: var(--rust); font-size: 0.8rem; font-weight: 600;
}

/* Homepage "websites we've built" cards */
.site-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.site-card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: inherit; }
.site-card .browser { border-color: var(--line-dark); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6); transition: transform .3s; }
.site-card .browser__bar { background: var(--ink-3); }
.site-card .browser__bar i { background: rgba(255, 255, 255, 0.22); }
.site-card .browser__url { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.site-card:hover .browser { transform: translateY(-4px); }
.site-card h3 { margin: 0 0 4px; font-size: 1.35rem; }
.site-card p { margin: 0; font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); }
.site-card:hover h3 { color: var(--orange); }
@media (max-width: 900px) { .site-cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); padding-block: clamp(56px, 7vw, 96px); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--ink); max-width: 700px; margin: 0; font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
.cta-band p { color: rgba(24, 24, 26, 0.8); margin: 12px 0 0; font-size: 1.08rem; max-width: 600px; }
.cta-band .btn--light { --btn-fg: var(--ink); --btn-border: rgba(24, 24, 26, 0.35); }
.cta-band .btn--light:hover { --btn-bg: var(--ink); --btn-fg: #fff; --btn-border: var(--ink); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
.contact-info { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-item h3 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.contact-item p { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.1rem; }
.contact-item a { color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--rust); }
.contact-item small { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); }
.form-panel h2 { font-size: clamp(1.6rem, 2.8vw, 2rem); margin-bottom: 8px; }
.form-panel > p { color: var(--muted); margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--sand); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #D3C7B5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); background-color: var(--paper); box-shadow: 0 0 0 4px rgba(249, 77, 28, 0.14); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #E7F6EC; color: #1C6B34; }
.form-status.is-error { background: #FDECE7; color: #9A2A08; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.64); padding-top: clamp(56px, 7vw, 88px); font-size: 0.97rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-contact { list-style: none; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--orange); flex: none; margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); }
.social a:hover { border-color: var(--orange); background: var(--orange); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; }
.not-found .big { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--orange); margin-bottom: 8px; }
.not-found h1 { font-size: clamp(2rem, 4vw, 3rem); }
.not-found .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- Utilities ---------- */
.stack-lg > * + * { margin-top: clamp(28px, 4vw, 48px); }
.text-lg { font-size: 1.12rem; }
.muted { color: var(--muted); }

/* Reveal on scroll (enabled by JS only, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .js .reveal, .js .handled li { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .article-aside { display: none; }
}
