/* ============================================================
   Gosia Klajn — harpsichordist
   Minimal, black & white, two Kandinsky accents, Inter.
   Mobile-first. Full-bleed. Composition over decoration.
   ============================================================ */

:root {
  /* Base */
  --ink:      #141414;   /* near-black */
  --ink-soft: #4c4c49;   /* muted body text */
  --paper:    #f6f5f0;   /* warm gallery white */

  /* Kandinsky accents */
  --blue:   #1946ba;  /* cobalt — primary accent */
  --yellow: #f2b705;  /* golden — secondary accent */

  /* connective thread (light, colourless) */
  --thread: #d0cfc9;

  /* Rhythm */
  --pad:  clamp(1.5rem, 4vw, 3.5rem); /* the frame margin (right + all sides on mobile) */
  --rail: clamp(1.5rem, 4vw, 3.5rem); /* left gutter — widens on desktop to clear the menu */
  --maxw: 1680px;                     /* generous cap for the hero composition only */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  position: relative;                  /* positioning context for the connector layer */
  font-family: "Inter", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

/* ============================================================
   Section 1 — Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;             /* let the big circle bleed off the edge */
  min-height: 100svh;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2rem, 7vh, 4rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;                       /* photo bottom rests directly on the horizon line */
}

/* --- bold Kandinsky geometry --- */
.hero__stage { position: relative; z-index: 2; }

.hero__circle {
  position: absolute;
  z-index: 1;
  border: 2px solid var(--blue);
  border-radius: 50%;
  aspect-ratio: 1;
  pointer-events: none;
  /* stacked layout: cradles the figure, but capped so its top clears the label */
  width: min(84vw, 24rem);
  left: 50%;
  bottom: clamp(3rem, 9vh, 5.5rem);
  transform: translateX(-50%);
}
/* the circle carries the hero geometry now — drop the photo's offset box here */
.hero__portrait::before { display: none; }

/* the title + photo pair */
.hero__stage {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 5vh, 2.5rem);
}

/* mobile: name on top, photo below resting on the line */
.hero__intro    { order: 1; }
.hero__portrait { order: 2; position: relative; width: 100%; }

/* offset outline frame behind the photo → subtle layered depth */
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--ink);
  transform: translate(clamp(0.6rem, 1.4vw, 1.15rem), clamp(0.6rem, 1.4vw, 1.15rem));
  z-index: 0;
  pointer-events: none;
}
.hero__img { position: relative; z-index: 1; width: 100%; display: block; }

/* horizon line the composition stands on */
.hero__line {
  width: 100%;
  height: 2px;
  background: var(--ink);
}

/* ---------- scroll-down cue (blue circle + yellow triangle) ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  width: clamp(44px, 6vw, 54px);
  display: block;
  border-radius: 50%;
  transition: transform 0.25s ease;
}
.scroll-cue__icon  { display: block; width: 100%; height: auto; }
.scroll-cue__ring  { fill: var(--ink); stroke: none; }   /* solid ink disc */
.scroll-cue__arrow { fill: var(--paper); }                /* paper triangle */

/* subtle, functional hover/focus — no looping animation */
.scroll-cue:hover,
.scroll-cue:focus-visible { transform: translate(-50%, 4px); }
.scroll-cue:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue { transition: none; }
}

