/* Self-hosted fonts (from Google Fonts, SIL Open Font License) */

/* Bricolage Grotesque, latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Bricolage Grotesque, latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Instrument Sans, latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Instrument Sans, latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("assets/fonts/instrument-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Morne Studios
   ========================================================================== */

:root {
  --ink: #14231c;
  --ink-2: #44524b;
  --ink-3: #6b7770;
  --paper: #f5f2ea;
  --paper-2: #ebe6d8;
  --card: #fffdf8;
  --accent: #ff5b2e;
  --accent-ink: #b8380f;
  --moss: #2f6b4f;
  --line: rgba(20, 35, 28, 0.13);
  --line-strong: rgba(20, 35, 28, 0.28);

  --dark: #101b16;
  --dark-2: #1a2a22;
  --dark-line: rgba(245, 242, 234, 0.14);
  --dark-text: #f5f2ea;
  --dark-muted: #a9b5ae;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 28, 0.06), 0 12px 32px -12px rgba(20, 35, 28, 0.22);
  --shadow-lg: 0 2px 4px rgba(20, 35, 28, 0.06), 0 30px 60px -20px rgba(20, 35, 28, 0.35);
  --wrap: 1180px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--accent);
  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;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), 100% - 64px);
  }
}

/* --- Buttons -------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.button-ghost {
  background: transparent;
  box-shadow: none;
}

.button-ghost:hover {
  background: var(--card);
  box-shadow: 3px 3px 0 var(--ink);
}

.button-small {
  min-height: 42px;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.button-block {
  width: 100%;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a:not(.button) {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.nav a:not(.button):hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--card);
    cursor: pointer;
  }

  .nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(20, 35, 28, 0.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav a:not(.button) {
    padding: 14px 4px;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
  }

  .nav .button {
    margin-top: 16px;
    min-height: 52px;
  }
}

/* --- Shared section bits -------------------------------------------------- */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 + .section-lede {
  margin-top: 1.25rem;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 48px;
  max-width: none;
}

.section-head-row > div {
  max-width: 640px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.section-lede {
  font-size: 1.125rem;
  color: var(--ink-2);
}

.section-note {
  max-width: 320px;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero::before {
  /* Faint contour lines: a nod to the mornes */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 30%, transparent 58%, var(--line) 58.2%, transparent 58.6%),
    radial-gradient(ellipse 60% 50% at 85% 30%, transparent 68%, var(--line) 68.2%, transparent 68.6%),
    radial-gradient(ellipse 60% 50% at 85% 30%, transparent 78%, var(--line) 78.2%, transparent 78.6%),
    radial-gradient(ellipse 60% 50% at 85% 30%, transparent 88%, var(--line) 88.2%, transparent 88.6%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(48px, 6vw, 72px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.kicker {
  margin-bottom: 1.5rem;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 0.875rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
}

.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  position: relative;
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.22em;
  background: var(--accent);
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-12deg);
}

.lede {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--moss)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.hero-shot {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.browser {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(1.2deg);
  transition: transform 0.3s ease;
}

.hero-shot:hover .browser {
  transform: rotate(0deg) translateY(-4px);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.browser-bar span:first-child {
  background: var(--accent);
}

.browser-bar p {
  flex: 1;
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--card);
  font-size: 0.75rem;
  color: var(--ink-3);
}

.hero-tag {
  position: absolute;
  left: -12px;
  bottom: -28px;
  display: grid;
  gap: 2px;
  max-width: 300px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-2deg);
}

.hero-tag small {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .browser {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .hero-tag {
    left: 8px;
    right: 24px;
    max-width: none;
  }
}

/* --- Restoration / compare ------------------------------------------------ */

.restore {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.restore-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1000px) {
  .restore-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px 72px;
    align-items: end;
  }

  .restore-grid .compare {
    grid-column: 1 / -1;
    margin-top: 24px;
  }
}

.restore h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
}

.restore .section-lede {
  margin-top: 1.25rem;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2314231c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 80% no-repeat;
}

.checklist strong {
  color: var(--ink);
  font-weight: 600;
}

.compare {
  position: relative;
  margin: 0;
}

.compare-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  touch-action: pan-y;
}

.compare-pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
}

.compare-after {
  clip-path: inset(0 0 0 var(--pos));
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--ink);
  pointer-events: none;
}

/* The knob follows the divider but never leaves the frame */
.compare-knob {
  position: absolute;
  top: 50%;
  left: clamp(24px, var(--pos), calc(100% - 24px));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px rgba(20, 35, 28, 0.25);
  pointer-events: none;
  transition: transform 0.15s ease;
}

.compare-stage.is-dragging .compare-knob {
  transform: translate(-50%, -50%) scale(1.12);
}

