/* =========================================================
   Portfolio — public site styles
   Full-bleed layout · glass surfaces · colour theme chosen in the admin panel
   ========================================================= */

/* ---------- Themes ---------- */
:root,
[data-theme="ivory"] {
  --bg: #f2efe9;  --bg-2: #e9e5dd;  --fg: #151513;  --mute: #6d695f;
  --line: rgba(21, 21, 19, .10);  --line-2: rgba(21, 21, 19, .22);
  --accent: #9b7b4f;  --live: #2f9e55;
  --glass: rgba(255, 255, 255, .50);  --glass-strong: rgba(255, 255, 255, .80);
  --glass-border: rgba(255, 255, 255, .75);  --glass-hi: rgba(255, 255, 255, .6);
  --blob-1: rgba(236, 196, 150, .45);  --blob-2: rgba(200, 214, 230, .55);  --blob-3: rgba(232, 210, 220, .45);
  --shadow: 0 18px 50px rgba(60, 50, 30, .12);
  color-scheme: light;
}
[data-theme="onyx"] {
  --bg: #0b0b0a;  --bg-2: #151514;  --fg: #ece9e2;  --mute: #8f8b82;
  --line: rgba(236, 233, 226, .12);  --line-2: rgba(236, 233, 226, .24);
  --accent: #d6c3a1;  --live: #8fd49a;
  --glass: rgba(28, 27, 25, .55);  --glass-strong: rgba(24, 23, 21, .78);
  --glass-border: rgba(255, 255, 255, .10);  --glass-hi: rgba(255, 255, 255, .07);
  --blob-1: rgba(214, 195, 161, .16);  --blob-2: rgba(120, 112, 98, .20);  --blob-3: rgba(90, 84, 120, .14);
  --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
[data-theme="midnight"] {
  --bg: #070b16;  --bg-2: #0e1424;  --fg: #e7ecf7;  --mute: #8790a8;
  --line: rgba(231, 236, 247, .10);  --line-2: rgba(231, 236, 247, .22);
  --accent: #8fa8ff;  --live: #6ee7b7;
  --glass: rgba(20, 28, 52, .45);  --glass-strong: rgba(14, 20, 38, .78);
  --glass-border: rgba(160, 180, 255, .16);  --glass-hi: rgba(255, 255, 255, .08);
  --blob-1: rgba(64, 96, 255, .30);  --blob-2: rgba(130, 70, 240, .24);  --blob-3: rgba(30, 170, 200, .18);
  --shadow: 0 18px 50px rgba(0, 0, 10, .45);
  color-scheme: dark;
}
[data-theme="forest"] {
  --bg: #0b110e;  --bg-2: #121a16;  --fg: #e6eee8;  --mute: #86968c;
  --line: rgba(230, 238, 232, .10);  --line-2: rgba(230, 238, 232, .22);
  --accent: #a8d5b5;  --live: #9be3a8;
  --glass: rgba(22, 34, 28, .45);  --glass-strong: rgba(16, 26, 21, .78);
  --glass-border: rgba(180, 230, 200, .14);  --glass-hi: rgba(255, 255, 255, .07);
  --blob-1: rgba(60, 160, 110, .24);  --blob-2: rgba(170, 190, 90, .14);  --blob-3: rgba(40, 120, 140, .18);
  --shadow: 0 18px 50px rgba(0, 10, 5, .4);
  color-scheme: dark;
}
[data-theme="clay"] {
  --bg: #efe5da;  --bg-2: #e6d9cb;  --fg: #2a1d16;  --mute: #7d6658;
  --line: rgba(42, 29, 22, .10);  --line-2: rgba(42, 29, 22, .22);
  --accent: #b5623b;  --live: #3f9a5a;
  --glass: rgba(255, 248, 240, .45);  --glass-strong: rgba(255, 249, 243, .80);
  --glass-border: rgba(255, 255, 255, .65);  --glass-hi: rgba(255, 255, 255, .55);
  --blob-1: rgba(226, 140, 96, .40);  --blob-2: rgba(214, 170, 120, .38);  --blob-3: rgba(190, 120, 140, .26);
  --shadow: 0 18px 50px rgba(80, 40, 20, .14);
  color-scheme: light;
}

:root {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(14px, 2vw, 40px);
  --gap: clamp(12px, 1.2vw, 24px);
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .5s, color .5s;
}
.modal-open body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
em { font-style: italic; }
sup { font-size: .45em; vertical-align: super; color: var(--mute); font-family: var(--mono); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Full bleed: no max-width — the layout always spans the whole screen */
.wrap { width: 100%; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--mute); }
.eyebrow { margin: 0 0 14px; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Ambient light behind the glass ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  transition: background .6s;
  animation: drift 38s ease-in-out infinite alternate;
}
.ambient i:nth-child(1) { left: -18vmax; top: -22vmax; background: radial-gradient(circle, var(--blob-1), transparent 65%); }
.ambient i:nth-child(2) { right: -20vmax; top: 10vh; background: radial-gradient(circle, var(--blob-2), transparent 65%); animation-duration: 46s; animation-direction: alternate-reverse; }
.ambient i:nth-child(3) { left: 25vw; bottom: -30vmax; background: radial-gradient(circle, var(--blob-3), transparent 65%); animation-duration: 52s; }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); } }

