/* Prezenca Group: iste smernice kot Prezenca Critique (design sistem "Prezenca Critique"): nevtralni sivi
   paneli, "pill" kontrole, Geist in ročna pisava Reenie Beanie. Edina razlika je poudarek: moder
   kemični svinčnik (--ink) namesto vijoličnega flomastra. En sam poudarek, nikoli dveh. */

:root {
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --panel: oklch(0.94 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --text-secondary: #52525b;
  --text-tertiary: #71717a;
  --border: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --destructive: oklch(0.577 0.245 27.325); /* samo napake: rob, obroč in sporočilo pod poljem */
  --surface-dark: #09090b;

  /* poudarek: 6,0:1 na panelu, 7,1:1 na beli */
  --ink: #1f45e0;
  --ink-bright: #5b7bff; /* samo potujoča svetloba na gumbu */
  --ink-soft: #9aacff; /* poudarek na temnem panelu, 9,7:1 */
  --ink-tint: rgb(31 69 224 / 0.1);
  --mosaic: #171717; /* primary v hex, za platno */

  --font-sans: Geist, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-marker: "Reenie Beanie", "Comic Sans MS", cursive;

  --radius-control: 24px;
  --radius-surface: 28px;
  --radius-full: 9999px;

  --control-lg: 48px;
  --control-sm: 40px;
  --disc: 40px;

  --shadow-header: 0 10px 30px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 20px 0 rgb(31 69 224 / 0.16);
  --shadow-glow-hover: 0 0 22px 3px rgb(31 69 224 / 0.32);

  --ease-in: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 14px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo {
  display: block;
  height: 24px;
  width: auto;
  aspect-ratio: 649.9 / 117.3;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  padding: 10px 20px;
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
  transform: translateY(-200%);
}
.skip:focus-visible {
  transform: none;
}

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

/* ---------- mreža strani ---------- */

.page {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px;
}

.hero,
.page-main {
  display: grid;
  gap: 16px;
}
/* elementi mreže se ne smejo raztegniti na širino vsebine (vrsta citatov, ki se drsi vstran) */
.page > *,
.hero > *,
.page-main > * {
  min-width: 0;
}

@media (min-width: 640px) {
  .page {
    padding: 16px;
  }
}

@media (min-width: 1024px) {
  .page {
    padding: 20px;
  }
  .hero {
    grid-template-columns: 1.12fr 1fr;
  }
  .hero > * {
    min-height: clamp(640px, calc(100dvh - 40px), 1000px);
  }
}

/* ---------- površine ---------- */

.panel {
  border-radius: var(--radius-surface);
  background: var(--panel);
  padding: 48px 24px;
  scroll-margin-top: 96px;
}

@media (min-width: 640px) {
  .panel {
    padding: 48px;
  }
}

@media (min-width: 1024px) {
  .panel {
    padding: 64px 48px;
  }
}

.panel--dark {
  background: var(--surface-dark);
  color: #fafafa;
}

.card {
  border-radius: var(--radius-surface);
  background: var(--background);
  padding: 24px;
}

.disc {
  display: grid;
  place-items: center;
  width: var(--disc);
  height: var(--disc);
  flex: none;
  border-radius: var(--radius-full);
  background: var(--panel);
}
.disc .ico {
  width: 18px;
  height: 18px;
}

/* ---------- besedilo ---------- */

.eyebrow {
  font: 500 14px/20px var(--font-sans);
  color: var(--ink);
}

.display {
  margin-top: 8px;
  font: 500 30px/36px var(--font-sans);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .display {
    font-size: 36px;
    line-height: 40px;
  }
}

.pitch {
  font: 500 24px/1.375 var(--font-sans);
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .pitch {
    font-size: 30px;
  }
}

.title {
  font: 500 18px/28px var(--font-sans);
  letter-spacing: -0.025em;
}

.body {
  font: 400 14px/24px var(--font-sans);
  color: var(--text-secondary);
}

.section-head {
  max-width: 42rem;
}
.section-head .body {
  margin-top: 12px;
}

.marker {
  font-family: var(--font-marker);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---------- kontrole ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-lg);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--foreground);
  font: 500 14px/20px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
.btn:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}
.btn:active {
  translate: 0 1px;
}
.btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn--primary:hover {
  background: color-mix(in oklch, var(--primary) 80%, transparent);
}
.btn--soft {
  background: #ffffff;
}
.btn--soft:hover {
  background: rgb(255 255 255 / 0.6);
}
.btn--outline {
  border-color: var(--border);
  background: var(--background);
}
.btn--outline:hover {
  background: var(--muted);
}
.btn--lg {
  padding: 0 24px 0 28px;
}
.btn--sm {
  height: var(--control-sm);
  gap: 6px;
  padding: 0 20px;
}

