/*
 * This Is Behrad — precision editorial refinement
 * Loaded after the original stylesheet so the existing content and behaviour
 * remain intact while the layout moves to a calmer, architectural system.
 */

:root {
  --grid-line: rgba(242, 233, 221, .042);
  --grid-size: clamp(48px, 5.35vw, 82px);
  --frame-line: rgba(242, 233, 221, .2);
}

body {
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(circle at 82% 7%, rgba(242, 233, 221, .045), transparent 32rem);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
  background-attachment: fixed;
}

.kicker,
.section-no,
.hero-stamp,
.about-image figcaption,
.road-caption,
.footer span:last-child {
  font-family: Manrope, Estedad, Arial, sans-serif;
}

/* Navigation: one measured line, with the language selector treated as a tool. */
.nav {
  padding: 0 var(--gutter);
}

.nav-inner {
  min-height: 84px;
  padding-inline: 22px;
  border: 1px solid var(--line);
  border-top: 0;
}

.wordmark {
  padding: 0;
  line-height: 1;
}

.nav-links > a {
  padding: 30px 0 27px;
  font-size: .78rem;
}

.lang-switch {
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
}

.lang-switch a {
  min-width: 42px;
  padding: 10px 9px;
  border: 0;
  border-inline-end: 1px solid var(--line);
  font-size: .64rem;
}

.lang-switch a:last-child { border-inline-end: 0; }
.lang-switch a::after { display: none; }
.lang-switch a[aria-current="page"] {
  color: var(--ink);
  border-color: transparent;
  background: var(--parchment);
}

/* Hero: landscape-led and deliberately rectilinear. */
.hero {
  min-height: 100svh;
  padding-top: clamp(132px, 15vh, 172px);
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: clamp(46px, 7vw, 108px);
  border-inline: 1px solid var(--line);
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 34px;
  font-size: clamp(4.4rem, 8.2vw, 8.8rem);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.075em;
}

.hero-lede {
  max-width: 690px;
  color: rgba(242, 233, 221, .68);
}

.kicker,
.section-no {
  color: rgba(242, 233, 221, .5);
}

.kicker::before,
.section-no::after { background: var(--wine-bright); }

.hero-visual {
  min-height: 0;
  aspect-ratio: 4 / 3;
  align-self: center;
}

.hero-frame {
  inset: 0;
  border: 1px solid var(--frame-line);
  border-radius: 0;
  box-shadow: none;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-position: center 40%;
}

.hero-stamp {
  right: -1px;
  bottom: -1px;
  width: auto;
  height: auto;
  padding: 14px 18px;
  place-content: initial;
  border-radius: 0;
  border-color: var(--frame-line);
  color: rgba(242, 233, 221, .56);
  background: rgba(22, 15, 30, .9);
  line-height: 1.55;
  text-align: left;
}

.hero-meta { bottom: 20px; }

/* Shared section geometry. */
.section {
  border-inline: 1px solid var(--line);
}

.section-title {
  font-weight: 650;
  letter-spacing: -.055em;
}

.about {
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: clamp(60px, 9vw, 142px);
}

.about-copy p { color: rgba(242, 233, 221, .65); }

.about-image,
.belief-image,
.contact-image,
.road-photo,
.reel-frame {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--frame-line);
  background: rgba(22, 15, 30, .62);
}

.about-image::before,
.contact-image::before,
.road-photo::after { display: none; }

.about-image img,
.belief-image img,
.contact-image img,
.road-photo img,
.road-photo.portrait img,
.reel-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.belief-image img,
.contact-image img,
.reel-frame img {
  object-fit: contain;
  object-position: center;
}

