/* ==========================================================================
   Saeede Shojaee — Digital Media Specialist
   Portfolio stylesheet. Dark, high-contrast, one lime accent.
   ========================================================================== */

:root {
  /* Palette */
  --bg: #0b0b0c;
  --surface: #131316;
  --text: #f4f4f0;
  --muted: #b9b9b4;
  --dim: #9a9a96;
  --faint: #7e7e7a;
  --accent: #d4f63c;
  --accent-bright: #eaff7a;

  /* Lines */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-button: rgba(255, 255, 255, 0.28);
  --accent-soft: rgba(212, 246, 60, 0.45);
  --accent-dashed: rgba(212, 246, 60, 0.35);

  /* Type */
  --display: "Archivo", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Rhythm */
  --gutter: clamp(18px, 4vw, 56px);
  --section-y: clamp(56px, 7vw, 104px);
  --heading-gap: clamp(28px, 4vw, 48px);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-bright);
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link — invisible until keyboard focus. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding: 14px var(--gutter);
  background: rgba(11, 11, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.site-header__name:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--dim);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.is-accent {
  color: var(--accent);
}

.site-nav a.is-accent:hover {
  color: var(--accent-bright);
}

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */

.section {
  padding: var(--section-y) var(--gutter);
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 32px;
  margin-bottom: var(--heading-gap);
}

.section-head__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.section-head__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
  flex: 1 1 320px;
}

.section-head__lede {
  flex: 1 1 280px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Media slots — a real <img> over a labelled fallback.
   If the file in assets/ is missing, script.js (or the inline onerror)
   marks the slot .is-empty and the caption shows instead.
   -------------------------------------------------------------------------- */

.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.media.is-empty .media__img {
  display: none;
}

.media__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.media__placeholder::before {
  content: "";
  width: 26px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  opacity: 0.7;
}

.media.is-empty {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
}

/* Every .media sits inside a frame that owns the aspect ratio
   (.motion-card__frame, .tile__frame--2x3, .social-card__media, …),
   so the slot itself just fills that frame. */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 6vw, 80px);
}

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero__copy {
  flex: 1 1 420px;
  min-width: 300px;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.hero__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(50px, 8.6vw, 124px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 18px 0 0;
  color: var(--text);
}

.hero__role {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(15px, 1.7vw, 22px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 20px 0 0;
  color: var(--accent);
}

.hero__intro {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  max-width: 46ch;
  color: var(--muted);
  margin: 18px 0 0;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--solid {
  background: var(--accent);
  color: var(--bg);
}

.btn--solid:hover {
  background: var(--accent-bright);
  color: var(--bg);
}

.btn--outline {
  border: 1px solid var(--line-button);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  color: var(--dim);
}

.btn--ghost:hover {
  color: var(--text);
}

/* Vertical player column */
.hero__player {
  flex: 0 1 360px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.reel {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.reel .media {
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--surface);
  aspect-ratio: auto;
}

.reel__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 12, 0.55) 0%,
    rgba(11, 11, 12, 0) 38%,
    rgba(11, 11, 12, 0.72) 100%
  );
}

.reel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.reel__badge {
  padding: 5px 10px;
  background: rgba(11, 11, 12, 0.6);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.reel__length {
  color: var(--accent);
}

.reel__play {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.play-dot::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 16px solid var(--bg);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.play-dot--sm {
  width: 38px;
  height: 38px;
}

.play-dot--sm::after {
  border-left-width: 11px;
  border-top-width: 7px;
  border-bottom-width: 7px;
  margin-left: 3px;
}

.reel__play-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.reel__hint {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
  text-align: center;
  max-width: 320px;
  margin: 0;
}

/* A frame with a real embed URL becomes click-to-play; an empty data-embed
   leaves it a static poster. The caption under the player stays either way. */

[data-embed]:not([data-embed=""]) {
  cursor: pointer;
}

[data-embed]:not([data-embed=""]):hover .play-dot {
  background: var(--accent-bright);
}

.reel__button {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: transparent;
}

[data-playing] iframe {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  border: 0;
}

[data-playing] .reel__overlay,
[data-playing] .motion-card__strip,
[data-playing] .reel__button {
  display: none;
}

/* --------------------------------------------------------------------------
   01 — Motion & Video
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--motion {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--social {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

.grid--keyart {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.grid--branding {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}

.grid--posters {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

.grid--illustration {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 32px);
}


.motion-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.motion-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.motion-card__frame .media {
  position: absolute;
  inset: 0;
  border: 0;
  aspect-ratio: auto;
}

.motion-card__frame .media.is-empty {
  border: 0;
}

.motion-card__strip {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 14px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0) 0%, rgba(11, 11, 12, 0.8) 100%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.motion-card__spec {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.card-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.card-note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.meta {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}

.meta dt {
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta dd {
  margin: 0;
  color: var(--text);
}

.watch-link {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   02 — Social media campaigns
   -------------------------------------------------------------------------- */

.social-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.social-card:hover {
  border-color: var(--accent-soft);
}

.social-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg);
}

.social-card__media .media {
  position: absolute;
  inset: 0;
  border: 0;
  aspect-ratio: auto;
}

.social-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-card__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
}

