/* =========================================================
   Dunot Developers — main stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --accent: #5A1408;        /* Dunot brown: buttons, links, highlights */
  --accent-dark: #74240F;   /* brown on hover */
  --accent-soft: #F7E7D4;   /* cream: active menu item, labels */
  --tan: #C4925E;           /* small accents: label dots, footer icons */
  --ink: #18130F;           /* headings */
  --text: #27211D;          /* body text */
  --muted: #45403B;         /* secondary text */
  --soft: #F4F4F4;          /* card and panel background */
  --line: #DDD4C9;          /* outlines */
  --line-light: #EDE7E0;    /* light borders */
  --field: #78716C;         /* form field border */
  --bg: #FDFDFC;
  --white: #ffffff;
  --error: #B3261E;
  --footer-bg: #0A0A0A;

  --radius-sm: 12px;
  --radius: 24px;
  --radius-lg: 32px;
  --pill: 999px;
  --shadow: 0 12px 28px -10px rgba(90, 20, 8, 0.12);

  --container: 1280px;
  --gutter: 28px;
  --header-h: 93px;         /* sticky header height, used to fit the hero on one screen */

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* menu jumps land each section just below the sticky header */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Text links inside the page: thin warm underline that turns brown */
main a:not(.btn):not(.logo):not(.map-link) {
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
main a:not(.btn):not(.logo):not(.map-link):hover { color: var(--accent); text-decoration-color: var(--accent); }

h1, h2, h3 { margin: 0; line-height: 1.1; }
h1, h2 { text-wrap: balance; }
p { margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius-sm);
  z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--dark,
.btn--accent { background: var(--accent); color: var(--white); }
.btn--dark:hover,
.btn--accent:hover { background: var(--accent-dark); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { color: var(--accent); }
.btn--outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--soft { background: var(--soft); }
.btn--soft:hover { background: var(--accent-soft); color: var(--accent); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 252, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-light); }

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo img { width: 40px; height: 40px; flex: none; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}
/* cream pill on hover and for the section in view */
.nav__links a {
  display: block;
  padding: 8px 16px;
  border-radius: var(--pill);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.nav__links a:hover,
.nav__links a.is-active { background: var(--accent-soft); color: var(--accent); }
.nav__links a.is-active { font-weight: 600; }
.nav__links a:active { transform: scale(.96); }
/* while the pointer is on a menu link, only that link is highlighted */
@media (hover: hover) {
  .nav__links:has(a:hover) a.is-active:not(:hover) { background: transparent; color: var(--ink); }
}
.nav__links a { white-space: nowrap; }
/* small laptops: slightly tighter menu so it stays on one line */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav__links a { padding: 8px 12px; }
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Section helpers ---------- */
.section { padding-top: 104px; padding-bottom: 104px; }
.section--flush-top { padding-top: 0; }

.section-head { text-align: center; margin-bottom: 48px; }
.section-title {
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 52px);
  letter-spacing: -0.03em;
}
.section-lead {
  max-width: 560px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border-radius: var(--pill);
  padding: 6px 16px;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
}
.tag::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tan);
}
.tag--on-accent { background: rgba(255, 255, 255, 0.18); color: var(--white); }
.tag--on-accent::before { background: var(--accent-soft); }
.section-head .tag { margin-bottom: 16px; }

/* ---------- Hero ----------
   The heading and the two website/app panels share the first screen.
   Sizes follow the screen height, so they fit on short laptop screens too. */