/* ---------- Glass surface ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow);
  transition: background-color .5s, border-color .5s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass-hi);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, opacity .25s, transform .25s var(--ease);
}
.btn:hover { border-color: var(--fg); }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid:hover { opacity: .86; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header (floating glass bar) ---------- */
.hdr { position: sticky; top: 0; z-index: 40; padding: 12px var(--gutter) 0; }
.hdr-in { display: flex; align-items: center; gap: 26px; height: 64px; padding: 0 12px 0 24px; border-radius: var(--radius); }
.brand { font: 400 24px/1 var(--serif); letter-spacing: -.005em; }
.hdr-role { font-size: 13px; color: var(--mute); padding-left: 26px; border-left: 1px solid var(--line); }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--mute); transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--fg); }

/* ---------- Intro ---------- */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 24px clamp(28px, 5vw, 120px); align-items: end;
  padding-top: clamp(36px, 5vw, 80px); padding-bottom: clamp(28px, 3.5vw, 56px);
}
.intro-title { margin: 0; max-width: 18ch; font: 400 clamp(44px, 5.8vw, 132px)/.98 var(--serif); letter-spacing: -.025em; }
.intro-title em { color: var(--mute); }
.intro-side { padding: clamp(22px, 2vw, 32px); border-radius: var(--radius); }
.intro-side p { margin: 0; font-size: clamp(15px, 1vw, 17px); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.avail { display: flex; align-items: center; gap: 10px; margin-top: 18px !important; font-size: 13px; color: var(--mute); }
.avail i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 20%, transparent); }

/* ---------- Work ---------- */
.work-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 20px; }
.work-bar h2 { margin: 0; font: 400 clamp(26px, 2vw, 38px)/1 var(--serif); }
.filters { display: flex; gap: 4px; padding: 5px; border-radius: 999px; }
.filters button { height: 36px; padding: 0 18px; border-radius: 999px; font-size: 13px; color: var(--mute); transition: background-color .25s, color .25s; }
.filters button:hover { color: var(--fg); }
.filters button.is-on { background: var(--fg); color: var(--bg); }

.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row dense; /* featured cards never leave holes */
  gap: clamp(26px, 2.2vw, 48px) var(--gap);
  padding-bottom: clamp(56px, 7vw, 120px);
}
.card { display: flex; flex-direction: column; min-width: 0; cursor: pointer; }
.card.is-hidden { display: none; }
.card.wide { grid-column: span 2; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); border-radius: 14px; }
/* featured card fills the row height; the min-height keeps it right even when a row holds only featured cards */
.grid { container-type: inline-size; }
.card.wide .card-media { aspect-ratio: auto; flex: 1; min-height: calc((100cqw - 3 * var(--gap)) / 4 * 1.25); }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.js .card-media img { opacity: 0; }
.js .card-media img.ok { opacity: 1; }
.card-media video.hover { z-index: 0; opacity: 0; transition: opacity .4s; }
.card-media video.hover.playing { opacity: 1; }
.empty { margin: 0; padding-bottom: 80px; color: var(--mute); font: 400 28px/1.2 var(--serif); }
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px;
  color: #fff; background: rgba(20, 20, 20, .28); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.tag svg { width: 10px; height: 10px; fill: currentColor; stroke: none; }
