/* Sooner Tech homepage, round 2: full page. One system: paper background, 2px navy edges, hard offset shadows, Fraunces headings, Inter text. */

@font-face{font-family:"Fraunces";src:url("fonts/fraunces-latin-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Fraunces";src:url("fonts/fraunces-latin-500italic.woff2") format("woff2");font-weight:500;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url("fonts/inter-latin.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}
/* Metric-matched local fallbacks (same values as the live site) so the swap to the web fonts barely moves the text */
@font-face{font-family:"Fraunces FB Georgia";src:local("Georgia");size-adjust:88.60%;ascent-override:110.38%;descent-override:28.78%;line-gap-override:0%}
@font-face{font-family:"Fraunces FB Times";src:local("Times New Roman"),local("Liberation Serif");size-adjust:97.20%;ascent-override:100.62%;descent-override:26.23%;line-gap-override:0%}
@font-face{font-family:"Fraunces FB Noto";src:local("Noto Serif"),local("NotoSerif");size-adjust:91.90%;ascent-override:106.42%;descent-override:27.75%;line-gap-override:0%}
@font-face{font-family:"Inter FB Arial";src:local("Arial"),local("Liberation Sans");size-adjust:107.12%;ascent-override:90.44%;descent-override:22.52%;line-gap-override:0%}
@font-face{font-family:"Inter FB Roboto";src:local("Roboto");size-adjust:107.35%;ascent-override:90.24%;descent-override:22.47%;line-gap-override:0%}

:root{
  --navy:#0F2C3A;--navy-2:#173D52;
  --accent:#E08B2F;--accent-hover:#EA9A44;--accent-soft:#F8E6D2;
  --paper:#F7F5F2;--sand:#EFE9E1;--white:#FFFFFF;
  --ink:#0F2C3A;--body:#33434D;--on-navy:#F7F5F2;--on-navy-2:#C9D3D8;
  --f-display:"Fraunces","Fraunces FB Georgia","Fraunces FB Times","Fraunces FB Noto",Georgia,serif;
  --f-body:Inter,"Inter FB Arial","Inter FB Roboto",system-ui,-apple-system,"Segoe UI",sans-serif;

  /* type scale: 6 sizes (the H1 italic is set at .94em of the H1) */
  --t-h1:clamp(2.75rem,5.6vw,5rem);
  --t-h2:clamp(2rem,3.1vw,2.5rem);
  --t-title:1.75rem;
  --t-lead:1.25rem;
  --t-body:1.0625rem;
  --t-small:1rem;

  --edge:2px solid var(--navy);
  --drop:5px 5px 0 var(--navy);
  --drop-lg:6px 6px 0 var(--navy);
  --gutter:32px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--body);font-family:var(--f-body);font-size:var(--t-body);line-height:1.55;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
main{flex:1;overflow-x:clip}
img,svg{display:block;max-width:100%}
h1,h2,h3,p,ul,ol,figure,fieldset,address{margin:0;padding:0}
ul,ol{list-style:none}
address{font-style:normal}
a{color:var(--ink)}
[hidden]{display:none!important}

.wrap,.split,.book-grid,.contact-grid{width:100%;max-width:1264px;margin-inline:auto;padding-inline:var(--gutter)}

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

.skip{position:absolute;left:16px;top:-80px;z-index:30;background:var(--navy);color:var(--on-navy);padding:12px 16px;border-radius:10px;font-weight:600;text-decoration:none}
.skip:focus{top:12px}

.nb{white-space:nowrap}

/* ===== Shared pieces ===== */
h2{font-family:var(--f-display);font-weight:600;font-size:var(--t-h2);line-height:1.08;letter-spacing:-.02em;color:var(--ink);text-wrap:balance}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:58px;padding:14px 28px;background:var(--accent);color:var(--navy);border:var(--edge);border-radius:14px;box-shadow:var(--drop);font-family:inherit;font-size:var(--t-body);font-weight:700;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease,background-color .12s ease}
.btn:hover{background:var(--accent-hover);transform:translate(2px,2px);box-shadow:3px 3px 0 var(--navy)}
.btn:active{transform:translate(5px,5px);box-shadow:0 0 0 var(--navy)}
.btn:focus-visible{outline-offset:8px;border-radius:14px}
.btn:disabled{cursor:wait;opacity:.75}

/* block text links */
.text-link{display:inline-flex;align-items:center;min-height:44px;font-size:var(--t-body);font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-color:var(--accent)}
.text-link:hover{text-decoration-color:var(--navy)}

/* links inside running text: each link is its own 44px tall box, so two links on neighbouring lines can never overlap */
.book-points a,.booking-fallback a,.book-mobile-alt a,.form-legal a,.form-status a{font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;text-decoration-color:var(--accent)}
.booking-fallback a,.book-mobile-alt a,.form-legal a,.form-status a{display:inline-flex;align-items:center;min-height:44px;max-width:100%}
/* the booking copy has a single link in its list, so padding gives it the 44px tap height without shifting its bullet line */
.book-points a{padding-block:13px}
.book-points a:hover,.booking-fallback a:hover,.book-mobile-alt a:hover,.form-legal a:hover,.form-status a:hover{text-decoration-color:var(--navy)}

.badge{flex:none;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--navy);color:var(--on-navy);font-family:var(--f-body);font-size:var(--t-small);font-weight:700;letter-spacing:0;line-height:1}

.panel,.cal-card,.contact-form-wrap{background:var(--white);border:var(--edge);border-radius:20px;box-shadow:var(--drop-lg);min-width:0}

/* ===== Header ===== */
.header-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:18px}
.logo{display:inline-flex;align-items:center;min-height:44px}
.logo img{height:21px;width:auto}
.site-nav ul{display:flex;gap:6px}
.site-nav a{display:inline-flex;align-items:center;min-height:44px;padding-inline:14px;font-size:var(--t-small);font-weight:600;color:var(--ink);text-decoration:none;border-radius:10px;white-space:nowrap}
.site-nav a:hover{background:var(--sand)}
/* phone number in the menu: phones only (the hero phone link is hidden there) */
.nav-call{display:none}
.menu-btn{display:none;align-items:center;min-height:44px;padding:0 18px;background:var(--white);color:var(--ink);border:var(--edge);border-radius:999px;box-shadow:3px 3px 0 var(--navy);font:600 var(--t-small)/1 var(--f-body);cursor:pointer}

