/* Dot2Art Solution - main stylesheet (v2: light/dark themes) */

/* ---------- Theme tokens ---------- */
:root {
  color-scheme: light;
  --magenta: #d6177f;
  --teal: #0e7fa6;
  --grad: linear-gradient(120deg, #d6177f 0%, #8b3aa0 50%, #0e7fa6 100%);
  --grad-text: linear-gradient(100deg, #c4116f 0%, #7d2f97 50%, #0c7299 100%);

  --bg: #ffffff;
  --surface: #f4f5fa;
  --card: #ffffff;
  --ink: #12131c;
  --text: #3d4052;
  --muted: #565a6e;
  --line: #e3e5ee;
  --link: #0c7299;
  --link-hover: #b8126b;
  --accent: #b8126b;
  --chip: rgba(214, 23, 127, .08);
  --header-bg: rgba(255, 255, 255, .55);
  --header-solid: rgba(255, 255, 255, .92);
  --pill-bg: rgba(18, 19, 28, .04);
  --pill-line: rgba(18, 19, 28, .08);
  --blob-a: rgba(214, 23, 127, .34);
  --blob-b: rgba(14, 127, 166, .34);
  --blob-c: rgba(139, 58, 160, .20);
  --grain-opacity: .07;
  --shadow: 0 1px 2px rgba(18, 19, 28, .04), 0 8px 24px rgba(18, 19, 28, .06);
  --shadow-lg: 0 2px 4px rgba(18, 19, 28, .04), 0 24px 56px rgba(18, 19, 28, .12);
  --footer-bg: #11121b;

  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1200px;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] {
  color-scheme: dark;
  --grad-text: linear-gradient(100deg, #ff5fae 0%, #c08bff 50%, #4fd0f7 100%);
  --bg: #0b0c13;
  --surface: #11131d;
  --card: #161927;
  --ink: #f2f3f9;
  --text: #c8cad8;
  --muted: #a3a7bb;
  --line: #262a3c;
  --link: #5fd2f7;
  --link-hover: #ff7cbd;
  --accent: #ff7cbd;
  --chip: rgba(255, 124, 189, .12);
  --header-bg: rgba(11, 12, 19, .5);
  --header-solid: rgba(11, 12, 19, .9);
  --pill-bg: rgba(255, 255, 255, .05);
  --pill-line: rgba(255, 255, 255, .1);
  --blob-a: rgba(214, 23, 127, .38);
  --blob-b: rgba(14, 127, 166, .40);
  --blob-c: rgba(139, 58, 160, .30);
  --grain-opacity: .09;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 56px rgba(0, 0, 0, .45);
  --footer-bg: #07080d;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 10px;
}
.skip-link:focus { top: 1rem; color: var(--bg); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 104px 0; position: relative; }
.section-light { background: var(--surface); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}
.eyebrow-pill {
  padding: .45rem 1rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); letter-spacing: .12em;
}
.eyebrow-pill::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--grad); margin-right: .55rem; vertical-align: .08em;
}
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
  padding: .9rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .25s, background-position .4s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--grad); background-size: 140% 100%; color: #fff;
  box-shadow: 0 8px 24px -6px rgba(214, 23, 127, .5);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 30px -8px rgba(14, 127, 166, .6); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-outline:hover { border-color: var(--link); color: var(--link); transform: translateY(-2px); }
