/* ============================================================
   Frederik Wollnik — Portfolio
   Design system derived from the print portfolio (2026)
   ============================================================ */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PP%20Neue%20Montreal/PPNeueMontreal-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PP%20Neue%20Montreal/PPNeueMontreal-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PP%20Neue%20Montreal/PPNeueMontreal-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("../fonts/PP%20Neue%20Montreal/PPNeueMontreal-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PP Right Serif";
  src: url("../fonts/PP%20Right%20Serif/PP%20Right%20Serif%20-%20Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Right Serif";
  src: url("../fonts/PP%20Right%20Serif/PP%20Right%20Serif%20-%20Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Right Serif";
  src: url("../fonts/PP%20Right%20Serif/PP%20Right%20Serif%20-%20Regular%20Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #191815;
  --bg-raise: #201f1b;
  --cream: #efebe0;
  --text: #c7c4bb;
  --muted: #939087;
  --line: rgba(239, 235, 224, 0.16);
  --line-soft: rgba(239, 235, 224, 0.09);

  --sans: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --serif: "PP Right Serif", Georgia, serif;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 82.5rem; /* 1320px */
  --header-h: 3.75rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--cream);
  color: var(--bg);
}

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

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

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
}

.label-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
  z-index: 100;
  background: var(--cream);
  color: var(--bg);
  padding: 0.6rem 1rem;
}

/* text links that are data, not actions: no frame, underline sweeps in on hover */
.link-sweep {
  position: relative;
  color: var(--text);
  transition: color 0.3s;
}
.link-sweep::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25em;
  width: 100%;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.link-sweep:hover {
  color: var(--cream);
}
.link-sweep:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Buttons: boxed = action, plain = data ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, border-color 0.35s,
    transform 0.4s var(--ease-out);
}
.btn--primary {
  background: var(--cream);
  color: var(--bg);
}
.btn--primary:hover {
  background: #fffdf7;
  transform: translateY(-2px);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--cream);
  color: var(--cream);
  transform: translateY(-2px);
}
.btn--sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.875rem;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(25, 24, 21, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-header__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--cream);
  white-space: nowrap;
  transition: opacity 0.3s;
}
.site-header__brand:hover {
  opacity: 0.7;
}
.site-header__brand span {
  color: var(--muted);
  display: none;
}
@media (min-width: 34em) {
  .site-header__brand span {
    display: inline;
  }
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.6rem);
}

.nav-inline {
  position: relative;
  display: none;
  transition: color 0.3s;
}
.nav-inline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-inline:hover {
  color: var(--cream);
}
.nav-inline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
@media (min-width: 62em) {
  .nav-inline {
    display: inline-block;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: color 0.3s;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  color: var(--cream);
}
.nav-toggle__icon {
  display: grid;
  gap: 3px;
  width: 15px;
}
.nav-toggle__icon i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.header-cta {
  display: none;
}
@media (min-width: 34em) {
  .header-cta {
    display: inline-flex;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: clamp(0.85rem, 2vw, 1.6rem);
  border-left: 1px solid var(--line);
}
.lang-switch a,
.lang-switch span[aria-current] {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}
.lang-switch span[aria-current] {
  color: var(--cream);
}
.lang-switch a {
  color: var(--muted);
  transition: color 0.3s;
}
.lang-switch a:hover {
  color: var(--cream);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.6;
}

/* ---------- Project panel (nav dropdown) ---------- */

.nav-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 45;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  background: rgba(25, 24, 21, 0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-panel[hidden] {
  display: none;
}
.nav-panel__inner {
  display: grid;
  gap: clamp(1.75rem, 5vw, 4rem);
  padding-block: clamp(1.75rem, 5vh, 3rem);
}
@media (min-width: 48em) {
  .nav-panel__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }
}
.nav-panel__label {
  margin-bottom: 0.9rem;
}
.nav-panel__list {
  list-style: none;
}
.nav-panel__list li + li {
  border-top: 1px solid var(--line-soft);
}
.nav-panel__list a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-block: 0.75rem;
  color: var(--text);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.3;
  transition: color 0.3s, padding-left 0.4s var(--ease-out);
}
.nav-panel__list a span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--muted);
  min-width: 1.6rem;
}
.nav-panel__list a:hover {
  color: var(--cream);
  padding-left: 0.5rem;
}
.nav-panel__list--plain a {
  font-family: var(--sans);
  font-style: normal;
  font-size: 1.0625rem;
}
.nav-panel__contact {
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 2.1;
}

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

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2.25rem, 6vh, 4rem);
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--cream);
  font-size: clamp(3.1rem, 9.6vw, 8.75rem);
  line-height: 0.98;
  letter-spacing: -0.005em;
}

