/* ==========================================================================
   TENLINEDESIGN — Sanja Stevanović
   Brand & visual identity designer — one-page site
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root{
  /* palette */
  --cream:      #FBF4EA;
  --cream-deep: #F6ECDF;
  --white:      #FFFFFF;
  --red:        #C1452B;
  /* same terracotta, one step lighter, so it clears WCAG AA (4.71:1) on the
     black marquee bands. Set it to #C1452B if you want the exact brand red. */
  --red-on-dark:#CB4F33;
  --yellow:     #FCD462;
  --grad-yellow: linear-gradient(135deg, #FED27C 0%, #F8CE5F 52%, #E1A950 100%);
  --blue:       #62AFFB;
  --black:      #000000;
  --ink:        #1E1E20;
  --ink-soft:   #2A2A2D;

  /* text */
  --text:       #101012;
  --text-soft:  #4B4B50;
  --text-mute:  #8A8A90;

  /* lines */
  --line:        rgba(16,16,18,.16);
  --line-strong: rgba(16,16,18,.55);
  --line-card:   rgba(16,16,18,.08);

  /* type */
  --font:   "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-a: "Space Grotesk", "Outfit", "Courier New", monospace;

  /* layout */
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 12px;

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:110px; }

body{
  margin:0;
  background:var(--cream);
  color:var(--text);
  font-family:var(--font);
  font-weight:300;
  font-size:1rem;              /* 16px body, Light */
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }

h1,h2,h3{ font-weight:700; line-height:1.08; letter-spacing:-.02em; margin:0; }

h1{ font-size:clamp(2.35rem, 6.2vw, 5rem); }                 /* 80px desktop */
h2{ font-size:clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing:-.015em; }  /* 40px desktop */
h3{ font-size:clamp(1.15rem, 1.7vw, 1.375rem); letter-spacing:-.01em; }

p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }

a{ color:inherit; }

ul{ margin:0; padding:0; list-style:none; }

::selection{ background:var(--yellow); color:var(--black); }

:where(a,button,input):focus-visible{
  outline:2px solid var(--red);
  outline-offset:3px;
  border-radius:4px;
}

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:999;
  background:var(--black); color:#fff; padding:.75rem 1.25rem;
  font-family:var(--font-a); font-size:.8rem;
}
.skip-link:focus{ left:1rem; top:1rem; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }

.section{ padding-block:clamp(3.5rem, 7vw, 6rem); }

.center{ text-align:center; }

/* --------------------------------------------------------------------------
   3. Shared bits — eyebrow, button, highlight
   -------------------------------------------------------------------------- */
