/* ==========================================================================
   CWL — Custom Web N Logo Designs
   Main stylesheet. Sections are in page order; shared pieces come first.
   ========================================================================== */

/* ---------- Tokens ---------- */
/* Fonts, served from the theme (variable files, Latin characters). */
@font-face {
  font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 500 700; font-stretch: 100%; font-display: swap;
  src: url(../fonts/bricolage-grotesque.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/geist.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/geist-mono.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0B1B33;
  --ink-2: #24344F;
  --muted: #4B5870;
  --ground: #F5F6F8;
  --surface: #FFFFFF;
  --line: #E3E6EC;
  --line-strong: #CDD3DE;
  --field: #8A94A6;
  --chip: #F0F2F6;

  --accent: #EA580C;
  --accent-deep: #C2410C;
  --accent-soft: #FFE3D1;
  --accent-tint: #FFF1E8;
  --accent-on-dark: #FF9A62;

  --on-dark: #C9D2E3;
  --on-dark-muted: #9FB0CC;
  --dark-fill: rgba(255, 255, 255, 0.06);
  --dark-fill-2: rgba(255, 255, 255, 0.08);
  --dark-line: rgba(255, 255, 255, 0.14);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --gutter: 24px;
  --section: 104px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
[id] { scroll-margin-top: 104px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.list-reset { list-style: none; margin: 0; padding: 0; }
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 12px 16px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Layout ---------- */
.container { max-width: 1248px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--top { padding-bottom: 0; }
.section--bottom { padding-top: 0; }
.section--hero { padding-top: 20px; padding-bottom: 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 20px; grid-auto-rows: 1fr; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 48px; margin-bottom: 48px;
}
.section-head .h2 { margin-top: 16px; }
.section-head p { max-width: 420px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.center-row { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Type ---------- */
.mono-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow { color: var(--accent-deep); }
.on-dark .eyebrow { color: var(--accent-on-dark); }

.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; }
.display .line { display: block; }
.display--xl { font-size: clamp(46px, 8.4vw, 120px); line-height: 0.96; }
.display--lg { font-size: clamp(42px, 5.2vw, 76px); line-height: 1; }
.display--md { max-width: 1040px; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }

.h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(34px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -0.03em;
}
.h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.015em;
}
.accent { color: var(--accent); }
.on-dark .accent { color: var(--accent-on-dark); }

.lead { font-size: 19px; line-height: 1.55; color: var(--muted); }
.on-dark .lead { color: var(--on-dark); }

/* Page titles: a band of light keeps sweeping across the h1. The band color (--shine) depends on the background.
   Other headings stay still and fade in once on scroll (see .reveal). */
:root { --shine: var(--accent); }
.on-dark { --shine: var(--accent-on-dark); }
.panel--accent, .testimonial__intro { --shine: #fff; }
.accent { --shine: #FFC79A; }
.on-dark .accent { --shine: #FFE9DB; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1, h1 .accent {
    background-image: linear-gradient(100deg, currentColor 42%, var(--shine) 50%, currentColor 58%);
    background-size: 300% 100%; background-repeat: no-repeat;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heading-shine 5s linear infinite;
  }
  .service-hero__text > h1 { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s both, heading-shine 5s linear infinite; }
}
@keyframes heading-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  h1, h1 .accent, .service-hero__text > h1 { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 14px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.btn svg { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(11, 27, 51, 0.5); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn--accent:hover { box-shadow: 0 14px 28px -12px rgba(234, 88, 12, 0.6); }
.btn--sm { min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--xl { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #16294A; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #F56A1D; }
.btn--outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn--ghost:hover { background: var(--dark-fill-2); border-color: rgba(255, 255, 255, 0.6); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--accent-deep); font-weight: 600; font-size: 16px; text-decoration: none;
}
.link-arrow:hover { color: #9A3412; }
.link-arrow svg { transition: transform 0.15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Small parts ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 34px; padding: 0 14px 0 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.on-dark .chip { background: var(--dark-fill-2); border-color: rgba(255, 255, 255, 0.16); color: var(--on-dark); }

.icon-box {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-deep);
}
.icon-box svg { width: 24px; height: 24px; }
.icon-box--lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-box--lg svg { width: 26px; height: 26px; }
.icon-box--white { background: var(--surface); }
.icon-box--dark { width: 48px; height: 48px; border-radius: 12px; background: var(--dark-fill-2); color: var(--accent-on-dark); }
.icon-box--dark svg { width: 22px; height: 22px; }

.num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.shot-tag {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600;
}
.shot-tag span { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---------- Panels ---------- */
.panel { border-radius: 32px; padding: clamp(32px, 6vw, 72px) clamp(24px, 5vw, 64px); }
.panel--navy { background: var(--ink); color: #fff; }
.panel--white { background: var(--surface); border: 1px solid var(--line); }
.panel--accent { background: var(--accent); color: var(--ink); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card__top { display: flex; align-items: flex-start; justify-content: space-between; }
/* Card number: a navy badge. */
.card__top .num {
  display: inline-grid; place-items: center; min-width: 46px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  transition: background-color 0.3s ease;
}
.card:hover .card__top .num { background: var(--accent); }
.card .h3 { margin-top: 48px; }
.card p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.card--link:hover { border-color: var(--line-strong); box-shadow: 0 20px 40px -28px rgba(11, 27, 51, 0.35); }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Service cards (homepage) */
.svc-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Soft glow that follows the pointer (position set by main.js). */
.svc-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(234, 88, 12, 0.12), transparent 60%);
  transition: opacity 0.3s ease;
}
.svc-card:hover, .svc-card:focus-within {
  transform: translateY(-6px); border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 0 0 4px var(--accent-tint), 0 32px 60px -32px rgba(11, 27, 51, 0.4);
}
.svc-card:hover::before { opacity: 1; }
.svc-card__stage {
  position: relative; display: grid; place-items: center; height: 196px; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--line);
  background:
    radial-gradient(rgba(11, 27, 51, 0.09) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(160deg, var(--accent-tint), var(--surface) 70%);
}
.svc-card__stage::after {
  content: ""; position: absolute; left: 50%; top: 55%; width: 180px; height: 180px; border-radius: 50%;
  background: var(--accent-soft); filter: blur(40px); transform: translate(-50%, -50%);
  opacity: 0.7; transition: opacity 0.35s ease, transform 0.5s ease;
}
.svc-card:hover .svc-card__stage::after { opacity: 1; transform: translate(-50%, -50%) scale(1.25); }
.svc-card__gif {
  position: relative; z-index: 1; width: 156px; height: 156px; object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.svc-card:hover .svc-card__gif { transform: translateY(-4px) scale(1.08); }
.svc-card__num {
  position: absolute; z-index: 1; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
}
.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 14px 10px; }
.svc-card__body p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.svc-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 22px; }
.svc-card__tags li {
  padding: 5px 11px; border-radius: 999px; background: var(--chip);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
.svc-card__foot {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; transition: color 0.2s ease;
}
.svc-card:hover .svc-card__foot { color: var(--accent-deep); }
.svc-card__arrow {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--chip); color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.svc-card:hover .svc-card__arrow { background: var(--accent); color: #fff; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) {
  .svc-card:hover, .svc-card:focus-within, .svc-card:hover .svc-card__gif, .svc-card:hover .svc-card__arrow { transform: none; }
}

/* Homepage services as a bento grid: one large card (2 x 2), four small ones and one wide card. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc-card--big { grid-column: span 2; grid-row: span 2; background: var(--ink); border-color: var(--ink); color: #fff; }
.svc-card--big .svc-card__stage { flex: 1; height: auto; min-height: 300px; border-color: transparent; }
.svc-card--big .svc-card__gif { width: min(78%, 400px); height: auto; }
.svc-card--big .svc-card__body { flex: none; padding: 26px 18px 12px; }
.svc-card--big .h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.025em; }
.svc-card--big .svc-card__body p { max-width: 460px; font-size: 17px; color: var(--on-dark); }
.svc-card--big .svc-card__tags li { background: var(--dark-fill-2); color: var(--on-dark); }
.svc-card--big .svc-card__foot { border-top-color: var(--dark-line); }
.svc-card--big:hover .svc-card__foot { color: var(--accent-on-dark); }
.svc-card--big .svc-card__arrow { background: var(--dark-fill-2); color: #fff; }
.svc-card--small .svc-card__stage { height: 150px; }
.svc-card--small .svc-card__gif { width: 112px; height: 112px; }
.svc-card--small .svc-card__body { padding: 18px 10px 8px; }
.svc-card--small .h3 { font-size: 19px; }
.svc-card--small .svc-card__body p { font-size: 14.5px; margin-bottom: 18px; }
.svc-card--small .svc-card__tags { display: none; }
.svc-card--wide { grid-column: 1 / -1; flex-direction: row; }
.svc-card--wide .svc-card__stage { flex: none; width: min(36%, 380px); height: auto; min-height: 200px; }
.svc-card--wide .svc-card__body { justify-content: center; padding: 22px 22px 14px 32px; }
.svc-card--wide .h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; }
.svc-card--wide .svc-card__body p { max-width: 520px; font-size: 16.5px; }
.svc-card--wide .svc-card__foot { margin-top: 0; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card--big { grid-row: auto; }
  .svc-card--big .svc-card__stage { min-height: 240px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .svc-card--big { grid-column: auto; }
  .svc-card--wide { flex-direction: column; }
  .svc-card--wide .svc-card__stage { width: auto; }
  .svc-card--wide .svc-card__body { padding: 22px 14px 10px; }
}

.card--compact { padding: 26px; }
.card--compact .h3 { margin-top: 40px; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header { padding-top: 20px; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 10px 12px 10px 20px;
}
.nav__logo { display: inline-flex; align-items: center; min-height: 56px; }
.nav__logo img { height: 56px; width: auto; }
.nav__menu { display: flex; flex: 1; align-items: center; gap: 8px 24px; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav__links > li > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500;
  transition: background-color 0.15s ease;
}
.nav__links > li > a:hover { background: var(--ground); }
.nav__links > li > a.is-active,
.nav__links .current-menu-item > a,
.nav__links .current-page-ancestor > a,
.nav__links .current_page_item > a { color: var(--accent-deep); background: var(--accent-tint); font-weight: 600; }

.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink);
}

@media (max-width: 860px) {
  .nav { padding: 10px 12px 10px 16px; }
  .nav__toggle { display: inline-flex; }
  .nav__menu { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; padding: 8px 0 6px; }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; align-items: stretch; margin: 0; }
  .nav__links > li > a { min-height: 48px; }
  .nav__menu .btn { width: 100%; }
}

/* Sticky header: main.js adds .is-scrolled once the page has moved, and the bar gets smaller. */
.site-header { position: sticky; top: 0; z-index: 60; transition: padding 0.3s ease; }
.admin-bar .site-header { top: 32px; }
.nav { transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; view-transition-name: site-nav; }
.nav__logo { transition: min-height 0.3s ease; }
.nav__logo img { transition: height 0.3s ease; }
.site-header.is-scrolled { padding-top: 10px; }
.is-scrolled .nav {
  padding-block: 4px; background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 18px 40px -24px rgba(11, 27, 51, 0.45);
}
.is-scrolled .nav__logo { min-height: 44px; }
.is-scrolled .nav__logo img { height: 40px; }
@media (max-width: 860px) {
  .nav__menu.is-open { max-height: calc(100dvh - 110px); overflow-y: auto; }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

/* Page transitions: the old page fades up and out, the new one fades in, and the header stays in place.
   Browsers without cross-page view transitions only get the fade-in of the page content. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 0.25s ease both; }
::view-transition-new(root) { animation: page-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
main { animation: main-in 0.5s ease both; }
@keyframes main-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  main { animation: none; }
}

/* Cards: a small lift on hover. Blocks still fading in on scroll (.reveal) keep that transition until it ends. */
.card:not(.reveal), .step:not(.reveal), .mv__card:not(.reveal), .duo__card:not(.reveal), .service-included:not(.reveal), .testimonial__card:not(.reveal) {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover, .step:hover, .mv__card:hover, .duo__card:hover, .service-included:hover, .testimonial__card:hover {
  transform: translateY(-4px); box-shadow: 0 26px 48px -30px rgba(11, 27, 51, 0.4);
}
.card:hover, .step:not(.is-active):hover { border-color: var(--line-strong); }
.card .icon-box, .step__num, .duo__card .icon-box { transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .icon-box { background: var(--accent); color: #fff; transform: scale(1.06); }
.duo__card:hover .icon-box { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:hover svg, .card:hover, .step:hover, .mv__card:hover, .duo__card:hover, .service-included:hover, .testimonial__card:hover,
  .card:hover .icon-box, .duo__card:hover .icon-box { transform: none; }
}

/* ---------- Services mega menu ---------- */
.nav { position: relative; }
.has-mega { display: flex; align-items: center; }
.nav__links > .has-mega > a { padding-right: 6px; }
.nav__mega-toggle {
  display: grid; place-items: center; width: 28px; height: 44px; margin-left: -2px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted);
}
.nav__mega-toggle svg { transition: transform 0.2s ease; }
.has-mega.is-open .nav__mega-toggle svg { transform: rotate(180deg); }

.mega__panel {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 40px 80px -40px rgba(11, 27, 51, 0.45);
}
.mega__main { padding: 12px 8px 4px; }
.mega__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 14px 12px; }
.mega__head .link-arrow { font-size: 14px; }
.mega__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.mega__item {
  display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 14px; border-radius: 16px;
  color: var(--ink); text-decoration: none; transition: background-color 0.2s ease;
}
.mega__item:hover { background: var(--ground); }
.mega__item .icon-box { width: 44px; height: 44px; border-radius: 12px; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.mega__item .icon-box svg { width: 22px; height: 22px; }
.mega__item:hover .icon-box { background: var(--accent); color: #fff; transform: scale(1.06); }
.mega__item strong { display: block; font-size: 15px; font-weight: 600; }
.mega__desc { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.mega__aside {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 24px; border-radius: 16px; background: var(--ink); color: var(--on-dark); font-size: 14.5px; line-height: 1.5;
}
.mega__title {
  margin: 12px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.15;
  letter-spacing: -0.02em; color: #fff;
}

@media (min-width: 861px) {
  .mega {
    position: absolute; z-index: 50; top: 100%; left: 0; right: 0; padding-top: 10px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  .has-mega:hover > .mega,
  .has-mega.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .has-mega:hover .nav__mega-toggle svg { transform: rotate(180deg); }
}
@media (max-width: 1040px) and (min-width: 861px) {
  .mega__panel { grid-template-columns: minmax(0, 1fr); }
  .mega__aside { display: none; }
}
@media (max-width: 860px) {
  .has-mega { flex-wrap: wrap; }
  .nav__links > .has-mega > a { flex: 1; }
  .nav__mega-toggle { width: 48px; height: 48px; margin: 0; }
  .mega { display: none; flex: 1 1 100%; }
  .has-mega.is-open > .mega { display: block; }
  .mega__panel { grid-template-columns: minmax(0, 1fr); padding: 4px; border-radius: 16px; box-shadow: none; }
  .mega__main { padding: 0; }
  .mega__head, .mega__aside { display: none; }
  .mega__list { grid-template-columns: minmax(0, 1fr); }
  .mega__item { padding: 10px; }
}

/* ==========================================================================
   Home — hero
   ========================================================================== */
.hero-home { padding-top: 64px; padding-bottom: 88px; }
.hero-home .display { margin-top: 28px; }
.hero-home__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 28px 48px; margin-top: 40px;
}
.hero-home__row .lead { max-width: 540px; font-size: 20px; }

.showcase { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 64px; }
.browser-card {
  flex: 1.45 1 520px; min-width: 0; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 32px 64px -36px rgba(11, 27, 51, 0.4);
}
.browser-card__bar {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.browser-card__dots { display: flex; gap: 6px; }
.browser-card__dots i { width: 10px; height: 10px; border-radius: 50%; background: #D5DAE3; }
.browser-card img { width: 100%; aspect-ratio: 16 / 10; max-height: 416px; object-fit: cover; }
.browser-card__caption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 20px; border-top: 1px solid var(--line);
  font-weight: 600; font-size: 16px;
}
.pill {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--chip); font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--ink-2);
}

.showcase__side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.shot { position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.shot img { width: 100%; height: 272px; object-fit: cover; }
.showcase__tiles {
  flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px;
}
.tile { border-radius: 24px; padding: 22px; }
.tile--navy { background: var(--ink); color: #fff; }
.tile--navy .mono-label { font-size: 11px; color: var(--accent-on-dark); }
.tile__steps { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 500; }
.tile__steps li { display: flex; align-items: center; gap: 12px; height: 28px; }
.tile__steps i { font-family: var(--font-mono); font-size: 12px; font-style: normal; color: var(--on-dark-muted); }
.tile__steps li:first-child i { color: var(--accent-on-dark); }
.tile--peach { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; background: var(--accent-soft); }
.tile__quote { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.tile__by { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.tile__by strong { display: block; font-weight: 600; }

/* Typed word in the hero heading (main.js); the caret is a plain block so it keeps its color over the gradient text. */
.typed { white-space: nowrap; }
.typed::after {
  content: ""; display: inline-block; width: 0.06em; height: 0.82em; margin-left: 0.06em; vertical-align: -0.04em;
  background: var(--accent); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Hero layout: text on the left, project showcase on the right. */
.hero-home__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 40px 56px; }
.hero-home__grid .display--xl { font-size: clamp(44px, 5.8vw, 84px); }
.hero-home__grid .hero-home__row { flex-direction: column; align-items: flex-start; margin-top: 32px; }
.hero-home__grid .hero-show { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.hero-home__grid .hero-show__side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-home__grid .hero-show__float { min-height: 170px; }
.hero-home .stats { margin-top: 56px; }
@media (max-width: 1000px) {
  .hero-home__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Hero showcase: a large card that fades through projects, two floating cards, and the numbers below. */
.hero-show { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-top: 64px; }
.hero-show__main {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 40px 80px -44px rgba(11, 27, 51, 0.5);
}
.hero-show__dots { display: flex; gap: 6px; margin-left: auto; }
.hero-show__dots i { width: 18px; height: 4px; border-radius: 2px; background: #D5DAE3; transition: background-color 0.4s ease, width 0.4s ease; }
.hero-show__dots i.is-active { width: 30px; background: var(--accent); }
.hero-show__slides { position: relative; display: grid; flex: 1; }
.hero-show__slide {
  grid-area: 1 / 1; position: relative; display: block; overflow: hidden; color: var(--ink); text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.hero-show__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.hero-show__slide img { width: 100%; height: 100%; min-height: 320px; aspect-ratio: 16 / 9.4; object-fit: cover; transform: scale(1.06); transition: transform 6s ease-out; }
.hero-show__slide.is-active img { transform: none; }
.hero-show__caption {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 16px; box-shadow: 0 16px 32px -18px rgba(11, 27, 51, 0.5);
}
.hero-show__side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.hero-show__float {
  position: relative; display: block; overflow: hidden; min-height: 180px; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 30px 60px -40px rgba(11, 27, 51, 0.5); animation: float 7s ease-in-out infinite;
}
.hero-show__float:last-child { animation-duration: 9s; animation-delay: -3s; }
.hero-show__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero-show__float:hover img { transform: scale(1.05); }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
}
.stats li { padding: 26px 28px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4vw, 54px); line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.stats li:first-child strong { color: var(--accent); }
.stats span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-show { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .hero-show__side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li { padding: 20px; }
  .stats li:nth-child(odd) { border-left: 0; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .typed::after, .hero-show__float { animation: none; }
  .hero-show__slide img { transform: none; }
}

/* Client logos: a sliding row of logo tiles (the track holds the logos four times, so half of it is one full loop). */
.logo-strip__label { padding-top: 32px; color: var(--muted); }
.marquee--logos { padding-block: 18px 32px; }
.marquee--logos .marquee__track { gap: 16px; animation-duration: 45s; }
@keyframes marquee-logos { to { transform: translateX(calc(-50% - 8px)); } }
.marquee--logos .marquee__track { animation-name: marquee-logos; }
.logo-tile {
  flex: none; width: 190px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
}
/* The logo sits small in the middle of each image, so it is zoomed in. */
.logo-tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.7); filter: grayscale(1); opacity: 0.75; transition: filter 0.3s ease, opacity 0.3s ease; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* ---------- Client strip ---------- */
.logo-strip { border-block: 1px solid var(--line); }
.logo-strip__inner { display: flex; flex-direction: column; gap: 16px; padding-block: 32px; }
.logo-strip .mono-label { color: var(--muted); }
.logo-strip__list {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--muted);
}

/* ---------- Home — about panel ---------- */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split .h2 { margin-top: 20px; }
.split .btn { margin-top: 32px; }
.split p { font-size: 18px; line-height: 1.65; color: var(--on-dark); }

.value-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 56px;
}
.value {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--dark-fill); border: 1px solid var(--dark-line); border-radius: 20px;
  font-size: 17px; font-weight: 500; line-height: 1.3;
}

/* ---------- Portfolio ---------- */
.filter {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 6px;
  background: var(--ground); border: 1px solid var(--line); border-radius: 16px;
}
.filter button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.filter button:hover { background: var(--line); }
.filter button:active { transform: scale(0.96); }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }

.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px 20px; }
.work-item__media {
  position: relative; overflow: hidden; aspect-ratio: 539 / 305; border-radius: 20px; border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.work-item__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.35), transparent 55%);
  transition: opacity 0.35s ease;
}
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.work-item:hover .work-item__media { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 40px -18px rgba(11, 18, 32, 0.45); }
.work-item:hover .work-item__media::after { opacity: 1; }
.work-item:hover img { transform: scale(1.06); }
.work-item figcaption { transition: color 0.2s ease; }
.work-item:hover figcaption { color: var(--accent-deep); }
/* Homepage: two rows of projects that keep sliding in opposite directions. Each track holds its cards twice,
   so moving it by half its length (plus half a gap) lands exactly where it started. Hover pauses a row. */
.marquee {
  overflow: hidden; padding-block: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee + .marquee { margin-top: 12px; }
.marquee__track { display: flex; gap: 20px; width: max-content; animation: marquee 80s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; width: clamp(260px, 30vw, 420px); }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
}
.portfolio-page { padding-top: 64px; }
.portfolio-page .display { margin-top: 16px; }

.work-item__link { display: block; color: inherit; text-decoration: none; }
.work-item__view {
  position: absolute; z-index: 1; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.work-item__view svg { width: 16px; height: 16px; }
.work-item:hover .work-item__view, .work-item__link:focus-visible .work-item__view { opacity: 1; transform: none; }
.work-item.is-entering { animation: work-in 0.45s ease both; animation-delay: var(--work-delay, 0s); }
@keyframes work-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@media (prefers-reduced-motion: reduce) {
  .work-item.is-entering { animation: none; }
  .work-item:hover .work-item__media, .work-item:hover img { transform: none; }
}
.work-item figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px;
  font-weight: 600; font-size: 16px;
}
.work-item figcaption span { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--muted); }

/* ---------- Process cards ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.steps--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.step.is-active { border: 2px solid var(--accent); padding: 25px; }
/* Process line: main.js sets --progress (0 to 1) from the scroll position and lights the steps in turn. */
.process-line { position: relative; height: 4px; margin: 0 6px 28px; border-radius: 2px; background: var(--line); }
.process-line span {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent-on-dark), var(--accent));
  transform: scaleX(var(--progress, 0)); transition: transform 0.3s ease-out;
}
.process-line::after {
  content: ""; position: absolute; top: 50%; left: calc(var(--progress, 0) * 100%); width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px rgba(234, 88, 12, 0.18); transform: translate(-50%, -50%);
  transition: left 0.3s ease-out;
}
.steps[data-process] .step.is-active { box-shadow: 0 26px 48px -32px rgba(234, 88, 12, 0.55); }
.step__num { transition: background-color 0.35s ease; }
.step__top { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.step__top::after { content: ""; order: 1; flex: 1; height: 1px; background: var(--line); }
.step__top svg { order: 2; width: 22px; height: 22px; }
.step.is-active .step__top { color: var(--accent-deep); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px;
  border-radius: 999px; background: var(--chip); color: var(--ink);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
}
.step.is-active .step__num { background: var(--accent); }
.step .h3 { margin-top: 40px; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.steps--3 .step .h3 { font-size: 22px; letter-spacing: -0.015em; white-space: normal; }
.step p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonial { display: flex; flex-wrap: wrap; gap: 20px; }
.testimonial__intro {
  flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  background: var(--accent); border-radius: 32px; padding: clamp(28px, 4vw, 48px);
}
.testimonial__intro .mono-label { font-weight: 500; color: var(--ink); }
.testimonial__intro h2 {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(34px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.03em;
}
.testimonial__card {
  position: relative; flex: 1.4 1 480px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(28px, 4vw, 48px);
}
.testimonial__mark {
  height: 40px; padding-top: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 40px; color: var(--accent);
}
/* Slides share one grid cell, so the card keeps the height of the longest quote and slides can cross-fade. */
.testimonial__slides { display: grid; }
.testimonial__slide {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.5s;
}
.testimonial__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0.12s, 0.12s, 0s; }
.testimonial__slide blockquote {
  margin-top: 20px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.32; letter-spacing: -0.015em;
}
.testimonial__person { display: flex; align-items: center; gap: 14px; min-height: 48px; margin-top: 40px; padding-right: 190px; }
.testimonial__person strong { display: block; font-weight: 600; font-size: 17px; }
.testimonial__person span span { display: block; font-size: 15px; color: var(--muted); }
.testimonial__avatar {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
}
.testimonial__count { margin-right: 8px; color: var(--muted); }
.testimonial__controls {
  position: absolute; right: clamp(28px, 4vw, 48px); bottom: clamp(28px, 4vw, 48px);
  display: flex; align-items: center; gap: 8px;
}
.round-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.round-btn--dark { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- Call to action ---------- */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
}
.cta__text { flex: 1 1 480px; min-width: 0; }
.cta h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.035em;
}
.cta p { max-width: 520px; margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--on-dark); }
.cta.panel--accent h2 { font-size: clamp(34px, 3.7vw, 52px); line-height: 1.04; color: #fff; }
.cta.panel--accent p { font-weight: 500; color: var(--ink); }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.about-hero .display { margin-top: 28px; }
.about-hero__row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 40px 56px; margin-top: 56px; }
.about-hero__text { flex: 1 1 500px; min-width: 0; }
.about-hero__text p { font-size: 17px; line-height: 1.65; color: var(--on-dark); }
.about-hero__text p:first-child { font-size: 19px; line-height: 1.6; color: #fff; }
.about-hero__text p + p { margin-top: 16px; }
.about-hero__text .btn-row { margin-top: 32px; }
.cover-shot { position: relative; flex: 1 1 420px; min-width: 0; min-height: 320px; border-radius: 24px; overflow: hidden; }
.cover-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

.disciplines {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px 16px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line);
  font-size: 15px; font-weight: 500;
}
.disciplines li { display: flex; flex-direction: column; gap: 4px; }
.disciplines i { font-family: var(--font-mono); font-size: 12px; font-style: normal; color: var(--accent-on-dark); }

.mv { display: flex; flex-wrap: wrap; gap: 20px; }
.mv__card {
  flex: 1 1 400px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 3.4vw, 44px);
}
.mv__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.mv__card h2 {
  margin-top: 48px;
  font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -0.025em;
}
.mv__card p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.mv__card--peach { background: var(--accent-soft); border-color: var(--accent-soft); }
.mv__card--peach .mv__top, .mv__card--peach p { color: var(--ink-2); }

/* ==========================================================================
   Services
   ========================================================================== */
.services-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; }
.services-hero__text { flex: 1 1 560px; min-width: 0; }
.services-hero .display { margin-top: 28px; }
.services-hero .lead { max-width: 540px; margin-top: 24px; }
.services-hero .btn-row { margin-top: 36px; }

.index-card {
  flex: 1 1 420px; min-width: 0;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 12px 24px;
  box-shadow: 0 24px 48px -28px rgba(11, 27, 51, 0.35);
}
.index-card .mono-label { display: flex; align-items: center; height: 44px; color: var(--muted); }
.index-card a {
  display: flex; align-items: center; gap: 16px; min-height: 56px; border-top: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.index-card a i { font-family: var(--font-mono); font-size: 13px; font-style: normal; color: var(--accent-deep); }
.index-card a span {
  flex: 1; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em;
}
.index-card a svg { color: var(--muted); transition: transform 0.15s ease; }
.index-card a:hover span { color: var(--accent-deep); }
.index-card a:hover svg { transform: translateY(3px); }

.service-detail { border-radius: 28px; padding: clamp(24px, 3vw, 36px); }
.service-detail__gif {
  flex: none; width: 112px; height: 112px; margin: -12px 0 0 -12px; object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-detail:hover .service-detail__gif { transform: scale(1.08) rotate(-3deg); }
.service-detail h2 {
  margin-top: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.25; letter-spacing: -0.02em;
}
.service-detail > p { margin-top: 12px; font-size: 17px; }
.included { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.included .mono-label { color: var(--muted); }
.checklist {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 20px;
  margin-top: 14px; font-size: 15px; font-weight: 500;
}
.checklist li { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.checklist svg { width: 16px; height: 16px; color: var(--accent-deep); }
.service-detail .link-arrow { margin-top: 28px; }

.timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px 20px; margin-top: 48px;
}
.timeline li { padding-top: 20px; border-top: 2px solid #D5DAE3; }
.timeline li.is-active { border-top-color: var(--accent); }
.timeline li.is-active .num { color: var(--accent-deep); }
.timeline .h3 { margin-top: 20px; }
.timeline p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.panel--white .h2 { margin-top: 16px; }

/* ---------- Service page ---------- */
.service-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center;
  gap: 40px 56px; overflow: hidden;
}
.service-hero::before {
  content: ""; position: absolute; right: -160px; top: -200px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.32), transparent 65%); pointer-events: none;
}
.service-hero__text, .service-hero__stage { position: relative; }
.service-hero__text > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.service-hero__text > :nth-child(2) { animation-delay: 0.08s; }
.service-hero__text > :nth-child(3) { animation-delay: 0.16s; }
.service-hero__text > :nth-child(4) { animation-delay: 0.24s; }
.service-hero__text > :nth-child(5) { animation-delay: 0.32s; }
.crumbs { display: flex; align-items: center; gap: 10px; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span:last-child { color: var(--accent-on-dark); }
.service-hero .display { margin-top: 24px; }
.service-hero__tagline {
  max-width: 600px; margin-top: 24px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(21px, 2.1vw, 28px); line-height: 1.2;
  letter-spacing: -0.02em; color: #fff;
}
.service-hero .lead { max-width: 600px; margin-top: 16px; font-size: 18px; }
.service-hero .btn-row { margin-top: 36px; }
.service-hero__stage {
  display: grid; place-items: center; aspect-ratio: 1 / 0.92; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(rgba(11, 27, 51, 0.09) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(160deg, var(--accent-tint), var(--surface) 75%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  animation: stage-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
.service-hero__stage img { width: min(78%, 340px); height: auto; animation: float 6s ease-in-out infinite; }
.service-hero__num {
  position: absolute; top: 18px; left: 18px; padding: 5px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes float { 50% { transform: translateY(-10px); } }

.service-offer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; gap: 32px 64px; }
.service-offer .h2 { margin-top: 16px; }
.service-offer p { margin-top: 24px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.service-included {
  padding: clamp(24px, 3vw, 36px); border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(11, 27, 51, 0.35);
}
.service-included .mono-label { color: var(--muted); }
.service-included__list { margin: 12px 0 16px; }
.service-included__list li {
  display: flex; align-items: center; gap: 14px; min-height: 56px; border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 500;
}
.service-included__list li span {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
}
.service-included__list svg { width: 14px; height: 14px; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.duo__card {
  padding: clamp(28px, 3.4vw, 44px); border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line);
}
.duo__card--navy { background: var(--ink); border-color: var(--ink); color: #fff; }
.duo__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.duo__card--navy .duo__top { color: var(--on-dark-muted); }
.duo__card h2 {
  margin-top: 40px;
  font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -0.025em;
}
.duo__card p { margin-top: 14px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.duo__card--navy p { color: var(--on-dark); }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.mini-card {
  position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mini-card:hover {
  transform: translateY(-5px); border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 0 0 4px var(--accent-tint), 0 28px 50px -30px rgba(11, 27, 51, 0.4);
}
.mini-card .icon-box { transition: background-color 0.25s ease, color 0.25s ease; }
.mini-card:hover .icon-box { background: var(--accent); color: #fff; }
.mini-card strong { margin-top: 28px; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.mini-card__desc { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.mini-card__arrow {
  position: absolute; top: 22px; right: 22px; color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.mini-card:hover .mini-card__arrow { transform: translateX(4px); color: var(--accent-deep); }

/* ---------- Project page ---------- */
.project-hero { padding-top: 56px; }
.project-hero__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.project-hero .display { margin-top: 20px; }
.crumbs--light { color: var(--muted); }
.crumbs--light a { color: var(--ink-2); }
.crumbs--light a:hover { color: var(--ink); }
.crumbs--light span:last-child { color: var(--accent-deep); }
.project-cover {
  margin-top: 40px; overflow: hidden; border-radius: 32px; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -48px rgba(11, 27, 51, 0.45);
  animation: stage-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.12s both;
}
.project-cover img { width: 100%; height: auto; }
.project-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0 32px; margin: 32px 0 0;
  border-top: 1px solid var(--line-strong);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.24s both;
}
.project-meta > div { padding: 18px 0; }
.project-meta dt { color: var(--muted); }
.project-meta dd { margin: 8px 0 0; font-size: 17px; font-weight: 600; }
.project-meta a { color: var(--accent-deep); text-decoration: none; }
.project-meta a:hover { text-decoration: underline; }

.project-about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 24px 64px; }
.project-about .h2 { margin-top: 16px; }
.project-about__text p { font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.project-about__text p + p { margin-top: 22px; color: var(--muted); }

/* Thumbnail galleries (300px source images) keep small tiles so they stay sharp. */
.project-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.project-gallery figure {
  overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.project-gallery figure:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 24px 44px -26px rgba(11, 27, 51, 0.45); }
.project-gallery img { width: 100%; aspect-ratio: 300 / 169; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.project-gallery figure:hover img { transform: scale(1.05); }
/* Full-size images: two columns, shown uncropped; click opens the image larger (lightbox in main.js). */
.project-gallery--large { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.project-gallery--large figure { border-radius: 24px; }
.project-gallery--large .is-wide { grid-column: 1 / -1; }
.project-gallery--large a { display: block; cursor: zoom-in; }
.project-gallery--large img { aspect-ratio: auto; height: auto; }
.project-gallery--large figure:hover img { transform: scale(1.025); }
@media (max-width: 700px) {
  .project-gallery--large { grid-template-columns: minmax(0, 1fr); }
}

.lightbox {
  max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; cursor: zoom-out;
}
.lightbox::backdrop { background: rgba(11, 27, 51, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lightbox-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.lightbox img { width: auto; max-width: 94vw; height: auto; max-height: 92dvh; border-radius: 16px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7); }
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.96); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: none; }
}

.next-project {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 20px 28px 20px clamp(24px, 4vw, 48px);
  border-radius: 32px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.next-project:hover { border-color: rgba(234, 88, 12, 0.45); box-shadow: 0 0 0 4px var(--accent-tint), 0 32px 60px -36px rgba(11, 27, 51, 0.4); }
.next-project__text { flex: 1 1 280px; min-width: 0; }
.next-project .mono-label { color: var(--muted); }
.next-project strong {
  display: block; margin-top: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.03em;
  transition: color 0.25s ease;
}
.next-project:hover strong { color: var(--accent-deep); }
.next-project__cat { display: block; margin-top: 8px; color: var(--muted); }
.next-project__media { flex: 0 1 300px; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 20px; }
.next-project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.next-project:hover .next-project__media img { transform: scale(1.06); }
.next-project__arrow {
  display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: #fff; transition: background-color 0.25s ease, transform 0.25s ease;
}
.next-project:hover .next-project__arrow { background: var(--accent); transform: translateX(6px); }

@media (max-width: 900px) {
  .project-hero { padding-top: 32px; }
  .project-cover { border-radius: 24px; }
  .project-about { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .project-hero__head, .project-cover, .project-meta { animation: none; }
  .project-gallery figure:hover, .project-gallery figure:hover img, .next-project:hover .next-project__media img, .next-project:hover .next-project__arrow { transform: none; }
}

/* Scroll reveal: main.js adds .reveal to [data-reveal] blocks below the fold, then .is-visible as they scroll in. */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .service-hero, .service-offer { grid-template-columns: minmax(0, 1fr); }
  .service-hero__stage { aspect-ratio: 1 / 0.7; }
  .service-hero__stage img { width: min(56%, 240px); }
}
@media (prefers-reduced-motion: reduce) {
  .service-hero__text > *, .service-hero__stage, .service-hero__stage img { animation: none; }
  .mini-card:hover { transform: none; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-panel { display: flex; flex-wrap: wrap; align-items: stretch; gap: 48px 56px; padding: clamp(24px, 5vw, 64px); }
.contact-panel__info {
  flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.contact-panel .display { margin-top: 28px; }
.contact-panel .lead { max-width: 440px; margin-top: 24px; }

.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--dark-fill); border: 1px solid var(--dark-line); border-radius: 18px;
}
.contact-list .icon-box--dark { width: 44px; height: 44px; }
.contact-list .mono-label { display: block; font-size: 11px; color: var(--on-dark-muted); }
.contact-list strong, .contact-list a { font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

.form-card {
  flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 20px;
  background: var(--surface); color: var(--ink); border-radius: 24px; padding: clamp(24px, 3.2vw, 40px);
}
.form-card__head { margin-bottom: 8px; }
.form-card__head h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.25; letter-spacing: -0.02em;
}
.form-card__head p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.form-card label, .form-card legend { font-size: 14px; font-weight: 600; }
.form-card fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-card legend { padding: 0; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="url"],
.form-card select,
.form-card textarea {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--field); border-radius: 12px; background: var(--surface);
  font: inherit; font-size: 16px; color: var(--ink);
}
.form-card textarea { height: 132px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.form-card input:focus-visible, .form-card textarea:focus-visible, .form-card select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent-deep);
}
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px 16px; margin-top: 10px; }
.checks label {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: 12px; background: var(--surface);
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.checks label:has(input:checked) { border-color: var(--accent-deep); background: var(--accent-tint); }
.checks input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent-deep); }
.form-card .btn { margin-top: 8px; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 16px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.form-notice--ok { background: #E7F6EC; color: #14532D; }
.form-notice--error { background: #FDECEC; color: #7F1D1D; }
.form-notice--info { background: var(--accent-tint); color: #7C2D12; }

/* ---------- Contact panel (slides in from the right) and its tab ---------- */
html:has(.popup[open]), html:has(.lightbox[open]) { overflow: hidden; }
.side-tab {
  position: fixed; z-index: 40; top: 50%; right: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border: 0; border-radius: 14px 14px 0 0; background: var(--accent); color: var(--ink);
  font-size: 15px; font-weight: 600; white-space: nowrap;
  transform: translateY(-50%) rotate(-90deg); transform-origin: 100% 100%;
  box-shadow: 0 -10px 30px -12px rgba(11, 27, 51, 0.45);
  transition: padding 0.25s ease, background-color 0.2s ease;
}
.side-tab svg { width: 18px; height: 18px; transform: rotate(90deg); }
.side-tab:hover { padding-bottom: 20px; background: #F56A1D; }
html:has(.popup[open]) .side-tab { visibility: hidden; }

.popup {
  position: fixed; inset: 0 0 0 auto; width: min(520px, 100%); height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 0; border-radius: 28px 0 0 28px; background: var(--surface); color: var(--ink);
  box-shadow: -40px 0 100px -40px rgba(11, 27, 51, 0.6);
}
.popup::backdrop { background: rgba(11, 27, 51, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.popup[open] { animation: drawer-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.popup[open]::backdrop { animation: popup-fade 0.4s ease; }
.popup.is-closing { animation: drawer-out 0.35s cubic-bezier(0.6, 0, 0.8, 0.2) forwards; }
.popup.is-closing::backdrop { animation: popup-fade 0.35s ease reverse forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@keyframes popup-fade { from { opacity: 0; } }
.popup__close {
  position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0; border: 1px solid var(--dark-line); border-radius: 50%;
  background: var(--dark-fill-2); color: #fff; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.popup__close:hover { background: #fff; color: var(--ink); transform: rotate(90deg); }
.popup__grid { display: flex; flex-direction: column; min-height: 100%; }
.popup__aside { padding: clamp(24px, 4vw, 36px); padding-right: 72px; background: var(--ink); color: var(--on-dark); }
.popup__aside h2 {
  margin-top: 20px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 34px); line-height: 1.08;
  letter-spacing: -0.03em; color: #fff;
}
.popup__aside p { margin-top: 12px; font-size: 15.5px; line-height: 1.55; }
.popup__aside .contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 24px -36px 0 0; }
.popup__aside .contact-list li { gap: 0; padding: 10px 14px; border-radius: 14px; }
.popup__aside .contact-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.popup__aside .contact-list .icon-box { display: none; }
.popup__aside .contact-list strong, .popup__aside .contact-list a { font-size: 14.5px; }
.popup__form { flex: 1; border-radius: 0; }
.popup__form textarea { height: 110px; }
@media (max-width: 600px) {
  .popup { border-radius: 0; }
  .popup__aside p { display: none; }
  .side-tab { padding: 10px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .popup[open], .popup[open]::backdrop, .popup.is-closing, .popup.is-closing::backdrop { animation: none; }
}

/* Contact Form 7, when used instead of the built-in form */
.form-card .wpcf7 form { display: flex; flex-direction: column; gap: 20px; }
.form-card .wpcf7 p { margin: 0; }
.form-card .wpcf7 input[type="submit"] {
  width: 100%; min-height: 56px; border: 0; border-radius: 14px;
  background: var(--accent); color: var(--ink); font: inherit; font-weight: 600; font-size: 17px; cursor: pointer;
}
.form-card .wpcf7 input[type="submit"]:hover { background: #F56A1D; }
.form-card .wpcf7 input[type="submit"]:disabled { opacity: 0.7; cursor: progress; }
.form-card .wpcf7-form-control-wrap { display: block; }
.form-card .wpcf7-list-item { display: block; margin: 0; }
.form-card .wpcf7-not-valid { border-color: #DC2626 !important; }
.form-card .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 500; color: #B91C1C; }
.form-card .wpcf7 form .wpcf7-response-output {
  margin: 0; padding: 14px 16px; border: 0; border-radius: 12px;
  background: #FDECEC; color: #7F1D1D; font-size: 15px; font-weight: 500;
}
.form-card .wpcf7 form.sent .wpcf7-response-output { background: #E7F6EC; color: #14532D; }
.form-card .wpcf7-spinner { margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
/* Dark footer: a large contact line, the link columns with social icons, and a giant wordmark cut off at the bottom. */
.site-footer {
  overflow: hidden; padding: clamp(48px, 6vw, 80px) 0 0; border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  background: var(--ink); color: var(--on-dark);
}
.footer__top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px;
  margin-bottom: 56px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line);
}
.footer__top .mono-label { color: var(--accent-on-dark); }
.footer__mail {
  display: inline-block; margin-top: 14px; padding-bottom: 6px; overflow-wrap: anywhere;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 4.2vw, 58px); line-height: 1.05; letter-spacing: -0.03em;
  color: #fff; text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.3s ease;
}
a.footer__mail:hover { background-size: 100% 3px; color: var(--accent-on-dark); }
.footer__phones { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-bottom: 8px; }
.footer__phones a { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.01em; color: #fff; text-decoration: none; transition: color 0.2s ease; }
.footer__phones a:hover { color: var(--accent-on-dark); }
@media (max-width: 700px) {
  .footer__phones { align-items: flex-start; }
}
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px 32px; }
.footer__logo-chip { display: inline-flex; padding: 10px 16px; border-radius: 18px; background: #fff; }
.footer__logo { height: 68px; width: auto; }
.footer__blurb { max-width: 300px; margin-top: 20px; font-size: 15px; line-height: 1.6; color: var(--on-dark); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.socials > * {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--dark-fill); border: 1px solid var(--dark-line); color: #fff;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.socials > *:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer__col { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.footer__col .mono-label { margin-bottom: 8px; color: var(--on-dark-muted); }
.footer__col a, .footer__col span, .footer__col li {
  display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--on-dark); text-decoration: none;
}
.footer__col li a { min-height: 0; }
.footer__col a { transition: color 0.2s ease, transform 0.25s ease; }
.footer__col a:hover { color: #fff; transform: translateX(4px); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line);
  font-size: 14px; color: var(--on-dark-muted);
}
.footer__wordmark {
  margin: 24px 0 -0.14em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(150px, 33vw, 520px); line-height: 0.78; letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.06);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer__wordmark {
    color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 78%);
    -webkit-background-clip: text; background-clip: text;
  }
}
@media (prefers-reduced-motion: reduce) {
  .socials > *:hover, .footer__col a:hover { transform: none; }
}

/* ==========================================================================
   Default WordPress pages and posts (page.php, index.php, 404.php)
   ========================================================================== */
.plain { max-width: 800px; }
.plain__title { margin-top: 16px; }
.entry-content { margin-top: 32px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.entry-content a:not(.btn) { color: var(--accent-deep); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content img { border-radius: 16px; }
.post-list { display: grid; gap: 20px; margin-top: 40px; }
.post-list .card .h3 { margin-top: 0; }
.alignwide { max-width: 1200px; }
.wp-caption-text, .screen-reader-text { font-size: 14px; color: var(--muted); }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  :root { --section: 72px; }
  .hero-home { padding-top: 40px; padding-bottom: 64px; }
  .showcase { margin-top: 48px; }
  .section-head { margin-bottom: 32px; }
  .step .h3 { white-space: normal; }
  .testimonial__person { padding-right: 0; }
  .testimonial__controls { position: static; margin-top: 24px; }
}
