/* Photos Edit Hub, site styles (2026 redesign)
   Brand: the logo's yellow on ink, warm off-white paper. */

:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --soft: #f2f0ea;
  --ink: #141414;
  --ink-2: #3a3834;
  --muted: #6d6a63;
  --line: #e4e0d7;
  --line-strong: #cfcac0;
  --yellow: #ffc20e;
  --yellow-soft: #fff3c4;
  --gold-start: #8a6100; /* used by script.js for the active nav link */

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: 32px;
  --radius: 10px;
}

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

html { -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline { border-color: var(--line-strong); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }

/* Main call to action: pill with a round arrow badge that nudges on hover */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 8px 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(20, 20, 20, .55);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform .25s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(20, 20, 20, .6); }
.btn-cta:hover .btn-cta-icon { transform: translateX(3px) rotate(-45deg); }
.btn-cta-yellow {
  background: linear-gradient(180deg, #fed945 0%, #ffcf1f 100%);
  color: var(--ink);
  box-shadow: 0 12px 26px -12px rgba(190, 140, 0, .75), inset 0 0 0 1px rgba(20, 20, 20, .08);
}
.btn-cta-yellow .btn-cta-icon { background: var(--ink); color: var(--yellow); }
.btn-cta-yellow:hover { box-shadow: 0 18px 32px -14px rgba(190, 140, 0, .85), inset 0 0 0 1px rgba(20, 20, 20, .12); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  line-height: 1.3;
}
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Trial notice ---------- */
.notice {
  background: var(--ink);
  color: #f3f1ec;
  font-size: 14px;
}
.notice .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;
  text-align: center;
  flex-wrap: wrap;
}
.notice a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: transform .25s ease, border-color .2s ease;
}
.navbar.scrolled { border-bottom-color: var(--line); }
.navbar.nav-hidden { transform: translateY(-100%); }
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
/* the logo file has ~20% transparent padding, so size it up and pull it
   left until the camera mark lines up with the page edge */