/* Svetlobni komet, ki kroži po robu gumba (kot .beam v Critique), v modrem */
@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --beam-x {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 50%;
}
@keyframes beam-x {
  0%,
  100% {
    --beam-x: 24px;
  }
  32.8%,
  50% {
    --beam-x: calc(100% - 24px);
  }
  82.8% {
    --beam-x: 24px;
  }
}
@keyframes beam-angle {
  0%,
  32.8% {
    --beam-angle: 0deg;
  }
  50%,
  82.8% {
    --beam-angle: 180deg;
  }
  100% {
    --beam-angle: 360deg;
  }
}
.beam {
  position: relative;
  isolation: isolate;
}
.beam::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  padding: 1.5px;
  border-radius: inherit;
  background:
    conic-gradient(
      from calc(var(--beam-angle) - 80deg) at var(--beam-x) 50%,
      transparent 0%,
      var(--ink-bright) 20%,
      transparent 25%
    ),
    rgb(31 69 224 / 0.3);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  animation:
    beam-x 3.2s linear infinite,
    beam-angle 3.2s linear infinite;
  pointer-events: none;
}
.beam::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow-glow);
  transition: box-shadow 0.2s;
  pointer-events: none;
}
.beam:hover::after {
  box-shadow: var(--shadow-glow-hover);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-control);
  font: 500 12px/16px var(--font-sans);
  white-space: nowrap;
}
.pill .ico {
  width: 14px;
  height: 14px;
}
.pill--available {
  background: var(--ink-tint);
  color: var(--ink);
}
.pill--soon {
  background: var(--panel);
  color: var(--text-tertiary);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  font: 500 12px/16px var(--font-sans);
  color: var(--foreground);
  white-space: nowrap;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-underline-offset: 4px;
}
.link:hover {
  text-decoration: underline;
}
.link--ink {
  color: var(--ink);
}
.intro-body .link {
  justify-self: start;
}

/* ---------- lepljiva glava ---------- */

.sticky {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 12px 12px 0;
  opacity: 0;
  transform: translateY(-100%);
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
}
.sticky.is-shown {
  opacity: 1;
  transform: none;
}
.sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1400px;
  height: 56px;
  margin: 0 auto;
  padding: 0 8px 0 24px;
  border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--panel) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
}
.sticky .logo {
  height: 20px;
}

@media (min-width: 640px) {
  .sticky {
    padding: 12px 16px 0;
  }
}
@media (min-width: 1024px) {
  .sticky {
    padding: 16px 20px 0;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  line-height: 20px;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--foreground);
}

@media (min-width: 640px) {
  .sticky .nav-links {
    display: flex;
  }
}
@media (min-width: 1024px) {
  .intro .nav-links {
    display: flex;
  }
}

/* ---------- uvod: levo znamka z mozaikom, desno besedilo ---------- */

.show {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-surface);
  background: var(--panel);
  padding: 28px 24px 232px;
  container-type: inline-size;
  /* kvadrat iz logotipa, razstavljen v pike; velikost pike in razmik bereta tudi script.js in .yours */
  --cell: 22px;
  --gap: 4px;
  --step: calc(var(--cell) + var(--gap));
}

.show .brand {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: opacity 0.15s;
}
.show .brand:hover {
  opacity: 0.7;
}