/* ===== Hero ===== */
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);gap:72px;align-items:center;padding-block:36px 88px}

/* Eyebrow: a small "new lead gets a reply" chip. Base styles are the final state; the animation only plays on top. */
.eyebrow{display:inline-flex;align-items:center;background:var(--white);border:var(--edge);border-radius:999px;box-shadow:4px 4px 0 var(--navy);padding:4px;font-size:var(--t-small);font-weight:600;color:var(--ink);line-height:1.25}
.lc-new{display:inline-flex;align-items:center;gap:8px;background:var(--navy);color:var(--on-navy);border-radius:999px;padding:6px 14px 6px 12px;white-space:nowrap}
.lc-dot{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:var(--accent)}
.lc-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--accent);opacity:0}
.lc-slot{position:relative;display:inline-flex;align-items:center;padding:6px 12px 6px 10px}
.lc-typing{position:absolute;left:14px;top:50%;margin-top:-3px;display:flex;gap:5px;opacity:0}
.lc-typing i{display:block;width:6px;height:6px;border-radius:50%;background:var(--navy)}
.lc-replied{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.lc-check{flex:none;width:20px;height:20px}

h1{margin-top:28px;font-family:var(--f-display);font-weight:600;font-size:var(--t-h1);line-height:1;letter-spacing:-.025em;color:var(--ink);text-wrap:balance}
h1 em{font-style:italic;font-weight:500;font-size:.94em;letter-spacing:-.015em}
@media (min-width:1200px){h1 em{white-space:nowrap}}

.lead{margin-top:28px;max-width:34em;font-size:var(--t-lead);line-height:1.5;color:var(--body)}

.cta-row{margin-top:32px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px}

.cred{margin-top:24px;font-size:var(--t-small);color:var(--body)}

/* ===== Service cards ===== */
.services{position:relative;scroll-margin-top:16px}
.services h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.cards{position:relative;display:grid;gap:26px}
.card{--tilt:0deg;background:var(--white);border:var(--edge);border-radius:20px;box-shadow:var(--drop-lg);padding:22px 26px 24px;max-width:400px;transform:rotate(var(--tilt))}
.card h3{display:flex;align-items:center;gap:12px;font-family:var(--f-display);font-weight:600;font-size:var(--t-title);line-height:1.15;letter-spacing:-.01em;color:var(--ink)}
.card p{margin-top:10px;font-size:var(--t-body);line-height:1.5;color:var(--body)}

.card-web{--tilt:-1.5deg;justify-self:start}
.card-crm{--tilt:1.25deg;justify-self:end;background:var(--navy);box-shadow:6px 6px 0 var(--accent)}
.card-crm h3{color:var(--on-navy)}
.card-crm p{color:var(--on-navy-2)}
.card-crm .badge{background:var(--accent);color:var(--navy)}
.card-ads{--tilt:-.75deg;justify-self:start;margin-left:10px;background:var(--accent-soft)}

/* ===== Testimonials: a matching pair of quote cards on a navy band between the hero and How we work. Fraunces quote, Inter credit. No motion. ===== */
.proof{background:var(--navy);color:var(--on-navy)}
.quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:stretch}
.quote{display:flex;flex-direction:column;min-width:0;background:var(--white);color:var(--ink);border:var(--edge);border-radius:20px;box-shadow:6px 6px 0 var(--accent);padding:32px 32px 28px}
/* decorative opening mark; the empty alt text keeps screen readers from reading it out */
.quote::before{content:"\201C";display:block;height:.42em;margin-bottom:20px;font-family:var(--f-display);font-weight:600;font-size:5rem;line-height:1;color:var(--accent)}
@supports (content:"x" / ""){.quote::before{content:"\201C" / ""}}
.quote blockquote{margin:0;padding:0}
.quote blockquote p{font-family:var(--f-display);font-weight:600;font-size:var(--t-title);line-height:1.25;letter-spacing:-.015em;color:var(--ink);text-wrap:pretty}
.quote figcaption{margin-top:auto;padding-top:28px;display:flex;align-items:center;gap:14px;font-size:var(--t-body);line-height:1.5;color:var(--body)}
.quote-photo{flex:none;width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:center;border:2px solid var(--navy);background:var(--sand)}
.quote figcaption strong{font-weight:700;color:var(--ink)}
.quote figcaption a{color:var(--ink);font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:var(--accent)}
.quote figcaption a:hover{text-decoration-color:var(--navy)}
.quote figcaption a:focus-visible{outline:3px solid var(--navy);outline-offset:3px;border-radius:4px}

