/* Corner Cut · Premium tier. Layout: full-screen pinned scenes (street > shop > kit > services), dark night palette, brass accents, serif italics for the cinematic voice. */
:root {
  --night: #0B1410;
  --night-2: #13201A;
  --brass: #D3A15A;
  --brass-dim: #8C6A3A;
  --cream: #EFE7D8;
  --mute: #A39C8D;
  --line: rgba(239, 231, 216, .16);
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: .92; letter-spacing: -.025em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--brass); }
p { margin: 0; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.gutter { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* ribbon */
.ribbon { position: fixed; z-index: 100; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; background: var(--cream); color: var(--night); font: 600 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px; border-radius: 99px; text-decoration: none; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.ribbon i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }

/* header */
.top { position: fixed; z-index: 50; top: env(safe-area-inset-top, 0px); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.top nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a:not(.pill):hover { color: var(--brass); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--brass); color: var(--night); padding: 12px 20px; border-radius: 99px; font: 600 15px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .4s var(--ease), background .3s; }
.pill:hover { transform: translateY(-2px) scale(1.03); background: #E6B873; }
.pill.big { padding: 18px 30px; font-size: 17px; }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* EN / SR switch: smoked-glass pill over the photo, the active language in brass */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; border: 1px solid var(--line); background: rgba(11, 20, 16, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lang button { font: 600 11px/1 var(--body); letter-spacing: .14em; color: var(--cream); opacity: .72; background: transparent; border: 0; padding: 8px 10px; border-radius: 99px; cursor: pointer; transition: background .3s, color .3s, opacity .3s; }
.lang button:hover { opacity: 1; }
.lang button[aria-pressed="true"] { background: var(--brass); color: var(--night); opacity: 1; }
@media (max-width: 480px) {
  .top { gap: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .logo { font-size: 19px; gap: 8px; }
  .logo svg { width: 22px; height: 22px; }
  .top nav { gap: 10px; }
  .top nav .pill { padding: 10px 14px; font-size: 14px; }
  .lang button { padding: 7px 8px; }
  .top nav .back-more { display: none; }
  .logo, .top nav .pill { white-space: nowrap; }
}
@media (max-width: 374px) { .logo svg { display: none; } }
@media (max-width: 339px) { .logo { font-size: 18px; } .top nav .pill { padding: 10px 12px; font-size: 13px; } .lang button { padding: 6px 7px; } }

/* cursor */
.cursor { position: fixed; z-index: 90; left: 0; top: 0; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; border: 1px solid var(--brass); display: none; place-items: center; pointer-events: none; color: var(--brass); font: 600 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, color .3s; }
.cursor.small { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--brass); }
.cursor.small span { opacity: 0; }
.cursor.link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--brass); color: var(--night); }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: grid; } }

/* page transition panel */
.wipe { position: fixed; inset: 0; z-index: 300; background: var(--brass); display: grid; place-items: center; pointer-events: none; transform: scaleX(0); transform-origin: right; }
.wipe span { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vw, 120px); color: var(--night); letter-spacing: -.03em; opacity: 0; }
.wipe.cover { transform: scaleX(1); }
.wipe.cover span { opacity: 1; }

/* scenes share a full-screen stage */
.scene { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }

