/* 2ES Mekanik — Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --blue: #1e4e79;
  --blue-dark: #143652;
  --blue-soft: #2a5f8f;
  --green: #90c53d;
  --green-dark: #6f9a2c;
  --ink: #0f1c28;
  --muted: #5a6b7a;
  --line: #e4eaf0;
  --bg: #f5f7fa;
  --white: #ffffff;
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 12px 40px rgba(20, 54, 82, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Typography */
h1, h2, h3, .display {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--blue-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: .75rem;
}

.lead { color: var(--muted); font-size: 1.05rem; max-width: 36rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }
.btn-dark { background: var(--blue); color: var(--white); }
.btn-dark:hover { background: var(--blue-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  padding-inline: 0;
}
.btn-ghost::after { content: '→'; margin-left: .4rem; transition: margin .25s; }
.btn-ghost:hover::after { margin-left: .7rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 24px rgba(20,54,82,.06);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  background: transparent;
}
.logo img {
  height: 48px;
  width: auto;
  background: transparent;
  mix-blend-mode: normal;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}
.nav a:hover,
.nav a.active { color: var(--blue); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--green);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch a {
  padding: .35rem .55rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.lang-switch a.active {
  background: var(--blue);
  color: var(--white);
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue);
  transition: .25s;
}

/* Hero / Slider */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: var(--blue-dark);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
}
.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #143652, #1e4e79 50%, #2d5a3a);
  transform: scale(1.05);
  transition: transform 8s linear;
  overflow: hidden;
}
.hero-slide .hero-bg picture,
.hero-slide .hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15,28,40,.72) 0%, rgba(30,78,121,.42) 55%, rgba(15,28,40,.28) 100%),
    linear-gradient(to top, rgba(15,28,40,.55), transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 0 5.5rem;
  color: var(--white);
}
.hero-brand {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .95;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(24px);
}
.hero-slide.active .hero-brand {
  animation: rise .8s var(--ease) .15s forwards;
}
.hero-brand span { color: var(--green); }
.hero h1,
.hero .hero-slide-title {
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: .85rem;
  opacity: 0;
  transform: translateY(24px);
  line-height: 1.15;
}
.hero-slide.active h1,
.hero-slide.active .hero-slide-title { animation: rise .8s var(--ease) .3s forwards; }
.hero-content > p:not(.hero-brand):not(.hero-slide-title) {
  color: rgba(255,255,255,.82);
  max-width: 34rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(24px);
}
.hero-slide.active .hero-content > p:not(.hero-brand):not(.hero-slide-title) { animation: rise .8s var(--ease) .45s forwards; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  opacity: 0;
  transform: translateY(24px);
}
.hero-slide.active .hero-actions { animation: rise .8s var(--ease) .6s forwards; }