/* ===== Sections after the hero: copy on the left, paper cards on the right ===== */
.sec{padding-block:88px;scroll-margin-top:0}
.how,.book{background:var(--sand)}
.split,.book-grid,.contact-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,8fr);gap:72px;align-items:start}
.split-copy p,.book-copy p{margin-top:18px;max-width:30em}
.split-copy .text-link{margin-top:14px}

/* How we work */
.steps{display:grid;gap:20px;padding:28px 30px 30px}
.steps li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:16px;align-items:start}
.steps h3{padding-top:3px;font-family:var(--f-body);font-size:var(--t-body);font-weight:700;line-height:1.4;color:var(--ink)}
.steps p{color:var(--body)}

/* Demos */
.demo-figs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}
.demo-shot{display:block;position:relative;aspect-ratio:2.4/1;overflow:hidden;background:var(--white);border:var(--edge);border-radius:16px;box-shadow:var(--drop-lg);transform:rotate(var(--tilt,0deg));transition:transform .12s ease,box-shadow .12s ease}
.demo-hl .demo-shot{--tilt:-1deg}
.demo-sf .demo-shot{--tilt:.8deg}
.demo-shot:hover{transform:translate(2px,2px) rotate(var(--tilt,0deg));box-shadow:4px 4px 0 var(--navy)}
.demo-shot:focus-visible{outline-offset:6px;border-radius:16px}
.demo-shot img{position:absolute;max-width:none;height:auto}
/* each screenshot is cropped to one complete metric panel with its label, sized so the text can be read */
.demo-hl img{width:468.9%;left:-38.1%;top:-168.4%}
.demo-sf img{width:529.8%;left:-7.95%;top:-154%}
.demo figcaption{margin-top:18px;font-size:var(--t-small);color:var(--body)}
.demo figcaption strong{display:block;color:var(--ink);font-weight:700}