.eyebrow{
  font-family:var(--font-a);
  font-weight:500;
  font-size:clamp(.82rem, 1.1vw, 1rem);
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--red);
  margin:0 0 1.4rem;
}
.eyebrow--center{ text-align:center; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem;
  padding:.85rem 1.9rem;
  border-radius:100px;
  border:1.5px solid transparent;
  font-family:var(--font-a);
  font-weight:500;
  font-size:.72rem;
  letter-spacing:.13em;
  text-transform:uppercase;
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
  transition:transform .25s var(--ease), background-color .25s ease,
             color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.btn--yellow{
  background:var(--yellow);
  color:var(--black);                 /* black on yellow — WCAG AA */
  box-shadow:0 1px 0 rgba(0,0,0,.06);
}
.btn--yellow:hover,
.btn--yellow:focus-visible{
  background:var(--grad-yellow);
  color:var(--black);
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(225,169,80,.42);
}

.btn--ghost{
  background:transparent;
  color:var(--white);
  border-color:rgba(255,255,255,.42);
}
.btn--ghost:hover,
.btn--ghost:focus-visible{
  background:var(--white);
  color:var(--black);
  border-color:var(--white);
  transform:translateY(-2px);
}

/* yellow highlighter behind words — soft marker stroke, not a hard rectangle */
.mark{
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20240%2060%27%20preserveAspectRatio%3D%27none%27%3E%3Cfilter%20id%3D%27s%27%20x%3D%27-8%25%27%20y%3D%27-28%25%27%20width%3D%27116%25%27%20height%3D%27156%25%27%3E%3CfeGaussianBlur%20stdDeviation%3D%272.1%27%2F%3E%3C%2Ffilter%3E%3Cpath%20filter%3D%27url%28%23s%29%27%20fill%3D%27%23FCD462%27%20d%3D%27M7%2014C62%207%20150%209%20233%2012c4%2011%203%2027-1%2034-74%207-160%205-221-1-5-9-6-23-4-31z%27%2F%3E%3C%2Fsvg%3E");
  background-repeat:no-repeat;
  background-size:100% .82em;
  background-position:0 .28em;
  padding-inline:.14em;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
}

.link-red{ color:var(--red); }

/* --------------------------------------------------------------------------
   4. Navigation — fixed glass bar
   -------------------------------------------------------------------------- */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:100;
  padding:1rem var(--gutter);
  transition:padding .3s var(--ease), background-color .3s ease,
             box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav__inner{
  max-width:var(--wrap); margin-inline:auto;
  display:flex; align-items:center; gap:1rem;
}

.nav__logo{ flex:0 0 auto; line-height:0; }
.nav__logo img{ width:clamp(128px, 14vw, 172px); height:auto; }

.nav__menu{
  margin-inline:auto;
  background:rgba(255,255,255,.62);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  backdrop-filter:saturate(180%) blur(14px);
  border:1px solid rgba(255,255,255,.7);
  border-radius:100px;
  padding:.3rem .45rem;
  box-shadow:0 2px 14px rgba(16,16,18,.06);
}
.nav__menu ul{ display:flex; align-items:center; gap:.15rem; }
.nav__menu a{
  display:block;
  padding:.55rem 1.05rem;
  border-radius:100px;
  font-family:var(--font-a);
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.13em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--text);
  transition:background-color .22s ease, color .22s ease;
}
.nav__menu a:hover,
.nav__menu a:focus-visible,
.nav__menu a.is-current{ background:var(--black); color:var(--white); }

.nav__cta{ flex:0 0 auto; padding:.75rem 1.5rem; }

/* scrolled state */
.nav.is-scrolled{
  padding-block:.55rem;
  background:rgba(251,244,234,.72);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  backdrop-filter:saturate(180%) blur(18px);
  box-shadow:0 1px 0 var(--line-card), 0 10px 30px rgba(16,16,18,.05);
}

