/* ==========================================================
   OZAN OZKAN — STABLE EDITORIAL IMAGE SYSTEM
   Only custom Nova sections. Never touches original site figures.
   ========================================================== */

:root {
  --oz-ease: cubic-bezier(.16,1,.3,1);
}

/* ----------------------------------------------------------
   HOME
   ---------------------------------------------------------- */

.oz-nova-shell {
  padding: 7vw 4vw 8vw;
  background: #f4f0e8;
  color: #171512;
}

.oz-nova-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.oz-nova-head .eyebrow,
.oz-nova-story-head .eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .54;
}

.oz-nova-head h2,
.oz-nova-story-head h2 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px,5vw,78px);
  line-height: .94;
  letter-spacing: -.052em;
  font-weight: 400;
}

.oz-nova-head p,
.oz-nova-story-head p {
  max-width: 340px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  opacity: .56;
  text-align: right;
}

/*
  GRID MATH:
  ROW 1 = 7 + 5
  ROW 2 = 4 + 4 + 4
  ROW 3 = 5 + 7
  ROW 4 = 3 + 6 + 3

  No holes.
*/

.oz-nova-grid {
  display: grid;
  grid-template-columns:
    repeat(12,minmax(0,1fr));
  grid-auto-rows: 82px;
  grid-auto-flow: row dense;
  gap: 10px;
}

.oz-nova-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  background: #d8d2c8;
  isolation: isolate;
}

.oz-nova-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 6;
}

.oz-nova-card:nth-child(2) {
  grid-column: span 5;
  grid-row: span 6;
}

.oz-nova-card:nth-child(3) {
  grid-column: span 4;
  grid-row: span 4;
}

.oz-nova-card:nth-child(4) {
  grid-column: span 4;
  grid-row: span 4;
}

.oz-nova-card:nth-child(5) {
  grid-column: span 4;
  grid-row: span 4;
}

.oz-nova-card:nth-child(6) {
  grid-column: span 5;
  grid-row: span 5;
}

.oz-nova-card:nth-child(7) {
  grid-column: span 7;
  grid-row: span 5;
}

.oz-nova-card:nth-child(8) {
  grid-column: span 3;
  grid-row: span 4;
}

.oz-nova-card:nth-child(9) {
  grid-column: span 6;
  grid-row: span 4;
}

.oz-nova-card:nth-child(10) {
  grid-column: span 3;
  grid-row: span 4;
}

.oz-nova-card > img,
.oz-nova-story-shot > img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  /* IMPORTANT:
     no scale
     no parallax
     no pointer movement
  */
  transform: none !important;

  transition:
    filter .6s ease;

  filter:
    saturate(.96)
    contrast(1.015);
}

/* Crop tuning per photo */

.oz-nova-card:nth-child(1) > img {
  object-position: center 35%;
}

.oz-nova-card:nth-child(2) > img {
  object-position: center center;
}

.oz-nova-card:nth-child(3) > img {
  object-position: center 32%;
}

.oz-nova-card:nth-child(4) > img {
  object-position: center 40%;
}

.oz-nova-card:nth-child(5) > img {
  object-position: center center;
}

.oz-nova-card:nth-child(6) > img {
  object-position: center 32%;
}

.oz-nova-card:nth-child(7) > img {
  object-position: center center;
}

.oz-nova-card:nth-child(8) > img {
  object-position: center 35%;
}

.oz-nova-card:nth-child(9) > img {
  object-position: center center;
}

.oz-nova-card:nth-child(10) > img {
  object-position: center 30%;
}


/* ----------------------------------------------------------
   CAPTIONS
   ---------------------------------------------------------- */

.oz-nova-card::after,
.oz-nova-story-shot::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      transparent 55%,
      rgba(0,0,0,.48) 100%
    );

  pointer-events: none;
}

.oz-nova-card figcaption,
.oz-nova-story-shot figcaption {
  position: absolute;

  left: 17px;
  right: 17px;
  bottom: 15px;

  z-index: 3;

  color: #fff;

  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;

  opacity: .88;
}

.oz-nova-card figcaption small {
  display: block;

  margin-bottom: 5px;

  font-size: 7px;
  letter-spacing: .19em;

  opacity: .64;
}


/* ----------------------------------------------------------
   SAFE REVEAL
   Only container opacity / vertical entrance.
   Images themselves NEVER transformed.
   ---------------------------------------------------------- */

.oz-safe-reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity .9s var(--oz-ease),
    transform 1s var(--oz-ease);

  transition-delay:
    var(--oz-delay,0ms);
}

.oz-safe-reveal.oz-inview {
  opacity: 1;
  transform: translateY(0);
}


/* Aldena-style image curtain */

