/* Eleni Marks, portfolio. Type: Inter 4.1 (rsms.me/inter), self-hosted. Ground: black. */

@font-face {
  font-family: "InterVariable";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterVariable";
  src: url("/fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --dim: rgba(255, 255, 255, 0.72);
  --hair: rgba(255, 255, 255, 0.28);

  /* The deck is a 1920 canvas. Measures are its pixels expressed against the viewport. */
  --edge: clamp(16px, 1.72vw, 40px);          /* 33px at 1920 */
  --label: clamp(12px, 1.15vw, 24px);         /* 22px micro-type */
  --body: clamp(15px, 1.2vw, 24px);           /* 23px body */
  --head: clamp(18px, 1.9vw, 40px);           /* 36px section heads */
  --display: clamp(40px, 5.75vw, 124px);       /* CREATIVE IDENTITY */
  --name: clamp(60px, 11.1vw, 240px);         /* ELENI MARKS */

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "InterVariable", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "calt", "cv11";
  font-size: var(--body);
  line-height: 1.45;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 1px solid var(--paper);
  outline-offset: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: var(--edge); top: -100px; }
.skip:focus { top: var(--edge); z-index: 50; }

/* ---------- type roles, taken from the deck ---------- */
.label {
  font-size: var(--label);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  font-feature-settings: "case", "cv11";
  line-height: 1.2;
}
.label--bold { font-weight: 700; }
.display {
  margin: 0;
  font-size: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.84;
  letter-spacing: -0.045em;
  font-feature-settings: "case";
}
.head {
  margin: 0;
  font-size: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.caps {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-feature-settings: "case";
}
.light { font-weight: 300; }
.italic { font-style: italic; }
.justify { text-align: justify; hyphens: manual; }

/* ---------- top bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  padding: calc(var(--edge) * 1.35) var(--edge) 0;
}
.bar__left { justify-self: start; }
.bar__center { justify-self: center; }
.nav { justify-self: end; display: flex; gap: clamp(14px, 1.6vw, 32px); }
.nav a { font-weight: 700; }
.nav a[aria-current="page"], .nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }

/* ---------- a slide: one viewport, 16:9 at desktop ---------- */
.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--edge) * 1.35) var(--edge) var(--edge);
}

/* ---------- home: title ---------- */
.home__portrait {
  position: absolute; right: 0; top: 14.58vw;
  width: 55.2vw; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}
