/* Dewatic site styles
   Palette: logo navy + deep navy for dark sections, cool paper, logo cyan as the single accent.
   Type: Unbounded (display, echoes the logo's wide rounded geometry), Manrope (body). */

:root {
  --navy: #1d355e;        /* logo navy */
  --ink: #0f1d36;         /* dark sections, body text */
  --paper: #f3f5f9;
  --white: #ffffff;
  --cyan: #00eaff;        /* logo dots, the only accent */
  --muted: #4b5b77;       /* 6.5:1 on paper */
  --muted-dark: #b8c4dc;  /* 9:1 on ink */
  --line: #d5dbe6;
  --line-dark: #2a3d5f;

  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius-s: 6px;
  --radius-l: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --focus: var(--navy);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }
a, button, summary, select, label[for], input[type=checkbox], [role=button] { cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.dark { --focus: var(--cyan); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--ink); }
.dark .btn-primary { background: var(--cyan); color: var(--ink); }
.dark .btn-primary:hover { background: var(--white); }
.btn-ghost { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; border-radius: var(--radius-s); }
.btn-ghost:hover { text-decoration-color: var(--cyan); }
.btn[disabled] { opacity: .6; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(243, 245, 249, .92);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: block; width: 138px; flex: 0 0 auto; border-radius: var(--radius-s); }

/* Progress capsule: the logo's capsule, its dot travels as you scroll */
.progress {
  position: relative; width: 56px; height: 18px; flex: 0 0 auto;
  background: var(--navy); border-radius: 999px;
}
.progress i {
  position: absolute; top: 4px; left: 4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  transform: translateX(calc(var(--p, 0) * 38px));
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink);
  border-radius: 999px;
  transition: background-color .2s;
}
.site-nav a:hover { background: #e2e7ef; }
.site-nav a.is-current { box-shadow: inset 0 -2px 0 var(--navy); border-radius: 0; }
.site-nav .nav-cta { background: var(--navy); color: var(--white); padding: 0 20px; margin-left: 8px; }
.site-nav .nav-cta:hover { background: var(--ink); }

.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 0 6px 0 14px; font-weight: 700; position: relative; z-index: 3;
  }
  .menu-toggle-icon { position: relative; width: 26px; height: 14px; }
  .menu-toggle-icon i {
    position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
    transition: transform .3s var(--ease), top .3s var(--ease);
  }
  .menu-toggle-icon i:first-child { top: 2px; }
  .menu-toggle-icon i:last-child { top: 10px; }
  .menu-open .menu-toggle { color: var(--white); }
  .menu-open .menu-toggle-icon i:first-child { top: 6px; transform: rotate(45deg); }
  .menu-open .menu-toggle-icon i:last-child { top: 6px; transform: rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: 2; margin: 0;
    background: var(--ink); --focus: var(--cyan);
    display: flex; align-items: center;
    padding: 96px var(--gutter) 40px;
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .site-nav a {
    font-family: var(--display); font-size: clamp(26px, 8vw, 40px); font-weight: 700;
    color: var(--white); padding: 6px 0; min-height: 56px;
  }
  .site-nav a:hover { background: none; color: var(--cyan); }
  .site-nav .nav-cta { background: none; color: var(--cyan); padding: 6px 0; margin: 12px 0 0; }
  .site-nav a.is-current { box-shadow: none; }
  .progress { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(110px, 16vh, 170px); overflow: hidden; }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 7.2vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:nth-child(3) { padding-left: 1.6em; }

/* The logo capsule as a glyph inside the headline; its dots follow the pointer */
.capsule {
  display: inline-flex; align-items: center; justify-content: space-between;
  width: 1.55em; height: .64em; padding: 0 .12em;
  vertical-align: .08em; margin-left: .08em;
  background: var(--navy); border-radius: 999px;
}
.capsule .dot {
  width: .22em; height: .22em; border-radius: 50%; background: var(--cyan);
  transform: translate(var(--dx, 0), var(--dy, 0));
  transition: transform .15s linear;
}

.js .hero-title .line > span { transform: translateY(105%); }
.js.is-ready .hero-title .line > span { transform: none; transition: transform 1s var(--ease); }
.js.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
.js.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .16s; }
.js.is-ready .hero-title .line:nth-child(4) > span { transition-delay: .24s; }