/* scene 1 */
.arrival .ext, .arrival .int { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arrival .ext { transform-origin: 66% 52%; }
.arrival .int { opacity: 0; transform: scale(1.25); }
.arrival .shade { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 50%, transparent 30%, rgba(11,20,16,.75) 100%), linear-gradient(transparent 50%, rgba(11,20,16,.85)); pointer-events: none; }
.arrival .title { position: absolute; left: 0; right: 0; bottom: 12vh; display: grid; gap: 16px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.arrival h1 { font-size: clamp(76px, 17vw, 300px); line-height: .82; display: flex; flex-wrap: wrap; column-gap: .25em; }
.arrival h1 .l { display: inline-block; will-change: transform; }
.arrival .inside { position: absolute; inset: 0; display: grid; align-content: end; gap: 16px; padding-bottom: 14vh; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); opacity: 0; background: linear-gradient(transparent 40%, rgba(11,20,16,.8)); }
.arrival .inside h2 { font-size: clamp(54px, 9vw, 150px); }
.hint { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 32px; display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.hint i { width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.hint i::after { content: ""; position: absolute; inset: 0; background: var(--brass); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.arrival .title > * { animation: rise 1.2s var(--ease) both; }
.arrival .title h1 { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(60px); } }

/* scene 2 */
.kit .stage { background: radial-gradient(60% 55% at 50% 52%, #1d3329 0%, var(--night) 70%); }
.backword { position: absolute; top: 50%; left: 0; transform: translateY(-50%); white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(120px, 26vw, 420px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(211, 161, 90, .16); pointer-events: none; }
.kit-head { position: absolute; top: calc(96px + env(safe-area-inset-top, 0px)); left: max(24px, env(safe-area-inset-left, 0px)); display: grid; gap: 14px; z-index: 2; }
.kit-head h2 { font-size: clamp(40px, 5.6vw, 88px); }
.tools { position: absolute; inset: 0; }
.tool { position: absolute; margin: 0; display: grid; justify-items: center; gap: 18px; width: min(22vw, 260px); will-change: transform; }
.tool img { height: clamp(150px, 34vh, 340px); width: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.tool figcaption { text-align: center; font-size: 14px; color: var(--mute); max-width: 22ch; display: grid; gap: 4px; }
.tool figcaption b { font-family: var(--display); font-size: 22px; color: var(--cream); font-weight: 700; }
.t-clip { left: 8%; top: 30%; }
.t-sci { left: 30%; top: 40%; }
.t-raz { left: 52%; top: 26%; }
.t-bru { left: 74%; top: 38%; }
@media (max-width: 760px) {
  .tool { width: 44vw; gap: 10px; }
  .tool img { height: 22vh; }
  .tool figcaption { font-size: 12px; }
  .tool figcaption b { font-size: 17px; }
  .t-clip { left: 4%; top: 28%; } .t-sci { left: 52%; top: 26%; } .t-raz { left: 4%; top: 60%; } .t-bru { left: 52%; top: 60%; }
}

/* scene 3 */
.services .stage { display: grid; grid-template-rows: auto 1fr; gap: 32px; padding-top: calc(110px + env(safe-area-inset-top, 0px)); padding-bottom: 48px; }
.svc-head { display: grid; gap: 14px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.svc-head h2 { font-size: clamp(44px, 6vw, 96px); }
html:lang(sr) .svc-head h2 { font-size: clamp(40px, 6vw, 96px); } /* "Izaberite svoj termin." stays inside a 390px screen */
.track { display: flex; gap: 24px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); overflow-x: auto; scroll-snap-type: x mandatory; align-items: stretch; min-height: 0; }
.motion .track { overflow: visible; width: max-content; }
.card { flex: none; width: min(380px, 78vw); border-radius: 14px; overflow: hidden; background: var(--night-2); border: 1px solid var(--line); display: grid; grid-template-rows: minmax(0, 1fr) auto; scroll-snap-align: start; min-height: 0; }
.card img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.06); }
.card > div { padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.card h3 { font-size: 30px; font-weight: 700; }
.card p { grid-column: 1; color: var(--mute); font-size: 15px; }
.card span { grid-column: 2; grid-row: 1 / 3; font-family: var(--serif); font-size: 44px; color: var(--brass); font-variant-numeric: tabular-nums; }
.card.end { background: var(--brass); color: var(--night); grid-template-rows: 1fr; }
.card.end > div { grid-template-columns: 1fr; align-content: end; gap: 16px; padding: 32px; }
.card.end h3 { font-size: 44px; }
.card.end p { color: rgba(11,20,16,.75); font-size: 17px; }
.card.end .pill { background: var(--night); color: var(--cream); justify-self: start; }

/* reel */
.reel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: clamp(80px, 12vw, 160px); padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.reel-frame { position: relative; aspect-ratio: 4 / 5; max-width: 100%; max-height: 82vh; border-radius: 14px; overflow: hidden; background: var(--night-2); }
.reel-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: reel 15s infinite; }
.reel-frame img:nth-child(2) { animation-delay: 5s; }
.reel-frame img:nth-child(3) { animation-delay: 10s; }
@keyframes reel { 0% { opacity: 0; transform: scale(1.12) translateX(2%); } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; transform: scale(1) translateX(-2%); } 100% { opacity: 0; } }
.reel-ui { position: absolute; left: 16px; top: 16px; display: flex; align-items: center; gap: 10px; background: rgba(11,20,16,.6); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 99px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #E0503F; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tc { font-variant-numeric: tabular-nums; color: var(--mute); }
.reel-copy { display: grid; gap: 20px; max-width: 44ch; }
.reel-copy h2 { font-size: clamp(44px, 5.6vw, 88px); }
.reel-copy p:last-child { color: var(--mute); font-size: 19px; }
@media (max-width: 860px) { .reel { grid-template-columns: 1fr; } }

/* final */
.final { min-height: 90vh; display: grid; place-content: center; justify-items: center; gap: 48px; text-align: center; padding-block: 120px; overflow: hidden; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.final .headline { font-size: clamp(64px, 13vw, 220px); }
.final .headline span { display: inline-block; }

footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--mute); padding-block: 32px calc(88px + env(safe-area-inset-bottom, 0px)); padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* reduced motion / no-JS fallbacks */
.static .arrival .int, .static .arrival .inside, .static .hint { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reel-frame img:first-child { opacity: 1; }
}
[hidden] { display: none !important; }

@media (max-width: 480px) { .ribbon .rb-more { display: none; } }