.btn-light { background: #fff; color: #12131c; }
.btn-light:hover { color: #9e0f5c; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: #fff; color: #12131c; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Header (glass, pill nav) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: var(--header-solid); border-bottom-color: var(--line); box-shadow: 0 6px 24px -12px rgba(0, 0, 0, .18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; }
.brand { flex: none; }
.brand img { width: 118px; height: auto; }
.logo-for-dark { display: none; }
[data-theme="dark"] .logo-for-light { display: none; }
[data-theme="dark"] .logo-for-dark { display: block; }

.main-nav ul {
  display: flex; align-items: center; gap: 2px; padding: 5px;
  background: var(--pill-bg); border: 1px solid var(--pill-line); border-radius: 999px;
}
.main-nav a:not(.btn) {
  display: block; padding: .5rem 1rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 500; font-size: .93rem; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.main-nav a:not(.btn):hover { background: var(--card); color: var(--accent); }
.main-nav a[aria-current="page"] { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.nav-quote { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-quote { padding: .7rem 1.3rem; }
.theme-toggle, .nav-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--pill-bg); border: 1px solid var(--pill-line); color: var(--ink); padding: 0;
  transition: background-color .2s;
}
.theme-toggle:hover, .nav-toggle:hover { background: var(--card); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-toggle { display: none; align-content: center; justify-items: center; }
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: currentColor; margin: 2px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle-bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Aurora + grain ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span {
  position: absolute; border-radius: 50%; will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) { width: max(70%, 520px); aspect-ratio: 1; left: -22%; top: -55%; background: radial-gradient(circle at center, var(--blob-a), transparent 62%); }
.aurora span:nth-child(2) { width: max(64%, 480px); aspect-ratio: 1; right: -22%; top: -35%; background: radial-gradient(circle at center, var(--blob-b), transparent 62%); animation-duration: 26s; animation-delay: -8s; }
.aurora span:nth-child(3) { width: max(50%, 400px); aspect-ratio: 1; left: 28%; bottom: -60%; background: radial-gradient(circle at center, var(--blob-c), transparent 62%); animation-duration: 30s; animation-delay: -14s; }
.aurora::after {
  content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: var(--grain-opacity); mix-blend-mode: overlay;
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10%, 6%, 0) scale(1.12); }
  100% { transform: translate3d(-6%, 10%, 0) scale(.94); }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; margin-top: -80px; padding: 168px 0 104px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero-lead { font-size: 1.15rem; max-width: 580px; margin-bottom: 2.2rem; color: var(--text); }
.hero-figure { position: relative; justify-self: center; width: 100%; max-width: 420px; aspect-ratio: 1; }
.hero-figure::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, #d6177f, #8b3aa0, #0e7fa6, #8b3aa0, #d6177f);
  animation: spin 18s linear infinite;
}
.hero-figure img { position: relative; z-index: 1; border-radius: 50%; border: 8px solid var(--bg); width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; z-index: 2; left: -18px; bottom: 30px; margin: 0;
  background: var(--header-solid); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px; padding: .8rem 1.1rem; box-shadow: var(--shadow-lg);
  font-family: var(--font-head); font-size: .85rem; color: var(--text); line-height: 1.35;
}
.hero-badge strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- Marquee ---------- */
.marquee {
  display: flex; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface);
  padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; flex: none; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; }
.marquee-list li { display: flex; align-items: center; }
.marquee-list li::after {
  content: ""; width: 10px; height: 10px; margin: 0 2rem; border-radius: 50%; background: var(--grad); flex: none;
}
.marquee-list a {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -.02em;
  color: var(--ink); white-space: nowrap;
}
.marquee-list a:hover { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; margin-top: -80px; padding: 160px 0 80px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: .3em; max-width: 900px; }
.page-hero p { max-width: 660px; margin: 0; font-size: 1.15rem; color: var(--text); }
.breadcrumb ol {
  display: inline-flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1.4rem; padding: .4rem 1rem;
  font-size: .88rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }
.breadcrumb a { color: var(--link); }
.breadcrumb [aria-current] { color: var(--muted); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.2rem; margin: 1.4rem 0 2rem; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .6em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--grad); }
.checklist a { color: var(--ink); font-weight: 500; }
.checklist a:hover { color: var(--accent); }

/* ---------- Bento services ---------- */
.bento {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b c"
    "a a d e"
    "f g h h";
}
.bento-1 { grid-area: a; } .bento-2 { grid-area: b; } .bento-3 { grid-area: c; } .bento-4 { grid-area: d; }
.bento-5 { grid-area: e; } .bento-6 { grid-area: f; } .bento-7 { grid-area: g; } .bento-8 { grid-area: h; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s, opacity .7s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; margin: 8px 8px 0; border-radius: calc(var(--radius) - 8px); background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4rem; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-body p { font-size: .93rem; color: var(--muted); flex: 1; }
.card-link {
  align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--accent);
  padding: .35rem .85rem; border-radius: 999px; background: var(--chip); transition: transform .25s;
}
.card:hover .card-link { transform: translateX(4px); }
.card:focus-within { outline: 3px solid var(--link); outline-offset: 3px; }
.card:focus-within a:focus-visible { outline: none; }
/* feature card */
.bento-1 .card-media, .bento-8 .card-media { position: relative; }
.bento-1 .card-media img, .bento-8 .card-media img { position: absolute; inset: 0; }
.bento-1 .card-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 300px; }
.bento-1 .card-body { flex: none; padding: 1.5rem 1.8rem 1.8rem; }
.bento-1 .card-body p { flex: none; margin-bottom: 1.1rem; }
.bento-1 h3 { font-size: 1.7rem; }
.bento-1 .card-body p { font-size: 1rem; }
/* wide card */
.bento-8 { flex-direction: row; }
.bento-8 .card-media { aspect-ratio: auto; width: 46%; flex: none; margin: 8px 0 8px 8px; }
.bento-8 .card-body { justify-content: center; }
.bento-8 .card-body p { flex: none; }

