/* Swed Fintech — site styles.
   Dark, precise, Nordic. Cormorant Garamond for display, Figtree for text and the wordmark.
   Motion lives in the [data-reveal] / [data-tilt] / [data-wipe] / [data-line] hooks at the end,
   and is switched off entirely under prefers-reduced-motion. */

:root {
  --ink: #050607;
  --ink-2: #0b0c0f;
  --panel: #121419;
  --panel-2: #181b21;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);
  --text: #f3f2ee;
  --soft: #d4d3cf;
  --muted: #a3a5ad;
  --accent: #ec8e4f;          /* the live site's active-link orange, kept as the single accent */
  --accent-ink: #1a0f07;
  --focus: #ffb37f;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Figtree", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 72px);
  --maxw: 1320px;
  --radius: 14px;
  --header-h: 84px;
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);   /* Wix "tiltIn" curve */
  --ease-io: cubic-bezier(0.645, 0.045, 0.355, 1);   /* Wix "revealIn" curve */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(2rem, 1.6rem + 1.9vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.3vw, 4.75rem);
  --step-5: clamp(3.1rem, 2rem + 5.6vw, 7.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html.nav-open body { overflow: hidden; }
img, video, svg, picture { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 650; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.08; letter-spacing: -0.005em; }
h1, h2 { font-family: var(--serif); font-weight: 300; }
h3 { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); line-height: 1.2; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--text); color: var(--ink); font-weight: 600; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { width: 100%; max-width: calc(880px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- wordmark ---------- */
.wordmark { font-family: var(--sans); font-weight: 800; letter-spacing: -0.02em; text-transform: lowercase; white-space: nowrap; }
.wordmark i { font-style: normal; color: var(--accent); }
.wm-inline { font-family: var(--sans); font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header::before { /* soft top scrim so the nav stays legible over bright video */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0)); transition: opacity 0.3s ease;
}
.site-header.is-solid { background: rgba(5, 6, 7, 0.86); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
html.nav-open .site-header { transform: none; background: var(--ink); }
.site-header__inner { position: relative; display: flex; align-items: center; gap: 2rem; height: 100%; }
.brand { font-size: 1.35rem; text-decoration: none; margin-right: auto; padding: 6px 0; }
.nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  position: relative; display: inline-block; padding: 10px 12px; font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; color: var(--soft); transition: color 0.2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-active > .nav__link::after { transform: scaleX(1); }
.nav__more { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: -8px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 4px; }
.nav__more svg { transition: transform 0.25s ease; }
.nav__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px; margin: 0; padding: 10px; list-style: none;
  background: rgba(14, 15, 19, 0.97); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__item--has-menu:hover .nav__menu, .nav__item--has-menu:focus-within .nav__menu, .nav__menu.is-open {
  opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s ease, transform 0.25s var(--ease-out), visibility 0s;
}
.nav__menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.92rem; text-decoration: none; color: var(--soft); transition: background-color 0.2s ease, color 0.2s ease, padding 0.25s var(--ease-out); }
.nav__menu a:hover, .nav__menu a:focus-visible { background: rgba(255,255,255,0.06); color: var(--text); padding-left: 16px; }
.nav__menu a[aria-current="page"] { color: var(--accent); }
.site-header__cta { margin-left: 0.5rem; }

.menu-toggle { display: none; align-items: center; gap: 10px; padding: 10px 4px; margin-right: -4px; border: 0; background: none; color: var(--text); font: 500 0.95rem var(--sans); cursor: pointer; }
.menu-toggle__bars { position: relative; width: 22px; height: 12px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out); }
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 5px; transform: rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; overflow-y: auto; background: var(--ink); padding: 12px var(--gutter) 40px; }
.mobile-nav__list { list-style: none; margin: 0 0 28px; padding: 0; }
.mobile-nav__list > li { border-bottom: 1px solid var(--line); }
.mobile-nav__list a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; text-decoration: none; }
.mobile-nav__list a[aria-current="page"] { color: var(--accent); }
.mobile-nav__label { display: block; padding: 18px 0 2px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.mobile-nav__group ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 2px; }
.mobile-nav__group a { font-size: 1.4rem; padding: 8px 0; }

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .site-header .nav, .site-header .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 46px; padding: 0.7em 1.5em;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: 600 0.9rem/1 var(--sans); letter-spacing: 0.04em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s ease, transform 0.2s ease;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: translateY(101%); transition: transform 0.45s var(--ease-out); }
.btn:hover { color: var(--ink); border-color: var(--text); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn--solid { background: var(--text); color: var(--ink); border-color: var(--text); }
.btn--solid::before { background: var(--accent); }
.btn--solid:hover { color: var(--accent-ink); border-color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0.55em 1.15em; font-size: 0.84rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-arrow {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 2.5rem; min-width: 200px; padding: 0.55em 0;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; color: var(--text);
}
.link-arrow::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-strong); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out);
}
.link-arrow .arr { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: scaleX(1); }
.link-arrow:hover .arr, .link-arrow:focus-visible .arr { transform: translateX(6px); }

