/* =========================================================================
   edesign.md, Tehno Design & Consulting: design system
   Palette taken from the edesign.md logo: charcoal #191919 + gradient
   #6bc7ca → #6d99e1 → #996ae5 → #b163cd → #dc5ca4.
   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1440
   ========================================================================= */

:root {
  --bg:        #141414;
  --bg-2:      #191919;
  --bg-3:      #222224;
  --surface:   rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border:    rgba(255, 255, 255, 0.10);
  --border-2:  rgba(255, 255, 255, 0.17);

  --text:      #F5F5F6;
  --text-soft: #CACACF;
  --text-mut:  #9B9BA3;

  --teal:      #6bc7ca;
  --blue:      #6d99e1;
  --violet:    #996ae5;
  --purple:    #b163cd;
  --magenta:   #dc5ca4;
  --ink:       #191919;

  --grad: linear-gradient(100deg, #6bc7ca 0%, #6d99e1 25%, #996ae5 52%, #b163cd 76%, #dc5ca4 100%);
  --grad-soft: linear-gradient(120deg, rgba(107,199,202,.14), rgba(153,106,229,.14) 55%, rgba(220,92,164,.14));

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px; --r-full: 999px;

  --container: 1200px;
  --container-wide: 1360px;
  --header-h: 72px;

  --fs-display: clamp(2.4rem, 1.4rem + 4.6vw, 5.2rem);
  --fs-h2:      clamp(1.6rem, 1.2rem + 1.9vw, 2.6rem);
  --fs-h3:      clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem);
  --fs-lead:    clamp(1.05rem, 0.98rem + 0.5vw, 1.28rem);
  --fs-body:    clamp(1rem, 0.97rem + 0.15vw, 1.075rem);

  --shadow:    0 20px 60px -20px rgba(0,0,0,0.65);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body); line-height: 1.65; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
button:disabled { cursor: default; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(153,106,229,.45); color: #fff; }
h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: clamp(56px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Space Grotesk", sans-serif; font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.section-head p { color: var(--text-soft); font-size: var(--fs-lead); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; flex-direction: column; gap: var(--s-4); }
.section-head--row > div { max-width: 720px; }

.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 1rem;
  border-radius: var(--r-full); text-align: center; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad); color: var(--ink); font-weight: 600; box-shadow: 0 10px 30px -12px rgba(107,199,202,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(153,106,229,.65); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--violet); }
.btn-block { width: 100%; white-space: normal; }
@media (max-width: 479px) { .btn { white-space: normal; } }
.contact-grid > *, .contact-detail > div { min-width: 0; }
.btn .ico { width: 18px; height: 18px; flex: none; }

/* ---------- Header & brand ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(20,20,20,0.78);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(20,20,20,0.92); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; line-height: 0; }
.brand picture { display: block; }
/* Responsive lockup: symbol (<360px) → compact "edesign.md" → full horizontal logo with tagline (wide desktop) */
.brand-logo { display: block; width: auto; height: 36px; }
@media (min-width: 360px)  { .brand-logo { height: 24px; } }
@media (min-width: 768px)  { .brand-logo { height: 29px; } }
@media (min-width: 1024px) { .brand-logo { height: 25px; } }
@media (min-width: 1181px) { .brand-logo { height: 48px; } }
.footer-logo { display: block; width: min(100%, 300px); height: auto; margin-bottom: var(--s-5); }

.nav-links { display: none; }
.nav-cta { display: none; }
.nav-right { display: flex; align-items: center; gap: var(--s-3); }

.lang-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); }
.lang-toggle button { min-width: 38px; min-height: 34px; padding: 4px 10px; border-radius: var(--r-full); font-family: "Space Grotesk", sans-serif; font-size: .82rem; font-weight: 500; color: var(--text-mut); transition: color .2s, background .2s; }
.lang-toggle button.active { background: var(--grad); color: var(--ink); font-weight: 600; }

