/* 1 Fratech Sàrl — Main Stylesheet */

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

:root {
  --yellow: #F5A800;
  --yellow-light: #FFD166;
  --yellow-pale: #FFF8E6;
  --yellow-deep: #D4900A;
  --ink: #1C2226;
  --ink-soft: #2E3C45;
  --ink-muted: #4A5C68;
  --steel: #5E7080;
  --steel-light: #8A9EAC;
  --rule: #DDE3E8;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F3;
  --bg-blueprint: #F0F4F8;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  border-bottom: 2px solid var(--yellow);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(28,34,38,0.10); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink);
}
.nav-logo-badge {
  width: 32px; height: 32px; background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem; color: var(--ink); border-radius: 4px;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.85rem; font-weight: 500; color: var(--ink-muted);
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--yellow-deep); }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 0.3rem; cursor: pointer;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-muted);
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-dropdown-trigger:hover { color: var(--ink); }
.nav-dropdown-chevron { transition: transform 0.2s; flex-shrink: 0; }
.nav-dropdown:hover .nav-dropdown-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  background: #fff; border-radius: 6px;
  border: 1.5px solid var(--rule);
  box-shadow: 0 8px 32px rgba(28,34,38,0.12);
  min-width: 220px; padding: 0.75rem 0.4rem 0.4rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute; top: 5px; left: 50%;
  width: 10px; height: 10px;
  background: #fff; border-left: 1.5px solid var(--rule); border-top: 1.5px solid var(--rule);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block; padding: 0.55rem 0.85rem;
  font-size: 0.83rem; font-weight: 500; color: var(--ink-muted);
  border-radius: 4px; transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-item:hover { background: var(--yellow-pale); color: var(--ink); }

/* Mobile sub-links */
.mobile-menu-sub {
  display: flex !important; align-items: center; gap: 0.6rem;
  font-size: 1rem !important; font-weight: 500 !important;
  color: var(--steel) !important;
  padding: 0.45rem 0 0.45rem 1.25rem !important;
  border-bottom-color: transparent !important;
}
.mobile-menu-sub svg { color: var(--yellow); flex-shrink: 0; }
.mobile-menu-sub:hover { color: var(--ink) !important; }