/* ---------- type helpers ---------- */
.eyebrow { display: flex; align-items: center; gap: 0.8em; margin: 0 0 1.4rem; font: 600 0.75rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.display { font-size: var(--step-4); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--soft); }
.prose { max-width: 60ch; color: var(--soft); }
.prose strong { color: var(--text); }
.prose h3 { color: var(--text); margin: 0 0 0.6em; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.4em; margin-bottom: 0.45em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.6em; height: 1px; background: var(--accent); }
.prose ol { padding-left: 1.3em; }
.prose ol li { margin-bottom: 0.4em; padding-left: 0.2em; }
.prose a { color: var(--text); }
.prose a:hover { color: var(--accent); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 150px) 0; background: var(--ink); }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--flush-top { padding-top: 0; }
.section--panel { background: var(--ink-2); }
.section-head { position: relative; padding-top: clamp(28px, 3vw, 44px); margin-bottom: clamp(40px, 6vw, 88px); }
.section-head__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform-origin: left; }
.section-head h2 { font-size: var(--step-4); max-width: 20ch; }
.section-head h2 .wm-inline { font-size: 0.86em; }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.split--top { align-items: start; }
.split + .split { margin-top: clamp(80px, 11vw, 160px); }
.split__media { grid-column: 1 / span 6; }
.split__text { grid-column: 8 / span 5; }
.split--flip .split__media { grid-column: 7 / span 6; order: 2; }
.split--flip .split__text { grid-column: 1 / span 5; order: 1; }
.split__text h2 { font-size: var(--step-4); margin-bottom: 0.5em; }
.split__text > h3 { margin-bottom: 0.8em; }
.split__text .link-arrow { margin-top: 1.8rem; }
@media (max-width: 859px) {
  .split { grid-template-columns: 1fr; }
  .split__media, .split__text, .split--flip .split__media, .split--flip .split__text { grid-column: 1; order: 0; }
}

.frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.frame .pic, .frame picture, .frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame img { transition: transform 1.2s var(--ease-out); }
.frame:hover img { transform: scale(1.035); }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-5-4 { aspect-ratio: 5 / 4; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-3-2 { aspect-ratio: 3 / 2; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.caption { margin-top: 0.9rem; font-size: var(--step--1); line-height: 1.5; color: var(--muted); }
.caption strong { color: var(--soft); font-weight: 600; }
.frame__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; font-size: var(--step--1); line-height: 1.45; color: var(--soft); background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0)); }
.frame__caption strong { display: block; color: var(--text); font-weight: 600; }

/* ---------- background video over its poster ---------- */
.bg-poster, .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-poster img, .bg-video { object-fit: cover; }
.bg-poster img { width: 100%; height: 100%; }
.bg-video { opacity: 0; transition: opacity 0.8s ease; }
.bg-video.is-playing { opacity: 1; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: 100svh; padding: calc(var(--header-h) + 60px) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; background: #000; }
.hero--center { align-items: center; text-align: center; }
.hero--short { min-height: clamp(460px, 68svh, 720px); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media > *, .hero__media picture, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media { will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.12) 35%, rgba(0,0,0,0.55) 75%, rgba(5,6,7,1) 100%); }
.hero--center::after { background: radial-gradient(ellipse at center, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.5) 100%), linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(5,6,7,1) 100%); }
.hero__inner { position: relative; }
.hero__kicker { font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--soft); margin-bottom: 1.2rem; }
.hero__title { font-size: var(--step-5); line-height: 1; max-width: 16ch; text-wrap: balance; }
.hero--center .hero__title { margin-left: auto; margin-right: auto; }
.hero__title em { font-style: italic; font-weight: 300; }
.hero__sub { margin-top: 1.5rem; max-width: 46ch; font-size: var(--step-1); line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.hero--center .hero__sub { margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: 2.25rem; }
.hero--center .hero__actions { justify-content: center; }
.hero__wordmark { font-size: clamp(3.4rem, 1.2rem + 10.5vw, 11rem); line-height: 0.95; letter-spacing: -0.045em; }
.hero__tagline { margin: 1.6rem auto 0; max-width: 34ch; font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2.1rem); font-weight: 400; line-height: 1.3; color: var(--soft); text-wrap: balance; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; width: 1px; height: 56px; background: rgba(255,255,255,0.25); overflow: hidden; transform: translateX(-50%); }
.hero__scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { to { top: 100%; } }
.hero__caption { position: absolute; right: var(--gutter); bottom: 22px; max-width: 360px; text-align: right; font-size: var(--step--1); line-height: 1.45; color: var(--soft); }
.hero__caption strong { display: block; color: var(--text); font-weight: 600; }
@media (max-width: 700px) {
  .hero { min-height: 88svh; }
  .hero--short { min-height: 62svh; }
  .hero__caption { position: static; margin-top: 2rem; text-align: left; max-width: none; }
  .hero__scroll { display: none; }
}