.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.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); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: rgba(20,20,20,0.98);
  padding: clamp(24px, 6vw, 40px); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a { padding: 15px 4px; font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a .num { font-size: .8rem; color: var(--teal); font-family: "Inter"; }
.mobile-menu .btn { margin-top: var(--s-6); border-bottom: none; justify-content: center; }
.mobile-menu .m-contact { margin-top: var(--s-5); color: var(--text-mut); font-size: .9rem; line-height: 1.7; }
.mobile-menu .m-contact a { display: inline; padding: 0; border: 0; font: inherit; color: var(--text-soft); }
.mobile-menu .m-contact a:hover { color: var(--teal); }
body.menu-open, body.lb-open { overflow: hidden; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; padding-top: clamp(56px, 10vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 88% 8%, rgba(153,106,229,.34), transparent 60%),
    radial-gradient(34vw 34vw at 8% 92%, rgba(107,199,202,.28), transparent 62%),
    radial-gradient(26vw 26vw at 62% 52%, rgba(220,92,164,.16), transparent 64%);
}
.hero-grid-overlay { position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 78%); }
.hero-inner { position: relative; text-align: center; max-width: 920px; margin-inline: auto; }
.hero h1 { font-size: var(--fs-display); margin-bottom: var(--s-5); }
.hero .lead { font-size: var(--fs-lead); color: var(--text-soft); max-width: 680px; margin: 0 auto var(--s-6); }
.hero-actions { display: flex; flex-direction: column; gap: var(--s-3); align-items: stretch; max-width: 340px; margin: 0 auto; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-top: clamp(40px, 7vw, 72px); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: var(--s-5) var(--s-4); text-align: center; }
.stat .num { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); font-weight: 600; line-height: 1; }
.stat .label { font-size: .84rem; color: var(--text-mut); margin-top: 8px; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.about-lead h2 { font-size: var(--fs-h2); margin-bottom: var(--s-5); }
.about-lead p { color: var(--text-soft); margin-bottom: var(--s-4); font-size: var(--fs-lead); }
.about-lead p strong { color: var(--text); }
.values { display: grid; gap: var(--s-3); }
.value { display: flex; gap: var(--s-4); padding: var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.v-ico, .s-ico, .cd-ico { display: grid; place-items: center; flex: none; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border); }
.v-ico { width: 44px; height: 44px; }
.v-ico svg { width: 22px; height: 22px; stroke: var(--teal); }
.value h4 { font-size: 1.05rem; margin-bottom: 3px; }
.value p { font-size: .93rem; color: var(--text-mut); }

/* =========================================================================
   SERVICES
   ========================================================================= */
.services-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.service {
  position: relative; display: flex; flex-direction: column; padding: clamp(22px, 3.5vw, 30px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.service:hover { transform: translateY(-4px); background: var(--surface-2); border-color: var(--border-2); }
.service .s-ico { width: 50px; height: 50px; margin-bottom: var(--s-4); }
.service .s-ico svg { width: 25px; height: 25px; stroke: var(--teal); fill: none; }
.service h3 { font-size: var(--fs-h3); margin-bottom: var(--s-3); }
.service > p { color: var(--text-soft); margin-bottom: var(--s-4); font-size: .96rem; flex: 1; }
.service .s-meta { font-size: .83rem; color: var(--text-mut); padding-top: var(--s-3); border-top: 1px solid var(--border); }
.service .s-meta b { color: var(--teal); font-weight: 500; }

/* =========================================================================
   PORTFOLIO
   ========================================================================= */
.filter-bar { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-3); margin-bottom: var(--s-5); scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn { flex: none; min-height: 42px; padding: 8px 18px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); font-size: .9rem; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.filter-btn:hover { border-color: var(--border-2); color: var(--text); }
.filter-btn.active { background: var(--grad); color: var(--ink); font-weight: 600; border-color: transparent; }

.works-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); min-height: 200px; }
.works-empty { color: var(--text-mut); padding: var(--s-6) 0; }
.work { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.work:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.work-media { position: relative; aspect-ratio: 4 / 3; background: #0f0f10; overflow: hidden; }
.work-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.work-track::-webkit-scrollbar { display: none; }
.work-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; transition: transform .6s var(--ease); }
.work-track img.contain { object-fit: contain; }
.work:hover .work-track img:not(.contain) { transform: scale(1.03); }
.work-open { position: absolute; inset: 0; z-index: 1; cursor: zoom-in; }
.work-count { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-full); background: rgba(20,20,20,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--border-2); font-size: .75rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.work-count svg { width: 14px; height: 14px; }
.work-nav { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,20,20,.72); border: 1px solid var(--border-2); color: #fff; transition: opacity .25s, background .25s; }
.work-nav svg { width: 20px; height: 20px; }
.work-nav:hover { background: rgba(20,20,20,.92); }
.work-nav:disabled { opacity: 0; pointer-events: none; }
.work-nav.prev { left: 10px; } .work-nav.next { right: 10px; }
.work-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255,255,255,.12); pointer-events: none; }
.work-progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .35s var(--ease); }
.work-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.work-type { font-size: 1.08rem; margin-bottom: 4px; }
.work-client { font-size: .88rem; color: var(--teal); }
.works-more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(12,12,13,.96); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
.lb-track { width: 100%; height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; padding: 72px clamp(16px, 7vw, 96px) 96px; scroll-snap-align: start; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.lb-close, .lb-nav { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--border-2); color: #fff; transition: background .2s, opacity .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.16); }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; margin-top: -24px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-nav:disabled { opacity: .25; }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 16px; padding: 0 20px; text-align: center; }
.lb-type { font-family: "Space Grotesk"; font-weight: 600; }
.lb-client { color: var(--teal); font-size: .92rem; }
.lb-count { color: var(--text-mut); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* =========================================================================
   CLIENTS — logo carousel
   ========================================================================= */
.logo-marquee { position: relative; overflow: hidden; padding-block: 6px;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logo-track { display: flex; gap: var(--s-4); width: max-content; animation: logo-scroll var(--dur, 50s) linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(calc(-50% - var(--s-4) / 2)); } }
.logo-marquee.is-static { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
.logo-marquee.is-static .logo-track { animation: none; }
.logo-tile { flex: none; width: 168px; height: 96px; padding: 16px 20px; border-radius: var(--r); background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -18px rgba(0,0,0,.7); }
.logo-tile img { max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .35s, opacity .35s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* =========================================================================
   CAPACITY (tender)
   ========================================================================= */
.capacity { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); border-block: 1px solid var(--border); }
.cap-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.cap-card { padding: clamp(24px, 4vw, 32px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.cap-card h3 { font-size: 1.15rem; margin-bottom: var(--s-4); display: flex; align-items: center; gap: 10px; }
.cap-card h3 svg { width: 22px; height: 22px; stroke: var(--teal); flex: none; }
.cap-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.cap-list li:last-child { border-bottom: none; }
.cap-list li span:first-child { color: var(--text-soft); }
.cap-list li span:last-child { color: var(--text); font-family: "Space Grotesk"; font-weight: 500; text-align: right; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.tool-chip { padding: 7px 14px; border-radius: var(--r-full); background: var(--bg-3); border: 1px solid var(--border); font-size: .84rem; color: var(--text-soft); }
.cap-cta { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); padding: clamp(24px,4vw,36px); border-radius: var(--r-lg); background: var(--grad-soft); border: 1px solid var(--border-2); text-align: center; }
.cap-cta h3 { font-size: var(--fs-h3); }
.cap-cta p { color: var(--text-soft); max-width: 540px; margin-inline: auto; }
.cap-cta .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-3); }

/* =========================================================================
   TESTIMONIALS — carousel (1 per view on mobile, 2 on desktop)
   ========================================================================= */
.carousel-track { display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-6); }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-2); transition: background .2s, border-color .2s, opacity .2s; }
.carousel-btn:hover { background: var(--surface-2); border-color: var(--violet); }
.carousel-btn:disabled { opacity: .35; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-count { font-family: "Space Grotesk"; font-size: .95rem; color: var(--text-mut); min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; }

.tst { height: 100%; display: flex; flex-direction: column; padding: clamp(24px,4vw,34px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.tst .quote-mark { width: 34px; height: 34px; }
.tst blockquote { font-size: 1.06rem; color: var(--text); margin: var(--s-4) 0 var(--s-5); line-height: 1.6; flex: 1; }
.tst .who { display: flex; align-items: center; gap: 12px; }
.tst .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; }
.tst .who .av svg { width: 22px; height: 22px; stroke: var(--ink); }
.tst .who > span:last-child { display: flex; flex-direction: column; }
.tst .who .n { font-family: "Space Grotesk"; font-weight: 500; font-size: .96rem; }
.tst .who .r { font-size: .82rem; color: var(--text-mut); }

/* =========================================================================
   TEAM & PROCESS
   ========================================================================= */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 32px); max-width: 1060px; margin-inline: auto; }
