/* ============ Tokens ============ */
:root {
  --bg: #0b0b0b;
  --bg-2: #111110;
  --ink: #ece8e1;          /* warm ivory */
  --ink-2: #b4afa6;
  --mute: #7a766f;
  --line: rgba(236, 232, 225, .1);
  --line-2: rgba(236, 232, 225, .2);
  --red: #e1262e;
  --red-deep: #b51c25;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gut: clamp(18px, 4vw, 56px);
  --sec: clamp(72px, 9vw, 130px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font: 300 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.is-loading body { overflow: hidden; }
/* grain: static, so the full-screen layer never repaints */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 400; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============ Type ============ */
.mono { font: 400 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
.h2 { font: 400 clamp(40px, 5.4vw, 84px)/1.02 var(--serif); letter-spacing: -.015em; }
.h2--xl { font-size: clamp(52px, 8.6vw, 148px); line-height: .95; letter-spacing: -.025em; }
em { font-style: italic; }
.body { max-width: 52ch; margin: 28px 0 0; font-size: clamp(16px, 1.25vw, 19px); }

/* ============ Reveal ============ */
.r { opacity: 0; transform: translateY(40px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.r.in { opacity: 1; transform: none; }

/* ============ Buttons / links ============ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 18px; overflow: hidden; isolation: isolate;
  padding: 18px 30px; border: 1px solid var(--line-2); border-radius: 999px; background: none; cursor: pointer;
  font: 400 15px/1 var(--sans); color: var(--ink); transition: color .7s var(--ease), border-color .7s var(--ease);
}
.btn::before {
  content: ""; position: absolute; left: 50%; top: 100%; z-index: -1; width: 140%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); transform: translate(-50%, 0) scale(.2); transition: transform .9s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn:hover::before { transform: translate(-50%, -55%) scale(1); }
.btn i { font-style: normal; transition: transform .7s var(--ease); }
.btn:hover i { transform: translateX(5px); }

.pill { padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink); transition: background .5s, color .5s, border-color .5s; }
button.pill { background: none; cursor: pointer; }
.pill:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.ulink {
  position: relative; display: inline-block; padding: 2px 0; border: 0; cursor: pointer; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) right bottom / 100% 1px no-repeat;
  transition: background-size .8s var(--ease);
}
.ulink:hover { background-size: 0 1px; background-position: left bottom; animation: uline .9s var(--ease) .35s forwards; }
@keyframes uline { from { background-size: 0 1px; } to { background-size: 100% 1px; } }

/* ============ Cursor ring (hover devices only) ============ */

/* ============ Preloader ============ */
.loader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--bg); transition: clip-path 1.2s var(--ease-io); clip-path: inset(0 0 0 0); }
.loader__k { position: relative; width: clamp(130px, 16vw, 210px); animation: kin 1.7s var(--ease) both; }
.loader__k img { width: 100%; height: auto; }
.loader__k::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,.9) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat;
  -webkit-mask: url("assets/k-logo.webp") center / contain no-repeat; mask: url("assets/k-logo.webp") center / contain no-repeat;
}
.loader__k::after { animation: sheen 1.6s var(--ease-io) .5s both; }
@keyframes kin { from { opacity: 0; transform: scale(.94); filter: blur(12px); clip-path: inset(100% 0 0 0); } to { opacity: 1; transform: none; filter: none; clip-path: inset(0); } }
@keyframes sheen { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.loader__meta { position: absolute; left: var(--gut); right: var(--gut); bottom: 32px; display: flex; justify-content: space-between; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }

/* ============ Header ============ */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .9s var(--ease); }
.nav.hide { transform: translateY(-110%); }
.nav__in { display: flex; align-items: center; gap: 40px; padding: 22px var(--gut); max-width: 1440px; margin: 0 auto; }
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(11,11,11,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .6s; }
.nav.solid::before { opacity: 1; }
.nav__in > * { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 400 26px/1 var(--serif); color: var(--ink); margin-right: auto; }
.brand__k { width: 34px; height: auto; }
.nav__links { display: flex; gap: 34px; }
.nav__links a { font-size: 14px; color: var(--ink-2); transition: color .4s; position: relative; }
.nav__links a::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.on { color: var(--ink); }
.nav__plain, .nav__links .nav__plain:hover { font-size: 14px; color: var(--ink-2); }
.nav__links a.on::before { transform: scale(1); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .7s var(--ease), top .7s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.menu-open .burger span:first-child, .menu-open .burger span:last-child { top: 22px; }
.menu-open .burger span:first-child { transform: rotate(45deg); }
.menu-open .burger span:last-child { transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; padding: 90px var(--gut) 40px; background: var(--bg); clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-io); visibility: hidden; }
.menu-open .menu { clip-path: inset(0); visibility: visible; }
.menu nav { display: grid; }
.menu a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 400 clamp(44px, 12vw, 72px)/1.05 var(--serif); color: var(--ink); opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.menu a i { font: 400 11px/1 var(--mono); font-style: normal; color: var(--red); letter-spacing: .1em; }
.menu-open .menu a { opacity: 1; transform: none; }
.menu-open .menu a:nth-child(1) { transition-delay: .3s } .menu-open .menu a:nth-child(2) { transition-delay: .36s }
.menu-open .menu a:nth-child(3) { transition-delay: .42s } .menu-open .menu a:nth-child(4) { transition-delay: .48s } .menu-open .menu a:nth-child(5) { transition-delay: .54s }
.menu__foot { margin: 40px 0 0; font: 400 12px/1 var(--mono); color: var(--mute); letter-spacing: .1em; }

/* ============ Hero ============ */
.hero { position: relative; min-height: calc(100svh - 62px); display: flex; flex-direction: column; justify-content: center; padding: 120px 0 34px; overflow: hidden; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.grid-lines { position: absolute; inset: 0; z-index: 0; display: flex; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); pointer-events: none; }
.grid-lines i { width: 1px; background: linear-gradient(transparent, var(--line) 20%, var(--line) 80%, transparent); transform: scaleY(0); transform-origin: top; transition: transform 2.2s var(--ease-io); }
.grid-lines i:nth-child(2) { transition-delay: .1s } .grid-lines i:nth-child(3) { transition-delay: .2s } .grid-lines i:nth-child(4) { transition-delay: .3s }
.loaded .grid-lines i { transform: scaleY(1); }
.hero__body { position: relative; z-index: 1; width: 100%; transform: translate(-1.5vw, -8vh); }
.hero__title { max-width: 23em; margin: 0; font: 400 clamp(30px, 3.4vw, 56px)/1.15 var(--serif); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.fade { opacity: 0; transform: translateY(16px); transition: opacity 1.4s var(--ease) .7s, transform 1.4s var(--ease) .7s; }
.loaded .fade { opacity: 1; transform: none; }
.scroll { display: inline-flex; align-items: center; gap: 14px; }
.scroll span { position: relative; width: 56px; height: 1px; background: var(--line-2); overflow: hidden; }
.scroll span::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: scr 2.4s var(--ease-io) infinite; }
@keyframes scr { from { transform: translateX(-100%) } to { transform: translateX(100%) } }

/* ============ Sections ============ */
.sec { position: relative; padding: var(--sec) 0 0; }


/* model */
.model { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.model li { position: relative; padding: 36px clamp(20px, 3vw, 48px) 0 0; }
.model li + li { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--line); }
.model li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-io) .3s; }
.model li.in::before { transform: scaleX(1); }
.model__n { display: block; font: italic 400 22px/1 var(--serif); color: var(--ink); }
.model h3 { margin-top: clamp(28px, 3vw, 48px); font: 400 clamp(34px, 3.4vw, 52px)/1 var(--serif); }
.model p { margin: 16px 0 0; max-width: 28ch; }
.model li:nth-child(2) { --d: .12s } .model li:nth-child(3) { --d: .24s }

