/* ============================================================
   SIGALIA STUDIO — 2027
   Type scale, colours and spacing derived 1:1 from the
   Illustrator draft (1600px artboard × 0.75 = 1200px canvas)
   ============================================================ */

/* ---------- Poppins (self-hosted, no external requests) ---------- */
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;
  src:url('../fonts/poppins-latin-400-normal.woff2') format('woff2'),
      url('../fonts/poppins-latin-400-normal.woff') format('woff');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;
  src:url('../fonts/poppins-latin-500-normal.woff2') format('woff2'),
      url('../fonts/poppins-latin-500-normal.woff') format('woff');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;
  src:url('../fonts/poppins-latin-600-normal.woff2') format('woff2'),
      url('../fonts/poppins-latin-600-normal.woff') format('woff');}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;
  src:url('../fonts/poppins-latin-700-normal.woff2') format('woff2'),
      url('../fonts/poppins-latin-700-normal.woff') format('woff');}
@font-face{font-family:'Poppins';font-style:italic;font-weight:400;font-display:swap;
  src:url('../fonts/poppins-latin-400-italic.woff2') format('woff2'),
      url('../fonts/poppins-latin-400-italic.woff') format('woff');}

/* ---------- tokens ---------- */
:root{
  --teal:#0A9DA8;
  --teal-dark:#07868f;
  --grey:#848484;
  --quote:#4d66d2;
  --ink:#000000;
  --rule:#e3e3e3;
  --footer-bg:#f2f2f2;

  /* type — exact draft values */
  --fs-hero:34.5px;      --lh-hero:54px;
  --fs-hero-body:21px;   --lh-hero-body:29px;
  --fs-h2-home:36px;     --lh-h2-home:52px;
  --fs-icon-home:27.5px; --lh-icon-home:33px;
  --fs-icon-page:24px;   --lh-icon-page:35px;
  --fs-h2:27px;          --lh-h2:39px;
  --fs-quote:39px;       --lh-quote:50px;
  --fs-sub:19.5px;       --lh-sub:28.5px;
  --fs-body:16.5px;      --lh-body:25.5px;

  --canvas:1200px;
}

*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-weight:400;
  text-align:center;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}

.wrap{max-width:var(--canvas);margin:0 auto;padding:0 24px;}

/* Manual line breaks from the draft.
   Desktop: each span is its own line — identical to the artwork.
   Mobile:  spans become inline so the text re-flows naturally. */
.ln{display:block;}

/* pull-quote on the category pages — colour only, no highlight block.
   Set 12pt larger than the page headline it sits in. */
.hl{
  display:inline;
  color:var(--quote);
  font-size:var(--fs-quote);
  line-height:var(--lh-quote);
}
a.hl{transition:color .2s ease;}
a.hl:hover{color:var(--ink);}
a.hl:focus-visible{outline:2px solid var(--quote);outline-offset:4px;border-radius:4px;}

/* ============================================================
   HEADER — logo + small hamburger (desktop AND mobile)
   ============================================================ */
.site-header{padding:53px 24px;position:relative;}
.brand{display:inline-block;}
.brand img{height:158px;width:auto;margin:0 auto;}

.nav-toggle{
  display:block;position:absolute;top:30px;right:26px;z-index:31;
  width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer;
}
.nav-toggle span{
  display:block;width:22px;height:2px;background:var(--grey);margin:5px auto;
  border-radius:2px;transition:transform .3s ease,opacity .25s ease,background .25s ease;
}
.nav-toggle:hover span{background:var(--teal);}
.nav-toggle[aria-expanded="true"] span{background:var(--teal);}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.nav-toggle:focus-visible{outline:2px solid var(--teal);outline-offset:3px;border-radius:6px;}