.show-headline {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  font-size: 40px;
  line-height: 1.02;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.mosaic {
  position: absolute;
  left: 18%;
  bottom: -80px;
  width: 110%;
  height: 300px;
  /* pas razpršenih pik pred robom kvadrata (S v script.js) in pika "yours" (stolpec, vrstica) */
  --scatter: 3;
  --yc: 8;
  --yr: 4;
}
.mosaic canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ročno obkrožena pika z opombo "yours" (kot oznaka z widgetom na zaslonski sliki) */
.yours {
  position: absolute;
  left: calc(var(--step) * var(--yc));
  top: calc(var(--step) * var(--yr));
  width: var(--cell);
  height: var(--cell);
}
.yours svg {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.yours .box {
  inset: -9px;
  width: calc(100% + 18px);
  height: calc(100% + 18px);
}
.yours .arrow {
  right: calc(100% + 6px);
  bottom: calc(100% + 4px);
  width: 64px;
  height: 46px;
}
.yours .halo {
  stroke: var(--panel);
  stroke-width: 7;
}
.yours .ink {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.yours-note {
  position: absolute;
  right: calc(100% + 58px);
  bottom: calc(100% + 26px);
  font-size: 44px;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-8deg);
}

.draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 0.7s ease-out forwards;
}
.draw.arrow path {
  animation-delay: 1.9s;
}
.draw.box path {
  animation-delay: 1.3s;
}
.yours-note {
  opacity: 0;
  animation: fade 0.5s ease-out 2.4s forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  to {
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .show {
    padding: 28px 32px 260px;
  }
  .show-headline {
    font-size: 52px;
  }
  .mosaic {
    left: 30%;
    height: 330px;
  }
}

@media (min-width: 1024px) {
  .show {
    padding: 28px 32px;
    --cell: 24px;
  }
  .show-headline {
    margin-top: 28px;
    /* obe vrstici ostaneta vsaka v svoji vrsti; najdaljša ("and your booking platform.") je ~10 em */
    font-size: clamp(36px, calc((100cqw - 4rem) / 10.4), 72px);
    white-space: nowrap;
  }
  .mosaic {
    left: calc(24% - var(--step) * var(--scatter));
    top: calc(max(44%, 17rem) - var(--step) * var(--scatter));
    bottom: 0;
    width: auto;
    right: 0;
    height: auto;
  }
}

.intro {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-surface);
  background: var(--panel);
  padding: 32px 24px;
}

@media (min-width: 640px) {
  .intro {
    padding: 32px 48px;
  }
}

.intro .nav {
  justify-content: flex-end;
}

.intro-body {
  display: grid;
  gap: 24px;
  max-width: 30rem;
  margin: auto 0;
  padding: 16px 0 8px;
}

@media (min-width: 1024px) {
  .intro-body {
    padding: 40px 0;
  }
}

/* kratek pregled vsega, kar dela skupina: bela kartica z vrsticami (8 px odmika, zato 20 px zaobljenosti vrstic) */
.index {
  display: grid;
  gap: 2px;
  margin-top: 24px;
  padding: 8px;
  border-radius: var(--radius-surface);
  background: var(--background);
}
.index a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border-radius: 20px;
  transition: background-color 0.15s;
}
.index a:hover {
  background: var(--muted);
}
.index-text {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 20px;
}
.index-name {
  font-weight: 500;
}
.index-sub {
  overflow: hidden;
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.index-go {
  margin-right: 8px;
  color: var(--text-tertiary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* vrteča se beseda (kot rotating-word v Critique): nova pride od spodaj v svetlejši modri in preide v črnilo */
.rotating {
  display: inline-block;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.rotating.is-in {
  animation: rotating-in 2.4s ease-out;
}
.rotating.is-out {
  opacity: 0;
  transform: translateY(-0.35em);
}
@keyframes rotating-in {
  0% {
    opacity: 0;
    transform: translateY(0.35em);
    color: var(--ink-bright);
  }
  12% {
    opacity: 1;
    transform: none;
    color: var(--ink-bright);
  }
  35% {
    color: var(--ink-bright);
  }
  100% {
    color: var(--ink);
  }
}

/* panela uvoda zdrsneta z leve in desne */
@keyframes in-left {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
}
@keyframes in-right {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
}
.in-left {
  animation: in-left 0.75s var(--ease-in) both;
}
.in-right {
  animation: in-right 0.75s var(--ease-in) 0.08s both;
}

/* ---------- izdelki ---------- */

.grid {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 640px) {
  .product {
    padding: 32px;
  }
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.product .title {
  margin-top: 28px;
}
.product .body {
  margin-top: 8px;
  max-width: 34rem;
}
.product .badges {
  margin-top: 20px;
}
.product-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-tertiary);
}

/* znak Prezence: kvadrat iz štirih kvadratov (modulov) */
.mark-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  gap: 2px;
}
.mark-2x2 i {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--foreground);
}

/* ---------- storitve (temen panel) ---------- */

.services {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .services {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 64px;
  }
}

.panel--dark .eyebrow {
  color: var(--ink-soft);
}
.panel--dark .body {
  margin-top: 16px;
  color: #a1a1aa;
}
.panel--dark .link {
  margin-top: 20px;
  color: var(--ink-soft);
}

.service-list {
  display: grid;
  gap: 12px;
}
.service-list li {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-surface);
  background: rgb(255 255 255 / 0.05);
}
.service-list .disc {
  background: #ffffff;
  color: #18181b;
}
.service-list h3 {
  font-weight: 500;
  letter-spacing: -0.025em;
}
.service-list p {
  margin-top: 4px;
  color: #a1a1aa;
}

