/*
IRAN Sharp fonts are considered a proprietary software. To gain
information about the laws regarding the use of these fonts, please
visit www.fontiran.com
---------------------------------------------------------------------
This set of fonts are used in this project under the license: (PIKEL5V)
---------------------------------------------------------------------
The required FontLicense.txt file is placed next to the font files in /Fonts.
*/
@font-face{
font-family:"IRANSharp";
font-style:normal;
font-weight:300;
src:url("Fonts/eot/iransharp_light_web.eot");
src:url("Fonts/eot/iransharp_light_web.eot?#iefix") format("embedded-opentype"),
url("Fonts/woff2/iransharp_light_web.woff2") format("woff2"),
url("Fonts/woff/iransharp_light_web.woff") format("woff"),
url("Fonts/ttf/iransharp_light_web.ttf") format("truetype");
font-display:swap;
}

@font-face{
font-family:"IRANSharp";
font-style:normal;
font-weight:400;
src:url("Fonts/eot/iransharp_regular_web.eot");
src:url("Fonts/eot/iransharp_regular_web.eot?#iefix") format("embedded-opentype"),
url("Fonts/woff2/iransharp_regular_web.woff2") format("woff2"),
url("Fonts/woff/iransharp_regular_web.woff") format("woff"),
url("Fonts/ttf/iransharp_regular_web.ttf") format("truetype");
font-display:swap;
}

@font-face{
font-family:"IRANSharp";
font-style:normal;
font-weight:700;
src:url("Fonts/eot/iransharp_bold_web.eot");
src:url("Fonts/eot/iransharp_bold_web.eot?#iefix") format("embedded-opentype"),
url("Fonts/woff2/iransharp_bold_web.woff2") format("woff2"),
url("Fonts/woff/iransharp_bold_web.woff") format("woff"),
url("Fonts/ttf/iransharp_bold_web.ttf") format("truetype");
font-display:swap;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eefaf3;
  --muted: rgba(238, 250, 243, 0.68);
  --green: #f2f2f2;
  --green-deep: #7f7f7f;
  --warm: #ffffff;
  --yellow: #d9d9d9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --font-main: "IRANSharp", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(145deg, #000 0%, #080808 24%, #151515 47%, #0a0a0a 70%, #020202 100%);
  color: var(--text);
  font-family: var(--font-main);
  transition: background 800ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(120deg, transparent 0%, var(--tone-one, rgba(255, 255, 255, 0.05)) 32%, transparent 58%),
    linear-gradient(235deg, transparent 10%, var(--tone-two, rgba(255, 255, 255, 0.035)) 48%, transparent 82%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%, var(--tone-three, rgba(255, 255, 255, 0.025)));
  content: "";
  transition: background 900ms ease;
}

body::after {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

::selection {
  background: var(--green);
  color: #06100b;
}

.glass-panel {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.085), var(--glass));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(130%);
}

.site-header {
  position: fixed;
  top: 1rem;
  right: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 2rem));
  min-height: 68px;
  padding: 0.8rem 0.95rem;
  border-radius: 999px;
  transform: translateX(50%);
}

.mobile-tabbar {
  display: none;
}

.brand,
.nav-links,
.language-toggle,
.hero-actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #07110d;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.nav-links {
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.7rem 0.85rem;
  transition: 250ms ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.language-toggle {
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
}

.language-button {
  border: 0;
  border-radius: 999px;
  padding: 0.48rem 0.7rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 240ms ease;
}

.language-button.active {
  background: #ffffff;
  color: #06100b;
}

.section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.hero {
  isolation: isolate;
  overflow: hidden;
  align-items: end;
  min-height: min(100vh, 880px);
  width: min(1380px, calc(100% - 2rem));
  border-radius: clamp(2rem, 6vw, 5rem);
  padding: clamp(8rem, 13vw, 12rem) clamp(1.2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48) 44%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 46%, rgba(0, 0, 0, 0.35));
  content: "";
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(0.82);
}

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