.nav{
  position:absolute;top:calc(100% - 12px);right:24px;z-index:30;
  width:232px;margin:0;padding:5px 0;text-align:left;
  background:#fff;border:1px solid var(--rule);border-radius:12px;
  box-shadow:0 16px 38px rgba(0,0,0,.12);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .25s ease,transform .25s ease,visibility 0s linear .25s;
}
.nav.is-open{opacity:1;visibility:visible;transform:translateY(0);transition-delay:0s;}
.nav ul{list-style:none;margin:0;padding:0;display:block;}
.nav li + li{border-top:1px solid var(--rule);}
.nav a{
  display:block;padding:13px 20px;
  font-size:15px;line-height:1.4;font-weight:500;color:var(--grey);
  letter-spacing:.01em;transition:color .2s ease,background .2s ease;
}
.nav a:hover{color:var(--teal);background:#fafafa;}
.nav a.is-active{color:var(--teal);}

.header-rule{border:0;border-top:1px solid var(--rule);margin:0;}

/* ============================================================
   HOME — hero band
   ============================================================ */
.hero{
  background:var(--teal);color:#fff;
  padding:64px 24px 78px;overflow:hidden;
  display:flex;align-items:center;
  min-height:calc(100vh - 250px);
  min-height:clamp(600px,calc(100svh - 250px),840px);
}
.hero-inner{
  position:relative;width:100%;max-width:var(--canvas);margin:0 auto;
  display:flex;align-items:center;justify-content:center;
  align-self:stretch;                 /* the icon field fills the whole band */
  min-height:min(52vh,460px);
}
.hero-content{position:relative;z-index:2;width:100%;}

.hero-screen{width:373.5px;max-width:100%;margin:0 auto 27px;
  animation:screen-float 7.3s ease-in-out infinite;}
@keyframes screen-float{
  0%,100%{transform:translate3d(0,0,0);}
  50%{transform:translate3d(0,-10px,0);}
}

.hero h1{
  margin:0;font-weight:600;font-size:var(--fs-hero);line-height:var(--lh-hero);
  letter-spacing:-.005em;
}
.hero p{
  margin:11.5px 0 0;font-weight:400;
  font-size:var(--fs-hero-body);line-height:var(--lh-hero-body);
}

/* ---- floating icons ----
   Three independent layers, so nothing moves in lockstep:
     .fi     — cursor parallax (JS, its own easing rate per icon)
     .fi-in  — endless drift loop, a unique keyframe per icon
     .fi img — one-shot reaction played on hover of that icon alone      */
.hero-icons{
  position:absolute;top:0;bottom:0;left:50%;
  transform:translateX(-50%);
  width:min(1560px,calc(100vw - 28px));
  /* above the copy so each icon can catch its own hover;
     the field itself stays click-through */
  z-index:3;pointer-events:none;
}
.fi{position:absolute;display:block;will-change:transform;pointer-events:auto;}
.fi-in{display:block;will-change:transform;}
.fi img{width:100%;height:auto;}

/* Anchored in px from the centre, not in %, so the gap between the copy
   and the icons stays constant instead of collapsing as the window narrows. */
.fi-ai     {left:max(8px,calc(50% - 352px));top:17.5%;width:clamp(58px,5.43%,92px);}
.fi-coffe  {left:max(8px,calc(50% - 440px));top:44.0%;width:clamp(44px,3.99%,68px);}
.fi-bulb   {left:max(8px,calc(50% - 412px));top:77.5%;width:clamp(44px,3.99%,68px);}
.fi-pencils{right:max(8px,calc(50% - 365px));top:16.5%;width:clamp(60px,5.58%,95px);}
.fi-mouse  {right:max(8px,calc(50% - 444px));top:52.0%;width:clamp(42px,3.75%,64px);}
.fi-phones {right:max(8px,calc(50% - 420px));top:80.5%;width:clamp(50px,4.47%,76px);}

/* ---- drift loops — one keyframe set per icon, non-harmonic durations ---- */
@keyframes fl-ai{
  0%  {transform:translate3d(0,0,0) rotate(0deg);}
  17% {transform:translate3d(3px,-10px,0) rotate(2.2deg);}
  38% {transform:translate3d(-4px,-15px,0) rotate(-1.3deg);}
  61% {transform:translate3d(5px,-6px,0) rotate(1.6deg);}
  83% {transform:translate3d(-2px,-12px,0) rotate(-.7deg);}
  100%{transform:translate3d(0,0,0) rotate(0deg);}
}
@keyframes fl-coffe{
  0%  {transform:translate3d(0,0,0) rotate(0deg);}
  23% {transform:translate3d(-3px,-5px,0) rotate(-1.6deg);}
  47% {transform:translate3d(2px,-9px,0) rotate(.9deg);}
  71% {transform:translate3d(-1px,-3px,0) rotate(-2.1deg);}
  100%{transform:translate3d(0,0,0) rotate(0deg);}
}
@keyframes fl-bulb{
  0%  {transform:translate3d(0,0,0) rotate(0deg);}
  29% {transform:translate3d(1px,-11px,0) rotate(.8deg);}
  52% {transform:translate3d(-1px,-17px,0) rotate(-.5deg);}
  76% {transform:translate3d(2px,-7px,0) rotate(1.1deg);}
  100%{transform:translate3d(0,0,0) rotate(0deg);}
}
@keyframes fl-pencils{
  0%  {transform:translate3d(0,0,0) rotate(0deg);}
  19% {transform:translate3d(-2px,-4px,0) rotate(-3.1deg);}
  44% {transform:translate3d(3px,-8px,0) rotate(2.4deg);}
  68% {transform:translate3d(-4px,-5px,0) rotate(-1.5deg);}
  88% {transform:translate3d(2px,-9px,0) rotate(2.8deg);}
  100%{transform:translate3d(0,0,0) rotate(0deg);}
}
@keyframes fl-mouse{
  0%  {transform:translate3d(0,0,0) rotate(0deg);}
  26% {transform:translate3d(7px,-4px,0) rotate(1.4deg);}
  55% {transform:translate3d(-6px,-8px,0) rotate(-1.8deg);}
  79% {transform:translate3d(4px,-2px,0) rotate(.7deg);}
  100%{transform:translate3d(0,0,0) rotate(0deg);}
}
@keyframes fl-phones{
  0%  {transform:translate3d(0,0,0) rotate(0deg);}
  14% {transform:translate3d(-2px,-13px,0) rotate(-1.2deg);}
  36% {transform:translate3d(3px,-5px,0) rotate(1.9deg);}
  58% {transform:translate3d(-3px,-16px,0) rotate(-2.3deg);}
  81% {transform:translate3d(1px,-6px,0) rotate(.6deg);}
  100%{transform:translate3d(0,0,0) rotate(0deg);}
}
.fi-ai      .fi-in{animation:fl-ai      8.3s  ease-in-out              infinite; animation-delay:-1.7s;}
.fi-coffe   .fi-in{animation:fl-coffe   11.7s cubic-bezier(.5,0,.5,1)   infinite; animation-delay:-5.2s;}
.fi-bulb    .fi-in{animation:fl-bulb    6.9s  ease-in-out              infinite; animation-delay:-.6s;}
.fi-pencils .fi-in{animation:fl-pencils 13.1s cubic-bezier(.42,0,.58,1) infinite; animation-delay:-8.4s;}
.fi-mouse   .fi-in{animation:fl-mouse   9.4s  cubic-bezier(.37,0,.63,1) infinite; animation-delay:-3.1s;}
.fi-phones  .fi-in{animation:fl-phones  7.6s  ease-in-out              infinite; animation-delay:-6.5s;}

/* ---- hover reaction — each icon has its own gesture ---- */
@keyframes rx-ai{
  0%{transform:rotate(0) scale(1);} 45%{transform:rotate(200deg) scale(1.14);}
  100%{transform:rotate(360deg) scale(1);}
}
@keyframes rx-coffe{
  0%{transform:rotate(0) translateY(0);} 30%{transform:rotate(-19deg) translateY(-3px);}
  62%{transform:rotate(9deg) translateY(1px);} 100%{transform:rotate(0) translateY(0);}
}
@keyframes rx-bulb{
  0%{transform:scale(1);opacity:1;} 18%{transform:scale(1.18) rotate(-5deg);opacity:.72;}
  36%{transform:scale(1.05) rotate(4deg);opacity:1;} 58%{transform:scale(1.16) rotate(-3deg);opacity:.8;}
  100%{transform:scale(1) rotate(0);opacity:1;}
}
@keyframes rx-pencils{
  0%{transform:rotate(0);} 20%{transform:rotate(-13deg);} 42%{transform:rotate(10deg);}
  64%{transform:rotate(-6deg);} 84%{transform:rotate(3deg);} 100%{transform:rotate(0);}
}
@keyframes rx-mouse{
  0%{transform:translateY(0) scale(1,1);} 28%{transform:translateY(4px) scale(1.06,.9);}
  55%{transform:translateY(-7px) scale(.97,1.05);} 100%{transform:translateY(0) scale(1,1);}
}
@keyframes rx-phones{
  0%{transform:translateY(0) rotate(0);} 22%{transform:translateY(-11px) rotate(-7deg);}
  46%{transform:translateY(0) rotate(5deg);} 68%{transform:translateY(-6px) rotate(-3deg);}
  100%{transform:translateY(0) rotate(0);}
}
.fi-ai:hover      img{animation:rx-ai      1.15s cubic-bezier(.34,1.2,.64,1)  both;}
.fi-coffe:hover   img{animation:rx-coffe   .95s  cubic-bezier(.34,1.4,.64,1)  both;}
.fi-bulb:hover    img{animation:rx-bulb    1.05s ease-in-out                  both;}
.fi-pencils:hover img{animation:rx-pencils .85s  ease-out                     both;}
.fi-mouse:hover   img{animation:rx-mouse   .7s   cubic-bezier(.34,1.56,.64,1) both;}
.fi-phones:hover  img{animation:rx-phones  .9s   cubic-bezier(.34,1.5,.64,1)  both;}

/* HOME — what do i do */
.services{padding:48px 24px 120px;}
.services h2{
  margin:0;font-weight:500;font-size:var(--fs-h2-home);line-height:var(--lh-h2-home);
}
.service-grid{
  margin:72px auto 0;max-width:864px;
  display:grid;grid-template-columns:repeat(3,1fr);align-items:start;
}
.service{display:block;}
.service img{width:90px;height:90px;margin:0 auto;transition:transform .35s ease;}
.service > span{
  display:block;margin-top:9px;font-weight:500;
  font-size:var(--fs-icon-home);line-height:var(--lh-icon-home);
  transition:color .25s ease;
}
.service:hover img{transform:translateY(-6px);}
.service:hover > span{color:var(--quote);}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page{padding:41.5px 24px 64.5px;}
.page-icon{width:79px;height:79px;margin:0 auto;}
.page-kicker{
  margin:9px 0 0;font-weight:500;
  font-size:var(--fs-icon-page);line-height:var(--lh-icon-page);
}
.page h1{
  margin:33px 0 0;font-weight:700;
  font-size:var(--fs-h2);line-height:var(--lh-h2);
}
/* quote attribution — small italic line under the page headline */
.attrib{
  margin:11px 0 0;font-style:italic;font-weight:400;
  font-size:13px;line-height:1.5;letter-spacing:.015em;color:var(--grey);
}
.attrib + .sub{margin-top:17px;}
.page .sub{
  margin:22px 0 0;font-weight:500;
  font-size:var(--fs-sub);line-height:var(--lh-sub);
}
.body-copy{margin:25.5px 0 0;}
.body-copy p{
  margin:0 0 25.5px;font-weight:400;
  font-size:var(--fs-body);line-height:var(--lh-body);
}
.body-copy p:last-child{margin-bottom:0;}

/* back-to-home pill, above the footer, inner pages only */
.page-back{margin:58px 0 0;}
.btn-back{
  display:inline-block;min-width:170px;height:42px;line-height:40px;
  padding:0 24px;border:1px solid rgba(10,157,168,.45);border-radius:999px;
  color:var(--teal);font-size:13px;font-weight:500;letter-spacing:.05em;
  transition:background .25s ease,color .25s ease,border-color .25s ease;
}
.btn-back:hover{background:var(--teal);border-color:var(--teal);color:#fff;}
.btn-back:focus-visible{outline:2px solid var(--teal);outline-offset:3px;}

/* ============================================================
   GALLERY — 4 columns, seamless (no gaps)
   ============================================================ */
.gallery{
  margin:66.5px auto 0;max-width:1080px;
  display:grid;grid-template-columns:repeat(4,1fr);gap:0;
  /* the work reads right-to-left: image 01 sits top-right */
  direction:rtl;
}
.gallery figure{margin:0;direction:ltr;}
.gallery button{
  display:block;width:100%;padding:0;border:0;background:#f2f2f2;
  position:relative;overflow:hidden;aspect-ratio:1/1;cursor:zoom-in;
  font:inherit;color:inherit;
}
.gallery img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s cubic-bezier(.2,.7,.3,1);
}
.gallery button::after{
  content:"";position:absolute;inset:0;background:var(--teal);
  opacity:0;transition:opacity .4s ease;pointer-events:none;
}
.gallery button:hover img,
.gallery button:focus-visible img{transform:scale(1.055);}
.gallery button:hover::after,
.gallery button:focus-visible::after{opacity:.10;}
.gallery button:focus-visible{outline:2px solid var(--teal);outline-offset:-2px;}
.gallery figcaption{display:none;}

/* ---- lightbox ---- */
.lb{
  position:fixed;inset:0;z-index:100;
  background:rgba(12,14,15,.97);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:72px 20px 24px;
  opacity:0;transition:opacity .28s ease;
}
.lb[hidden]{display:none;}
.lb.is-open{opacity:1;}
.lb-stage{margin:0;display:flex;flex-direction:column;align-items:center;gap:16px;max-width:100%;}
.lb-img{
  max-width:min(1000px,90vw);max-height:68vh;width:auto;height:auto;
  object-fit:contain;background:#1a1d1e;
}
/* the caption reads first, above the image, so it isn't lost under the frame */
.lb-cap{
  order:-1;
  color:#ffffff;font-size:18px;line-height:1.5;font-weight:500;
  letter-spacing:.005em;
  max-width:62ch;margin:0;text-align:center;
}
.lb-cap:empty{display:none;}
.lb-count{
  position:absolute;top:24px;left:50%;transform:translateX(-50%);margin:0;
  color:#8f9698;font-size:12.5px;letter-spacing:.08em;font-weight:500;
  font-variant-numeric:tabular-nums;
}
.lb button{
  position:absolute;border:0;background:rgba(18,21,22,.6);cursor:pointer;color:#e8ebec;
  display:flex;align-items:center;justify-content:center;
  transition:color .2s ease,background .2s ease;border-radius:50%;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
.lb button:hover{color:#fff;background:var(--teal);}
.lb button:focus-visible{outline:2px solid var(--teal);outline-offset:2px;}
.lb-close{top:14px;right:14px;width:46px;height:46px;font-size:30px;line-height:1;}
.lb-prev,.lb-next{top:50%;transform:translateY(-50%);width:52px;height:52px;font-size:34px;line-height:1;}
.lb-prev{left:10px;}
.lb-next{right:10px;}
body.lb-lock{overflow:hidden;}

@media (max-width:859px){
  .lb{padding:56px 12px 16px;}
  .lb-img{max-width:94vw;max-height:58vh;}
  .lb-cap{font-size:16px;line-height:1.45;padding:0 6px;}
  .lb-prev,.lb-next{width:44px;height:44px;font-size:28px;}
  .lb-prev{left:2px;}
  .lb-next{right:2px;}
}

/* ============================================================
   AI PAGE extras
   ============================================================ */
.note{margin:44px 0 0;font-weight:500;font-size:var(--fs-sub);line-height:25px;}
.note .ln{display:block;}
.page-ai .body-copy p{margin-bottom:19px;}
.ai-gif-link{display:block;margin:34px auto 0;width:628.5px;max-width:100%;}
.ai-gif-link img{width:100%;height:auto;transition:transform .45s cubic-bezier(.2,.7,.3,1),box-shadow .45s ease;}
.ai-gif-link:hover img{transform:scale(1.02);box-shadow:0 18px 44px rgba(0,0,0,.18);}
.ai-gif-link:focus-visible{outline:2px solid var(--teal);outline-offset:6px;}

/* ============================================================
   FOOTER — contact details only, no internal links
   ============================================================ */
.site-footer{background:var(--footer-bg);padding:22px 24px;}
.footer-contact{
  margin:0;display:flex;align-items:center;justify-content:center;
  gap:14px 73.5px;flex-wrap:wrap;
}
.fc-name{font-size:16.5px;font-weight:500;letter-spacing:.02em;}
.fc-item{
  display:inline-flex;align-items:center;gap:9px;
  font-size:16.5px;font-weight:500;color:var(--ink);
  transition:color .25s ease;
}
.fc-item img{display:block;flex:none;height:43px;width:auto;}
.fc-item[href^="mailto:"] img{width:43px;height:auto;}
.fc-item:hover{color:var(--teal);}
.fc-item:focus-visible{outline:2px solid var(--teal);outline-offset:4px;border-radius:4px;}

/* ============================================================
   RESPONSIVE — fluid step (1200 → 860)
   ============================================================ */
@media (max-width:1199px){
  :root{
    --fs-hero:clamp(27px,2.88vw,34.5px);      --lh-hero:1.565;
    --fs-hero-body:clamp(17px,1.75vw,21px);   --lh-hero-body:1.381;
    --fs-h2-home:clamp(28px,3vw,36px);        --lh-h2-home:1.444;
    --fs-icon-home:clamp(21px,2.29vw,27.5px); --lh-icon-home:1.2;
    --fs-icon-page:clamp(20px,2vw,24px);      --lh-icon-page:1.458;
    --fs-h2:clamp(22px,2.25vw,27px);          --lh-h2:1.444;
    --fs-quote:clamp(31px,3.25vw,39px);       --lh-quote:1.28;
    --fs-sub:clamp(16.5px,1.63vw,19.5px);     --lh-sub:1.462;
    --fs-body:clamp(15px,1.38vw,16.5px);      --lh-body:1.545;
  }
  .hero{padding:4.8vw 24px 7vw;}
  .hero-inner{min-height:min(50vh,430px);}
  .hero-screen{width:31vw;min-width:250px;margin-bottom:2.25vw;}
  .services{padding:4vw 24px 9vw;}
  .service-grid{margin-top:6vw;}
  .service img{width:7.6vw;height:7.6vw;min-width:68px;min-height:68px;}
  .page-icon{width:6.8vw;height:6.8vw;min-width:63px;min-height:63px;}
  .gallery{margin-top:5.5vw;}
  .ai-gif-link{width:52vw;min-width:300px;}
  .brand img{height:clamp(120px,13vw,158px);}
}

/* ============================================================
   MOBILE — natural text re-flow, icons regrouped under the copy
   ============================================================ */
@media (max-width:859px){
  :root{
    --fs-hero:26px;        --lh-hero:1.38;
    --fs-hero-body:16.5px; --lh-hero-body:1.6;
    --fs-h2-home:25px;     --lh-h2-home:1.35;
    --fs-icon-home:16px;   --lh-icon-home:1.25;
    --fs-icon-page:20px;   --lh-icon-page:1.35;
    --fs-h2:21px;          --lh-h2:1.35;
    --fs-quote:30px;       --lh-quote:1.3;
    --fs-sub:16.5px;       --lh-sub:1.5;
    --fs-body:15.5px;      --lh-body:1.68;
  }

  /* text re-flows naturally instead of using the artwork's manual breaks */
  .ln{display:inline;}
  /* …except the breaks that carry the design's rhythm */
  .note .ln,
  .hero h1 .ln,
  .service span .ln{display:block;}

  /* extra side breathing room so copy never hugs the screen edge
     (applied to the text blocks only — the gallery keeps its full width) */
  .hero h1,.hero p,
  .services h2,.service > span,
  .page h1,.page .sub,.page-kicker,.attrib,.body-copy,.note{
    padding-left:14px;padding-right:14px;
  }

  .site-header{padding:26px 20px 26px;}
  .brand img{height:88px;}
  .nav-toggle{top:22px;right:14px;}
  .nav{right:14px;width:212px;}

  .hero{padding:34px 22px 46px;min-height:0;display:block;}
  .hero-inner{display:block;min-height:0;}
  .hero p{margin-top:16px;}
  .hero-screen{width:100%;max-width:290px;min-width:0;margin-bottom:22px;}

  /* icons leave the corners and become a cluster below the copy */
  .hero-icons{
    position:static;inset:auto;left:auto;transform:none;width:auto;
    display:grid;grid-template-columns:repeat(3,1fr);
    align-items:center;justify-items:center;
    gap:30px 6px;margin:42px auto 0;max-width:330px;
  }
  .fi{position:static;left:auto;right:auto;top:auto;width:auto;transform:none !important;}
  .hero-screen{animation:none;}
  /* mobile shows only three icons — mouse, coffee, lightbulb — in a single row */
  .fi-ai,.fi-pencils,.fi-phones{display:none;}
  .fi-mouse  {grid-column:1;grid-row:1;}
  .fi-coffe  {grid-column:2;grid-row:1;}
  .fi-bulb   {grid-column:3;grid-row:1;}
  .fi-mouse   img{width:48.5px;}
  .fi-coffe   img{width:47px;}
  .fi-bulb    img{width:48.5px;}

  .services{padding:44px 22px 64px;}
  .service-grid{margin-top:36px;max-width:none;gap:0 6px;}
  .service img{width:71px;height:71px;min-width:0;min-height:0;}
  .service > span{margin-top:12px;}

  .page{padding:34px 22px 44px;}
  .page-icon{width:68px;height:68px;min-width:0;min-height:0;}
  .page h1{margin-top:22px;}
  .page .sub{margin-top:16px;}
  .attrib{font-size:12.5px;margin-top:9px;}
  .attrib + .sub{margin-top:14px;}
  .body-copy{margin-top:20px;}
  .body-copy p{margin-bottom:20px;}
  .page-ai .body-copy p{margin-bottom:15px;}
  .gallery{margin-top:38px;grid-template-columns:repeat(2,1fr);max-width:none;}
  .gallery button:hover img{transform:none;}
  .gallery button:hover::after{opacity:0;}

  .note{margin-top:34px;line-height:1.5;}
  .ai-gif-link{margin-top:24px;width:100%;min-width:0;}

  .page-back{margin-top:40px;}
  .btn-back{min-width:0;width:100%;max-width:220px;height:40px;line-height:38px;font-size:12.5px;}

  .site-footer{padding:20px 22px;}
  .footer-contact{flex-direction:column;gap:14px;}
  .fc-name{font-size:16px;}
  .fc-item{font-size:16px;}
  .fc-item img{width:auto;height:30px;}
  /* the envelope is wide and short — scale it by width so it reads the same
     size as the phone icon instead of towering over it */
  .fc-item[href^="mailto:"] img{width:25.5px;height:auto;}
}

@media (max-width:400px){
  :root{--fs-hero:23px;--fs-icon-home:15px;--fs-quote:26px;}
  .service img{width:60px;height:60px;}
  .hero-icons{max-width:290px;gap:24px 4px;}
  .fi-mouse img,.fi-bulb img,.fi-coffe img{width:41.5px;}
}

/* motion-safe */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important;}
  .fi,.fi-in,.fi img,.hero-screen{animation:none !important;transform:none !important;}
}
