/* Spotted Studio homepage. Tokens follow the Brand Kit v1.1 (colour, type scale, buttons, cards). */

@font-face { font-family: "Canela"; font-weight: 700; font-display: swap; src: local("Canela Bold"), local("Canela-Bold"); }
@font-face { font-family: "Canela"; font-weight: 400; font-display: swap; src: local("Canela Regular"), local("Canela-Regular"); }
@font-face { font-family: "Canva Sans"; font-weight: 400; font-display: swap; src: local("Canva Sans"), local("CanvaSans-Regular"); }
@font-face { font-family: "Canva Sans"; font-weight: 700; font-display: swap; src: local("Canva Sans Bold"), local("CanvaSans-Bold"); }

:root {
  --black: #000000;
  --white: #ffffff;
  --grey: #f2f2f2;
  --pink: #e61f93;
  --ink-muted: #555555;      /* 7.5:1 on white */
  --paper-muted: #b8b8b8;    /* 10:1 on black */
  --line-dark: rgba(255, 255, 255, 0.22);
  --line-light: rgba(0, 0, 0, 0.16);

  --serif: "Canela", "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Canva Sans", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --h1: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);   /* 36px mobile, 56px desktop */
  --h2: clamp(1.875rem, 1.4rem + 1.4vw, 2.5rem);  /* 40px desktop */
  --h3: 1.5rem;                                   /* 24px */
  --body: 1.125rem;                               /* 18px */
  --eyebrow: 0.8125rem;                           /* 13px */

  --gutter: clamp(20px, 4vw, 48px);
  --band-y: clamp(72px, 9vw, 136px);
  --radius: 28px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: var(--body); line-height: 1.6; color: var(--black); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.012em; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 44rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* Bands */
.band { position: relative; padding-block: var(--band-y); }
.band-light { background: var(--white); color: var(--black); }
.band-dark { background: var(--black); color: var(--white); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--white); }

.eyebrow { font-family: var(--sans); font-size: var(--eyebrow); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 20px; color: var(--ink-muted); display: flex; align-items: center; gap: 14px; }
.band-dark .eyebrow { color: var(--paper-muted); }
.eyebrow-num { color: var(--black); font-weight: 700; }
.band-dark .eyebrow-num { color: var(--white); }
.eyebrow-num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 14px; opacity: 0.5; }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-bottom: 20px; }
.section-head p:last-child { color: var(--ink-muted); }
.band-dark .section-head p:last-child { color: var(--paper-muted); }

/* Buttons: one pill shape everywhere */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 600 1rem/1 var(--sans); text-decoration: none; padding: 17px 28px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.btn svg { transition: transform 0.3s var(--ease); flex: none; }
.btn:hover svg, .btn:focus-visible svg { transform: translateX(4px); }
.btn-light { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark { background: var(--white); color: var(--black); border-color: var(--white); }
.btn:hover, .btn:focus-visible { background: var(--pink); border-color: var(--pink); color: var(--black); }

.text-link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 4px; transition: background-size 0.3s var(--ease); }
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: block; flex: none; }
.brand-full { display: none; }
.brand-badge { width: 48px; height: 48px; }

.menu-toggle { position: relative; width: 48px; height: 48px; border: 1.5px solid var(--line-dark); border-radius: 999px; background: transparent; color: var(--white); cursor: pointer; }
.menu-bars, .menu-bars::before { position: absolute; left: 14px; width: 18px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.menu-bars { top: 22px; }
.menu-bars::before { content: ""; left: 0; top: -6px; transform-origin: center; }
.menu-bars::after { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] .menu-bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(90deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { opacity: 0; }

.primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-bottom: 1px solid var(--line-dark); padding: 8px var(--gutter) 28px; display: none; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
.primary-nav.is-open { display: block; }
.primary-nav > ul { display: flex; flex-direction: column; }
.primary-nav a, .sub-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 0; font: 500 1.0625rem/1.2 var(--sans); color: var(--white); text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--line-dark); cursor: pointer; text-align: left; }
.sub { display: none; padding-left: 16px; }
.has-sub.is-open .sub { display: block; }
.sub a { color: var(--paper-muted); }
.sub-toggle svg { transition: transform 0.3s var(--ease); }
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.primary-nav .nav-cta { margin-top: 24px; justify-content: center; width: auto; display: inline-flex; padding: 17px 28px; color: var(--black); background: var(--white); border: 1.5px solid var(--white); }
.primary-nav .nav-cta:hover { background: var(--pink); border-color: var(--pink); }