.hero__rule {
  margin-block: clamp(1.5rem, 3.5vh, 2.5rem) clamp(1.25rem, 3vh, 2rem);
  max-width: 22rem;
}

.hero__status {
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
  text-wrap: pretty;
}
.hero__status em {
  font-style: normal;
  color: var(--cream);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3.5vh, 2.25rem);
}

.hero__stations {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
}
.hero__stations-label {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.hero__stations ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem clamp(1rem, 3vw, 2.5rem);
  font-size: 0.9375rem;
  color: var(--text);
}

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

.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(0.85rem, 2vh, 1.35rem);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
  width: max-content;
}
.marquee__item {
  flex: 0 0 auto;
  display: block;
  overflow: hidden;
  background: var(--bg-raise);
  height: clamp(84px, 12.5vh, 148px);
  aspect-ratio: 3 / 2;
}
.marquee__item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.94);
  transition: filter 0.5s;
}
.marquee:hover .marquee__item img {
  filter: saturate(1) brightness(1);
}

/* ---------- Sections (shared) ---------- */

.section {
  padding-block: clamp(4.5rem, 11vh, 9rem);
  border-top: 1px solid var(--line-soft);
}

.section__kicker {
  font-size: 0.9375rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: clamp(1.1rem, 2.5vh, 1.75rem);
}

.section__title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--cream);
  font-size: clamp(2.15rem, 5.2vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
  max-width: 24ch;
  text-wrap: balance;
}

.section__rule {
  margin-top: clamp(2rem, 5vh, 3.5rem);
}

/* ---------- About ---------- */

.about__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
@media (min-width: 56em) {
  .about__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }
}

/* Head-and-shoulders crop taken straight out of the full-body source
   (region 434,57 1531×1914 of 2666×4000) — no separate file needed. */
.about__portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 24rem;
}
/* .media.about__portrait so this outranks the generic `.media img` cover rule */
.media.about__portrait img {
  position: absolute;
  width: 174.14%;
  max-width: none;
  height: auto;
  left: -28.35%;
  top: -2.98%;
  object-fit: fill;
}

.about__lead {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 60ch;
}

.about__card {
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
}
.about__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.375rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.about__card ul {
  list-style: none;
  color: var(--muted);
}
.about__card li + li {
  margin-top: 0.15rem;
}
.about__card a {
  transition: color 0.3s;
}
.about__card a:hover {
  color: var(--cream);
}

/* career path — the row rule spans only the text column, so the vertical
   connector can run dot-to-dot through the gutter without ever meeting it */