.nav-cta {
  background: var(--yellow); color: var(--ink); font-weight: 700;
  font-size: 0.82rem; padding: 0.5rem 1.2rem; border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.nav-cta:hover { background: var(--yellow-deep); transform: translateY(-1px); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px; justify-content: center; align-items: center;
  background: none;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: all 0.3s; border-radius: 1px; }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 99; opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all 0.3s;
  padding: 2rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.mobile-menu.open { opacity: 1; pointer-events: all; transform: none; }
.mobile-menu a {
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
  padding: 0.75rem 0; border-bottom: 1px solid var(--rule);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh; position: relative;
  background: var(--bg); overflow: hidden;
  display: flex; align-items: center;
  padding-top: 64px;
}
.hero-tape {
  position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0px, var(--yellow) 40px, var(--ink) 40px, var(--ink) 42px);
  opacity: 0.15;
}
.hero-blueprint {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,79,138,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,79,138,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-photo {
  position: absolute; right: 0; top: 64px; bottom: 0; width: 52%;
  background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1200&q=80&fit=crop&crop=center') center/cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  opacity: 0.55;
}
.hero-photo-overlay {
  position: absolute; right: 0; top: 64px; bottom: 0; width: 52%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(245,168,0,0.08) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 5rem 2rem;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  color: var(--steel); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-bar { width: 24px; height: 2px; background: var(--yellow); }
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900; line-height: 1.0; letter-spacing: -0.03em;
  color: var(--ink); max-width: 640px; margin-bottom: 1.5rem;
}
.hero-title em { font-style: normal; color: var(--yellow-deep); }
.hero-desc {
  font-size: 1.05rem; line-height: 1.7; color: var(--ink-muted);
  max-width: 480px; margin-bottom: 2.5rem; font-weight: 400;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 0.9rem; padding: 0.85rem 1.8rem;
  border-radius: 4px; transition: all 0.25s; letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--yellow-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,168,0,0.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--rule); color: var(--ink-muted);
  font-weight: 600; font-size: 0.9rem; padding: 0.85rem 1.6rem;
  border-radius: 4px; transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.hero-stats { display: flex; gap: 3rem; flex-wrap: wrap; }
.hero-stat-num {
  font-size: 2.2rem; font-weight: 900; letter-spacing: -0.03em; color: var(--ink);
  line-height: 1;
}
.hero-stat-num span { color: var(--yellow-deep); }
.hero-stat-label {
  font-size: 0.75rem; color: var(--steel); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.65rem; color: var(--steel); letter-spacing: 0.1em;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{transform:scaleY(0.4);opacity:0.5;} 50%{transform:scaleY(1);opacity:1;} }

/* ── SECTION COMMON ── */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.wwwh-label {
  font-family: var(--mono); font-size: 0.65rem; font-weight: 500;
  color: var(--yellow-deep); letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem;
}
.wwwh-label::before { content: ''; display: block; width: 20px; height: 2px; background: var(--yellow); }
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.1; color: var(--ink);
  margin-bottom: 1rem;
}
.section-title em { font-style: normal; color: var(--yellow-deep); }
.section-lead {
  font-size: 1.05rem; line-height: 1.7; color: var(--ink-muted); max-width: 580px;
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── WHY ── */
.why-section { background: var(--bg); overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-photo-wrap { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.why-photo {
  width: 100%; height: 100%;
  background: url('https://www.1fratech.ch/assets/imgs/unsplash/direction-travaux.jpg') center/cover no-repeat;
  transform: scale(1.02); transition: transform 0.8s ease;
}
.why-photo-wrap:hover .why-photo { transform: scale(1.06); }
.why-photo-accent {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: var(--yellow); color: var(--ink);
  padding: 1rem 1.5rem; border-radius: 4px;
  font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em;
}
.why-photo-accent span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.1rem; }
.why-cards { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.why-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border: 1.5px solid var(--rule); border-radius: 4px;
  background: var(--bg); transition: border-color 0.25s, box-shadow 0.25s;
}
.why-card:hover { border-color: var(--yellow); box-shadow: 0 4px 20px rgba(245,168,0,0.12); }
.why-card-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--yellow-pale); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow-deep);
}
.why-card-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 0.25rem; }
.why-card p { font-size: 0.85rem; line-height: 1.6; color: var(--steel); }

