/* Nöron signal opening. Homepage header and hero only; load after base/world. */
.header {
  background: #151319;
  border-bottom: 1px solid #39353f;
  color: #f5f1ea;
  gap: 32px;
}

.header .logo img {
  width: 180px;
  height: auto;
}

.header nav {
  gap: 32px;
}

.header nav a {
  color: #c2bdc8;
  font-size: 14px;
}

.header nav a:hover {
  color: #fffdf9;
}

.header > .customer {
  min-height: 44px;
  padding: 10px 16px;
  gap: 24px;
  border: 1px solid #706a78;
  border-radius: 2px;
  background: transparent;
  color: #f5f1ea;
}

.header > .customer:hover {
  background: #f5f1ea;
  color: #151319;
  border-color: #f5f1ea;
}

.header .menu-toggle {
  border-color: #706a78;
  border-radius: 2px;
}

.header .menu-toggle span {
  background: #f5f1ea;
}

.mobile-menu {
  background: #151319;
  color: #f5f1ea;
}

.mobile-menu a {
  border-color: #39353f;
}

.mobile-menu a span {
  color: #a29dab;
}

.header a:focus-visible,
.header button:focus-visible,
.mobile-menu a:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible {
  outline-color: #ff8256;
  outline-offset: 5px;
}

.hero.section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px 64px;
  padding: calc(var(--header) + 88px) var(--gutter) 0;
  background: #151319;
  color: #f5f1ea;
}

.hero.section::before {
  content: "";
  position: absolute;
  top: calc(var(--header) + 32px);
  right: var(--gutter);
  left: var(--gutter);
  height: 1px;
  background: #39353f;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c2bdc8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .075em;
}

.hero .eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  flex: 0 0 24px;
  background: #ff5a28;
}

.hero-copy h1 {
  max-width: none;
  margin: 32px 0 28px;
  font-size: clamp(60px, 6.1vw, 88px);
  font-weight: 500;
  line-height: 1.015;
  letter-spacing: -.045em;
  text-wrap: balance;
  color: #f5f1ea;
}

.hero-copy h1 > span {
  color: #ff5a28;
}

/* The sentence becomes lighter as complexity resolves into signal. */
.hero-copy h1 {
  font-weight: 350;
}

.hero-copy h1::first-line {
  font-weight: 650;
}

.hero-copy > p {
  max-width: 35ch;
  color: #bdb7c5;
  font-size: 18px;
  line-height: 1.65;
}

.hero .hero-actions {
  margin-top: 32px;
  gap: 24px;
}

.hero .primary {
  min-height: 52px;
  padding: 14px 22px;
  gap: 28px;
  border: 1px solid #ff5a28;
  border-radius: 2px;
  background: #ff5a28;
  color: #151319;
  font-size: 15px;
  font-weight: 600;
}

.hero .primary:hover {
  background: #ff6e42;
  border-color: #ff6e42;
  color: #151319;
}

.hero .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 16px;
  color: #f5f1ea;
  font-size: 14px;
}

.hero .text-link:hover {
  color: #ff8256;
}

.hero .hero-note {
  margin-top: 16px;
  color: #a29dab;
  font-size: 12px;
}

.hero .cinema {
  position: relative;
  width: 100%;
  max-width: none;
  min-width: 0;
  align-self: center;
  overflow: visible;
  border: 1px solid #57515f;
  border-radius: 0;
  background: #1c1921;
  color: #f5f1ea;
}

.hero .cinema::before {
  content: "";
  position: absolute;
  inset: -12px -12px auto auto;
  width: 48px;
  height: 48px;
  border-top: 1px solid #8b8393;
  border-right: 1px solid #8b8393;
  pointer-events: none;
}

.hero .cinema-picture {
  aspect-ratio: 16 / 9;
  background: #1c1921;
}

/* Eight real chapters of the film, with progress supplied by the video clock. */
.hero .film-strip {
  --scene-progress: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  padding: 12px;
  border-top: 1px solid #57515f;
  background: #151319;
}