.hero-copy h1,
.section-heading h2,
.about-copy h2,
.contact-card h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero-copy h1 {
  max-width: 900px;
  font-size: clamp(4rem, 11vw, 9.4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero-lede {
  min-height: 4.6rem;
  max-width: 660px;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.typing-text::after {
  display: inline-block;
  width: 0.55em;
  color: var(--green);
  content: "▌";
  animation: blink 900ms steps(2) infinite;
}

.type-on-scroll.typing-active::after {
  display: inline-block;
  width: 0.45em;
  color: rgba(255, 255, 255, 0.68);
  content: "▌";
  animation: blink 900ms steps(2) infinite;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-weight: 700;
  transition: 260ms ease;
}

.button.primary {
  background: var(--green);
  color: #06100b;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.12);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button:hover,
.contact-link:hover {
  transform: translateY(-3px);
}

.section-heading {
  align-self: end;
  margin-bottom: 2rem;
}

.section-heading h2,
.about-copy h2,
.contact-card h2 {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
}

.zines,
.projects,
.contact {
  align-content: center;
}

.zines {
  isolation: isolate;
  border-radius: clamp(2rem, 6vw, 5rem);
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.zines::before {
  position: absolute;
  inset: 5rem max(-4vw, -3rem) 3rem;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(82, 82, 82, 0.58), rgba(38, 38, 38, 0.7) 42%, rgba(112, 112, 112, 0.42)),
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.24), transparent 22rem);
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  content: "";
}

.zines .eyebrow,
.zines .section-heading h2 {
  color: rgba(255, 255, 255, 0.9);
}

.zines .eyebrow::before {
  background: rgba(255, 255, 255, 0.82);
}

.zines .zine-card {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.zines .mobile-dots button {
  background: rgba(255, 255, 255, 0.48);
}

.zines .mobile-dots button.active {
  background: #ffffff;
}

.zine-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.8fr;
  gap: 1rem;
  align-items: stretch;
}

.zine-card,
.project-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(5, 10, 8, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform-origin: center;
  will-change: transform, opacity, filter;
}

.zine-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: 280ms ease;
}

.zine-card:nth-child(1) {
  min-height: 560px;
}

.zine-card:nth-child(2) {
  margin-top: 4rem;
}

.zine-card:hover {
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-8px) rotate(0.6deg);
}

.zine-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transition: 400ms ease;
}

.zine-card:hover img {
  filter: grayscale(0.3) contrast(1.2);
  transform: scale(1.04);
}

.zine-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 58%);
  content: "";
}

.zine-card > div,
.issue {
  position: relative;
  z-index: 1;
}

.issue,
.project-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--green);
  letter-spacing: 0.14em;
}

.zine-card h3,
.project-card h3 {
  margin: 0.7rem 0 0.4rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.zine-card p,
.project-card p,
.about-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.zine-placeholder {
  align-items: center;
  min-height: 390px;
  text-align: center;
}

.zine-placeholder::after {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.13), transparent 13rem),
    linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}

.placeholder-mark {
  display: grid;
  width: 142px;
  height: 142px;
  margin: auto;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--green);
  font-size: 5rem;
}

.project-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  cursor: pointer;
  transition: 280ms ease;
}

.project-card::before {
  position: absolute;
  inset: auto -30% -35% -30%;
  height: 62%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 63%);
  content: "";
  transition: 280ms ease;
}

.project-card::after {
  position: absolute;
  inset: 1rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius-lg) - 0.4rem);
  content: "";
}

.project-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.46;
  filter: grayscale(0.45) contrast(1.08);
  transition: 420ms ease;
}

.project-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-8px);
}

.project-card:hover .project-preview,
.project-card:focus-visible .project-preview {
  opacity: 0.64;
  filter: grayscale(0.15) contrast(1.15);
  transform: scale(1.04);
}