/* ── WHO ── */
.who-section { background: var(--bg-alt); }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.who-portrait-wrap { position: relative; }
.who-portrait { width: 100%; aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; position: relative; }
.who-portrait-img {
  width: 100%; height: 100%;
  background: url('../imgs/directeur.jpeg') center top/cover no-repeat;
}
.who-portrait-border {
  position: absolute; inset: -8px; border: 2px solid var(--yellow);
  border-radius: 6px; pointer-events: none; z-index: 0;
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
}
.who-portrait-tag {
  position: absolute; bottom: 0; right: 0;
  background: var(--ink); color: var(--bg); padding: 0.85rem 1.25rem; border-radius: 4px 0 4px 0;
  z-index: 1;
}
.who-portrait-tag-name { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; }
.who-portrait-tag-role { font-size: 0.72rem; color: var(--yellow); font-weight: 500; margin-top: 0.2rem; letter-spacing: 0.04em; text-transform: uppercase; }
.who-director-bio { font-size: 0.88rem; line-height: 1.75; color: var(--steel); margin-top: 1.25rem; max-width: 420px; border-left: 2px solid var(--yellow); padding-left: 1rem; text-align: justify; hyphens: auto; }
.who-values { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.who-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; border-radius: 100px;
  border: 1.5px solid var(--rule); background: var(--bg);
  font-size: 0.8rem; font-weight: 600; color: var(--ink-muted);
  transition: all 0.2s;
}
.who-badge:hover { border-color: var(--yellow); background: var(--yellow-pale); color: var(--ink); }
.who-badge::before { content: ''; width: 6px; height: 6px; background: var(--yellow); border-radius: 50%; }
.who-regions { margin-top: 2rem; padding: 1.5rem; background: var(--bg); border-radius: 4px; border: 1.5px solid var(--rule); }
.who-regions-title { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-bottom: 1rem; }
.who-region-list { display: flex; flex-direction: column; gap: 0.5rem; }
.who-region { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.who-region-dot { width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; flex-shrink: 0; }

/* ── WHAT ── */
.what-section { background: var(--bg); }
.what-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.what-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.what-card {
  position: relative; padding: 2rem; border-radius: 4px;
  border: 1.5px solid var(--rule); background: var(--bg);
  transition: all 0.3s; overflow: hidden;
}
.what-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.what-card:hover { box-shadow: 0 8px 32px rgba(28,34,38,0.1); transform: translateY(-4px); border-color: transparent; }
.what-card:hover::before { transform: scaleX(1); }
.what-card-num { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--yellow-deep); text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; }
.what-card-icon { width: 44px; height: 44px; background: var(--yellow-pale); border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; color: var(--yellow-deep); }
.what-card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.what-card h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.what-card p { font-size: 0.85rem; line-height: 1.65; color: var(--steel); }

/* ── PHOTO STRIP ── */
.photo-strip { position: relative; height: 380px; overflow: hidden; background: var(--ink); }
.photo-strip-img {
  position: absolute; inset: -40px;
  background: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&q=80&fit=crop&crop=center') center/cover no-repeat;
  opacity: 0.35; transition: transform 0.1s linear;
}
.photo-strip-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(28,34,38,0.92) 0%, rgba(28,34,38,0.6) 100%); }
.photo-strip-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.photo-strip-quote { font-size: clamp(1.2rem, 3vw, 2rem); font-weight: 700; color: var(--bg); line-height: 1.4; max-width: 800px; letter-spacing: -0.02em; }
.photo-strip-quote strong { color: var(--yellow); }
.photo-strip-author { margin-top: 1.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); font-family: var(--mono); letter-spacing: 0.06em; }
.photo-strip-line { width: 40px; height: 2px; background: var(--yellow); margin: 1rem auto; }