.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px;
  align-items: end; margin-top: clamp(32px, 5vw, 56px);
}
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 560px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: flex-end; }

@media (max-width: 900px) {
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-content: flex-start; }
  .hero-title .line:nth-child(3) { padding-left: 0; }
}

/* Marquee of real project screenshots */
.marquee { position: relative; margin-top: clamp(48px, 7vw, 88px); padding-bottom: 64px; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; gap: 20px; padding-right: 20px; }
.marquee-group li { width: clamp(220px, 26vw, 360px); }
.marquee figure { margin: 0; }
.marquee img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-l); background: var(--line);
}
.marquee figcaption { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 10px; }
.js .marquee-track { animation: marquee 60s linear infinite; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-toggle {
  position: absolute; right: var(--gutter); bottom: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 14px;
  background: var(--paper);
}
.marquee-toggle:hover { background: var(--navy); color: var(--white); }
.no-js .marquee-toggle, html:not(.js) .marquee-toggle { display: none; }

/* ---------- Section basics ---------- */
.dark { background: var(--ink); color: var(--white); }
.dark p { color: var(--muted-dark); }

section h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -0.025em;
}
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.split {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end;
}
.section-head.split p { font-size: 18px; margin: 0; max-width: 460px; }
@media (max-width: 900px) { .section-head.split { grid-template-columns: 1fr; } }

.js .reveal { clip-path: inset(0 0 100% 0); transform: translateY(30px); }
.js .reveal.in { clip-path: inset(0 0 -10% 0); transform: none; transition: clip-path .9s var(--ease), transform .9s var(--ease); }

/* ---------- Services ---------- */
.services { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.service-list { border-top: 1px solid var(--line-dark); }
.service { border-bottom: 1px solid var(--line-dark); }
.service h3 { font: inherit; }
.service button {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; align-items: center; gap: 16px;
  width: 100%; text-align: left; padding: clamp(18px, 2.4vw, 30px) 0;
  transition: color .25s, padding-left .35s var(--ease);
}
.service-no { font-weight: 700; font-size: 15px; color: var(--muted-dark); }
.service-name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.25rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em;
}
.service-plus { position: relative; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; }
.service-plus::before, .service-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: currentColor; transition: transform .3s var(--ease);
}
.service-plus::after { transform: rotate(90deg); }
.service button[aria-expanded="true"] .service-plus::after { transform: rotate(0); }
.service button:hover { color: var(--cyan); }
.service button:hover .service-plus { border-color: var(--cyan); }
@media (hover: hover) { .service button:hover { padding-left: 12px; } }

.service-body { padding: 0 0 32px 80px; max-width: 820px; }
.service-body p { font-size: 18px; }
.service-refs { font-size: 15px !important; }
.service-refs a { color: var(--white); text-underline-offset: 4px; }
.service-refs a:hover { color: var(--cyan); }
@media (max-width: 600px) {
  .service button { grid-template-columns: 36px minmax(0, 1fr) 44px; gap: 10px; }
  .service-body { padding-left: 46px; }
}

/* Floating preview that follows the pointer over the service list (desktop only) */
.service-preview {
  position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none;
  width: 340px; border-radius: var(--radius-l); overflow: hidden;
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.9);
  transition: opacity .25s, transform .12s linear;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); /* lifts above the dark list it floats over */
}
.service-preview.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
.service-preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- Work ---------- */
.work { padding-top: clamp(80px, 11vw, 140px); }
.work-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.work-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 420px; }
.work-count { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--navy) !important; white-space: nowrap; }