/* ---------- koraki ---------- */

.step {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 500;
  line-height: 20px;
}
.step .title {
  margin-top: 20px;
}
.step .body {
  margin-top: 8px;
}

/* ---------- kontakt ---------- */

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.contact-card .label {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}
.contact-card .value {
  margin-top: 4px;
  font: 500 18px/28px var(--font-sans);
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.contact-card .btn {
  align-self: flex-start;
  margin-top: auto;
}
.contact-card > .body {
  margin-top: auto;
}

/* ---------- zaključek ---------- */

.closing {
  display: grid;
  justify-items: center;
  padding: 80px 24px 96px;
  text-align: center;
  font: 500 20px/28px var(--font-sans);
  letter-spacing: 0.01em;
}
.closing h2 {
  text-wrap: balance;
}
.closing p {
  max-width: 36rem;
  margin-top: 4px;
  color: var(--muted-foreground);
  text-wrap: balance;
}
.closing .btn {
  margin-top: 64px;
}

@media (min-width: 1024px) {
  .closing {
    padding: 112px 24px 128px;
  }
}

/* ročno obkrožena beseda (kot oznaka z widgetom v Critique): krog se nariše, ko bralec pride do vrstice */
.circle {
  position: relative;
  display: inline-block;
}
.circle svg {
  position: absolute;
  top: -0.32em;
  left: -0.42em;
  width: calc(100% + 0.84em);
  height: calc(100% + 0.56em);
  overflow: visible;
  pointer-events: none;
  transform: rotate(-4deg);
}
.circle path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 0.9s ease-in-out;
}
.closing[data-drawn] .circle path {
  stroke-dashoffset: 0;
  opacity: 1;
}

/* podčrtana beseda v sivi vrstici: potegne se, ko je krog narisan */
.underline {
  position: relative;
  display: inline-block;
}
.underline svg {
  position: absolute;
  bottom: -0.3em;
  left: -0.12em;
  width: calc(100% + 0.24em);
  height: 0.45em;
  overflow: visible;
  pointer-events: none;
}
.underline path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition:
    stroke-dashoffset 0.5s ease-out 0.95s,
    opacity 0s linear 0.95s;
}
.closing[data-drawn] .underline path {
  stroke-dashoffset: 0;
  opacity: 1;
}

/* ---------- citati ---------- */