/* "several images" badge (top right, like a carousel post) */
.multi {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 99px;
  color: #fff; background: rgba(20, 20, 20, .28); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  font: 400 11px/1 var(--mono);
}
.multi svg { width: 13px; height: 13px; stroke-width: 2; }
/* glass caption that slides up over the image on hover (desktop) */
.card-peek {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px; color: #fff; font-size: 13px;
  background: rgba(20, 20, 20, .28); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s var(--ease);
}
.card-peek b { font-weight: 500; }
.card-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; }
.card-cap h3 { margin: 0; font: 400 clamp(19px, 1.3vw, 26px)/1.15 var(--serif); }
.card-cap span { flex: none; font-size: 13px; color: var(--mute); }

@media (hover: hover) {
  .card:hover .card-media img, .card:hover .card-media video { transform: scale(1.04); }
  .card:hover .card-peek { opacity: 1; transform: none; }
}

/* ---------- Subtle reveal ---------- */
.js .reveal, .js .card { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in, .js .card.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gap); padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(56px, 7vw, 110px); }
.about h2, .contact h2 { margin: 0; font: 400 clamp(34px, 3.4vw, 72px)/1.04 var(--serif); letter-spacing: -.02em; }
.about h2 em, .contact h2 em { color: var(--mute); }
.about-head { grid-column: 1 / 7; }
.about-text { grid-column: 8 / 13; align-self: end; }
.about-text p { margin: 0 0 14px; font-size: 16px; max-width: 60ch; }
.services { grid-column: 1 / -1; list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.services li { padding: 24px; border-radius: var(--radius); transition: transform .35s var(--ease), border-color .35s; }
.services li:hover { transform: translateY(-4px); border-color: var(--line-2); }
.services .num { font: 400 12px var(--mono); color: var(--accent); }
.services h3 { margin: 28px 0 6px; font: 400 28px/1.1 var(--serif); }
.services p { margin: 0; color: var(--mute); font-size: 14px; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(40px, 5vw, 80px); }
.contact-in {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 120px); align-items: end;
  padding: clamp(36px, 5vw, 80px); border-radius: calc(var(--radius) + 6px);
}
.contact h2 { font-size: clamp(38px, 4.2vw, 88px); max-width: 14ch; }
.contact-mail { display: inline-block; font: 400 clamp(26px, 2.3vw, 46px)/1.2 var(--serif); border-bottom: 1px solid var(--line-2); transition: border-color .25s; overflow-wrap: anywhere; }
.contact-mail:hover { border-color: var(--fg); }
.contact-phone { margin: 14px 0 0; font-size: 16px; }
.contact-phone a { border-bottom: 1px solid var(--line-2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 22px; font-size: 14px; color: var(--mute); }
.socials a { transition: color .2s; }
.socials a:hover { color: var(--fg); }

/* ---------- Footer ---------- */
.ftr {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 20px; padding-bottom: max(24px, env(safe-area-inset-bottom));
  color: var(--mute); font-size: 13px;
}
.ftr a:hover { color: var(--fg); }

/* ---------- Project viewer ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px 80px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.m-box {
  display: grid; grid-template-columns: minmax(0, 1fr) 400px;
  width: min(1600px, 100%); height: min(90vh, 1000px);
  border-radius: 20px; overflow: hidden;
  background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  transform: scale(.97); transition: transform .35s var(--ease);
}
.modal.is-open .m-box { transform: none; }
.m-media { position: relative; background: #000; min-height: 0; overflow: hidden; }
.m-media { touch-action: none; -webkit-user-select: none; user-select: none; }
.m-media img, .m-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.m-media img { -webkit-user-drag: none; }
/* carousel of the project's images */
.m-track { position: absolute; inset: 0; display: flex; transition: transform .45s var(--ease); will-change: transform; }
.m-track.dragging { transition: none; }
.m-media.is-multi .m-track { cursor: grab; }
.m-media.is-multi .m-track.dragging { cursor: grabbing; }
.m-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.m-num {
  position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 11px; border-radius: 99px;
  color: #fff; background: rgba(20, 20, 20, .35); font: 400 11px/1 var(--mono); letter-spacing: .04em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.m-dots {
  position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%);
  display: flex; gap: 0; padding: 2px 6px; border-radius: 99px; background: rgba(20, 20, 20, .3);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.m-dots button { display: grid; place-items: center; width: 16px; height: 18px; padding: 0; }
.m-dots button::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background-color .2s, transform .2s; }
.m-dots button.on::after { background: #fff; transform: scale(1.2); }
.m-play {
  position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.m-play svg { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.m-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--line); }
.m-top { display: flex; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.m-body { flex: 1; overflow-y: auto; padding: 24px 22px; }
.m-body h2 { margin: 0 0 12px; font: 400 40px/1.04 var(--serif); letter-spacing: -.015em; }
.m-body p { margin: 0 0 24px; color: var(--mute); }
.m-body dl { margin: 0; }
.m-body dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.m-body dt { color: var(--mute); }
.m-body dd { margin: 0; text-align: right; }
.m-foot { display: grid; gap: 8px; padding: 18px 22px; border-top: 1px solid var(--line); }
.m-body dl div[hidden] { display: none; }

.m-close, .m-nav {
  position: absolute; z-index: 2; display: grid; place-items: center; color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .2s;
}
.m-close:hover, .m-nav:hover { background: rgba(255, 255, 255, .24); }
.m-close { top: 16px; right: 16px; }
.m-nav { top: 50%; margin-top: -24px; }
.m-prev { left: 16px; }
.m-next { right: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 120; transform: translate(-50%, 12px);
  padding: 10px 18px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 2200px) {
  :root { --gap: 28px; }
  html { font-size: 17px; }
  .hdr-in { height: 72px; }
}

/* Laptop / tablet landscape */
@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card.wide { grid-column: auto; }
  .card.wide .card-media { aspect-ratio: 4 / 5; flex: none; min-height: 0; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .hdr-role { display: none; }
  .intro, .contact-in { grid-template-columns: 1fr; align-items: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-head, .about-text { grid-column: 1 / -1; }

  .modal { padding: 0; }
  .m-box { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; border-radius: 0; border: 0; }
  .m-side { border-left: 0; border-top: 1px solid var(--line); max-height: 44vh; }
  .m-body { padding: 18px 20px; }
  .m-body h2 { font-size: 30px; }
  .m-nav { top: auto; bottom: calc(44vh + 12px); margin: 0; }
}

/* Phone */
@media (max-width: 600px) {
  .hdr { padding-top: 8px; }
  .nav { display: none; }
  .hdr-in { height: 56px; padding: 0 8px 0 16px; border-radius: 14px; }
  .hdr .btn { margin-left: auto; }
  .brand { font-size: 21px; }
  .intro { padding-top: 26px; gap: 18px; }
  .intro-title { font-size: clamp(38px, 11vw, 52px); }
  .intro-actions .btn { flex: 1; }
  .filters { width: 100%; }
  .filters button { flex: 1; padding: 0 8px; }
  .grid { gap: 22px 10px; }
  .card-media { border-radius: 10px; }
  .card-cap { flex-direction: column; gap: 2px; padding-top: 8px; }
  .card-cap h3 { font-size: 17px; }
  .card-cap span { font-size: 12px; }
  .tag { top: 8px; left: 8px; height: 24px; padding: 0 9px; font-size: 10px; }
  .multi { top: 8px; right: 8px; height: 24px; padding: 0 8px; font-size: 10px; }
  .multi svg { width: 11px; height: 11px; }
  .services { grid-template-columns: 1fr; }
  .services h3 { margin-top: 14px; }
  .contact-in { padding: 28px 20px; }
  .m-side { max-height: 48vh; }
  .m-nav { bottom: calc(48vh + 12px); }
  .ftr { justify-content: center; text-align: center; }
  .m-foot { padding: 12px 16px; }
  #mShare { height: 38px; }
}

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