/* ── HOW ── */
.how-section { background: var(--bg-alt); }
.how-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.how-timeline { position: relative; }
.how-timeline-line { position: absolute; top: 28px; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--yellow) 0%, var(--rule) 100%); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.how-step { text-align: center; padding-top: 0; }
.how-step-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--yellow);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
  color: var(--yellow-deep); position: relative; z-index: 1;
  transition: all 0.3s;
}
.how-step:hover .how-step-circle { background: var(--yellow); color: var(--ink); }
.how-step-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.5rem; }
.how-step h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.how-step p { font-size: 0.83rem; line-height: 1.6; color: var(--steel); }
.how-connector { display: flex; justify-content: center; align-items: center; margin-top: 3rem; gap: 1.5rem; flex-wrap: wrap; }
.how-connector-item { font-size: 0.82rem; color: var(--steel); display: flex; align-items: center; gap: 0.4rem; }
.how-connector-item svg { width: 14px; height: 14px; fill: none; stroke: var(--yellow-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── PORTFOLIO ── */
.portfolio-section { background: var(--bg); }
.portfolio-header { margin-bottom: 3rem; }
.slider-wrapper { position: relative; overflow: hidden; }
.slider-track { display: flex; gap: 1.25rem; transition: transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.slide {
  flex: 0 0 calc(33.333% - 1rem); min-width: 0;
  position: relative; border-radius: 4px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-alt); cursor: pointer;
  border: 1.5px solid var(--rule); transition: border-color 0.3s;
}
.slide:hover { border-color: var(--yellow); }
.slide-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.8s ease; }
.slide:hover .slide-photo { transform: scale(1.06); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,34,38,0.85) 0%, transparent 60%); }
.slide-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
.slide-tag {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: var(--yellow); color: var(--ink);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 2px; margin-bottom: 0.5rem;
}
.slide-content h3 { font-size: 1rem; font-weight: 700; color: var(--bg); margin-bottom: 0.2rem; }
.slide-loc { font-size: 0.78rem; color: rgba(255,255,255,0.6); font-family: var(--mono); }
.slide-clickable { cursor: pointer; }
.slide-cta { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.05em; opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
.slide-clickable:hover .slide-cta { opacity: 1; transform: translateY(0); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.slider-btn {
  width: 40px; height: 40px; border-radius: 4px;
  border: 1.5px solid var(--rule); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: all 0.2s;
}
.slider-btn:hover { border-color: var(--yellow); background: var(--yellow-pale); }
.slider-dots { display: flex; gap: 0.4rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); cursor: pointer; transition: all 0.2s; border: none; }
.slider-dot.active { background: var(--yellow-deep); transform: scale(1.3); }

/* ── CTA ── */
.cta-section {
  background: var(--ink); padding: 5rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -2px; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0,var(--yellow) 40px, transparent 40px, transparent 60px);
}
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.03em; color: var(--bg); margin-bottom: 1rem; }
.cta-section h2 em { font-style: normal; color: var(--yellow); }
.cta-section p { font-size: 1rem; color: rgba(255,255,255,0.55); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.7; }
.btn-primary-dark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 0.9rem; padding: 1rem 2rem;
  border-radius: 4px; transition: all 0.25s;
}
.btn-primary-dark:hover { background: var(--yellow-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,168,0,0.4); }

/* ── CONTACT ── */
.contact-section { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info-block h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.75rem; color: var(--ink); }
.contact-info-block p { font-size: 0.9rem; line-height: 1.7; color: var(--steel); margin-bottom: 2rem; }
.contact-detail { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-detail-icon { width: 36px; height: 36px; background: var(--yellow-pale); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--yellow-deep); }
.contact-detail-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-detail-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); font-weight: 600; margin-bottom: 0.15rem; }
.contact-detail-value { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.contact-detail-value a { color: inherit; }
.contact-detail-value a:hover { color: var(--yellow-deep); }
.director-row { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.25rem; background: var(--bg-alt); border-radius: 4px; border: 1.5px solid var(--rule); margin-top: 1.5rem; margin-bottom: 1.5rem; }
.director-avatar { width: 44px; height: 44px; border-radius: 4px; flex-shrink: 0; background: url('../imgs/avatar.jpg') center/cover no-repeat; }
.director-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.director-role { font-size: 0.75rem; color: var(--steel); margin-top: 0.1rem; }
.social-row { display: flex; gap: 0.6rem; }
.social-btn { width: 36px; height: 36px; border-radius: 4px; border: 1.5px solid var(--rule); background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--steel); transition: all 0.2s; }
.social-btn:hover { border-color: var(--yellow); background: var(--yellow-pale); color: var(--ink); }
.social-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ── FORM ── */
.contact-form { background: var(--bg); border: 1.5px solid var(--rule); border-radius: 4px; padding: 2.5rem; }
.contact-form-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.contact-form-sub { font-size: 0.82rem; color: var(--steel); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.7rem 1rem; border-radius: 4px;
  border: 1.5px solid var(--rule); background: var(--bg-alt);
  font-family: var(--font); font-size: 0.88rem; color: var(--ink);
  transition: border-color 0.2s, background 0.2s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--yellow); background: var(--bg); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E7080' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-submit {
  width: 100%; padding: 0.9rem 1.5rem;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 0.9rem; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: all 0.25s; margin-top: 0.5rem;
}
.form-submit:hover { background: var(--yellow-deep); box-shadow: 0 4px 16px rgba(245,168,0,0.3); }
.form-submit.sending { opacity: 0.7; pointer-events: none; }
.form-alert { padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.form-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* ── MEMBRES ── */
.membres-section {
  background: #2A2E30; padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
}
.membres-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0,var(--yellow) 40px, transparent 40px, transparent 60px);
}