.hero-nav {
  position: absolute;
  z-index: 3;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .65rem;
  background: rgba(11, 22, 32, .45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s, width .3s, border-radius .3s;
}
.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--green);
  transform: none;
}
.hero-dot:hover { background: rgba(255,255,255,.7); }
.hero-arrows {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(.75rem, 2.5vw, 1.75rem);
  pointer-events: none;
}
.hero-arrow {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  transition: background .3s var(--ease), color .3s, transform .3s var(--ease), box-shadow .3s;
}
.hero-arrow svg {
  width: 22px;
  height: 22px;
  display: block;
}
.hero-arrow:hover {
  background: var(--green);
  color: var(--ink);
  transform: scale(1.06);
  box-shadow: 0 12px 34px rgba(144,197,61,.35);
}
.hero-arrow:active { transform: scale(.96); }
.hero-arrow:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section { padding: 5.5rem 0; }
.section-alt {
  background:
    linear-gradient(180deg, #f3f6f9 0%, #eef3f7 100%);
}
.section-head {
  margin-bottom: 2.75rem;
  max-width: 40rem;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-head.center .lead { margin-inline: auto; }

/* Page hero (inner) */
.page-hero {
  margin-top: var(--header-h);
  padding: 4.5rem 0 3.25rem;
  background:
    linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #2d6a4f 160%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: auto -10% -40% auto;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(144,197,61,.25), transparent 70%);
}
.page-hero h1 { color: var(--white); position: relative; }
.page-hero p { color: rgba(255,255,255,.8); margin-top: .75rem; max-width: 36rem; position: relative; }

/* Grid cards — interaction containers only */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.service-item,
.project-item,
.blog-item,
.ref-item {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.service-item:hover,
.project-item:hover,
.blog-item:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-item .num {
  font-family: 'Syne', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: .85rem;
}
.service-item h3,
.project-item h3,
.blog-item h3 { margin-bottom: .5rem; }
.service-item p,
.project-item p,
.blog-item p,
.ref-item p {
  color: var(--muted);
  font-size: .95rem;
}
.thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  margin: -1.5rem -1.5rem 1.25rem;
  background: var(--bg);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.project-item:hover .thumb img,
.blog-item:hover .thumb img { transform: scale(1.05); }

.ref-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
}
.ref-logo {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
}
.ref-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* About */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: var(--blue-dark);
  overflow: hidden;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 0;
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
.about-copy .prose { margin-top: 1.15rem; }
.mv-band {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.mv-grid-lg {
  gap: 1.5rem;
}
.mv-box {
  padding: 1.75rem 1.6rem;
  border-left: 4px solid var(--green);
  background: var(--bg);
  min-height: 160px;
}
.mv-grid-lg .mv-box {
  padding: 2.25rem 2rem;
  min-height: 200px;
  background: linear-gradient(160deg, #f4f7fa 0%, #eef3f7 100%);
}
.mv-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: .65rem;
}
.mv-box h3 {
  margin-bottom: .75rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}
.mv-grid-lg .mv-box h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.mv-box p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 36ch;
}
.mv-grid-lg .mv-box p {
  font-size: 1.08rem;
  max-width: none;
}

.prose { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose h2, .prose h3 { margin: 1.5rem 0 .75rem; color: var(--blue-dark); }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
}
.contact-info li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-info strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: .35rem;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: .4rem;
  color: var(--blue-dark);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,78,121,.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.alert {
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  font-size: .95rem;
}
.alert-success { background: #eef8e0; color: #3d6b12; border: 1px solid #cfe8a8; }
.alert-error { background: #fdecec; color: #8a1f1f; border: 1px solid #f5c2c2; }

/* CTA */
.cta {
  padding: 4.5rem 0;
  background:
    linear-gradient(120deg, var(--blue-dark), var(--blue) 60%, #1a5a3a);
  color: var(--white);
  text-align: center;
}
.cta h2 { color: var(--white); margin-bottom: .75rem; }
.cta p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; max-width: 32rem; margin-inline: auto; }

/* Footer */
.site-footer {
  background: #0b1620;
  color: rgba(255,255,255,.72);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p { max-width: 28ch; font-size: .95rem; }
.footer-col h4 {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  padding: .3rem 0;
  font-size: .92rem;
  color: rgba(255,255,255,.65);
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
}

.prose ul { margin: 1rem 0 1rem 1.2rem; color: var(--muted); }
.prose li { margin: .35rem 0; list-style: disc; }
.prose strong { color: var(--blue-dark); font-weight: 600; }

.breadcrumbs {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .55rem;
  list-style: none;
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: .55rem;
  opacity: .5;
}
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs [aria-current="page"] { color: var(--white); }

.aside-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--blue-dark);
}
.detail-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.footer-grid-4 {
  grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
}
.footer-heading {
  font-family: 'Syne', sans-serif;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.footer-nap {
  margin-top: 1rem;
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
}
/* Contact map */
.map-section .map-frame {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--white);
  line-height: 0;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: min(450px, 55vh);
  border: 0;
}

/* Floating action buttons */
.fab-bar {
  position: fixed;
  z-index: 90;
  inset: auto 1.1rem 1.1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.fab-left {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  pointer-events: auto;
}
.fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 28, 40, .22);
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  pointer-events: auto;
  color: var(--white);
  text-decoration: none;
  background: var(--blue);
}
.fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 32px rgba(15, 28, 40, .28);
}
.fab-phone { background: var(--blue); color: var(--white); }
.fab-phone:hover { background: var(--blue-dark); color: var(--white); }
.fab-map { background: var(--blue); color: var(--white); }
.fab-map:hover { background: var(--blue-dark); }
.fab-wa { background: var(--blue); color: var(--white); }
.fab-wa:hover { background: var(--blue-dark); color: var(--white); }
.fab-top {
  background: var(--blue-dark);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .25s;
}
.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.fab-top:hover { background: var(--green); color: var(--ink); }
.fab[hidden] { display: none !important; }

/* Detail page */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}
.detail-cover {
  aspect-ratio: 21/9;
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--bg);
}
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-gallery { margin-bottom: 2rem; }
.project-gallery-main {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
  margin-bottom: .85rem;
}
.project-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .55rem;
}
.gallery-thumb {
  position: relative;
  border: 2px solid var(--line);
  padding: 0;
  background: var(--bg);
  cursor: pointer;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--green); }