.hero-screen {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px, 6.4vh, 64px);
  padding-top: clamp(14px, 2.4vh, 36px);
  padding-bottom: clamp(18px, 3vh, 44px);
}
.hero { text-align: center; }
.hero .tag { margin-bottom: clamp(14px, 2.4vh, 24px); }
.hero__title {
  font-weight: 700;
  font-size: clamp(34px, min(4.4vw, 7vh), 68px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.hero__lead {
  max-width: 920px;
  margin: clamp(14px, 2.4vh, 22px) auto 0;
  text-wrap: balance;
  font-size: clamp(17px, 2.4vh, 19px);
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Choice panels (Website / App) ---------- */
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.choice {
  --pad-y: clamp(24px, 3.6vh, 40px);
  --pad-x: clamp(24px, 2.6vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "title art"
    "text  art"
    "btn   art";
  min-height: clamp(230px, 38vh, 360px);
  column-gap: 24px;
  row-gap: clamp(10px, 1.6vh, 16px);
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.choice--web { background: var(--soft); }
.choice--app { background: var(--accent-soft); }
.choice__title {
  grid-area: title;
  font-weight: 600;
  font-size: clamp(24px, min(2vw, 4vh), 30px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.choice__text { grid-area: text; align-self: start; max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
.choice .btn {
  grid-area: btn;
  justify-self: start;
  align-self: end;
  min-height: 40px;
  padding: 9px 18px;
  font-size: 15px;
  white-space: nowrap;
}
/* the browser / phone picture sits beside the text and runs off the bottom edge;
   it never makes the panel taller */
.choice__art {
  grid-area: art;
  position: relative;
  contain: size;                              /* the picture never makes the card taller */
  margin-right: calc(-1 * var(--pad-x));      /* runs off the right edge */
  margin-bottom: calc(-1 * var(--pad-y));     /* and off the bottom edge */
}

/* Light button on the website card: white pill with a thin outline */
.choice .btn--light { border-color: var(--line); }
.choice .btn--light:hover { border-color: var(--accent); color: var(--accent); }

/* Website preview: a made-up shop's page in a plain browser window */
.shot-browser {
  position: absolute;
  top: 2px;
  left: 0;
  width: max(100%, 380px);
  overflow: hidden;
  border-radius: 12px 0 0 0;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(24, 19, 15, .08), 0 18px 40px -18px rgba(24, 19, 15, .35);
}
.shot-browser__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 10px;
  background: #F1EEEA;
  border-bottom: 1px solid #E4DFD8;
}
.shot-browser__dots { display: flex; gap: 5px; }
.shot-browser__dots i { width: 8px; height: 8px; border-radius: 50%; background: #D9D3CB; }
.shot-browser__url {
  flex: 0 1 200px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--white);
  color: var(--muted);
  font-size: 10.5px;
}
.shot-browser img { display: block; width: 100%; height: auto; }

/* App preview: one phone with a made-up food app, plus an order notification */
.shot-phone {
  position: absolute;
  top: 4px;
  left: 58%;
  width: clamp(150px, 48%, 200px);
  padding: 6px;
  border-radius: 30px;
  background: #18130F;
  transform: translateX(-50%);
  box-shadow: 0 18px 40px -16px rgba(24, 19, 15, .45);
}
.shot-phone img { display: block; width: 100%; height: auto; border-radius: 24px; }
.shot-toast {
  position: absolute;
  top: 34%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 10px 24px -10px rgba(24, 19, 15, .35);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  white-space: nowrap;
}
.shot-toast b { display: block; color: var(--ink); font-size: 12px; }
.shot-toast__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E7F4EA;
  color: #15803D;
}

/* ---------- Services ----------
   Cards 1, 3 and 5: a thin rainbow border that keeps running round the card.
   Cards 2 and 4: a short rainbow light travelling round a thin outline, the other way.
   The card colour and border are drawn by ::after, the glow by ::before. */
@property --spin {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}
@keyframes spin-border { to { --spin: 360deg; } }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.service {
  --fill: var(--soft);        /* card colour */
  --line-base: var(--line);   /* thin outline under the travelling light */
  --rainbow: #F87171, #FB923C, #FACC15, #4ADE80, #38BDF8, #818CF8, #C084FC, #F87171;
  position: relative;
  isolation: isolate;
  padding: 32px 26px;
  border-radius: var(--radius);
  text-align: center;
  animation: spin-border 6s linear infinite reverse;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service::before,
.service::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}
/* card colour + rainbow border */
.service::after {
  inset: 0;
  z-index: -1;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--fill), var(--fill)) padding-box,
    conic-gradient(from var(--spin), var(--rainbow)) border-box;
}
/* a very faint glow in the same colours */
.service::before {
  inset: 10px;
  z-index: -2;
  background: conic-gradient(from var(--spin), var(--rainbow));
  filter: blur(18px);
  opacity: .16;
}
/* cards 2 and 4: a short rainbow light running round a thin outline */
.service:nth-child(even) { animation-duration: 4s; animation-direction: normal; }
.service:nth-child(even)::after {
  background:
    linear-gradient(var(--fill), var(--fill)) padding-box,
    conic-gradient(from var(--spin), transparent 0turn .6turn, #F87171 .7turn, #FB923C .76turn, #FACC15 .82turn, #4ADE80 .87turn, #38BDF8 .92turn, #818CF8 .96turn, #C084FC .995turn, transparent 1turn) border-box,
    linear-gradient(var(--line-base), var(--line-base)) border-box;
}
.service:nth-child(even)::before { display: none; }
/* the borders only run while the section is on screen (main.js adds .is-live) */
.js .service { animation-play-state: paused; }
.js .services-grid.is-live .service { animation-play-state: running; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service svg { margin: 0 auto; }
.service h3 { margin: 16px 0 10px; font-size: 21px; letter-spacing: -0.01em; }
.service p { color: var(--text); line-height: 1.6; font-size: 16px; }

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.work-card {
  background: var(--soft);
  border-radius: var(--radius);
  padding: 8px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.work-card__img {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px;
  overflow: hidden;
}
/* screenshots are slightly muted until hovered */
.work-card__img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  opacity: .88;
  transition: opacity .25s ease;
}
.work-card:hover .work-card__img img { opacity: 1; }
.work-card__body { padding: 14px 12px 12px; }
.work-card__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.work-card__label--client { background: var(--white); color: var(--muted); }
.work-card h3 { margin: 0 0 4px; font-size: 20px; }
.work-card p { color: var(--muted); }
@media (max-width: 960px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- How we work ---------- */
.hw { text-align: center; }
.hw-title { margin: 16px auto 48px; max-width: 820px; }
.hw-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.hw-card {
  padding: 28px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid transparent;
  transition:
    transform .5s cubic-bezier(.22, 1, .36, 1),
    box-shadow .5s cubic-bezier(.22, 1, .36, 1),
    border-color .3s ease;
}
.hw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(24, 19, 15, .18);
  border-color: var(--line-light);
}
.hw-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  transition:
    background-color .4s ease,
    color .4s ease,
    border-color .4s ease,
    transform .5s cubic-bezier(.22, 1, .36, 1);
}
/* With JavaScript the numbers start as outlines and fill in one after another
   when the section scrolls into view (main.js adds .is-visible) */
.js .hw-num { border-color: var(--line); background: var(--bg); }
.js .hw.is-visible .hw-num { border-color: var(--accent); background: var(--accent-soft); }
.js .hw.is-visible .hw-card:nth-child(2) .hw-num { transition-delay: .6s; }
.js .hw.is-visible .hw-card:nth-child(3) .hw-num { transition-delay: 1.2s; }
/* hover: the number turns solid brown */
.hw-card:hover .hw-num,
.js .hw .hw-card.hw-card:hover .hw-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: scale(1.05);
  transition-delay: 0s;
}
.hw-card h3 { margin-bottom: 8px; font-size: 22px; font-weight: 600; }
.hw-card p { color: var(--muted); line-height: 1.6; }
/* phones and narrow tablets: number on the left inside the card */
@media (max-width: 760px) {
  .hw-grid { grid-template-columns: 1fr; gap: 16px; }
  .hw-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
    text-align: left;
  }
  .hw-num { margin: 0; }
}

/* ---------- About ---------- */
.about {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 72px;
  border-radius: var(--radius-lg);
  background: var(--soft);
}
.about__text { flex: 1 1 0; min-width: 0; }
.about .tag { background: var(--bg); }
.about h2 {
  margin: 16px 0 24px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.about p { margin-bottom: 14px; font-size: 18px; line-height: 1.7; color: var(--text); }
.about .btn-row { margin-top: 32px; }
/* numbers: 2 x 2 cards */
.stats {
  flex: 0 0 440px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stat {
  padding: 26px 28px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  background: var(--bg);
}
.stat strong {
  display: block;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat span { display: block; margin-top: 6px; font-size: 16px; color: var(--muted); }
@media (max-width: 1180px) {
  .about { padding: 48px; gap: 40px; }
  .stats { flex-basis: 360px; }
  .stat strong { font-size: 38px; }
}
@media (max-width: 1024px) {
  .about { flex-direction: column; align-items: stretch; gap: 32px; padding: 44px; }
  .about h2 { font-size: 34px; }
  .stats { flex: none; width: 100%; }
}
@media (max-width: 699px) {
  .about { padding: 28px 22px; gap: 28px; border-radius: var(--radius); }
  .about h2 { font-size: 30px; }
  .about p { font-size: 17px; }
  .about .btn-row .btn { width: 100%; }
  .stats { gap: 12px; }
  .stat { padding: 20px; }
  .stat strong { font-size: 32px; }
  .stat span { font-size: 15px; }
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact ---------- */
.contact { background: var(--soft); }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "info form"
    "map  form";
  gap: 36px 64px;
  padding-top: 96px;
  padding-bottom: 96px;
}
.contact__info { grid-area: info; }
.contact__info h2 { margin-bottom: 16px; line-height: 1.02; font-size: clamp(34px, 4.2vw, 58px); }
.contact__info > p { font-size: 18px; color: var(--text); margin-bottom: 28px; }
.contact__details { list-style: none; margin: 0; padding: 0; line-height: 2; font-size: 17px; }
.contact .form-card { grid-area: form; }

/* Map: fills the space under the details, so its bottom lines up with the form.
   It never reacts to taps or drags; only "Get directions" opens Google Maps. */
.contact__map {
  grid-area: map;
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}
.contact__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.map-link {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 9px 16px;
  border-radius: var(--pill);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(24, 19, 15, .16);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.map-link:hover { background: var(--accent); color: var(--white); }
/* stacked: details, then the form, then the map, so the map never sits between fields */
@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "info" "form" "map";
    gap: 32px;
  }
  .contact__map { height: 240px; }
}
@media (max-width: 560px) { .contact__map { height: 220px; } }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field-label { font-weight: 600; font-size: 14px; }
.input {
  width: 100%;
  border: 1px solid var(--field);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 16px;
  background: var(--white);
  transition: border-color .2s;
}
.input:focus { outline: none; border-color: var(--accent); }
/* text boxes grow as people type (see main.js), so no drag handle */
textarea.input { resize: none; line-height: 1.5; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row > .field { flex: 1 1 220px; }

/* Dropdowns: custom arrow */
.select-wrap { position: relative; }
.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 46px;
  cursor: pointer;
}
.select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -9px;
  color: var(--muted);
  pointer-events: none;
  transition: transform .2s ease;
}
/* Browsers that can style the open list (Chrome and Edge 135+) show it in the
   site style: cream on hover, brown for the chosen option. Others show their own list. */
@supports (appearance: base-select) {
  .select-wrap select,
  .select-wrap select::picker(select) { appearance: base-select; }
  .select-wrap select { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .select-wrap select::picker-icon { display: none; }
  .select-wrap select::picker(select) {
    margin: 6px 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    box-shadow: 0 14px 32px -12px rgba(24, 19, 15, .22);
  }
  .select-wrap option {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text);
  }
  .select-wrap option::checkmark { display: none; }
  .select-wrap option:hover,
  .select-wrap option:focus-visible { background: var(--accent-soft); color: var(--accent); outline: none; }
  .select-wrap option:checked { background: var(--accent); color: var(--white); font-weight: 600; }
}
@supports selector(:open) {
  .select-wrap select:open { border-color: var(--accent); }
  .select-wrap:has(select:open) .select-chevron { transform: rotate(180deg); }
}

.field-error {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--error);
}
.field-error:empty { display: none; }
.input[aria-invalid="true"],
.input[aria-invalid="true"]:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 1px var(--error);
}

.form-note { text-align: center; color: var(--muted); font-size: 14px; }
.form-status {
  display: none;
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 600;
}
.form-status.is-success { display: block; background: #E7F4EA; color: #14532D; }
.form-status.is-error { display: block; background: #FDECEA; color: var(--error); }

/* ---------- Footer: dark, three columns ---------- */
.site-footer { background: var(--footer-bg); color: #C5C0BA; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 64px;
}
.site-footer a { color: #C5C0BA; text-decoration: none; }
.site-footer .logo,
.site-footer .logo:hover { color: var(--white); }
.footer-contact {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 16px;
  line-height: 1.5;
}
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--tan); }
.footer-title { margin: 8px 0 22px; color: var(--white); font-size: 18px; font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; font-size: 16px; }
/* links move slightly to the right on hover */
.footer-links a,
.footer-contact a,
.footer-bottom__links a {
  display: inline-block;
  transition: color .2s ease, transform .25s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: #F3E3CF; }
.footer-links a:hover, .footer-links a:focus-visible,
.footer-contact a:hover, .footer-contact a:focus-visible,
.footer-bottom__links a:hover, .footer-bottom__links a:focus-visible { transform: translateX(4px); }
.site-footer :focus-visible { outline-color: #F3E3CF; }
.footer-bottom { position: relative; border-top: 1px solid #2A2622; }
.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 26px;
  padding-bottom: 26px;
  font-size: 14px;
  color: #A39B93;
}
.footer-bottom__links { display: flex; gap: 22px; }
.site-footer .footer-bottom__links a { color: #A39B93; }
.site-footer .footer-bottom__links a:hover { color: #F3E3CF; }
/* back-to-top hexagon on the divider line */
.to-top {
  position: absolute;
  top: -27px;
  left: 50%;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background-color .2s ease;
}
.site-footer .to-top,
.site-footer .to-top:hover { color: #F3E3CF; }
.to-top:hover { background: var(--accent-dark); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 32px; padding-top: 60px; }
  .footer-company { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 52px; padding-bottom: 52px; }
  .footer-bottom__inner { flex-direction: column; padding-top: 34px; }
}

/* ---------- Planner: "See my plan" popup ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.plan-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(24, 19, 15, .4);
}
.plan-dialog::backdrop { background: rgba(24, 19, 15, .45); }
.plan-dialog__inner { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); }
.plan-dialog__head { padding: 24px 28px 16px; border-bottom: 1px solid var(--line-light); }
.plan-dialog__head h2 { font-size: 24px; letter-spacing: -0.02em; }
.plan-dialog__head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan-dialog__body { padding: 4px 28px; overflow-y: auto; }
.plan-section { padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.plan-section:last-child { border-bottom: 0; }
.plan-section h3 { margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plan-section dl { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 15px; line-height: 1.5; }
.plan-section dt { color: var(--muted); }
.plan-section dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.plan-section dd.is-full { grid-column: 1 / -1; }
.plan-dialog__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 28px 20px;
  border-top: 1px solid var(--line-light);
}
.plan-dialog__note { color: var(--muted); font-size: 14px; }
.plan-dialog__btns { display: flex; gap: 10px; margin-left: auto; }
.plan-dialog .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; white-space: nowrap; }
.plan-dialog .btn--light { border-color: var(--line); }
.plan-dialog .btn--light:hover { border-color: var(--accent); color: var(--accent); }
.plan-dialog .btn:disabled { opacity: .6; cursor: default; }
.plan-dialog__status { display: none; margin: 0 28px 20px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.plan-dialog__status.is-success { display: block; background: #E7F4EA; color: #14532D; }
.plan-dialog__status.is-error { display: block; background: #FDECEA; color: var(--error); }
.plan-done { padding: 40px 32px 32px; text-align: center; }
.plan-done__tick { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 50%; background: #E7F4EA; color: #15803D; }
.plan-done h2 { font-size: 24px; letter-spacing: -0.02em; }
.plan-done p { max-width: 420px; margin: 10px auto 24px; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 560px) {
  .plan-dialog { width: calc(100% - 20px); }
  .plan-dialog__head, .plan-dialog__body, .plan-dialog__foot { padding-left: 20px; padding-right: 20px; }
  .plan-section dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .plan-section dd { margin-bottom: 8px; }
  .plan-dialog__btns { width: 100%; }
  .plan-dialog__btns .btn { flex: 1; }
}

/* =========================================================
   Planner pages
   ========================================================= */
.planner-hero { padding-top: 32px; padding-bottom: 56px; }
.planner-hero h1 {
  font-weight: 700; font-size: clamp(40px, 5.2vw, 72px);
  letter-spacing: -0.035em; line-height: 1.02; margin-top: 14px;
}
.planner-hero p { max-width: 640px; margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.planner-hero--accent .planner-hero__box {
  background: var(--accent); color: var(--white);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px);
}
.planner-hero--accent p { color: var(--white); }

.timeline-title { font-size: 26px; letter-spacing: -0.01em; margin-bottom: 24px; }
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.timeline li { background: var(--soft); border-radius: 18px; padding: 22px; }
.timeline li:first-child { background: var(--ink); color: var(--white); }
.timeline__num { font-weight: 700; font-size: 28px; color: var(--accent); }
.timeline li:first-child .timeline__num { color: var(--tan); }
.timeline h3 { margin: 8px 0 6px; font-size: 18px; }
.timeline p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.timeline li:first-child p { color: #C5C0BA; }

.planner {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start;
  padding-top: 72px; padding-bottom: 96px;
}
.planner__form {
  flex: 2 1 620px; min-width: 0;
  background: var(--white);
  border: 1.5px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 36px;
}
.planner__form fieldset {
  border: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.planner__form legend { font-weight: 700; font-size: 22px; margin-bottom: 14px; padding: 0; }

.option-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.option-card {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 14px; padding: 16px; cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.option-card input { margin-top: 4px; accent-color: var(--accent); }
.option-card small { display: block; color: var(--muted); font-size: 14px; }
.option-card:has(input:checked) { border-color: var(--accent); background: #FBF3EA; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; gap: 8px; align-items: center;
  background: var(--soft); border-radius: var(--pill);
  padding: 11px 16px; cursor: pointer; border: 1.5px solid transparent;
}
.chip input { accent-color: var(--accent); }
.chip:has(input:checked) { border-color: var(--accent); background: #FBF3EA; }

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 24px; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.planner__aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.aside-card { border-radius: 24px; padding: 30px; }
.aside-card h2 { font-size: 22px; margin-bottom: 6px; }
.aside-card--soft { background: var(--soft); }
.aside-card--soft > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.aside-card--dark { background: var(--ink); color: var(--white); }
.aside-card--dark h2 { margin-bottom: 14px; }
.aside-card--dark ul { margin: 0; padding-left: 20px; line-height: 1.9; color: #EDE5DC; }
.aside-card--line { border: 1.5px solid var(--line-light); padding: 26px; }
.aside-card--line h2 { font-size: 19px; }
.aside-card--line > p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; line-height: 1.45; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---------- Reveal on scroll ----------
   Fade and sharpen as sections scroll into view. main.js adds .is-visible,
   then removes both classes so cards get their normal hover effects back.
   Without JavaScript everything simply shows. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition:
    opacity .7s cubic-bezier(.16, 1, .3, 1),
    transform .7s cubic-bezier(.16, 1, .3, 1),
    filter .7s cubic-bezier(.16, 1, .3, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .btn, .service, .work-card, .hw-card, .hw-num, .nav__links a { transition: none; }
  .service { animation: none; }
  .service:hover, .work-card:hover, .hw-card:hover, .hw-card:hover .hw-num { transform: none; }
}

/* ---------- Responsive ---------- */
/* tablets: the two panels stack; the picture gets more room */
@media (max-width: 899px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
  .choice { --pad-y: 28px; min-height: 250px; }
}
/* phones: panels show the title, text and button only */
@media (max-width: 560px) {
  .hero__title { font-size: 30px; }
  .hero-screen { gap: 20px; }
  .hero .tag { margin-bottom: 12px; }
  .hero__lead { font-size: 16px; margin-top: 12px; }
  .choice {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "title" "text" "btn";
    min-height: 0;
    padding: 18px 20px;
    row-gap: 8px;
  }
  .choice__art { display: none; }
  .choice__title { font-size: 24px; }
  .choice__text { font-size: 15px; max-width: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 85px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-light);
    padding: 16px var(--gutter) 24px;
    flex-direction: column; align-items: stretch; gap: 16px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 4px; }
  .nav__links a { padding: 12px 16px; font-size: 18px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .logo { font-size: 19px; gap: 8px; }
  .logo img { width: 34px; height: 34px; }
}


/* =====================================================================
   Hero: text and buttons on the left, one picture on the right
   (a made-up shop website with a made-up food app overlapping it)
   ===================================================================== */
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 3.6vh, 36px); }
.hero-btns .btn--light { border-color: var(--line); }
.hero-btns .btn--light:hover { border-color: var(--accent); color: var(--accent); }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(20px, 3.4vh, 32px) 0 clamp(20px, 3.4vh, 32px) clamp(20px, 2.4vw, 32px);
}
/* soft cream shape that anchors the picture */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 0 10%;
  border-radius: 32px;
  background: var(--accent-soft);
  opacity: .7;
}
.hv-browser {
  position: relative;
  width: 82%;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(24, 19, 15, .06), 0 20px 40px -24px rgba(24, 19, 15, .35);
}
/* only the top of the page: header, headline and buttons */
.hv-browser img { height: clamp(200px, 34vh, 330px); object-fit: cover; object-position: top left; }
.hv-phone {
  top: auto;
  left: auto;
  right: 3%;
  bottom: clamp(10px, 1.6vh, 16px);
  width: 27%;
  transform: none;
  padding: 5px;
  border-radius: 26px;
  box-shadow: 0 20px 40px -18px rgba(24, 19, 15, .45);
}
.hv-phone img { border-radius: 21px; }
.hv-toast { top: auto; left: 46%; bottom: 22%; transform: translateX(-50%); }

@media (min-width: 1000px) {
  .hero-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    align-content: center;
    column-gap: clamp(40px, 4vw, 64px);
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .hero-screen > .container { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
  .hero { text-align: left; }
  .hero__title { font-size: clamp(36px, min(3.6vw, 7vh), 58px); }
  .hero__lead { margin-left: 0; margin-right: 0; max-width: 30em; }
  .hero-btns { justify-content: flex-start; }
  .hero-visual { max-width: none; }
}
@media (max-width: 999px) {
  .hero-visual { width: calc(100% - 2 * var(--gutter)); }
}
@media (max-width: 560px) {
  .hero-visual { display: none; }
  .hero-btns .btn { flex: 1 1 100%; }
}

/* =====================================================================
   Additions for the phone and tablet design (October 2026)
   Base rules here also cover desktop where noted.
   ===================================================================== */

/* ---------- Header: menu icon swaps to a cross while the menu is open ---------- */
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }
.header-quote { display: none; }

/* the page behind an open menu: locked in place, lightly frosted */
.nav-shade {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 40;
  background: rgba(253, 253, 252, .9);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav-shade { background: rgba(253, 253, 252, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
html.menu-open { overflow: hidden; }
html.menu-open .site-header { background: var(--bg); }

/* ---------- Services: left-aligned cards; the whole card links on to a planner ---------- */
.service { text-align: left; }
.service svg { margin: 0; }
.service__short { display: none; }
.service__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.service__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.service__arrow { display: none; }
.services-more { display: none; }
/* desktop: six services in a 3 × 2 grid */
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ---------- Contact: heading, details, map and form are separate grid items ---------- */
.contact__inner {
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "info    form"
    "details form"
    "map     form";
}
.contact__info { grid-area: info; }
.contact__info > p { margin-bottom: 0; }
.contact__details { grid-area: details; display: grid; gap: 2px; line-height: 1.5; }
.contact__details a,
.contact__plain { display: inline-flex; align-items: flex-start; gap: 10px; padding: 4px 0; color: var(--text); text-decoration: none; }
.contact__details a:hover { color: var(--accent); }
.contact__details svg { flex: none; margin-top: 2px; color: var(--ink); }
@media (min-width: 1000px) { .contact__details svg { display: none; } }

/* ---------- Footer ---------- */
.footer-tagline { display: none; }

/* =====================================================================
   Phones and tablets: under 1000 px
   ===================================================================== */
@media (max-width: 999px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: clamp(26px, 7.4vw, 38px); line-height: 1.15; }
  .section-lead { font-size: 16px; max-width: 34ch; }
  main a, .site-footer a { text-decoration: none; }

  /* menu: full width under the header */
  .nav { padding: 12px var(--gutter) 22px; z-index: 45; box-shadow: 0 30px 40px -30px rgba(24, 19, 15, .35); }
  .nav__links a { display: flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 14px; font-size: 17px; }
  .nav .btn { min-height: 50px; }

  /* hero: no forced full-screen height; smaller picture under the buttons */
  .hero-screen { min-height: 0; gap: 30px; padding-top: 32px; padding-bottom: 48px; }
  .hero-visual { display: block; }

  /* services: bordered cards with icon, name, one short line and an arrow */
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .service {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 20px;
    grid-template-areas: "ico title go" "ico short go";
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    padding: 15px 16px 15px 14px;
    border-radius: 18px;
    animation: none;
  }
  .service::before { display: none; }
  .service::after,
  .service:nth-child(even)::after {
    background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
    border-width: 1px;
  }
  .service:hover { transform: none; box-shadow: none; }
  .service > svg { grid-area: ico; width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--soft); }
  .service h3 { grid-area: title; margin: 0; font-size: 16.5px; line-height: 1.3; }
  .service p { display: none; }
  .service .service__short { display: block; grid-area: short; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
  .service__arrow { display: block; grid-area: go; color: var(--muted); }
  .service__link { display: grid; }
  .service__link .service__arrow { position: absolute; right: 16px; top: 50%; margin-top: -10px; }
  .services-more { display: grid; justify-items: center; gap: 12px; margin-top: 28px; text-align: center; }
  .services-more p { margin: 0; font-size: 15px; color: var(--muted); }

  /* our work: one row of cards, centre card in front (main.js arranges them) */
  .work-grid.is-cf { display: block; position: relative; height: var(--cf-h, 360px); margin: 0 calc(-1 * var(--gutter)); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .work-grid.is-cf .work-card {
    --d: 0; --s: 1;
    position: absolute; left: 50%; top: 10px; width: 72%; height: var(--cf-card-h, auto);
    transform: translateX(calc(-50% + var(--d) * 66% + var(--drag, 0px))) scale(var(--s));
    transition: transform .55s cubic-bezier(.22, .8, .24, 1), opacity .45s ease, filter .45s ease;
    cursor: grab;
  }
  .work-grid.is-cf.is-dragging .work-card { transition: none; cursor: grabbing; }
  .work-grid.is-cf .work-card[data-pos="center"] { z-index: 3; background: var(--white); box-shadow: 0 0 0 1px var(--line-light), 0 24px 40px -26px rgba(24, 19, 15, .5); }
  .work-grid.is-cf .work-card[data-pos="side"] { z-index: 2; --s: .86; opacity: .55; filter: saturate(.6); cursor: pointer; }
  .work-grid.is-cf .work-card[data-pos="away"] { z-index: 1; --s: .72; opacity: 0; pointer-events: none; }
  .work-grid.is-cf .work-card:hover { transform: translateX(calc(-50% + var(--d) * 66% + var(--drag, 0px))) scale(var(--s)); }
  .work-card h3 { font-size: 18px; }
  .cf-dots { display: flex; justify-content: center; margin-top: 8px; }
  .cf-dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .cf-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background-color .3s ease; }
  .cf-dots button[aria-current="true"] span { background: var(--accent); }
  .cf-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 50%; }

  /* about */
  .stat strong { font-size: 30px; }

  /* contact: heading, form, details, map */
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "info" "form" "details" "map";
    gap: 22px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .contact__info { text-align: center; }
  .contact__info h2 { font-size: clamp(26px, 7.4vw, 38px); margin-bottom: 10px; }
  .contact__info > p { font-size: 16px; color: var(--muted); max-width: 34ch; margin: 0 auto; }
  .contact__details { font-size: 15.5px; }
  .contact__map { height: 200px; }

  /* footer */
  .footer-title { margin: 0 0 14px; }
}

/* ---------- Phones (up to 699 px) ---------- */
@media (max-width: 699px) {
  .hero { text-align: left; }
  .hero__title { font-size: clamp(30px, 9.3vw, 40px); line-height: 1.12; text-wrap: pretty; }
  .hero__lead { margin-left: 0; font-size: 17px; }
  .hero-btns { display: grid; justify-content: stretch; }
  .hero-btns .btn { width: 100%; }
  .hero-visual { width: calc(100% - 2 * var(--gutter)); padding: 18px 0 18px 18px; }
  .hv-browser img { height: 178px; }

  /* how we work: stacked steps joined by a thin line */
  .hw-grid { gap: 0; }
  .hw-card { position: relative; background: none; padding: 0 0 26px; border: 0; grid-template-columns: 48px minmax(0, 1fr); }
  .hw-card:last-child { padding-bottom: 0; }
  .hw-card::before { content: ""; position: absolute; left: 23.5px; top: 52px; bottom: 4px; width: 1px; background: var(--line); }
  .hw-card:last-child::before { display: none; }
  .hw-card:hover { transform: none; box-shadow: none; }
  .hw-num { width: 48px; height: 48px; font-size: 15px; border-width: 1px; }
  .hw-card > div { padding-top: 10px; }
  .hw-card h3 { font-size: 19px; margin-bottom: 4px; }

  /* footer: brand and line, Quick Links, Services, then contact details */
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 52px; padding-bottom: 40px; }
  .footer-company { display: contents; }
  .footer-company .logo { order: 1; }
  .footer-tagline { display: block; order: 2; margin: -12px 0 0; max-width: 34ch; line-height: 1.6; }
  .footer-grid > nav { order: 3; }
  .footer-grid > div:not(.footer-company) { order: 4; }
  .footer-contact { order: 5; margin-top: 0; padding-top: 22px; border-top: 1px solid #262220; }
  .footer-links { gap: 2px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 36px; }
  .footer-bottom__inner { flex-direction: column; }
}

/* ---------- Tablets (700 to 999 px) ---------- */
@media (min-width: 700px) and (max-width: 999px) {
  .header-quote { display: inline-flex; min-height: 42px; padding: 0 18px; font-size: 15px; margin-left: auto; }
  .site-header__inner { gap: 10px; }
  .nav .btn { display: none; }

  .hero__title { font-size: 48px; }
  .hero-visual { max-width: 600px; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .service { padding: 20px 20px 20px 18px; grid-template-columns: 48px minmax(0, 1fr) 20px; column-gap: 16px; }
  .service > svg { width: 48px; height: 48px; }
  .service h3 { font-size: 17px; }
  .service .service__short { font-size: 15px; }

  .work-grid.is-cf .work-card { width: 44%; transform: translateX(calc(-50% + var(--d) * 72% + var(--drag, 0px))) scale(var(--s)); }
  .work-grid.is-cf .work-card:hover { transform: translateX(calc(-50% + var(--d) * 72% + var(--drag, 0px))) scale(var(--s)); }

  /* how we work: three columns, numbers centred and joined by a line */
  .hw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .hw-card { position: relative; display: block; background: none; padding: 0; border: 0; text-align: center; }
  .hw-card::before { content: ""; position: absolute; top: 24px; left: calc(50% + 34px); right: calc(-50% + 14px); height: 1px; background: var(--line); }
  .hw-card:last-child::before { display: none; }
  .hw-card:hover { transform: none; box-shadow: none; }
  .hw-num { width: 48px; height: 48px; margin: 0 auto 14px; font-size: 15px; border-width: 1px; }
  .hw-card h3 { font-size: 19px; margin-bottom: 6px; }
  .hw-card p { font-size: 15.5px; }

  /* about: text beside the numbers */
  .about { flex-direction: row; align-items: center; gap: 32px; padding: 40px 36px; }
  .stats { flex: 0 0 300px; width: auto; }

  /* contact: heading on top, details and map on the left, form on the right */
  .contact__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "info info" "details form" "map form";
    column-gap: 24px;
    row-gap: 18px;
  }
  .contact__map { height: auto; min-height: 200px; }

  /* footer: three columns, the logo row lines up with the column titles */
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 56px; }
  .footer-company { grid-column: auto; }
  .footer-title { min-height: 40px; display: flex; align-items: center; margin: 0 0 12px; }
  .footer-contact { margin-top: 18px; font-size: 15px; }
  .footer-links { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .work-grid.is-cf .work-card, .cf-dots span { transition: none; }
}

/* tablets: keep "Get free quote" well clear of the menu button so it isn't tapped by mistake */
@media (min-width: 700px) and (max-width: 999px) {
  .header-quote { margin-right: 24px; }
}
/* large tablets held upright (iPad Pro 12.9" / 13"): the desktop layout, but the hero
   no longer stretches to the full tall screen, which left big empty gaps */
@media (min-width: 1000px) and (orientation: portrait) {
  .hero-screen { min-height: 0; padding-top: 72px; padding-bottom: 80px; }
}

/* contact form: "Choose one" shows in grey until an option is picked */
select.input:invalid { color: var(--field); }
select.input option { color: var(--ink); }

/* ---------- Phone font sizes: calmer scale, 16px body ---------- */
@media (max-width: 699px) {
  body { font-size: 16px; }
  .hero .hero__title { font-size: 32px; }
  .hero .hero__lead { font-size: 16px; }
  .section .section-title,
  .hw .hw-title,
  .about .about__text h2,
  .contact .contact__info h2 { font-size: 26px; }
  .section .section-lead,
  .about .about__text p,
  .contact .contact__info > p { font-size: 16px; }
  .tag { font-size: 13px; }
  .services-grid .service h3,
  .work-grid .work-card h3,
  .hw-grid .hw-card h3 { font-size: 17px; }
  .work-grid .work-card__body p { font-size: 15px; }
  .hw-grid .hw-card p { font-size: 15.5px; }
  .btn { font-size: 16px; }
  .stats .stat strong { font-size: 26px; }
  .footer-tagline,
  .footer-links a { font-size: 15px; }
}