/* burger */
.nav__toggle{
  display:none;
  width:44px; height:44px;
  flex-direction:column; align-items:center; justify-content:center; gap:5px;
  background:rgba(255,255,255,.7);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border:1px solid rgba(16,16,18,.1);
  border-radius:50%;
  cursor:pointer;
}
.nav__toggle span{
  width:17px; height:1.6px; background:var(--text); border-radius:2px;
  transition:transform .3s var(--ease), opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6.6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6.6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Framed headings — corner-bracket frame + on-reveal animation
   -------------------------------------------------------------------------- */
.framed{
  position:relative;
  display:block;
  padding:clamp(1.5rem, 3.2vw, 2.75rem) clamp(1.2rem, 2.7vw, 2.4rem);
  border:1px dashed var(--blue);
  background:var(--frame-bg, var(--white));
  box-shadow:-17px 19px 24px -9px rgba(16,16,18,.24);
  opacity:0;
  transform:scale(.95);
  will-change:transform, opacity;
}
.framed.is-in{
  opacity:1;
  transform:scale(1);
  border-color:var(--line);
  transition:
    transform .72s var(--ease),
    opacity   .5s  ease-out,
    border-color .6s ease .72s;
}

.framed__corner{
  position:absolute;
  width:9px; height:9px;
  background:var(--white);
  border:1.6px solid var(--blue);
}
.framed.is-in .framed__corner{
  border-color:var(--line-strong);
  transition:border-color .6s ease .72s;
}
.framed__corner--tl{ top:-5px; left:-5px; }
.framed__corner--tr{ top:-5px; right:-5px; }
.framed__corner--bl{ bottom:-5px; left:-5px; }
.framed__corner--br{ bottom:-5px; right:-5px; }

.framed--hero{ max-width:1020px; margin-inline:auto; text-align:center; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero{ padding-block:clamp(7rem, 13vw, 9.5rem) clamp(2.5rem, 5vw, 4rem); }

.hero__lead{
  max-width:38rem;
  margin:clamp(1.5rem, 3vw, 2.25rem) auto 0;
  text-align:center;
  color:var(--text-soft);
  font-size:clamp(.95rem, 1.1vw, 1rem);
}

.hero__cta{ text-align:center; margin:clamp(1.5rem, 3vw, 2.1rem) 0 0; }

/* stats */
.stats{
  display:flex; align-items:stretch; justify-content:center;
  flex-wrap:wrap;
  gap:clamp(1.25rem, 4vw, 3.25rem);
  margin-top:clamp(2.5rem, 5vw, 4rem);
}
.stat{
  position:relative;
  display:flex; flex-direction:column; justify-content:center;
  min-width:150px;
  padding-inline:clamp(.75rem, 2vw, 1.75rem);
}
.stat + .stat::before{
  content:""; position:absolute; left:calc(-1 * clamp(.6rem, 2vw, 1.6rem)); top:12%;
  width:1px; height:76%; background:var(--line);
}
.stat__num{
  font-size:clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight:700; line-height:1; letter-spacing:-.02em;
}
.stat__num--sm{ font-size:clamp(1.5rem, 2.4vw, 1.9rem); }
.stat__label{
  margin-top:.45rem;
  font-size:.875rem;
  color:var(--text-soft);
}
.stat__label strong{ color:var(--red); font-weight:600; }

.stat--card{
  background:var(--white);
  border:1px solid var(--line-card);
  border-radius:var(--radius-sm);
  padding:1.1rem 1.6rem;
  box-shadow:0 6px 22px rgba(16,16,18,.05);
  text-align:center;
}
.stat--card::before{ display:none; }
.stat__badge{
  position:absolute; top:-.6rem; right:.9rem;
  background:var(--yellow); color:var(--black);
  font-family:var(--font-a); font-size:.56rem; font-weight:500;
  letter-spacing:.13em; text-transform:uppercase;
  padding:.2rem .55rem; border-radius:100px;
}

/* --------------------------------------------------------------------------
   7. Marquee bands
   -------------------------------------------------------------------------- */
.marquee{
  background:var(--black);
  color:var(--white);
  overflow:hidden;
  padding-block:.95rem;
  -webkit-user-select:none; user-select:none;
}
.marquee__track{
  display:flex; width:max-content;
  animation:marquee 34s linear infinite;
}
.marquee--reverse .marquee__track{ animation-direction:reverse; }
.marquee:hover .marquee__track{ animation-play-state:paused; }

.marquee__group{ display:flex; align-items:center; flex:0 0 auto; }
.marquee__word{
  font-family:var(--font-a);
  font-size:clamp(.8rem, 1.35vw, 1.05rem);
  font-weight:500;
  letter-spacing:.13em;
  text-transform:uppercase;
  padding-inline:clamp(1rem, 2.4vw, 2rem);
}
.marquee__word--red{ color:var(--red-on-dark); }
.marquee__dot{
  width:7px; height:7px; background:var(--white); flex:0 0 auto;
}

@keyframes marquee{
  from{ transform:translate3d(0,0,0); }
  to  { transform:translate3d(-50%,0,0); }
}

/* --------------------------------------------------------------------------
   8. Work
   -------------------------------------------------------------------------- */
.work__card{
  background:var(--white);
  border:1px solid var(--line-card);
  border-radius:var(--radius);
  padding:clamp(1rem, 2.2vw, 1.75rem);
  box-shadow:0 10px 40px rgba(16,16,18,.05);
  max-width:820px;
  margin-inline:auto;
}
.work__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
}
.work__item{
  display:grid; place-items:center;
  min-width:0;
  aspect-ratio:1 / .82;
  padding:clamp(.75rem, 2vw, 1.5rem);
  border-right:1px solid var(--line-card);
  border-bottom:1px solid var(--line-card);
}
.work__item:nth-child(3n){ border-right:0; }
.work__item:nth-last-child(-n+3){ border-bottom:0; }

.work__item img{
  width:100%; max-width:200px; height:auto;
  transition:transform .28s ease;
  will-change:transform;
}
.work__item img:hover,
.work__item img:focus-visible{ transform:scale(1.08); }

.work .center{ margin-top:clamp(2rem, 4vw, 3rem); }

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services__head{
  display:grid;
  grid-template-columns:minmax(0, 1.55fr) minmax(0, 1fr);
  gap:clamp(1.5rem, 3vw, 3rem);
  align-items:center;
  margin-bottom:clamp(2rem, 4vw, 3rem);
}
.services__head .framed{ text-align:left; }
.services__aside p{
  font-size:.9rem; color:var(--text-soft);
  margin-bottom:1.25rem;
}

.services__grid{
  display:grid;
  grid-template-columns:minmax(0, 1.12fr) minmax(0, 1fr);
  gap:clamp(.85rem, 1.5vw, 1.15rem);
}

.svc{
  background:var(--white);
  border:1px solid var(--line-card);
  border-radius:var(--radius);
  padding:clamp(1.25rem, 2.4vw, 1.9rem);
  box-shadow:0 6px 26px rgba(16,16,18,.04);
  transition:transform .3s var(--ease), box-shadow .3s ease;
}
.svc:hover{ transform:translateY(-3px); box-shadow:0 14px 38px rgba(16,16,18,.09); }

.svc h3{ margin-bottom:.5rem; }
.svc > p:not([class]){ font-size:.875rem; color:var(--text-soft); }

.svc__num{
  font-family:var(--font-a);
  font-size:1.35rem; font-weight:700; color:var(--red);
  margin:0 0 .35rem; line-height:1;
}

.svc--04{ grid-column:1 / -1; }

/* 01 — flagship dark card */
.svc--flagship{
  grid-row:span 2;
  position:relative; overflow:hidden;
  background:
    radial-gradient(58% 42% at 74% 26%, rgba(240,180,60,.42) 0%, rgba(240,180,60,.10) 45%, rgba(0,0,0,0) 72%),
    #0F0F11;
  border-color:rgba(255,255,255,.07);
  color:var(--white);
  display:flex; flex-direction:column;
  padding:clamp(1.3rem, 2.4vw, 2rem);
}
.svc--flagship h3{ color:var(--white); }
.svc--flagship .svc__body > p:not([class]){ color:rgba(255,255,255,.72); font-size:.9rem; }

/* the floating chips */
.svc__visual{
  position:relative;
  container-type:inline-size;
  aspect-ratio:700 / 545;
  flex:0 0 auto;
  margin:0 0 clamp(1.25rem, 2.4vw, 2rem);
}
.chip{ position:absolute; }

.chip--colour{
  left:2%; top:22%; width:35%;
  z-index:1;
  background:#4B4B4E;
  border-radius:2.2cqw;
  padding:3.2cqw 3cqw 3.6cqw;
  text-align:center;
}
.chip--colour .chip__label{
  margin:0 0 2.6cqw;
  font-family:var(--font);
  font-size:2.1cqw; font-weight:400; letter-spacing:.04em;
  text-transform:uppercase; color:rgba(255,255,255,.92);
}
.swatches{ display:flex; justify-content:center; }
.swatches i{
  width:8.4cqw; height:8.4cqw; border-radius:50%;
  background:var(--c);
  flex:0 0 auto;
}
.swatches i + i{ margin-left:-1.9cqw; }
.chip__hexes{
  display:grid; grid-template-columns:1fr 1fr;
  gap:.9cqw 1.2cqw;
  margin-top:3cqw;
  text-align:left;
}
.chip__hexes em{
  font-style:normal;
  font-family:var(--font);
  font-size:1.85cqw; font-weight:300; letter-spacing:.02em;
  color:rgba(255,255,255,.9);
}

.chip--type{
  left:35%; top:4%; width:40%;
  z-index:3;
  background:var(--white); color:var(--text);
  border-radius:3cqw;
  padding:3.4cqw 3cqw 3.8cqw;
  text-align:center;
  transform:rotate(6deg);
  box-shadow:0 4cqw 7cqw rgba(0,0,0,.42);
}
.chip--type .chip__label{
  margin:0;
  font-family:var(--font);
  font-size:2.1cqw; font-weight:400; letter-spacing:.04em;
  text-transform:uppercase; color:var(--text);
}
.chip__aa{
  margin:.6cqw 0 .4cqw;
  font-family:var(--font);
  font-size:16cqw; font-weight:700; line-height:1; letter-spacing:-.03em;
}
.chip__aa .a1{ color:var(--text); }
.chip__aa .a2{ color:var(--red); }
.chip__sub{
  margin:0;
  font-family:var(--font);
  font-size:2.1cqw; font-weight:300; color:var(--text);
}

.chip--brand{
  right:4%; top:44%; width:34%;
  z-index:2;
  aspect-ratio:1 / .97;
  background:var(--yellow); color:var(--black);
  border-radius:1.8cqw;
  display:grid; place-items:center;
  font-family:var(--font);
  font-size:4.4cqw; font-weight:700; line-height:1.18;
  text-transform:uppercase; letter-spacing:.005em;
  text-align:center;
}

.svc__body{ margin-top:auto; }

/* 02 — type scale */
.svc__scale{
  display:flex; align-items:baseline; gap:.45rem;
  margin-bottom:.15rem; line-height:1;
  color:var(--text);
}
.svc__scale span{ font-weight:600; letter-spacing:-.02em; }
.svc__scale .s1{ font-size:2.6rem; }
.svc__scale .s2{ font-size:1.9rem; }
.svc__scale .s3{ font-size:1.3rem; }
.svc__scale .s4{ font-size:1rem; }
.svc__scale .s5{ font-size:.8rem; }
.svc__scale-legend{
  display:flex; gap:1.1rem; margin:0 0 .9rem;
  font-family:var(--font-a); font-size:.55rem; letter-spacing:.08em;
  color:var(--text-mute);
}
.svc__scale-legend em{ font-style:normal; }

.svc__list{
  margin-top:.7rem;
  font-family:var(--font-a);
  font-size:.66rem; letter-spacing:.05em;
  color:var(--red);
}

/* tag pills inside service cards */
.tags{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:1rem; }
.tags li{
  border:1px solid var(--line);
  border-radius:100px;
  padding:.34rem .8rem;
  font-family:var(--font-a);
  font-size:.6rem; letter-spacing:.08em;
  color:var(--text-soft);
  white-space:nowrap;
}
.svc--flagship .tags li{
  border-color:rgba(255,255,255,.22);
  color:rgba(255,255,255,.8);
}

/* --------------------------------------------------------------------------
   10. About
   -------------------------------------------------------------------------- */
.about{ background:var(--white); }
.about .framed{ --frame-bg:#FEFBF3; }

.about__body{
  max-width:37rem;
  margin-top:clamp(1.75rem, 3.5vw, 2.5rem);
  color:var(--text-soft);
  font-size:clamp(.95rem, 1.15vw, 1.05rem);
}
.pills{ display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1.75rem; }
.pills li{
  border:1px solid rgba(193,69,43,.55);
  border-radius:100px;
  padding:.62rem 1.35rem;
  font-family:var(--font-a);
  font-size:.8rem; font-weight:500; letter-spacing:.1em; text-transform:uppercase;
  color:var(--red);
  transition:background-color .25s ease, color .25s ease;
}
.pills li:hover{ background:var(--red); color:var(--white); }

/* --------------------------------------------------------------------------
   11. Contact / footer
   -------------------------------------------------------------------------- */
.contact{
  background:var(--ink);
  color:var(--white);
  padding-top:clamp(3.5rem, 7vw, 6rem);
  text-align:center;
  margin-top:clamp(2.5rem, 5vw, 4rem);
}
.contact .eyebrow{ margin-bottom:1.5rem; }
.contact__title{ max-width:24ch; margin-inline:auto; }
.contact__lead{
  max-width:34rem; margin:1.5rem auto 0;
  color:rgba(255,255,255,.66);
  font-size:.925rem;
}

.contact__lines{
  display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:center;
  gap:clamp(1.25rem, 3.5vw, 3.5rem);
  margin:clamp(2rem, 4vw, 3rem) 0 0;
  font-size:clamp(1.05rem, 1.9vw, 1.55rem);
  font-weight:400;
}
.contact__line{
  padding-bottom:.6rem;
  border-bottom:1px solid rgba(255,255,255,.35);
}
.contact__lines a{
  color:var(--yellow);
  text-decoration:none;
  transition:color .22s ease;
}
.contact__lines a:hover,
.contact__lines a:focus-visible{ color:var(--white); }

.contact__place{
  margin-top:1.35rem;
  font-size:.95rem; font-weight:300;
  color:rgba(255,255,255,.52);
}

.contact p.contact__btns{
  display:flex; flex-wrap:wrap; gap:.9rem; justify-content:center;
  margin-top:clamp(2.25rem, 4.5vw, 3rem);
  margin-bottom:clamp(3rem, 6vw, 4.5rem);   /* keeps the divider off the CTA */
}

.contact__bar{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:clamp(1rem, 2vw, 1.75rem);
  padding-block:1.6rem;
}
.contact__bar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:1rem; flex-wrap:wrap;
}
.contact__bar img{ width:clamp(120px, 13vw, 158px); opacity:.9; }
.contact__bar small{
  font-size:.85rem; font-weight:300; letter-spacing:.03em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55);
}