/* Kept for keyboard users; pointer dragging is handled on the stage */
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.compare:has(.compare-range:focus-visible) .compare-stage {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.compare-label {
  position: absolute;
  z-index: 2;
  top: -14px;
  border: 2px solid var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.compare-label[aria-pressed="true"] {
  background: var(--accent);
  color: var(--ink);
}

.compare-label-before {
  left: 16px;
}

.compare-label-after {
  right: 16px;
}

.compare figcaption {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.compare-pane img {
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.compare figcaption {
  display: grid;
  gap: 4px;
}

.compare-notes {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: note;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

@media (min-width: 560px) {
  .compare-notes {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 24px;
  }
}

.compare-notes li {
  position: relative;
  padding-left: 34px;
  counter-increment: note;
}

.compare-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.compare-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 4px 0 12px;
  font-size: 1rem;
}

.compare-links a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.compare-links a + a {
  font-weight: 500;
  color: var(--ink-2);
  border-bottom-color: var(--line-strong);
}

.compare-notes b {
  color: var(--ink);
  font-weight: 600;
}

/* --- Featured work (dark) ------------------------------------------------- */

.work {
  background: var(--dark);
  color: var(--dark-text);
}

.work .eyebrow {
  color: #ff8a66;
}

.work h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.work .section-lede {
  color: var(--dark-muted);
}

.case {
  display: grid;
  gap: 56px;
}

@media (min-width: 1000px) {
  .case {
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
    align-items: start;
  }
}

.case-shots {
  position: relative;
  padding-bottom: 18%;
}

.case-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.case-shot-main {
  width: 88%;
}

.case-shot-float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62%;
  border: 2px solid var(--accent);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 0 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--dark-line);
}

.case-facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.case-facts dd {
  margin: 4px 0 0;
  font-weight: 500;
}

.feature-list {
  display: grid;
  gap: 24px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.feature-list h3 {
  font-size: 1.125rem;
}

.feature-list p {
  margin-top: 6px;
  color: var(--dark-muted);
}

.work .button {
  border-color: var(--dark-text);
  box-shadow: 3px 3px 0 var(--dark-text);
}

.work .button:hover {
  box-shadow: 5px 5px 0 var(--dark-text);
}

/* --- Concepts ------------------------------------------------------------- */

.concept-grid {
  display: grid;
  gap: clamp(48px, 6vw, 72px) 40px;
}

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

.concept-media {
  position: relative;
  display: block;
  padding: 0 14% 9% 0;
  text-decoration: none;
}

.concept-desktop {
  display: block;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.concept-bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}

.concept-bar i {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.concept-bar i:first-child {
  background: var(--accent);
}

.concept-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: var(--ink);
  box-shadow: 0 24px 40px -16px rgba(20, 35, 28, 0.55);
  transition: transform 0.3s ease;
}

.concept-phone img {
  border-radius: 16px;
}

.concept-media:hover .concept-desktop {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
}

.concept-media:hover .concept-phone {
  transform: translateY(-8px) rotate(2deg);
}

.concept-body {
  margin-top: 28px;
}

.concept-kind {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.concept-body h3 {
  margin-top: 6px;
  font-size: 1.75rem;
}

.concept-body > p:not(.concept-kind) {
  max-width: 34rem;
  margin-top: 10px;
  color: var(--ink-2);
}

.concept-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.concept-feats li {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
}

.concept-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.concept-link:hover {
  color: var(--accent-ink);
}

/* --- Services ------------------------------------------------------------- */

.services {
  background: var(--paper-2);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.service {
  grid-column: span 6;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

@media (min-width: 720px) {
  .service-feature {
    grid-column: span 3;
  }
  .service:not(.service-feature) {
    grid-column: span 3;
  }
}

.service-feature {
  padding: 36px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.service-feature h3 {
  font-size: 1.75rem;
}

.service-num {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent-ink);
}

.service p {
  margin-top: 10px;
  color: var(--ink-2);
}

.service ul {
  display: grid;
  gap: 6px;
  margin: 20px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-weight: 500;
}

.service ul li::before {
  content: "→ ";
  color: var(--accent-ink);
}

/* --- Packages ------------------------------------------------------------- */

.package-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .package-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
}

.package h3 {
  font-size: 1.75rem;
}

.package-for {
  margin-top: 8px;
  color: var(--ink-2);
}

.package ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 32px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.package li {
  display: flex;
  gap: 10px;
}

.package li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--moss)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.package .button {
  margin-top: auto;
}

.package-pop {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--dark-text);
  box-shadow: 8px 8px 0 var(--accent);
}

.package-pop .package-for {
  color: var(--dark-muted);
}

.package-pop ul {
  border-top-color: var(--dark-line);
}

.package-pop li::before {
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2314231c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.package-pop .button {
  border-color: var(--dark-text);
  box-shadow: 3px 3px 0 var(--dark-text);
}

.package-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.package-addon {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  text-align: center;
}

.package-addon b {
  color: var(--ink);
}

/* --- Process -------------------------------------------------------------- */

.process {
  padding-top: 0;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.step-num {
  position: absolute;
  top: -20px;
  left: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
}

.steps li:first-child .step-num {
  background: var(--accent);
}

.steps p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  background: var(--card);
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 1000px) {
  .faq-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 72px;
  }
}

.faq .section-lede a {
  color: var(--accent-ink);
  font-weight: 600;
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line-strong);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
}

.faq-list details p {
  max-width: 60ch;
  padding-bottom: 22px;
  color: var(--ink-2);
}

/* --- Contact (dark) ------------------------------------------------------- */

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

.contact-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 1000px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: start;
  }
}