/* Hero */
.hero { overflow: hidden; background: linear-gradient(160deg, #000 0%, #1c1c1c 100%); padding-block: clamp(56px, 8vw, 112px); }
.spotlight { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--mx, 78%) var(--my, 38%), rgba(255, 255, 255, 0.11), transparent 70%); }
.hero-grid { position: relative; display: grid; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 28px; max-width: 14em; }
.hero h1 .w { display: inline-block; }
.lead { font-size: 1.1875rem; color: #e4e4e4; max-width: 34rem; margin-bottom: 36px; }
.hero-actions { display: grid; gap: 20px; justify-items: start; }
.pink-rule { display: block; width: 56px; height: 3px; background: var(--pink); border-radius: 2px; transform-origin: left; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.first-step { font-size: 0.9375rem; color: var(--paper-muted); margin: 0; }
.first-step strong { color: var(--white); font-weight: 600; }

.photo-frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line-dark); background: #111; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.photo-frame-light { border-color: var(--black); }
.hero-figure { margin: 0; max-width: 460px; }
.hero-figure figcaption, .why-photo figcaption { font-size: 0.875rem; margin-top: 14px; color: var(--paper-muted); }
.why-photo figcaption { color: var(--ink-muted); }

/* Problem */
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-copy h2 { margin-bottom: 24px; }
.split-copy p { color: #2b2b2b; }

.results-list { margin: 0; }
.rank-card { background: var(--grey); border: 1px solid var(--black); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); max-width: 520px; }
.rank-query { display: flex; gap: 8px; margin: 0 0 20px; padding: 12px 18px; background: var(--white); border: 1px solid var(--line-light); border-radius: 999px; font-size: 0.9375rem; font-weight: 600; max-width: none; }
.rank-query span + span { color: var(--ink-muted); font-weight: 400; }
.rank-card ol { display: grid; gap: 10px; }
.rank-card li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--white); border: 1.5px solid transparent; border-radius: 18px; transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease); }
.rank-n { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; width: 28px; flex: none; }
.rank-bars { display: grid; gap: 8px; flex: 1; }
.rank-bars i { display: block; height: 8px; border-radius: 4px; background: #d9d9d9; }
.rank-bars i:first-child { width: 62%; background: #bdbdbd; }
.rank-bars i:last-child { width: 86%; }
.rank-you { border-style: dashed !important; border-color: var(--black) !important; }
.rank-you-label { font-weight: 600; }
.rank-you.is-marked { border-style: solid !important; border-color: var(--pink) !important; }
.results-list figcaption { font-size: 0.875rem; color: var(--ink-muted); margin-top: 16px; max-width: 520px; }

/* Cards */
.card { background: var(--grey); color: var(--black); border: 1px solid var(--black); border-radius: var(--radius); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.card:hover, .card:focus-within { border-color: var(--pink); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12); }
.card h3 { color: var(--black); }
.card p { color: #2b2b2b; }
.card-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; height: 100%; }
.card-tag { font-size: var(--eyebrow); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--ink-muted); margin: 0 0 14px; }
.card-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 18px; }
.card-price strong { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.card-price span { font-size: 0.9375rem; color: var(--ink-muted); }
.card .btn { margin-top: auto; }
.ticks { margin: 8px 0 32px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 1rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: translateY(-60%) rotate(-45deg) scale(0.9); }

.services-grid { display: grid; gap: 24px; }
.card-feature { display: grid; overflow: hidden; }
.card-photo { min-height: 260px; background: #111; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.chooser { margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--black); padding-top: 28px; }
.chooser h3 { margin-bottom: 8px; }
.chooser dl { margin: 0; }
.chooser dl > div { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line-light); }
.chooser dt { color: #2b2b2b; }
.chooser dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }

/* Process */
.process-grid { display: grid; gap: 48px; }
.process-intro { max-width: 34rem; }
.process-intro h2 { margin-bottom: 24px; }
.process-intro p:last-child { color: #d9d9d9; }
.steps { position: relative; padding-left: 40px; }
.step-dot-track { position: absolute; left: 6px; top: 0; bottom: 0; width: 1px; background: var(--line-dark); }
.step-dot { position: absolute; left: -6px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--pink); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line-dark); }
.step:nth-child(2) { border-top: 0; padding-top: 0; }
.step-n { font-family: var(--serif); font-weight: 700; font-size: 3rem; line-height: 1; }
.step h3 { margin-bottom: 8px; }
.step p { color: #d9d9d9; margin: 0; }

/* Why */
.why-grid { display: grid; gap: clamp(36px, 6vw, 88px); align-items: start; }
.why-photo { margin: 0; max-width: 460px; }
.why-copy h2 { margin-bottom: 24px; }
.why-list { display: grid; gap: 16px; margin-top: 36px; }
.card-compact { padding: 24px 28px; box-shadow: none; }
.card-compact h3 { margin-bottom: 8px; }
.card-compact p { margin: 0; font-size: 1rem; }

/* Website Build card */
.card-wide { display: grid; }
.phases { padding: clamp(24px, 3vw, 40px); border-top: 1px solid var(--black); }
.phases h4 { font: 600 var(--eyebrow)/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 8px; }
.phases ol { counter-reset: ph; }
.phases li { counter-increment: ph; position: relative; padding: 18px 0 18px 48px; border-bottom: 1px solid var(--line-light); font-size: 1rem; color: #2b2b2b; }
.phases li:last-child { border-bottom: 0; }
.phases li::before { content: counter(ph); position: absolute; left: 0; top: 14px; font-family: var(--serif); font-weight: 700; font-size: 1.75rem; color: var(--black); }
.phases li span { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.125rem; color: var(--black); margin-bottom: 2px; }

/* Industries */
.industry-list { columns: 1; column-gap: 48px; border-top: 1px solid var(--black); }
.industry-list li { break-inside: avoid; font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); padding: 18px 0; border-bottom: 1px solid var(--line-light); transition: padding-left 0.3s var(--ease); }
.industry-list li:hover { padding-left: 14px; }

/* Partners: logos drift from left to right */
.partners { padding-top: 0; border-top: 1px solid var(--line-light); padding-block: clamp(56px, 7vw, 96px); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee-right 70s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: center; flex: none; }
.marquee-set li { flex: none; width: clamp(140px, 16vw, 200px); height: clamp(72px, 8vw, 96px); margin-inline: clamp(12px, 2vw, 28px); display: flex; align-items: center; justify-content: center; }
.marquee-set img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: 0.75; transition: filter 0.4s var(--ease), opacity 0.4s var(--ease); }
.marquee-set li:hover img { filter: none; opacity: 1; }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; padding-inline: var(--gutter); }
  .marquee-set { flex-wrap: wrap; justify-content: center; }
  .marquee-set[aria-hidden="true"] { display: none; }
}