/* ---------- page head (no media) ---------- */
.page-head { padding: calc(var(--header-h) + clamp(56px, 9vw, 130px)) 0 clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: var(--step-5); line-height: 1; }
.page-head .lead { margin-top: 1.4rem; max-width: 56ch; }

/* ---------- home ---------- */
.mission { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.mission__text { grid-column: 1 / span 5; }
.mission__media { grid-column: 7 / span 6; }
.mission__text h3 { font-size: var(--step-3); font-weight: 400; margin-bottom: 0.7em; }
@media (max-width: 859px) { .mission { grid-template-columns: 1fr; } .mission__text, .mission__media { grid-column: 1; } }


/* sticky "What we do" panel that the next section slides over (Wix sticky section) */
.stack { position: relative; }
/* The pinned panel can be taller than the viewport. site.js sets --pin-top = min(0, viewport - panel height),
   so the panel scrolls until its bottom edge is on screen, then holds while the next section slides over. */
.stack__pin { position: sticky; top: var(--pin-top, 0px); z-index: 0; }
html:not(.js) .stack__pin { position: relative; }
.stack__cover { position: relative; z-index: 1; background: var(--ink); box-shadow: 0 -40px 80px rgba(0,0,0,0.65); }

.offer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.offer__text { grid-column: 1 / span 5; position: relative; padding-left: clamp(20px, 2.4vw, 36px); }
.offer__text::before { content: ""; position: absolute; left: 0; top: -12%; bottom: -12%; width: 1px; background: var(--line-strong); }
.offer__text h3 { font-size: var(--step-3); font-weight: 400; padding-bottom: 0.6em; margin-bottom: 0.9em; border-bottom: 1px solid var(--line); }
.offer__media { grid-column: 7 / span 6; }
@media (max-width: 859px) { .offer { grid-template-columns: 1fr; } .offer__text, .offer__media { grid-column: 1; } }

.edge { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.edge__card {
  position: relative; padding: clamp(28px, 3vw, 44px) clamp(22px, 2.4vw, 36px) clamp(32px, 3.4vw, 48px); border-radius: var(--radius);
  background: var(--panel); border: 1px solid rgba(255,255,255,0.06); overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, background-color 0.4s ease;
}
.edge__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(236,142,79,0.14), transparent 45%); opacity: 0; transition: opacity 0.4s ease; }
.edge__card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.16); background: var(--panel-2); }
.edge__card:hover::before { opacity: 1; }
.edge__num { position: absolute; top: 22px; right: 24px; font: 500 0.78rem var(--sans); letter-spacing: 0.12em; color: var(--muted); }
.edge__icon { width: 40px; height: 40px; margin-bottom: 1.8rem; color: var(--text); }
.edge__card h3 { font-size: var(--step-2); margin-bottom: 0.8em; }
.edge__card p { color: var(--soft); font-size: 0.98rem; }
.edge__card em { display: block; margin-bottom: 0.35em; font-style: italic; color: var(--text); }
@media (max-width: 959px) { .edge { grid-template-columns: 1fr; } }