.path {
  margin-top: clamp(2.25rem, 5vh, 3.25rem);
}
.path__label {
  margin-bottom: 1rem;
}
.path__list {
  list-style: none;
}
.path__item {
  position: relative;
  padding-left: 1.65rem;
  padding-block: 0.9rem;
}
.path__dot {
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: var(--bg);
  z-index: 1;
}
.path__item--current .path__dot {
  background: var(--cream);
  border-color: var(--cream);
}
/* row rule: starts where the text starts */
.path__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.65rem;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}
/* connector: from just below this dot to just above the next one */
.path__item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(1.55rem + 11px);
  bottom: calc(5px - 1.55rem);
  width: 1px;
  background: var(--line);
}
.path__org {
  display: block;
  color: var(--cream);
  line-height: 1.35;
}
.path__role {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}
.path__note {
  display: block;
  margin-top: 0.35rem;
  max-width: 46ch;
  color: var(--muted);
  opacity: 0.75;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.skills {
  margin-top: clamp(2.25rem, 5vh, 3.25rem);
}
.skills__title {
  margin-bottom: 1.1rem;
}
.skills__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(2rem, 5vw, 4rem);
  list-style: none;
}
@media (min-width: 36em) {
  .skills__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.skills__grid li {
  color: var(--cream);
  font-size: 1.0625rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- Work index ---------- */

.index {
  position: relative;
}

.index__list {
  list-style: none;
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.index__item a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num   tag"
    "thumb thumb"
    "body  body";
  align-items: baseline;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 0.9rem;
  padding-block: clamp(1.35rem, 3.2vh, 2rem);
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease-out);
}

.index__num {
  grid-area: num;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 1.125rem;
  min-width: 2.25rem;
  transition: color 0.3s;
}

.index__thumb {
  grid-area: thumb;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-raise);
}
.index__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* project 05 is audio work — no photograph exists, so its tile is drawn */
.index__thumb--wave,
.index__preview.index__preview--wave {
  background: #1b1a17 url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20900%20675%22%3E%3Crect%20width=%22900%22%20height=%22675%22%20fill=%22%231b1a17%22/%3E%3Crect%20x=%2260%22%20y=%22337%22%20width=%22780%22%20height=%221%22%20fill=%22%23efebe0%22%20opacity=%22.14%22/%3E%3Cg%20fill=%22%23efebe0%22%3E%3Crect%20x=%2216%22%20y=%22256%22%20width=%229%22%20height=%22164%22%20opacity=%220.59%22/%3E%3Crect%20x=%2236%22%20y=%22257%22%20width=%229%22%20height=%22161%22%20opacity=%220.58%22/%3E%3Crect%20x=%2256%22%20y=%22182%22%20width=%229%22%20height=%22310%22%20opacity=%220.71%22/%3E%3Crect%20x=%2276%22%20y=%22208%22%20width=%229%22%20height=%22260%22%20opacity=%220.67%22/%3E%3Crect%20x=%2296%22%20y=%22233%22%20width=%229%22%20height=%22208%22%20opacity=%220.62%22/%3E%3Crect%20x=%22116%22%20y=%22134%22%20width=%229%22%20height=%22407%22%20opacity=%220.79%22/%3E%3Crect%20x=%22136%22%20y=%22173%22%20width=%229%22%20height=%22330%22%20opacity=%220.72%22/%3E%3Crect%20x=%22156%22%20y=%22170%22%20width=%229%22%20height=%22335%22%20opacity=%220.73%22/%3E%3Crect%20x=%22176%22%20y=%22119%22%20width=%229%22%20height=%22437%22%20opacity=%220.81%22/%3E%3Crect%20x=%22196%22%20y=%22114%22%20width=%229%22%20height=%22447%22%20opacity=%220.82%22/%3E%3Crect%20x=%22216%22%20y=%22213%22%20width=%229%22%20height=%22249%22%20opacity=%220.66%22/%3E%3Crect%20x=%22236%22%20y=%22177%22%20width=%229%22%20height=%22322%22%20opacity=%220.72%22/%3E%3Crect%20x=%22256%22%20y=%22214%22%20width=%229%22%20height=%22247%22%20opacity=%220.66%22/%3E%3Crect%20x=%22276%22%20y=%22204%22%20width=%229%22%20height=%22267%22%20opacity=%220.67%22/%3E%3Crect%20x=%22296%22%20y=%22200%22%20width=%229%22%20height=%22276%22%20opacity=%220.68%22/%3E%3Crect%20x=%22316%22%20y=%22179%22%20width=%229%22%20height=%22317%22%20opacity=%220.71%22/%3E%3Crect%20x=%22336%22%20y=%22253%22%20width=%229%22%20height=%22169%22%20opacity=%220.59%22/%3E%3Crect%20x=%22356%22%20y=%22212%22%20width=%229%22%20height=%22252%22%20opacity=%220.66%22/%3E%3Crect%20x=%22376%22%20y=%22239%22%20width=%229%22%20height=%22196%22%20opacity=%220.61%22/%3E%3Crect%20x=%22396%22%20y=%22272%22%20width=%229%22%20height=%22131%22%20opacity=%220.56%22/%3E%3Crect%20x=%22416%22%20y=%22257%22%20width=%229%22%20height=%22161%22%20opacity=%220.58%22/%3E%3Crect%20x=%22436%22%20y=%22207%22%20width=%229%22%20height=%22261%22%20opacity=%220.67%22/%3E%3Crect%20x=%22456%22%20y=%22178%22%20width=%229%22%20height=%22320%22%20opacity=%220.72%22/%3E%3Crect%20x=%22476%22%20y=%22209%22%20width=%229%22%20height=%22257%22%20opacity=%220.66%22/%3E%3Crect%20x=%22496%22%20y=%22173%22%20width=%229%22%20height=%22329%22%20opacity=%220.72%22/%3E%3Crect%20x=%22516%22%20y=%22219%22%20width=%229%22%20height=%22237%22%20opacity=%220.65%22/%3E%3Crect%20x=%22536%22%20y=%22175%22%20width=%229%22%20height=%22325%22%20opacity=%220.72%22/%3E%3Crect%20x=%22556%22%20y=%22210%22%20width=%229%22%20height=%22254%22%20opacity=%220.66%22/%3E%3Crect%20x=%22576%22%20y=%22209%22%20width=%229%22%20height=%22258%22%20opacity=%220.66%22/%3E%3Crect%20x=%22596%22%20y=%22143%22%20width=%229%22%20height=%22388%22%20opacity=%220.77%22/%3E%3Crect%20x=%22616%22%20y=%22234%22%20width=%229%22%20height=%22208%22%20opacity=%220.62%22/%3E%3Crect%20x=%22636%22%20y=%22168%22%20width=%229%22%20height=%22339%22%20opacity=%220.73%22/%3E%3Crect%20x=%22656%22%20y=%22178%22%20width=%229%22%20height=%22319%22%20opacity=%220.72%22/%3E%3Crect%20x=%22676%22%20y=%22145%22%20width=%229%22%20height=%22385%22%20opacity=%220.77%22/%3E%3Crect%20x=%22696%22%20y=%22223%22%20width=%229%22%20height=%22230%22%20opacity=%220.64%22/%3E%3Crect%20x=%22716%22%20y=%22248%22%20width=%229%22%20height=%22180%22%20opacity=%220.60%22/%3E%3Crect%20x=%22736%22%20y=%22229%22%20width=%229%22%20height=%22217%22%20opacity=%220.63%22/%3E%3Crect%20x=%22756%22%20y=%22287%22%20width=%229%22%20height=%22102%22%20opacity=%220.53%22/%3E%3Crect%20x=%22776%22%20y=%22223%22%20width=%229%22%20height=%22228%22%20opacity=%220.64%22/%3E%3Crect%20x=%22796%22%20y=%22220%22%20width=%229%22%20height=%22234%22%20opacity=%220.65%22/%3E%3Crect%20x=%22816%22%20y=%22177%22%20width=%229%22%20height=%22322%22%20opacity=%220.72%22/%3E%3Crect%20x=%22836%22%20y=%22150%22%20width=%229%22%20height=%22375%22%20opacity=%220.76%22/%3E%3Crect%20x=%22856%22%20y=%22208%22%20width=%229%22%20height=%22260%22%20opacity=%220.67%22/%3E%3Crect%20x=%22876%22%20y=%22124%22%20width=%229%22%20height=%22428%22%20opacity=%220.81%22/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
}
.index__preview--wave img {
  display: none;
}