.home__name {
  position: absolute; left: 2.1vw; bottom: 3.1vw;
  margin: 0; z-index: 2;
  font-size: var(--name);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- about: creative identity ---------- */
.identity { display: grid; grid-template-columns: 52.4% 1fr; column-gap: 0; padding-right: 0; }
.identity__text { padding-top: calc(var(--edge) * 2.9); padding-right: 3.4vw; }
@media (min-width: 821px) { .identity__text .display { white-space: nowrap; } }
.identity__sub { margin: calc(var(--edge) * 0.55) 0 0; }
.pairs { margin: calc(var(--edge) * 5.6) 0 0; display: grid; row-gap: calc(var(--edge) * 5); }
.pair { display: grid; grid-template-columns: 30% 1fr; align-items: start; }
.pair dt { margin: 0; font-size: var(--head); font-weight: 700; text-transform: uppercase; line-height: 1.1; letter-spacing: -0.01em; }
.pair dd { margin: 0; line-height: 1.43; }
.identity__media { display: grid; grid-template-rows: 1fr 1fr; row-gap: 3vw; margin-top: calc(var(--edge) * -0.9); margin-right: 0.8vw; }
.identity__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- about: voice and drive ---------- */
.voice__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.voice > *:not(.voice__bg) { position: relative; z-index: 1; }
.voice__grid {
  display: grid; grid-template-columns: 38.3% 1fr; align-items: start;
  margin-top: calc(var(--edge) * 8.6);
}
.voice__title { padding-left: 3.3vw; }
.voice__list { list-style: none; margin: calc(var(--edge) * 1.9) 0 0; padding: 0 0 0 4.1vw; display: grid; row-gap: calc(var(--edge) * 1.25); text-transform: uppercase; font-feature-settings: "case"; }
.voice__perspective { padding-top: calc(var(--edge) * 7.2); }
.voice__perspective p { margin: calc(var(--edge) * 0.6) 0 0; }

/* ---------- work: selected works (positions are the slide's, 1px = 1/19.2vw) ---------- */
.works-slide { min-height: max(100vh, 56.25vw); }
.works__title { margin-top: calc(var(--edge) * 2.9); }
.works { list-style: none; margin: 0; padding: 0; }
.work { position: absolute; }
.work a { display: block; }
.work img { display: block; transition: opacity 0.25s ease; }
.work__medium, .work__title { display: block; font-style: italic; font-weight: 400; font-size: var(--label); line-height: 1.35; }
.work a:hover img { opacity: 0.82; }
.work a:hover .work__title, .work a:hover .work__medium { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.work--thesis  { left: 0;       top: 22.1vw; width: 19.06vw; }
.work--thesis .work__medium { padding-left: 1.72vw; margin-bottom: 1vw; }
.work--film    { left: 23.7vw;  top: 24.85vw; width: 30.2vw; }
.work--film .work__medium { padding-left: 0.8vw; margin-bottom: 2vw; }
.work--film .work__title { padding-left: 1.4vw; margin-top: 2.1vw; }
.work--writing { left: 58.55vw; top: 22.1vw; width: 18.1vw; }
.work--writing .work__medium { margin-bottom: 1.3vw; }
.work--sound   { left: 81.9vw;  top: 24.85vw; width: 17.97vw; }
.work--sound .work__medium { padding-left: 1.46vw; margin-bottom: 0.94vw; }
.work--sound .work__title { padding-left: 2.35vw; margin-top: 1.46vw; }
.work img { width: 100%; }

/* ---------- work: creative process ---------- */
.process { display: grid; grid-template-columns: 34.5% 1fr; column-gap: 0; }
.process__left { padding-top: calc(var(--edge) * 2.9); }
.process__left .display { padding-left: 2.5vw; }
.process__journals { width: 31vw; margin: 4.8vw 0 0 calc(var(--edge) * -0.7); }
.process__right { padding-top: calc(var(--edge) * 8.6); display: grid; align-content: space-between; min-height: calc(100vh - var(--edge) * 4); }
.process__right p { margin: calc(var(--edge) * 0.55) 0 0; }
.process__pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.2vw; }
.process__pair h3 { margin: 0 0 calc(var(--edge) * 1.3); font-size: var(--label); font-weight: 700; text-transform: uppercase; }
.process__pair > div:last-child h3 { text-align: right; }

/* Canva sets these images below full opacity over black; values measured from the slide exports. */
.identity__media img { opacity: 0.68; }
.process__journals { opacity: 0.77; }
.work--thesis img, .work--writing img { opacity: 0.73; }
.work--thesis a:hover img, .work--writing a:hover img { opacity: 0.6; }

/* ---------- project ---------- */
.project { display: grid; grid-template-columns: 34.5% 1fr; column-gap: 0; }
.project__left { padding-top: calc(var(--edge) * 2.9); }
.project__left .display { font-size: clamp(38px, 4.6vw, 100px); line-height: 0.9; }
.project__meta { margin-top: calc(var(--edge) * 0.8); }
.project__media { margin-top: calc(var(--edge) * 3); width: 100%; }
.project__media img { width: 100%; max-height: 62vh; object-fit: contain; object-position: left top; }
.project__right { padding: calc(var(--edge) * 8.6) 0 0 calc(var(--edge) * 1.2); }
.back { display: inline-block; margin-top: calc(var(--edge) * 2.5); }

/* ---------- contact: the outro, on every page ---------- */
.outro {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: var(--edge);
}
.outro__inner { width: min(100%, 30rem); }
.outro__name { margin: 0 0 calc(var(--edge) * 1.2); font-size: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.form { display: grid; row-gap: calc(var(--edge) * 0.9); text-align: left; }
.form label { display: block; }
.form input, .form textarea {
  width: 100%; margin-top: 6px;
  background: transparent; color: var(--paper);
  border: 0; border-bottom: 1px solid var(--hair); border-radius: 0;
  font: inherit; padding: 8px 0;
}
.form textarea { min-height: 6.5em; resize: vertical; }
.form input:focus, .form textarea:focus { border-bottom-color: var(--paper); outline: none; }
.form button {
  justify-self: center; margin-top: calc(var(--edge) * 0.4);
  background: none; color: var(--paper); border: 0; padding: 6px 2px;
  font: inherit; font-weight: 700; text-transform: uppercase; font-size: var(--label); cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px;
}
.form button[disabled] { opacity: 0.5; cursor: default; }
.form__status { min-height: 1.4em; text-align: center; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin-top: calc(var(--edge) * 2); color: var(--dim); font-size: var(--label); }

/* ---------- narrow screens: the slide stacks ---------- */
@media (max-width: 820px) {
  :root { --edge: 18px; }
  .bar { grid-template-columns: 1fr auto; row-gap: 8px; }
  .bar__center { display: none; }
  .slide { min-height: auto; padding-top: 64px; padding-bottom: 56px; }
  .home { min-height: 100svh; }
  .home__portrait { width: 140%; max-width: none; right: -22%; top: auto; bottom: calc(15.2vw + 20px); }
  .home__name { font-size: 15.2vw; bottom: 28px; left: var(--edge); }

  .identity, .process, .project, .voice__grid, .process__pair { grid-template-columns: 1fr; }
  .identity { padding-right: var(--edge); }
  .identity__text, .process__left, .project__left, .works__title { padding-top: 12px; margin-top: 0; }
  .pairs { margin-top: 40px; row-gap: 32px; }
  .pair { grid-template-columns: 1fr; row-gap: 10px; }
  .identity__media { margin: 36px 0 0; row-gap: 12px; grid-template-rows: none; }

  .voice { min-height: 100svh; }
  .voice__grid { margin-top: 24px; }
  .voice__title, .voice__list { padding-left: 0; }
  .voice__perspective { padding-top: 40px; }

  .works-slide { min-height: 0; }
  .works { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 14px; margin: 32px 0 0; }
  .work { position: static; width: auto !important; }
  .work .work__medium, .work .work__title { padding: 0 !important; margin: 0 0 10px !important; }
  .work .work__title { margin: 10px 0 0 !important; }
  .work--film { grid-column: 1 / -1; }

  .process__left .display { padding-left: 0; }
  .process__journals { width: 100%; margin: 28px 0 0; }
  .process__right { padding-top: 32px; min-height: 0; row-gap: 40px; }
  .process__pair { row-gap: 28px; }
  .process__pair > div:last-child h3 { text-align: left; }
  .project__right { padding: 28px 0 0; }
}

/* ---------- review mode: highlight text, request an edit ---------- */
.rv-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 100;
  display: flex; gap: 14px; align-items: center;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 999px;
  font-size: 13px; line-height: 1.2; box-shadow: 0 6px 30px rgba(0,0,0,.5);
  max-width: calc(100vw - 24px);
}
.rv-bar span:first-child { flex: 1 1 auto; }
@media (max-width: 520px) { .rv-bar { border-radius: 12px; font-size: 12px; left: 12px; right: 12px; transform: none; } }
.rv-bar button { font: inherit; font-weight: 700; background: none; border: 0; color: #000; cursor: pointer; text-decoration: underline; padding: 0; }
.rv-pop { position: absolute; z-index: 101; background: #fff; color: #000; border-radius: 999px; padding: 8px 14px; font: 700 13px/1 "InterVariable", sans-serif; border: 0; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.rv-panel {
  position: fixed; right: 14px; bottom: 70px; z-index: 102; width: min(380px, calc(100vw - 28px));
  background: #fff; color: #000; border-radius: 10px; padding: 16px; font-size: 14px; line-height: 1.4;
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
}
.rv-panel blockquote { margin: 0 0 10px; padding: 8px 10px; background: #f1f1f1; border-radius: 6px; max-height: 8em; overflow: auto; }
.rv-panel label { display: block; font-weight: 600; margin-top: 10px; }
.rv-panel textarea, .rv-panel input { width: 100%; font: inherit; margin-top: 4px; padding: 8px; border: 1px solid #bbb; border-radius: 6px; color: #000; background: #fff; }
.rv-panel .rv-actions { display: flex; justify-content: space-between; margin-top: 12px; }
.rv-panel button { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.rv-panel .rv-send { background: #000; color: #fff; }
.rv-panel .rv-cancel { background: #eee; color: #000; }
.rv-mark { background: rgba(255, 230, 0, 0.35); }

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