.membres-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.membres-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); white-space: nowrap; }
.membres-logos { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.membres-logo-link { display: flex; align-items: center; opacity: 0.6; transition: opacity 0.2s; }
.membres-logo-link:hover { opacity: 1; }
.membres-logo-link img { height: 42px; width: auto; }

/* ── FOOTER ── */
.footer { background: var(--ink); border-top: 3px solid var(--yellow); padding: 2.5rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo-badge { width: 28px; height: 28px; background: var(--yellow); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.75rem; color: var(--ink); }
.footer-logo-name { font-weight: 700; font-size: 0.9rem; color: var(--bg); }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 0.3rem; }
.footer-links { display: flex; gap: 0.75rem 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { width: 32px; height: 32px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); transition: all 0.2s; }
.footer-social a:hover { border-color: var(--yellow); color: var(--yellow); }
.footer-social svg { width: 14px; height: 14px; fill: currentColor; }
.footer-top { width: 32px; height: 32px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); transition: all 0.2s; }
.footer-top:hover { border-color: var(--yellow); color: var(--yellow); }
.footer-bottom {
  max-width: 1200px; margin: 1.25rem auto 0;
  padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.swiss-made {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; font-weight: 600; font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-credits {
  font-size: 0.72rem; color: rgba(255,255,255,0.22);
}
.footer-credits a { color: rgba(255,255,255,0.4); text-decoration: underline; transition: color 0.2s; }
.footer-credits a:hover { color: var(--yellow); }
.footer-legal-links { font-size: 0.78rem; color: rgba(255,255,255,0.45); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(255,255,255,0.45); text-decoration: underline; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--yellow); }
.footer-legal-links span { opacity: 0.4; }

/* ── LEGAL PAGES ─────────────────────────────────────────────────────────── */
.legal-hero { background: var(--ink); padding: calc(64px + 3.5rem) 0 2.5rem; border-bottom: 3px solid var(--yellow); }
body.has-admin-bar .legal-hero { padding-top: calc(100px + 3.5rem); }
.legal-back { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.55); font-size: 0.82rem; text-decoration: none; margin-bottom: 1.5rem; transition: color 0.2s; }
.legal-back:hover { color: var(--yellow); }
.legal-back svg { flex-shrink: 0; }
.legal-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: #fff; margin: 0 0 0.5rem; }
.legal-updated { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; font-family: var(--mono); }
.legal-body { padding: 3rem 0 5rem; max-width: 800px; }
.legal-section { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0 0 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.legal-section p { color: var(--steel); line-height: 1.75; margin: 0 0 0.75rem; font-size: 0.95rem; }
.legal-section ul { color: var(--steel); line-height: 1.75; font-size: 0.95rem; padding-left: 1.5rem; margin: 0 0 0.75rem; }
.legal-section ul li { margin-bottom: 0.4rem; }
.legal-section a { color: var(--ink-soft); text-decoration: underline; }
.legal-section a:hover { color: var(--yellow-deep); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 0.75rem; }
.legal-table th, .legal-table td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--rule); }
.legal-table th { color: var(--ink); font-weight: 600; width: 38%; background: var(--bg-alt); }
.legal-table td { color: var(--steel); }
.legal-table a { color: var(--ink-soft); text-decoration: underline; }
.legal-note { font-size: 0.82rem !important; color: var(--steel-light) !important; font-style: italic; }

