/* ==========================================================================
   Pimavo — one-pager (placeholder)
   Direction: "Platinum" — quiet luxury, true-black ground, ivory/platinum,
   high-contrast Fraunces display. No chroma accent.
   ========================================================================== */

:root {
  /* Ground & lines */
  --bg:        #08080A;
  --surface:   #0F0F12;
  --line:      #1B1B1E;
  --line-soft: #17171A;
  --dim:       #2A2A2E;

  /* Ink */
  --ivory:     #F3EFE8;
  --platinum:  #D9D2C7;
  --platinum-2:#E8E3DA;
  --muted:     #9A968E;
  --muted-2:   #6E6A62;
  --muted-3:   #4A4A50;

  /* Single deliberate colour moment (accent on "boutique / butikowy") */
  --accent:    #C8A56A; /* champagne gold — swap this one value to change the accent */

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Rhythm */
  --pad-x: clamp(24px, 5vw, 72px);
  --ease:  cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: rgba(232, 227, 218, 0.18); color: #fff; }

/* ---- Atmosphere: halo + vignette + grain ------------------------------- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.atmosphere .halo {
  position: absolute;
  top: -32vh;
  left: 50%;
  width: min(1100px, 92vw);
  height: 840px;
  transform: translate(-50%, 0);
  background: radial-gradient(circle,
      rgba(228, 222, 212, 0.11) 0%,
      rgba(228, 222, 212, 0.035) 38%,
      rgba(228, 222, 212, 0) 68%);
  will-change: transform;
}
.atmosphere .vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 22%,
      rgba(8, 8, 10, 0) 42%, rgba(8, 8, 10, 0.55) 100%);
}
.atmosphere .grain {
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Shell ------------------------------------------------------------- */

.shell { position: relative; z-index: 1; }

.wrap { padding-inline: var(--pad-x); }

/* First screen: nav + hero + proof fill exactly one viewport, proof pinned to the bottom */
.screen {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* ---- Reveal on scroll / load ------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal].in-view { opacity: 1; transform: none; }

/* ---- Eyebrow (mono label) ---------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--platinum);
}
.eyebrow .rule {
  width: 34px;
  height: 1px;
  background: var(--platinum);
  transform-origin: left;
}
.eyebrow .est { color: var(--muted-2); letter-spacing: 0.2em; }

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn--solid {
  background: var(--platinum-2);
  color: #14140F;
  box-shadow: 0 0 0 rgba(228, 222, 212, 0);
}
.btn--solid:hover {
  box-shadow: 0 0 44px rgba(228, 222, 212, 0.18);
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  padding: 11px 20px;
  border: 1px solid var(--line);
  background: rgba(228, 222, 212, 0.02);
  color: var(--ivory);
  font-weight: 500;
  font-size: 14px;
}
.btn--ghost:hover { border-color: var(--dim); background: rgba(228, 222, 212, 0.05); }
.btn--ghost .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--platinum);
  box-shadow: 0 0 0 rgba(217, 210, 199, 0);
  animation: pulse 3.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(217, 210, 199, 0); }
  50%      { box-shadow: 0 0 10px rgba(217, 210, 199, 0.8); }
}

/* ---- Nav --------------------------------------------------------------- */

.nav {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(24px, 3vw, 38px);
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.wordmark sup {
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  color: var(--platinum);
  top: -0.7em;
}
.nav__right { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); }

/* Language toggle */
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.lang button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit;
  color: var(--muted-2);
  transition: color .25s var(--ease);
}
.lang button:hover { color: var(--platinum); }
.lang button[aria-pressed="true"] { color: var(--ivory); }
.lang .sep { color: var(--dim); }

