/* ==========================================================================
   Lucas Mirovski — site styles
   Fonts: the original Squarespace site used Adobe Fonts (Pragmatica Extended,
   Aktiv Grotesk). Those are licensed through Squarespace, so this copy uses the
   closest free equivalents from Google Fonts: Archivo (expanded) and Inter.
   To switch back to the Adobe originals, change the two --font lines below.
   ========================================================================== */

:root {
  --font-display: "pragmatica-extended", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-ui: "aktiv-grotesk", "Inter", "Helvetica Neue", Arial, sans-serif;
  --ink: #000;
  --paper: #fafafa;
  --accent: #4279ac;           /* collaborator names */
  --gutter: 4vw;
  --header-h: 93px;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 400;
  font-size: clamp(18px, calc(16px + 0.6vw), 24.64px);
  line-height: 1.325;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Paper texture: same image behind every section, lightened slightly */
.paper {
  position: relative;
  background: var(--paper) url("images/paper.jpg") center / cover no-repeat;
}
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.paper > * { position: relative; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  padding: 12px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--ink);
  background: var(--paper) url("images/paper.jpg") center top / cover no-repeat;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(64px, 6.45vw, var(--header-h));
  padding: 0 var(--gutter);
}
.site-title {
  font-weight: 700;
  font-size: clamp(18px, 1.47vw, 21.2px);
  letter-spacing: -0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 1.4em; }
.site-nav a {
  font-family: var(--font-ui);
  font-stretch: 100%;
  font-size: 14.3px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.5px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.25s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background-size: 100% 1px; }

/* ---------- Shared type ---------- */
.display {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.08em;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 2.8vw var(--gutter) 2.6vw; }
.hero h1 {
  font-size: clamp(54px, 10.86vw, 180px);
  /* optical correction: tight tracking leaves trailing space on the right */
  margin-right: -0.08em;
}
.hero h1 span { display: block; }
.hero__role {
  margin: 0.2em 0 0;
  font-size: clamp(26px, 3.73vw, 62px);
  line-height: 1;
}
.hero__place {
  margin: 0.9em 0 0;
  line-height: 1;
}

/* ---------- Studio photo ---------- */
.portrait { padding: 2.7vw var(--gutter) 5.5vw; }
.portrait img {
  width: min(37.5vw, 620px);
  min-width: min(306px, 100%);
  aspect-ratio: 539 / 423;
  margin: 0 auto;
  object-fit: cover;
  object-position: 47.3% 75.2%;
  border-radius: 50px;
}

/* ---------- Portfolio ---------- */
.portfolio { padding: 5.6vw var(--gutter) 5.6vw; }
.portfolio h2 {
  font-size: clamp(56px, 11.07vw, 184px);
  line-height: 0.868;
  white-space: pre;
}
.portfolio h2 span { display: block; }
.portfolio h2 span + span { margin-top: 0.47em; }

.player {
  width: min(29.8vw, 500px);
  min-width: min(300px, 100%);
  margin: 0.8vw auto 0;
}
.player iframe { display: block; width: 100%; height: 750px; border: 0; border-radius: 12px; }

/* Accordion */
.promise {
  width: min(60.4vw, 1000px);
  min-width: min(496px, 100%);
  margin: clamp(56px, 6.4vw, 96px) auto 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.promise summary {
  position: relative;
  display: block;
  cursor: pointer;
  list-style: none;
  padding: 30px 40px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}
.promise summary::-webkit-details-marker { display: none; }
.promise summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
/* plus icon, left side; vertical bar disappears when open */
.promise summary::before,
.promise summary::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.promise summary::after { transform: rotate(90deg); }
.promise[open] summary::after { transform: rotate(0deg); opacity: 0; }
.promise__body { width: 70%; min-width: min(300px, 100%); margin: 0 auto; padding-bottom: 15px; }
.promise__body p { margin: 0 0 1em; }
.promise__body strong { font-weight: 700; }

/* Buttons */
.btn {
  display: block;
  width: min(22.1vw, 360px);
  min-width: 178px;
  margin: 0 auto;
  padding: 20.8px 34.7px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: #fff; }
.portfolio .btn { margin-top: clamp(56px, 6.4vw, 96px); }

/* ---------- Collaborators ---------- */
.collab { padding: 6.6vw var(--gutter) 6.6vw; text-align: center; }
.collab h2 { font-size: clamp(30px, 4.85vw, 80px); margin-right: -0.08em; }
.collab__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 4vw;
  max-width: 1320px;
  margin: 3.4vw auto 0;
  padding: 0 4vw;
  list-style: none;
}
.collab__cols ul { margin: 0; padding: 0; list-style: none; }
.collab__cols li { color: var(--accent); margin: 0 0 0.62em; }

/* ---------- Labels ---------- */
.labels { padding: 2.7vw var(--gutter) 5.4vw; }
.labels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  gap: 2.2vw 4vw;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 4vw;
}
.labels__grid a { display: block; transition: opacity 0.2s ease; }
.labels__grid a:hover { opacity: 0.6; }
.labels__grid img { height: clamp(120px, 15.7vw, 250px); width: auto; max-width: 100%; object-fit: contain; }
.labels__grid .sm img { height: clamp(88px, 10.2vw, 165px); }