/* --------------------------------------------------------------------------
   12. Responsive — 1024 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width:1024px){
  .services__head{ grid-template-columns:1fr; align-items:start; }
  .services__grid{ grid-template-columns:1fr 1fr; }
  .svc--flagship{ grid-column:1 / -1; grid-row:auto; }
}

@media (max-width:860px){
  .nav__menu{
    position:absolute; inset:calc(100% + .35rem) var(--gutter) auto var(--gutter);
    margin:0;
    border-radius:20px;
    padding:.6rem;
    background:rgba(255,255,255,.9);
    -webkit-backdrop-filter:saturate(180%) blur(18px);
    backdrop-filter:saturate(180%) blur(18px);
    box-shadow:0 18px 44px rgba(16,16,18,.14);
    opacity:0; visibility:hidden; transform:translateY(-8px);
    transition:opacity .25s ease, transform .25s var(--ease), visibility .25s;
  }
  .nav__menu.is-open{ opacity:1; visibility:visible; transform:translateY(0); }
  .nav__menu ul{ flex-direction:column; align-items:stretch; gap:.15rem; }
  .nav__menu a{ padding:.85rem 1rem; text-align:center; }
  .nav__toggle{ display:flex; }
  .nav__inner{ justify-content:space-between; }
  .nav__cta{ margin-left:auto; }
}

@media (max-width:768px){
  html{ scroll-padding-top:88px; }
  .stats{ gap:1.5rem; }
  .stat + .stat::before{ display:none; }
  .stat{ min-width:130px; }
  .stat--card{ flex-basis:100%; }
  .services__grid{ grid-template-columns:1fr; }

  /* column smer zamenjuje ose: align-items sad kontroliše horizontalu,
     pa mora sa flex-end na center */
  .contact__lines{ flex-direction:column; align-items:center; gap:.9rem; }
  .contact__bar-inner{ justify-content:center; text-align:center; }
}