/* ── LOADER ── */
#loader { position: fixed; inset: 0; background: var(--bg); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
#loader.visible { opacity: 1; visibility: visible; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-badge { width: 52px; height: 52px; background: var(--yellow); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; color: var(--ink); animation: loaderPulse 1s ease-in-out infinite alternate; margin-bottom: 1rem; }
@keyframes loaderPulse { from { transform: scale(0.9); } to { transform: scale(1.0); } }
.loader-text { font-size: 0.72rem; color: var(--steel); font-family: var(--mono); letter-spacing: 0.1em; }

/* ── LANG SWITCHER ── */
.lang-switcher { display: flex; gap: 0.3rem; align-items: center; }
.lang-btn { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 3px; border: 1.5px solid var(--rule); background: transparent; color: var(--steel); transition: all 0.2s; letter-spacing: 0.04em; cursor: pointer; text-decoration: none; }
.lang-btn.active, .lang-btn:hover { border-color: var(--yellow); color: var(--ink); background: var(--yellow-pale); }

/* ── ADMIN BAR ── */
.admin-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  height: 36px;
  background: #1a1a1a;
  border-bottom: 2px solid var(--yellow);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  font-size: 0.72rem; font-family: var(--font);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.admin-bar-left, .admin-bar-right { display: flex; align-items: center; gap: 0.25rem; }
.admin-bar-logo {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--yellow); font-weight: 700; font-size: 0.75rem;
  text-decoration: none; padding: 0 0.6rem; height: 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
  margin-right: 0.25rem;
}
.admin-bar-logo i { font-size: 0.8rem; }
.admin-bar-link {
  display: flex; align-items: center; gap: 0.35rem;
  color: rgba(255,255,255,0.65); text-decoration: none;
  padding: 0.25rem 0.6rem; border-radius: 3px;
  transition: all 0.15s; white-space: nowrap;
}
.admin-bar-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.admin-bar-badge {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.6rem; border-radius: 3px; font-weight: 600;
}
.admin-bar-badge--warn {
  background: rgba(245,168,0,0.15);
  color: var(--yellow);
  border: 1px solid rgba(245,168,0,0.3);
  animation: adminWarnPulse 2s ease-in-out infinite;
}
@keyframes adminWarnPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.admin-bar-user {
  display: flex; align-items: center; gap: 0.35rem;
  color: rgba(255,255,255,0.45); padding: 0.25rem 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.08); margin-left: 0.25rem;
}
.admin-bar-logout {
  display: flex; align-items: center; gap: 0.35rem;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); font-size: 0.72rem;
  padding: 0.25rem 0.5rem; border-radius: 3px; transition: all 0.15s;
  font-family: var(--font);
}
.admin-bar-logout:hover { background: rgba(220,38,38,0.15); color: #f87171; }
body.has-admin-bar .nav { top: 36px; }
body.has-admin-bar #loader { top: 36px; }
@media (max-width: 640px) {
  .admin-bar-link span, .admin-bar-link:not(.admin-bar-logo) { display: none; }
  .admin-bar-link { padding: 0.25rem 0.4rem; }
  .admin-bar-logo span { display: none; }
}

/* ── WHAT CARDS — linked ── */
.what-card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.what-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(245,168,0,0.12); }
.what-card-arrow {
  margin-top: auto; padding-top: 1.25rem;
  color: var(--yellow); opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-4px);
}
.what-card:hover .what-card-arrow { opacity: 1; transform: translateX(0); }

