/* Reformat Studio website (9 Oct 2026). Layout and system modelled on wdsw.co.uk at Jay's direction, on a
   white body (Jay: white, not cream): white, light grey and near-black sections with large rounded corners, dot and grid textures, pill buttons, three-screen
   project cards. Type: the Reformat Labs fonts, Inter for headings and text, DM Sans for small labels. */

:root {
  --paper: #ffffff;
  --paper-2: #f5f5f3;
  --card: #ffffff;
  --white: #ffffff;
  --ink: #14140f;
  --ink-2: #2a2924;
  --text: #4b4a45;
  --muted: #66655f;
  --faint: #8c8b85;
  --line: #d8d6ce;
  --line-2: #e6e4dd;
  --radius-xl: 56px;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --pad: clamp(64px, 7vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

/* Section backgrounds. A rounded section overlaps the one before it, so its corners show the colour behind. */
.s { position: relative; padding-block: var(--pad); }
.s--paper { background: var(--paper); }
.s--paper2 { background: var(--paper-2); }
.s--white { background: var(--white); }
.s--ink { background: var(--ink); color: #ffffff; }
.s--dots { background-image: radial-gradient(rgba(20, 20, 15, 0.09) 1px, transparent 1.4px); background-size: 14px 14px; }
.s--ink.s--grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.s--round-b { border-radius: 0 0 var(--radius-xl) var(--radius-xl); z-index: 2; }
.s--round-t { border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-top: calc(-1 * var(--radius-xl)); padding-top: calc(var(--pad) * 0.7 + var(--radius-xl)); z-index: 3; }
.s--round-t.s--round-b { border-radius: var(--radius-xl); }
.s--under { margin-top: calc(-1 * var(--radius-xl)); padding-top: calc(var(--pad) * 0.8 + var(--radius-xl)); z-index: 1; }
.s--tight { padding-block: clamp(56px, 6vw, 88px); }

/* Labels and headings */
.label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}
.label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s--ink .label { color: #a3a29b; }
.mono { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.h1 { margin: 0; font-weight: 600; font-size: clamp(40px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -0.045em; max-width: 680px; }
.h2 { margin: 0; font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.04em; }
.h3 { margin: 0; font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.035em; }
.lede { margin: 20px 0 0; max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); color: var(--text); }
.s--ink .lede { color: #a3a29b; }
.body { color: var(--text); }
.body p { margin: 0 0 16px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(36px, 4vw, 56px); }
.head .h2 { margin-top: 14px; }

/* Buttons and links */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 'Inter', sans-serif; text-decoration: none; cursor: pointer; border: 1px solid var(--ink); transition: background 0.2s, color 0.2s;
}
.btn--ink { background: var(--ink); color: #ffffff; }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #ffffff; }
.btn--wide { min-width: 260px; }
.dotlink { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15px; text-decoration: none; }
.dotlink::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dotlink:hover { border-bottom-color: var(--ink); }
.s--ink .dotlink { border-bottom-color: #3a3933; }

/* Header */
.hdr { background: var(--paper); }
.hdr__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; }
.nav > a, .nav__drop > a { text-decoration: none; padding-block: 8px; }
.nav > a:hover, .nav__drop > a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__drop { position: static; }
.hdr__in { position: relative; }
.nav__drop > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
/* Services mega menu: the four packages as tiles, then a row linking to the comparison. */
.mega { position: absolute; left: 50%; top: calc(100% - 6px); transform: translateX(-50%); width: min(920px, calc(100vw - 2 * var(--gutter))); padding-top: 10px; display: none; z-index: 30; }
.nav__drop:hover .mega, .nav__drop:focus-within .mega { display: block; }
.mega__in { background: var(--white); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(20, 20, 15, 0.35); overflow: hidden; }
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px; }
.mega__item { display: block; padding: 10px; border-radius: 14px; text-decoration: none; }
.mega__item:hover { background: var(--paper-2); }
.mega__ill { height: 104px; border-radius: 12px; background-color: var(--paper-2); background-image: radial-gradient(rgba(20, 20, 15, 0.08) 1px, transparent 1.4px); background-size: 12px 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mega__ill > * { transform: scale(0.5); flex: none; }
.mega__name { display: block; margin-top: 12px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.mega__short { display: block; margin-top: 4px; font-size: 13px; color: var(--text); line-height: 1.45; }
.mega__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line-2); font-size: 14px; }
.mega__foot a { font-weight: 500; text-decoration: none; }
.mega__foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__drop:hover > a, .nav__drop:focus-within > a { background: var(--paper-2); border-radius: 999px; }
.nav__drop > a { padding-inline: 12px; margin-inline: -12px; }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 600; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; padding-block: clamp(32px, 5vw, 56px) clamp(64px, 7vw, 96px); }
.hero .btns { margin-top: 32px; }

/* Device frames */
.screen { background: var(--ink); padding: 4px; border-radius: 16px; box-shadow: 0 30px 60px -28px rgba(20, 20, 15, 0.45); }
.screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 12px; }
.phone { background: var(--ink); padding: 3px; border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(20, 20, 15, 0.5); }
.phone img, .phone__empty { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 17px; }
.phone__empty { background: #2a2924; color: #c9c7bf; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; font-size: 13px; }
.hero__stage { position: relative; padding-right: 9%; }
.hero__stage .phone { position: absolute; right: 0; bottom: -28px; width: 24%; }

/* Dark band cards */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.dcard { background: #1c1c17; border: 1px solid #2c2b26; border-radius: 16px; padding: 24px; }
.dcard h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.dcard p { margin: 8px 0 0; font-size: 15px; color: #a3a29b; }

/* Package tabs (home) */
.tabs { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; }
.tabs__in { padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px; align-items: center; background-image: radial-gradient(rgba(20, 20, 15, 0.07) 1px, transparent 1.4px); background-size: 14px 14px; }
.tabbar { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--white); border-radius: 999px; box-shadow: 0 8px 24px -16px rgba(20, 20, 15, 0.35); margin-bottom: 24px; }
.tabbar button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font: 500 15px 'Inter', sans-serif; color: var(--muted); cursor: pointer; }
.tabbar button[aria-selected='true'] { background: var(--ink); color: #ffffff; font-weight: 600; }
.tabpanel__short { margin: 0; font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.tabpanel__who { margin: 14px 0 22px; color: var(--text); font-size: 17px; line-height: 1.6; max-width: 46ch; }
/* Home tabs, one per kind of website: who it is for on the left, the example project large on the right with its text below. */
.tabpanel__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .tabpanel__grid { grid-template-columns: minmax(0, 1fr); } }
.example { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; text-decoration: none; transition: box-shadow 0.25s; }
.example:hover { box-shadow: 0 18px 40px -26px rgba(20, 20, 15, 0.4); }
.example__img { display: block; background: var(--ink); padding: 3px; border-radius: 12px; }
.example__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 9px; }
.example__text { display: block; padding: 16px 8px 6px; }
.example strong { display: block; font-size: 19px; letter-spacing: -0.025em; margin-top: 4px; }
.example span.t { display: block; font-size: 15px; color: var(--text); margin-top: 4px; }
.tabs__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 18px clamp(24px, 3vw, 36px); background: var(--paper); border-top: 1px solid var(--line-2); font-size: 15px; }
.tabs__foot strong { font-weight: 600; }
.tabs__foot span { color: var(--text); }

/* Project cards: a phone either side of the desktop, then the white name card */
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3vw, 40px) 24px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
/* Project cards: the desktop screen with the phone in front of its corner, on a light panel, then the name. */
.pcard { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; transition: box-shadow 0.25s; }
.pcard:hover { box-shadow: 0 22px 44px -28px rgba(20, 20, 15, 0.4); }
.pcard__stage { position: relative; aspect-ratio: 16 / 11; background-color: var(--paper-2); background-image: radial-gradient(rgba(20, 20, 15, 0.07) 1px, transparent 1.4px); background-size: 14px 14px; border-bottom: 1px solid var(--line-2); }
.pcard__stage .pd { position: absolute; left: 6%; top: 11%; width: 74%; background: var(--ink); padding: 3px; border-radius: 11px; box-shadow: 0 20px 40px -24px rgba(20, 20, 15, 0.45); }
.pcard__stage .pd img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; }
.pcard__stage .pm { position: absolute; right: 6%; bottom: 9%; width: 21%; background: var(--ink); padding: 3px; border-radius: 15px; box-shadow: 0 20px 40px -20px rgba(20, 20, 15, 0.5); }
.pcard__stage .pm img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 12px; }
.pcard__card { padding: 20px 22px 20px; }
.pcard__name { margin: 0; font-weight: 600; font-size: 21px; letter-spacing: -0.03em; }
.pcard__tags { margin: 6px 0 0; }
.pcard__line { margin: 10px 0 0; font-size: 15px; color: var(--text); }
.pcard__note { margin: 6px 0 0; font-size: 12px; color: var(--faint); }
.pcard .pd, .pcard .pm { transition: transform 0.35s ease; }
.pcard:hover .pd { transform: translateY(-4px); }
.pcard:hover .pm { transform: translateY(-8px); }