.project-card:hover::before {
  transform: translateY(-12px) scale(1.08);
}

.project-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 4px;
}

.project-card h3,
.project-card p,
.project-number {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.74);
}

.project-number {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 900;
  opacity: 0.5;
}

.mobile-dots {
  display: none;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.mobile-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  opacity: 0.42;
  padding: 0;
  transition: width 260ms ease, border-radius 260ms ease, opacity 260ms ease, background 260ms ease;
}

.mobile-dots button:hover {
  opacity: 0.8;
  transform: scale(1.25);
}

.mobile-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 1;
  animation: dot-pop 320ms cubic-bezier(0.2, 1.35, 0.28, 1) both;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.project-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

body.project-lightbox-open {
  overflow: hidden;
}

.project-lightbox-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1060px, 100%);
  height: min(760px, 92vh);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.12), transparent 24rem),
    linear-gradient(145deg, rgba(24, 24, 24, 0.94), rgba(3, 3, 3, 0.94));
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.68);
}

.project-lightbox-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ff2b2b;
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(255, 43, 43, 0.28);
}

.project-lightbox-heading {
  padding: clamp(1.35rem, 3vw, 2.2rem) clamp(1.35rem, 4vw, 3rem) 0;
}

.project-lightbox-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.project-photo-stack {
  position: relative;
  min-height: 0;
  margin: 1rem;
  overflow: hidden;
}

.project-stack-photo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: fit-content;
  max-width: calc(100% - 3rem);
  margin: 0;
  padding: clamp(0.55rem, 1.5vw, 0.9rem) clamp(0.55rem, 1.5vw, 0.9rem) clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 0.35rem;
  background: #f5f1e8;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.44),
    0 2px 0 rgba(255, 255, 255, 0.38) inset;
  transform:
    translate(
      calc(-50% + var(--stack-x) + var(--photo-x, 0px)),
      calc(-50% + var(--stack-y) + var(--photo-y, 0px))
    )
    scale(var(--photo-scale, 1));
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-stack-photo.removed {
  opacity: 0;
  transform:
    translate(
      calc(-50% + var(--stack-x) + var(--photo-x, 0px)),
      calc(-58% + var(--stack-y) + var(--photo-y, 0px))
    )
    scale(0.94);
}

.project-stack-image-wrap {
  position: relative;
  display: block;
  width: fit-content;
  max-width: min(58vw, 520px, calc(100vw - 6rem));
  max-height: min(56vh, 520px);
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

.project-stack-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(56vh, 520px);
  object-fit: scale-down;
  opacity: 0.82;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 240ms ease;
}

.project-stack-photo img.loaded {
  opacity: 1;
}

.project-stack-watermark {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  z-index: 1;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.58);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.55rem, 1.2vw, 0.72rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.36);
  transform: translateX(-50%);
  user-select: none;
  white-space: nowrap;
}

.project-stack-close {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.about {
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(1.3rem, 5vw, 4rem);
}

.about-photo {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  filter: grayscale(0.28) contrast(1.08);
}

.about-copy {
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 4vw, 3rem);
}

.about-copy p {
  max-width: 620px;
  margin-top: 1.3rem;
  font-size: 1.1rem;
}

.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-color: rgba(255, 132, 55, 0.58);
  border-radius: clamp(2rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 6vw, 5rem);
  background:
    linear-gradient(135deg, rgba(255, 119, 45, 0.96), rgba(255, 76, 30, 0.86) 48%, rgba(255, 167, 67, 0.94)),
    radial-gradient(circle at 18% 18%, rgba(255, 235, 190, 0.48), transparent 24rem);
  color: #170701;
  text-align: center;
  box-shadow:
    0 34px 120px rgba(255, 98, 35, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.contact-card::before {
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(255, 238, 202, 0.52), transparent 34%),
    radial-gradient(circle, rgba(255, 191, 105, 0.38), transparent 38%);
  background-position: 8% 8%, 92% 78%;
  background-repeat: no-repeat;
  background-size: 68% 68%, 74% 74%;
  content: "";
  animation: contact-gradient-shift 16s ease-in-out infinite;
}

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