/* ---------- Galleries ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, opacity .7s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(18, 19, 28, .55));
  opacity: 0; transition: opacity .3s;
}
.gallery-item .zoom {
  position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery-item .zoom svg { width: 20px; height: 20px; stroke: #b8126b; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover .zoom, .gallery-item:focus-visible .zoom { opacity: 1; transform: none; }

/* masonry (mixed ratios) */
.gallery--masonry { display: block; columns: 3 260px; column-gap: 20px; }
.gallery--masonry .gallery-item { break-inside: avoid; margin-bottom: 20px; }
.gallery--masonry .gallery-item img { height: auto; }

/* staggered grid (same-size thumbnails) */
.gallery--stagger { padding-bottom: 48px; --shift: 48px; }
.gallery--stagger .gallery-item { aspect-ratio: 4 / 3; }
.gallery--stagger .gallery-item:nth-child(3n+2) { transform: translateY(var(--shift)); }
.gallery--contain .gallery-item { background: #fff; }
.gallery--contain .gallery-item img { object-fit: contain; padding: 14px; }

/* ---------- Service detail ---------- */
.service-intro { display: grid; grid-template-columns: 1.4fr .9fr; gap: 56px; align-items: start; }
.quote-box {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.quote-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.quote-box h2 { font-size: 1.4rem; }
.quote-box .btn { width: 100%; margin-top: .6rem; }
.contact-lines { font-size: .93rem; margin-top: 1.3rem; }
.contact-lines li { padding: .45rem 0; border-top: 1px dashed var(--line); word-break: break-word; }
.contact-lines li:first-child { border-top: 0; }
.contact-lines strong { color: var(--ink); font-weight: 600; }

.service-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.service-links a {
  padding: .65rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink);
  transition: border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.service-links a:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- CTA panel ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #b0106a 0%, #6d2a8a 50%, #0a6584 100%); color: #fff;
  border-radius: 32px; padding: 72px 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  box-shadow: 0 30px 60px -30px rgba(139, 58, 160, .6);
}
.cta-band .aurora { z-index: -1; }
.cta-band .aurora span:nth-child(1) { background: radial-gradient(circle, rgba(255, 92, 170, .45), transparent 60%); }
.cta-band .aurora span:nth-child(2) { background: radial-gradient(circle, rgba(40, 190, 235, .35), transparent 60%); }
.cta-band .aurora span:nth-child(3) { background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 60%); }
.cta-band .aurora::after { opacity: .12; }
.cta-band h2 { color: #fff; margin-bottom: .35em; font-size: clamp(1.9rem, 4vw, 3.1rem); }
.cta-band p { color: #fff; margin: 0; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band :focus-visible { outline-color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow); text-align: center; transition: transform .35s, box-shadow .35s, opacity .7s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 1.2rem; display: grid; place-items: center; background: var(--grad); }
.contact-icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h2 { font-size: 1.2rem; margin-bottom: .35rem; }
.contact-card p { margin: 0 0 1rem; word-break: break-word; color: var(--ink); font-weight: 500; }
.contact-card .muted { color: var(--muted); font-weight: 400; font-size: .93rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff;
  font-family: var(--font-head); font-weight: 700; margin-bottom: 1rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- 404 ---------- */
.error-page { position: relative; text-align: center; padding: 120px 0; }
.error-code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 10rem); font-weight: 800; line-height: 1; margin-bottom: .2em; letter-spacing: -.05em; }
.error-page .btn-row { justify-content: center; }

/* ---------- Footer (dark in both themes) ---------- */
.site-footer { background: var(--footer-bg); color: #b9bccb; padding-top: 88px; font-size: .95rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 56px; }
.site-footer h2 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; letter-spacing: 0; }
.site-footer a { color: #dfe1ea; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer :focus-visible { outline-color: #5fd2f7; }
.footer-logo { display: inline-block; margin-bottom: 1.2rem; }
.footer-logo img { width: 150px; height: auto; display: block; }
.footer-links li { padding: .25rem 0; }
.footer-contact li { padding: .3rem 0; word-break: break-word; }
.footer-contact span { color: #9a9db0; display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }
.site-footer .footer-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }
.site-footer .footer-credit a:hover { color: #fff; text-decoration-color: currentColor; }
.footer-bar { height: 4px; background: var(--grad); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8, 9, 14, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 60px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #fff; }
.lightbox figcaption { color: #e2e3ea; margin-top: .9rem; font-size: .92rem; text-align: center; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  transition: background-color .2s;
}
.lb-btn:hover { background: var(--magenta); }
.lb-btn:focus-visible { outline-color: #fff; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lb-lock { overflow: hidden; }

/* ---------- Scroll reveal (class added by JS only below the fold) ---------- */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1), transform .35s, box-shadow .35s; }
.reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento-1 .card-media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "a a" "b c" "d e" "f g" "h h"; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav a:not(.btn) { padding: .5rem .75rem; }
}
@media (max-width: 960px) {
  .header-quote { display: none; }
  .nav-quote { display: block; }
  .nav-toggle { display: grid; }
  .main-nav {
    position: absolute; left: 12px; right: 12px; top: 76px; display: none;
    background: var(--header-solid); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px; gap: 2px; background: none; border: 0; border-radius: 0; }
  .main-nav a:not(.btn) { padding: .85rem 1rem; border-radius: 14px; }
  .main-nav .btn { margin: .6rem 0 .2rem; width: 100%; }
  .hero-grid, .split, .service-intro, .cta-band { grid-template-columns: 1fr; }
  .hero { padding-top: 128px; padding-bottom: 80px; }
  .hero-figure { max-width: 300px; order: -1; }
  .cta-band { padding: 48px 32px; border-radius: 28px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .contact-grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--stagger { --shift: 36px; padding-bottom: 36px; }
  .gallery--stagger .gallery-item:nth-child(3n+2) { transform: none; }
  .gallery--stagger .gallery-item:nth-child(2n) { transform: translateY(var(--shift)); }
  .section { padding: 80px 0; }
  .split { gap: 40px; }
  .page-hero { padding: 132px 0 64px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" "g" "h"; }
  .bento-8 { flex-direction: column; }
  .bento-8 .card-media { width: auto; aspect-ratio: 3 / 2; margin: 8px 8px 0; }
  .bento-1 h3 { font-size: 1.4rem; }
  .checklist, .footer-grid { grid-template-columns: 1fr; }
  .gallery { gap: 12px; }
  .gallery--masonry { columns: 2; column-gap: 12px; }
  .gallery--masonry .gallery-item { margin-bottom: 12px; }
  .lightbox { padding: 64px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .btn-row .btn { width: 100%; }
  .header-inner { height: 72px; }
  .brand img { width: 100px; }
  .main-nav { top: 68px; }
  .hero, .page-hero { margin-top: -72px; }
  .hero { padding-top: 112px; }
  .page-hero { padding-top: 116px; }
  .hero-badge { left: -6px; bottom: 14px; }
  .cta-band { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; }
  .marquee-list[aria-hidden="true"] { display: none; }
  .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: .4rem; }
}

/* Feature card: full image (contain) over a blurred copy of itself */
.bento-1 .card-media { background: var(--surface); }
.bento-1 .card-media::before {
  content: ""; position: absolute; inset: -40px; background: url(../img/ser-img-1.jpg) center / cover; filter: blur(36px) saturate(1.3); opacity: .6;
}
.bento-1 .card-media img { object-fit: contain; z-index: 1; }
.bento-1:hover .card-media img { transform: scale(1.04); }
@media (max-width: 1080px) { .bento-1 .card-media img { object-fit: cover; } .bento-1 .card-media::before { display: none; } }

/* Our Works filters */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 auto 2rem; }
.filters .chip { font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid var(--border, rgba(127,127,127,.3)); background: var(--surface, transparent); color: var(--text, inherit); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.filters .chip span { font-size: .78rem; opacity: .65; margin-left: .25rem; }
.filters .chip:hover { border-color: var(--accent, #d6177f); transform: translateY(-1px); }
.filters .chip.is-active { background: linear-gradient(120deg, #d6177f, #0e7fa6); color: #fff; border-color: transparent; }
.filters .chip.is-active span { opacity: .9; }
.filters .chip:focus-visible { outline: 3px solid var(--accent, #d6177f); outline-offset: 2px; }
.gallery-item[hidden] { display: none !important; }