/* Real estate pointer */
.re-strip{margin-top:72px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 28px;background:var(--navy);color:var(--on-navy);border:var(--edge);border-radius:20px;box-shadow:6px 6px 0 var(--accent);padding:14px 28px;font-size:var(--t-body)}
.re-strip a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--on-navy);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-color:var(--accent);white-space:nowrap}
.re-strip a:hover{text-decoration-color:var(--on-navy)}
.re-strip a:focus-visible{outline-color:var(--accent)}

/* Book */
.book-copy,.contact-copy{position:sticky;top:32px}
.book-points{margin-top:20px;display:grid;gap:10px}
.book-points li{position:relative;padding-left:22px}
.book-points li::before{content:"";position:absolute;left:0;top:.62em;width:10px;height:10px;border-radius:50%;background:var(--accent);border:2px solid var(--navy)}
/* overflow-anchor:none stops the browser from scrolling the page to hold the calendar still when the slow-load fallback moves above it */
.cal-card{display:flex;flex-direction:column;padding:16px;overflow-anchor:none}
.booking-confirmation{order:-2}
.booking-confirmation{margin:0 0 16px;padding:16px 18px;background:var(--accent-soft);border:var(--edge);border-radius:12px;color:var(--ink);font-weight:600}
.book-mobile{display:none}
.book-mobile .btn{width:100%}
.book-mobile-alt{margin-top:14px;text-align:center}
.calendar-shell{border-radius:10px;overflow:hidden;background:var(--white);min-width:0}
.calendar-shell iframe{display:block;width:100%;height:850px;min-height:0;min-width:0;border:0}
/* form_embed.js hides the iframe until the widget messages back; keep it in place and visible so a silent widget never leaves an empty box. (Rule kept from the live site.) */
#strategy-calendar{opacity:1!important;visibility:visible!important;pointer-events:auto!important;position:relative!important;left:auto!important;min-height:640px}
.booking-fallback{margin:14px 6px 2px;font-size:var(--t-small);color:var(--body)}
.cal-slow-note{margin-bottom:6px;font-weight:700;color:var(--ink)}
.cal-slow-note:empty{display:none}
/* If the calendar is slow, the fallback moves above it (visual order only) so the way out is on screen straight away. */
#book.cal-slow .booking-fallback{order:-1;margin:0 0 16px;padding:16px;background:var(--paper);border:var(--edge);border-radius:12px}

/* Contact */
.contact-rows{margin-top:22px;display:grid;gap:14px}
.contact-rows li{display:grid}
.contact-rows .k{font-size:var(--t-small);font-weight:600;color:var(--body)}
.contact-rows a{justify-self:start;display:inline-flex;align-items:center;min-height:44px;font-size:var(--t-lead);font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-color:var(--accent);overflow-wrap:anywhere}
.contact-rows a:hover{text-decoration-color:var(--navy)}

.contact-form-wrap{padding:30px 32px 32px}
.contact-form h3{font-family:var(--f-display);font-weight:600;font-size:var(--t-title);line-height:1.15;letter-spacing:-.01em;color:var(--ink)}
.form-helper{margin-top:10px;font-size:var(--t-small);line-height:1.55;color:var(--body)}
.contact-fields{margin-top:22px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 20px}
.contact-fields > div{display:flex;flex-direction:column;justify-content:flex-end;min-width:0}
.contact-fields label{display:block;margin-bottom:6px;font-size:var(--t-small);font-weight:600;line-height:1.35;color:var(--ink)}
.contact-fields input{display:block;width:100%;min-height:50px;padding:10px 14px;background:var(--paper);border:var(--edge);border-radius:12px;font:inherit;color:var(--ink)}
.contact-fields input:focus-visible{outline-offset:2px;border-radius:12px;background:var(--white)}
.consent-list{min-width:0;margin-top:26px;padding:6px 18px 18px;border:var(--edge);border-radius:14px}
.consent-list legend{padding:0 8px;margin-left:-8px;font-size:var(--t-small);font-weight:700;color:var(--ink)}
.consent-list .form-helper{margin-top:4px}
.consent-option{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;margin-top:16px;font-size:var(--t-small);line-height:1.5;color:var(--body);cursor:pointer}
.consent-option input{width:24px;height:24px;margin:0;accent-color:var(--navy);cursor:pointer}
.form-legal{margin-top:18px}
.contact-form .btn{margin-top:22px}
.form-status{margin-top:18px;font-weight:600;color:var(--ink)}
.form-status:empty{display:none}
.form-status[data-state="error"]{border-left:4px solid var(--accent);padding-left:12px}