.oz-nova-card::before,
.oz-nova-story-shot::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 4;

  background: #e9e3d9;

  transform: translateY(0);

  transition:
    transform 1.05s var(--oz-ease);

  transition-delay:
    calc(
      var(--oz-delay,0ms) + 80ms
    );

  pointer-events: none;
}

.oz-nova-story-shot::before {
  background: #171613;
}

.oz-nova-card.oz-inview::before,
.oz-nova-story-shot.oz-inview::before {
  transform: translateY(-101%);
}


/* ----------------------------------------------------------
   HIKAYEM
   ---------------------------------------------------------- */

.oz-nova-story {
  padding: 7vw 4vw 8vw;

  background:
    #10100e;

  color:
    #f2eee5;
}

.oz-nova-story-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;

  align-items: end;

  margin-bottom: 42px;
}

/*
  Story grid:
  ROW 1 = 7 + 5
  ROW 2 = 5 + 7
  ROW 3 = 7 + 5
*/

.oz-nova-story-grid {
  display: grid;

  grid-template-columns:
    repeat(12,minmax(0,1fr));

  grid-auto-rows:
    88px;

  gap:
    10px;
}

.oz-nova-story-shot {
  position: relative;

  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  margin: 0;

  overflow: hidden;

  background:
    #201f1c;

  isolation:
    isolate;
}

.oz-nova-story-shot:nth-child(1) {
  grid-column: span 7;
  grid-row: span 6;
}

.oz-nova-story-shot:nth-child(2) {
  grid-column: span 5;
  grid-row: span 6;
}

.oz-nova-story-shot:nth-child(3) {
  grid-column: span 5;
  grid-row: span 5;
}

.oz-nova-story-shot:nth-child(4) {
  grid-column: span 7;
  grid-row: span 5;
}

.oz-nova-story-shot:nth-child(5) {
  grid-column: span 7;
  grid-row: span 6;
}

.oz-nova-story-shot:nth-child(6) {
  grid-column: span 5;
  grid-row: span 6;
}


/* Story crop tuning */

.oz-nova-story-shot:nth-child(1) > img {
  object-position: center center;
}

.oz-nova-story-shot:nth-child(2) > img {
  object-position: center 35%;
}

.oz-nova-story-shot:nth-child(3) > img {
  object-position: center 30%;
}

.oz-nova-story-shot:nth-child(4) > img {
  object-position: center 35%;
}

.oz-nova-story-shot:nth-child(5) > img {
  object-position: center center;
}

.oz-nova-story-shot:nth-child(6) > img {
  object-position: center center;
}


/* ----------------------------------------------------------
   HOVER
   No scaling.
   ---------------------------------------------------------- */

.oz-nova-card:hover > img,
.oz-nova-story-shot:hover > img {
  filter:
    saturate(1.03)
    contrast(1.035);
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 900px) {

  .oz-nova-shell,
  .oz-nova-story {
    padding:
      60px 22px 70px;
  }

  .oz-nova-head,
  .oz-nova-story-head {
    grid-template-columns:
      1fr;

    gap:
      18px;
  }

  .oz-nova-head p,
  .oz-nova-story-head p {
    max-width:
      520px;

    text-align:
      left;
  }

  .oz-nova-grid,
  .oz-nova-story-grid {
    grid-template-columns:
      repeat(2,minmax(0,1fr));

    grid-auto-rows:
      270px;

    gap:
      8px;
  }

  .oz-nova-card:nth-child(n),
  .oz-nova-story-shot:nth-child(n) {
    grid-column:
      span 1;

    grid-row:
      span 1;
  }

  .oz-nova-card:nth-child(1),
  .oz-nova-story-shot:nth-child(1) {
    grid-column:
      span 2;

    grid-row:
      span 2;
  }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 560px) {

  .oz-nova-shell,
  .oz-nova-story {
    padding:
      52px 15px 62px;
  }

  .oz-nova-grid,
  .oz-nova-story-grid {
    display:
      block;
  }

  .oz-nova-card,
  .oz-nova-story-shot,
  .oz-nova-card:nth-child(n),
  .oz-nova-story-shot:nth-child(n) {
    width:
      100%;

    height:
      430px;

    margin:
      0 0 8px;
  }

  .oz-nova-card:first-child,
  .oz-nova-story-shot:first-child {
    height:
      540px;
  }

}


/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

@media
(prefers-reduced-motion: reduce) {

  .oz-safe-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .oz-nova-card::before,
  .oz-nova-story-shot::before {
    display: none !important;
  }

}

/* ==========================================================
   INSET HOVER EXCEPTION
   These cards use the new hover frame instead of reveal curtain.
   ========================================================== */

.oz-nova-grid
.oz-inset-hover::before {
  transform: none !important;
}

