/* SkyMedia — feuille de styles */
:root {
  --navy: #0a1322;
  --navy-2: #0e1a2e;
  --ink: #081120;
  --sky: #4cb8f0;
  --blue: #2f8fe8;
  --teal: #6fd9cc;
  --grad: linear-gradient(110deg, #2f8fe8, #4cb8f0 45%, #6fd9cc);

  --bg: var(--navy);
  --text: #eef3fb;
  --muted: #9aa9c2;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.035);
  --accent: var(--sky);

  --r: 20px;
  --max: 1240px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Sections claires */
.light {
  --bg: #f3f6fb;
  --text: #0a1322;
  --muted: #55637f;
  --line: rgba(10, 19, 34, 0.1);
  --card: #ffffff;
  --accent: #1f7fd6;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(76, 184, 240, 0.4); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.2rem); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }
h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.03em;
}
.light h2 em { background: linear-gradient(110deg, #1565c0, #1f9bd6 55%, #17a398); -webkit-background-clip: text; background-clip: text; }
p { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; top: 0; left: 0; z-index: 60; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--grad); background-size: 180% 100%;
  color: var(--ink); font: inherit; font-weight: 700; font-size: 0.98rem; cursor: pointer; white-space: nowrap;
  box-shadow: 0 14px 34px -14px rgba(76, 184, 240, 0.75);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background-position 0.5s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 20px 40px -14px rgba(76, 184, 240, 0.9); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: none; }
.btn-small { padding: 11px 20px; font-size: 0.9rem; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 16px 0 auto 0; z-index: 50; padding: 0 16px; }
.nav-inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 9px 10px 9px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 999px; border: 1px solid transparent; transition: border-color 0.3s;
}
.nav-inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.3s;
  background: rgba(10, 19, 34, 0.78); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.85);
}
.nav.scrolled .nav-inner { border-color: rgba(255, 255, 255, 0.1); }
.nav.scrolled .nav-inner::before { opacity: 1; }