.contact-card .eyebrow,
.contact-card h2 {
  color: #170701;
}

.contact-card .eyebrow {
  opacity: 0.82;
}

.contact-card .eyebrow {
  justify-content: center;
}

.contact-card .eyebrow::before {
  display: none;
}

.contact-card h2 {
  max-width: 980px;
  margin: 0 auto;
}

.contact-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 58px;
  border: 1px solid rgba(23, 7, 1, 0.16);
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  background: #170701;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(23, 7, 1, 0.24);
  transition: 260ms ease;
  animation: warm-pulse 2.6s ease-in-out infinite;
}

.contact-link img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  color: rgba(238, 250, 243, 0.48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
}

.lang.en {
  display: none;
}

body[data-language="en"] {
  direction: ltr;
}

body[data-language="en"] .lang.fa {
  display: none;
}

body[data-language="en"] .lang.en {
  display: inline;
}

body[data-language="en"] .hero-copy h1,
body[data-language="en"] .section-heading h2,
body[data-language="en"] .about-copy h2,
body[data-language="en"] .contact-card h2 {
  letter-spacing: -0.09em;
}

body:not([data-language="en"]) .hero-copy h1 {
  font-size: clamp(2.65rem, 7.3vw, 6.25rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

body:not([data-language="en"]) .section-heading h2,
body:not([data-language="en"]) .about-copy h2,
body:not([data-language="en"]) .contact-card h2 {
  font-size: clamp(1.85rem, 4.65vw, 4.25rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

body:not([data-language="en"]) .hero-lede {
  font-size: clamp(0.82rem, 1.35vw, 1rem);
  line-height: 1.9;
}

body:not([data-language="en"]) .zine-card h3,
body:not([data-language="en"]) .project-card h3 {
  font-size: clamp(1.15rem, 2vw, 2rem);
  letter-spacing: -0.035em;
}

body:not([data-language="en"]) .zine-card p,
body:not([data-language="en"]) .project-card p,
body:not([data-language="en"]) .about-copy p {
  font-size: 0.82rem;
  line-height: 1.95;
}

.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.985);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-one {
  transition-delay: 110ms;
}

.delay-two {
  transition-delay: 220ms;
}

@keyframes float {
  50% { transform: translateY(34px) scale(1.08); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes marquee {
  from { transform: translateX(-20%); }
  to { transform: translateX(100%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes contact-gradient-shift {
  0% { background-position: 8% 8%, 92% 78%; opacity: 0.9; }
  25% { background-position: 28% 18%, 74% 88%; opacity: 1; }
  50% {
    background-position: 42% 34%, 62% 58%;
    opacity: 0.96;
  }
  75% { background-position: 24% 48%, 82% 40%; opacity: 1; }
  100% { background-position: 8% 8%, 92% 78%; opacity: 0.9; }
}

@keyframes warm-pulse {
  50% { box-shadow: 0 22px 52px rgba(23, 7, 1, 0.34); }
}

@keyframes crush-left {
  0% { transform: translateX(18%) rotateY(-18deg) scaleX(0.72) scaleY(1.04); }
  58% { transform: translateX(-2%) rotateY(4deg) scaleX(1.06) scaleY(0.96); }
  100% { transform: translateX(0) rotateY(0) scale(1); }
}

@keyframes crush-right {
  0% { transform: translateX(-18%) rotateY(18deg) scaleX(0.72) scaleY(1.04); }
  58% { transform: translateX(2%) rotateY(-4deg) scaleX(1.06) scaleY(0.96); }
  100% { transform: translateX(0) rotateY(0) scale(1); }
}

@keyframes dot-pop {
  0% { transform: scale(0.68); }
  70% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@media (max-width: 900px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  body {
    min-height: 100dvh;
  }

  main {
    position: fixed;
    inset: 0;
    overflow: hidden;
  }

  .site-header {
    top: max(0.75rem, env(safe-area-inset-top));
    right: 0;
    left: 0;
    min-height: 60px;
    width: 100%;
    padding: 0.55rem 1rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
  }

  .brand {
    position: absolute;
    right: 50%;
    gap: 0.55rem;
    transform: translateX(50%);
    white-space: nowrap;
    pointer-events: auto;
  }

  body[data-language="en"] .brand {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .brand .lang.fa {
    display: inline;
  }

  .brand .lang.en {
    display: none;
  }

  body[data-language="en"] .brand .lang.fa {
    display: none;
  }

  body[data-language="en"] .brand .lang.en {
    display: inline;
  }

  .language-toggle {
    margin-inline-start: auto;
    gap: 0.15rem;
    padding: 0.18rem;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(130%);
  }

  .language-button {
    padding: 0.34rem 0.5rem;
    font-size: 0.72rem;
  }

  .project-lightbox {
    padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  }

  .project-lightbox-panel {
    height: min(92dvh, 100%);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .project-lightbox-heading {
    padding: 1rem 4.25rem 0.35rem 1rem;
  }

  .project-lightbox-heading .eyebrow {
    margin-bottom: 0.45rem;
  }

  .project-lightbox-heading h2 {
    font-size: clamp(2rem, 12vw, 3.8rem);
  }

  .project-photo-stack {
    margin: 0.35rem;
  }

  .project-stack-photo {
    max-width: calc(100% - 0.8rem);
    padding: 0.38rem 0.38rem 1.1rem;
    touch-action: none;
    will-change: transform;
  }

  .project-stack-image-wrap {
    max-width: calc(100vw - 2.4rem);
    max-height: calc(92dvh - 8.7rem);
    cursor: grab;
  }

  .project-stack-photo img {
    max-height: calc(92dvh - 8.7rem);
  }

  .nav-links {
    display: none;
  }

  .mobile-tabbar {
    position: fixed;
    right: 50%;
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.2rem;
    width: min(460px, calc(100% - 1.5rem));
    min-height: 74px;
    padding: 0.45rem;
    border-radius: 999px;
    transform: translateX(50%);
  }

  .mobile-tab {
    display: grid;
    place-items: center;
    gap: 0.18rem;
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 0.3rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 700;
    text-decoration: none;
    transition: 260ms ease;
  }

  .mobile-tab img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.7;
    filter: invert(1);
    transition: 260ms ease;
  }

  .mobile-tab.active {
    background: #ffffff;
    color: #06100b;
    transform: translateY(-2px);
  }

  .mobile-tab.active img {
    opacity: 1;
    filter: none;
  }

  .section {
    position: fixed;
    inset: 0;
    z-index: 1;
    min-height: 100dvh;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 6.2rem 1rem 6.7rem;
    overflow: hidden;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(var(--mobile-panel-offset, 110%)) scale(0.98);
    transition:
      opacity 360ms ease,
      transform 560ms cubic-bezier(0.2, 0.86, 0.2, 1);
    will-change: transform, opacity;
  }

  body[data-language="en"] .section {
    direction: ltr;
  }

  .section.mobile-active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) scale(1);
  }

  .section.mobile-before {
    --mobile-panel-offset: -110%;
  }

  .section.mobile-after {
    --mobile-panel-offset: 110%;
  }

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

  .hero {
    align-items: end;
    min-height: 100dvh;
    width: 100%;
    border-radius: 0;
    padding: 6.2rem 1rem 6.7rem;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.22)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 58%);
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 13vw, 4.8rem);
  }

  body:not([data-language="en"]) .hero-copy h1 {
    font-size: clamp(1.8rem, 8.4vw, 3.2rem);
    line-height: 1.08;
  }

  .hero-lede {
    margin-inline: auto;
    min-height: 3.5rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  body:not([data-language="en"]) .hero-lede {
    font-size: 0.78rem;
    line-height: 1.85;
  }

  .eyebrow {
    justify-content: center;
  }

  .eyebrow::before {
    display: none;
  }

  .hero-actions,
  .contact-links {
    justify-content: center;
  }

  .zine-grid,
  .project-track {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 1rem;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 8%;
    -webkit-overflow-scrolling: touch;
    perspective: 900px;
  }

  .zine-grid::-webkit-scrollbar,
  .project-track::-webkit-scrollbar {
    display: none;
  }

  .zine-card,
  .zine-card:nth-child(1),
  .zine-placeholder {
    min-width: 82%;
    min-height: min(48vh, 360px);
    scroll-snap-align: center;
    transition:
      opacity 360ms ease,
      filter 360ms ease,
      transform 520ms cubic-bezier(0.18, 0.9, 0.22, 1.25);
  }

  .zine-card:nth-child(2) {
    margin-top: 0;
  }

  .project-card {
    min-width: 82%;
    min-height: min(42vh, 330px);
    scroll-snap-align: center;
    transition:
      opacity 360ms ease,
      filter 360ms ease,
      transform 520ms cubic-bezier(0.18, 0.9, 0.22, 1.25);
  }

  .zine-card.is-active,
  .project-card.is-active {
    opacity: 1;
    filter: none;
    transform: translateX(0) rotateY(0) scale(1);
  }

  .zine-card.is-before,
  .project-card.is-before {
    opacity: 0.56;
    filter: grayscale(0.8) blur(0.4px);
    transform: translateX(-6%) rotateY(13deg) scaleX(0.82) scaleY(0.94);
  }

  .zine-card.is-after,
  .project-card.is-after {
    opacity: 0.56;
    filter: grayscale(0.8) blur(0.4px);
    transform: translateX(6%) rotateY(-13deg) scaleX(0.82) scaleY(0.94);
  }

  .zine-grid.crush-left .zine-card.is-active,
  .project-track.crush-left .project-card.is-active {
    animation: crush-left 520ms cubic-bezier(0.2, 1.25, 0.26, 1) both;
  }

  .zine-grid.crush-right .zine-card.is-active,
  .project-track.crush-right .project-card.is-active {
    animation: crush-right 520ms cubic-bezier(0.2, 1.25, 0.26, 1) both;
  }

  .mobile-dots {
    display: flex;
  }

  .about-photo {
    width: min(58%, 240px);
    margin: 0 auto;
    transform: rotate(0deg);
  }

  .about-copy {
    padding: 1.2rem;
  }

  .contact-card {
    padding: 1.35rem;
  }

  .site-footer {
    display: none;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: 100%;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .button,
  .contact-link {
    width: 100%;
  }

  .hero-actions {
    margin-top: 1.25rem;
  }

  .button {
    min-height: 48px;
    padding: 0.7rem 1rem;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-card h2 {
    font-size: clamp(2.15rem, 12vw, 3.55rem);
  }

  body:not([data-language="en"]) .section-heading h2,
  body:not([data-language="en"]) .about-copy h2,
  body:not([data-language="en"]) .contact-card h2 {
    font-size: clamp(1.5rem, 7.8vw, 2.45rem);
    line-height: 1.12;
  }

  .zine-card,
  .zine-card:nth-child(1),
  .zine-placeholder {
    min-height: min(48vh, 330px);
  }

  .section-heading {
    margin-bottom: 1rem;
  }

  .zine-card h3,
  .project-card h3 {
    font-size: 1.45rem;
  }

  body:not([data-language="en"]) .zine-card h3,
  body:not([data-language="en"]) .project-card h3 {
    font-size: 1rem;
  }

  .project-number {
    font-size: 3rem;
  }

  .contact-links {
    margin-top: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