@media (max-width:600px){
  .nav__cta{ padding:.7rem 1.1rem; font-size:.65rem; }
  .work__grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .work__item{ border-right:1px solid var(--line-card); }
  .work__item:nth-child(3n){ border-right:1px solid var(--line-card); }
  .work__item:nth-child(2n){ border-right:0; }
  .work__item:nth-last-child(-n+3){ border-bottom:1px solid var(--line-card); }
  .work__item:nth-last-child(-n+1){ border-bottom:0; }

  /* odd number of logos: the last one fills the empty cell next to it */
  .work__item:last-child:nth-child(odd){
    grid-column:1 / -1;
    aspect-ratio:2 / .82;    /* two cells wide, same row height */
    border-right:0;
  }
  /* keep the logo the same size as the ones above it */
  .work__item:last-child:nth-child(odd) img{ max-width:min(44%, 200px); }
}

@media (max-width:480px){
  .nav__logo img{ width:118px; }
  .stats{ flex-direction:column; align-items:stretch; }
  .stat{ text-align:center; }
  .contact p.contact__btns .btn{ width:100%; }
}

/* --------------------------------------------------------------------------
   13. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .framed{ opacity:1; transform:none; border-color:var(--line); }
  .framed__corner{ border-color:var(--line-strong); }
  .marquee__track{ animation:none; transform:none; }
}

/* --------------------------------------------------------------------------
   14. Print
   -------------------------------------------------------------------------- */
@media print{
  .nav,.marquee,.btn{ display:none !important; }
  body{ background:#fff; }
  .framed{ opacity:1; transform:none; }
}

/* --------------------------------------------------------------------------
   15. No-JS fallback — framed headings must never stay hidden
   -------------------------------------------------------------------------- */
.no-js .framed{ opacity:1; transform:none; border-color:var(--line); }
.no-js .framed__corner{ border-color:var(--line-strong); }