html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0d0e0e;
}

.preview-reveal {
  opacity: 0;
  transform: translateY(42px);
  filter: blur(14px);
  transition:
    opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.avesta-founders {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100vh;
  padding: clamp(7rem, 12vw, 11rem) clamp(1rem, 4vw, 4rem);
  color: #f8f1e6;
  --avesta-backdrop-image: url("/public/avesta-founders/memory-orchard.jpg");
  background:
    radial-gradient(circle at 18% 16%, rgba(176, 45, 32, 0.28), transparent 28rem),
    radial-gradient(circle at 82% 34%, rgba(35, 108, 118, 0.22), transparent 26rem),
    linear-gradient(180deg, #11100e 0%, #1c1713 46%, #0d0e0e 100%);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

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

.avesta-founders__backdrop {
  position: absolute;
  inset: -8%;
  z-index: -4;
  background:
    linear-gradient(rgba(13, 14, 14, 0.38), rgba(13, 14, 14, 0.78)),
    var(--avesta-backdrop-image) center / cover;
  filter: grayscale(0.55) contrast(1.08) saturate(0.82);
  opacity: 0.28;
  transform: translateZ(0);
  will-change: transform;
}

.avesta-founders__grain,
.avesta-founders__vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.avesta-founders__grain {
  z-index: 4;
  opacity: 0.17;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 13% 26%, rgba(255, 255, 255, 0.54) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px),
    radial-gradient(circle at 38% 81%, rgba(0, 0, 0, 0.46) 0 1px, transparent 1px);
  background-size: 4px 4px, 7px 7px, 5px 5px;
}

.avesta-founders__vignette {
  z-index: 3;
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.48) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.4));
}

.avesta-topbar,
.avesta-logo-hero,
.avesta-founders__intro,
.avesta-founders__chapters,
.avesta-founders__collage,
.avesta-culture,
.avesta-events,
.avesta-founders__timeline,
.avesta-founders__closing {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.avesta-topbar {
  position: sticky;
  top: 1rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(248, 241, 230, 0.18);
  border-radius: 8px;
  background: rgba(13, 14, 14, 0.72);
  backdrop-filter: blur(18px);
}

.avesta-topbar a {
  color: inherit;
  text-decoration: none;
}

.avesta-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.avesta-topbar__brand img {
  width: 3.1rem;
  height: 3.1rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(248, 241, 230, 0.94);
  padding: 0.28rem;
}

.avesta-topbar__brand span {
  display: grid;
  min-width: 0;
}

.avesta-topbar__brand strong,
.avesta-topbar__brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avesta-topbar__brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.avesta-topbar__brand small {
  color: rgba(248, 241, 230, 0.6);
  font-size: 0.72rem;
}

.avesta-topbar__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.avesta-topbar__links a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: rgba(248, 241, 230, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.avesta-topbar__links a:hover {
  color: #fff8ed;
  background: rgba(248, 241, 230, 0.1);
}

.avesta-logo-hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  grid-template-columns: minmax(12rem, 24rem) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.avesta-logo-hero__mark {
  position: relative;
}

.avesta-logo-hero__mark::before {
  content: "";
  position: absolute;
  inset: -18%;
  border: 1px solid rgba(216, 168, 95, 0.22);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.avesta-logo-hero__mark img {
  position: relative;
  display: block;
  width: min(100%, 23rem);
  margin-inline: auto;
  border-radius: 50%;
  background: rgba(248, 241, 230, 0.94);
  padding: clamp(1rem, 2.4vw, 2rem);
  box-shadow: 0 2.5rem 6rem rgba(0, 0, 0, 0.36);
}

.avesta-logo-hero h1,
.avesta-section-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 0.94;
}

.avesta-logo-hero h1 {
  max-width: 900px;
  font-size: clamp(3.2rem, 8.2vw, 7.8rem);
}

.avesta-logo-hero p,
.avesta-section-heading p {
  max-width: 760px;
  margin: 1.6rem 0 0;
  color: rgba(248, 241, 230, 0.76);
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  line-height: 1.75;
}

.avesta-founders__intro {
  min-height: 76vh;
  display: grid;
  align-items: end;
  padding-bottom: clamp(3rem, 8vw, 7rem);
}

.avesta-founders__intro-copy {
  max-width: 860px;
}

.avesta-founders__kicker,
.avesta-chapter span {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: #d8a85f;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.avesta-founders h2,
.avesta-founders h1,
.avesta-founders h3,
.avesta-founders p {
  margin: 0;
}

.avesta-founders h2 {
  max-width: 920px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 500;
  line-height: 0.92;
}

.avesta-founders__intro p {
  max-width: 720px;
  margin-top: 1.8rem;
  color: rgba(248, 241, 230, 0.78);
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  line-height: 1.75;
}

.avesta-founders__chapters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.8rem);
  padding-block: clamp(3rem, 7vw, 7rem);
}

.avesta-chapter {
  border-top: 1px solid rgba(248, 241, 230, 0.22);
  padding-top: 1.4rem;
}

.avesta-chapter h3,
.avesta-timeline-card h3,
.avesta-founders__closing h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

.avesta-chapter h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.4vw, 3.45rem);
  line-height: 1;
}