/* ===== Footer ===== */
.site-footer{background:var(--navy);color:var(--on-navy-2);padding-block:56px 28px;font-size:var(--t-small)}
.foot-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1.3fr) minmax(0,1fr) minmax(0,.8fr);gap:32px 48px;align-items:start}
.foot-brand img{height:21px;width:auto}
.foot-brand p{margin-top:16px;max-width:17em;color:var(--on-navy-2)}
.foot-col h2{font-family:var(--f-body);font-size:var(--t-small);font-weight:700;line-height:1.4;letter-spacing:0;color:var(--on-navy)}
.foot-col ul{margin-top:4px}
.foot-col a{display:inline-flex;align-items:center;min-height:44px;color:var(--on-navy);font-weight:600;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;text-decoration-color:rgba(247,245,242,.35);overflow-wrap:anywhere}
.foot-col a:hover{text-decoration-color:var(--accent)}
.site-footer :focus-visible{outline-color:var(--accent)}
.foot-legal{margin-top:36px;color:var(--on-navy-2)}

/* ===== Hero animation: one pass, about 2.1s, transform and opacity only ===== */
@keyframes lc-pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
@keyframes lc-ping{from{opacity:.7;transform:scale(1)}to{opacity:0;transform:scale(3.4)}}
@keyframes lc-typing{0%{opacity:0}12%,86%{opacity:1}100%{opacity:0}}
@keyframes lc-bounce{0%,100%{transform:translateY(0)}45%{transform:translateY(-5px)}}
@keyframes lc-reply{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}
@keyframes lc-stamp{from{opacity:0;transform:scale(.2) rotate(-50deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@keyframes card-settle{from{transform:translate3d(10px,-20px,0) rotate(calc(var(--tilt) + 5deg))}to{transform:translate3d(0,0,0) rotate(var(--tilt))}}
@keyframes card-deal{from{opacity:0;transform:translate3d(22px,-46px,0) rotate(calc(var(--tilt) + 8deg))}55%{opacity:1}to{opacity:1;transform:translate3d(0,0,0) rotate(var(--tilt))}}

@media (prefers-reduced-motion:no-preference){
  .lc-new{animation:lc-pop .4s cubic-bezier(.3,1.5,.5,1) .05s both}
  .lc-dot::after{animation:lc-ping .65s ease-out .4s 2 both}
  .lc-typing{animation:lc-typing 1.05s linear .5s both}
  .lc-typing i{animation:lc-bounce .5s ease-in-out .55s 2 both}
  .lc-typing i:nth-child(2){animation-delay:.67s}
  .lc-typing i:nth-child(3){animation-delay:.79s}
  .lc-replied{animation:lc-reply .34s cubic-bezier(.2,1.2,.4,1) 1.5s both}
  .lc-check{animation:lc-stamp .45s cubic-bezier(.3,1.7,.5,1) 1.68s both}

  .card{animation:card-deal .62s cubic-bezier(.25,1.35,.45,1) both}
  .card-web{animation-delay:.15s}
  .card-crm{animation-delay:.36s}
  .card-ads{animation-delay:.57s}
  /* Narrow screens: the cards are below the fold when the load animation runs, so each card also does a small settle (no fade) when it scrolls into view. The class is added by the small script at the end of the page, only on narrow screens. It is deliberately not inside a width media query, so a viewport resize can never restart the load animation and hide the cards. */
  .card.settle{animation:card-settle .6s cubic-bezier(.25,1.5,.45,1) .05s both}
}

/* ===== Narrower screens: everything stacks ===== */
@media (max-width:1040px){
  :root{--t-h1:clamp(2.75rem,8vw,4.25rem)}
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:0;padding-block:24px 72px}
  /* Stacked widths would place the hero cards under the hero as a second services section. Services live at /services. Desktop hero (min-width 1041px) is unchanged. */
  .hero-grid > .services{display:none}
  .services h2{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;margin-bottom:28px}
  .cards{gap:24px;max-width:720px}
  .card{width:100%;max-width:440px}
  .card-ads{margin-left:72px}

  .sec{padding-block:72px}
  .quotes{gap:24px}
  .split,.book-grid,.contact-grid{grid-template-columns:minmax(0,1fr);gap:36px}
  .book-copy,.contact-copy{position:static}
  .steps,.demo-figs,.cal-card,.contact-form-wrap{max-width:720px}
  .foot-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}

@media (max-width:760px){
  .quotes{grid-template-columns:minmax(0,1fr);gap:24px}
  /* menu button replaces the row of links when JavaScript is on; without it the links simply wrap */
  .header-row{flex-wrap:wrap;gap:0 12px;padding-block:12px}
  .site-nav ul{flex-wrap:wrap;gap:0}
  .js .menu-btn{display:inline-flex}
  .js .site-nav{display:none;position:absolute;right:var(--gutter);top:calc(100% - 2px);z-index:20;min-width:230px;background:var(--white);border:var(--edge);border-radius:18px;box-shadow:var(--drop-lg);padding:10px}
  .js .site-nav.open{display:block}
  .js .site-nav ul{display:block}
  .js .site-nav a{display:flex;min-height:48px}
}

/* ===== Phones (round 3): calm and roomy. Fewer things per screen, flat cards, fewer boxes.
   One spacing scale: 16 / 24 / 32 / 48 / 72 / 96. Sections get 72 top and bottom, heading block to content 32, cards 24 inside and 24 apart.
   (Steps of 4 to 12 are only used between a title and its own text.) Nothing here reaches desktop. ===== */
@media (max-width:600px){
  /* H1 size follows the text column so the four line breaks are the same on every phone width.
     H2 and card titles step down with it on small phones so the H1 always stays the biggest text. */
  :root{--gutter:20px;--t-h1:min(calc((100vw - 40px) / 8.9),3rem);--t-h2:clamp(1.625rem,7.7vw,2rem);--t-title:1.5rem}

  /* header */
  .menu-btn{min-height:48px;padding-inline:20px}
  .js .nav-call{display:block}
  .js .site-nav a{min-height:52px}

  /* hero: chip, H1, short lead, one button */
  .hero-grid{gap:0;padding-block:24px 72px}
  h1{margin-top:32px;line-height:1.04}
  .lead{margin-top:24px;font-size:var(--t-body);line-height:1.6;text-wrap:balance}
  /* swap in the short phone lead; the second rule beats the global [hidden] rule on purpose */
  .lead-wide{display:none}
  .lead-phone[hidden]{display:block!important}
  .cta-row{margin-top:32px}
  .hero .cta-row .text-link{display:none}
  /* round 3 review fix: the hero fills the first phone screen so the services start below the fold; content sits a little above center */
  .hero{min-height:calc(100svh - 96px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-bottom:clamp(48px,14svh,160px);box-sizing:border-box}
  .hero > *{max-width:100%}
  .hero .cta-row{align-self:stretch}
  .btn{width:100%;min-height:60px}

  /* service cards: flat at rest, lighter shadow, more padding. The drop-in on scroll stays. */
  .services h2{margin-bottom:32px}
  .cards{gap:24px}
  .card,.card-web,.card-crm,.card-ads{--tilt:0deg}
  .card{max-width:none;padding:24px;box-shadow:4px 4px 0 var(--navy)}
  .card-crm{box-shadow:4px 4px 0 var(--accent)}
  .card-ads{margin-left:0}
  .card p{margin-top:12px}

  /* testimonials: stacked matching cards, quote at the card title size so it stays below the section headings */
  .quotes{gap:24px}
  .quote{padding:24px;box-shadow:4px 4px 0 var(--accent)}
  .quote::before{font-size:4.5rem;margin-bottom:16px}
  .quote blockquote p{font-size:var(--t-title);line-height:1.3;letter-spacing:-.01em}
  .quote figcaption{padding-top:24px}
  .quote-photo{width:56px;height:56px}

  /* sections */
  .sec{padding-block:72px}
  .split,.book-grid,.contact-grid{gap:32px}
  .split-copy p,.book-copy p{margin-top:16px}
  .split-copy .text-link{margin-top:16px}

  /* how we work: no outer box, steps spaced out */
  .steps.panel{background:none;border:0;border-radius:0;box-shadow:none;padding:0}
  .steps{gap:56px}
  .steps li{gap:16px}
  .steps p{margin-top:4px}

  /* demos: flat images, one column */
  .demo-figs{grid-template-columns:minmax(0,1fr);gap:48px}
  .demo-hl .demo-shot,.demo-sf .demo-shot{--tilt:0deg;box-shadow:4px 4px 0 var(--navy)}
  .demo figcaption{margin-top:16px}
  .re-strip{margin-top:72px;padding:24px 24px 12px;gap:8px 28px;box-shadow:4px 4px 0 var(--accent)}

  /* booking */
  .book-points{margin-top:24px;gap:16px}
  .cal-card{padding:12px;box-shadow:4px 4px 0 var(--navy)}

  /* contact: the form sits straight on the page, same width as everything else */
  .contact-grid{gap:48px}
  .contact-rows{margin-top:24px;gap:16px}
  .contact-form-wrap{background:none;border:0;border-radius:0;box-shadow:none;padding:0}
  .contact-fields{margin-top:24px;grid-template-columns:minmax(0,1fr);gap:24px}
  .contact-fields label{margin-bottom:8px}
  .contact-fields input{min-height:54px;background:var(--white)}
  .consent-list{margin-top:48px;padding:0;border:0;border-radius:0}
  .consent-list legend{margin-left:0;padding:0;font-size:var(--t-body)}
  .consent-list .form-helper{margin-top:8px}
  .consent-option{grid-template-columns:28px minmax(0,1fr);gap:14px;margin-top:24px;line-height:1.6}
  .consent-option input{width:28px;height:28px}
  .form-legal{margin-top:24px}
  .contact-form .btn{margin-top:32px}

  /* footer */
  .foot-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  .site-footer{padding-block:72px 32px}
}

/* Phones: a button to the booking page replaces the inline calendar (same behavior as the live site). */
@media (max-width:480px){
  .book-mobile{display:block;padding:12px 12px 8px}
  .book-mobile p{margin:0 0 24px}
  .book-mobile .book-mobile-alt{margin:16px 0 0}
  #book .calendar-shell,#book .booking-fallback{display:none}
  /* ship fix: the section copy above already says "Pick a time" and gives the phone number, so the card shows only the booking button on phones */
  .book-mobile > p:not(.book-mobile-alt),.book-mobile .book-mobile-alt{display:none}
}

/* Legal line under the consent boxes (all widths): the two links flow inside the sentence, so every line of the paragraph has the same height.
   Each link keeps a 44px tall tap area through padding, which does not change line boxes. The first link's area grows upward and the second link's
   grows downward, so the two areas never overlap, even when the links land on neighbouring lines. position + z-index keeps the area above the
   text of the next line. The focus style is a filled highlight clipped to the words, because an outline would trace the tall tap area. */
/* ship fix: applies at every width now, desktop included */
.form-legal{line-height:1.6}
.form-legal a{display:inline;min-height:0;position:relative;z-index:1}
.form-legal a:first-of-type{padding-block:22px 2px}
.form-legal a:last-of-type{padding-block:2px 22px}
.form-legal a:focus-visible{outline:0;border-radius:0;background:var(--navy) content-box;color:var(--on-navy);text-decoration-color:var(--accent)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn{transition:none}
  .btn:hover,.btn:active{transform:none}
  .demo-shot{transition:none}
  .demo-shot:hover{transform:rotate(var(--tilt,0deg))}
}