/* Results */
.results-grid { display: grid; gap: 24px; }
.result-card { box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.45); transform-origin: 50% 0; }
.result-card { padding: clamp(24px, 3vw, 40px); }
.result-card header { margin-bottom: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.period { margin: 0; font-size: 0.9375rem; color: var(--ink-muted); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin: 0 0 28px; }
.metrics dt { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.metrics dd { margin: 0; display: flex; flex-direction: column; }
.metrics b { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.05; }
.metrics span { font-size: 0.9375rem; color: var(--ink-muted); }
.ranks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding-top: 20px; border-top: 1px solid var(--line-light); max-width: none; }
.ranks span { width: 100%; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.ranks em { font-style: normal; font-weight: 600; font-size: 0.9375rem; padding: 6px 14px; border: 1px solid var(--black); border-radius: 999px; background: var(--white); }
.results .card:hover, .results .card:focus-within { border-color: var(--pink); }

/* Testimonials: sideways scroll */
.stars { color: var(--black); margin-bottom: 18px; }
.carousel { position: relative; }
.carousel-controls { display: flex; gap: 10px; justify-content: flex-end; margin: -56px 0 24px; }
.round-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--black); background: var(--white); color: var(--black); cursor: pointer; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s; }
.round-btn:hover:not(:disabled), .round-btn:focus-visible { background: var(--pink); border-color: var(--pink); }
.round-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 20px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--black) transparent; -webkit-overflow-scrolling: touch; }
.carousel-track:focus-visible { outline-offset: -3px; }
.quote { flex: 0 0 min(84vw, 400px); scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; padding: clamp(24px, 3vw, 32px); background: var(--grey); border: 1px solid var(--black); border-radius: var(--radius); }
.quote blockquote { margin: 0 0 24px; }
.quote blockquote p { font-size: 1rem; line-height: 1.6; color: #2b2b2b; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: 0.9375rem; color: var(--ink-muted); }
.quote figcaption span:first-child { color: var(--black); font-weight: 600; font-family: var(--serif); font-size: 1.125rem; }

/* FAQ */
.faq-grid { display: grid; gap: 36px; }
.faq-list { border-top: 1px solid var(--black); }
.faq-list details { border-bottom: 1px solid var(--line-light); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--black), var(--black)) center / 100% 2px no-repeat, linear-gradient(var(--black), var(--black)) center / 2px 100% no-repeat; transition: transform 0.3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 24px; margin: 0; color: #2b2b2b; }