.cta { padding: 0 var(--gutter) 2.7vw; }

/* ---------- Footer ---------- */
.site-footer { padding: 5.3vw var(--gutter) 3.5vw; text-align: center; }
.site-footer p { margin: 0 0 0.45em; }
.social { display: flex; justify-content: center; gap: 15px; }
.social a { display: block; transition: opacity 0.2s ease; }
.social a:hover { opacity: 0.6; }
.social img { width: clamp(18px, 2.85vw, 41px); height: clamp(18px, 2.85vw, 41px); object-fit: contain; }

/* ---------- Contact page ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 4vw 8.9vw;
  padding: clamp(40px, 6.6vw, 110px) var(--gutter) clamp(48px, 6.6vw, 110px);
  min-height: 60vh;
}
.contact h1 { font-size: clamp(32px, 4.93vw, 82px); }
.contact__intro p { margin: 0.5em 0 0; max-width: 11em; }

.form fieldset { border: 0; margin: 0 0 20px; padding: 0; }
.form legend { padding: 0; margin-bottom: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form label { display: block; font-size: 15.4px; line-height: 1.6; }
.form fieldset label { font-size: 12px; line-height: 2.2; }
.form label small { font-size: inherit; opacity: 0.7; margin-left: 4px; }
.form__field { margin-bottom: 20px; }
.form input[type="text"],
.form input[type="email"],
.form textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: clamp(16px, 1.71vw, 21px);
  -webkit-appearance: none;
  appearance: none;
}
.form input[type="text"], .form input[type="email"] { height: 50px; }
.form textarea { min-height: 100px; resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form .btn { width: auto; min-width: 111px; margin: 0; }
.form__status { margin: 18px 0 0; font-size: 15.4px; min-height: 1.4em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
  :root { --gutter: 6vw; }
  .hero { padding-top: 9vw; padding-bottom: 6vw; }
  .hero h1 { font-size: 15.5vw; }
  .hero__role { font-size: 7.2vw; }
  .portrait img { width: 100%; border-radius: 36px; }
  .portrait { padding-bottom: 12vw; }
  .portfolio { padding-top: 10vw; padding-bottom: 14vw; }
  .portfolio h2 { font-size: 17vw; }
  .player { width: 100%; margin-top: 8vw; }
  .player iframe { height: 620px; }
  .promise { width: 100%; }
  .promise summary { padding: 26px 0 26px 40px; }
  .promise__body { width: 100%; }
  .collab { padding: 14vw var(--gutter); }
  .collab h2 { font-size: 8.6vw; }
  .collab__cols { grid-template-columns: 1fr; padding: 0; margin-top: 8vw; }
  .labels { padding: 4vw var(--gutter) 8vw; }
  .labels__grid { grid-template-columns: repeat(2, 1fr); gap: 4vw 6vw; padding: 0; }
  .labels__grid img { height: 34vw; }
  .labels__grid .sm img { height: 24vw; }
  .cta { padding-bottom: 10vw; }
  .site-footer { padding: 12vw var(--gutter) 10vw; }
  .social img { width: 26px; height: 26px; }
  .contact { grid-template-columns: 1fr; gap: 36px; padding-top: 12vw; }
  .contact h1 { font-size: 10vw; }
  .contact__intro p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
