/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #090909;
  color: #eee;
  font-family: "Barlow Condensed", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { width: 100%; height: 100%; }

.grain {
  position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.site-header {
  position: absolute; z-index: 10; top: 0; left: 0; width: 100%; height: 92px;
  padding: 25px 4vw; display: flex; align-items: center; justify-content: space-between;
}
.brand { font-size: 30px; font-weight: 900; letter-spacing: .04em; }
.brand span { color: #eee; }
.brand b { color: #d92525; }
.main-nav { display: flex; gap: 38px; text-transform: uppercase; font-size: 14px; letter-spacing: .07em; }
.main-nav a { opacity: .8; position: relative; white-space: nowrap; }
.main-nav a.active:after,
.main-nav a:hover:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: #e22626;
}
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: #641317;
  display: flex;
  flex-direction: column;
}
.hero-top {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  height: 88vh;
  flex: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(120% 130% at 78% 30%, #7a1a1e 0%, #4c0f12 42%, #24070a 78%, #150406 100%);
  overflow: hidden;
}
.hero-watermark {
  position: absolute;
  top: -6%;
  left: -10%;
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(90px, 13vw, 210px);
  line-height: .86;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 90, 90, .35);
  letter-spacing: -.02em;
  opacity: .55;
  white-space: nowrap;
  user-select: none;
  transform: skewY(-1deg);
}
.hero-character {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 62%;
  object-fit: cover;
  object-position: top;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 2, 3, .78) 0%, rgba(20, 4, 5, .42) 34%, rgba(20, 4, 5, .08) 58%, rgba(0, 0, 0, .18) 100%);
}
.hero-content { position: relative; z-index: 3; padding: 24vh 0 0 8vw; width: 60%; max-width: 760px; }
.eyebrow {
  display: inline-block; background: #0a0a0a; padding: 8px 18px; margin: 0 0 22px;
  font: 700 15px "Space Mono", monospace; letter-spacing: .08em;
}
.hero h1 {
  font-size: clamp(88px, 13vw, 200px); line-height: .78; margin: 0; color: #f1eee7;
  letter-spacing: -.06em; font-weight: 900; text-shadow: 5px 5px 0 rgba(0, 0, 0, .25);
}
.ar-mark {
  display: block; font-size: clamp(66px, 8vw, 130px); font-weight: 900; color: #df2429;
  line-height: .85; margin-left: 12%; font-style: italic; letter-spacing: -.05em;
}
.intro { display: flex; gap: 20px; margin: 26px 0 32px; font: 15px/1.65 "Space Mono", monospace; }
.rule { width: 4px; background: #e3292d; display: block; flex: none; }
.intro p { margin: 0; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { padding: 15px 25px; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; border: 1px solid #e3292d; transition: transform .15s ease; }
.btn-primary { background: #e3292d; color: #080808; }
.btn-ghost { background: transparent; color: #eee; }
.btn:hover { transform: translateY(-2px); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 4vw; z-index: 4; font: 11px "Space Mono", monospace; letter-spacing: .15em;
}
.scroll-cue span { display: inline-block; width: 35px; height: 1px; background: #e3292d; margin-right: 10px; vertical-align: middle; }

/* hero bottom strip */
.hero-bottom {
  flex: none;
  background: #0a0a0a;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  padding: 34px 8vw;
  align-items: start;
}
.hero-bottom .kicker { margin: 0 0 12px; }
.hero-bottom-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.mini-stamp {
  flex: none; width: 34px; height: 34px; border: 1px solid #e3292d; color: #e3292d;
  display: flex; align-items: center; justify-content: center; font: 700 15px "Space Mono", monospace;
  transform: rotate(-6deg);
}
.hero-bottom-row p { margin: 0; font: 13px/1.6 "Space Mono", monospace; color: #bbb; }
.hero-bottom-info .text-link { font-size: 12px; }
.hero-bottom-social { text-align: right; }
.social-row { display: flex; gap: 22px; justify-content: flex-end; }
.social-row a, .social-tile .social-icon, .socials a {
  color: #eee;
}
.social-row a { width: 22px; height: 22px; display: block; }
.social-row a:hover { color: #e3292d; }

/* ---------- sections shared ---------- */
.section { padding: 120px 8vw; }
.kicker { font: 12px "Space Mono", monospace; color: #e3292d; letter-spacing: .12em; margin: 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 60px; gap: 30px; }
.section h2, .contact h2 { font-size: clamp(48px, 6.5vw, 100px); line-height: .84; margin: 12px 0 0; text-align: right; font-weight: 900; }
.section h2 em, .contact h2 em { color: #e3292d; font-style: normal; }

/* ---------- projects ---------- */
.projects { background: #0a0a0a; position: relative; }

.project-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 22px; 
}

.project-card {
  padding: 30px;
  /*min-height: 300px;*/
  border: 1px solid #292929;
  display: flex;
  flex-direction: column;
  /*justify-content: space-between;*/
  background: linear-gradient(145deg, #5e1115, #1b0809);
  position: relative;
  overflow: hidden;
  gap: 30px;
}
.project-card:before {
  content: ""; position: absolute; width: 180%; height: 100px; left: -30%; top: 50%;
  background: #000; opacity: .18; transform: rotate(-18deg);
}
.project-card--large { /*min-height: 340px;*/ }
.project-card--dark { background: #111; }
.project-number { font: 12px "Space Mono", monospace; color: #e3292d; }
.project-card > div > p:first-child { font: 11px "Space Mono", monospace; color: #aaa; margin: 10px 0 0; }
.project-card h3 { font-size: 44px; line-height: .9; margin: 8px 0 10px; position: relative; }
.project-desc { font: 13px/1.6 "Space Mono", monospace !important; color: #ccc !important; margin: 0 0 16px !important; max-width: 40ch; }
.project-card > div > a { font: 12px "Space Mono", monospace; color: #e3292d; }

.project-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* height: 100%; */
}

.project-img > img{
  
  height: 100%;
  object-fit: cover;
  width: 150px;
}

.project-img{
  height: 150px;
}

/* ---------- courses ---------- */
.courses { background: #111; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.course-card { border: 1px solid #292929; background: #0a0a0a; overflow: hidden; display: block; transition: transform .15s ease, border-color .15s ease; }
.course-card:hover { transform: translateY(-4px); border-color: #e3292d; }
.course-thumb { aspect-ratio: 16/9; overflow: hidden; background: #000; }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-info { padding: 18px 20px 22px; }
.course-info h3 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.01em; }
.course-info p { margin: 0; font: 12.5px/1.6 "Space Mono", monospace; color: #aaa; }

/* ---------- story ---------- */
.story {
  min-height: 780px; background: #111; display: grid; grid-template-columns: .7fr 1.2fr .5fr;
  gap: 50px; align-items: center; position: relative; overflow: hidden;
}
.story-label { writing-mode: vertical-rl; font: 11px "Space Mono", monospace; color: #e3292d; }
.story-copy h2 { text-align: left; font-size: clamp(52px, 6.5vw, 108px); margin: 20px 0; }
.body-copy { max-width: 550px; font: 15px/1.8 "Space Mono", monospace; color: #bbb; }
.text-link { display: inline-block; margin-top: 15px; color: #e3292d; font: 12px "Space Mono", monospace; }
.story-stamp { font-size: 260px; font-weight: 900; color: #e3292d; line-height: .7; transform: rotate(-10deg); opacity: .15; }
.story-stamp small { font-size: 90px; }

/* ---------- manifesto ---------- */
.manifesto { background: #d92525; color: #0a0a0a; padding: 120px 8vw; }
.manifesto-inner { max-width: 1100px; margin: auto; }
.manifesto .kicker { color: #0a0a0a; }
.manifesto-text { font-size: clamp(52px, 8vw, 130px); line-height: .84; font-weight: 900; margin: 30px 0; }
.manifesto-text span { font-style: italic; }
.mono { font: 12px "Space Mono", monospace; }

/* ---------- redes / social section ---------- */
.social-section { background: #0a0a0a; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.social-tile {
  display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid #292929;
  font: 15px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .04em;
  transition: border-color .15s ease, background .15s ease;
}
.social-tile:hover { border-color: #e3292d; background: #150607; }
.social-tile .social-icon { width: 22px; height: 22px; flex: none; color: #e3292d; }

/* ---------- contact ---------- */
.contact { background: #0a0a0a; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact h2 { text-align: left; margin-top: 25px; }
.contact-side { align-self: end; max-width: 500px; font: 14px/1.7 "Space Mono", monospace; color: #aaa; }
.contact-mail { display: block; color: #eee; font: clamp(28px, 4vw, 55px) "Barlow Condensed", sans-serif; margin: 35px 0; }
.socials { display: flex; gap: 28px; }
.socials a { width: 24px; height: 24px; display: block; }
.socials a:hover { color: #e3292d; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid #222; background: #090909; padding: 25px 4vw;
  display: flex; justify-content: space-between; font: 10px "Space Mono", monospace; color: #777;
}
.site-footer a { color: #e3292d; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-content { width: 82%; }
  .hero-character { max-width: 74%; opacity: .9; }
}

@media (max-width: 800px) {
  .site-header { height: 75px; padding: 20px 6vw; }
  .brand { font-size: 24px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; }
  .menu-toggle span { width: 27px; height: 2px; background: #eee; }
  .main-nav {
    position: absolute; top: 75px; right: 5vw; display: none; flex-direction: column; gap: 18px;
    background: #090909; border: 1px solid #222; padding: 25px; width: 200px; z-index: 15;
  }
  .main-nav.open { display: flex; }

  .hero-top { min-height: 640px; height: auto; aspect-ratio: unset; padding-bottom: 60px; }
  .hero-bg { background-position: 70% center; }
  .hero-character { position: absolute; right: -6%; bottom: 0; max-width: 92%; height: 88%; opacity: .55; }
  .hero-watermark { font-size: 22vw; left: -14%; }
  .hero-content { padding: 20vh 7vw 0; width: 100%; max-width: 640px; }
  .hero h1 { font-size: 22vw; }
  .ar-mark { font-size: 15vw; }
  .intro { font-size: 12px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 26px; padding: 30px 7vw; }
  .hero-bottom-social { text-align: left; }
  .social-row { justify-content: flex-start; }

  .section { padding: 80px 7vw; }
  .section-head { display: block; }
  .section h2 { font-size: 15vw; text-align: left; margin-top: 24px; }

  .project-grid, .course-grid, .social-grid { grid-template-columns: 1fr; }
  .project-card, .project-card--large { min-height: 260px; }

  .story { grid-template-columns: 1fr; min-height: auto; }
  .story-label { writing-mode: horizontal-tb; }
  .story-stamp { position: absolute; right: -50px; bottom: -30px; }

  .contact { grid-template-columns: 1fr; gap: 40px; }
  .site-footer { flex-direction: column; gap: 12px; }
  .scroll-cue { display: none; }
}

@media (max-width: 460px) {
  .hero-top { min-height: 560px; }
  .hero-character { max-width: 100%; opacity: .4; }
  .hero-content { padding-top: 18vh; }
}