.hero__name {
  font-weight: 200;
  font-size: clamp(3.25rem, 17vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero__role {
  margin-top: clamp(0.9rem, 2.5vh, 1.4rem);
  font-weight: 500;
  font-size: clamp(0.72rem, 3.4vw, 0.9rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--blue);
  padding-left: 0.4em; /* optical: balance the trailing letter-spacing */
}

/* ============================================================
   Desktop — two-column, portrait right, name left
   ============================================================ */
/* ============================================================
   Side menu
   ============================================================ */
.nav { position: fixed; z-index: 100; }
.nav__list { list-style: none; }
.nav__list a { text-decoration: none; }

/* --- mobile / tablet: hamburger + full-screen overlay --- */
@media (max-width: 1099px) {
  .nav { top: clamp(0.75rem, 3vw, 1.4rem); right: clamp(0.75rem, 4vw, 1.4rem); }
  .nav__toggle {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 42px; height: 42px; padding: 10px;
    border: 0; background: none; cursor: pointer;
  }
  .nav__toggle span {
    display: block; height: 2px; width: 100%; background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav__list {
    position: fixed; inset: 0; background: var(--paper);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: clamp(1.75rem, 5vh, 2.75rem);
    opacity: 0; visibility: hidden;
  }
  .nav.is-open .nav__list { opacity: 1; visibility: visible; }
  .nav__list a {
    display: flex; align-items: baseline; gap: 0.75rem;
    color: var(--ink); font-size: 1.6rem; font-weight: 300; letter-spacing: 0.02em;
  }
  .nav__num { font-size: 1rem; color: var(--ink-soft); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --- large screens: fixed vertical menu in the left gutter --- */
@media (min-width: 1100px) {
  .nav__toggle { display: none; }
  .nav {
    top: 50%; left: clamp(1.75rem, 3vw, 3rem); transform: translateY(-50%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  /* menu lives only in the first section; fades out once scrolled past */
  .nav.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
  .nav__list { display: flex; flex-direction: column; gap: 1.15rem; }
  .nav__list a {
    display: flex; align-items: baseline; gap: 0.6rem;
    color: var(--ink); font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    transition: color 0.2s ease;
  }
  .nav__num { font-size: 0.68rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; transition: color 0.2s ease; }
  .nav__list a:hover,
  .nav__list a.is-active { color: var(--blue); }
  .nav__list a:hover .nav__num,
  .nav__list a.is-active .nav__num { color: var(--blue); }
}

/* ============================================================
   Section 2 — Statement (text only)
   ============================================================ */
.statement {
  position: relative;
  min-height: 100svh;
  width: 100%;
  padding-block: clamp(3rem, 12vh, 7rem);
  padding-inline: var(--rail) var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
}

.statement__inner {
  max-width: 46rem;          /* comfortable reading measure */
  margin-inline: auto;       /* centred, equal margins each side */
}

.statement__mark {
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--ink);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.statement__lead {
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1.25rem, 3.5vh, 2rem);
}

.statement__body {
  max-width: 40rem;
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================================
   Section 3 — Bio (photo + note)
   ============================================================ */
.bio {
  min-height: 100svh;
  width: 100%;
  padding-block: clamp(3rem, 10vh, 6rem);
  padding-inline: var(--rail) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.75rem, 5vh, 3rem);
}

.bio__photo {
  position: relative;
  width: 100%;
  border: 1.5px solid var(--ink);      /* the visible rectangle = the measured box */
}

/* offset "shadow" frame behind the photo → subtle layered depth */
.bio__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ink);
  transform: translate(clamp(0.6rem, 1.4vw, 1.15rem), clamp(0.6rem, 1.4vw, 1.15rem));
  z-index: -1;
  pointer-events: none;
}
.bio__img {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  filter: grayscale(1);      /* keep the palette black & white */
}

.bio__mark {
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--ink);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.bio__body {
  max-width: 40rem;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (min-width: 860px) {
  .bio {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(2.5rem, 6vw, 5rem);
  }
  .bio__photo { flex: 0 1 auto; width: min(56vw, 44rem); }
  .bio__text  { flex: 0 1 auto; max-width: 26rem; }
}

/* ============================================================
   Hero — desktop layout
   ============================================================ */
@media (min-width: 860px) {
  .hero__stage {
    flex-direction: row;
    align-items: flex-end;                /* photo bottom rests on the horizon line */
    justify-content: space-between;       /* name far-left, figure far-right — bold & spatial */
    gap: clamp(2rem, 5vw, 4rem);
  }

  .hero__intro    { flex: 0 1 auto; text-align: left; align-self: center; }
  .hero__portrait { flex: 0 0 auto; order: 2; width: min(40vw, 32rem); }
  .hero__img      { width: 100%; }

  /* the big circle bleeds off the right; the figure emerges from it */
  .hero__circle {
    width: min(46vw, 40rem);
    left: auto; right: -3vw;
    bottom: auto; top: 50%;
    transform: translateY(-53%);
  }
  .hero__name { font-size: clamp(5.5rem, 10vw, 9rem); }
  .hero__role {
    font-size: 1rem;
    padding-left: 0;
    padding-right: 0.4em; /* optical balance on the right edge now */
  }
}

/* ============================================================
   Large-screen gutter — reserve a left rail for the fixed side menu
   ============================================================ */
@media (min-width: 1100px) {
  :root { --rail: 11rem; }
}

/* ============================================================
   Section 4 — Media (recordings)
   ============================================================ */
.media {
  position: relative;
  width: 100%;
  padding: clamp(4rem, 12vh, 8rem) var(--pad) clamp(5rem, 13vh, 9rem) var(--rail);
}

.media__mark {
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--ink);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.media__heading {
  font-weight: 500;
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(2.5rem, 7vh, 4rem);
}

/* featured project */
.project { margin-bottom: clamp(3.5rem, 9vh, 6rem); }
.project__title {
  font-weight: 300;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.project__meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(1rem, 2.5vh, 1.5rem);
}
.project__desc {
  max-width: 44rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: clamp(1.75rem, 4vh, 2.5rem);
}
.project__videos {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 680px) {
  .project__videos { grid-template-columns: 1fr 1fr; }
}

/* standalone recordings */
.recordings {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
}
@media (min-width: 680px) {
  .recordings { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- video facade (click to load) ---------- */
.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #e7e6e1;
  border: 1.5px solid var(--ink);      /* the visible rectangle = the measured box */
}
/* offset "shadow" frame behind each video, matching the photos */
.video__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ink);
  transform: translate(9px, 9px);
  z-index: -1;
  pointer-events: none;
}
.video__btn {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}
.video__iframe { position: relative; z-index: 1; }
.video__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.video__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
  transition: filter 0.25s ease;
}
.video__btn:hover .video__thumb,
.video__btn:focus-visible .video__thumb { filter: grayscale(1) brightness(0.9); }
.video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(46px, 6vw, 58px);
}
.video__play svg { display: block; width: 100%; height: auto; }
.video__play circle { fill: var(--ink); stroke: none; }
.video__play polygon { fill: var(--paper); }
.video__iframe { width: 100%; height: 100%; border: 0; display: block; }

.video__caption { margin-top: 0.75rem; }
.video__composer {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.video__piece {
  display: block;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.35;
  color: var(--ink);
  margin-top: 0.15rem;
}

/* ============================================================
   Text sections — bold composition, no boxy frame.
   The text sits free; big geometry occupies the open space.
   ============================================================ */
/* --- About: centred text over a faint Kandinsky background --- */
.statement { overflow: hidden; }
.statement__inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin-inline: auto;      /* centred div */
}


.bio { position: relative; }

/* ============================================================
   Section 5 — Photos
   ============================================================ */
.photos {
  position: relative;
  width: 100%;
  padding: clamp(4rem, 12vh, 8rem) var(--pad) clamp(5rem, 13vh, 9rem) var(--rail);
}
/* ---------- photo carousel ---------- */
.carousel__viewport { position: relative; }
.carousel__track {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 14px;                 /* room for the offset shadow */
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  position: relative;
  flex: 0 0 auto;
  width: min(80vw, 46rem);
  scroll-snap-align: center;
}
.carousel__slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1);
  border: 1.5px solid var(--ink);
}
.carousel__slide::before {             /* offset shadow frame, matching videos/photos */
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--ink);
  transform: translate(9px, 9px);
  z-index: 0;
  pointer-events: none;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: clamp(40px, 6vw, 52px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.carousel__btn--prev { left: clamp(0.25rem, 1.5vw, 1rem); }
.carousel__btn--next { right: clamp(0.25rem, 1.5vw, 1rem); }
.carousel__btn:hover { transform: translateY(-50%) scale(1.06); }
.carousel__btn svg { display: block; width: 100%; height: auto; }
.carousel__btn circle  { fill: var(--ink); stroke: none; }
.carousel__btn polygon { fill: var(--paper); }
.carousel__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 50%; }