/* na telefonu in tablici vrsta kartic, ki se drsi vstran; od 1024 px mreža: dve široki, tri ožje, zadnja čez vso širino */
.quotes {
  display: flex;
  gap: 12px;
  margin: 40px -24px 0;
  padding: 0 24px 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar {
  display: none;
}
.quotes:focus-visible {
  outline-offset: -2px;
}

.quote {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0 0 min(86%, 440px);
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 48px 28px 40px;
  overflow: hidden;
  border-radius: var(--radius-surface);
  background: var(--surface-dark);
  color: #fafafa;
  text-align: center;
  scroll-snap-align: start;
}
/* portret zatemnjen proti robovom, da je besedilo na sredini vedno berljivo */
.quote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 50%, rgb(9 9 11 / 0.3), rgb(9 9 11 / 0.72));
}
.quote-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1) brightness(0.6) contrast(1.05);
  transform: scale(1.01);
  transition: transform 1.2s var(--ease-in);
}
.quote:hover .quote-photo {
  transform: scale(1.05);
}
.quote-photo--aicher {
  object-position: 88% 30%;
}
.quote-photo--bass {
  object-position: 50% 30%;
}
.quote-photo--vignelli {
  object-position: 62% 8%;
}
.quote-photo--stankowski {
  object-position: 45% 20%;
}
.quote-photo--babbage {
  object-position: 50% 12%;
}
/* majhen izvirnik: rahla zamegljenost se bere kot obdelava, ostro povečanje kot napaka */
.quote-photo--rand {
  object-position: 50% 15%;
  filter: grayscale(1) brightness(0.6) contrast(1.05) blur(2px);
  transform: scale(1.06);
}
.quote:hover .quote-photo--rand {
  transform: scale(1.1);
}

.quote-body {
  display: grid;
  justify-items: center;
  max-width: 34rem;
  margin: 0;
}
.quote-text {
  margin: 0;
  font: 500 26px/32px var(--font-sans);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
/* naša opomba z modrim pisalom pod citatom, kot popravek na robu (največ dve vrstici) */
.quote-note {
  max-width: 12.5em;
  margin-top: 18px;
  font-size: 26px;
  line-height: 1.05;
  color: var(--ink-soft);
  text-wrap: balance;
  transform: rotate(-2deg);
}
.quote-by {
  display: grid;
  gap: 2px;
  margin-top: 32px;
}
.quote-name {
  font-weight: 500;
  line-height: 20px;
}
.quote-years {
  margin-left: 4px;
  white-space: nowrap;
  font-weight: 400;
  color: rgb(255 255 255 / 0.65);
}
.quote-role {
  font-size: 12px;
  line-height: 16px;
  color: rgb(255 255 255 / 0.65);
}

.credits {
  display: grid;
  gap: 8px;
  max-width: 56rem;
  margin-top: 20px;
  font-size: 12px;
  line-height: 18px;
  color: var(--text-tertiary);
}
.credits a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credits a:hover {
  color: var(--foreground);
}

@media (min-width: 640px) {
  .quotes {
    margin-inline: -48px;
    padding-inline: 48px;
    scroll-padding-inline: 48px;
  }
  .quote {
    flex-basis: min(60%, 480px);
  }
}

@media (min-width: 1024px) {
  .quotes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 40px 0 0;
    padding: 0;
    overflow: visible;
  }
  .quote {
    grid-column: span 2;
    min-height: 500px;
    padding: 56px 32px 40px;
  }
  .quote--wide {
    grid-column: span 3;
    min-height: 440px;
  }
  .quote-note {
    font-size: 30px;
  }
  .quote--wide .quote-text {
    font-size: 34px;
    line-height: 40px;
  }
  .quote--wide .quote-note {
    max-width: 17em;
  }
  /* GIGO čez vso širino: velik stavek, portret izrezan na obraz */
  .quote--full {
    grid-column: 1 / -1;
    min-height: 440px;
  }
  .quote--full .quote-text {
    font-size: 48px;
    line-height: 52px;
  }
  .quote--full .quote-note {
    max-width: 24em;
  }
  .quote-photo--babbage {
    object-position: 50% 19%;
  }
}