.logo { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: #13233c url("images/logo-icon.png") center / cover no-repeat; }
.logo-text { font-size: 1.16rem; font-weight: 500; letter-spacing: 0.03em; }
.logo-text b { font-weight: 800; color: var(--sky); }

.menu { display: flex; align-items: center; gap: 6px; font-size: 0.93rem; font-weight: 600; }
.menu a:not(.btn) { padding: 9px 15px; border-radius: 999px; color: #b9c5da; transition: color 0.2s, background 0.2s; }
.menu a:not(.btn):hover { color: #fff; }
.menu a.active:not(.btn) { color: #fff; background: rgba(255, 255, 255, 0.08); }
.menu .btn { margin-left: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); cursor: pointer; position: relative; z-index: 2; }
.burger span { display: block; width: 18px; height: 2px; margin: 5px auto; background: #fff; border-radius: 2px; transition: transform 0.25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.500px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.500px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(150px, 20vh, 210px) 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.aurora {
  position: absolute; inset: -20% -10% 30% -10%;
  background:
    radial-gradient(42% 46% at 22% 28%, rgba(47, 143, 232, 0.42), transparent 70%),
    radial-gradient(36% 40% at 78% 18%, rgba(111, 217, 204, 0.22), transparent 70%),
    radial-gradient(40% 40% at 55% 70%, rgba(76, 184, 240, 0.16), transparent 70%);
  filter: blur(30px); animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 10%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 10%, #000 20%, transparent 75%);
}

.hero-inner { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #dbe5f5;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); animation: pulse 2.400s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.06); } }
.hero h1 { max-width: 17ch; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); max-width: 58ch; margin: 30px 0 38px; color: #b4c1d8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(52px, 7vw, 84px); border-top: 1px solid var(--line); }
.facts li { padding: 26px 28px 0 0; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -0.03em; color: #fff; margin-bottom: 4px; }
.facts span { font-size: 0.93rem; color: var(--muted); }

/* Bandeau des réalisations */
.showcase {
  margin-top: clamp(56px, 7vw, 90px); padding: 10px 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.showcase-track { display: flex; gap: 26px; width: max-content; animation: marquee 70s linear infinite; }
.showcase:hover .showcase-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 13px)); } }
.show-card { width: clamp(280px, 30vw, 440px); flex: none; border-radius: 14px 14px 0 0; overflow: hidden; background: #0f1b30; border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 0; box-shadow: 0 -20px 60px -30px rgba(76, 184, 240, 0.35); }
.show-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.chrome span { margin-left: 10px; font-size: 0.7rem; font-weight: 500; color: #8fa0bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }
#services { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
#apropos { padding-top: 0; }
#contact { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section-head .sub { font-size: 1.08rem; max-width: 46ch; }
.section-head.split .sub { justify-self: end; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.service { position: relative; padding: 40px 36px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.4s; overflow: hidden; }
.service:nth-child(3n) { border-right: 0; }
.service:nth-last-child(-n+3) { border-bottom: 0; }
.service::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(76, 184, 240, 0.16), transparent 65%); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service-num { position: absolute; top: 34px; right: 36px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: rgba(255, 255, 255, 0.28); transition: color 0.3s; }
.service:hover .service-num { color: var(--sky); }
.icon { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 28px; display: grid; place-items: center; background: rgba(76, 184, 240, 0.1); border: 1px solid rgba(76, 184, 240, 0.25); transition: background 0.3s, transform 0.4s var(--ease); }
.icon svg { width: 25px; height: 25px; fill: none; stroke: var(--sky); stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.service:hover .icon { background: var(--grad); transform: translateY(-3px); }
.service:hover .icon svg { stroke: var(--ink); }
.service h3 { margin-bottom: 12px; }
.service p { font-size: 0.98rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { padding: 10px 20px; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; color: var(--muted); background: transparent; border: 1px solid var(--line); transition: color 0.2s, background 0.2s, border-color 0.2s; }
.chip:hover { color: var(--text); border-color: rgba(10, 19, 34, 0.3); }
.chip.active { color: #fff; background: var(--navy); border-color: var(--navy); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
  display: flex; flex-direction: column; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(10, 19, 34, 0.04);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s, opacity 0.8s var(--ease);
}
.project.hidden { display: none; }
a.project:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(10, 19, 34, 0.35); border-color: rgba(10, 19, 34, 0.18); }
.shot { margin: 14px 14px 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(10, 19, 34, 0.1); background: #e9eef6; }
.shot .chrome { background: #eef2f8; border-bottom-color: rgba(10, 19, 34, 0.08); height: 28px; }
.shot .chrome i { background: #cbd5e3; }
.shot .chrome span { color: #7a879f; }
.shot-img { aspect-ratio: 16 / 10; overflow: hidden; }
.shot-img img, .shot-img .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease); }
.project:hover .shot-img img { transform: scale(1.045); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 26px; }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.project-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.arrow { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease); }
.arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
a.project:hover .arrow { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(45deg); }
.project h3 { font-size: 1.35rem; margin-bottom: 8px; }
.project p { font-size: 0.95rem; }
.project .tags { margin-top: auto; padding-top: 20px; }

/* Projet mis en avant (le premier affiché) */
.project.featured { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.project.featured .shot { flex: 1.35; margin: 16px 0 16px 16px; }
.project.featured .project-body { flex: 1; padding: clamp(28px, 4vw, 52px); justify-content: center; }
.project.featured h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -0.035em; margin-bottom: 14px; }
.project.featured p { font-size: 1.06rem; }
.project.featured .tags { margin-top: 0; padding-top: 26px; }
.project.featured .project-top { margin-bottom: 18px; }

.more { margin-top: 48px; text-align: center; font-size: 1.08rem; }
.more a { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; color: var(--text); font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.more svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.more a:hover svg { transform: translateX(4px); }

/* ---------- Méthode ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { position: relative; padding: 36px 32px 0 0; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--grad); transition: width 1s var(--ease) 0.2s; }
.steps li.visible::before { width: 72px; }
.steps li + li::before { left: 32px; }
.num { display: block; margin-bottom: 22px; font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 0.97rem; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about h2 { margin-bottom: 26px; }
.about p { margin-bottom: 16px; max-width: 56ch; font-size: 1.05rem; }
.about .btn { margin-top: 16px; }
.about-logo { width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: cover; justify-self: end; border-radius: 32px; border: 1px solid var(--line); box-shadow: 0 50px 90px -50px rgba(76, 184, 240, 0.45); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 80px); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.values li { padding: 30px 32px; }
.values li + li { border-left: 1px solid var(--line); }
.values strong { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.values span { color: var(--muted); font-size: 0.97rem; }

/* ---------- Contact ---------- */
.contact-box {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: start;
  padding: clamp(28px, 5vw, 68px); border-radius: 36px; border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(47, 143, 232, 0.3), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(111, 217, 204, 0.18), transparent 60%),
    #0f1c33;
}
.contact-box h2 { margin-bottom: 18px; }
.contact-box > div > p { font-size: 1.05rem; max-width: 44ch; }
.contact-list { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; gap: 3px; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; overflow-wrap: anywhere; }
.contact-list span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-list a { transition: color 0.2s; }
.contact-list a:hover { color: var(--sky); }

.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 24px; background: rgba(8, 17, 32, 0.6); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
label { font-size: 0.84rem; font-weight: 600; color: #cfd9ea; }
input, select, textarea { width: 100%; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 0.97rem; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
select option { background: #0f1c33; color: var(--text); }
textarea { resize: vertical; min-height: 120px; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); background: rgba(76, 184, 240, 0.06); box-shadow: 0 0 0 4px rgba(76, 184, 240, 0.16); }
.field.invalid input, .field.invalid textarea { border-color: #fb7185; }
.form .btn { justify-self: start; margin-top: 4px; }
.form-status { min-height: 1.4em; font-size: 0.9rem; }
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fda4af; }
.contact-direct[hidden], .form[hidden] { display: none; }
.contact-direct { align-content: start; }
.contact-direct .btn { justify-self: stretch; }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink); padding: clamp(56px, 7vw, 84px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 0.8fr 1.2fr; gap: 40px; }
.footer-brand p { margin-top: 18px; max-width: 34ch; font-size: 0.95rem; }
.footer h4 { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer ul { display: grid; gap: 11px; font-size: 0.95rem; color: #cfd9ea; word-break: break-word; }
.footer ul a { transition: color 0.2s; }
.footer ul a:hover, .footer-bottom a:hover { color: var(--sky); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.footer-bottom p { color: inherit; }
.footer-bottom a { transition: color 0.2s; }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.project.reveal { transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s, opacity 0.9s var(--ease); }
.service.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), background 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(3n) { border-right: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .service:nth-last-child(-n+2) { border-bottom: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(3)::before { left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; gap: 18px; font-size: 1.4rem; background: rgba(8, 17, 32, 0.98); opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
  .menu.open { opacity: 1; visibility: visible; }
  .menu .btn { margin: 14px 0 0; font-size: 1.05rem; padding: 15px 28px; }
  .section-head.split { grid-template-columns: 1fr; gap: 18px; }
  .section-head.split .sub { justify-self: start; }
  .project.featured { flex-direction: column; }
  .project.featured .shot { margin: 14px 14px 0; }
  .about, .contact-box { grid-template-columns: 1fr; }
  .about-logo { justify-self: start; max-width: 360px; }
  .values { grid-template-columns: 1fr; }
  .values li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 20px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .projects, .services, .steps { grid-template-columns: 1fr; }
  .service, .service:nth-child(3n), .service:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 26px; }
  .service:last-child { border-bottom: 0; }
  .service-num { top: 28px; right: 26px; }
  .steps { row-gap: 0; }
  .steps li, .steps li + li { padding: 30px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .steps li::before, .steps li + li::before { left: 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list li { font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .contact-box { border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .steps li::before { width: 72px; }
}