.carousel__count {
  text-align: center;
  margin-top: clamp(1rem, 3vh, 1.75rem);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Footer — Contact (three icons)
   ============================================================ */
.contact {
  min-height: 100svh;
  padding-block: clamp(3.5rem, 10vh, 6rem);
  padding-inline: var(--rail) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4vh, 2.5rem);
}
.contact__mark {
  width: clamp(3rem, 10vw, 5rem);
  height: 2px;
  background: var(--ink);
}
.contact__links {
  list-style: none;
  display: flex;
  gap: clamp(1.75rem, 6vw, 3rem);
}
.contact__links a {
  display: block;
  width: clamp(1.6rem, 4vw, 1.9rem);
  color: var(--ink);
  transition: color 0.2s ease, transform 0.2s ease;
}
.contact__links a:hover,
.contact__links a:focus-visible { color: var(--blue); transform: translateY(-2px); }
.contact__links svg { display: block; width: 100%; height: auto; }


/* ============================================================
   Language picker (EN / PL)
   ============================================================ */
.lang {
  position: fixed;
  z-index: 101;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  top: clamp(0.85rem, 3vw, 1.4rem);
  left: clamp(1.25rem, 4vw, 1.5rem);   /* mobile: top-left, clear of the hamburger */
}
.lang__btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.lang__btn:hover { color: var(--blue); }
.lang__btn.is-active { color: var(--ink); }
.lang__sep { color: var(--ink-soft); font-size: 0.72rem; }

@media (min-width: 1100px) {
  .lang { top: clamp(1.25rem, 3vw, 2rem); left: auto; right: clamp(1.75rem, 3vw, 3rem); }
}