.thumb-cover {
  position: absolute;
  left: .35rem;
  bottom: .35rem;
  background: var(--green);
  color: var(--ink);
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .35rem;
}
.side-list a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--muted);
}
.side-list a:hover { color: var(--blue); }

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* Section head with view-all */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}
.section-head-row .lead { margin-top: .5rem; }
.section-head-row .head-link {
  flex-shrink: 0;
  white-space: nowrap;
  align-self: center;
}

/* Home services showcase */
.services-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
  overflow: hidden;
}
.service-tile:hover {
  border-color: var(--green);
  border-top-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-tile-num {
  font-family: 'Syne', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.service-tile h3 {
  font-size: 1.05rem;
  margin-bottom: .55rem;
  padding-right: 1.5rem;
}
.service-tile p {
  color: var(--muted);
  font-size: .92rem;
  flex: 1;
}
.service-tile-go {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  color: var(--blue);
  font-size: 1.1rem;
  opacity: .45;
  transition: opacity .25s, transform .25s var(--ease);
}
.service-tile:hover .service-tile-go {
  opacity: 1;
  transform: translateX(4px);
  color: var(--green-dark);
}

/* Horizontal rails */
.rail-wrap {
  position: relative;
  margin-top: .25rem;
}
.rail {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .35rem max(1.25rem, calc((100% - 1140px) / 2 + 1.25rem)) 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.rail.is-dragging { cursor: grabbing; user-select: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 min(320px, 78vw);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.rail-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.rail-refs .rail-card {
  flex-basis: min(280px, 72vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.rail-refs .ref-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 1rem;
}
.rail-refs h3 { margin-bottom: .4rem; }
.rail-refs p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: .75rem;
}
.thumb-fallback {
  object-fit: contain !important;
  padding: 2rem;
  background: #0b1620;
}
.rail-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-dark);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15,28,40,.1);
  transition: background .25s, color .25s, border-color .25s;
}
.rail-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.rail-prev { left: max(.5rem, calc((100% - 1140px) / 2 - .25rem)); }
.rail-next { right: max(.5rem, calc((100% - 1140px) / 2 - .25rem)); }
.rail-view-all-mobile {
  display: none;
}

/* Compact rail card internals */
.rail-card.project-item,
.rail-card.blog-item {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.rail-card.project-item .thumb,
.rail-card.blog-item .thumb {
  margin: 0;
  aspect-ratio: 16 / 10;
}
.rail-card.project-item h3,
.rail-card.blog-item h3 {
  margin: 1rem 1.15rem .4rem;
  font-size: 1.05rem;
  line-height: 1.35;
}
.rail-card.project-item p,
.rail-card.blog-item p {
  margin: 0 1.15rem 1.15rem;
  font-size: .9rem;
  line-height: 1.5;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Tablet */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .services-showcase { grid-template-columns: repeat(2, 1fr); }
  .about-split,
  .contact-layout,
  .detail-layout,
  .footer-grid,
  .footer-grid-4 { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 16 / 10; }
  .hero-arrow {
    width: 46px;
    height: 46px;
  }
  .hero-arrow svg {
    width: 18px;
    height: 18px;
  }
  .section-head-row { align-items: flex-start; }
  .rail-btn { display: none; }
  .detail-cover { aspect-ratio: 16/9; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-h: 68px; }
  .container { width: min(1140px, calc(100% - 1.5rem)); }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: .35s var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a.active::after { display: none; }
  .grid-3, .grid-2, .mv-grid, .services-showcase { grid-template-columns: 1fr; }
  .section { padding: 3.25rem 0; }
  .page-hero { padding: 3.25rem 0 2.5rem; }
  .hero-content { padding: 2.5rem 0 4rem; min-height: calc(100svh - var(--header-h)); }
  .hero-brand { margin-bottom: .75rem; }
  .logo img { height: 40px; }
  .header-actions .btn { display: none; }
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    margin-bottom: 1rem;
    padding-inline: .15rem;
  }
  .section-head-row h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
    line-height: 1.2;
  }
  .section-head-row .lead {
    font-size: .9rem;
    margin-top: .25rem;
    max-width: 36ch;
  }
  .section-head-row .head-link {
    display: none;
  }
  .rail-wrap {
    margin-inline: 0;
  }
  .rail-wrap::before,
  .rail-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1.1rem;
    width: 1.25rem;
    z-index: 2;
    pointer-events: none;
  }
  .rail-wrap::before {
    left: 0;
    background: linear-gradient(90deg, var(--white), transparent);
  }
  .rail-wrap::after {
    right: 0;
    background: linear-gradient(270deg, var(--white), transparent);
  }
  .section-alt .rail-wrap::before {
    background: linear-gradient(90deg, #f3f6f9, transparent);
  }
  .section-alt .rail-wrap::after {
    background: linear-gradient(270deg, #f3f6f9, transparent);
  }
  .rail {
    gap: .75rem;
    padding: .15rem 1.15rem 1rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.15rem;
    justify-content: flex-start;
  }
  .rail::before,
  .rail::after {
    content: none;
    flex: none;
  }
  .rail-card {
    flex: 0 0 min(78vw, 290px);
    scroll-snap-align: start;
    padding: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 28, 40, .07);
    border-color: rgba(15, 28, 40, .08);
  }
  .rail-card:hover {
    transform: none;
  }
  .rail-card.project-item h3,
  .rail-card.blog-item h3 {
    margin: .85rem 1rem .3rem;
    font-size: .98rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rail-card.project-item p,
  .rail-card.blog-item p {
    margin: 0 1rem 1rem;
    font-size: .84rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rail-card.project-item .thumb,
  .rail-card.blog-item .thumb {
    aspect-ratio: 16 / 9;
  }
  .thumb-fallback {
    padding: 1.25rem;
    object-fit: contain !important;
  }
  .rail-refs .rail-card {
    flex: 0 0 min(72vw, 260px);
    flex-direction: row;
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    gap: .85rem;
    padding: .95rem 1rem;
    min-height: 88px;
  }
  .rail-refs .ref-logo {
    width: 52px;
    height: 52px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
  }
  .rail-refs .ref-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .35rem;
  }
  .rail-refs h3 {
    margin: 0 0 .2rem;
    font-size: .95rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rail-refs p {
    margin: 0;
    font-size: .8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rail-refs .btn { display: none; }
  .rail-view-all-mobile {
    display: flex;
    justify-content: center;
    margin: .15rem 0 .25rem;
    padding: 0 1.15rem;
  }
  .rail-view-all-mobile .btn {
    font-weight: 600;
    font-size: .92rem;
    color: var(--blue);
    border: 1px solid rgba(30, 78, 121, .22);
    padding: .55rem 1.15rem;
    border-radius: 999px;
    background: var(--white);
  }
  .rail:has(.rail-card:only-child) {
    justify-content: center;
  }
  .about-split { gap: 1.75rem; }
  .about-visual { aspect-ratio: 4 / 3; }
  .mv-grid-lg .mv-box { padding: 1.5rem 1.25rem; min-height: 0; }
  .service-tile { min-height: 0; }
  .contact-layout { gap: 2rem; }
  .map-frame iframe { height: 280px; }
  .cta { padding: 3.25rem 0; }
  .site-footer { padding: 3rem 0 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
  .fab {
    width: 46px;
    height: 46px;
  }
  .fab-bar {
    inset: auto .75rem .75rem .75rem;
  }
  .detail-layout { gap: 2rem; }
  .mv-grid { gap: 1rem; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .lang-switch a { padding: .3rem .45rem; }
}