/* ---- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  min-height: 0;
  padding-block: clamp(22px, 3vh, 56px);
  gap: clamp(18px, 2.2vw, 30px);
}
.hero__title {
  display: flex;
  flex-direction: column;
  max-width: 1060px;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 7.1vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.hero__title em { font-style: italic; color: var(--platinum-2); font-weight: 300; }
.hero__title .accent { color: var(--accent); }

.hero__sub {
  max-width: 540px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 26px);
  flex-wrap: wrap;
}
.mail {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--platinum);
  position: relative;
}
.mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--platinum);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.mail:hover::after { transform: scaleX(1); }

/* ---- Proof strip ------------------------------------------------------- */

.proof {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px 34px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.proof__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.proof__list .lead { color: var(--ivory); }
.proof__list .dot { color: var(--dim); }
.proof__scroll {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2);
}
.proof__scroll .tick {
  width: 1px; height: 22px;
  background: linear-gradient(180deg, var(--platinum), rgba(217, 210, 199, 0));
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
  0%   { transform: translateY(-4px); opacity: .3; }
  50%  { transform: translateY(2px);  opacity: 1;  }
  100% { transform: translateY(-4px); opacity: .3; }
}

/* ---- Services (editorial index) ---------------------------------------- */

.services { padding-block: clamp(80px, 12vh, 130px) clamp(72px, 10vh, 120px); }
.services__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(32px, 5vh, 56px);
}
.services__count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.svc-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  padding: clamp(22px, 3vh, 32px) 8px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.svc-list .svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row::before {  /* left accent bar */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--platinum);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform .4s var(--ease);
}
.svc-row::after {  /* hover wash */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(228, 222, 212, 0.05), rgba(228, 222, 212, 0));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.svc-row > * { position: relative; z-index: 1; }
.svc-row .idx {
  width: 52px; flex-shrink: 0;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  color: var(--muted-2);
  transition: color .35s var(--ease);
}
.svc-row .name {
  flex: 1;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: -0.01em;
  color: var(--ivory);
  transition: transform .4s var(--ease);
}
.svc-row .arrow {
  width: 24px; flex-shrink: 0; text-align: right;
  font-family: var(--body); font-size: 20px;
  color: var(--muted-3);
  transition: transform .4s var(--ease), color .35s var(--ease);
}
.svc-row:hover::before { transform: scaleY(1); }
.svc-row:hover::after  { opacity: 1; }
.svc-row:hover .idx    { color: var(--platinum); }
.svc-row:hover .name   { transform: translateX(16px); }
.svc-row:hover .arrow  { transform: translate(6px, -6px); color: var(--ivory); }

/* ---- Contact ----------------------------------------------------------- */

.contact { padding-block: clamp(40px, 6vh, 60px) clamp(48px, 8vh, 72px); display: flex; flex-direction: column; gap: clamp(28px, 4vh, 40px); }
.contact__title {
  display: flex; flex-direction: column;
  max-width: 900px;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(40px, 6.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.contact__title em { font-style: italic; color: var(--platinum-2); }
.contact__actions { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px); flex-wrap: wrap; padding-top: 8px; }
.contact__mail {
  font-family: var(--display);
  font-weight: 300; font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ivory);
  position: relative;
}
.contact__mail::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px; background: var(--platinum);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.contact__mail:hover::after { transform: scaleX(1); }

/* ---- Footer ------------------------------------------------------------ */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 30px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.footer__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer__brand { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--platinum); }
.footer__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.footer__right {
  display: flex; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.footer__right .lang button { font-size: 11px; letter-spacing: 0.16em; }
.footer__top { color: var(--muted-2); background: none; border: 0; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: uppercase; transition: color .25s var(--ease); }
.footer__top:hover { color: var(--platinum); }

/* ---- Focus visibility (a11y) ------------------------------------------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--platinum);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 640px) {
  .screen { min-height: auto; }
  .hero { justify-content: flex-start; min-height: 78svh; }
  .proof { flex-direction: column; align-items: flex-start; gap: 18px; }
  .proof__scroll { display: none; }
  .svc-row .arrow { display: none; }
  .svc-row:hover .name { transform: translateX(10px); }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ---- Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