/* approach list */
.pillars { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 4ch minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px clamp(20px, 3vw, 48px); align-items: baseline; padding: clamp(22px, 2.4vw, 32px) 0; border-top: 1px solid var(--line); }
.sec__title { margin-bottom: clamp(28px, 3vw, 48px); }
.pillars span { color: var(--ink); }
.pillars h3 { margin: 0; font: 400 clamp(26px, 2.6vw, 38px)/1.1 var(--serif); color: var(--ink); transition: transform .6s var(--ease); }
.pillars p { margin: 0; max-width: 46ch; }
.pillars li:hover h3 { transform: translateX(10px); }
@media (max-width: 820px) { .pillars li { grid-template-columns: 4ch 1fr; } .pillars p { grid-column: 2; } }

/* login + dashboard */
.auth { min-height: 100svh; display: grid; align-content: center; padding-block: 120px 60px; }
.auth .form { max-width: 420px; margin-top: 36px; }
.auth .btn { justify-self: start; margin-top: 18px; }

/* sub-pages: careers, contact */
.page { padding-block: 116px 56px; }
.jobs { list-style: none; margin: clamp(32px, 4vw, 60px) 0 0; padding: 0; }
.job { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px clamp(32px, 5vw, 80px); padding: 30px 0; border-top: 1px solid var(--line); }
.job h2 { margin: 12px 0 0; font: 400 clamp(32px, 3.4vw, 50px)/1.05 var(--serif); }
.job__tag { color: var(--red); }
.job__meta { margin: 14px 0 22px; font-size: 15px; }
.job h3 { margin: 0 0 10px; }
/* Responsibilities | Skills side by side */
.job > div:last-child { display: grid; grid-template-rows: auto 1fr; grid-auto-flow: column; grid-auto-columns: 1fr; column-gap: clamp(24px, 3vw, 48px); }
.job ul { margin: 0; padding-left: 1.1em; color: var(--ink); }
.job li + li { margin-top: 6px; }
.apply { margin-top: clamp(32px, 4vw, 60px); padding-top: 32px; border-top: 1px solid var(--line); }
.apply { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(32px, 5vw, 80px); }
.apply > :not(.form) { grid-column: 1; }
.apply .h2 { grid-row: 1; }
.apply > .mono { grid-row: 2; margin-top: 28px; }
.apply > .body { grid-row: 3; margin-top: 14px; }
/* form sits beside the intro; short fields pair up, message/CV/button span both columns */
.apply .form { grid-column: 2; grid-row: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 0; }
.apply .form > :nth-last-child(-n+3) { grid-column: 1 / -1; }

