/* ============================================================
   NOBLEINK: Front page
   White, editorial, one centred 960px column. Floating nav pill,
   blurred wordmark hero, full-bleed work grid, list sections.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('inter.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --fg: #171717;
  --muted: #848581;
  --faint: #c0c0c0;
  --blue: #12a7ff;
  --blue-wash: rgba(18, 167, 255, 0.1);
  --green: #22c55e;
  --s1: #fafafa;
  --s2: #f7f7f7;
  --s3: #f2f2f2;
  --line: #ececec;
  --pill: rgba(245, 245, 245, 0.8);
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, p, ul, ol { margin: 0; }
h1, h2, h3, h4, h5 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }

.col { width: min(960px, 100%); margin: 0 auto; padding: 0 20px; }

/* Section heading: 27/30, second line grey */
.h { font-size: 27px; line-height: 30px; letter-spacing: -0.4px; font-weight: 400; }
.h .g { display: block; color: var(--muted); }
.muted { color: var(--muted); }
.muted b, .em b { color: var(--fg); font-weight: 400; }

/* Appear */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }

/* ---------------- Nav pill ---------------- */
.pill {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  width: 350px; max-width: calc(100% - 40px); height: 43px; z-index: 80;
}
.admin-bar .pill { top: 52px; }
.pill-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; height: 100%; padding: 0 13px 0 16px; border-radius: 14px;
  background: var(--pill);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 13px; font-weight: 500; letter-spacing: -0.1px; text-align: left;
  transition: background 0.3s;
}
.pill-btn:hover { background: rgba(240, 240, 240, 0.9); }
.pill-label { display: block; overflow: hidden; white-space: nowrap; }
.pill-icon { position: relative; width: 20px; height: 20px; flex: none; }
.pill-icon img { width: 18px; height: 18px; margin: 1px; object-fit: contain; transition: opacity 0.35s, transform 0.5s var(--ease); }
.pill-icon svg { position: absolute; inset: 0; width: 20px; height: 20px; opacity: 0; transition: opacity 0.35s; }
.pill.scrolled .pill-icon img { opacity: 0; transform: rotate(90deg) scale(0.6); }
.pill.scrolled .pill-icon svg { opacity: 1; }
.pill-icon .p { transition: stroke-dashoffset 0.25s linear; }
.pill-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  padding: 6px; border-radius: 14px; background: var(--pill);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.pill.open .pill-menu { opacity: 1; transform: none; pointer-events: auto; }
.pill-menu a, .pill-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 9px 10px; border-radius: 9px; font-size: 13px; text-align: left;
}
.pill-menu a:hover, .pill-menu button:hover { background: #fff; }
.pill-menu small { font-size: 11px; color: var(--muted); }
.pill-menu .sep { height: 1px; margin: 4px 6px; background: rgba(0, 0, 0, 0.06); }

/* "Websites" tab: sits in the top bar right beside the pill's "i" mark */
.site-tab {
  position: fixed; top: 20px; left: calc(50% + 183px); z-index: 80;
  display: inline-flex; align-items: center; height: 43px; padding: 0 16px; border-radius: 14px;
  background: var(--pill); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 13px; font-weight: 500; letter-spacing: -0.1px; white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.admin-bar .site-tab { top: 52px; }
.site-tab:hover { background: rgba(240, 240, 240, 0.9); }
.site-tab.on { background: var(--fg); color: #fff; }
.site-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pill-menu a[aria-current="page"] { background: #fff; }
@media (max-width: 600px) {
  /* Pill and tab share the bar: pill fills the left, tab on the right. */
  .pill { left: 20px; right: 120px; width: auto; max-width: none; transform: none; }
  .site-tab { left: auto; right: 20px; }
}
[dir="rtl"] .site-tab { left: auto; right: calc(50% + 183px); }
@media (max-width: 600px) { [dir="rtl"] .site-tab { right: auto; left: 20px; } [dir="rtl"] .pill { left: 120px; right: 20px; } }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; height: 100vh; min-height: 680px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 20px 30px; overflow: hidden;
}
.hero-stage { position: absolute; inset: 0 0 9%; display: grid; place-items: center; pointer-events: none; }
.hero-word {
  font-size: clamp(84px, 10.4vw, 200px); line-height: 0.86; font-weight: 700; letter-spacing: -0.045em;
  color: #e4e4e4; text-align: center; user-select: none; filter: blur(16px);
  animation: breathe 10s ease-in-out infinite;
}
.hero-word span { display: block; }
@keyframes breathe {
  0%, 100% { filter: blur(15px); transform: scale(1); }
  50% { filter: blur(22px); transform: scale(1.025); }
}
.hero-labels { position: absolute; inset: 0; }
.hl {
  position: absolute; font-size: 14px; letter-spacing: 0.01em; color: #cfcfcf; white-space: nowrap;
  opacity: 0; animation: hl 6s ease-in-out forwards;
}
.hl b {
  position: absolute; width: 7px; height: 7px; background: #d4d4d4;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}
.hl .s1 { left: -16px; top: -8px; }
.hl .s2 { right: -16px; top: -10px; }
.hl .s3 { left: -12px; bottom: -8px; }
.hl .s4 { right: -14px; bottom: -7px; }
@keyframes hl {
  0% { opacity: 0; transform: translateY(8px); }
  18% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-8px); }
}
.hero-copy { position: relative; text-align: center; font-size: 18px; line-height: 22px; letter-spacing: -0.2px; color: var(--muted); }
.hero-copy .blue { color: var(--blue); }
.hero-logos { display: flex; gap: 64px; align-items: center; justify-content: center; height: 24px; margin-top: 32px; }
.hero-logos li { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: #d4d4d4; white-space: nowrap; }
.hero-logos li.serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; letter-spacing: 0; }
.hero-logos li.mono { font-family: ui-monospace, Menlo, monospace; font-weight: 600; letter-spacing: 0.12em; font-size: 12px; }
.hero-logos li.img img { height: 46px; width: auto; opacity: 0.2; }

/* ---------------- Work grid ---------------- */
.work { padding: 40px 16px 0; }
.tile { display: block; position: relative; overflow: hidden; background: var(--s2); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.1s var(--ease); }
.tile:hover img { transform: scale(1.025); }
.tile.full { aspect-ratio: 1888 / 1259; }
.tile.r32 { aspect-ratio: 3 / 2; }
.tile.r169 { aspect-ratio: 16 / 9; }
.tile.framed { padding: 26px; }
.tile.framed img { height: auto; aspect-ratio: 16 / 9; }
.work-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.work-col { display: grid; gap: 16px; }
.tile .cap {
  position: absolute; left: 16px; bottom: 16px; padding: 5px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11px; color: var(--fg); opacity: 0; transform: translateY(4px);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.tile:hover .cap { opacity: 1; transform: none; }

/* ---------------- Device mock-ups ----------------
   Each .tile.mk is a soft "field" with one or two devices placed on it.
   The .dev wrapper is positioned with --w/--x/--y (percent of the tile) and
   is a size container, so every bezel, radius and shadow inside scales in cqw. */
.tile.mk { background: linear-gradient(180deg, var(--f1, #fafafa), var(--f2, #efefef)); }
.tile.mk::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 18%, rgba(255, 255, 255, 0.75), transparent 72%);
}
.tile.r43 { aspect-ratio: 4 / 3; }
.tile.mk img { transition: none; }
.tile.mk:hover img { transform: none; }
.dev {
  position: absolute; left: calc(50% + var(--x, 0%)); top: calc(50% + var(--y, 0%)); width: var(--w, 70%);
  container-type: inline-size; --tilt: rotate(0deg);
  transform: translate(-50%, -50%) var(--tilt);
  transition: translate 1s var(--ease), transform 1s var(--ease);
}
.tile:hover .dev { translate: 0 -5px; }
.dev::after {
  content: ''; position: absolute; left: 3%; right: 3%; bottom: -4%; height: 18%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0)); filter: blur(10px);
}
.dev.tilt { --tilt: perspective(1600px) rotateX(8deg) rotateY(-15deg) rotateZ(2deg); }
.tile:hover .dev.tilt { --tilt: perspective(1600px) rotateX(5deg) rotateY(-10deg) rotateZ(1deg); }

/* MacBook, space black */
.mac .lid {
  position: relative; padding: 2.2cqw 2.2cqw 0; border-radius: 2.4cqw 2.4cqw 0 0;
  background: linear-gradient(180deg, #2f3137, #15161a 70%);
  box-shadow: inset 0 0 0 0.12cqw rgba(255, 255, 255, 0.12);
}
.mac .lid::before {
  content: ''; position: absolute; left: 50%; top: 0.75cqw; width: 0.7cqw; height: 0.7cqw; z-index: 1;
  transform: translateX(-50%); border-radius: 50%; background: #2c2e34; box-shadow: inset 0 0 0 0.15cqw #0b0b0c;
}
.mac .lid img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 0.8cqw 0.8cqw 0 0; background: #111; }
.mac .base {
  position: relative; height: 2.2cqw; margin: 0 -2.6cqw; border-radius: 0.3cqw 0.3cqw 1.8cqw 1.8cqw;
  background: linear-gradient(180deg, #4a4c54 0%, #2a2b30 30%, #15161a 100%);
  box-shadow: 0 2.5cqw 4cqw -2cqw rgba(0, 0, 0, 0.45);
}
.mac .base::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 14cqw; height: 0.8cqw;
  transform: translateX(-50%); border-radius: 0 0 1cqw 1cqw; background: #0d0d0f;
}

/* iPhone, titanium */
.phone {
  position: relative; aspect-ratio: 390 / 844; padding: 2.8cqw; border-radius: 15.5cqw;
  background: linear-gradient(135deg, #55565c 0%, #1f2024 40%, #2c2d32 100%);
  box-shadow: inset 0 0 0 0.35cqw rgba(255, 255, 255, 0.18), inset 0 0 0 1.5cqw #0b0b0c, 0 8cqw 14cqw -6cqw rgba(0, 0, 0, 0.5);
}
.phone::before {
  content: ''; position: absolute; left: 50%; top: 5.4cqw; width: 29cqw; height: 8.4cqw; z-index: 2;
  transform: translateX(-50%); border-radius: 999px; background: #0b0b0c;
}
/* Screen: a status bar in the site's own top colour (--sb/--sbc, set per capture), then the capture. */
.scr { position: relative; height: 100%; overflow: hidden; background: var(--sb, #fff); color: var(--sbc, #111); }
.scr::before { content: '9:41'; position: absolute; z-index: 1; font-weight: 600; letter-spacing: -0.02em; font-family: var(--sans); }
.scr::after {
  content: ''; position: absolute; z-index: 1; box-sizing: border-box; border: 0.3cqw solid currentColor;
  background: currentColor; background-clip: content-box; opacity: 0.9;
}
.phone .scr { border-radius: 12.6cqw; }
.phone .scr::before { left: 10.5cqw; top: 3.7cqw; font-size: 4.3cqw; }
.phone .scr::after { right: 8.5cqw; top: 4.9cqw; width: 7cqw; height: 3.5cqw; padding: 0.5cqw; border-radius: 1.1cqw; }
.phone img { width: 100%; height: calc(100% - 13cqw); margin-top: 13cqw; object-fit: cover; object-position: top; background: #111; }

/* Browser window */
.win {
  border-radius: 1.6cqw; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 3cqw 6cqw -2.5cqw rgba(0, 0, 0, 0.35);
}
.win .bar { display: flex; align-items: center; gap: 0.9cqw; height: 4.4cqw; padding: 0 1.8cqw; background: #f6f6f7; border-bottom: 1px solid #e8e8ea; }
.win .bar i { width: 1.3cqw; height: 1.3cqw; border-radius: 50%; background: #ff5f57; }
.win .bar i + i { background: #febc2e; }
.win .bar i + i + i { background: #28c840; }
.win .bar span {
  margin: 0 auto; width: 40%; height: 2.7cqw; border-radius: 0.7cqw; background: #fff; border: 1px solid #e8e8ea;
  font-size: 1.45cqw; line-height: 2.6cqw; text-align: center; color: #9a9a9a; letter-spacing: 0;
}
.win img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* iPad, silver */
.tab {
  position: relative; aspect-ratio: 1024 / 1366; padding: 3.4cqw; border-radius: 6.5cqw;
  background: linear-gradient(135deg, #f0f0f2, #c7c8cc 55%, #e2e2e5);
  box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.7), inset 0 0 0 1.8cqw #121214, 0 8cqw 14cqw -6cqw rgba(0, 0, 0, 0.45);
}
.tab .scr { border-radius: 3.4cqw; }
.tab .scr::before { left: 3cqw; top: 0.85cqw; font-size: 1.7cqw; }
.tab .scr::after { right: 3cqw; top: 1.25cqw; width: 3cqw; height: 1.5cqw; padding: 0.25cqw; border-width: 0.18cqw; border-radius: 0.5cqw; }
.tab img { width: 100%; height: calc(100% - 3.4cqw); margin-top: 3.4cqw; object-fit: cover; object-position: top; background: #fff; }

/* ---------------- Dark display mock-ups ----------------
   .tile.dk is a black studio field. Two 3D frames live on it:
   .sd3d: an Apple Studio Display seen three-quarter on, with its stand;
   .edge: the same display pushed up close and steeply angled, so only the
   aluminium edge and a corner of the screen are in frame. Both are built in
   3D (transform-style) so the side face is a real surface, not a drawing. */
.tile.dk { background: #000; }
.tile.dk::before { background: radial-gradient(55% 45% at 55% 35%, rgba(255, 255, 255, 0.07), transparent 70%); }
.tile.dk::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.35));
}
.tile.dk .cap { background: rgba(24, 24, 24, 0.82); color: #f2f2f2; z-index: 3; }
.tile.dk .dev::after { display: none; }
.dev.sd3d, .dev.edge { transform-style: preserve-3d; }
.dev.sd3d { --tilt: perspective(2600px) rotateY(23deg) rotateX(6deg) rotateZ(-1.2deg); }
.tile:hover .dev.sd3d { --tilt: perspective(2600px) rotateY(19deg) rotateX(5deg) rotateZ(-1deg); }
.dev.edge { --tilt: perspective(1500px) rotateY(46deg) rotateX(9deg) rotateZ(-4deg); }
.tile:hover .dev.edge { --tilt: perspective(1500px) rotateY(43deg) rotateX(8deg) rotateZ(-3.5deg); }
.sd { position: relative; transform-style: preserve-3d; --d: 1.5cqw; }
.edge .sd { --d: 2.6cqw; }
/* Display body: black glass front, aluminium rim, a real left side face. */
.sd-body {
  position: relative; padding: 2cqw 2cqw 2.4cqw; border-radius: 1.1cqw; transform-style: preserve-3d;
  background: linear-gradient(160deg, #19191b, #050506 60%);
  box-shadow: inset 0 0 0 0.14cqw rgba(255, 255, 255, 0.16), 0 4cqw 8cqw -3cqw rgba(0, 0, 0, 0.9);
}
.sd-side {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--d);
  transform-origin: left center; transform: rotateY(90deg);
  background: linear-gradient(90deg, #f3f3f5, #c9c9ce 45%, #8f8f96);
  border-radius: 0.3cqw 0 0 0.3cqw;
}
.sd-side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 30%, transparent 75%, rgba(0, 0, 0, 0.25)); }
.sd-back {
  position: absolute; inset: 0; border-radius: 1.1cqw; transform: translateZ(calc(var(--d) * -1));
  background: linear-gradient(135deg, #d9d9dd, #a7a7ad);
}
.sd-screen { position: relative; overflow: hidden; border-radius: 0.45cqw; background: #000; aspect-ratio: 16 / 9; transform: translateZ(0.01cqw); }
.sd-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.sd-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(108deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 30%, transparent 55%, rgba(255, 255, 255, 0.035));
}
/* Stand + base, behind the body. */
.sd-stand {
  position: absolute; left: 50%; top: 100%; width: 11cqw; height: 9cqw; margin-left: -5.5cqw;
  transform: translateZ(calc(var(--d) * -1 - 2cqw)); border-radius: 0 0 0.5cqw 0.5cqw;
  background: linear-gradient(90deg, #a9a9b0, #eceef0 35%, #d2d2d6 70%, #8d8d94);
}
.sd-base {
  position: absolute; left: 50%; top: calc(100% + 8.6cqw); width: 30cqw; height: 5.2cqw; margin-left: -15cqw;
  transform: translateZ(calc(var(--d) * -1 - 2cqw)) rotateX(72deg); transform-origin: center top; border-radius: 1.6cqw;
  background: linear-gradient(180deg, #e9e9ec, #b4b4ba);
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.6);
}
.edge .sd-stand, .edge .sd-base { display: none; }

/* Motion: an animated capture plays inside any frame; a tall capture pans. */
.tile img.pan { animation: pan 18s ease-in-out infinite alternate; }
@keyframes pan { from { object-position: top; } to { object-position: bottom; } }
.tile .live {
  position: absolute; left: 16px; top: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px 4px 7px; border-radius: 999px; font-size: 10px; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.85); color: var(--fg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tile.dk .live { background: rgba(24, 24, 24, 0.82); color: #f2f2f2; }
.tile .live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

/* ---------------- About ---------------- */
.about { padding-top: 120px; }
.about-grid { display: grid; grid-template-columns: 1fr 310px; column-gap: 40px; }
.about-body { grid-column: 2; margin-top: 230px; color: var(--muted); }
.about-body p + p { margin-top: 22px; }
.portrait {
  position: relative; width: 184px; height: 254px; margin: 22px 0 0 auto;
  background: var(--s3); display: grid; place-items: center; overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait img.mark { width: 64px; height: 64px; object-fit: contain; opacity: 0.9; }
.portrait .corner {
  position: absolute; right: 8px; top: 8px; width: 16px; height: 16px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.9); display: grid; place-items: center;
}
.portrait .corner svg { width: 10px; height: 10px; }

/* ---------------- Lists (clients / services) ---------------- */
.lst { padding-top: 320px; }
.list { margin-top: 56px; }
.row { display: grid; grid-template-columns: 1fr auto; column-gap: 40px; padding-bottom: 50px; }
.row-name { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.badge { font-size: 12px; line-height: 1.2; color: var(--blue); background: var(--blue-wash); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.row-desc { margin-top: 12px; max-width: 600px; color: var(--muted); }
.row-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }
.row-logo { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; text-align: right; padding-top: 1px; white-space: nowrap; }
.row-logo.serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; font-size: 15px; }
.row-logo.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: 0.12em; font-size: 11px; }
.row-logo.soft { font-weight: 400; color: var(--muted); }
.row-logo.img { padding-top: 0; }
.row-logo img { height: 52px; width: auto; margin-left: auto; }
.exp .row { padding-bottom: 44px; }

.skills { display: grid; grid-template-columns: 1fr auto; column-gap: 40px; }
.skills ul { text-align: right; font-size: 20px; line-height: 1.3; letter-spacing: -0.3px; }
.skills li { opacity: calc(1 - var(--i) * 0.13); }

/* ---------------- Pricing ---------------- */
.pricing { padding-top: 300px; }
.icons3d { position: relative; height: 320px; margin-top: 110px; }
.cube {
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px;
  border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(150deg, #f6f6f6 0%, #e2e2e2 100%);
  box-shadow: inset 0 2px 3px #fff, inset 0 -8px 14px rgba(0, 0, 0, 0.07), 0 30px 40px -22px rgba(0, 0, 0, 0.28);
  transform: translate(-56px, 36px) rotate(-10deg);
  animation: float 7s ease-in-out infinite;
}
.cube.b {
  background: linear-gradient(150deg, #e8edf8 0%, #bfcbe8 100%);
  transform: translate(60px, -52px) rotate(9deg);
  animation-delay: -3s;
}
.cube .in {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(160deg, #fdfdfd, #e9e9e9);
  box-shadow: inset 0 1px 2px #fff, 0 6px 10px -6px rgba(0, 0, 0, 0.25);
  display: grid; place-items: center;
}
.cube.b .in { background: linear-gradient(160deg, #f7f9ff, #d4ddf3); }
.cube img { width: 26px; height: 26px; object-fit: contain; opacity: 0.8; }
@keyframes float {
  0%, 100% { margin-top: -56px; }
  50% { margin-top: -66px; }
}
.price { margin-top: 60px; text-align: center; }
.price .big { font-size: 27px; line-height: 30px; letter-spacing: -0.4px; }
.price p { margin: 10px auto 0; max-width: 420px; color: var(--muted); }
.btns { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 350px; max-width: 100%; height: 44px; border-radius: 16px;
  background: var(--s1); font-size: 12px; color: var(--fg); white-space: nowrap;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.btn:hover { background: var(--s3); }
.btn:active { transform: scale(0.99); }
.btn svg { width: 12px; height: 12px; flex: none; }
.btn-dark { background: var(--fg); color: #fff; width: auto; padding: 0 22px; }
.btn-dark:hover { background: #000; }
.btn-quiet { background: transparent; color: var(--muted); width: auto; padding: 0 14px; }
.btn-quiet:hover { background: var(--s1); color: var(--fg); }

.offer { margin-top: 170px; }
.offer .h { color: var(--muted); max-width: 520px; }
.offer .h b { color: var(--fg); font-weight: 400; }
.marquee { margin-top: 56px; overflow: hidden; }
.marquee + .marquee { margin-top: 12px; }
.track { display: flex; gap: 12px; width: max-content; animation: slide 60s linear infinite; }
.track.rev { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
.track img { height: 210px; width: auto; border-radius: 12px; background: var(--s2); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05); }
@keyframes slide { to { transform: translateX(-50%); } }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 580px; margin: 64px auto 0; }
.offer-grid h4 { font-size: 14px; }
.offer-grid p { margin-top: 14px; color: var(--muted); }
.offer-grid ul { margin-top: 14px; display: grid; gap: 11px; color: var(--muted); }
.offer-grid li { display: flex; align-items: center; gap: 9px; }
.offer-grid li svg { width: 13px; height: 13px; flex: none; color: var(--faint); }
.offer .btns { margin-top: 40px; }

/* ---------------- Other services ---------------- */
.other { margin-top: 200px; }
.radial { position: relative; height: 380px; margin-top: 30px; }
.radial .ring, .radial .ring2 {
  position: absolute; left: 50%; top: 50%; border: 1px solid #ededed; border-radius: 50%; transform: translate(-50%, -50%);
}
.radial .ring { width: 220px; height: 220px; }
.radial .ring2 { width: 140px; height: 140px; border-style: dashed; }
.radial .cross { position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; background: #b5b5b5; transform: translate(-50%, -50%); }
.radial .cross::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1px; height: 16px; background: #b5b5b5; transform: translate(-50%, -50%); }
.radial .dot { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #c9c9c9; transform: translate(-50%, -50%) translate(var(--x), var(--y)); }
.radial .chip {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translate(var(--x), var(--y));
  padding: 3px 9px; border-radius: 999px; border: 1px solid #ededed; background: var(--s1);
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.radial .tick {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translate(var(--x), var(--y));
  font-size: 9px; color: #c6c6c6; letter-spacing: 0.02em;
}
.feat { display: grid; grid-template-columns: 1fr 1fr; margin-top: 60px; border-top: 1px solid var(--line); }
.feat div {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.feat div:nth-child(odd) { border-right: 1px solid var(--line); }
.feat svg { width: 12px; height: 12px; color: var(--muted); }

/* ---------------- Q&A ---------------- */
.faq { margin-top: 200px; }
.acc { margin-top: 70px; border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; gap: 16px; align-items: baseline; padding: 15px 0; cursor: pointer; font-size: 13px; }
.acc summary::-webkit-details-marker { display: none; }
.acc .pm { width: 14px; flex: none; color: var(--muted); font-size: 15px; line-height: 1; position: relative; top: 1px; }
.acc .pm::before { content: '+'; }
.acc details[open] .pm::before { content: '–'; }
.acc summary sup { font-size: 8px; color: var(--muted); margin-left: 4px; }
.acc .ans { padding: 0 0 20px 30px; color: var(--muted); max-width: 640px; }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 90px; }
.stat { border-left: 1px solid var(--line); padding: 12px 16px; height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.stat small { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.stat b { font-weight: 400; font-size: 27px; letter-spacing: -0.4px; text-align: right; line-height: 1; }

/* ---------------- Footer ---------------- */
.foot { position: relative; margin-top: 110px; padding: 250px 0 30px; overflow: hidden; }
.blobs { position: absolute; left: 50%; top: 20px; width: 1220px; height: 420px; transform: translateX(-50%); pointer-events: none; }
.foot-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.foot-row .links { display: flex; gap: 18px; color: var(--muted); }
.foot-row .links a:hover { color: var(--fg); }

/* ---------------- Systems (custom ERPs) ---------------- */
.erp-intro { margin-top: 40px; max-width: 640px; color: var(--muted); }
.erp-intro p + p { margin-top: 14px; }
.erp-flow { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: stretch; margin-top: 56px; }
.erp-flow .node { padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--s1); }
.erp-flow small { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }
.erp-flow b { display: block; margin-top: 10px; font-weight: 500; font-size: 14px; }
.erp-flow p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.erp-flow ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.erp-flow li { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.erp-flow .link { position: relative; }
.erp-flow .link::before { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: #d9d9d9; }
.erp-flow .link i {
  position: absolute; left: 6px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); animation: travel 2.4s ease-in-out infinite;
}
.erp-flow .link + .node + .link i { animation-delay: 1.2s; }
@keyframes travel { 0% { left: 6px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 13px); opacity: 0; } }
.erp-feat { margin-top: 40px; grid-template-columns: repeat(4, 1fr); }
.erp-feat div:nth-child(odd) { border-right: 1px solid var(--line); }
.erp-feat div:nth-child(4n) { border-right: 0; }
.erp-feat div:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.erp-demo { margin-top: 40px; border-radius: 18px; aspect-ratio: 16 / 8.2; }
.erp-demo .cap { opacity: 1; transform: none; }
.erp-note { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

.foot-legal { position: relative; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------------- Onboarding (Start a project) ---------------- */
.onb { position: fixed; inset: 0; z-index: 200; display: none; }
.onb.open { display: grid; grid-template-columns: 360px 1fr; }
.onb-bg { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.onb-aside { position: relative; z-index: 1; background: var(--s2); padding: 28px 32px; display: flex; flex-direction: column; }
.onb-aside .logo img { height: 20px; width: auto; }
.onb-steps { margin-top: 48px; display: grid; gap: 2px; }
.onb-step { display: flex; gap: 14px; padding: 12px 0; align-items: flex-start; opacity: 0.45; transition: opacity 0.3s; }
.onb-step.on, .onb-step.done { opacity: 1; }
.onb-step .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #d9d9d9; display: grid; place-items: center; font-size: 11px; flex: none; background: #fff; }
.onb-step.on .n { border-color: var(--fg); }
.onb-step.done .n { background: var(--fg); border-color: var(--fg); color: #fff; }
.onb-step b { display: block; font-weight: 500; font-size: 13px; }
.onb-step span { font-size: 12px; color: var(--muted); }
.foot-mini { margin-top: auto; font-size: 12px; color: var(--muted); line-height: 1.6; }
.onb-main { position: relative; z-index: 1; background: #fff; overflow-y: auto; }
.onb-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 16px 40px; background: #fff; border-bottom: 1px solid var(--s3); font-size: 12px; color: var(--muted); }
.onb-body { padding: 40px 40px 120px; max-width: 700px; }
.onb-body h2 { font-size: 27px; line-height: 30px; letter-spacing: -0.4px; }
.onb-body .sub { margin-top: 10px; color: var(--muted); }
.onb-pane { display: none; }
.onb-pane.on { display: block; animation: paneIn 0.45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-top: 20px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid #e6e6e6; border-radius: 12px;
  background: var(--s1); color: var(--fg); font: inherit; appearance: none; -webkit-appearance: none;
}
.field textarea { height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--fg); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #b9b9b9; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.pick-card { position: relative; text-align: left; padding: 16px 44px 16px 16px; border: 1px solid #e6e6e6; border-radius: 14px; background: #fff; transition: border-color 0.2s, background 0.2s; }
.pick-card:hover { border-color: #cfcfcf; }
.pick-card.sel { border-color: var(--fg); background: var(--s1); }
.pick-card b { display: block; font-weight: 500; font-size: 14px; }
.pick-card span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.pick-card .tick { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; margin: 0; border-radius: 50%; border: 1px solid #e6e6e6; font-size: 11px; display: grid; place-items: center; color: transparent; }
.pick-card.sel .tick { background: var(--fg); border-color: var(--fg); color: #fff; }
.onb-nav { display: flex; gap: 12px; align-items: center; margin-top: 36px; }
.onb-nav .spacer { flex: 1; }
.review-box { margin-top: 24px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review-row { display: flex; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--s3); font-size: 13px; }
.review-row:last-child { border-bottom: 0; }
.review-row .k { width: 140px; flex: none; color: var(--muted); font-size: 12px; padding-top: 1px; }
.done-state { text-align: center; padding: 30px 0; }
.done-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--fg); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; font-size: 20px; }
.next-list { margin: 28px auto 0; max-width: 440px; text-align: left; display: grid; gap: 8px; }
.next-list div { display: flex; gap: 12px; font-size: 13px; color: var(--muted); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.next-list b { font-weight: 500; color: var(--fg); font-size: 11px; padding-top: 2px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .onb.open { grid-template-columns: 1fr; }
  .onb-aside { display: none; }
  .onb-top { padding: 14px 20px; }
  .onb-body { padding: 28px 20px 100px; }
}
@media (max-width: 760px) {
  .hero { min-height: 620px; padding-bottom: 24px; }
  .hero-word { font-size: clamp(84px, 22vw, 150px); }
  .hero-copy { font-size: 16px; line-height: 20px; }
  .hero-logos { gap: 22px 28px; flex-wrap: wrap; height: auto; margin-top: 26px; }
  .work-cols { grid-template-columns: 1fr; }
  .tile.framed { padding: 14px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-body { grid-column: 1; margin-top: 60px; }
  .portrait { margin-left: 0; }
  .lst { padding-top: 180px; }
  .row { grid-template-columns: 1fr; }
  .row-logo { text-align: left; margin-top: 8px; }
  .skills { grid-template-columns: 1fr; }
  .skills ul { text-align: left; margin-top: 24px; }
  .pricing { padding-top: 180px; }
  .icons3d { height: 260px; margin-top: 70px; }
  .btns { flex-direction: column; align-items: center; }
  .offer { margin-top: 120px; }
  .offer-grid { grid-template-columns: 1fr; }
  .other, .faq { margin-top: 140px; }
  .radial { height: 300px; transform-origin: 50% 50%; }
  .radial.rv { transform: scale(0.68) translateY(16px); }
  .radial.rv.in { transform: scale(0.68); }
  .foot-row .links { flex-wrap: wrap; gap: 10px 18px; }
  .stats { grid-template-columns: 1fr; margin-top: 70px; }
  .stat { height: auto; flex-direction: row; align-items: flex-end; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .foot { padding-top: 200px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .grid2, .pick { grid-template-columns: 1fr; }
  .erp-flow { grid-template-columns: 1fr; }
  .erp-flow .link { height: 36px; }
  .erp-flow .link::before { left: 50%; right: auto; top: 6px; bottom: 6px; height: auto; width: 1px; }
  .erp-flow .link i { left: 50%; margin-left: -3px; animation-name: traveldown; }
  @keyframes traveldown { 0% { top: 6px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 7px); opacity: 0; } }
  .erp-feat { grid-template-columns: 1fr 1fr; }
  .erp-feat div:not(:nth-child(4n)) { border-right: 0; }
  .erp-feat div:nth-child(odd) { border-right: 1px solid var(--line); }
  .erp-demo { aspect-ratio: 4 / 3; }
}

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


/* ============================================================
   MARKETING
   ============================================================ */
.mkt { padding-top: 200px; scroll-margin-top: -80px; }
.mkt-wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }
.mkt-head { text-align: center; }
.mkt-head p { margin: 12px auto 0; max-width: 520px; color: var(--muted); }
.mkt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; align-items: stretch; }
.mkt-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.mkt-card:hover { border-color: #cfcfcf; box-shadow: 0 10px 28px rgba(0,0,0,.06); transform: translateY(-2px); }
.mkt-card.popular { border-color: #bdbdbd; background: var(--s1); }
.mkt-card.selected, .mkt-card.selected:hover { border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); transform: none; }
.mkt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.mkt-card h3 { font-size: 15px; line-height: 20px; font-weight: 500; }
.mkt-badge { padding: 3px 10px; border-radius: 999px; background: var(--fg); color: #fff; font-size: 11px; line-height: 16px; white-space: nowrap; }
.mkt-price { margin-top: 16px; font-size: 38px; line-height: 44px; letter-spacing: -1px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mkt-card ul { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 14px; flex: 1; align-content: start; }
.mkt-card li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 20px; color: #4b4b48; }
.mkt-card li svg { width: 20px; height: 20px; color: var(--fg); }
.mkt-pick { min-height: 44px; border: 1px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); }
.mkt-pick:hover { background: var(--s3); }
.mkt-pick[aria-pressed="true"], .mkt-pick[aria-pressed="true"]:hover { background: var(--fg); color: #fff; }
.mkt-pick:focus-visible, .mkt-submit:focus-visible, .mkt-f input:focus-visible, .mkt-f select:focus-visible, .mkt-f textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.mkt-panel { margin: 24px auto 0; max-width: 760px; padding: 36px; border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 88px; animation: mktIn .32s var(--ease); }
.mkt-panel[hidden] { display: none; }
@keyframes mktIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mkt-title { font-size: 27px; line-height: 32px; letter-spacing: -.4px; font-weight: 400; outline: none; }
.mkt-sub { margin: 10px 0 0; color: var(--muted); }
.mkt-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--s1); }
.mkt-lab { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.mkt-summary b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mkt-summary ul { grid-column: 1 / -1; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; line-height: 20px; color: #4b4b48; }
.mkt-change { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.mkt fieldset { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.mkt legend { padding: 0; font-size: 15px; font-weight: 500; }
.mkt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.mkt-f { min-width: 0; }
.mkt-f.wide { grid-column: 1 / -1; }
.mkt-f > label, .mkt-l { display: block; margin-bottom: 6px; font-size: 13px; line-height: 18px; }
.mkt-f i { font-style: normal; color: var(--muted); font-size: 12px; }
.mkt-f input:not([type="checkbox"]):not([type="radio"]), .mkt-f select, .mkt-f textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d9d9d6; border-radius: 10px; background: #fff; color: var(--fg); font: inherit; font-size: 16px; }
.mkt-f textarea { resize: vertical; }
.mkt-f.bad input:not([type="checkbox"]), .mkt-f.bad select, .mkt-f.bad .mkt-radios { border-color: #d42a45; }
.mkt-err { margin: 6px 0 0; color: #c0223c; font-size: 13px; line-height: 18px; }
.mkt-err:empty { display: none; }
.mkt-note { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 16px; }
.mkt-note:empty { display: none; }
.mkt-radios { display: grid; gap: 8px; }
.mkt-radio { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid #d9d9d6; border-radius: 10px; font-size: 14px; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.mkt-radio:hover { background: var(--s1); }
.mkt-radio:has(input:checked) { border-color: var(--fg); }
.mkt-radio:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.mkt-radio input { accent-color: var(--fg); width: 16px; height: 16px; margin: 0; }
.mkt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mkt-ack { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; margin-top: 24px; font-size: 14px; line-height: 20px; cursor: pointer; }
.mkt-ack input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--fg); }
.mkt-formerr { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fdeef0; color: #a81d33; font-size: 14px; line-height: 20px; }
.mkt-submit { width: 100%; min-height: 48px; margin-top: 20px; border: 0; border-radius: 999px; background: var(--fg); color: #fff; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .15s var(--ease), opacity .15s var(--ease); }
.mkt-submit:hover { background: #000; }
.mkt-submit[disabled] { opacity: .55; cursor: default; }
.mkt-done { outline: none; text-align: center; padding: 16px 0; }
.mkt-done[hidden] { display: none; }
.mkt-done h3 { font-size: 27px; line-height: 32px; letter-spacing: -.4px; font-weight: 400; }
.mkt-done p { margin: 12px auto 0; max-width: 520px; color: var(--muted); }
.mkt-ref { color: var(--fg) !important; }
.mkt-ref b { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .mkt-cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-left: auto; margin-right: auto; }
  .mkt { padding-top: 140px; }
}
@media (max-width: 560px) {
  .mkt-panel { padding: 22px 18px; }
  .mkt-grid, .mkt-summary { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-card, .mkt-card:hover, .mkt-pick, .mkt-radio, .mkt-submit { transition: none; transform: none; }
  .mkt-panel { animation: none; }
}


/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang { font-size: 13px; line-height: 18px; }
.lang-top { position: fixed; top: 20px; right: 20px; z-index: 81; }
.admin-bar .lang-top { top: 52px; }
[dir="rtl"] .lang-top { right: auto; left: 20px; }
.lang-foot { position: relative; z-index: 2; display: flex; justify-content: center; padding: 24px 20px 0; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--pill); color: var(--fg); font: inherit; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .15s var(--ease); }
.lang-btn:hover { background: var(--s3); }
.lang-btn:focus-visible, .lang-menu button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; width: 240px; max-height: calc(100vh - 90px); margin: 0; padding: 6px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.lang-menu[hidden] { display: none; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
/* The footer clips its overflow, so this menu is placed against the screen instead. */
.lang-foot .lang-menu { position: fixed; top: auto; bottom: 16px; left: 50%; right: auto; transform: translateX(-50%); max-height: calc(100vh - 32px); }
.lang-flag { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 20px; height: 15px; }
.lang-flag img { display: block; width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.lang-menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--fg); font: inherit; text-align: start; cursor: pointer; }
.lang-menu button:hover { background: var(--s2); }
.lang-menu button.on { background: var(--s3); font-weight: 500; }
@media (max-width: 900px) { .lang-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .lang-btn { transition: none; backdrop-filter: none; -webkit-backdrop-filter: none; } }


/* ============================================================
   MARKETING: package families (tabs) and Charter & Media Days
   ============================================================ */
.mkt-tabs { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--s1); }
.mkt-tab { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; color: var(--muted); white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.mkt-tab:hover { color: var(--fg); }
.mkt-tab[aria-selected="true"] { background: var(--fg); color: #fff; }
.mkt-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mkt-pane[hidden] { display: none; }
.mkt-tag { margin-top: 14px; font-size: 14px; line-height: 20px; }
.mkt-blurb { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
/* the one request form serves both families; only the fields for the chosen kind show */
.mkt-panel [data-kind] { display: none; }
.mkt-panel[data-kind="ads"] [data-kind="ads"], .mkt-panel[data-kind="charter"] [data-kind="charter"] { display: revert; }

.ch { margin-top: 56px; }
.ch-hero { text-align: center; max-width: 720px; margin: 0 auto; }
.ch-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.ch-hero .h { margin-top: 14px; font-size: 34px; line-height: 38px; letter-spacing: -.6px; }
.ch-lead { margin-top: 18px; font-size: 16px; line-height: 24px; }
.ch-lead + .ch-lead { margin-top: 12px; }
.ch-strong { margin-top: 20px; font-weight: 500; }
.ch-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.ch-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 1px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.ch-btn:hover { background: var(--s3); }
.ch-btn-dark { background: var(--fg); color: #fff; }
.ch-btn-dark:hover { background: #000; }
.ch-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ch-sec { margin-top: 120px; }
.ch-sec .h, .ch-cta .h { max-width: 560px; }
.ch-intro { margin-top: 18px; max-width: 600px; color: var(--muted); font-size: 15px; line-height: 22px; }
.ch-grid { display: grid; gap: 16px; margin-top: 40px; }
.ch-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ch-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ch-item { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--s1); }
.ch-item svg { width: 22px; height: 22px; margin-bottom: 16px; color: var(--fg); }
.ch-item b { display: block; font-size: 15px; line-height: 20px; font-weight: 500; }
.ch-item p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 20px; }
.ch-note { margin-top: 24px; max-width: 600px; color: var(--muted); }
.ch-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.ch-spec { padding: 22px 0; border-bottom: 1px solid var(--line); }
.ch-spec small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.ch-spec b { display: block; margin-top: 8px; font-size: 15px; line-height: 20px; font-weight: 500; }
.ch-spec p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 20px; }
.ch-spec strong { color: var(--fg); font-weight: 500; }
.ch-spec a { color: var(--blue); }
.ch-spec a:hover { text-decoration: underline; }
.ch-sec .mkt-cards { margin-top: 40px; }
.ch-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 90px; }
.ch-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.ch-table th, .ch-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ch-table thead th { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--s1); }
.ch-table thead th:not(:first-child), .ch-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-table tbody th { font-weight: 400; color: var(--fg); }
.ch-table tbody tr:last-child th, .ch-table tbody tr:last-child td { border-bottom: 0; }
.ch-table td b { font-weight: 500; }
.ch-table .ch-no { color: var(--faint); }
.ch-steps { margin-top: 40px; border-top: 1px solid var(--line); }
.ch-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ch-num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.ch-steps b { display: block; font-size: 15px; line-height: 20px; font-weight: 500; }
.ch-steps p { margin-top: 8px; max-width: 640px; color: var(--muted); }
.ch-acc { margin-top: 40px; }
.ch-cta { margin-top: 120px; text-align: center; }
.ch-cta .h, .ch-cta .ch-intro { margin-left: auto; margin-right: auto; }
#charter-packages { scroll-margin-top: 90px; }
@media (max-width: 900px) {
  .ch-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-sec .mkt-cards { max-width: none; }
}
@media (max-width: 760px) {
  .ch { margin-top: 40px; }
  .ch-sec, .ch-cta { margin-top: 80px; }
  .ch-hero .h { font-size: 27px; line-height: 30px; }
  .ch-grid-4, .ch-grid-2, .ch-specs { grid-template-columns: minmax(0, 1fr); }
  .ch-steps li { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .mkt-tabs { display: flex; }
  .mkt-tab { flex: 1; padding: 0 10px; }
}


/* ============================================================
   SUPPORT CALL ($75, booked from a calendar of free hours)
   ============================================================ */
.support { padding-top: 240px; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; margin-top: 48px; align-items: start; }
.sc-info, .sc-book, .sc-done, .sc-days { min-width: 0; }   /* the scrolling day strip must not widen the column */
.sc-info > p { margin-top: 18px; max-width: 420px; }
.sc-price { display: flex; align-items: baseline; gap: 10px; }
.sc-price b { font-size: 44px; line-height: 48px; letter-spacing: -1.2px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sc-price span { color: var(--muted); }
.sc-list { margin-top: 22px; display: grid; gap: 10px; color: var(--muted); max-width: 420px; }
.sc-list li { display: flex; gap: 10px; align-items: flex-start; }
.sc-list li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--green); }
.sc-hotline { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--s1); display: grid; gap: 2px; max-width: 420px; }
.sc-hotline small { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.sc-hotline a { font-size: 22px; line-height: 28px; letter-spacing: -.3px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sc-hotline a:hover { text-decoration: underline; }
.sc-hotline span { font-size: 13px; color: var(--muted); }
.sc-book { padding: 28px; border: 1px solid var(--line); border-radius: 18px; }
.sc-book[hidden] { display: none; }
.sc-step + .sc-step { margin-top: 24px; }
.sc-lab { display: block; font-size: 13px; margin-bottom: 10px; }
.sc-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: -2px -2px 0; scrollbar-width: none; }
.sc-days::-webkit-scrollbar { display: none; }
.sc-day { flex: none; width: 64px; display: grid; justify-items: center; gap: 1px; padding: 10px 0 8px; border: 1px solid #d9d9d6; border-radius: 12px; background: #fff; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.sc-day small { font-size: 11px; line-height: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sc-day b { font-size: 20px; line-height: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sc-day span { font-size: 11px; line-height: 14px; color: var(--muted); }
.sc-day:hover { background: var(--s1); }
.sc-day.on, .sc-day.on:hover { background: var(--fg); border-color: var(--fg); color: #fff; }
.sc-day.on small, .sc-day.on span { color: rgba(255, 255, 255, .7); }
.sc-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sc-times:empty { display: none; }
.sc-time { min-height: 40px; border: 1px solid #d9d9d6; border-radius: 10px; background: #fff; font-size: 14px; font-variant-numeric: tabular-nums; transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.sc-time:hover { background: var(--s1); }
.sc-time.on, .sc-time.on:hover { background: var(--fg); border-color: var(--fg); color: #fff; }
.sc-time:disabled, .sc-time:disabled:hover { color: var(--faint); background: var(--s2); border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }
.sc-note { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.sc-note:empty { display: none; }
.sc-step.bad .sc-day, .sc-step.bad .sc-time { border-color: #d42a45; }
.sc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sc-fields .wide { grid-column: 1 / -1; }
.sc-book .mkt-submit { margin-top: 24px; }
.sc-fine { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); text-align: center; }
.sc-done { padding: 36px 28px; border: 1px solid var(--line); border-radius: 18px; text-align: center; outline: none; }
.sc-done[hidden] { display: none; }
.sc-done h3 { font-size: 27px; line-height: 32px; letter-spacing: -.4px; font-weight: 400; }
.sc-done p { margin: 12px auto 0; max-width: 460px; color: var(--muted); }
.sc-done .sc-when { color: var(--fg); font-weight: 500; font-size: 16px; }
.sc-day:focus-visible, .sc-time:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
#charter { scroll-margin-top: 250px; }   /* landing on the tab keeps the section heading and the switcher in view */
@media (max-width: 900px) { .sc-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 760px) {
  .support { padding-top: 160px; }
  .sc-grid { margin-top: 32px; }
  .sc-book { padding: 20px 16px; }
  .sc-fields { grid-template-columns: 1fr; }
  .sc-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-done { padding: 28px 18px; }
}
@media (prefers-reduced-motion: reduce) { .sc-day, .sc-time { transition: none; } }


/* ============================================================
   CONFIRMATION: the green check the customer sees the moment they send
   ============================================================ */
.done-check { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e7f7ef; color: var(--green); animation: doneIn .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.done-check svg { width: 30px; height: 30px; stroke-dasharray: 24; stroke-dashoffset: 24; animation: doneTick .45s .2s ease-out forwards; }
@keyframes doneIn { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes doneTick { to { stroke-dashoffset: 0; } }
.mkt-done .mkt-ref, .sc-done .mkt-ref { margin-top: 16px; color: var(--muted) !important; font-size: 13px; }
.mkt-done .mkt-ref b, .sc-done .mkt-ref b { color: var(--fg); }
.mkt-done .mkt-formerr, .sc-done .mkt-formerr { text-align: left; }
.mkt-done .mkt-formerr button, .sc-done .mkt-formerr button { margin-top: 10px; min-height: 36px; padding: 0 14px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; font-weight: 500; }
.mkt-done[hidden], .sc-done[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .done-check, .done-check svg { animation: none; stroke-dashoffset: 0; } }