.index__body {
  grid-area: body;
  min-width: 0;
}
.index__name {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.25;
  transition: color 0.3s;
}
.index__desc {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 0.3rem;
}

.index__tag {
  grid-area: tag;
  justify-self: end;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.index__arrow {
  grid-area: arrow;
  display: none;
  color: var(--muted);
  font-size: 1.25rem;
  transform: translateX(-0.5rem);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}

.index__item a:hover .index__num,
.index__item a:hover .index__name {
  color: var(--cream);
}

@media (min-width: 48em) {
  .index__item a {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "num body tag arrow";
    align-items: center;
  }
  .index__thumb {
    display: none;
  }
  .index__arrow {
    display: block;
  }
  .index__item a:hover {
    padding-left: clamp(0.5rem, 2vw, 1.25rem);
  }
  .index__item a:hover .index__arrow {
    transform: translateX(0);
    opacity: 1;
    color: var(--cream);
  }
}

/* floating cursor preview (pointer devices only) */
.index__preview {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(240px, 24vw, 400px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  pointer-events: none;
  opacity: 0;
  z-index: 40;
  will-change: transform, opacity;
}
.index__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 47.99em) {
  .index__preview {
    display: none;
  }
}
@media (hover: none) {
  .index__preview {
    display: none;
  }
}

/* ---------- Project ---------- */

.project__grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.project__body {
  order: 1;
}
.meta {
  order: 2;
  align-self: start;
}
@media (min-width: 56em) {
  .project__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  }
  .meta {
    order: 1;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
  .project__body {
    order: 2;
  }
}

.meta dt {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.0625rem;
  color: var(--muted);
}
.meta dd {
  color: var(--text);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9792rem;
  line-height: 1.55;
}
.meta dd:last-child {
  margin-bottom: 0;
}

.project__block + .project__block {
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
}
.project__block h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--cream);
  margin-bottom: 0.85rem;
}
.project__block p {
  max-width: 62ch;
}