.avesta-chapter p,
.avesta-timeline-card p,
.avesta-founders__closing p,
.avesta-memory p {
  color: rgba(248, 241, 230, 0.72);
  font-size: 0.98rem;
  line-height: 1.75;
}

.avesta-founders__collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: start;
  padding-block: clamp(3rem, 9vw, 9rem);
}

.avesta-memory {
  position: relative;
  margin: 0;
  transform: translateZ(0);
  will-change: transform, opacity, filter;
}

.avesta-memory:nth-child(1) {
  grid-column: 1 / span 5;
}

.avesta-memory:nth-child(2) {
  grid-column: 8 / span 4;
  margin-top: 7rem;
}

.avesta-memory:nth-child(3) {
  grid-column: 4 / span 5;
  margin-top: -2rem;
}

.avesta-memory:nth-child(4) {
  grid-column: 10 / span 3;
  margin-top: 4rem;
}

.avesta-memory:nth-child(5) {
  grid-column: 2 / span 3;
  margin-top: -1rem;
}

.avesta-memory:nth-child(6) {
  grid-column: 6 / span 5;
  margin-top: 5rem;
}

.avesta-memory:nth-child(7) {
  grid-column: 3 / span 5;
  margin-top: 3rem;
}

.avesta-memory__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(248, 241, 230, 0.24);
  border-radius: 6px;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.34);
  background: #17110d;
}

.avesta-memory__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(circle at 50% 45%, transparent 46%, rgba(0, 0, 0, 0.28));
  mix-blend-mode: soft-light;
}

.avesta-memory img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--image-position, center center);
  transform-origin: center;
  filter: saturate(0.92) contrast(1.02);
  will-change: transform;
}

.avesta-memory--mono img {
  filter: grayscale(0.85) contrast(1.12) sepia(0.16);
  transition: filter 1.4s ease;
}

.avesta-memory--mono:hover img {
  filter: grayscale(0.12) contrast(1.04) sepia(0);
}

.avesta-memory--warm img {
  filter: sepia(0.22) saturate(0.98) contrast(1.04);
}