/* ── SERVICE PAGES ── */
.svc-hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: flex-end;
  padding-top: 80px; overflow: hidden;
  background: var(--ink);
}
.svc-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.45);
}
.svc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28,34,38,0.3) 0%, rgba(28,34,38,0.92) 100%);
  pointer-events: none;
}
.svc-hero-blueprint {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(200,200,200,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,200,200,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.svc-hero-tape {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0, var(--yellow) 40px, transparent 40px, transparent 60px);
}
.svc-hero-content {
  position: relative; z-index: 1;
  padding-bottom: 4rem; color: #fff;
}
.svc-back {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--yellow); opacity: 0.8;
  margin-bottom: 1.25rem; transition: opacity 0.2s;
}
.svc-back:hover { opacity: 1; }
.svc-hero-content .wwwh-label { color: var(--yellow); margin-bottom: 1rem; }
.svc-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 1.25rem; color: #fff;
}
.svc-hero-intro {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,0.75); max-width: 640px;
  margin-bottom: 2rem;
}

/* Scope + benefits two-column */
.svc-scope-section { background: var(--bg-alt); }
.svc-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: start;
}
.svc-col-left .section-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 2rem; }
.svc-scope-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.svc-scope-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff; border-radius: 6px;
  border-left: 3px solid var(--yellow);
  font-size: 0.93rem; line-height: 1.5;
}
.svc-scope-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  color: var(--yellow); margin-top: 1px;
}
.svc-scope-icon svg { width: 100%; height: 100%; }

/* Why / benefits box */
.svc-why-box {
  background: var(--ink); color: #fff;
  border-radius: 8px; padding: 2rem;
}
.svc-why-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--yellow); margin-bottom: 1.5rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: var(--mono);
}
.svc-benefit {
  display: flex; gap: 1rem; align-items: flex-start;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.svc-benefit:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.svc-benefit-num {
  font-family: var(--mono); font-size: 0.75rem;
  color: var(--yellow); opacity: 0.7;
  flex-shrink: 0; padding-top: 2px;
}
.svc-benefit strong { display: block; font-size: 0.93rem; margin-bottom: 0.3rem; }
.svc-benefit p { font-size: 0.87rem; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* Process steps */
.svc-process-section { background: var(--bg); }
.svc-process-section .section-title { margin-bottom: 3rem; }
.svc-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.svc-step {
  position: relative;
  background: var(--bg-alt);
  border-radius: 8px; padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--yellow);
}
.svc-step-num {
  font-family: var(--mono); font-size: 2.5rem; font-weight: 700;
  color: var(--yellow); opacity: 0.2; line-height: 1;
  margin-bottom: 0.75rem;
}
.svc-step h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.6rem; }
.svc-step p { font-size: 0.87rem; color: var(--steel); line-height: 1.65; }
.svc-step-connector { display: none; }

/* Inline CTA */
.svc-cta-inline {
  background:
    linear-gradient(to right, rgba(255,248,230,0.92) 0%, rgba(255,248,230,0.80) 100%),
    url('../imgs/unsplash/cta-chantier.jpg') center/cover no-repeat;
  border-bottom: 2px solid var(--yellow);
  padding: 3rem 0;
  position: relative;
}
.svc-cta-inline::before {
  content: ''; position: absolute; top: -2px; left: 0; right: 0; height: 4px;
  
}
.svc-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.svc-cta-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.4rem; }
.svc-cta-text { color: var(--steel); font-size: 0.93rem; }

/* Other services */
.svc-others-section { background: var(--bg-alt); }
.svc-others-section .section-title { margin-bottom: 2rem; }
.svc-others-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.svc-other-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 1rem 1.25rem;
  background: #fff; border-radius: 6px;
  border: 1.5px solid var(--rule);
  font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.svc-other-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 4px 16px rgba(245,168,0,0.1);
  transform: translateY(-2px);
}
.svc-other-card svg { color: var(--yellow); flex-shrink: 0; }