/* ---------- Galleries ---------- */

.gallery {
  margin-top: clamp(2.75rem, 7vh, 5rem);
}

.media {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-raise);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--frame {
  border: 1px solid var(--line-soft);
}

/* project 01 — rebranding: photo left, before/after mockups right.
   The mockups are transparent PNG-style renders, so they get no plate and
   keep their own proportion instead of being cropped into a box. */
.gallery--rebrand {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}
@media (min-width: 48em) {
  .gallery--rebrand {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}
.gallery--rebrand .media--main {
  aspect-ratio: 4 / 3;
}
.gallery--rebrand .stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5vw, 1rem);
}
/* The mockups sit in the lower part of a mostly transparent canvas
   (content box 318,442 1271×639 of 1920×1081) — cropped here so they fill
   the frame and need no plate behind them. */
.gallery--rebrand .stack .media--plain {
  position: relative;
  background: none;
  border: 0;
  aspect-ratio: 1271 / 639;
}
.gallery--rebrand .stack .media--plain img {
  position: absolute;
  width: 151.06%;
  max-width: none;
  height: auto;
  left: -25.02%;
  top: -69.17%;
  object-fit: fill;
}
.stack__arrow {
  text-align: center;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
}

/* project 02 — onboarding */
.gallery--onboarding {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 48em) {
  .gallery--onboarding {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}
.gallery--onboarding .stack {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.gallery--onboarding .stack .media {
  flex: 1;
  aspect-ratio: 16 / 9;
}

/* video links */
.video-link {
  display: block;
}
.video-link .media {
  aspect-ratio: 16 / 9;
}
.video-link .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 17, 0.18);
  transition: background 0.4s;
}
.video-link:hover .media::after {
  background: rgba(20, 19, 17, 0);
}
.video-link .media img {
  transition: transform 1.2s var(--ease-out);
}
.video-link:hover .media img {
  transform: scale(1.035);
}
/* bare triangle, as in the print portfolio — no circle, no plate */
.play-badge {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: clamp(3.25rem, 7vw, 5.25rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.5));
  transition: transform 0.45s var(--ease-out), opacity 0.4s;
}
.play-badge svg {
  width: 100%;
  height: 100%;
  fill: var(--cream);
}
.video-link:hover .play-badge {
  transform: scale(1.08);
  opacity: 0.9;
}
.video-caption {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--cream);
}
.video-caption .arr {
  display: inline-block;
  transition: transform 0.4s var(--ease-out);
}
.video-link:hover .video-caption .arr {
  transform: translate(0.2rem, -0.2rem);
}
.video-link[data-embed]:hover .video-caption .arr {
  transform: translateX(0.25rem);
}

/* inline player that replaces the facade on click */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-embed__fallback {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--muted);
}

/* project 03 — booths */
.gallery--booths {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.booth-row {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 48em) {
  .booth-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.booth-row .media {
  aspect-ratio: 3 / 2;
}

/* project 06 — seetal */
.gallery--seetal {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
@media (min-width: 40em) {
  .gallery--seetal {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery--seetal .media {
  aspect-ratio: 4 / 3;
}

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

.contact__title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--cream);
  font-size: clamp(2.75rem, 8.5vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
}
.contact__rule {
  margin-block: clamp(1.5rem, 3.5vh, 2.5rem);
  max-width: 22rem;
}
.contact__status {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
  text-wrap: pretty;
}
.contact__status em {
  font-style: normal;
  color: var(--cream);
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(1.25rem, 5vw, 4rem);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}
/* location is context, not a contact channel — lighter, no underline */
.contact__place {
  color: var(--muted);
  opacity: 0.7;
}

.contact__downloads {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: clamp(1.15rem, 3vh, 1.75rem);
  border-top: 1px solid var(--line-soft);
}
.contact__downloads p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 0.75rem;
}

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.5rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