.contact .eyebrow {
  color: #ff8a66;
}

.contact-copy > p {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--dark-muted);
}

.contact-links {
  display: grid;
  gap: 12px;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-links a,
.contact-links button {
  display: grid;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  background: var(--dark-2);
  color: var(--dark-text);
  font: 500 1.0625rem var(--font-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-links a:hover,
.contact-links button:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
}

.contact-links small {
  margin-left: 8px;
  font-size: 0.8125rem;
  color: #ff8a66;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border: 2px solid var(--dark-text);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
}

.field-row {
  display: grid;
  gap: 18px;
}

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

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--ink-3);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font: 400 1rem var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}

.form-note {
  font-size: 0.875rem;
  color: var(--ink-3);
  text-align: center;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding-block: 40px 100px;
  background: var(--dark);
  color: var(--dark-muted);
  border-top: 1px solid var(--dark-line);
  font-size: 0.9375rem;
}

@media (min-width: 720px) {
  .site-footer {
    padding-bottom: 40px;
  }
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.brand-footer {
  color: var(--dark-text);
}

/* --- Mobile sticky CTA ---------------------------------------------------- */

.mobile-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transform: translateY(140%);
  transition: transform 0.25s ease;
}

.mobile-cta.is-visible {
  transform: none;
}

@media (min-width: 720px) {
  .mobile-cta {
    display: none;
  }
}

/* --- Reveal on scroll ----------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Case study page
   ========================================================================== */

.cs-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px);
}

.back-link {
  display: flex;
  width: fit-content;
  gap: 6px;
  margin-bottom: 28px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
}

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

.cs-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.04em;
}

.cs-hero .lede {
  max-width: 44rem;
}

.cs-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  margin: 40px 0 0;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}

.cs-facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.cs-facts dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.cs-banner {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.cs-banner .browser {
  transform: none;
}

.cs-body {
  display: grid;
  gap: 40px;
  padding-block: clamp(56px, 8vw, 104px);
}

@media (min-width: 1000px) {
  .cs-body {
    grid-template-columns: 280px 1fr;
    gap: 72px;
  }
}

.cs-body + .cs-body {
  padding-top: 0;
}

.cs-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.cs-prose {
  display: grid;
  gap: 1.1rem;
  max-width: 44rem;
  font-size: 1.125rem;
  color: var(--ink-2);
}

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

.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cs-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.cs-card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
}

.cs-gallery {
  display: grid;
  gap: 28px;
}

.cs-gallery figure {
  margin: 0;
}

.cs-gallery img {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}

.cs-gallery figcaption {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-cta {
  padding-block: clamp(72px, 10vw, 120px);
  background: var(--dark);
  color: var(--dark-text);
  text-align: center;
}

.cs-cta h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.cs-cta p {
  max-width: 36rem;
  margin: 1.25rem auto 2rem;
  color: var(--dark-muted);
  font-size: 1.125rem;
}

.cs-cta .button {
  border-color: var(--dark-text);
  box-shadow: 3px 3px 0 var(--dark-text);
}

/* ==========================================================================
   Simple pages (thanks, privacy, 404)
   ========================================================================== */

.simple-page {
  padding-block: clamp(56px, 9vw, 120px);
}

.simple-inner {
  max-width: 760px;
}

.simple-inner h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.035em;
}

.simple-inner .lede {
  max-width: 40rem;
}

.simple-steps {
  display: grid;
  gap: 14px;
  margin: 36px 0 0;
  padding: 24px 28px 24px 48px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink-2);
}

.simple-steps b {
  color: var(--ink);
}

.simple-page .hero-actions {
  margin-top: 40px;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.prose p:not(.eyebrow),
.prose ul {
  margin-top: 0.9rem;
  color: var(--ink-2);
}

.prose ul {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}

.prose b {
  color: var(--ink);
}

.prose a {
  color: var(--accent-ink);
  font-weight: 600;
}

.footer-links a {
  color: inherit;
}

.footer-links a:hover {
  color: var(--dark-text);
}
