/* ------------------------------------------------------------------
   nehir kamaşak — graphic design portfolio
   Type + layout system rebuilt from the Readymag prototype.
   Canvas reference: 1024px wide, 40px page margins, 703px content column
   offset 129px from the content edge.
------------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --ink: rgba(0, 0, 0, 0.89);
  --ink-solid: #000000;
  --muted: #7a7a7a;
  --pill: rgba(0, 0, 0, 0.08);
  --pill-over: rgba(0, 0, 0, 0.2);
  --band-overlay: rgba(0, 0, 0, 0.24);

  --font: "Helvetica Neue", Helvetica, Inter, "Segoe UI", Arial, sans-serif;

  --page-max: 1240px;
  --page-pad: 40px;
  --col-offset: 0px;
  --col-width: none;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-solid);
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- layout */

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.col {
  margin-left: var(--col-offset);
  max-width: var(--col-width);
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: relative;
  z-index: 10;
  padding-top: 30px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 16px;
  font-weight: 500;
}

.nav a { transition: opacity 0.2s ease; }
.nav a:hover { opacity: 0.45; }
.nav a[aria-current="page"] { opacity: 0.45; }

.nav__left,
.nav__right { display: flex; gap: 24px; }

.nav__mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.nav--light,
.nav--light a { color: #fff; }

/* ------------------------------------------------------------------ home */

.home {
  height: 100svh;
  min-height: 460px;
  position: relative;
  overflow: hidden;
  background: #111;
}

.home__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 26%),
    linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 38%);
}

.home__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home__lockup {
  margin: auto 0;
  display: flex;
  justify-content: flex-end;
}