.avesta-memory__meta,
.avesta-memory__year {
  position: absolute;
  z-index: 2;
  color: rgba(248, 241, 230, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.avesta-memory__meta {
  left: 1rem;
  top: 0.9rem;
}

.avesta-memory__year {
  right: 1rem;
  bottom: 0.9rem;
}

.avesta-memory__handwritten {
  position: absolute;
  z-index: 3;
  right: -0.6rem;
  bottom: 5.3rem;
  max-width: 14rem;
  color: #f4d9a7;
  font-family: "Bradley Hand", "Segoe Print", cursive;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.05;
  text-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.52);
}

.avesta-memory p {
  margin-top: 1rem;
}

.avesta-culture,
.avesta-events {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.avesta-section-heading {
  max-width: 950px;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.avesta-section-heading h2 {
  max-width: 940px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.avesta-culture__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(248, 241, 230, 0.18);
  background: rgba(248, 241, 230, 0.14);
}

.avesta-culture-item {
  min-height: 21rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background:
    linear-gradient(180deg, rgba(248, 241, 230, 0.055), transparent),
    rgba(15, 15, 14, 0.82);
}

.avesta-culture-item h3,
.avesta-event h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1;
}

.avesta-culture-item h3 {
  color: #f8f1e6;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

.avesta-culture-item p {
  margin-top: 1.2rem;
  color: rgba(248, 241, 230, 0.7);
  font-size: 0.98rem;
  line-height: 1.75;
}

.avesta-events__list {
  display: grid;
  gap: 1px;
  border-top: 1px solid rgba(248, 241, 230, 0.2);
}

.avesta-event {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  padding: clamp(1.4rem, 3.8vw, 3rem) 0;
  border-bottom: 1px solid rgba(248, 241, 230, 0.18);
}

.avesta-event time {
  color: #d8a85f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.avesta-event h3 {
  max-width: 720px;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
}

.avesta-event span {
  display: block;
  margin-top: 0.6rem;
  color: #75aeb3;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.avesta-event p {
  max-width: 760px;
  margin-top: 1rem;
  color: rgba(248, 241, 230, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.avesta-error {
  display: grid;
  min-height: 100vh;
  place-content: center;
}

.avesta-error h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
}

.avesta-founders__timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(248, 241, 230, 0.18);
  background: rgba(248, 241, 230, 0.16);
}

.avesta-timeline-card {
  min-height: 18rem;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  background: rgba(16, 14, 12, 0.78);
  backdrop-filter: blur(18px);
}

.avesta-timeline-card time {
  color: #75aeb3;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.avesta-timeline-card h3 {
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 0.98;
}

.avesta-founders__closing {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(6rem, 11vw, 10rem) clamp(2rem, 5vw, 4rem);
}

.avesta-founders__closing img {
  width: 100%;
  border-radius: 50%;
  background: rgba(248, 241, 230, 0.92);
  padding: 1rem;
}

.avesta-founders__closing h3 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
}

.avesta-founders__closing p {
  max-width: 760px;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

@media (max-width: 840px) {
  .avesta-founders {
    padding-inline: 1rem;
  }

  .avesta-topbar {
    position: relative;
    top: auto;
    align-items: flex-start;
  }

  .avesta-topbar__links {
    display: none;
  }

  .avesta-logo-hero {
    min-height: 82vh;
    grid-template-columns: 1fr;
    gap: 2.6rem;
    align-items: end;
  }

  .avesta-logo-hero__mark img {
    width: min(72vw, 18rem);
  }

  .avesta-founders__intro {
    min-height: 72vh;
  }

  .avesta-founders__chapters,
  .avesta-culture__grid,
  .avesta-founders__timeline,
  .avesta-founders__closing {
    grid-template-columns: 1fr;
  }

  .avesta-founders__collage {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .avesta-memory:nth-child(n) {
    grid-column: auto;
    margin-top: auto;
  
  }

  .avesta-memory:nth-child(even) {
    width: auto;
    margin-left: auto;
  }

  .avesta-memory:nth-child(odd) {
    width: auto;
  }

  .avesta-memory__handwritten {
    right: 0.4rem;
    bottom: 4.7rem;
  }

  .avesta-timeline-card {
    min-height: auto;
  }

  .avesta-culture-item {
    min-height: auto;
  }

  .avesta-event {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .avesta-founders__closing img {
    width: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .avesta-founders *,
  .avesta-founders *::before,
  .avesta-founders *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Balanced typography pass */
.avesta-founders {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.avesta-logo-hero {
  min-height: auto;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.avesta-logo-hero h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5.6vw, 5.2rem);
  line-height: 1.02;
}

.avesta-founders h2,
.avesta-section-heading h2 {
  max-width: 760px;
  font-size: clamp(2.15rem, 4.8vw, 4.6rem);
  line-height: 1.03;
}

.avesta-founders__intro {
  min-height: auto;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.avesta-logo-hero p,
.avesta-section-heading p,
.avesta-founders__intro p {
  max-width: 680px;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.68;
}

.avesta-chapter h3 {
  font-size: clamp(1.55rem, 2.45vw, 2.35rem);
  line-height: 1.08;
}

.avesta-culture-item h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.08;
}

.avesta-event h3 {
  font-size: clamp(1.55rem, 3.2vw, 3.1rem);
  line-height: 1.05;
}

.avesta-timeline-card h3 {
  margin-top: 1.8rem;
  font-size: clamp(1.55rem, 2.5vw, 2.45rem);
  line-height: 1.05;
}

.avesta-founders__closing h3 {
  font-size: clamp(2.1rem, 4.8vw, 4.5rem);
  line-height: 1.02;
}

.avesta-chapter p,
.avesta-culture-item p,
.avesta-event p,
.avesta-timeline-card p,
.avesta-founders__closing p,
.avesta-memory p {
  font-size: 0.94rem;
  line-height: 1.65;
}

.avesta-founders__kicker,
.avesta-chapter span,
.avesta-event time,
.avesta-timeline-card time {
  font-size: 0.68rem;
  letter-spacing: 0.13em;
}

.avesta-memory__handwritten {
  max-width: 12rem;
  font-size: clamp(1.05rem, 1.65vw, 1.55rem);
}

@media (max-width: 840px) {
  .avesta-founders {
    padding-block: 2.5rem;
  }

  .avesta-logo-hero {
    min-height: auto;
    padding-block: 3rem 4rem;
  }

  .avesta-logo-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.5rem);
  }

  .avesta-founders h2,
  .avesta-section-heading h2 {
    font-size: clamp(1.95rem, 9vw, 3rem);
  }

  .avesta-logo-hero p,
  .avesta-section-heading p,
  .avesta-founders__intro p {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .avesta-chapter h3,
  .avesta-culture-item h3,
  .avesta-event h3,
  .avesta-timeline-card h3 {
    font-size: clamp(1.45rem, 7vw, 2.15rem);
  }
}


/* Professional readability and Kurdish cultural visual system */
:root {
  --avesta-ink: #0d0e0e;
  --avesta-cream: #fff7e8;
  --avesta-muted: rgba(255, 247, 232, 0.72);
  --avesta-red: #c9342c;
  --avesta-green: #2f8f55;
  --avesta-gold: #f0bd36;
  --avesta-teal: #2e7d80;
}

.avesta-founders {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1rem, 4vw, 4rem);
  color: var(--avesta-cream);
  background:
    linear-gradient(90deg, rgba(201, 52, 44, 0.18) 0 1px, transparent 1px 34px),
    linear-gradient(0deg, rgba(240, 189, 54, 0.09) 0 1px, transparent 1px 34px),
    radial-gradient(circle at 12% 10%, rgba(201, 52, 44, 0.22), transparent 20rem),
    radial-gradient(circle at 88% 18%, rgba(47, 143, 85, 0.2), transparent 22rem),
    radial-gradient(circle at 50% 45%, rgba(240, 189, 54, 0.12), transparent 26rem),
    linear-gradient(180deg, #11110f 0%, #181511 44%, #0c0d0c 100%);
}

.avesta-founders::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(240, 189, 54, 0.12) 18px 20px, transparent 20px 38px),
    repeating-linear-gradient(-45deg, transparent 0 24px, rgba(47, 143, 85, 0.1) 24px 26px, transparent 26px 50px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 62%);
}

.avesta-founders__backdrop {
  opacity: 0.12;
  filter: grayscale(0.72) contrast(0.96) saturate(0.74);
}

.avesta-founders__grain {
  opacity: 0.06;
}

.avesta-founders__vignette {
  background:
    radial-gradient(circle at center, transparent 48%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.4));
}

.avesta-topbar {
  top: 0.75rem;
  border-color: rgba(240, 189, 54, 0.28);
  background: rgba(10, 12, 10, 0.88);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

.avesta-topbar::after,
.avesta-logo-hero::after,
.avesta-section-heading::after {
  content: "";
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--avesta-red), var(--avesta-gold), var(--avesta-green));
}

.avesta-topbar::after {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: -1px;
}

.avesta-logo-hero {
  min-height: auto;
  grid-template-columns: minmax(9rem, 17rem) minmax(0, 1fr);
  gap: clamp(1.8rem, 5vw, 4.5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.avesta-logo-hero::after {
  grid-column: 1 / -1;
  width: min(100%, 34rem);
  margin-top: clamp(1rem, 2vw, 1.8rem);
}

.avesta-logo-hero__mark::before {
  inset: -10%;
  border-color: rgba(240, 189, 54, 0.36);
  background:
    conic-gradient(from 0deg, rgba(201, 52, 44, 0.34), rgba(240, 189, 54, 0.34), rgba(47, 143, 85, 0.34), rgba(201, 52, 44, 0.34));
  opacity: 0.45;
}

.avesta-logo-hero__mark img {
  width: min(100%, 16rem);
  padding: clamp(0.8rem, 1.8vw, 1.4rem);
}

.avesta-logo-hero__copy,
.avesta-founders__intro-copy,
.avesta-section-heading {
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 8px;
  background: rgba(12, 13, 12, 0.7);
  box-shadow: 0 1.3rem 3rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.avesta-section-heading::after {
  width: min(100%, 18rem);
  margin-top: 1.6rem;
}

.avesta-logo-hero h1 {
  max-width: 700px;
  font-size: clamp(2rem, 4.6vw, 4.25rem);
  line-height: 1.08;
}

.avesta-founders h2,
.avesta-section-heading h2 {
  max-width: 700px;
  font-size: clamp(1.9rem, 3.8vw, 3.7rem);
  line-height: 1.08;
}

.avesta-logo-hero p,
.avesta-section-heading p,
.avesta-founders__intro p {
  max-width: 660px;
  color: var(--avesta-muted);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.68;
}

.avesta-founders__kicker,
.avesta-chapter span,
.avesta-event time,
.avesta-timeline-card time {
  color: var(--avesta-gold);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.avesta-founders__intro {
  min-height: auto;
  padding-block: clamp(2.8rem, 6vw, 5rem);
}

.avesta-founders__chapters {
  gap: 1rem;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.avesta-chapter,
.avesta-culture-item,
.avesta-timeline-card {
  border: 1px solid rgba(255, 247, 232, 0.13);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--avesta-red), var(--avesta-gold), var(--avesta-green)) 1;
  background: rgba(13, 15, 13, 0.76);
}

.avesta-chapter {
  padding: clamp(1rem, 2vw, 1.45rem);
}

.avesta-chapter h3,
.avesta-culture-item h3,
.avesta-timeline-card h3 {
  color: var(--avesta-cream);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.avesta-event h3 {
  color: var(--avesta-cream);
  font-size: clamp(1.45rem, 2.7vw, 2.65rem);
  line-height: 1.1;
}

.avesta-chapter p,
.avesta-culture-item p,
.avesta-event p,
.avesta-timeline-card p,
.avesta-founders__closing p,
.avesta-memory p {
  color: rgba(255, 247, 232, 0.72);
  font-size: 0.92rem;
  line-height: 1.62;
}

.avesta-founders__collage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.avesta-memory:nth-child(n) {
  grid-column: auto;
  margin-top: 0;
}

.avesta-memory {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 8px;
  background: rgba(11, 12, 11, 0.72);
  box-shadow: 0 1.1rem 2.4rem rgba(0, 0, 0, 0.24);
}

.avesta-memory__frame {
  border-color: rgba(240, 189, 54, 0.22);
  box-shadow: none;
}

.avesta-memory img {
  aspect-ratio: 4 / 5;
}

.avesta-memory__meta,
.avesta-memory__year {
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  color: #fff7e8;
  background: rgba(13, 14, 14, 0.72);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.avesta-memory__handwritten {
  position: static;
  display: inline-block;
  max-width: 100%;
  margin-top: 0.85rem;
  color: var(--avesta-gold);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.2;
  text-shadow: none;
  transform: rotate(-1deg);
}

.avesta-culture,
.avesta-events {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.avesta-culture__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border: 0;
  background: transparent;
}

.avesta-culture-item {
  min-height: auto;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
}

.avesta-culture-item::before {
  content: "◆";
  display: block;
  margin-bottom: 0.9rem;
  color: var(--avesta-gold);
  font-size: 1.1rem;
}

.avesta-founders__timeline {
  gap: 1rem;
  border: 0;
  background: transparent;
}

.avesta-timeline-card {
  min-height: auto;
  padding: clamp(1.1rem, 2.4vw, 1.8rem);
}

.avesta-timeline-card h3 {
  margin-top: 1.35rem;
}

.avesta-events__list {
  gap: 0;
  border-top-color: rgba(240, 189, 54, 0.28);
}

.avesta-event {
  grid-template-columns: minmax(6rem, 8.5rem) minmax(0, 1fr);
  padding: clamp(1.2rem, 2.8vw, 2rem) 0;
  border-bottom-color: rgba(255, 247, 232, 0.14);
}

.avesta-event span {
  color: var(--avesta-green);
}

.avesta-founders__closing {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 1rem;
}

.avesta-founders__closing h3 {
  font-size: clamp(1.9rem, 3.6vw, 3.5rem);
  line-height: 1.08;
}

@media (max-width: 980px) {
  .avesta-founders__collage,
  .avesta-culture__grid,
  .avesta-founders__timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .avesta-founders {
    padding: 1rem;
  }

  .avesta-topbar {
    top: auto;
  }

  .avesta-logo-hero,
  .avesta-founders__collage,
  .avesta-culture__grid,
  .avesta-founders__timeline,
  .avesta-founders__closing,
  .avesta-event {
    grid-template-columns: 1fr;
  }

  .avesta-logo-hero__copy,
  .avesta-founders__intro-copy,
  .avesta-section-heading {
    padding: 1rem;
  }

  .avesta-logo-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .avesta-founders h2,
  .avesta-section-heading h2 {
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }

  .avesta-memory:nth-child(even),
  .avesta-memory:nth-child(odd) {
    width: 100%;
    margin-left: 0;
  }
}


/* Contact, legal footer and cookie consent */
.avesta-contact,
.avesta-legal {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.avesta-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: stretch;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(201, 52, 44, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(240, 189, 54, 0.08), rgba(47, 143, 85, 0.1)),
    rgba(11, 12, 11, 0.82);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.28);
}

.avesta-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--avesta-red), var(--avesta-gold), var(--avesta-green)) top / 100% 4px no-repeat,
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(240, 189, 54, 0.08) 18px 20px, transparent 20px 40px);
  opacity: 0.9;
}

.avesta-contact > * {
  position: relative;
  z-index: 1;
}

.avesta-contact h2 {
  max-width: 680px;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3.8vw, 3.7rem);
  font-weight: 500;
  line-height: 1.08;
}

.avesta-contact p {
  max-width: 680px;
  margin-top: 1rem;
  color: rgba(255, 247, 232, 0.72);
  font-size: 0.98rem;
  line-height: 1.65;
}

.avesta-contact__details {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  margin: 0;
  padding: clamp(1rem, 2.3vw, 1.6rem);
  border: 1px solid rgba(255, 247, 232, 0.13);
  border-radius: 8px;
  background: rgba(8, 9, 8, 0.58);
  font-style: normal;
}

.avesta-contact__details span {
  margin-top: 0.8rem;
  color: var(--avesta-gold);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.avesta-contact__details span:first-child {
  margin-top: 0;
}

.avesta-contact__details strong,
.avesta-contact__details a {
  color: var(--avesta-cream);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.avesta-contact__details a:hover {
  color: var(--avesta-gold);
}

.avesta-contact__details small {
  color: rgba(255, 247, 232, 0.62);
  font-size: 0.9rem;
  line-height: 1.5;
}

.avesta-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem 0;
  color: rgba(255, 247, 232, 0.58);
  font-size: 0.82rem;
}

.avesta-legal p {
  margin: 0;
}

.avesta-legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.avesta-legal a {
  color: rgba(255, 247, 232, 0.68);
  text-decoration: none;
}

.avesta-legal a:hover {
  color: var(--avesta-gold);
}

.avesta-cookie {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: min(42rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(240, 189, 54, 0.34);
  border-radius: 8px;
  color: var(--avesta-cream);
  background: rgba(8, 10, 8, 0.94);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.42);
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.avesta-cookie.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.avesta-cookie.is-hidden {
  display: none;
}

.avesta-cookie strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--avesta-gold);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.avesta-cookie p {
  margin: 0;
  color: rgba(255, 247, 232, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
}

.avesta-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.avesta-cookie button {
  min-height: 2.5rem;
  border: 1px solid rgba(255, 247, 232, 0.18);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--avesta-cream);
  background: rgba(255, 247, 232, 0.08);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.avesta-cookie button[data-cookie-choice="all"] {
  border-color: transparent;
  color: #10110e;
  background: linear-gradient(90deg, var(--avesta-gold), #f7d66f);
}

.avesta-cookie button:hover {
  transform: translateY(-1px);
}

@media (max-width: 840px) {
  .avesta-contact,
  .avesta-cookie {
    grid-template-columns: 1fr;
  }

  .avesta-legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .avesta-legal nav,
  .avesta-cookie__actions {
    justify-content: flex-start;
  }
}


/* Legal documents */
.avesta-legal-docs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 1180px);
  margin: clamp(2rem, 5vw, 4rem) auto 0;
}

.avesta-legal-doc {
  scroll-margin-top: 6rem;
  padding: clamp(1rem, 2.4vw, 1.65rem);
  border: 1px solid rgba(255, 247, 232, 0.13);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--avesta-red), var(--avesta-gold), var(--avesta-green)) 1;
  border-radius: 8px;
  background: rgba(11, 12, 11, 0.78);
}

