/* ============================================================
   MAHDI KHMILI — DESIGN SYSTEM v7 "TALLY"
   Concept: a filmmaker's actual working vocabulary — the red
   record-tally light, cinematic 2.35:1 crops, timecodes as
   captions. Near-black base, one true accent (tally red), warm
   paper white for light passages. Bold condensed display type
   for headlines, a serif only for poetry/quotes, mono for
   timecodes and structural labels.
   ============================================================ */

:root {
  --black:  #0b0b0c;
  --black-2:#141415;
  --paper:  #f2f0ec;
  --paper-dim: #cfccc4;
  --rec:    #e8362a;
  --rec-dim: #7a1f18;
  --steel:  #7a7c7f;
  --line:   rgba(242,240,236,0.14);
  --line-strong: rgba(242,240,236,0.28);

  --font-display: 'Archivo', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--paper);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ---------- REC indicator (the signature element) ---------- */
.rec {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-dim);
}
.rec .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rec);
  box-shadow: 0 0 0 0 rgba(232,54,42,0.5);
  animation: pulse 2s infinite;
}
@media (prefers-reduced-motion: reduce) { .rec .dot { animation: none; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,54,42,0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(232,54,42,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,54,42,0); }
}

/* ---------- NAV ---------- */
.nav2 {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,12,0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav2 .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.nav2 .logo { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.nav2 .links { display: flex; gap: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-dim); }
.nav2 .links a { padding-bottom: 3px; border-bottom: 1px solid transparent; }
.nav2 .links a:hover, .nav2 .links a.active { color: var(--paper); border-color: var(--rec); }
.nav2 .toggle2 { display: none; background: none; border: 1px solid var(--line-strong); color: var(--paper); font-family: var(--font-mono); font-size: 11px; padding: 8px 12px; cursor: pointer; }
.mobile-menu2 { display: none; flex-direction: column; padding: 0 40px 20px; font-family: var(--font-mono); font-size: 13px; }
.mobile-menu2 a { padding: 12px 0; border-top: 1px solid var(--line); color: var(--paper-dim); }
.mobile-menu2.open { display: flex; }

/* ---------- HERO: full-bleed cinematic crop ---------- */
.hero2 { position: relative; width: 100%; aspect-ratio: 2.35 / 1; min-height: 420px; overflow: hidden; background: var(--black-2); }
.hero2 img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero2::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.05) 0%, rgba(11,11,12,0.15) 45%, rgba(11,11,12,0.94) 100%);
}
.hero2-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 40px 44px; z-index: 2; }
.hero2-content .inner { max-width: var(--max); margin: 0 auto; }
.hero2 h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96; letter-spacing: -0.02em; margin: 14px 0 16px; text-transform: uppercase;
}
.hero2 .lede { max-width: 520px; font-size: 15px; color: var(--paper-dim); line-height: 1.7; margin: 0 0 26px; }
.tc { font-family: var(--font-mono); font-size: 11px; color: var(--steel); letter-spacing: 0.08em; }

/* ---------- BUTTONS ---------- */
.btn2 {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 22px; border: 1px solid var(--line-strong); color: var(--paper); cursor: pointer; background: transparent;
}
.btn2:hover { border-color: var(--rec); color: var(--rec); }
.btn2.solid { background: var(--paper); color: var(--black); border-color: var(--paper); }
.btn2.solid:hover { background: var(--rec); border-color: var(--rec); color: var(--paper); }
.btn-row2 { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- STRIP (recognition, mono row) ---------- */
.strip {
  display: flex; gap: 36px; flex-wrap: wrap; padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 11px; color: var(--steel); letter-spacing: 0.03em;
}
.strip strong { color: var(--paper); font-weight: 500; }

/* ---------- SECTION ---------- */
.sec { padding: 72px 40px; max-width: var(--max); margin: 0 auto; }
.sec.tight { padding-top: 0; }
.eyebrow2 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rec); margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.eyebrow2::before { content: ''; width: 22px; height: 1px; background: var(--rec); display: inline-block; }
.sec h2.big {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.01em; line-height: 1.05; margin: 0 0 20px; max-width: 720px;
}

/* ---------- MEDIUM GRID (Film / Photography / Poetry) ---------- */
.medium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.medium-cell { background: var(--black); padding: 40px 28px; transition: background 0.2s; }
.medium-cell:hover { background: var(--black-2); }
.medium-cell .tc { display: block; margin-bottom: 24px; }
.medium-cell h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: -0.01em; }
.medium-cell p { font-size: 14px; color: var(--paper-dim); line-height: 1.65; margin: 0 0 22px; }
.medium-cell a.go { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); border-bottom: 1px solid var(--rec); padding-bottom: 3px; }
.medium-cell a.go:hover { color: var(--rec); }

/* ---------- FEATURE (image + text, cinematic crop) ---------- */
.feat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.feat2:first-of-type { border-top: none; }
.feat2 .media { aspect-ratio: 2.35/1; overflow: hidden; background: var(--black-2); }
.feat2 .media img { width: 100%; height: 100%; object-fit: cover; }
.feat2 h3 { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin: 0 0 10px; letter-spacing: -0.01em; }
.feat2 p { font-size: 14px; color: var(--paper-dim); line-height: 1.75; margin: 0 0 14px; }
.feat2 .credits2 { font-family: var(--font-mono); font-size: 10.5px; color: var(--steel); }

