:root {
  /* palette from the Figma "Bezto v2" brand board */
  --bg: #1A1D1B;
  --bg-deep: #151816;
  --box: #1E2220;
  --ink: #2C332F;
  --paper: #FCFCF8;
  --text: #EFEDE6;
  --accent: #FF4D00;
  --muted: #97948A;
  --line: rgba(239, 237, 230, 0.14);
  --gap: 1.25rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* grain across the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  z-index: 3;
  background-image: 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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.layout {
  display: grid;
  grid-template-columns: 37% 63%;
  align-items: start;
  animation: fade 0.9s ease both;
}

/* opacity only: a transform here would break position:fixed on .switch */
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) { .layout, .panel { animation: none !important; } }

/* ---------- left, sticky ---------- */
.side {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vh, 2.5rem) clamp(2rem, 4.5vw, 5rem);
}

.top-row { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 0.4rem; }
.wordmark { height: 1.3rem; width: auto; fill: currentColor; }
.mark { height: 0.75rem; width: auto; }

.social { display: inline-flex; align-items: center; gap: 0.9rem; position: relative; }
.social a { color: var(--muted); display: inline-flex; }
.social a:hover { color: var(--text); }

.copy-mail {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.copy-mail:hover { color: var(--text); }

.toast {
  position: absolute;
  right: 0;
  top: 1.7rem;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--text);
  background: var(--box);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: none; }

.intro { display: flex; flex-direction: column; gap: 1.35rem; max-width: 26em; margin: auto 0; }

h1 {
  font-size: clamp(1.55rem, 1.1vw + 0.85rem, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.subline { color: var(--muted); font-size: 0.9rem; max-width: 34em; }

.offer { font-size: 0.85rem; color: var(--muted); }
.offer strong { color: var(--text); font-weight: 500; }

.button {
  display: inline-block;
  width: max-content;
  padding: 0.75rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ---------- left testimonial, quiet ---------- */
.mini-quote { max-width: 30em; margin-bottom: 1.4rem; }

.mini-quote p {
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}

.mini-quote p::before { content: "* "; color: var(--accent); font-style: normal; }

.mini-by { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.7rem; }
.mini-by .avatar { width: 26px; height: 26px; margin: 0; }

.mini-quote cite {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.side-foot { display: flex; flex-direction: column; gap: 0.75rem; }

.label { font-size: 0.8rem; font-weight: 400; color: var(--muted); }

.clients { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.clients img { height: 15px; width: auto; opacity: 0.85; }
.clients img[alt="Pletly"] { height: 26px; }

/* ---------- right column ---------- */
.work { background: var(--bg-deep); min-height: 100dvh; }

.panel {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--gap) var(--gap) 5.5rem var(--gap);
  animation: panelIn 0.45s ease both;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hidden { display: none !important; }

/* works in quiet containers, barely lifted from the background */
.item {
  border-radius: 4px;
  background: var(--box);
  padding: clamp(1.75rem, 3.5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.item:nth-child(3n) { background: #20241f; }
.item:nth-child(3n+1) { background: #1c201e; }

.item img, .item video {
  display: block;
  width: min(84%, 860px);
  height: auto;
  border-radius: 3px;
}

.placeholder-1, .placeholder-2, .placeholder-3 { aspect-ratio: 4 / 3; }

.quote {
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 4vw, 4.5rem);
  max-width: 42em;
  margin: 0 auto;
  text-align: center;
}

.quote p {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 1vw + 1rem, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.quote .avatar { margin: 1.5rem auto 0.6rem; }

.quote cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
}

/* only quotes without an avatar get the asterisk and extra top gap */
.quote p + cite { margin-top: 1.4rem; }
.quote p + cite::before { content: "* "; color: var(--accent); }

/* ending of the works feed */
.feed-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
  padding: clamp(4rem, 12vh, 8rem) 1.5rem clamp(3rem, 8vh, 5rem);
}

.end-mark {
  width: 44px;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feed-end:hover .end-mark { transform: rotate(90deg) scale(1.12); }

.feed-end p {
  max-width: 22em;
  font-size: clamp(1.15rem, 1vw + 0.85rem, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.big-btn {
  font: inherit;
  font-size: clamp(1rem, 0.8vw + 0.7rem, 1.25rem);
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 999px;
  padding: 1rem 2.2rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.big-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ---------- about panel: centered, one screen, no scroll ---------- */
.about {
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
}

.about-card {
  background: var(--box);
  border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 640px;
  width: 100%;
}

.about-card h2 {
  font-size: clamp(1.35rem, 1vw + 1rem, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.about-card p { font-size: 0.93rem; color: var(--text); }

.about-card .button { margin-top: 0.5rem; }

.photo { border-radius: 3px; overflow: hidden; }
.photo img { display: block; width: 100%; height: auto; max-height: 34vh; object-fit: cover; object-position: 50% 20%; }
.photo.empty {
  min-height: 220px;
  background: rgba(239, 237, 230, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo.empty::after { content: "Photo of us, drop assets/us.jpg"; font-size: 0.85rem; color: var(--muted); }

/* ---------- floating switch, bottom of the work column ---------- */
.switch {
  position: fixed;
  bottom: 1.4rem;
  left: 68.5%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(21, 24, 22, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(239, 237, 230, 0.1);
}

.switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.switch button:hover { color: var(--text); }
.switch button.on { background: rgba(239, 237, 230, 0.12); color: var(--text); }

.float-call { display: none; }

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .layout { display: block; }

  /* slightly shorter than the screen so the first work peeks in */
  .side {
    position: static;
    height: auto;
    min-height: 86dvh;
    padding: 1.5rem clamp(1.25rem, 5vw, 2rem) 2rem;
  }

  /* client logos on one line */
  .clients { flex-wrap: nowrap; gap: 0.9rem; overflow: hidden; }
  .clients img { height: 11px; }
  .clients img[alt="Pletly"] { height: 20px; }

  /* floating controls appear only after scrolling: switch right, call left */
  .switch {
    left: auto;
    right: 1rem;
    transform: translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .float-call {
    display: inline-block;
    position: fixed;
    left: 1rem;
    bottom: 1.4rem;
    z-index: 5;
    padding: 0.62rem 1.2rem;
    font-size: 0.88rem;
    transform: translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  body.scrolled .switch,
  body.scrolled .float-call {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .item { padding: 1.1rem; }
  .item img, .item video { width: 100%; }

  .quote { padding: clamp(2.5rem, 10vw, 4rem) 0.5rem; }

  .about { min-height: auto; }
}