.hero .film-strip > button {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #211d26;
  opacity: .65;
  filter: saturate(.2);
}

.hero .film-strip > button > span {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url("assets/film-sahneleri.webp");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  background-position: var(--frame-position, 0 0);
  pointer-events: none;
}

.hero .film-strip > button:hover:not(:disabled),
.hero .film-strip > button:focus-visible,
.hero .film-strip > button.current:focus-visible {
  opacity: 1;
  filter: none;
  outline: 2px solid #f5f1ea;
  outline-offset: 2px;
}

/* The split hero is narrowest here; two rows preserve 44px hit areas. */
@media (min-width: 901px) and (max-width: 1000px) {
  .hero .film-strip {
    grid-template-columns: repeat(4, minmax(44px, 1fr));
  }
}

.hero .film-strip > button:nth-child(2) { --frame-position: 33.333333% 0; }
.hero .film-strip > button:nth-child(3) { --frame-position: 66.666667% 0; }
.hero .film-strip > button:nth-child(4) { --frame-position: 100% 0; }
.hero .film-strip > button:nth-child(5) { --frame-position: 0 100%; }
.hero .film-strip > button:nth-child(6) { --frame-position: 33.333333% 100%; }
.hero .film-strip > button:nth-child(7) { --frame-position: 66.666667% 100%; }
.hero .film-strip > button:nth-child(8) { --frame-position: 100% 100%; }

.hero .film-strip > button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #bdb7c5;
  transform: scaleX(1);
  transform-origin: left;
}

.hero .film-strip > button.current {
  outline: 1px solid #ff8256;
  outline-offset: 2px;
  opacity: 1;
  filter: none;
}

.hero .film-strip > button.current::after {
  background: #ff5a28;
  transform: scaleX(clamp(0, var(--scene-progress), 1));
}

.hero .film-strip > button.current ~ button {
  opacity: .35;
}

.hero .film-strip > button.current ~ button::after {
  transform: scaleX(0);
}

.hero .cinema-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-height: 0;
  padding: 20px;
  border-top: 1px solid #57515f;
}

.hero .scene-note {
  color: #f5f1ea;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .075em;
}

.hero .scene-note span {
  margin-top: 6px;
  color: #bdb7c5;
  font-size: 12px;
  letter-spacing: 0;
}

.hero .scene-note small {
  display: block;
  margin-top: 4px;
  color: #a29dab;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
}

.hero .cinema-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: auto;
  gap: 8px;
  min-width: 0;
}

.hero .cinema-controls button {
  min-width: 0;
  min-height: 44px;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #706a78;
  border-radius: 2px;
  background: transparent;
  color: #f5f1ea;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  text-align: left;
}

.hero .cinema-controls button:hover:not(:disabled) {
  background: #302b36;
  border-color: #bdb7c5;
}

.hero .cinema-controls button:disabled {
  color: #a29dab;
}

.hero .portal-entry {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 0;
  padding: 32px 0;
  border-top: 1px solid #57515f;
  border-radius: 0;
  background: transparent;
  color: #f5f1ea;
}

.hero .portal-entry-copy {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 32px;
  flex: 1 1 auto;
  min-width: 0;
}

.hero .portal-entry h2 {
  margin: 0;
  color: #f5f1ea;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.hero .portal-entry p {
  max-width: 48ch;
  margin: 0;
  color: #bdb7c5;
  font-size: 15px;
  line-height: 1.6;
}

.hero .portal-entry-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 28px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f5f1ea;
  font-size: 18px;
  font-weight: 500;
}

.hero .portal-entry-link span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #f5f1ea;
  color: #151319;
  font-size: 24px;
}

.hero .portal-entry-link:hover {
  background: transparent;
  color: #ff8256;
}

.hero .portal-entry-link:hover span {
  background: #ff5a28;
}

@media (min-width: 1440px) {
  .hero .cinema-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    padding: 20px;
  }

  .hero .cinema-controls {
    grid-template-columns: 1fr;
    width: 148px;
  }
}

