/* ==========================================================
   Kren Creative · styles
   Palette is taken straight from the logo: deep blue (#0F3C6C),
   pale cyan (#A0DAE3) and pale yellow (#FFEC95) on a deeper
   navy base. Change colours in :root below.
   ========================================================== */

@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* brand colours, taken from the logo */
  --navy: #0F3C6C;
  --cyan: #A0DAE3;
  --yellow: #FFEC95;

  /* derived tones that complete the palette */
  --sky: #8BC3D9;
  --teal: #1B7A92;
  --periwinkle: #B9C9E6;
  --ink: #072A4C;
  --ink-2: #0C3559;
  --paper: #F4F9FB;
  --paper-2: #E3EEF3;
  --blue: var(--navy);
  --muted-dark: #A7C3D6;
  --muted-light: #3D5E78;
  --font: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 56px);
  --wrap-max: max(1240px, min(62vw, 1560px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  background: var(--ink); color: var(--paper);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible, .paper2 :focus-visible, .modal :focus-visible { outline-color: var(--teal); }

/* skip link: off-screen until it is the first thing focused by Tab */
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300; padding: 12px 20px;
  border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: .95rem; transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* The container stays at 1240px on normal screens and opens up on very
   wide viewports (4K, or a browser zoomed out), so the page never becomes
   a small island floating in empty space. */
.wrap { width: 100%; max-width: var(--wrap-max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- surfaces ---------- */
.dark { background: var(--ink); color: var(--paper); }
.light { background: var(--paper); color: var(--ink); }
.paper2 { background: var(--paper-2); color: var(--ink); }
.dark-blue { background: var(--blue); color: #fff; }

.section { padding: clamp(72px, 9vw, 136px) 0; position: relative; }
section[id] { scroll-margin-top: 84px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: .98; }
/* Type keeps a rem ceiling for normal screens, but the ceiling itself is
   allowed to grow with the viewport: max(<rem cap>, <vw>) keeps headings in
   proportion when the page is zoomed out instead of shrinking to nothing. */
h2 { font-size: clamp(2.4rem, 5.6vw, max(4.8rem, 3vw)); }
em { font-style: normal; }
.light h2 em, .paper2 h2 em { color: var(--teal); }
.dark h2 em, .dark-blue h2 em, .hero__slogan em { color: var(--yellow); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.5vw, max(1.25rem, .84vw)); max-width: 56ch; margin-top: 26px; }
.about { font-size: 1rem; max-width: 64ch; margin-top: 16px; }
.dark .about { color: var(--muted-dark); }
.light .about, .paper2 .about { color: var(--muted-light); }
.light .lead, .paper2 .lead { color: var(--muted-light); }
.dark .lead { color: var(--muted-dark); }

.section__head { margin-bottom: clamp(44px, 6vw, 84px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.1;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn--sm { padding: 11px 20px; font-size: .92rem; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { box-shadow: 0 10px 0 -2px var(--cyan); }
.btn--ghost { border-color: rgba(243, 244, 250, .4); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--blue { background: var(--blue); color: #fff; width: 100%; padding: 18px; }
.btn--blue:hover { background: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); width: 100%; padding: 16px; }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 100; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--sky), var(--yellow));
}

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 90; padding: 18px 0; transition: background .3s, padding .3s, backdrop-filter .3s; }
.nav.is-scrolled { background: rgba(7, 42, 76, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 0; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: clamp(48px, 2.4vw, 64px); width: auto; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__cta { white-space: nowrap; }

.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1.5px solid rgba(243, 244, 250, .35); }
.lang__btn { display: inline-block; text-align: center; background: none; border: 0; padding: 6px 13px; border-radius: 999px; font-weight: 800; font-size: .78rem; letter-spacing: .08em; opacity: .75; transition: background .2s, color .2s, opacity .2s; }
.lang__btn:hover { opacity: 1; }
.lang__btn.is-active { background: var(--paper); color: var(--ink); opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 120px; overflow: hidden; isolation: isolate; }
.hero__inner { position: relative; z-index: 2; }
/* the <h1> carries the search terms (studio · Tirana · services) in a quiet
   line, so the display slogan below keeps the visual punch */
.hero__h1 { font-size: clamp(1rem, 1.35vw, max(1.25rem, .88vw)); font-weight: 600; letter-spacing: -0.005em; line-height: 1.4; max-width: 52ch; color: var(--paper); margin-bottom: 22px; }
.hero__slogan { font-size: clamp(2.6rem, 5.6vw, max(6.4rem, 4vw)); max-width: 14ch; letter-spacing: -0.045em; line-height: .94; margin-bottom: 34px; }
.hero__lead { max-width: 52ch; font-size: clamp(1.05rem, 1.55vw, max(1.28rem, .88vw)); color: var(--muted-dark); }

/* the intro is clamped so the hero stays short; the arrow expands it */
.hero__more { max-width: 52ch; }
.hero__lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 20px), transparent 100%); }
.hero__more.is-open .hero__lead { display: block; overflow: visible; -webkit-mask-image: none; mask-image: none; }
.hero__toggle {
  display: grid; place-items: center; width: 42px; height: 42px; margin-top: 16px;
  border-radius: 50%; border: 1.5px solid rgba(243, 244, 250, .35); background: none;
  color: var(--paper); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.hero__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.hero__toggle:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero__more.is-open .hero__toggle svg { transform: rotate(180deg); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* One still mark, sized to the viewport so it always sits beside the copy
   instead of drifting to the edge. The ribbon below is the only motion. */
.hero__art { position: absolute; z-index: 1; top: 50%; width: min(36vw, 420px); aspect-ratio: 1; transform: translateY(-50%); right: calc(var(--gutter) + max(0px, (100% - var(--wrap-max)) / 2)); }
.hero__mark {
  width: 100%; height: auto; aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--paper), 0 30px 70px -30px rgba(3, 18, 34, .8);
}

/* ---------- marquee ---------- */
.marquee { background: var(--yellow); color: var(--ink); overflow: hidden; padding: 20px 0; border-block: 3px solid var(--ink); transform: rotate(-1.2deg) scale(1.03); margin: -18px 0; position: relative; z-index: 5; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 34px; animation: marq 32s linear infinite; font-weight: 800; font-size: clamp(1.4rem, 3vw, max(2.3rem, 1.7vw)); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; }
.marquee__track b { color: var(--teal); font-size: .8em; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- services ---------- */
/* auto-fit keeps three cards on a desktop, two on a narrower or
   zoomed-in window and one on a phone, without jumping 3 -> 1. */
#services { padding-top: clamp(96px, 11vw, 160px); overflow: hidden; }

/* Five pills, one open service at a time: the reader picks what they came for
   and the page stays short. Every panel is in the HTML, so nothing has to be
   fetched on click, and each panel sets --c for the cards inside it. */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab { padding: 13px 24px; border-radius: 999px; background: none; border: 1.5px solid rgba(243, 244, 250, .3); font-weight: 700; font-size: .98rem; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.tab:hover { border-color: var(--c); transform: translateY(-2px); }
.tab.is-active { background: var(--c); color: var(--ink); border-color: var(--c); }
.tiers__panel[hidden] { display: none; }
.svc__type { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: var(--muted-dark); font-weight: 600; letter-spacing: .01em; }
.svc__type::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.svc__name { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-bottom: 16px; }
.svc__desc { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 58ch; }
.svc__long { margin-top: 12px; max-width: 68ch; color: var(--muted-dark); }
/* the description is in the page and closed until asked for; <details> does the
   work, so it opens without JavaScript and the text stays readable to crawlers */
.svc__more { margin-top: 8px; }
.svc__moreBtn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 18px; border: 1.5px solid rgba(243, 244, 250, .3); border-radius: 999px; font-weight: 700; font-size: .88rem; letter-spacing: .01em; list-style: none; cursor: pointer; transition: border-color .25s, background .25s, color .25s; }
.svc__moreBtn::-webkit-details-marker { display: none; }
.svc__moreBtn:hover { border-color: var(--c); }
.svc__moreBtn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.svc__more[open] .svc__moreBtn svg { transform: rotate(180deg); }
.svc__more[open] .svc__moreBtn { border-color: var(--c); }
.svc__moreBody { padding-top: 18px; }
.tiers__grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: stretch; }
.tier { display: flex; flex-direction: column; padding: 34px 30px 30px; border-radius: 26px; background: var(--ink-2); border: 1.5px solid rgba(243, 244, 250, .14); transition: transform .35s var(--ease), border-color .3s; }
.tier:hover { transform: translateY(-6px); border-color: var(--c); }
.tier__tag { font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--c); margin-bottom: 10px; }
.tier__name { font-size: clamp(1.8rem, 2.6vw, max(2.4rem, 1.6vw)); margin-bottom: 26px; }
.tier__group + .tier__group { margin-top: 24px; }
.tier__group h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted-dark); margin-bottom: 12px; }
.tier li { position: relative; padding: 8px 0 8px 30px; line-height: 1.35; border-bottom: 1px solid rgba(243, 244, 250, .08); }
.tier li:last-child { border-bottom: 0; }
.tier li::before { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.tier li::after { content: ""; position: absolute; left: 6px; top: 16px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg) scale(.9); }
.tier__btn { margin-top: auto; align-self: stretch; border-color: rgba(243, 244, 250, .4); color: var(--paper); }
.tier__group:last-of-type { margin-bottom: 30px; }
.tier__btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0; text-align: center; }
.cta h2 { font-size: clamp(2.6rem, 6.4vw, max(6rem, 4.2vw)); max-width: 13ch; margin: 0 auto; letter-spacing: -0.045em; line-height: .94; }
.cta p { max-width: 46ch; margin: 28px auto 38px; font-size: 1.18rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact__list { display: grid; gap: 14px; margin-top: 44px; }
.c-card { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 20px; background: #fff; border: 2px solid var(--ink); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.c-card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); }
.c-card__ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--cc); }
.c-card__ico svg { width: 24px; height: 24px; fill: var(--ink); }
.c-card--c { --cc: var(--cyan); } .c-card--y { --cc: var(--yellow); }
.c-card__txt { display: flex; flex-direction: column; min-width: 0; }
.c-card__txt small { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-light); }
.c-card__txt strong { font-size: clamp(1.05rem, 2.2vw, max(1.4rem, .95vw)); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.c-card__arrow { margin-left: auto; font-size: 1.5rem; font-weight: 700; transition: transform .3s var(--ease); }
.c-card:hover .c-card__arrow { transform: translateX(5px); }

.form { background: #fff; border: 2px solid var(--ink); border-radius: 28px; padding: clamp(26px, 4vw, 44px); box-shadow: 10px 10px 0 var(--ink); }
.form h3 { font-size: clamp(1.7rem, 3vw, max(2.3rem, 1.55vw)); margin-bottom: 26px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; font-weight: 700; font-size: .86rem; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23072A4C' stroke-width='2.4'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.form__confirm[hidden] { display: none; }
.form__confirm { border: 2px solid var(--ink); border-radius: 18px; padding: 18px; margin-bottom: 6px; background: var(--paper); animation: confirmIn .25s var(--ease); }
.form__confirmText { font-weight: 700; font-size: 1rem; margin-bottom: 14px; }
.form__confirmBtns { display: flex; flex-direction: column; gap: 10px; }
@keyframes confirmIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.form__status { min-height: 1.5em; margin-top: 14px; font-weight: 600; font-size: .95rem; }
.form__status.is-err { color: #B0322A; }
.form__status.is-ok { color: #0F6B4F; }
.form__status.is-locked { color: #6C5B1E; }
.form__hint { margin-top: 6px; font-size: .9rem; color: var(--muted-light); }
.form__hint a { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

/* ---------- consent + privacy popup ---------- */
.form__consent { font-size: .9rem; color: var(--muted-light); margin: -4px 0 16px; line-height: 1.5; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; cursor: pointer; }
.link-btn:hover { color: var(--blue); }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 22, 40, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel { position: relative; width: 100%; max-width: 780px; max-height: min(88vh, 860px); display: flex; flex-direction: column; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 26px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .3s, transform .4s var(--ease); }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__panel:focus { outline: none; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 24px; border-bottom: 2px solid var(--ink); background: var(--yellow); flex: none; }
.modal .lang { border-color: rgba(11, 12, 46, .45); }
.modal .lang__btn { color: var(--ink); }
.modal .lang__btn.is-active { background: var(--ink); color: var(--paper); }
.modal__close { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; transition: transform .25s var(--ease), background .2s, color .2s; flex: none; }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal__body { padding: clamp(22px, 4vw, 40px); overflow-y: auto; overscroll-behavior: contain; font-size: .98rem; line-height: 1.65; }
.modal__body h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.policy__meta { margin: 0 0 8px; padding: 16px 18px; background: var(--paper); border-radius: 14px; display: grid; gap: 4px; }
.policy__meta dt, .policy__meta dd { display: inline; margin: 0; }
.policy__meta dt { font-weight: 800; }
.modal__body section { margin-top: 28px; }
.modal__body h3 { font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 10px; }
.modal__body p + p, .modal__body p + ul, .modal__body ul + p { margin-top: 10px; }
.modal__body ul { padding-left: 4px; }
.modal__body li { position: relative; padding: 4px 0 4px 22px; }
.modal__body li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.modal__body a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .modal { padding: 10px; } .modal__panel { border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); max-height: 92vh; } .modal__head { padding-left: 16px; } }

/* ---------- footer ---------- */
.footer { padding: 70px 0 28px; border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--cyan), var(--sky), var(--yellow)) 1; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer__brand img { height: clamp(76px, 3.4vw, 96px); width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted-dark); max-width: 38ch; }
.footer__btns { display: flex; gap: 14px; }
.icon-btn { width: clamp(60px, 3.4vw, 74px); height: clamp(60px, 3.4vw, 74px); border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(243, 244, 250, .35); transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s; }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn:hover { transform: translateY(-5px) rotate(-6deg); background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 54px; padding-top: 22px; border-top: 1px solid rgba(243, 244, 250, .14); font-size: .88rem; color: var(--muted-dark); }
.footer__bar a:hover { color: var(--yellow); }

/* ---------- reveal ---------- */
/* Visible by default, so the page still reads if scripts never run. The
   <html class="js"> set in the head is what opts into the animation. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

/* Between the phone layout and the wide desktop column there is less room
   beside the copy, so the mark steps back instead of crowding the text. */
@media (min-width: 901px) and (max-width: 1150px) {
  .hero__art { width: min(30vw, 330px); }
}

/* Tablet and below: the hero artwork stops being a background and becomes a
   compact brand motif above the copy, so nothing can sit on top of the text. */
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding: 116px 0 74px; }
  .hero__art { position: relative; top: auto; right: auto; transform: none; width: min(44vw, 220px); aspect-ratio: 1; margin: 0 0 32px auto; }
  .hero__h1, .hero__lead { max-width: 46ch; }
  .nav__logo, .nav__actions { position: relative; z-index: 2; }
}

/* Phones: one column, one rhythm. Every block gets the same top/bottom air,
   and the full-width buttons and cards line up on the same grid. */
@media (max-width: 640px) {
  body { font-size: 16px; }

  /* header */
  .nav { padding: 14px 0; }
  .nav.is-scrolled { padding: 10px 0; }
  .nav__logo img { height: 38px; }
  .nav__actions { gap: 8px; }
  .lang { padding: 2px; }
  .lang__btn { padding: 8px 12px; font-size: .74rem; }
  .nav__cta { padding: 10px 15px; font-size: .85rem; }

  /* hero: message, then the buttons, then the detail — so the first screen
     always ends on an action instead of a wall of text */
  .hero { padding: 78px 0 52px; }
  .hero__art { width: min(34vw, 126px); margin: 0 0 16px auto; }
  .eyebrow { margin-bottom: 16px; font-size: .72rem; }
  .hero__inner { display: flex; flex-direction: column; }
  .hero__inner > .eyebrow { order: 0; }
  .hero__h1 { order: 1; font-size: .95rem; line-height: 1.45; margin-bottom: 16px; }
  .hero__slogan { order: 2; font-size: clamp(2.15rem, 9.6vw, 2.9rem); max-width: none; letter-spacing: -0.04em; margin-bottom: 0; }
  .hero__cta { order: 3; gap: 10px; margin-top: 20px; }
  .hero__cta .btn { flex: 1 1 0; padding: 14px 10px; font-size: .85rem; line-height: 1.15; }
  .hero__more { order: 4; margin-top: 14px; }
  .hero__lead { font-size: 1rem; line-height: 1.6; -webkit-line-clamp: 2; }
  .hero__toggle { width: 36px; height: 36px; margin-top: 8px; }
  .hero__toggle svg { width: 18px; height: 18px; }

  /* marquee */
  .marquee { padding: 14px 0; transform: rotate(-1.6deg) scale(1.04); }
  .marquee__track { font-size: 1.15rem; gap: 22px; }

  /* sections */
  .section { padding: 68px 0; }
  #services { padding-top: 92px; }
  .section__head { margin-bottom: 30px; }
  .lead { font-size: 1.02rem; margin-top: 18px; }

  /* service pills + tiers */
  /* horizontal pill strip, with a soft edge so it reads as scrollable */
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 11px 18px; font-size: .92rem; }
  .svc__type { margin: 18px 0 12px; font-size: .92rem; align-items: flex-start; line-height: 1.45; }
  .svc__type::before { margin-top: .5em; }
  .svc__name { font-size: 1.7rem; }
  .svc__moreBtn { font-size: .84rem; padding: 8px 14px 8px 16px; }
  .svc__desc, .svc__long { font-size: 1rem; }
  .tiers__grid { margin-top: 22px; gap: 14px; }
  .tier { padding: 26px 20px 22px; border-radius: 22px; }
  .tier__name { font-size: 1.9rem; margin-bottom: 22px; }
  .tier__group + .tier__group { margin-top: 20px; }
  .tier__group:last-of-type { margin-bottom: 24px; }
  .tier li { font-size: .98rem; padding: 7px 0 7px 28px; }
  .tier li::before { top: 11px; }
  .tier li::after { top: 15px; }
  .tier__btn { padding: 14px 18px; font-size: .95rem; }

  /* closing call to action */
  .cta { padding: 72px 0; }
  .cta h2 { font-size: clamp(2.3rem, 11vw, 3.2rem); max-width: 13ch; }
  .cta p { margin: 18px auto 26px; font-size: 1rem; }
  .cta .btn { width: 100%; }

  /* contact */
  .contact { gap: 34px; }
  .contact__list { margin-top: 26px; gap: 10px; }
  .c-card { padding: 14px 16px; gap: 14px; border-radius: 16px; }
  .c-card__ico { width: 44px; height: 44px; }
  .c-card__ico svg { width: 20px; height: 20px; }
  .c-card__txt strong { font-size: 1rem; }
  .c-card__arrow { display: none; }
  .form { padding: 22px 18px; border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
  .form h3 { margin-bottom: 20px; }
  .field { margin-bottom: 16px; }
  .field textarea { min-height: 110px; }
  .btn--blue { padding: 16px; }

  /* footer */
  .footer { padding: 52px 0 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .footer__brand img { height: 72px; margin-bottom: 14px; }
  .footer__btns { gap: 10px; }
  .icon-btn { width: 54px; height: 54px; }
  .footer__bar { margin-top: 32px; padding-top: 18px; flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Narrow phones: keep the header on one line and let the hero buttons
   stack instead of wrapping their labels. */
@media (max-width: 380px) {
  .nav__logo img { height: 32px; }
  .lang__btn { padding: 7px 10px; font-size: .7rem; }
  .nav__cta { padding: 9px 11px; font-size: .78rem; }
  .hero__slogan { font-size: 2.35rem; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { flex: 0 0 auto; width: 100%; padding: 14px 16px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; }
}