/* Global CTA banner */
.svc-global-cta {
  position: relative; background: var(--ink);
  padding: 5rem 0; text-align: center; overflow: hidden;
}
.svc-global-cta::before {
  content: ''; position: absolute; top: -2px; left: 0; right: 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0,var(--yellow) 40px, transparent 40px, transparent 60px);
}
.svc-global-cta .svc-hero-overlay {
  background: linear-gradient(135deg, rgba(245,168,0,0.08) 0%, transparent 60%);
}
.svc-global-cta-inner { position: relative; z-index: 1; }
.svc-global-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900;
  color: #fff; margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .what-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-timeline-line { display: none; }
  .svc-steps { grid-template-columns: repeat(2, 1fr); }
  .svc-others-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero-photo, .hero-photo-overlay { display: none; }
  .why-grid, .who-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .what-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .slide { flex: 0 0 calc(100% - 0px); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-links { gap: 0.5rem 1.25rem; }
  .who-portrait { aspect-ratio: 4/3; }
  .section { padding: 4rem 0; }
  .hero-content { padding: 3rem 1.5rem 5rem; }
  .svc-two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-steps { grid-template-columns: 1fr; }
  .svc-others-grid { grid-template-columns: 1fr; }
  .svc-cta-inner { flex-direction: column; text-align: center; }
  .svc-hero { min-height: 60vh; }
}

/* ── Portfolio Modal ──────────────────────────────────────────────────── */
.pf-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.pf-modal[hidden] { display: none; }
.pf-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(4,8,12,0.9);
  backdrop-filter: blur(6px);
}

/* Box — full-bleed image */
.pf-modal-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  background: #060a0e;
  animation: pfSlideIn 0.35s cubic-bezier(0.16,1,0.3,1);
}
@keyframes pfSlideIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

/* Images fill the box */
.pf-gallery-track { position: absolute; inset: 0; }
.pf-gallery-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s ease;
}
.pf-gallery-img.active { opacity: 1; }

/* Bottom-to-top gradient — subtle at rest, deeper on hover */
.pf-modal-vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  transition: opacity 0.4s ease;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.35) 28%,
    transparent 55%
  );
}
.pf-modal-box:hover .pf-modal-vignette {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.65) 38%,
    rgba(0,0,0,0.1) 65%,
    transparent 100%
  );
}

/* Close — top right */
.pf-modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}
.pf-modal-close:hover { background: var(--yellow); border-color: var(--yellow); color: #000; }

/* Prev / Next */
.pf-gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.4); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(4px);
}
.pf-gallery-btn:hover { background: rgba(0,0,0,0.7); border-color: rgba(255,255,255,0.5); }
.pf-gallery-prev { left: 1rem; }
.pf-gallery-next { right: 1rem; }

/* Text overlay — pinned to bottom */
.pf-modal-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 3; padding: 1.75rem 2rem 2rem;
}
.pf-modal-info-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.55rem;
}
.pf-modal-tag {
  display: inline-block; padding: 0.18rem 0.6rem;
  background: rgba(255,180,0,0.2); color: var(--yellow);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px;
}
.pf-modal-title {
  font-size: 1.65rem; font-weight: 800; color: #fff; line-height: 1.2;
  margin-bottom: 0.4rem; text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.pf-modal-loc {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.6); font-family: var(--mono);
  margin-bottom: 0.5rem;
}

.pf-modal-desc {
  font-size: 0.88rem; line-height: 1.65; color: rgba(255,255,255,0.78); max-width: 820px;
  max-height: 0; opacity: 0; 
  transition: max-height 0.4s ease, opacity 0.4s ease;
}
.pf-modal-box:hover .pf-modal-desc { max-height: 8rem; opacity: 1; }

/* Dots — inline right with tag */
.pf-gallery-dots { display: flex; gap: 0.35rem; align-items: center; }
.pf-gallery-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.pf-gallery-dot.active { background: var(--yellow); transform: scale(1.4); }

@media (max-width: 768px) {
  .pf-modal { padding: 0; align-items: flex-end; }
  .pf-modal-box { border-radius: 16px 16px 0 0; max-width: 100%; aspect-ratio: unset; height: 80dvh; }
  .pf-modal-title { font-size: 1.25rem; }
  .pf-modal-info { padding: 1.25rem 1.25rem 2.5rem; }
}