/* The journey is now a sequence of editorial rows, not a tall zig-zag. */
.road-section {
  padding-top: clamp(100px, 13vw, 184px);
  background-color: var(--ink-deep);
  background-image:
    linear-gradient(rgba(242, 233, 221, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 233, 221, .032) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.road-head { padding-bottom: clamp(54px, 7vw, 90px); }

.roadmap {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  padding: 0;
  direction: rtl;
  border-top: 1px solid var(--line-strong);
}

html[dir="ltr"] .roadmap { direction: ltr; }
.road-line,
.road-marker { display: none; }

.road-item,
.road-item.major {
  min-height: 0;
  display: block;
  padding: clamp(34px, 4.6vw, 66px) 0;
  border-bottom: 1px solid var(--line);
}

.road-content,
.road-item.flip .road-content,
html[dir="ltr"] .road-content,
html[dir="ltr"] .road-item.flip .road-content {
  width: 100%;
  max-width: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(118px, .26fr) minmax(260px, .78fr) minmax(420px, 1.16fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 10px clamp(28px, 5vw, 78px);
  align-items: start;
  direction: inherit;
  text-align: start;
}

.road-year {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
  color: rgba(242, 233, 221, .58);
  font-size: clamp(2rem, 3.4vw, 4rem);
}

.road-content h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: clamp(1.05rem, 1.45vw, 1.34rem);
  line-height: 1.65;
}

.road-content p {
  grid-column: 2;
  grid-row: 2;
  max-width: 470px;
  margin: 0;
  font-size: .92rem;
}

.road-photo {
  grid-column: 3;
  grid-row: 1 / span 3;
  margin: 0;
}

.road-caption {
  grid-column: 3;
  grid-row: 4;
  margin-top: 1px;
}

.road-item:not(.major) .road-content {
  grid-template-columns: minmax(118px, .26fr) minmax(0, 1.94fr);
}

.road-item:not(.major) .road-content h3,
.road-item:not(.major) .road-content p {
  grid-column: 2;
}

/* Portrait originals sit inside a landscape field without destructive crops. */
.road-photo.media-beginning img,
.road-photo.media-iran-zamin img,
.road-photo.media-today img {
  object-fit: contain;
  object-position: center;
}

.road-photo.media-alborz img { object-position: center 50%; }
.road-photo.media-startup-weekend img { object-position: center 49%; }
.road-photo.media-ashna img { object-position: center 44%; }
.road-photo.media-military img { object-position: center 48%; }
.road-photo.media-construction img { object-position: center 48%; }

/* Belief remains the one light chapter, now with firmer geometry. */
.belief-wrap {
  background-color: var(--parchment);
  background-image:
    linear-gradient(rgba(33, 23, 43, .052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 23, 43, .052) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.belief {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(480px, .9fr);
}

.belief-image { background: rgba(33, 23, 43, .08); }
.belief-image::after {
  left: 18px;
  bottom: 14px;
  padding: 8px 12px;
  color: var(--parchment);
  background: rgba(33, 23, 43, .82);
  font-size: clamp(1.5rem, 2.5vw, 3rem);
  letter-spacing: -.045em;
}

html[dir="ltr"] .belief-image::after { right: 18px; left: auto; }

.notes-entry { min-height: 168px; }

.notes-cta,
.text-link {
  border-bottom-color: var(--line-strong);
}

/* Business chapter: still distinct, but quieter and more systematic. */
.behrad-wrap {
  background-color: var(--carbon);
  background-image:
    linear-gradient(rgba(236, 239, 235, .042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 239, 235, .042) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(65, 94, 157, .22), transparent 32rem);
  background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
}

.behrad-title {
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(4rem, 10vw, 10.8rem);
  font-weight: 780;
  letter-spacing: -.06em;
}

.behrad-cta {
  border-color: rgba(236, 239, 235, .26);
  border-radius: 0;
}

.photo-reel {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.reel-frame,
.reel-frame:nth-child(even) {
  transform: none;
}

.reel-frame:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: 66%;
  justify-self: center;
}

.reel-frame img { opacity: .9; }

.contact {
  min-height: auto;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
}

.contact-image { background: rgba(22, 15, 30, .6); }
.contact-image img { object-fit: contain; object-position: center; }

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, .85fr);
    gap: 42px;
  }

  .road-content,
  .road-item.flip .road-content,
  html[dir="ltr"] .road-content,
  html[dir="ltr"] .road-item.flip .road-content {
    grid-template-columns: 108px minmax(220px, .72fr) minmax(330px, 1fr);
    gap: 10px 32px;
  }
}

@media (max-width: 980px) {
  .nav { padding-top: 0; }
  .nav-inner { min-height: 70px; }
  .wordmark { padding: 0; }

  .menu-button {
    margin: 0;
    border-radius: 0;
  }

  .nav-links {
    top: 69px;
    padding: 14px;
    border: 1px solid var(--line);
    background: rgba(22, 15, 30, .98);
  }

  .nav-links > a { padding: 12px 4px; }
  .lang-switch { padding: 0; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 88px;
  }

  .hero-copy { max-width: 800px; }
  .hero-visual { width: min(760px, 100%); }

  .about,
  .belief,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-image,
  .belief-image,
  .contact-image { width: 100%; }

  .road-content,
  .road-item.flip .road-content,
  html[dir="ltr"] .road-content,
  html[dir="ltr"] .road-item.flip .road-content {
    grid-template-columns: 106px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
  }

  .road-photo {
    grid-column: 2;
    grid-row: 3;
    margin-top: 22px;
  }

  .road-caption {
    grid-column: 2;
    grid-row: 4;
  }

  .photo-reel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 720px) {
  :root {
    --grid-size: 54px;
    --gutter: 20px;
  }

  .nav { padding-inline: var(--gutter); }
  .nav-inner { min-height: 64px; padding-inline: 13px; }
  .nav-links { top: 63px; }

  .hero {
    padding-top: 106px;
    padding-bottom: 76px;
    gap: 44px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: clamp(3.55rem, 18vw, 6rem);
    line-height: 1;
  }

  .hero-lede {
    font-size: 1rem;
    line-height: 1.95;
  }

  .hero-visual {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .hero-frame { inset: 0; }
  .hero-stamp { padding: 10px 12px; font-size: .54rem; }
  .hero-meta { display: none; }

  .section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .about-image,
  .belief-image,
  .contact-image,
  .road-photo,
  .reel-frame { aspect-ratio: 4 / 3; }

  .road-head { padding-bottom: 34px; }

  .roadmap {
    width: 100%;
    padding: 0 var(--gutter);
  }

  .road-item,
  .road-item.major {
    padding: 30px 0 42px;
  }

  .road-content,
  .road-item.flip .road-content,
  html[dir="ltr"] .road-content,
  html[dir="ltr"] .road-item.flip .road-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 8px;
    padding: 0;
  }

  .road-year,
  .road-content h3,
  .road-content p,
  .road-photo,
  .road-caption,
  .road-item:not(.major) .road-content h3,
  .road-item:not(.major) .road-content p {
    grid-column: 1;
    grid-row: auto;
  }

  .road-year { margin-bottom: 7px; font-size: 2.5rem; }
  .road-content h3 { font-size: 1.08rem; }
  .road-content p { font-size: .94rem; }
  .road-photo { margin-top: 18px; }

  .road-photo.media-beginning img,
  .road-photo.media-iran-zamin img,
  .road-photo.media-today img { object-fit: contain; }

  .belief-image::after { left: 10px; bottom: 10px; }
  html[dir="ltr"] .belief-image::after { right: 10px; left: auto; }

  .photo-reel {
    width: 100%;
    margin: 0;
    padding: 0 var(--gutter) 88px;
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .reel-frame,
  .reel-frame:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  .contact-image { width: 100%; margin: 28px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
}