.nav-logo .logo-icon { width: 64px; height: auto; margin: -8px 0 -8px -14px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  color: var(--ink-2);
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links .nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  margin-left: 6px;
}
.nav-links .nav-cta:hover { background: #333; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle.active span:first-child { top: 20px; transform: rotate(45deg); }
.nav-toggle.active span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ----------
   Centered like a product launch page: headline, the before/after viewer,
   then the two buttons. The viewer height follows the screen height so the
   whole hero, buttons included, sits in one view. */
#hero {
  --stage-h: clamp(300px, calc(100svh - 560px), 600px);
  padding: clamp(36px, 5vh, 64px) 0 64px;
  overflow: hidden;
}
.hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-head h1 {
  font-size: clamp(34px, 3.9vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero-head > p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-yellow {
  background: linear-gradient(180deg, #fed945 0%, #ffcf1f 100%);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .06);
}
.btn-yellow:hover { background: linear-gradient(180deg, #fdd12a 0%, #f7c200 100%); }

/* category switch: a quiet segmented control */
.hero-tabs {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 36px auto 16px;
  padding: 4px;
  border-radius: 999px;
  background: var(--soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.hero-tabs::-webkit-scrollbar { display: none; }
.hero-tab {
  background: none;
  border: 0;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.hero-tab:hover { color: var(--ink); }
.hero-tab.active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(20, 20, 20, .12);
}

.hero-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.viewer {
  position: relative;
  flex: none;
  width: min(calc(var(--stage-h) * 16 / 9), calc(100% - 2 * var(--gutter)));
}

/* laptop screens (short viewports): tighten the stack so the viewer still
   fits above the fold */
@media (min-width: 769px) and (max-height: 880px) {
  #hero { --stage-h: clamp(300px, calc(100svh - 470px), 600px); padding-top: 26px; }
  .hero-head h1 { font-size: clamp(34px, 3.3vw, 46px); }
  .hero-head > p { margin-top: 12px; font-size: 17px; }
  .hero-actions { margin-top: 22px; }
  .hero-tabs { margin: 22px auto 12px; }
}

.hero-carousel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1b1a18;
}
.hero-carousel-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  /* old slide stays put until the new one has faded in over it */
  transition: opacity 0s linear .3s, visibility 0s linear .3s;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  transition: opacity .3s ease;
}
.hero-slide-inner,
.hero-slide-images { position: relative; width: 100%; height: 100%; }
.hero-slide-images .hero-slider-container { display: none; }
.hero-slide-images .hero-slider-container.active-img { display: block; }

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.hero-slider-before,
.hero-slider-after {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  pointer-events: none;
}
.hero-slider-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}
.hero-slider-after-wrap .hero-slider-after {
  position: absolute;
  inset: 0;
  object-position: var(--after-x, 55%) var(--after-y, 50%);
  transform: scale(var(--after-scale, 1));
  transform-origin: var(--after-x, 55%) var(--after-y, 50%);
}

.hero-slider-line,
.srv-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}
.hero-slider-handle,
.srv-slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
  cursor: col-resize;
}
.hero-slider-handle svg,
.srv-slider-handle svg { width: 15px; height: 15px; stroke: var(--ink); }

.hero-ba-label,
.srv-ba-label {
  position: absolute;
  top: 14px;
  z-index: 12;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(20, 20, 20, .62);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
}
.hero-ba-label.before, .srv-ba-label.before { right: calc(50% + 10px); }
.hero-ba-label.after, .srv-ba-label.after { left: calc(50% + 10px); }
.hero-slide:not(.active) .hero-slider-handle,
.hero-slide:not(.active) .hero-slider-line,
.hero-slide:not(.active) .hero-ba-label { opacity: 0; }

.hero-img-dots { display: none; }

.hero-img-arrow {
  position: absolute;
  bottom: 16px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .15s ease;
}
.hero-img-arrow:hover { background: #fff; }
.hero-img-arrow svg { width: 18px; height: 18px; }
.hero-img-prev { right: 66px; }
.hero-img-next { right: 16px; }
/* Next is the one we want people to press: brand yellow, and until the
   visitor first uses the arrows or tabs it pulses and nudges forward. */
.hero-img-next { background: var(--yellow); }
.hero-img-next:hover { background: #ffd23d; }
.hero-img-next.is-hinting::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 0 rgba(255, 194, 14, .75);
  animation: nextPulse 1.8s ease-out infinite;
  pointer-events: none;
}
.hero-img-next.is-hinting svg { animation: nextNudge 1.8s ease-in-out infinite; }
@keyframes nextPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 194, 14, .75); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(255, 194, 14, 0); }
}
@keyframes nextNudge {
  0%, 55%, 100% { transform: translateX(0); }
  25% { transform: translateX(3px); }
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.facts > div { padding: 22px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* sits on the photo, bottom-left, opposite the arrows */
.viewer-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 31;
  pointer-events: none;
  display: block;
  height: 42px;
  line-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.viewer-caption .sep { margin: 0 10px; color: var(--line-strong); }

.facts dt small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.facts dd { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Section basics ---------- */
#services, #process, #testimonials { padding: 96px 0; }
#services { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2,
.process-intro h2,
.quotes-head h2,
.trial h2 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -0.03em; }
.section-head p { color: var(--ink-2); max-width: 32em; }

/* ---------- Services explorer ---------- */
.svc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 56px;
  align-items: start;
}
.svc-list { grid-column: 1; grid-row: 1; }
.svc-stage { grid-column: 2; grid-row: 1 / span 2; }
.svc-cta { grid-column: 1; grid-row: 2; padding-top: 28px; }
.svc-cta p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.svc-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.svc-tab {
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: color .3s ease;
}
/* progress line on the active service; when it finishes, home.js moves on */
.svc-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}
.svc.is-auto .svc-tab.is-active::after { animation: svcProgress var(--svc-time, 3s) linear forwards; }
.svc.is-paused .svc-tab.is-active::after { animation-play-state: paused; }
@media (hover: hover) {
  .svc:hover .svc-tab.is-active::after { animation-play-state: paused; }
}
@keyframes svcProgress { to { transform: scaleX(1); } }
.svc-tab::before {
  content: "";
  width: 8px;
  height: 8px;
  background: transparent;
  flex: none;
}
.svc-tab:hover { color: var(--ink); }
.svc-tab.is-active { color: var(--ink); font-weight: 600; }
.svc-tab.is-active::before { background: var(--yellow); outline: 1px solid var(--ink); }