/* ---------- panel čez stran (razlaga imena) ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.sheet[hidden] {
  display: none;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / 0.5);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: fade-in 0.3s ease-out both;
  transition: opacity 0.3s;
}
/* ista mreža kot uvod, da panel pristane točno na mestu desnega panela */
.sheet-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px;
  pointer-events: none;
}
.sheet-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 32px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-surface);
  background: var(--panel);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.3);
  outline: none;
  pointer-events: auto;
  animation: in-right 0.75s var(--ease-in) both;
}
.sheet-top {
  display: flex;
  justify-content: flex-end;
}
.sheet.is-leaving .sheet-panel {
  animation: out-right 0.32s cubic-bezier(0.5, 0, 0.75, 0) both;
}
.sheet.is-leaving .sheet-backdrop {
  opacity: 0;
}
@keyframes out-right {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@media (min-width: 640px) {
  .sheet-grid {
    padding: 16px;
  }
  .sheet-panel {
    padding: 32px 48px;
  }
}
@media (min-width: 1024px) {
  .sheet-grid {
    grid-template-columns: 1.12fr 1fr;
    padding: 20px;
  }
  .sheet-panel {
    grid-column: 2;
  }
}

/* ---------- članek (razlaga imena; v panelu in na samostojni strani) ---------- */

.article {
  width: 100%;
  max-width: 36rem;
  padding: 40px 0;
}
.article-title {
  margin-top: 8px;
  font: 500 36px/40px var(--font-sans);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.article-body {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  color: var(--text-secondary);
}
.article-body h2 {
  margin-top: 12px;
  font: 500 18px/28px var(--font-sans);
  letter-spacing: -0.025em;
  color: var(--foreground);
}
.article-body i {
  color: var(--foreground);
}
.say {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}
.say .marker {
  font-size: 44px;
  line-height: 1;
  transform: rotate(-2deg);
}
.article-list {
  display: grid;
  gap: 12px;
}
.article-list li {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-surface);
  background: var(--background);
}
.article-list .num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}
.article-list strong {
  font-weight: 500;
  color: var(--foreground);
}
.article .btn {
  margin-top: 32px;
}

/* ---------- obrazec "Start a project" (v panelu in na strani /contact, kot obrazci v Critique) ---------- */

.sheet-form {
  width: 100%;
  max-width: 28rem;
  margin: auto 0;
  padding: 40px 0;
}
.disc--lg {
  width: 48px;
  height: 48px;
  background: var(--background);
}
.contact-start,
.contact-done {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}
.contact-start[hidden],
.contact-done[hidden] {
  display: none;
}
.contact-start .article-title,
.contact-done .article-title {
  margin-top: 0;
}
.contact-done .article-title {
  outline: none;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.check-line .ico {
  margin-top: 4px;
  color: var(--ink);
}
.check-line strong {
  font-weight: 500;
  color: var(--foreground);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}
.field {
  display: grid;
  gap: 8px;
}
.label {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}
/* na panelu so polja bela in brez obrobe; 16 px na telefonu, da iPhone ob tipkanju ne poveča strani */
.input {
  width: 100%;
  height: var(--control-lg);
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: var(--background);
  color: var(--foreground);
  font: 400 16px/20px var(--font-sans);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input::placeholder {
  color: var(--muted-foreground);
}
.input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}
.input[aria-invalid="true"] {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--destructive) 20%, transparent);
}
.textarea {
  height: auto;
  min-height: 132px;
  padding: 12px 20px;
  resize: vertical;
  field-sizing: content;
}
.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  font: 500 12px/16px var(--font-sans);
  color: var(--destructive);
}
.field-error[hidden] {
  display: none;
}
.field-error .ico {
  width: 14px;
  height: 14px;
}
.form-error {
  padding: 0;
}
.form-note {
  font-size: 12px;
  line-height: 16px;
  color: var(--text-secondary);
}
.form-note a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* past za robote: izven zaslona, ne display:none (nekateri roboti preskočijo skrita polja) */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn--block {
  width: 100%;
  margin-top: 8px;
}
.btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

@media (min-width: 768px) {
  .input {
    font-size: 14px;
  }
}

/* ---------- noga ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted-foreground);
  text-align: center;
}
.footer a {
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
  font-weight: 500;
  text-underline-offset: 4px;
}
.footer a:hover {
  text-decoration: underline;
}

/* ---------- manj gibanja: vse obstane v končnem stanju ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .in-left,
  .in-right,
  .rotating.is-in,
  .beam::before,
  .sheet-panel,
  .sheet-backdrop {
    animation: none;
  }
  .quote-photo {
    transition: none;
  }
  .quote:hover .quote-photo {
    transform: scale(1.01);
  }
  .quote:hover .quote-photo--rand {
    transform: scale(1.06);
  }
  .draw path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .yours-note {
    animation: none;
    opacity: 1;
  }
  .rotating,
  .sticky,
  .circle path,
  .underline path {
    transition: none;
  }
}