/* CTA */
.cta { background: linear-gradient(200deg, #000 0%, #1c1c1c 100%); }
.cta-grid { display: grid; gap: clamp(40px, 6vw, 88px); align-items: start; }
.cta-copy h2 { margin-bottom: 20px; max-width: 14em; }
.cta-copy > p { color: #d9d9d9; }
.tagline { font-family: var(--sans); font-size: clamp(1.25rem, 1rem + 1.2vw, 1.875rem); line-height: 1.25; color: var(--white); margin: 36px 0 32px; max-width: none; }
.tagline strong { color: var(--pink); font-weight: 700; }
.cta-person { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.cta-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 1px solid var(--line-dark); flex: none; }
.cta-person p { margin: 0; font-size: 1rem; color: #d9d9d9; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); font-size: 1rem; }
.contact-list li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.contact-list span { font-size: var(--eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-muted); padding-top: 3px; }
.contact-list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; word-break: break-word; }

.form-wrap { background: var(--grey); color: var(--black); border: 1px solid var(--black); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); }
.enquiry h3, .form-done h3 { color: var(--black); margin-bottom: 24px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input, .field select, .field textarea { font: 400 1rem/1.4 var(--sans); width: 100%; padding: 14px 16px; border: 1px solid #6b6b6b; border-radius: 14px; background: var(--white); color: var(--black); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--pink); outline-offset: 1px; border-color: var(--black); }
.field [aria-invalid="true"] { border-color: #b00020; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #8a0019; font-weight: 600; font-size: 0.9375rem; margin-bottom: 16px; }
.form-wrap .btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.form-wrap .btn-dark:hover { background: var(--pink); border-color: var(--pink); color: var(--black); }
.form-note { font-size: 0.875rem; color: var(--ink-muted); margin: 16px 0 0; }
.form-done p { margin: 0; }

/* Footer */
.site-footer { background: var(--white); color: var(--black); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--black); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 300px; max-width: 100%; }
.footer-brand p { margin-top: 20px; color: var(--ink-muted); font-size: 1rem; max-width: 22rem; }
.footer-h { font-family: var(--sans); font-size: var(--eyebrow); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 16px; }
.site-footer ul { display: grid; gap: 10px; font-size: 1rem; }
.site-footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.3s var(--ease); padding-bottom: 2px; word-break: break-word; }
.site-footer a:hover, .site-footer a:focus-visible { background-size: 100% 1.5px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 24px 32px; border-top: 1px solid var(--line-light); font-size: 0.875rem; color: var(--ink-muted); }
.footer-base p { margin: 0; }
.footer-base ul { display: flex; gap: 24px; font-size: 0.875rem; }

/* Reveal states (only hidden when JS and motion are available) */
.js-motion .reveal { opacity: 0; transform: translateY(16px); }
.js-motion .hero-fade { opacity: 0; }
.js-motion .hero h1 .w { opacity: 0; transform: translateY(10px); }

/* Results stack as they scroll in, when the screen is tall enough to hold a card */
@media (min-height: 720px) {
  .js-motion .result-card { position: sticky; top: calc(var(--header-h) + 20px); }
  .js-motion .result-card:nth-child(2) { top: calc(var(--header-h) + 40px); }
  .js-motion .result-card:nth-child(3) { top: calc(var(--header-h) + 60px); }
}

/* Tablet */
@media (min-width: 720px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .phases { border-top: 0; border-left: 1px solid var(--line-light); }
  .card-feature { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .card-photo { min-height: 0; }
  .industry-list { columns: 2; }
  .metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .chooser dl > div { grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: baseline; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / -1; }
}

/* Laptop and desktop */
@media (min-width: 1100px) {
  :root { --header-h: 96px; }
  .brand-full { display: block; width: 300px; height: auto; }
  .brand-badge { display: none; }
  .menu-toggle { display: none; }
  .primary-nav { position: static; display: flex; align-items: center; gap: 32px; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .primary-nav > ul { flex-direction: row; gap: 28px; align-items: center; }
  .sub { flex-direction: column; gap: 0; }
  .primary-nav a, .sub-toggle { width: auto; padding: 8px 0; border: 0; justify-content: flex-start; gap: 8px; font-size: 1rem; }
  .primary-nav ul > li > a, .sub-toggle { background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 2px no-repeat; transition: background-size 0.3s var(--ease); }
  .primary-nav ul > li > a:hover, .sub-toggle:hover, .has-sub.is-open .sub-toggle { background-size: 100% 2px; }
  .primary-nav .nav-cta { margin: 0; padding: 14px 24px; }
  .has-sub { position: relative; }
  .sub { position: absolute; top: calc(100% + 14px); left: -20px; min-width: 260px; padding: 10px; background: var(--black); border: 1px solid var(--line-dark); border-radius: 20px; display: none; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { display: flex; }
  .sub a { color: var(--white); padding: 12px 14px; border-radius: 12px; background: none; display: block; }
  .sub a:hover { background: rgba(255, 255, 255, 0.12); }

  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hero-figure { justify-self: end; width: min(100%, max(320px, calc((100svh - var(--header-h) - 140px) * 0.8))); }
  .split { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .results-list { justify-self: end; width: 100%; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; }
  .process-intro { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
  .step { grid-template-columns: 96px 1fr; padding: 44px 0; }
  .step-n { font-size: 4.5rem; }
  .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .why-photo { position: sticky; top: calc(var(--header-h) + 32px); }
  .industry-list { columns: 2; }
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 96px; }
  .cta-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
  .footer-grid > :last-child { grid-column: auto; }
}

@media (max-width: 719px) {
  .carousel-controls { margin-top: 0; justify-content: flex-start; }
  .btn { justify-content: center; }
  .hero-actions { justify-items: stretch; }
  .action-row { flex-direction: column; align-items: stretch; text-align: center; }
  .action-row .text-link { align-self: center; }
  .card .btn { width: 100%; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- Pink accents and hover motion ---- */
::selection { background: var(--pink); color: var(--black); }
.accent { color: var(--pink); }

/* Pink full stop on section headings, echoing the logo */
.band h2:not(#cta-title)::after { content: "."; color: var(--pink); }
.eyebrow-num::after { background: var(--pink); opacity: 1; width: 36px; height: 2px; }

/* Reading progress */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--pink); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Pink details inside blocks */
.stars { color: var(--pink); }
.ticks li::before { border-color: var(--pink); }
.phases li::before { color: var(--pink); }
.carousel-track { scrollbar-color: var(--pink) transparent; }
.rank-n { transition: color 0.3s var(--ease); }
.text-link { background-image: linear-gradient(var(--pink), var(--pink)); }
.contact-list a { background-image: linear-gradient(var(--pink), var(--pink)); }
.site-footer a { background-image: linear-gradient(var(--pink), var(--pink)); }

/* Every block: pink border, a pink line that draws across the foot, and a soft lift */
.card, .quote, .result-card, .card-compact, .form-wrap, .rank-card, .photo-frame, .cta-person img {
  position: relative;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), translate 0.35s var(--ease);
}
.card::after, .quote::after, .form-wrap::after {
  content: ""; position: absolute; left: var(--radius); right: var(--radius); bottom: -1px; height: 3px; border-radius: 3px;
  background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); pointer-events: none;
}
.card:hover::after, .card:focus-within::after, .quote:hover::after, .form-wrap:hover::after, .form-wrap:focus-within::after { transform: scaleX(1); }
.card:hover, .card:focus-within, .quote:hover, .form-wrap:hover, .form-wrap:focus-within, .rank-card:hover, .photo-frame:hover {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink), 0 20px 44px rgba(230, 31, 147, 0.18);
}
.result-card:hover { box-shadow: 0 0 0 1px var(--pink), 0 -14px 40px rgba(0, 0, 0, 0.45), 0 20px 44px rgba(230, 31, 147, 0.25); }
.card:hover .card-price strong, .result-card:hover h3 { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.card-photo img, .photo-frame img { transition: transform 0.8s var(--ease); }
.card:hover .card-photo img, .photo-frame:hover img { transform: scale(1.04); }
.metrics div { transition: translate 0.3s var(--ease); }
.result-card:hover .metrics div:hover { translate: 0 -3px; }
.metrics div:hover b { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.ranks em { transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.ranks em:hover { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }

/* Rows: a pink rule draws in beneath each one */
.chooser dl > div, .industry-list li, .faq-list details, .contact-list li, .phases li, .step { position: relative; }
.chooser dl > div::after, .industry-list li::after, .faq-list details::after, .contact-list li::after, .phases li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--pink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); pointer-events: none;
}
.chooser dl > div:hover::after, .industry-list li:hover::after, .faq-list details:hover::after, .faq-list details[open]::after, .contact-list li:hover::after, .phases li:hover::after { transform: scaleX(1); }
.chooser dl > div { transition: padding-left 0.3s var(--ease); }
.chooser dl > div:hover { padding-left: 14px; }
.faq-list details:hover summary::after { background: linear-gradient(var(--pink), var(--pink)) center / 100% 2px no-repeat, linear-gradient(var(--pink), var(--pink)) center / 2px 100% no-repeat; }
.step { transition: padding-left 0.3s var(--ease); }
.step::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.step:hover::after { transform: scaleX(1); }
.step:hover .step-n { color: var(--pink); }
.step-n { transition: color 0.3s var(--ease); }
.industry-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--pink); transform: scale(0); transition: transform 0.3s var(--ease); }
.industry-list li:hover::before { transform: scale(1); }
.industry-list li { transition: padding-left 0.3s var(--ease); }
.industry-list li:hover { padding-left: 28px; }

/* Partner logos */
.marquee-set li { position: relative; }
.marquee-set li::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 3px; border-radius: 3px; background: var(--pink); transform: scaleX(0); transition: transform 0.4s var(--ease); }
.marquee-set li:hover::after { transform: scaleX(1); }

/* Form fields */
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--pink); }

/* Lift only where a real pointer can hover, so touch screens never get stuck states */
@media (hover: hover) {
  .card:hover, .quote:hover, .form-wrap:hover, .card-compact:hover, .rank-card:hover { translate: 0 -5px; }
  .result-card:hover { translate: 0 -3px; }
}

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