/* all cards share one grid cell and cross-fade */
.svc-stage { display: grid; }
.service-slider-card {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.service-slider-card.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  transition: opacity .7s ease;
}
.service-slider-container,
.service-display-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 819;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--soft);
}
.service-slider-container {
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.srv-img-before,
.srv-img-display { width: 100%; height: 100%; object-fit: cover; }
.srv-img-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}
.srv-img-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.srv-img-before { pointer-events: none; }
.service-slider-info {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding-top: 22px;
}
.service-slider-info h3 { font-size: 20px; }
.service-slider-info p { color: var(--ink-2); font-size: 0.9em; }

/* ---------- Recent edits ---------- */
#work { padding: 96px 0 88px; overflow: hidden; }
.work-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 40px;
}
.work-head h2 { font-size: clamp(32px, 3.6vw, 46px); letter-spacing: -0.03em; }
.work-head p { color: var(--ink-2); max-width: 44em; text-wrap: balance; }
.marquee {
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 var(--gutter);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee-track { display: flex; gap: 18px; width: max-content; }
.marquee.is-ready { overflow: hidden; padding: 0; }
.marquee.is-ready .marquee-track { animation: marquee 70s linear infinite; }
.marquee.is-ready:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.work-item { margin: 0; width: 290px; flex: none; }
.work-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}
.work-item figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- How it works ---------- */
.process-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 72px;
  align-items: start;
}
.process-intro { position: sticky; top: 110px; }
.process-intro p { color: var(--ink-2); margin: 18px 0 28px; max-width: 26em; }
.steps { border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step-no { font-size: 14px; color: var(--muted); padding-top: 4px; }
/* the last row is a guarantee, not a step: tinted, with a yellow marker */
.steps li.step-promise {
  /* bleed the tint outward so its columns line up with the steps above */
  margin: 12px -22px 0;
  padding: 24px 22px;
  border-bottom: 0;
  border-radius: 10px;
  background: var(--yellow-soft);
}
.step-promise .step-no {
  display: flex;
  align-items: center;
  align-self: start;
  line-height: 1.6;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.step-promise .step-no::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--yellow);
  outline: 1px solid var(--ink);
  flex: none;
}
.steps h3 { font-size: 21px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); }

/* ---------- Testimonials ---------- */
#testimonials { background: var(--soft); }
.quotes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.testimonial-nav { display: flex; align-items: center; gap: 10px; }
.quote-count {
  margin-right: 14px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.quote-count span { color: var(--ink); font-weight: 600; }
.testimonial-nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.testimonial-nav button:hover { border-color: var(--ink); background: var(--white); }
/* the wrapper bleeds 8px each side and each card pads it back, so the italic
   overhang of the next quote never peeks in at the edge */
.testimonials-track-wrapper { overflow: hidden; margin: 0 -8px; }
.testimonials-track { display: flex; transition: transform .3s ease; }
.testimonial-card {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 8px 8px;
}
.testimonial-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 30em;
}
.testimonial-card figcaption {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.testimonial-card figcaption strong { font-weight: 600; }
.testimonial-card figcaption span { color: var(--muted); }
.testimonial-card figcaption span::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.testimonial-dots { display: flex; gap: 6px; margin-top: 40px; }
.testimonial-dot {
  width: 28px;
  height: 3px;
  border: 0;
  padding: 0;
  background: var(--line-strong);
  cursor: pointer;
}
.testimonial-dot.active { background: var(--ink); }

/* ---------- Free trial / contact ---------- */
#contact { padding: 96px 0; }
.trial {
  /* soft top-to-bottom wash, picked from the brand yellow */
  background: linear-gradient(180deg, #fed945 0%, #fedf62 50%, #ffe785 100%);
  border-radius: 16px;
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.trial h2 { max-width: 11em; }
.trial-copy > p { margin-top: 18px; font-size: 18px; max-width: 28em; }
.trial-contact { margin-top: 36px; border-top: 1px solid rgba(20, 20, 20, .2); }
.trial-contact li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 20, 20, .2);
  font-size: 16px;
}
.trial-contact span { color: rgba(20, 20, 20, .66); }
.trial-contact a { font-weight: 600; word-break: break-word; }
.trial-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form-wrapper {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.contact-form-wrapper.trial-form-enter { animation: formPulse 1.1s ease; }
@keyframes formPulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 20, 20, .35); }
  100% { box-shadow: 0 0 0 14px rgba(20, 20, 20, 0); }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 18px; }