/* How it works */
.steps { border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; }
.step { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 64px; align-items: center; padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 48px); background-image: radial-gradient(rgba(20, 20, 15, 0.06) 1px, transparent 1.4px); background-size: 14px 14px; }
.step + .step { border-top: 1px solid var(--line-2); }
.step__n { margin: 0; font-weight: 600; font-size: 40px; letter-spacing: -0.02em; line-height: 1; }
.step__t { margin: 14px 0 0; font-weight: 600; font-size: 26px; letter-spacing: -0.035em; }
.step__b { margin: 10px 0 0; color: var(--text); max-width: 440px; }

/* Small illustrations (steps and packages) */
.ill { background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; min-height: 180px; position: relative; font-size: 12px; }
.ill .mono { font-size: 11px; color: var(--ink-2); }
.chip { display: inline-block; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 5px 12px; font-size: 12px; margin: 6px 0 0; }
.paper { background: var(--white); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; box-shadow: 0 10px 24px -18px rgba(20, 20, 15, 0.35); }
.bar { height: 6px; border-radius: 6px; background: var(--line-2); margin: 8px 0; }
.bar--ink { background: var(--ink); height: 8px; }
.check { display: flex; gap: 8px; align-items: center; margin: 7px 0; color: var(--text); }
.check::before { content: ''; width: 10px; height: 10px; border: 1px solid var(--faint); border-radius: 3px; flex: none; }
.tick::before { content: '\2713'; display: inline-flex; width: 14px; height: 14px; border: 1px solid var(--faint); border-radius: 50%; font-size: 9px; align-items: center; justify-content: center; }
.pill-ink { display: inline-flex; gap: 6px; align-items: center; background: var(--ink); color: #ffffff; border-radius: 999px; padding: 6px 12px; font-size: 11px; font-weight: 600; }
.ill-row { display: flex; gap: 14px; align-items: flex-start; }
.ill-row > * { flex: 1; min-width: 0; }

/* Dark showcase */
.show { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; align-items: center; margin-top: 40px; }
.show__quote { margin: 0; font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; letter-spacing: -0.025em; }
.show__who { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.show__who strong { display: block; font-weight: 600; font-size: 15px; }
.show__nav { display: flex; gap: 14px; align-items: center; margin-top: 28px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #a3a29b; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a3933; background: transparent; color: #ffffff; cursor: pointer; font-size: 16px; }
.round:hover { border-color: #ffffff; }

/* Facts table */
.facts { background: var(--paper-2); border-radius: 20px; padding: 24px 28px; }
.facts p { margin: 0 0 12px; color: var(--text); }
.facts dl { margin: 0; }
.facts dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--text); }
.facts dd { margin: 0; font-family: 'DM Sans', sans-serif; font-weight: 500; text-align: right; }
.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { color: var(--muted); font-size: 14px; }
.rows dd { margin: 0; font-weight: 500; }
.rows--mono dt { font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.rows--mono dd { font-weight: 400; color: var(--ink-2); }

/* Closing */
.closing { text-align: center; }
.closing .h2 { font-size: clamp(34px, 4.2vw, 56px); max-width: 640px; margin: 0 auto; }
.closing p { margin: 20px auto 0; max-width: 560px; color: var(--text); }
.closing .btns { justify-content: center; margin-top: 32px; }

/* Footer */
.ftr { background: var(--ink); color: #ffffff; padding-block: 56px 32px; }
.ftr a { text-decoration: none; }
.ftr a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ftr__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; padding-bottom: 32px; border-bottom: 1px solid #2c2b26; }
.ftr__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ftr__brand .logo { font-size: 26px; }
.ftr__tag { color: #a3a29b; padding-left: 20px; border-left: 1px solid #3a3933; }
.ftr__contact { display: flex; flex-wrap: wrap; gap: 12px 28px; font-weight: 600; }
.ftr__hours { font-weight: 400; color: rgba(255, 255, 255, 0.7); }
.ftr__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 24px; font-size: 15px; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.ftr__legal { display: flex; flex-wrap: wrap; gap: 8px 26px; color: #a3a29b; font-size: 14px; }

/* Services overview cards */
.pkg { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; }
.pkg__ill { height: 190px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-2); background-image: radial-gradient(rgba(20, 20, 15, 0.07) 1px, transparent 1.4px); background-size: 14px 14px; padding: 20px; }
.pkg__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pkg__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pkg__short { margin: 8px 0 0; font-weight: 500; }
.pkg__sum { margin: 10px 0 24px; color: var(--text); font-size: 15px; }
.pkg__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pkg__foot .btn { min-height: 44px; font-size: 14px; font-weight: 600; padding: 0 20px; }
.see { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; }
.see small { display: block; color: var(--muted); font-size: 12px; }
.badge { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; letter-spacing: -0.02em; }

/* Mini illustrations for the four packages */
.fan { position: relative; width: 300px; height: 130px; }
.fan .paper { position: absolute; width: 90px; height: 120px; top: 0; }
.fan .paper:nth-child(1) { left: 0; transform: rotate(-8deg); }
.fan .paper:nth-child(2) { left: 70px; transform: rotate(-3deg); }
.fan .paper:nth-child(3) { left: 140px; transform: rotate(2deg); }
.fan .paper:nth-child(4) { left: 210px; transform: rotate(6deg); }
.tree { text-align: center; width: 100%; max-width: 380px; }
.tree__top { display: inline-block; background: var(--ink); color: #ffffff; border-radius: 999px; padding: 4px 14px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; }
.tree__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.tree__row .paper { padding: 8px; }
.basket { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 330px; position: relative; padding-top: 30px; }
.basket .paper { padding: 8px; }
.basket .paper div { height: 44px; border-radius: 6px; background: var(--paper); }
.basket__tag { position: absolute; right: 0; top: 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 12px; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.1em; display: inline-flex; gap: 8px; align-items: center; }
.basket__tag b { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; }
.cal { width: 100%; max-width: 230px; }
.cal__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 10px; }
.cal__grid span { aspect-ratio: 1; border: 1px solid var(--line-2); border-radius: 4px; background: var(--white); }
.cal__grid span.on { background: var(--ink); border-color: var(--ink); }

/* Package page */
.pp-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.pp-hero .btns { margin-top: 28px; align-items: center; }
.exlink { display: inline-flex; gap: 10px; align-items: center; margin: 16px auto 0; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 8px; text-decoration: none; font-size: 13px; }
.exlink small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-family: 'DM Sans', sans-serif; }
.pagetabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--white); border-radius: 999px; box-shadow: 0 8px 24px -16px rgba(20, 20, 15, 0.35); margin: 24px 0 18px; }
.pagetabs button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 500 14px 'Inter', sans-serif; color: var(--ink); cursor: pointer; }
.pagetabs button[aria-selected='true'] { background: var(--ink); color: #ffffff; }
.setup { background: var(--ink); color: #ffffff; border-radius: 18px; padding: 24px 26px; margin-top: 24px; }
.setup h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.setup li { padding: 12px 0; border-top: 1px solid #2c2b26; font-weight: 500; font-size: 15px; }
.setup ul { list-style: disc; margin: 0; padding-left: 18px; }
.others { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px 48px; align-items: center; }
.others a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 15px; }
.others a:last-child { border-bottom: 1px solid var(--line); }
.others a span { color: var(--muted); font-weight: 400; }

/* Setup list on the services page */
.slist > div { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.slist > div:last-child { border-bottom: 1px solid var(--line); }
.slist__icon { flex: none; width: 34px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: var(--paper-2); display: inline-flex; align-items: center; justify-content: center; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 11px; }
.slist h3 { margin: 0; font-size: 16px; font-weight: 600; }
.slist p { margin: 4px 0 0; font-size: 14px; color: var(--text); }

/* Case study page */
.cs-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; }
.cs-hero__side { max-width: 420px; color: var(--text); }
.cs-stage { position: relative; margin-top: 40px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 26px; padding: clamp(20px, 4vw, 48px) clamp(20px, 6vw, 80px) clamp(32px, 5vw, 64px); }
.cs-stage .screen { max-width: 900px; margin: 0 auto; }
.cs-stage .phone { position: absolute; right: clamp(12px, 6vw, 72px); bottom: clamp(16px, 3vw, 40px); width: clamp(70px, 11%, 120px); }
.brief { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 32px 64px; align-items: start; }
.outcome { background: var(--ink); color: #ffffff; border-radius: 18px; padding: 28px 30px; }
.outcome .label { color: #a3a29b; }
.outcome .h3 { margin-top: 14px; font-size: clamp(22px, 2vw, 26px); }
.outcome p { color: #a3a29b; margin: 16px 0 0; font-size: 15px; }
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; margin-top: 48px; }
.journey .phone { width: 250px; max-width: 78%; margin: 0 auto; }
.journey h3 { margin: 22px 0 0; font-size: 16px; font-weight: 600; display: flex; gap: 10px; }
.journey h3 span { color: #a3a29b; font-family: 'DM Sans', sans-serif; font-size: 12px; }
.journey p { margin: 6px 0 0; color: #a3a29b; font-size: 14px; }
.delivered ul { list-style: none; margin: 16px 0 0; padding: 0; }
.delivered li { padding: 10px 0 10px 18px; position: relative; font-size: 15px; color: var(--text); }
.delivered li::before { content: ''; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.related { background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.back { display: inline-flex; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }

/* Forms */
.form { display: grid; gap: 22px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field textarea { min-height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--white); font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); }
.field textarea { padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field__error { color: #b42318; font-size: 13px; font-weight: 400; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form__small { font-size: 13px; color: var(--muted); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent h2 { margin: 0; font-weight: 600; font-size: 26px; letter-spacing: -0.03em; }
.sent p { margin: 10px 0 0; color: var(--text); }
.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; padding: clamp(24px, 3vw, 40px); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
.contact .panel:first-child { grid-column: span 1; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.6fr 1fr; } }
.contact__details dl { margin: 0; }
.contact__details dl > div { padding: 14px 0; border-top: 1px solid var(--line); }
.contact__details dl > div:first-child { border-top: 0; padding-top: 0; }
.contact__details dt { font-size: 13px; color: var(--muted); }
.contact__details dd { margin: 4px 0 0; font-weight: 500; }

.prose { max-width: 720px; color: var(--text); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #ffffff; padding: 8px 12px; z-index: 50; }

.navbtn { display: none; }
.navt { display: none; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.navt:focus-visible + .navbtn { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 860px) {
  .navbtn { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
  .navbtn span[aria-hidden] { width: 16px; height: 2px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .nav > a, .nav__drop > a { display: block; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
  .nav__drop > a::after { display: none; }
  .mega { display: block; position: static; transform: none; width: auto; padding: 0 0 8px; }
  .mega__in { border: 0; box-shadow: none; background: transparent; }
  .mega__grid { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 12px; }
  .mega__item { padding: 8px 0; }
  .mega__ill { display: none; }
  .mega__name { margin-top: 0; }
  .mega__foot { padding: 8px 0 8px 12px; border-top: 0; }
  .mega__foot span { display: none; }
  .nav__drop > a { margin-inline: 0; padding-inline: 0; }
  .nav__drop:hover > a, .nav__drop:focus-within > a { background: none; }
  .nav .btn { margin-top: 12px; min-height: 48px; font-size: 16px; }
  .navt { display: block; }
  .navt:checked ~ .nav { display: flex; }
}
@media (max-width: 520px) {
}
@media (max-width: 640px) {
  :root { --radius-xl: 32px; }
  .hero__stage { padding-right: 14%; }
  .ftr__tag { border-left: 0; padding-left: 0; }
}

/* Hero scroller: the screen scrolls inside its frame; the rail sits outside on the right. */
.hs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 18px; align-items: stretch; padding-left: 7%; }
.hs__screen { background: var(--ink); padding: 4px; border-radius: 16px; box-shadow: 0 34px 70px -32px rgba(20, 20, 15, 0.5); min-width: 0; }
.hs__bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px 8px; }
.hs__bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3933; }
.hs__bar span { margin-left: 8px; padding: 2px 12px; border-radius: 999px; background: #24231e; color: #a3a29b; font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 0.02em; }
.hs__view { aspect-ratio: 16 / 10; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-radius: 0 0 12px 12px; background: #ffffff; }
.hs__view::-webkit-scrollbar { display: none; }
.hs__view:focus-visible { outline: 2px solid #ffffff; outline-offset: -4px; }
.hs__view img { width: 100%; height: auto; display: block; }
.hs__rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-block: 34px 6px; }
.hs__btn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.hs__btn:hover:not(:disabled) { background: var(--ink); color: #ffffff; border-color: var(--ink); }
.hs__btn:disabled { opacity: 0.35; cursor: default; }
.hs__track { position: relative; flex: 1; width: 22px; min-height: 120px; cursor: pointer; touch-action: none; }
.hs__track::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); border-radius: 4px; background: var(--line-2); }
.hs__thumb { position: absolute; left: 50%; width: 10px; transform: translateX(-50%); border-radius: 10px; background: var(--ink); cursor: grab; transition: width 0.15s; }
.hs__thumb::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 10px; transform: translate(-50%, -50%); border-left: 1px solid rgba(255, 255, 255, 0.6); border-right: 1px solid rgba(255, 255, 255, 0.6); }
.hs__track:hover .hs__thumb { width: 14px; }
.hs__thumb:active { cursor: grabbing; }
.hs__pct { font-family: 'DM Sans', sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); min-width: 34px; text-align: center; }
.hs__phone { position: absolute; left: 0; bottom: -26px; width: 21%; z-index: 2; }
@media (max-width: 640px) {
  .hs { grid-template-columns: minmax(0, 1fr); padding-left: 10%; }
  .hs__rail { flex-direction: row; padding: 0; justify-content: flex-end; }
  .hs__track { flex: 0 1 140px; min-height: 0; height: 22px; width: auto; }
  .hs__track::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 4px; transform: translateY(-50%); }
  .hs__thumb { display: none; }
  .hs__phone { bottom: 40px; width: 24%; }
}

/* Kind-of-website page: who it is for, as short paragraphs beside the heading. */
.who .lede { margin-top: 0; }
.who .body { margin: 18px 0 0; max-width: 560px; font-size: 17px; line-height: 1.65; }

/* Case study: what we built beside the text, then the admin screens the copy talks about. */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px 64px; align-items: start; }
.admin-shots { margin-top: clamp(56px, 6vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.admin-shots__grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 40px 28px; margin-top: 28px; align-items: end; }
.shot { margin: 0; }
.shot--desktop { grid-column: span 12; }
.shot--phone { grid-column: span 5; }
/* Beside phones, the desktop screen widens so its height matches theirs. */
.admin-shots__grid:has(.shot--phone) .shot--desktop { grid-column: span 14; }
.shot--phone .phone { width: 100%; max-width: 250px; margin: 0 auto; }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.browser { background: #ffffff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(20, 20, 15, 0.35); }
.browser__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d8d6ce; }
.browser img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.admin-shots__note { margin-top: 28px; text-transform: none; letter-spacing: 0; }
@media (max-width: 860px) {
  .admin-shots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .shot--desktop, .admin-shots__grid:has(.shot--phone) .shot--desktop { grid-column: 1 / -1; }
  .shot--phone { grid-column: span 1; }
}

/* Case study: one page on every screen, in an inset dark panel with margin on both sides. */
.feature { background: var(--ink); color: #ffffff; border-radius: var(--radius-xl); padding: clamp(32px, 5vw, 64px); }
.feature .label { color: #a3a29b; }
.feature .lede { color: #c9c7bf; margin: 0; }
.feature__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px 64px; align-items: end; }
.devices { display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(0, 2fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: end; margin-top: clamp(36px, 5vw, 56px); }
.device { margin: 0; }
.device__frame { background: #2a2924; border: 1px solid rgba(255, 255, 255, 0.12); padding: 6px; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.device img { display: block; width: 100%; object-fit: cover; object-position: top; border-radius: 9px; background: #ffffff; }
.device--desktop img { aspect-ratio: 1440 / 900; }
.device--tablet .device__frame { border-radius: 18px; padding: 8px; }
.device--tablet img { aspect-ratio: 820 / 1180; border-radius: 11px; }
.device--phone .device__frame { border-radius: 20px; padding: 4px; }
.device--phone img { aspect-ratio: 390 / 844; border-radius: 16px; }
.device figcaption { margin-top: 14px; text-align: center; color: #a3a29b; }
@media (max-width: 860px) {
  .devices { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .device--desktop { grid-column: 1 / -1; }
}