.meta--tight {
  gap: 5px 12px;
  font-size: 11px;
}

.meta--tight dt {
  letter-spacing: normal;
}

.results {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   03 — Key art / 05 — Posters / 06 — Illustration
   -------------------------------------------------------------------------- */

.tile {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tile--poster {
  gap: 12px;
}

.tile__frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.tile__frame--poster {
  border-radius: 14px;
}

.tile__frame--light {
  background: var(--surface);
}

.tile__frame .media {
  position: absolute;
  inset: 0;
  border: 0;
  aspect-ratio: auto;
}

.tile__frame--2x1 { aspect-ratio: 2 / 1; }
.tile__frame--2x3 { aspect-ratio: 2 / 3; }
.tile__frame--4x3 { aspect-ratio: 4 / 3; }
.tile__frame--16x10 { aspect-ratio: 16 / 10; }

.tile__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.tile__title--sm {
  font-size: 17px;
  margin-bottom: 5px;
}

.tile__title--md {
  font-size: 19px;
}

.tile__note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.tile__note--sm {
  font-size: 14.5px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   04 — Branding
   -------------------------------------------------------------------------- */

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-card__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  margin: 0;
}

.brand-card__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   07 — About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
}

.about-photo {
  flex: 0 0 148px;
  width: 148px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.about-bio {
  flex: 1 1 320px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  max-width: 50ch;
  text-wrap: pretty;
}

.about-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 16px;
}

.about-label--tight {
  margin-bottom: 14px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.timeline li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.timeline__years {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  flex: 0 0 118px;
}

.timeline__role {
  flex: 1 1 200px;
}

.timeline__role strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  display: block;
}

.timeline__place {
  font-size: 15px;
  color: var(--muted);
}

.education {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.education strong {
  font-family: var(--display);
  font-weight: 800;
}

.education span {
  color: var(--muted);
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tools span {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13.5px;
}

.languages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}

.languages li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 360px;
}

.languages span:last-child {
  color: var(--muted);
}

.languages .is-accent {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   08 — Contact
   -------------------------------------------------------------------------- */

.contact {
  padding: clamp(64px, 8vw, 120px) var(--gutter);
  background: var(--accent);
  color: var(--bg);
}

.contact__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-end;
}

.contact__main {
  flex: 1 1 420px;
  min-width: 280px;
}

.contact__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 11, 12, 0.7);
}

.contact__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 14px 0 22px;
}

.contact__email {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(18px, 2.4vw, 30px);
  color: var(--bg);
  border-bottom: 3px solid rgba(11, 11, 12, 0.35);
  word-break: break-all;
  transition: border-color 0.15s ease;
}

.contact__email:hover {
  color: var(--bg);
  border-bottom-color: var(--bg);
}

.contact__side {
  flex: 0 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
}

.contact__side-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 11, 12, 0.65);
  margin-bottom: 4px;
}

.contact__side a {
  color: var(--bg);
  border-bottom: 1px solid rgba(11, 11, 12, 0.35);
}

.contact__side a:hover {
  color: var(--bg);
  border-bottom-color: var(--bg);
}

.contact :focus-visible {
  outline-color: var(--bg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 26px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