.form-group label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group .opt { font-weight: 400; color: var(--muted); margin-left: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color .15s ease, background-color .15s ease;
}
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9d998f; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}
.form-submit { width: 100%; margin-top: 4px; border: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  background: var(--paper);
  font-size: 15px;
}
/* brand left, Explore in the middle of the page, Contact on the right */
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 48px;
  row-gap: 40px;
  align-items: start;
}
.footer-grid > .footer-col:last-child { justify-self: end; }
.footer-brand p { color: var(--muted); margin: 16px 0 20px; max-width: 24em; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.footer-socials a:hover { border-color: var(--ink); color: var(--ink); }
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-plain { color: var(--muted); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.footer-bottom div { display: flex; gap: 22px; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.steps > [data-reveal]:nth-child(2) { transition-delay: .08s; }
.steps > [data-reveal]:nth-child(3) { transition-delay: .16s; }
.steps > [data-reveal]:nth-child(4) { transition-delay: .24s; }

.hero-head h1,
.hero-head > p,
.hero-actions,
.hero-stage { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-head > p { animation-delay: .06s; }
.hero-actions { animation-delay: .28s; }
.hero-stage { animation-delay: .2s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Full HD screens (1920x1080 at 100%, and 15" laptops at 125%,
   which report about 1536x730) ----------
   Fit each main section into one screen: a bigger hero viewer, a services
   image that stays inside the view, a tighter ordering list and a shorter
   testimonials band. Larger and smaller screens are not affected. */
@media (min-width: 1400px) and (max-width: 2100px) and (min-height: 600px) and (max-height: 1100px) {
  #hero { --stage-h: clamp(300px, calc(100svh - 500px), 560px); padding-top: 28px; }
  .hero-head > p { margin-top: 12px; }
  .hero-tabs { margin: 24px auto 14px; }
  .hero-actions { margin-top: 22px; }

  #services { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  /* narrow the whole section to the image size so the heading lines up */
  #services > .container { max-width: calc(316px + (100svh - 340px) * 1024 / 819 + var(--gutter) * 2); }
  .svc { grid-template-columns: 260px minmax(0, 1fr); }
  .service-slider-info { padding-top: 16px; }

  #process { padding: 64px 0; }
  .process-intro { top: 96px; }
  .steps li { padding: 16px 0; }
  .steps h3 { font-size: 19px; margin-bottom: 2px; }
  .steps p { font-size: 16px; }
  .steps li.step-promise { margin-top: 10px; padding: 16px 22px; }

  #testimonials { padding: 64px 0 56px; }
  .quotes-head { margin-bottom: 28px; }
  .testimonial-card figcaption { margin-top: 20px; }
  .testimonial-dots { margin-top: 28px; }
}

@media (min-width: 1400px) and (max-width: 2100px) and (min-height: 600px) and (max-height: 860px) {
  #hero { --stage-h: calc(100svh - 395px); padding-top: 22px; }
  .hero-head h1 { font-size: 38px; }
  .hero-head > p { font-size: 16px; margin-top: 8px; max-width: 900px; }
  .hero-tabs { margin: 16px auto 10px; }
  .hero-actions { margin-top: 16px; }
  #services { padding: 48px 0; }
  .section-head { margin-bottom: 20px; }
  .section-head h2, .process-intro h2, .quotes-head h2 { font-size: 36px; }
  .svc-tab { padding: 11px 0; font-size: 16px; }
  #process { padding: 48px 0; }
  .steps li { padding: 12px 0; }
  .steps h3 { font-size: 18px; }
  .steps p { font-size: 15px; line-height: 1.5; }
  .steps li.step-promise { padding: 12px 22px; }
  #testimonials { padding: 48px 0 44px; }
  .testimonial-card blockquote { font-size: 32px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  :root { --gutter: 28px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .svc { grid-template-columns: 210px minmax(0, 1fr); column-gap: 36px; }
  .service-slider-info { grid-template-columns: 1fr; gap: 8px; }
  .work-head { grid-template-columns: 1fr; gap: 16px; }
  .process-wrap { grid-template-columns: 1fr; gap: 36px; }
  .process-intro { position: static; }
  .trial { grid-template-columns: 1fr; padding: 44px; gap: 36px; }
  .footer-grid { column-gap: 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta) { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .nav-cta { margin: 16px 0 0; height: 48px; justify-content: center; }
  .navbar .container { position: relative; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .notice { font-size: 13px; }
  .notice .container { gap: 8px; }
  #hero { padding: 36px 0 48px; }
  .hero-head > p { font-size: 16.5px; }
  .hero-head h1 { font-size: 31px; }
  .hero-actions .btn { flex: 1 1 0; }
  .hero-tabs { margin-top: 28px; }
  .viewer { width: calc(100% - 2 * var(--gutter)); }
  .hero-carousel { aspect-ratio: 3 / 4; }
  .hero-img-arrow { width: 38px; height: 38px; bottom: 12px; }
  .hero-img-prev { right: 58px; }
  .hero-img-next { right: 12px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .facts > div { padding: 18px 12px 18px 0; }
  .facts > div + div { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts dt { font-size: 22px; }
  .facts dd { font-size: 14px; }

  #services, #process, #testimonials, #contact { padding: 64px 0; }
  .section-head { margin-bottom: 28px; }
  .svc { grid-template-columns: 1fr; gap: 20px; }
  .svc-cta .btn-cta { width: 100%; justify-content: space-between; }
  .svc-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    border-top: 0;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    scrollbar-width: none;
  }
  .svc-list::-webkit-scrollbar { display: none; }
  .svc-tab {
    flex: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 15px;
    white-space: nowrap;
  }
  .svc-tab::before { display: none; }
  .svc-tab::after { left: 14px; right: 14px; width: auto; bottom: 5px; background: var(--yellow); }
  .svc-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
  .svc-list, .svc-stage, .svc-cta { grid-column: 1; grid-row: auto; }
  .svc-cta { order: 3; padding-top: 8px; }
  .svc-stage { order: 2; }
  .service-slider-info h3 { font-size: 18px; }

  #work { padding: 64px 0 56px; }
  .work-head { margin-bottom: 28px; }
  .work-item { width: 220px; }
  .marquee-track { gap: 12px; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }


  .viewer-caption { font-size: 13px; height: 38px; line-height: 38px; left: 12px; bottom: 12px; padding: 0 12px; }

  .steps li { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
  .steps li.step-promise { margin: 12px 0 0; padding: 20px 16px; }

  .quotes-head { margin-bottom: 28px; }
  .testimonial-nav { display: none; }
  .testimonial-card blockquote { font-size: 25px; }
  .testimonial-dots { margin-top: 28px; }

  #contact { padding-top: 0; }
  #contact .container { padding: 0; }
  .trial { border-radius: 0; padding: 48px var(--gutter); }
  .trial-contact li { grid-template-columns: 90px minmax(0, 1fr); }
  .contact-form-wrapper { padding: 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > .footer-col:last-child { justify-self: start; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee.is-ready { overflow-x: auto; }
}

/* ---------- WhatsApp chat button (every page) ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 15px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35);
  transition: gap .25s ease, padding .25s ease, transform .2s ease;
}
.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 600;
  font-size: 15px;
  transition: max-width .3s ease;
}
.wa-float:hover { gap: 10px; padding-right: 20px; transform: translateY(-2px); }
.wa-float:hover .wa-float-label { max-width: 140px; }
@media (max-width: 768px) {
  .wa-float { right: 14px; bottom: 14px; height: 52px; padding: 0 13px; }
}

/* ---------- Phones: hero, facts and CTA sizing ---------- */
@media (max-width: 768px) {
  .hero-head > p { font-size: 15px; line-height: 1.55; }

  /* categories: one row when it fits, otherwise wraps to a second row */
  .hero-tabs {
    width: auto;
    max-width: calc(100% - 2 * var(--gutter));
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    border-radius: 22px;
  }
  .hero-tabs { gap: 0; padding: 3px; }
  .hero-tab { padding: 7px 10px; font-size: 13px; }

  /* the two hero buttons stay side by side and only as wide as their text */
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 0 1 auto; height: 44px; padding: 0 18px; font-size: 15px; }

  /* stats: centred in each cell */
  .facts > div,
  .facts > div + div,
  .facts > div:nth-child(even) { padding: 18px 8px; text-align: center; }

  /* "See Prices" sized to its text, not the full width */
  .svc-cta .btn-cta { width: auto; justify-content: flex-start; }
}
@media (max-width: 360px) {
  .hero-actions .btn { padding: 0 14px; font-size: 14px; }
}

/* ---------- Phones: section-by-section tidy up ---------- */
@media (max-width: 768px) {
  /* hero */
  .hero-head > p { font-size: 14px; }
  .hero-tab { position: relative; }
  .hero-tab + .hero-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 30%;
    bottom: 30%;
    width: 1px;
    background: var(--line-strong);
  }
  .hero-tab.active::before,
  .hero-tab.active + .hero-tab::before { display: none; }

  /* What We Edit: every service as its own card, no tab row */
  .section-head { text-align: center; justify-items: center; }
  .svc-list { display: none; }
  .svc-stage { display: grid; gap: 16px; }
  .service-slider-card,
  .service-slider-card.is-active {
    display: block;
    grid-area: auto;
    opacity: 1;
    visibility: visible;
    transition: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }
  .service-slider-container,
  .service-display-container { border-radius: 0; }
  .service-slider-info { padding: 14px 16px 16px; gap: 4px; }
  .service-slider-info h3 { font-size: 18px; }
  .service-slider-info p { font-size: 14px; }
  .svc-cta { text-align: center; }
  .svc-cta .btn-cta { margin: 0 auto; }

  /* Recent Edits */
  .work-head { text-align: center; justify-items: center; }
  .work-head p { font-size: 14px; }
  .work-item { width: 150px; }
  .work-item figcaption { font-size: 13px; margin-top: 6px; }
  .marquee-track { gap: 10px; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

  /* How Ordering Works */
  .process-intro { text-align: center; }
  .process-intro p { font-size: 14.5px; margin: 12px auto 20px; }
  .process-intro .btn-cta { height: 48px; padding-left: 20px; font-size: 15px; gap: 10px; }
  .process-intro .btn-cta-icon { width: 34px; height: 34px; }
  .steps li { padding: 14px 0; text-align: center; }
  .step-no { font-size: 13px; padding-top: 0; }
  .steps h3 { font-size: 17px; margin-bottom: 4px; }
  .steps p { font-size: 14px; line-height: 1.5; }
  .steps li.step-promise { padding: 16px; }
  .step-promise .step-no { justify-content: center; }

  /* What Clients Tell Us */
  .testimonial-card blockquote { font-size: 20px; line-height: 1.35; }
  .testimonial-card figcaption { margin-top: 16px; font-size: 14px; }
  .testimonial-dots { margin-top: 20px; }
}

/* ---------- Phones: reviews, recent edits, trial form, footer ---------- */
@media (max-width: 768px) {
  .quotes-head { justify-content: center; text-align: center; }
  .testimonial-card { text-align: center; }
  .testimonial-card figcaption { justify-content: center; }
  .testimonial-dots { justify-content: center; }

  .work-head p { max-width: none; justify-self: stretch; text-wrap: wrap; }
  .section-head p { justify-self: stretch; }
  .process-intro p { font-size: 13.5px; }

  /* free trial: compact so most of it fits one screen */
  #contact { padding-bottom: 40px; }
  .trial { padding: 28px var(--gutter) 24px; gap: 18px; }
  .trial h2 { font-size: 26px; }
  .trial-copy > p { margin-top: 10px; font-size: 14px; line-height: 1.55; }
  .trial-contact { margin-top: 16px; }
  .trial-contact li { padding: 7px 0; font-size: 13.5px; grid-template-columns: 80px minmax(0, 1fr); }
  .contact-form-wrapper { padding: 16px; border-radius: 10px; }
  .form-group { margin-bottom: 10px; }
  .form-group label { font-size: 12.5px; margin-bottom: 4px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 8px 11px; font-size: 15px; }
  .form-group textarea { min-height: 70px; }
  .form-submit { height: 44px; }

  /* footer: everything centred */
  .footer-grid { text-align: center; }
  .footer-brand .nav-logo { justify-content: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .footer-socials { justify-content: center; }
  .footer-grid > .footer-col:last-child { justify-self: center; }
  .footer-bottom { align-items: center; text-align: center; }
  .footer-bottom div { justify-content: center; }
}

/* ---------- Phones: notice, tabs width, submit button ---------- */
@media (max-width: 768px) {
  .notice { display: none; }
  .hero-tabs { width: fit-content; }
  .form-submit { display: flex; width: auto; min-width: 220px; margin: 4px auto 0; padding: 0 32px; }
}