/* ---------- QUOTE (poetry serif moment) ---------- */
.quote2 { font-family: var(--font-serif); font-style: italic; font-size: clamp(24px, 3vw, 36px); line-height: 1.4; color: var(--paper); max-width: 780px; margin: 0; }
.quote2 .by { display: block; margin-top: 20px; font-family: var(--font-mono); font-style: normal; font-size: 11px; color: var(--steel); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- FOOTER ---------- */
.foot2 { border-top: 1px solid var(--line); padding: 48px 40px 28px; }
.foot2 .wrap { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.foot2 .big-link { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 44px); letter-spacing: -0.01em; }
.foot2 .big-link:hover { color: var(--rec); }
.foot2 .meta2 { font-family: var(--font-mono); font-size: 11px; color: var(--steel); margin-top: 10px; }
.foot2 .socials2 { display: flex; gap: 18px; font-size: 18px; color: var(--paper-dim); }
.foot2 .socials2 a:hover { color: var(--rec); }
.foot2 .copyright2 { font-family: var(--font-mono); font-size: 10px; color: var(--steel); margin-top: 32px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .medium-grid { grid-template-columns: 1fr; }
  .feat2 { grid-template-columns: 1fr; gap: 24px; }
  .nav2 .links { display: none; }
  .nav2 .toggle2 { display: inline-block; }
}
@media (max-width: 520px) {
  .wrap, .sec, .nav2 .wrap, .foot2 { padding-left: 20px; padding-right: 20px; }
  .hero2-content { padding-left: 20px; padding-right: 20px; }
  .hero2 { aspect-ratio: 4/5; }
}

/* ============================================================
   EXTENSIONS — interior pages (v7 Tally, applied site-wide)
   ============================================================ */

/* ---------- PAGE HEAD (non-home pages) ---------- */
.page-head2 { padding: 56px 40px 44px; border-bottom: 1px solid var(--line); }
.page-head2 .inner { max-width: var(--max); margin: 0 auto; }
.page-head2 h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 54px);
  text-transform: uppercase; letter-spacing: -0.01em; margin: 0 0 14px; line-height: 1.02;
}
.page-head2 .sub2 { font-family: var(--font-mono); font-size: 13px; color: var(--paper-dim); max-width: 620px; line-height: 1.6; }

/* ---------- generic link-out ---------- */
.go2 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper); border-bottom: 1px solid var(--rec); padding-bottom: 3px; display: inline-block; }
.go2:hover { color: var(--rec); }

/* ---------- GRIDS ---------- */
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- CARD ---------- */
.card2 { border: 1px solid var(--line); padding: 26px; background: var(--black-2); }
.card2 .meta2 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--rec); margin: 0 0 10px; }
.card2 h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 10px; letter-spacing: -0.005em; }
.card2 p { font-size: 13.5px; color: var(--paper-dim); line-height: 1.65; margin: 0 0 18px; }

/* ---------- TAG (cause / charity) ---------- */
.tag2 { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); padding: 5px 10px; font-family: var(--font-mono); font-size: 10px; color: var(--paper-dim); }
.tag2 i { font-size: 12px; color: var(--rec); }

/* ---------- simple photo box (prints, no ornamentation) ---------- */
.sphoto2 { width: 100%; aspect-ratio: 4/5; background: var(--black-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--steel); font-family: var(--font-mono); font-size: 11px; margin-bottom: 16px; overflow: hidden; }
.sphoto2 img { width: 100%; height: 100%; object-fit: cover; }
.sphoto2 i { font-size: 22px; }

/* ---------- TRAIL (journey breadcrumb) ---------- */
.trail2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--paper-dim); }
.trail2 .stop2 { color: var(--paper); }
.trail2 .arrow2 { color: var(--rec); }

/* ---------- TIMELINE ---------- */
.tl2 { border-left: 1px solid var(--line-strong); padding-left: 26px; display: flex; flex-direction: column; gap: 26px; }
.tl2 .it2 { position: relative; }
.tl2 .it2::before { content: ''; position: absolute; left: -31px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.tl2 .dt2 { font-family: var(--font-mono); font-size: 11px; color: var(--rec); margin: 0 0 5px; letter-spacing: 0.04em; }
.tl2 p { font-size: 13.5px; color: var(--paper-dim); margin: 0; line-height: 1.6; }
.tl2 em { font-style: normal; font-family: var(--font-display); font-weight: 700; color: var(--paper); }

/* ---------- CONTACT FORM ---------- */
.fg2 { margin-bottom: 20px; }
.fg2 label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rec); margin-bottom: 8px; }
.fg2 input, .fg2 textarea {
  width: 100%; background: var(--black-2); border: 1px solid var(--line-strong); color: var(--paper);
  padding: 13px 14px; font-family: var(--font-body); font-size: 14px;
}
.fg2 input:focus, .fg2 textarea:focus { outline: none; border-color: var(--rec); }
.fg2 textarea { min-height: 150px; resize: vertical; }

/* ---------- placeholder box (video/photo not yet supplied) ---------- */
.ph2 { aspect-ratio: 2.35/1; background: var(--black-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--steel); font-family: var(--font-mono); font-size: 11px; }

/* ---------- note / todo ---------- */
.note2 { border: 1px dashed var(--line-strong); color: var(--paper-dim); font-family: var(--font-mono); font-size: 11px; padding: 12px 16px; margin: 0 0 28px; line-height: 1.6; }
.note2::before { content: '# '; color: var(--rec); }

@media (max-width: 860px) {
  .g2, .g3 { grid-template-columns: 1fr; }
}
