/* NEXOL: štýly celého webu (jedna šablóna štýlov pre všetky stránky).
   Farby a písma sa menia v bloku :root nižšie.
   Layout: runway-style editorial pages. Centered wordmark in the header with the navigation centered under it, centered uppercase headings with wide tracking, small tracked labels and underlined text links.
   Retro-luxe accents (1980s corporate / art deco): dark surfaces are midnight lacquer with a drifting blue sheen (moved by js/surface.js), details are brushed brass. */
:root {
  --bg: #F6F3EE;
  --surface: #EEE9E0;
  --surface-2: #E3DCD0;
  --fg: #121A2B;
  --muted: #6C6A66;
  --line: #E2DCD1;
  --dot: #D5CDBF;
  --inv-bg: #0B1220;
  --inv-fg: #F3EDE2;
  --inv-muted: #A9B1C3;
  --brass-ink: #C9A86A;
  --brass: linear-gradient(115deg, #6E4F25 0%, #C9A86A 20%, #F4E6C3 36%, #B08A4E 52%, #7A5A2E 66%, #E2C891 84%, #8C6A3A 100%);
  --font-display: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-logo: 'Cormorant Garamond', Garamond, Georgia, serif;   /* NEXOL wordmark (header + hero) */
  --font-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6; font-weight: 400;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { max-width: 1200px; width: 100%; margin-inline: auto; min-width: 0; }
.bleed { margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* type: uppercase, light, widely tracked, like a runway site */
.display { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; letter-spacing: .12em; line-height: 1.18; text-wrap: balance; }
.h1 { font-size: clamp(1.9rem, 5.2vw, 3.8rem); }
.h2 { font-size: clamp(1.35rem, 2.9vw, 2.2rem); }
.h3 { font-size: 1.1rem; font-weight: 400; letter-spacing: .16em; }
.label { font-family: var(--font-ui); font-weight: 500; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--muted); max-width: 56ch; font-weight: 300; margin-inline: auto; text-wrap: pretty; }
.muted { color: var(--muted); }
.ulink { font-family: var(--font-ui); font-weight: 500; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; padding-bottom: 5px; border-bottom: 1px solid currentColor; display: inline-flex; gap: 10px; transition: opacity .3s var(--ease), gap .4s var(--ease); }
.ulink:hover { opacity: .6; gap: 16px; }

/* header: wordmark centered on top, navigation centered under it, language on the right */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)); padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.hdr-in { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: ". logo lang" "nav nav nav"; align-items: center; gap: 10px 24px; padding-block: 20px 12px; }
.logo { grid-area: logo; justify-self: center; font-family: var(--font-logo); font-weight: 600; letter-spacing: .5em; padding-left: .7em; font-size: 1.55rem; line-height: 1; text-transform: uppercase; }
.nav { grid-area: nav; justify-self: center; display: flex; gap: clamp(14px, 2vw, 30px); min-width: 0; }
.nav a, .lang button { font-family: var(--font-ui); font-weight: 500; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-block: 6px; position: relative; white-space: nowrap; transition: color .3s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: .2em; bottom: 2px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover, .nav a[aria-current="page"], .lang button[aria-pressed="true"], .lang button:hover { color: var(--fg); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.lang { grid-area: lang; justify-self: end; display: flex; align-items: center; gap: 4px; }
.lang span { color: var(--line); }
@media (max-width: 960px) {
  .logo { font-size: 1.3rem; }
  .nav { justify-self: stretch; overflow-x: auto; justify-content: space-between; }
}

/* view transition */
main { min-width: 0; animation: viewIn .6s var(--ease) both; }
main.leaving { opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease; animation: none; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sec { padding-block: clamp(56px, 9vw, 120px); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: clamp(32px, 5vw, 60px); }
.sec-head .lead { max-width: 50ch; }
.pagehead { padding-block: clamp(48px, 8vw, 110px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }

/* hero */
/* art deco sunburst rising from the bottom edge, same as the dark band but in brass on ivory */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-conic-gradient(from -90deg at 50% 118%, rgba(201, 168, 106, .3) 0deg .5deg, transparent .5deg 5deg); -webkit-mask: radial-gradient(80% 100% at 50% 118%, #000 25%, transparent 78%); mask: radial-gradient(80% 100% at 50% 118%, #000 25%, transparent 78%); }
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); padding-block: clamp(60px, 9vw, 120px) clamp(56px, 8vw, 100px); }
.hero-in { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-title { font-family: var(--font-logo); font-weight: 500; font-size: clamp(2.6rem, 8.6vw, 6.4rem); letter-spacing: .45em; padding-left: .55em; line-height: 1; }
.hero-sub { font-size: clamp(.95rem, 1.7vw, 1.35rem); letter-spacing: .36em; padding-left: .36em; margin-top: 18px; color: var(--fg); }
.hero-in .label.tag { margin-top: 18px; }
.hero-in .lead { margin-top: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 32px; margin-top: 40px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; margin-top: clamp(44px, 7vw, 80px); }

.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; font-family: var(--font-ui); font-weight: 500; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; border: 1px solid var(--fg); transition: background .35s var(--ease), color .35s var(--ease); }
.btn.solid { color: var(--inv-fg); border-color: var(--inv-bg); transition: color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.btn.solid:hover { color: #F1E2BC; border-color: var(--brass-ink); box-shadow: 0 14px 30px -16px rgba(11, 18, 32, .7); }
.btn.on-inv { border-color: transparent; color: var(--inv-bg); background: var(--brass); background-size: 220% 100%; box-shadow: 0 14px 34px -16px rgba(201, 168, 106, .6); transition: background-position .9s var(--ease), box-shadow .35s var(--ease); }
.btn.on-inv:hover { background-position: 100% 50%; box-shadow: 0 18px 40px -14px rgba(201, 168, 106, .75); }
.arrow { display: inline-block; transition: transform .35s var(--ease); }
a:hover > .arrow, .btn:hover .arrow, .fh:hover .arrow { transform: translateX(6px); }

/* ticker */
.marquee { border-bottom: 1px solid var(--line); overflow: hidden; padding: 0; }
.track { display: flex; width: max-content; animation: ticker 52s linear infinite; padding-block: 24px; }
.marquee:hover .track { animation-play-state: paused; }
.track span { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; letter-spacing: .18em; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.1; padding-right: clamp(24px, 3.4vw, 48px); white-space: nowrap; }
/* Jost has overlapping contours, so a plain stroke shows lines inside the letters. Draw a 2px stroke behind a background-coloured fill: the fill hides the inner half and the overlaps, leaving a clean 1px outline. */
.track span.o { color: var(--bg); -webkit-text-stroke: 2px var(--fg); paint-order: stroke fill; }
.track i { font-style: normal; font-family: var(--font-ui); color: var(--muted); padding-right: clamp(24px, 3.4vw, 48px); align-self: center; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* fill-on-hover (tiles, service rows) */
.fh { position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--ease); }
.fh::before { content: ""; position: absolute; inset: 0; transform: translateY(101%); transition: transform .55s var(--ease); z-index: -1; }
.fh:hover::before, .fh:focus-visible::before { transform: none; }
.fh:hover, .fh:focus-visible { color: var(--bg); }
.fh p, .fh li, .fh .label { transition: color .45s var(--ease); }
.fh:hover p, .fh:hover li, .fh:hover .label, .fh:focus-visible p, .fh:focus-visible li { color: color-mix(in srgb, var(--bg) 62%, transparent); }

/* statement */
.statement { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.statement .big { font-size: clamp(1.7rem, 4.6vw, 3.6rem); max-width: 18ch; }
.statement p { color: var(--muted); max-width: 54ch; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: space-between; gap: 48px; padding: 40px 28px; min-height: 290px; background: var(--bg); }
.tile + .tile { border-left: 1px solid var(--line); }
.tile p { color: var(--muted); margin: 14px auto 0; max-width: 32ch; }
.tile .arrow { font-size: 1.4rem; }
@media (max-width: 800px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 0; gap: 28px; } .tile + .tile { border-left: 0; border-top: 1px solid var(--line); } }

/* service rows */
.svc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 44px 24px; border-top: 1px solid var(--line); background: var(--bg); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc p { color: var(--muted); max-width: 52ch; }
.svc ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 4px; }
.svc li { font-family: var(--font-ui); font-weight: 500; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.svc .go { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

/* joint band */
.joint-band { position: relative; isolation: isolate; overflow: hidden; color: var(--inv-fg); padding-block: clamp(56px, 9vw, 110px); box-shadow: inset 0 1px 0 rgba(216, 188, 132, .55), inset 0 -1px 0 rgba(216, 188, 132, .55); }
/* art deco sunburst rising from the bottom edge */
.joint-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-conic-gradient(from -90deg at 50% 118%, rgba(216, 188, 132, .09) 0deg .5deg, transparent .5deg 5deg); -webkit-mask: radial-gradient(80% 100% at 50% 118%, #000 25%, transparent 78%); mask: radial-gradient(80% 100% at 50% 118%, #000 25%, transparent 78%); }
/* film grain, like the 80s photography */
.joint-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .16; mix-blend-mode: overlay; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.joint-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.joint-band .label { color: var(--brass-ink); }
.joint-band p { color: var(--inv-muted); max-width: 52ch; font-weight: 300; font-size: 1.05rem; margin-inline: auto; }
.formula { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em; font-weight: 300; font-size: 1rem; }
/* Web + AI as matte (frosted) glass: translucent, softly blurs what is behind it, no shine */
.formula b { font-weight: 400; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 12px 28px -14px rgba(0, 0, 0, .6); }
.formula b span { position: relative; }
@media (max-width: 520px) { .formula { flex-direction: column; gap: 8px; } }
.formula > span { color: var(--brass-ink); }

/* cta band */
.cta { background: linear-gradient(180deg, #DDE3EE 0%, var(--surface) 70%); border-bottom: 1px solid var(--line); padding-block: clamp(56px, 9vw, 110px); }
.cta-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
.cta h2 { font-size: clamp(1.5rem, 3.8vw, 2.8rem); max-width: 20ch; }

/* filter + cards */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { font-family: var(--font-ui); font-weight: 500; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: 11px 20px; border: 1px solid var(--line); color: var(--muted); transition: all .3s var(--ease); }
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip[aria-pressed="true"] { border-color: var(--inv-bg); color: var(--inv-fg); }
.chip small { opacity: .6; margin-left: 8px; font-size: .7rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: minmax(0, 1fr); } }
#proj-grid.swap { animation: viewIn .5s var(--ease) both; }

.card { display: flex; flex-direction: column; gap: 20px; min-width: 0; text-align: center; }
.thumb { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: linear-gradient(160deg, var(--surface), var(--surface-2)); overflow: hidden; display: grid; place-items: center; }
.thumb::before { content: ""; position: absolute; inset: 14% 12% auto 12%; height: 56%; border: 1px solid var(--dot); background:
  linear-gradient(var(--dot), var(--dot)) 12% 18% / 34% 1px no-repeat,
  linear-gradient(var(--dot), var(--dot)) 12% 30% / 60% 1px no-repeat,
  linear-gradient(var(--dot), var(--dot)) 12% 42% / 48% 1px no-repeat;
  transition: transform .7s var(--ease); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.7) 50%, transparent 62%); transform: translateX(-120%); transition: transform 1s var(--ease); }
.thumb span { position: relative; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4rem); letter-spacing: .14em; margin-top: 26%; color: var(--fg); }
.card:hover .thumb::before { transform: translateY(-8px); }
/* náhľad so screenshotom: počítač v tenkom rámčeku, mobil prekrýva pravý dolný roh */
.thumb.has-shot::before { display: none; }
.thumb.has-shot::after { z-index: 2; }
.t-desk, .t-phone { position: absolute; background: var(--bg); border: 1px solid var(--line); overflow: hidden; transition: transform .7s var(--ease); }
.t-desk { left: 8%; top: 12%; width: 76%; box-shadow: 0 22px 40px -26px rgba(20, 24, 40, .35); }
.t-desk .bar { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.t-desk .bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.t-desk img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.t-phone { right: 7%; bottom: 9%; width: 17%; border-radius: 10px; box-shadow: 0 18px 32px -18px rgba(20, 24, 40, .4); }
.t-phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }
.card:hover .t-desk { transform: translateY(-6px); }
.card:hover .t-phone { transform: translateY(-10px); }
.card:hover .thumb::after { transform: translateX(120%); }
.card.joint .thumb::before { border-color: rgba(216, 188, 132, .32); background:
  linear-gradient(rgba(216, 188, 132, .32), rgba(216, 188, 132, .32)) 12% 18% / 34% 1px no-repeat,
  linear-gradient(rgba(216, 188, 132, .32), rgba(216, 188, 132, .32)) 12% 30% / 60% 1px no-repeat,
  linear-gradient(rgba(216, 188, 132, .32), rgba(216, 188, 132, .32)) 12% 42% / 48% 1px no-repeat; }
.card.joint .thumb::after { background: linear-gradient(115deg, transparent 38%, rgba(244, 230, 195, .2) 50%, transparent 62%); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pill { font-family: var(--font-ui); font-weight: 500; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; border: 1px solid var(--line); padding: 5px 11px; color: var(--muted); }
.pill.inv { background: var(--brass); background-size: 220% 100%; border-color: transparent; color: var(--inv-bg); }
.card h3 { margin-top: 12px; }
.card p { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.by { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }
/* iniciály v kruhu: rovnaké písmo ako logo NEXOL (--font-logo) */
.mono { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--fg); border-radius: 50%; font-family: var(--font-logo); font-weight: 600; font-size: .95rem; line-height: 1; letter-spacing: 0; flex: none; background: var(--bg); }
.mono.lg { width: 112px; height: 112px; font-size: 3.4rem; }
.mono.xl { width: 140px; height: 140px; font-size: 4.3rem; }
.by .mono + .mono { margin-left: -14px; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--fg); }
.step { padding: 32px 24px 8px; text-align: center; }
.step + .step { border-left: 1px solid var(--line); }
.step .label { display: block; margin-bottom: 30px; }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step + .step { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step .label { margin-bottom: 12px; }
}

/* team */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
@media (max-width: 760px) { .team { grid-template-columns: minmax(0, 1fr); } }
.person { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; min-width: 0; }
.person .mono.lg { transition: background .4s var(--ease), color .4s var(--ease); }
.person:hover .mono.lg { background: var(--fg); color: var(--bg); }
.person p { color: var(--muted); max-width: 44ch; }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.links a { font-family: var(--font-ui); font-weight: 500; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .3s var(--ease); }
.links a:hover { border-color: var(--fg); }

/* contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
@media (max-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-block: 32px; border-top: 1px solid var(--line); min-width: 0; }
.row .val { font-family: var(--font-display); font-size: clamp(1.05rem, 2.2vw, 1.5rem); letter-spacing: .1em; overflow-wrap: anywhere; user-select: all; }
.row .tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; align-items: center; margin-top: 4px; }
.copy { font-family: var(--font-ui); font-weight: 500; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); transition: color .3s; }
.copy:hover { color: var(--fg); }
/* Kontakt: company details at the very end of the page (values from js/data.js) */
.company { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); text-align: center; }
.company h2 { display: block; }
.co-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; margin: 32px 0 0; }
.co-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.co-item.wide { grid-column: 1 / -1; }
.co-item dt { font-family: var(--font-ui); font-weight: 500; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.co-item dd { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .co-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .co-list { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.ftr { padding-block: 72px 40px; }
.bigmark { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 300; font-size: clamp(4rem, 19vw, 16rem); line-height: 1; color: var(--bg); -webkit-text-stroke: 2px var(--fg); paint-order: stroke fill; user-select: none; }
.bigmark span { transition: color .6s var(--ease); }
.ftr-row a { border-bottom: 1px solid transparent; transition: color .3s var(--ease), border-color .3s var(--ease); }
.ftr-row a:hover { color: var(--fg); border-color: currentColor; }
.bigmark span:hover { color: var(--fg); }
.ftr-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; text-align: center; }

/* case + personal pages */
/* privacy policy page */
.legal { max-width: 68ch; margin-inline: auto; padding-block: clamp(40px, 6vw, 80px); }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 44px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal a { color: var(--fg); border-bottom: 1px solid currentColor; }
.legal .updated { font-size: .85rem; margin-top: 48px; }

.crumb { display: inline-flex; gap: 10px; margin-top: 36px; }
.crumb:hover { color: var(--fg); }
.crumb:hover .arrow { transform: translateX(-6px); }
.case-head { padding-block: 40px clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; }
.case-head .tags { justify-content: center; }
.case-head .h1 { margin-top: 22px; max-width: 18ch; }
.case-head .lead { margin-top: 22px; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: 48px; width: 100%; }
@media (max-width: 900px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.meta > div { padding-block: 18px; border-top: 1px solid var(--line); min-width: 0; }
.meta .label { display: block; margin-bottom: 8px; }
.meta a.live { border-bottom: 1px solid var(--fg); }
.shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 28px; align-items: end; padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .shots { grid-template-columns: minmax(0, 1fr); } .frame.phone { max-width: 220px; } }
.frame { background: var(--surface); border: 1px solid var(--line); overflow: hidden; max-width: 100%; }
.frame .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.frame .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.frame .screen { display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-family: var(--font-ui); font-weight: 500; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; background:
  linear-gradient(var(--dot), var(--dot)) 10% 22% / 30% 1px no-repeat,
  linear-gradient(var(--dot), var(--dot)) 10% 32% / 52% 1px no-repeat,
  linear-gradient(var(--dot), var(--dot)) 10% 42% / 42% 1px no-repeat; }
.frame.desktop .screen { aspect-ratio: 16 / 10; }
.frame.phone { border-radius: 22px; }
.frame.phone .screen { aspect-ratio: 9 / 18; }
/* real screenshots: <img> placed in the frame instead of the .screen placeholder.
   Both show the whole picture at its own shape, nothing is cropped; a very tall phone screenshot is cut off at the bottom */
.frame > img { display: block; width: 100%; height: auto; object-fit: cover; object-position: top; }
.frame.phone > img { max-height: 640px; }
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.story > div { padding-right: 32px; min-width: 0; text-align: center; }
.story > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.story .label { display: block; margin-bottom: 16px; }
.story p { color: var(--muted); }
@media (max-width: 800px) { .story { grid-template-columns: minmax(0, 1fr); gap: 32px; } .story > div, .story > div + div { padding: 0; border-left: 0; } }
.credit { padding-block: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; border-bottom: 1px solid var(--line); }
.credit-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; }
.who { display: flex; align-items: center; gap: 14px; text-align: left; }
.who .mono { width: 44px; height: 44px; font-size: 1.1rem; transition: background .35s var(--ease), color .35s var(--ease); }
.who:hover .mono { background: var(--fg); color: var(--bg); }
.who small { display: block; color: var(--muted); font-size: .8rem; }
.next { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-block: 56px; }
.next .arrow { font-size: 1.6rem; }
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-block: 40px clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.profile .h1 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); margin-top: 8px; }
.profile p.lead { margin-top: 14px; }
.profile .links { margin-top: 24px; }
/* citát pod bio: rovnaké písmo ako bio, hrubšie a väčšie, v úvodzovkách, s tenkou linkou nad */
.quote { margin: 8px auto 0; max-width: 36ch; padding-top: 28px; position: relative; font-family: var(--font-body); font-weight: 500; font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.45; color: var(--fg); text-wrap: balance; }
.quote::before { content: ''; position: absolute; top: 0; left: 50%; width: 40px; height: 1px; background: var(--fg); transform: translateX(-50%); }

.skills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.skills .pill { color: var(--fg); padding: 9px 16px; }
.soon { border: 1px dashed var(--muted); padding: 28px; color: var(--muted); max-width: 640px; margin-inline: auto; text-align: center; }
.soon .label { display: block; margin-bottom: 10px; }
.shareurl { font-family: var(--font-ui); font-size: .78rem; letter-spacing: .08em; color: var(--muted); margin-top: 20px; overflow-wrap: anywhere; }


/* retro-luxe surfaces: midnight lacquer with pinstripes. --mx / --my (glow position) are moved by js/surface.js */
.joint-band, .card.joint .thumb, .btn.solid, .chip[aria-pressed="true"], .fh::before {
  background:
    repeating-linear-gradient(90deg, rgba(243, 237, 226, .028) 0 1px, transparent 1px 7px),
    radial-gradient(70% 90% at var(--mx, 28%) var(--my, 18%), rgba(98, 138, 216, .36), transparent 62%),
    radial-gradient(55% 75% at calc(100% - var(--mx, 28%)) calc(105% - var(--my, 18%)), rgba(201, 168, 106, .16), transparent 70%),
    linear-gradient(165deg, #1B2C50 0%, #0E1729 48%, #070B14 100%);
}
/* brushed-brass text with a slow travelling glint */
.joint-band .label, .formula b span, .card.joint .thumb span {
  background: var(--brass); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glint 9s ease-in-out infinite alternate;
}
.pill.inv { animation: glint 9s ease-in-out infinite alternate; }
@keyframes glint { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

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

[hidden] { display: none !important; }
img { max-width: 100%; }