/* dashboard + admin */
.h2--sm { font-size: clamp(34px, 3.6vw, 56px); }
/* dashboard header: welcome left, latest report right */
.dash-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: end; gap: 24px clamp(32px, 5vw, 80px); }
.dash-head h1 { margin-top: 10px; }
.dash-cur { max-width: 520px; padding: 4px 0 4px clamp(20px, 2.4vw, 32px); border-left: 1px solid var(--line-2); }
.dash-cur > .mono { display: flex; align-items: center; gap: 10px; }
.dash-cur > .mono i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(225, 38, 46, .15); }
.dash-cur h2 { margin: 10px 0 0; font: 400 clamp(22px, 2vw, 30px)/1.15 var(--serif); overflow-wrap: anywhere; }
.dash-cur .bar { margin-top: 14px; gap: 10px 18px; }
.dash-cur .pill { padding: 8px 18px; font-size: 14px; }
@media (max-width: 820px) {
  .dash-head { grid-template-columns: 1fr; }
  .dash-cur { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
.panel { margin-top: clamp(28px, 3vw, 44px); padding-top: 22px; border-top: 1px solid var(--line); }
.panel h2 { margin: 10px 0 0; font: 400 clamp(28px, 3vw, 40px)/1.1 var(--serif); }
.panel .form { max-width: 520px; margin-top: 10px; }
.rows { list-style: none; margin: 24px 0 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li > :first-child { margin-right: auto; color: var(--ink); overflow-wrap: anywhere; }
.rows li.on > :first-child { color: var(--red); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 18px; }
.sheet { margin-top: 14px; max-height: 55vh; overflow: auto; border: 1px solid var(--line); }
.sheet table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.sheet td, .sheet th { padding: 8px 12px; border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.sheet tr:first-child td { position: sticky; top: 0; background: var(--bg-2); }
.sheet-pick { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 14px; }
.empty { color: var(--mute); }

/* ledger summary (ledger.js); gain/loss pair checked for colour-blind separation on --bg-2 */
.led { --gain: #36a383; --loss: var(--red); margin-top: 22px; }
.led__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px clamp(28px, 4vw, 64px); align-items: end; }
.led__big { margin: 14px 0 0; font: 400 clamp(52px, 6.4vw, 100px)/.95 var(--serif); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.led__big span { color: var(--mute); font-size: .42em; letter-spacing: 0; }
.led__bridge { margin: 14px 0 0; color: var(--ink-2); white-space: pre-wrap; word-spacing: .2em; }
.led__kpis { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.led__kpis > div { padding: 14px 0 14px 20px; border-left: 1px solid var(--line); }
.led__kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.led__kpis dd { margin: 6px 0 0; font: 400 clamp(26px, 2.4vw, 36px)/1 var(--serif); color: var(--ink); white-space: nowrap; }
.led__kpis dd i { font: normal .45em/1 var(--sans); margin-right: .45em; vertical-align: .35em; }
.led__kpis dd small { font-size: .5em; color: var(--mute); }
.led__kpis p { margin: 6px 0 0; }
.led__gain { color: var(--gain); fill: var(--gain); }
.led__loss { color: var(--loss); fill: var(--loss); }
.led__charts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(20px, 2.4vw, 32px); }
.led__fig { position: relative; margin: 0; padding: 16px 18px; border: 1px solid var(--line); background: var(--bg-2); }
.led__fig figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.led__fig figcaption :first-child { margin-left: auto; }
.led__key { display: inline-flex; align-items: center; gap: 7px; }
.led__key i { width: 9px; height: 9px; border-radius: 2px; background: currentColor; }
.led__plot { position: relative; }
.led__plot svg { width: 100%; height: auto; overflow: visible; }
.led__grid { stroke: var(--line); }
.led__zero { stroke: var(--line-2); }
.led__ax { fill: var(--mute); font: 400 11px var(--mono); letter-spacing: .06em; }
.led__val { fill: var(--ink); font: 400 12px var(--mono); }
.led__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.led__cross { stroke: var(--line-2); }
.led__dot { fill: var(--ink); stroke: var(--bg-2); stroke-width: 2; }
.led__hit { fill: transparent; pointer-events: all; }
.led__tip { position: absolute; z-index: 2; translate: -50% calc(-100% - 12px); display: grid; gap: 2px; padding: 9px 12px; border: 1px solid var(--line-2); background: var(--bg); pointer-events: none; white-space: nowrap; }
.led__tip .v { color: var(--ink); font-size: 15px; }
@media (max-width: 960px) { .led__charts, .led__top { grid-template-columns: 1fr; } }
.table-toggle { margin-top: 18px; }
.table-toggle summary { cursor: pointer; width: max-content; }
.table-toggle summary:hover { color: var(--ink); }
@media (max-width: 820px) { .apply, .apply .form { grid-template-columns: 1fr; } .apply { grid-template-rows: none; } .apply .form { grid-column: 1; grid-row: auto; margin-top: 30px; } .job > div:last-child { grid-auto-flow: row; grid-template-rows: none; } .job ul + h3 { margin-top: 20px; } }

/* contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, 640px); gap: clamp(40px, 8vw, 140px); margin-top: clamp(36px, 5vw, 64px); }

/* forms: floating labels, line fills on focus */
.form { display: grid; gap: 10px; }
.f { position: relative; display: block; padding-top: 22px; }
.f input, .f textarea, .f select {
  width: 100%; padding: 14px 0 12px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; color: var(--ink); font: 300 18px/1.4 var(--sans); outline: none; resize: vertical;
  background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat transparent; transition: background-size .9s var(--ease);
}
.f input:focus, .f textarea:focus, .f select:focus { background-size: 100% 1px; }
/* keep Chrome autofill from painting the fields light */
.f :is(input, textarea, select):-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 99999s 0s; }
.f > span { position: absolute; left: 0; top: 36px; font-size: 17px; color: var(--mute); pointer-events: none; transform-origin: left top; transition: transform .6s var(--ease), color .4s; }
.f input:focus + span, .f input:not(:placeholder-shown) + span,
.f textarea:focus + span, .f textarea:not(:placeholder-shown) + span,
.f--select > span { transform: translateY(-30px) scale(.72); color: var(--ink-2); }
.f select { appearance: none; cursor: pointer; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 1px no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4afa6' stroke-width='1.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat transparent; }
.f select:focus { background-size: 100% 1px, 18px; }
.f select option { background: #161615; color: var(--ink); }
.file { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 18px; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file__btn { flex: none; padding: 10px 18px; border: 1px dashed var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink); transition: border-color .4s; }
.file:hover .file__btn, .file input:focus-visible + .file__btn { border-color: var(--ink); border-style: solid; }
.file__name { font-size: 14px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form .btn { justify-self: start; margin-top: 30px; }
.contact__lead { max-width: 52ch; margin: 22px 0 0; font-size: clamp(16px, 1.3vw, 19px); }
.f-phone { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 20px; }
/* country code picker (built in contact.html over the native select) */
.cc { position: relative; }
.cc__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 24px 12px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; cursor: pointer; text-align: left; color: var(--ink); font: 300 18px/1.4 var(--sans);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4afa6' stroke-width='1.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat transparent; transition: border-color .4s; }
.cc__btn:hover, .cc__btn:focus-visible, .cc__btn[aria-expanded="true"] { outline: none; border-color: var(--ink); }
.cc img { flex: none; width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.cc__pop { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(320px, calc(100vw - 2 * var(--gut))); overflow: hidden;
  background: #161615; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.f .cc__q { width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: 300 15px/1.4 var(--sans); }
.cc__q::placeholder { color: var(--mute); }
.cc__list { max-height: 288px; margin: 0; padding: 6px; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.cc__list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.cc__list li[hidden] { display: none; }
.cc__list li span { flex: 1; }
.cc__list li b { font: 400 12px/1 var(--mono); color: var(--mute); }
.cc__list li.on { background: rgba(236, 232, 225, .07); color: var(--ink); }
.cc__list li[aria-selected="true"] b { color: var(--ink); }
.choice { margin: 26px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { width: 100%; padding: 0; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 20px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background .4s, color .4s, border-color .4s; }
.choice input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }

/* footer */
.foot { padding: 22px 0; border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.foot__disc { margin: 14px 0 0; font-size: 12px; line-height: 1.7; color: var(--mute); }
.lock { display: inline-flex; align-items: center; gap: 10px; }
.lock svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
  background: linear-gradient(180deg, var(--ink) 15%, rgba(236,232,225,.04) 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 260; translate: -50% 0; padding: 14px 24px; max-width: calc(100vw - 32px); border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 15px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.toast.show { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__in { padding-block: 14px; gap: 10px; }
  .nav__cta { padding: 7px 14px; font-size: 13px; white-space: nowrap; }
  .contact__grid, .job { grid-template-columns: 1fr; }
  .model { grid-template-columns: 1fr; }
  .grid-lines i:nth-child(2), .grid-lines i:nth-child(3) { display: none; }
  .model li, .model li + li { padding: 30px 0 40px; border-left: 0; }
  .model h3 { margin-top: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 100px; }
  .hero__field { opacity: .45; }
  .hero__title { font-size: 32px; }
}

@media (max-width: 420px) { .brand span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .r, .fade { opacity: 1; transform: none; }
  .loader { display: none; }
}