.avesta-legal-doc h2 {
  margin: 0 0 1rem;
  color: var(--avesta-cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.08;
}

.avesta-legal-doc p {
  margin: 0 0 0.85rem;
  color: rgba(255, 247, 232, 0.7);
  font-size: 0.88rem;
  line-height: 1.58;
}

.avesta-reset-cookies {
  min-height: 2.6rem;
  margin-top: 0.35rem;
  border: 1px solid rgba(240, 189, 54, 0.38);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: #10110e;
  background: linear-gradient(90deg, var(--avesta-gold), #f7d66f);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 980px) {
  .avesta-legal-docs {
    grid-template-columns: 1fr;
  }
}

/* Static HTML gallery alignment pass */
.avesta-founders__collage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.4rem);
  align-items: stretch;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.avesta-memory:nth-child(n) {
  grid-column: auto;
  width: 100%;
  margin: 0;
}

.avesta-memory {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 8px;
  background: rgba(11, 12, 11, 0.72);
  box-shadow: 0 1.1rem 2.4rem rgba(0, 0, 0, 0.24);
}

.avesta-memory__frame {
  width: 100%;
  border-color: rgba(240, 189, 54, 0.22);
  box-shadow: none;
}

.avesta-memory img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.avesta-memory__handwritten {
  position: static;
  display: block;
  max-width: 100%;
  min-height: 2.8rem;
  margin-top: 0.85rem;
  color: var(--avesta-gold);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.2;
  text-shadow: none;
  transform: none;
}

.avesta-memory p {
  margin-top: 0.85rem;
}

@media (max-width: 980px) {
  .avesta-founders__collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .avesta-founders__collage {
    grid-template-columns: 1fr;
  }
}


/* Kurdish language switcher */
.avesta-language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(248, 241, 230, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 8, 0.48);
}