@media (max-width: 1100px) {
  .hero.section {
    gap: 48px 40px;
    padding-top: calc(var(--header) + 72px);
  }

  .hero-copy h1 {
    font-size: clamp(56px, 6.2vw, 68px);
  }

  .hero .hero-actions {
    gap: 12px 20px;
  }

  .header nav {
    gap: 20px;
  }

  .hero .portal-entry-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .hero.section {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: calc(var(--header) + 64px);
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(60px, 8.5vw, 76px);
  }

  .hero-copy > p {
    max-width: 44ch;
  }

  .hero .cinema-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
  }

  .hero .cinema-controls {
    grid-template-columns: 1fr;
    width: 148px;
  }

  .header {
    gap: 20px;
  }

  .header .logo img {
    width: 150px;
  }

  .header nav {
    gap: 16px;
  }

  .header nav a {
    font-size: 13px;
  }

  .header > .customer {
    padding-inline: 12px;
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .header {
    gap: 8px;
    padding-inline: 5%;
  }

  .header .logo {
    min-width: 0;
    margin-right: auto;
  }

  .header .logo img {
    width: clamp(112px, 32vw, 148px);
    max-width: 100%;
  }

  .header > .customer {
    display: inline-flex;
    flex-shrink: 0;
    min-height: 44px;
    padding: 9px 10px;
    gap: 8px;
    font-size: 12px;
  }

  .header .menu-toggle {
    flex: 0 0 44px;
  }

  .hero.section {
    gap: 40px;
    padding-top: calc(var(--header) + 48px);
  }

  .hero.section::before {
    top: calc(var(--header) + 20px);
  }

  .hero-copy h1 {
    max-width: 12ch;
    margin: 28px 0 24px;
    font-size: clamp(46px, 9.1vw, 66px);
    line-height: 1.025;
  }

  .hero .eyebrow {
    gap: 10px;
    font-size: 11px;
    letter-spacing: .05em;
  }

  .hero .eyebrow::before {
    width: 20px;
    flex-basis: 20px;
  }

  .hero-copy > p {
    max-width: 35ch;
    font-size: 17px;
    line-height: 1.6;
  }

  .hero .hero-actions {
    margin-top: 28px;
    gap: 16px 24px;
  }

  .hero .primary {
    padding-inline: 18px;
    gap: 24px;
  }

  .hero .cinema {
    max-width: 390px;
    justify-self: center;
  }

  .hero .cinema-picture {
    aspect-ratio: 9 / 16;
  }

  .hero .film-strip {
    gap: 4px;
    padding: 16px;
  }

  .hero .film-strip > button {
    min-width: 0;
    min-height: 0;
    height: 4px;
    cursor: default;
    pointer-events: none;
    aspect-ratio: auto;
    background: #bdb7c5;
    opacity: 1;
    filter: none;
  }

  .hero .film-strip > button > span {
    display: none;
  }

  .hero .film-strip > button.current,
  .hero .film-strip > button.current ~ button {
    outline: none;
    background: #49424f;
    opacity: 1;
  }

  .hero .film-strip > button::after {
    height: 100%;
  }

  .hero .cinema-bottom {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  .hero .cinema-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero .cinema-controls button {
    padding: 9px 10px;
    gap: 6px;
  }

  .hero .portal-entry {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 28px 0 32px;
  }

  .hero .portal-entry-copy {
    gap: 12px;
  }

  .hero .portal-entry h2 {
    font-size: 28px;
  }

  .hero .portal-entry p {
    max-width: 38ch;
  }

  .hero .portal-entry-link {
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero-copy h1 {
    font-size: 44px;
  }

  .hero .hero-actions {
    gap: 10px;
  }

  .hero .hero-note {
    font-size: 11px;
  }

  .hero .cinema-bottom {
    padding: 14px;
  }

  .hero .cinema-controls button {
    padding-inline: 8px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header *,
  .mobile-menu *,
  .hero *,
  .hero::before,
  .hero ::before,
  .hero ::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