.paths--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 859px) { .paths--3 { grid-template-columns: 1fr !important; } }
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.path { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: clamp(24px, 2.4vw, 36px); background: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate; transition: background-color 0.4s ease; }
.path::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.path:hover, .path:focus-visible { background: var(--panel); }
.path:hover::after, .path:focus-visible::after { transform: scaleX(1); }
.path__kicker { font: 600 0.72rem var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.path h3 { margin: 1.1rem 0 0.7rem; font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.5rem); font-weight: 400; line-height: 1.05; }
.path p { color: var(--soft); font-size: 0.95rem; }
.path__go { margin-top: auto; padding-top: 1.6rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; font-weight: 600; }
.path__go .arr { transition: transform 0.35s var(--ease-out); }
.path:hover .path__go .arr { transform: translateX(6px); }
@media (max-width: 1099px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .paths { grid-template-columns: 1fr; } .path { min-height: 0; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 5vw, 80px); }
.contact-grid__info { grid-column: 1 / span 5; }
.contact-grid__form { grid-column: 7 / span 6; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .k { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a { font-size: var(--step-1); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.contact-list address { font-style: normal; color: var(--soft); }
@media (max-width: 859px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid__info, .contact-grid__form { grid-column: 1; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--soft); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03);
  color: var(--text); font: 400 1rem/1.4 var(--sans); transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23f3f2ee' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field select option { background: var(--panel); color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(255,255,255,0.5); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.05); box-shadow: 0 0 0 3px rgba(236,142,79,0.25); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff8a7a; }
.field__hint { font-size: 0.8rem; color: var(--muted); margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: var(--soft); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check a { color: var(--text); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form__note { font-size: 0.85rem; color: var(--muted); }
.form__note a { color: var(--text); }
.form-status { margin: 0; padding: 14px 16px; border-radius: 10px; font-size: 0.92rem; }
.form-status--ok { background: rgba(120, 200, 160, 0.12); border: 1px solid rgba(120, 200, 160, 0.4); color: #cdeedd; }
.form-status--err { background: rgba(255, 120, 100, 0.1); border: 1px solid rgba(255, 120, 100, 0.4); color: #ffd3cb; }

/* ---------- application panel (Career + 3 student pages) ---------- */
.apply { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 5vw, 80px); padding: clamp(32px, 5vw, 72px); border-radius: calc(var(--radius) + 6px); background: var(--panel); border: 1px solid rgba(255,255,255,0.07); }
.apply__intro { grid-column: 1 / span 5; }
.apply__intro h2 { font-size: var(--step-4); margin-bottom: 0.5em; }
.apply__form { grid-column: 7 / span 6; }
.apply__checklist { margin-top: 1.6rem; }
.apply__mail { display: inline-flex; margin-top: 1.4rem; font-size: var(--step-1); overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 959px) { .apply { grid-template-columns: 1fr; } .apply__intro, .apply__form { grid-column: 1; } }

/* ---------- Micro Lab ---------- */
.lab-head { text-align: center; max-width: 780px; margin: 0 auto clamp(48px, 6vw, 88px); }
.lab-head h2 { font-size: var(--step-4); }
.lab-head h2 .wm-inline { font-size: 0.86em; }
.lab-head p { margin-top: 1.4rem; color: var(--soft); font-size: var(--step-1); }
.lab-head .status-pill { margin-top: 1.4rem; }
.lab { display: grid; grid-template-columns: 1fr minmax(0, 1.25fr) 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.lab__col { display: grid; gap: clamp(40px, 5vw, 72px); }
.lab__item h3 { font-size: var(--step-2); margin-bottom: 0.6em; }
.lab__item p, .lab__item ul { color: var(--soft); font-size: 0.98rem; }
.lab__item ul { list-style: none; padding: 0; }
.lab__item ul li { display: flex; gap: 10px; margin-bottom: 0.35em; }
.lab__item ul li span[aria-hidden] { width: 1.3em; flex: none; text-align: center; }
.laptop { position: relative; }
.laptop__screen { position: relative; aspect-ratio: 16 / 10.5; border: 10px solid #c9c8d2; border-bottom-width: 14px; border-radius: 18px 18px 6px 6px; background: #05070b; overflow: hidden; }
.laptop__base { height: 14px; margin: 0 -9%; border-radius: 0 0 14px 14px; background: linear-gradient(#d6d5de, #a9a8b3); }
.laptop canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 959px) { .lab { grid-template-columns: 1fr; text-align: center; } .lab__item ul li { justify-content: center; } .laptop { max-width: 520px; margin: 0 auto; order: -1; } }

/* ---------- FAQ (Internship) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; padding: 24px 56px 24px 0; font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; cursor: pointer; list-style: none; transition: color 0.2s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: transform 0.35s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body { padding: 0 0 28px; max-width: 72ch; color: var(--soft); }
.faq__body em { color: var(--text); }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 0.88rem; }
.legal__toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.legal__toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; }
.legal__toc a:hover { color: var(--text); border-left-color: var(--accent); }
.legal__body { max-width: 78ch; color: var(--soft); font-size: 0.98rem; }
.legal__body h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 650; color: var(--text); margin: 2.4em 0 0.7em; scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; color: var(--text); margin: 1.6em 0 0.5em; }
.legal__part { font-family: var(--serif) !important; font-size: var(--step-3) !important; font-weight: 400 !important; padding-top: 1.2em; border-top: 1px solid var(--line); }
@media (max-width: 859px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } }

/* ---------- newsletter ---------- */
.newsletter { padding: clamp(80px, 11vw, 160px) 0 clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.newsletter__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: end; }
.newsletter__h { grid-column: 1 / span 6; font-size: var(--step-4); line-height: 1.04; }
.newsletter__form { grid-column: 8 / span 5; display: grid; gap: 18px; }
.newsletter__row { display: flex; gap: 10px; align-items: flex-end; }
.newsletter__row .field { flex: 1; }
.newsletter__note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.newsletter__note a { color: var(--soft); }
@media (max-width: 859px) { .newsletter__inner { grid-template-columns: 1fr; } .newsletter__h, .newsletter__form { grid-column: 1; } }
@media (max-width: 479px) { .newsletter__row { flex-direction: column; align-items: stretch; } }

/* ---------- footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 96px) 0 40px; background: var(--ink-2); border-top: 1px solid var(--line); font-size: 0.92rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.footer__wordmark { font-size: 1.6rem; text-decoration: none; }
.footer__tag { margin-top: 0.6rem; color: var(--muted); }
.footer__h { margin: 0 0 1rem; font: 600 0.72rem/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 0.55rem; }
.footer__col a { color: var(--soft); text-decoration: none; overflow-wrap: anywhere; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--text); text-decoration: underline; }
.footer__col a[aria-current="page"] { color: var(--accent); }
.footer__legal { margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; line-height: 1.6; }
.footer__legal p { margin: 0 0 0.5em; }
.footer__disclaimer { margin-top: 1.2em !important; font-style: italic; }
@media (max-width: 959px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 80svh; display: grid; align-content: center; padding: calc(var(--header-h) + 60px) 0 80px; }
.notfound h1 { font-size: var(--step-5); }
.notfound p { margin-top: 1.2rem; color: var(--soft); }

/* ================= motion =================
   data-tilt   : Wix "tiltIn" on section headings — fade + perspective tilt, 1.4s, cubic-bezier(.215,.61,.355,1)
   data-reveal : Wix "fadeIn" on text blocks — fade + small rise
   data-wipe   : Wix "revealIn" on images — clip-path wipe, 1.2s, cubic-bezier(.645,.045,.355,1)
   data-line   : Wix scroll-linked hairline that draws from left as the section enters
   All hooks only hide content when JS has run (html.js) and motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
  html.js [data-reveal].is-in { opacity: 1; transform: none; }
  html.js [data-tilt] { opacity: 0; transform: perspective(800px) rotateX(-55deg) translateY(0.35em); transform-origin: 50% 100%; transition: opacity 0.5s var(--ease-out), transform 1.4s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
  html.js [data-tilt].is-in { opacity: 1; transform: none; }
  html.js [data-wipe] { clip-path: inset(0 100% 0 0 round var(--radius)); transition: clip-path 1.2s var(--ease-io); transition-delay: calc(var(--d, 0) * 110ms); }
  html.js [data-wipe="up"] { clip-path: inset(100% 0 0 0 round var(--radius)); }
  html.js [data-wipe].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
  html.js [data-wipe] img { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
  html.js [data-wipe].is-in img { transform: scale(1); }
  html.js [data-wipe].is-in:hover img { transform: scale(1.035); }
  html.js [data-line] { transform: scaleX(var(--line, 0)); }
  html.js .hero__title, html.js .hero__wordmark, html.js .hero__tagline, html.js .hero__sub, html.js .hero__kicker, html.js .hero__actions { animation: heroIn 1.3s var(--ease-out) both; }
  html.js .hero__kicker { animation-delay: 0.1s; }
  html.js .hero__title, html.js .hero__wordmark { animation-delay: 0.2s; }
  html.js .hero__tagline, html.js .hero__sub { animation-delay: 0.45s; }
  html.js .hero__actions { animation-delay: 0.65s; }
  html.js .hero__media > * { animation: heroZoom 2.4s var(--ease-out) both; }
}
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .stack__pin { position: relative; }
  video.bg-video { display: none; }
  .hero__scroll { display: none; }
}