.avesta-language-switcher button {
  min-width: 2.35rem;
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  color: rgba(255, 247, 232, 0.68);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.avesta-language-switcher button.is-active {
  color: #10110e;
  background: linear-gradient(90deg, var(--avesta-gold), #f7d66f);
}

.avesta-language-switcher button:focus-visible {
  outline: 2px solid var(--avesta-gold);
  outline-offset: 2px;
}

@media (max-width: 840px) {
  .avesta-topbar {
    flex-wrap: wrap;
  }

  .avesta-language-switcher {
    margin-left: auto;
  }
}


/* Separate legal pages and cleaner footer */
.avesta-site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-top: clamp(2.2rem, 6vw, 5rem);
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(201, 52, 44, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(240, 189, 54, 0.08), rgba(47, 143, 85, 0.09)),
    rgba(8, 10, 8, 0.82);
}

.avesta-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.avesta-footer__brand img {
  width: 3.3rem;
  height: 3.3rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 247, 232, 0.95);
  padding: 0.28rem;
}

.avesta-footer__brand div,
.avesta-footer__meta {
  display: grid;
  gap: 0.35rem;
}

.avesta-footer__brand strong {
  color: var(--avesta-cream);
  font-size: 0.98rem;
}

.avesta-footer__brand span,
.avesta-footer__brand a,
.avesta-footer__meta p {
  color: rgba(255, 247, 232, 0.66);
  font-size: 0.82rem;
  line-height: 1.45;
}