.work-track {
  display: flex; gap: clamp(20px, 3vw, 40px);
  padding: 0 var(--gutter) 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.work-item { flex: 0 0 min(82vw, 760px); scroll-snap-align: start; }
.work-media { display: block; width: 100%; border-radius: var(--radius-l); overflow: hidden; background: var(--line); }
.work-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.work-media:hover img { transform: scale(1.04); }
.work-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; margin-top: 18px; }
.work-no { font-family: var(--display); font-weight: 700; color: var(--navy); grid-row: span 3; font-size: 15px; padding-top: 4px; }
.work-meta h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
.work-meta p { margin: 0; color: var(--muted); }
.work-cat { font-size: 14px; font-weight: 700; color: var(--navy); }

/* Pinned horizontal scroll: enabled by JS on wide screens */
.work.pinned .work-pin { position: relative; }
.work.pinned .work-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding-top: 72px;
}
.work.pinned .work-track { overflow: visible; scroll-snap-type: none; will-change: transform; padding-bottom: 0; }
.work.pinned .work-item { flex-basis: min(56vw, 760px); }
.work.pinned .work-head { margin-bottom: 32px; }
@media (max-width: 900px) {
  .work-head { grid-template-columns: 1fr; }
}

/* Project index */
.index { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(80px, 10vw, 130px); }
.index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.index-head h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.index-list { border-top: 2px solid var(--ink); }
.index-row { border-bottom: 1px solid var(--line); }
.index-row[hidden] { display: none; }
.index-row button {
  display: grid; grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1.4fr) 140px; gap: 16px; align-items: baseline;
  width: 100%; text-align: left; padding: 18px 8px; border-radius: var(--radius-s);
  transition: background-color .2s;
}
.index-row button:hover { background: var(--white); }
.index-row button:hover .index-title { text-decoration: underline; text-underline-offset: 4px; }
.index-no { font-size: 14px; font-weight: 700; color: var(--muted); }
.index-title { font-weight: 700; font-size: 17px; }
.index-sum { color: var(--muted); font-size: 15px; }
.index-cat { font-size: 14px; font-weight: 700; color: var(--navy); text-align: right; }
.index-empty { padding: 24px 8px; color: var(--muted); }
@media (max-width: 760px) {
  .index-row button { grid-template-columns: 36px minmax(0, 1fr); gap: 2px 10px; }
  .index-sum, .index-cat { grid-column: 2; text-align: left; }
}

/* ---------- Studio ---------- */
.studio { background: var(--white); padding: clamp(90px, 12vw, 170px) 0; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px 80px; }
.studio h2 { font-size: clamp(1.9rem, 4.2vw, 3.6rem); color: var(--navy); }
.studio-copy { padding-top: clamp(0px, 10vw, 160px); font-size: 18px; }
.studio-copy p { color: var(--muted); }
.studio-copy p:first-child { color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1.5; }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } .studio-copy { padding-top: 0; } }