.home__name {
  margin: 0;
  color: #fff;
  font-size: 46px;
  line-height: 46px;
  font-weight: 700;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.home__name span { padding-left: 8px; }

.br-mobile { display: none; }

/* ---------------------------------------------------------- page heading */

.page-head { padding-top: 116px; }

.page-title {
  margin: 0;
  font-size: 46px;
  line-height: 48px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.6px;
  max-width: 760px;
}

.project-head {
  padding-top: 116px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 60px;
}

.project-head__meta { margin-top: 40px; }

.project-head__year {
  margin: 0;
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
  color: var(--ink-solid);
}

.project-head__disciplines {
  margin: 0;
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
  color: var(--muted);
  max-width: 520px;
}

.project-head__desc { font-size: 15px; line-height: 21px; font-weight: 400; }
.project-head__desc h2 {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 15px;
  font-weight: 700;
}
.project-head__desc p { margin: 0 0 14px; }
.project-head__desc p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- section */

.section { margin-top: 74px; }
.section:first-of-type { margin-top: 96px; }

.section__label {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 15px;
  font-weight: 700;
}

.note {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
  max-width: 700px;
}
.note p { margin: 0 0 14px; }
.note p:last-child { margin-bottom: 0; }

.caption {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
}

/* caption on the left, sound toggle on the right */
.media-foot {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.media-foot .caption { margin: 0; }
.media-foot .sound-toggle { margin-left: auto; }
.media-foot--center { justify-content: center; }
.media-foot--center .sound-toggle { margin: 0 auto; }

.sound-toggle {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: 14px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: -0.1px;
  color: var(--ink-solid);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sound-toggle:hover { border-color: rgba(0, 0, 0, 0.55); }
.sound-toggle[aria-pressed="true"] {
  background: var(--ink-solid);
  border-color: var(--ink-solid);
  color: #fff;
}
.sound-toggle[hidden] { display: none; }

.credits {
  margin: 30px 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--muted);
}
.credits span { display: block; }

/* ----------------------------------------------------------------- media */

.media { background: #f2f2f2; overflow: hidden; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }

.media--wide { aspect-ratio: 703 / 420; }
.media--16x9 { aspect-ratio: 16 / 9; background: #000; }
.media--contain { background: #fff; }
.media--contain img, .media--contain video { object-fit: contain; }
.media--tall { aspect-ratio: 223 / 420; }
.media--poster { aspect-ratio: 330 / 467; }
.media--merch { aspect-ratio: 3 / 4; }
.media--ai { aspect-ratio: 275 / 193; }
.media--square { aspect-ratio: 1 / 1; }
.media--clear { background: transparent; }   /* for PNG/WebP art with its own transparent margins */
.media--vertical { aspect-ratio: 9 / 16; }

.grid { display: grid; gap: 14px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid--edits { align-items: start; row-gap: 18px; }
.grid--edits .media { background: var(--bg); }
.grid--merch { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid--posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 43px; align-items: start; }
.grid--launch { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
/* square artwork beside a 9:16 video — column ratio keeps both the same height */
.grid--cover { grid-template-columns: minmax(0, 1fr) minmax(0, 0.5625fr); gap: 18px; align-items: start; }

/* ai-works block: two image columns plus a narrow caption column */
.ai-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 250px;
  gap: 14px 24px;
  align-items: start;
}
/* images always sit in the two image columns, whether or not there's a caption */
.ai-block > div:nth-of-type(odd)  { grid-column: 1; }
.ai-block > div:nth-of-type(even) { grid-column: 2; }
.ai-block .side-note {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: end;
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
  margin: 0;
}

/* on-set block: one tall image, two stacked, one tall video */
.onset {
  display: grid;
  grid-template-columns: 288fr 164fr 223fr;
  gap: 15px;
  align-items: start;
}
.onset__tall { aspect-ratio: 288 / 420; }
.onset__stack { display: grid; gap: 8px; }
.onset__stack .media { aspect-ratio: 164 / 206; }
.onset__video { aspect-ratio: 223 / 420; }

/* ------------------------------------------------------- selected works */

.bands { margin-top: 96px; }

.band {
  position: relative;
  display: block;
  aspect-ratio: 944 / 459;
  overflow: hidden;
  background: #111;
}

.band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.band:hover .band__img { transform: scale(1.035); }

.band__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.30) 38%, rgba(0,0,0,0) 68%),
    linear-gradient(to top, rgba(0,0,0,0.46) 0%, rgba(0,0,0,0) 28%),
    rgba(0, 0, 0, 0.1);
  transition: opacity 0.4s ease;
  opacity: 0.92;
}
.band:hover .band__overlay { opacity: 1; }

.band__title {
  position: absolute;
  left: 36px;
  top: 47%;
  transform: translateY(-50%);
  margin: 0;
  max-width: 440px;
  color: #fff;
  font-size: 32px;
  line-height: 34px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.band__tags {
  position: absolute;
  left: 36px;
  bottom: 28px;
  max-width: 62%;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--pill);
  font-size: 13px;
  line-height: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.tag--over { background: var(--pill-over); color: #fff; }

/* --------------------------------------------------------------- contact */

.contact {
  padding-top: 116px;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.contact__photo {
  aspect-ratio: 3 / 2;
  background: #f2f2f2;
  overflow: hidden;
}
.contact__photo img { width: 100%; height: 100%; object-fit: cover; }

.contact__intro {
  margin: 30px 0 44px;
  font-size: 15px;
  line-height: 21px;
  max-width: 440px;
}

.contact__intro p { margin: 0 0 14px; }
.contact__intro p:last-child { margin-bottom: 0; }

.contact__list { margin: 0; }
.contact__list dt {
  font-size: 15px;
  line-height: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact__list dd {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 20px;
}
.contact__list dd a { border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
.contact__list dd a:hover { border-bottom-color: transparent; }
.contact__list dd + dd { margin-top: -16px; }
.contact__list dd .meta { color: var(--muted); margin-left: 8px; }

.placeholder { color: var(--muted); }

/* ---------------------------------------------------------------- footer */

.footer {
  margin-top: 120px;
  padding: 26px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  line-height: 17px;
  color: var(--muted);
}
.footer a:hover { color: var(--ink-solid); }

/* ----------------------------------------------- project prev / next */

.project-nav {
  margin-top: 104px;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 24px;
  font-size: 15px;
  line-height: 20px;
}

.project-nav a { transition: opacity 0.2s ease; }
.project-nav a:hover { opacity: 0.45; }

.project-nav__prev { justify-self: start; text-align: left; max-width: 320px; }
.project-nav__next { justify-self: end; text-align: right; max-width: 320px; }
.project-nav__index { justify-self: center; font-weight: 700; white-space: nowrap; }

.project-nav__arrow {
  display: inline-block;
  font-weight: 700;
}
.project-nav__prev .project-nav__arrow { margin-right: 10px; }
.project-nav__next .project-nav__arrow { margin-left: 10px; }

/* ----------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .nav__mark { position: static; transform: none; }
  .nav { flex-wrap: wrap; }
  .project-head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .project-head__desc { margin-top: 36px; max-width: 520px; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact__photo { max-width: 560px; }
}

@media (max-width: 760px) {
  :root { --page-pad: 20px; }

  .nav { gap: 10px 18px; padding-top: 20px; font-size: 15px; line-height: 15px; }
  .nav__left, .nav__right { gap: 18px; }

  .page-head, .project-head, .contact { padding-top: 64px; }

  .project-head__disciplines { max-width: none; }
  .bands { margin-top: 56px; }

  .page-title { font-size: 32px; line-height: 34px; }
  .home__name { font-size: 30px; line-height: 30px; }

  .section { margin-top: 56px; }
  .section:first-of-type { margin-top: 64px; }

  .ai-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-block .side-note { grid-column: 1 / -1; grid-row: auto; }

  .onset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onset__tall { aspect-ratio: 288 / 420; }
  .onset__video { aspect-ratio: 223 / 420; }

  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .media-foot { flex-direction: column; gap: 14px; align-items: flex-start; }
  .grid--launch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--cover { grid-template-columns: minmax(0, 1fr); }
  .grid--cover .media--vertical { max-width: 62%; }
  .grid--posters { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid--merch { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

  .band { aspect-ratio: 4 / 3; }
  .band__title { font-size: 24px; line-height: 26px; left: 20px; max-width: 76%; }
  .band__tags { left: 20px; bottom: 18px; max-width: calc(100% - 40px); }

  .contact__photo { max-width: none; }

  .footer { flex-direction: column; gap: 6px; margin-top: 80px; }

  .project-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 72px;
  }
  .project-nav__prev,
  .project-nav__next,
  .project-nav__index { justify-self: start; text-align: left; max-width: none; }
  .project-nav__index { order: -1; }
}

/* home, phones only (touchscreen + narrow) — never applies on a desktop browser */
@media (max-width: 760px) and (hover: none) and (pointer: coarse) {
  .br-mobile { display: inline; }
  .nav--home { flex-wrap: nowrap; line-height: 19px; }
  .nav--home .nav__left { text-align: left; }
  .nav--home .nav__right { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }
  .home__name { text-align: right; white-space: normal; font-size: 40px; line-height: 40px; }
  .home__video { object-position: 32% center; }
}

@media (prefers-reduced-motion: reduce) {
  .band__img { transition: none; }
}