.avesta-footer__brand a,
.avesta-footer__meta a {
  text-decoration: none;
}

.avesta-footer__brand a:hover,
.avesta-footer__meta a:hover {
  color: var(--avesta-gold);
}

.avesta-footer__meta {
  justify-items: end;
}

.avesta-footer__meta nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.avesta-footer__meta nav a {
  min-height: 2.15rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: rgba(255, 247, 232, 0.78);
  background: rgba(255, 247, 232, 0.06);
  font-size: 0.76rem;
  font-weight: 800;
}

.avesta-standalone-legal {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  margin: clamp(2rem, 6vw, 4.5rem) auto 0;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--avesta-red), var(--avesta-gold), var(--avesta-green)) 1;
  border-radius: 8px;
  background: rgba(11, 12, 11, 0.82);
}

.avesta-standalone-legal h1 {
  margin: 0 0 1rem;
  color: var(--avesta-cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
}

.avesta-standalone-legal p {
  margin: 0 0 0.9rem;
  color: rgba(255, 247, 232, 0.74);
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  line-height: 1.68;
}

.avesta-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(240, 189, 54, 0.28);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--avesta-gold);
  background: rgba(240, 189, 54, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.avesta-back-link:hover {
  color: #10110e;
  background: var(--avesta-gold);
}

[data-language-panel][hidden] {
  display: none;
}

@media (max-width: 840px) {
  .avesta-site-footer {
    grid-template-columns: 1fr;
  }

  .avesta-footer__meta {
    justify-items: start;
  }

  .avesta-footer__meta nav {
    justify-content: flex-start;
  }
 
}