/* odd member on a 2-column row sits centred */
.team-grid > .member:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - clamp(16px, 3vw, 32px) / 2); }
.member .nick[hidden] { display: none; }
.member .nick { display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: var(--r-full); background: var(--grad-soft); border: 1px solid var(--border-2);
  font-family: "Space Grotesk", sans-serif; font-size: .78rem; font-weight: 500; letter-spacing: .02em; color: var(--text-soft); max-width: 100%; }
@media (max-width: 479px) { .member .nick { font-size: .7rem; padding: 3px 10px; } }
.member { text-align: center; }
.member .ph { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-3); border: 1px solid var(--border); margin-bottom: var(--s-4); }
.member .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.member:hover .ph img { transform: scale(1.03); }
.member h4 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
.member .role { font-size: .92rem; color: var(--teal); margin-top: 4px; font-family: "Space Grotesk"; font-weight: 500; }
.member .exp { font-size: .88rem; color: var(--text-soft); margin-top: 6px; }
.process-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
.step { padding: clamp(22px,3.5vw,30px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step .step-n { font-family: "Space Grotesk"; font-size: 2.4rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.step h4 { font-size: 1.12rem; margin: var(--s-3) 0 var(--s-2); }
.step p { font-size: .92rem; color: var(--text-mut); }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display: grid; gap: clamp(32px,5vw,56px); grid-template-columns: 1fr; }
.contact-info h2 { font-size: var(--fs-h2); margin-bottom: var(--s-4); }
.contact-info > p { color: var(--text-soft); font-size: var(--fs-lead); margin-bottom: var(--s-6); }
.contact-detail { display: flex; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.cd-ico { width: 42px; height: 42px; }
.cd-ico svg { width: 20px; height: 20px; stroke: var(--teal); }
.contact-detail .l { font-size: .78rem; color: var(--text-mut); text-transform: uppercase; letter-spacing: .1em; }
.contact-detail .v { font-size: 1rem; color: var(--text); word-break: break-word; }
.contact-detail a.v:hover { color: var(--teal); }
.contact-download { margin-top: var(--s-6); }
.form { padding: clamp(24px,4vw,36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: .87rem; color: var(--text-soft); margin-bottom: 8px; }
.field label .req { color: var(--magenta); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 13px 16px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 124px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mut); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(107,199,202,.2); }
.field.invalid input, .field.invalid textarea { border-color: var(--magenta); }
.field .err { display: none; font-size: .8rem; color: var(--magenta); margin-top: 6px; }
.field.invalid .err { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--text-mut); margin-top: var(--s-3); text-align: center; }
.form-error-msg { display: none; color: var(--magenta); font-size: .86rem; margin-top: var(--s-3); text-align: center; }
.form-success { display: none; text-align: center; padding: var(--s-6) var(--s-4); }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto var(--s-4); border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.form-success .check svg { width: 32px; height: 32px; stroke: var(--ink); stroke-width: 3; }
.form-success h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.form-success p { color: var(--text-soft); }

/* =========================================================================
   PAGE HEAD (portfolio page)
   ========================================================================= */
.page-head { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(24px, 4vw, 40px); overflow: hidden; }
.page-head h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); margin-bottom: var(--s-4); }
.page-head p { color: var(--text-soft); font-size: var(--fs-lead); max-width: 640px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--s-5); color: var(--text-soft); font-size: .92rem; }
.back-link:hover { color: var(--teal); }
.back-link svg { width: 18px; height: 18px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { border-top: 1px solid var(--border); padding-block: clamp(40px,6vw,72px) var(--s-6); background: var(--bg-2); }
.footer-top { display: grid; gap: var(--s-6); grid-template-columns: 1fr; margin-bottom: var(--s-7); }
.footer-brand p { color: var(--text-mut); font-size: .92rem; max-width: 340px; }
.footer-col h5 { font-family: "Space Grotesk"; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mut); margin-bottom: var(--s-4); }
.footer-col a { display: block; padding: 7px 0; color: var(--text-soft); font-size: .95rem; transition: color .2s; word-break: break-word; }
.footer-col a:hover { color: var(--teal); }
.footer-col a.footer-email { white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.footer-bottom { display: flex; flex-direction: column; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--border); color: var(--text-mut); font-size: .84rem; }
.footer-bottom .socials { display: flex; gap: var(--s-3); }
.footer-bottom .socials a { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; transition: border-color .25s; }
.footer-bottom .socials a:hover { border-color: var(--teal); }
.footer-bottom .socials svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 380px) {
  .lang-toggle button { min-width: 34px; padding: 4px 8px; }
}
@media (min-width: 480px) {
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .logo-tile { width: 188px; height: 104px; }
}
@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-slide { flex-basis: calc((100% - var(--s-4)) / 2); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid > .member:last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr auto; }
  .section-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .logo-tile { width: 208px; height: 112px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 80px; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
  .nav-links { display: flex; align-items: center; gap: 2px; }
  .nav-links a { padding: 10px 12px; font-size: .92rem; color: var(--text-soft); border-radius: 10px; transition: color .2s, background .2s; }
  .nav-links a:hover { color: var(--text); background: var(--surface); }
  .nav-cta { display: inline-flex; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .cap-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-links a { padding: 10px 9px; font-size: .88rem; }
}