/* ---------- Careers ---------- */
.careers { padding: clamp(90px, 11vw, 150px) 0; }
.careers .section-head p a { color: var(--navy); font-weight: 700; text-underline-offset: 4px; }
.careers .section-head p { color: var(--muted); }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.roles li { border-bottom: 1px solid var(--line); }
.roles li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.roles a {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 170px; padding: 24px; text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.role-name { font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.2; letter-spacing: -0.01em; }
.role-action { font-weight: 700; font-size: 14px; color: var(--navy); }
.roles a:hover { background: var(--navy); color: var(--white); }
.roles a:hover .role-action { color: var(--cyan); }
@media (max-width: 900px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles li:not(:nth-child(3n)) { border-right: 0; }
  .roles li:nth-child(odd) { border-right: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .roles { grid-template-columns: 1fr; }
  .roles li:nth-child(odd) { border-right: 0; }
  .roles a { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 20px 4px; }
  .role-action { flex: 0 0 auto; }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(90px, 11vw, 150px) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 80px; }
.contact-intro p { font-size: 18px; max-width: 440px; margin-top: 24px; }
.contact-mail a { color: var(--cyan); font-weight: 700; text-underline-offset: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.brief { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; color: var(--white); padding: 0; }
.optional { font-weight: 500; color: var(--muted-dark); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--white);
  background: #172a49; border: 1.5px solid var(--line-dark); border-radius: var(--radius-s);
  padding: 13px 14px; min-height: 50px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8d9bb8; } /* 5.4:1 on field bg */
.field input:hover, .field textarea:hover { border-color: #4a618a; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 234, 255, .35); }
.field [aria-invalid="true"] { border-color: #ff8a8a; }
.field-error { color: #ffb3b3; font-size: 14px; min-height: 0; }
.field-error:empty { display: none; }

.needs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.need { position: relative; }
.need input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; }
.need span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--line-dark); border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--white);
  transition: background-color .2s, border-color .2s, color .2s;
}
.need:hover span { border-color: var(--muted-dark); }
.need input:checked + span { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.need input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 3px; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { justify-self: start; min-width: 240px; }

.form-status:empty { display: none; }
.form-status p { margin: 0; padding: 16px 18px; border-radius: var(--radius-s); font-weight: 600; }
.status-ok { background: rgba(0, 234, 255, .12); color: var(--white) !important; border: 1.5px solid var(--cyan); }
.status-err { background: rgba(255, 138, 138, .12); color: #ffd0d0 !important; border: 1.5px solid #ff8a8a; }
.status-err a { color: var(--white); }

/* ---------- Footer ---------- */
/* White footer after the dark contact section; the logo appears in its original colours */
.site-footer { padding: clamp(56px, 8vw, 96px) 0 28px; background: var(--white); color: var(--ink); }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 48px; align-items: start;
}
.footer-lead {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.01em;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.25;
  color: var(--navy); max-width: 18ch; margin: 0;
}
.footer-label { font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.footer-col a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-weight: 600; text-decoration: none;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.footer-col a:hover { color: var(--navy); border-bottom-color: var(--navy); }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-lead { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .footer-top { grid-template-columns: 1fr; } }

/* Original-colour wordmark; its cyan dots follow the pointer like the hero capsule.
   Navy covers hide the logo's printed dots so only the moving ones show. */
.footer-mark { position: relative; margin-top: clamp(56px, 8vw, 104px); }
.footer-mark img { width: 100%; }
.footer-mark .cover, .footer-mark .dot {
  position: absolute; top: 50%; aspect-ratio: 1; border-radius: 50%;
}
.footer-mark .cover { width: 2.6%; background: var(--navy); transform: translate(-50%, -50%); }
.footer-mark .dot {
  width: 2.15%; background: var(--cyan);
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)));
  transition: transform .15s linear;
}
.footer-mark .cover:nth-of-type(1), .footer-mark .dot:nth-of-type(1) { left: 3.14%; }
.footer-mark .cover:nth-of-type(2), .footer-mark .dot:nth-of-type(2) { left: 11.72%; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px 24px; margin-top: 24px; font-size: 14px;
}
.footer-bottom p { margin: 0; }
.to-top {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--navy); font-weight: 700; text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.to-top:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.footer-bottom p { color: var(--muted); }

/* ---------- Project viewer ---------- */
.viewer {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 0; border: 0; border-radius: var(--radius-l);
  background: var(--white); color: var(--ink);
}
.viewer::backdrop { background: rgba(15, 29, 54, .82); }
.viewer-inner { position: relative; }
.viewer-img { width: 100%; max-height: 70vh; object-fit: contain; background: var(--paper); }
.viewer-meta { padding: 22px 26px 26px; }
.viewer-meta h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.viewer-meta p { margin: 6px 0 0; color: var(--muted); }
.viewer-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 700; font-size: 14px;
}
.viewer-close:hover { background: var(--navy); }
.viewer-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--navy); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .hero-title .line > span, .js .reveal { transform: none; clip-path: none; }
  .marquee-track { overflow-x: auto; width: auto; }
  .marquee-group[aria-hidden="true"], .marquee-toggle { display: none; }
  .marquee { overflow-x: auto; }
}
