/* ============================================
   RECROC STUDIO — Stylesheet
   ============================================ */

:root {
  --red: #B11226;
  --red-deep: #7A0C1B;
  --black: #0F0F10;
  --gray: #1E1F22;
  --gray-2: #2A2B2F;
  --text: #E8E8E8;
  --text-dim: #888;
  --text-faint: #555;
  --line: rgba(255,255,255,0.08);

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 40px;
  background: linear-gradient(to bottom, rgba(15,15,16,0.7), rgba(15,15,16,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-mark {
  color: var(--red);
  font-size: 14px;
  animation: pulse 2.4s var(--ease) infinite;
}
.logo sup { font-size: 0.5em; color: var(--red); margin-left: 1px; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.nav-links {
  display: flex;
  gap: 40px;
  justify-self: center;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav-links a {
  position: relative;
  color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 0.4s var(--ease);
  background: rgba(15,15,16,0.4);
}
.nav-cta:hover {
  border-color: var(--red);
  background: var(--red);
}
.nav-cta .arrow {
  transition: transform 0.4s var(--ease);
}
.nav-cta:hover .arrow { transform: translateX(4px); }

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  padding: 140px 40px 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  transform: scale(1.08);
  animation: heroBgIn 2.4s var(--ease-out) 0.1s forwards;
}

@keyframes heroBgIn {
  to { opacity: 1; transform: scale(1); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(15,15,16,0.3) 0%, rgba(15,15,16,0.75) 80%, var(--black) 100%),
    linear-gradient(to bottom, rgba(15,15,16,0.5) 0%, rgba(15,15,16,0.1) 30%, rgba(15,15,16,0.4) 70%, var(--black) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-grid {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 80px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.meta-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--red);
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: pulse 2s var(--ease) infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(60px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: auto;
  font-variation-settings: "opsz" 144;
}
.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line span {
  display: inline-block;
  animation: revealUp 1.2s var(--ease-out) backwards;
}
.hero-line:nth-child(1) span { animation-delay: 0.4s; }
.hero-line:nth-child(2) span { animation-delay: 0.55s; }
.hero-line:nth-child(3) span { animation-delay: 0.7s; }

.hero-line em {
  font-style: italic;
  color: var(--red);
  font-weight: 300;
  display: inline-block;
  animation: revealUp 1.2s var(--ease-out) 0.6s backwards;
}

@keyframes revealUp {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding: 60px 0 40px;
}

.hero-desc {
  max-width: 420px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  animation: fadeIn 1.2s var(--ease) 1s backwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollIndicator 2.5s var(--ease) infinite;
}
@keyframes scrollIndicator {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  margin-left: -40px;
  margin-right: -40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(15,15,16,0.5);
  backdrop-filter: blur(6px);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}
.marquee-track .dot {
  color: var(--red);
  font-size: 16px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-head {
  padding: 0 40px;
  margin-bottom: 80px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.label-num {
  color: var(--red);
  font-family: var(--font-display);
  font-style: italic;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 1200px;
}
.section-title em {
  font-style: italic;
  color: var(--red);
  font-weight: 300;
}

/* ============================================
   WORK / PROJECTS GRID (3 projects)
   ============================================ */

.work {
  padding: 160px 0 120px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 0 40px;
}

.project-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--gray);
  transition: transform 0.6s var(--ease);
}

/* 3 projects layout: big featured top, two below */
.project-card:nth-child(1) { grid-column: span 12; aspect-ratio: 21/9; }
.project-card:nth-child(2) { grid-column: span 7; aspect-ratio: 4/3; }
.project-card:nth-child(3) { grid-column: span 5; aspect-ratio: 4/3; }

.project-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.85);
}
.project-card:hover .project-cover {
  transform: scale(1.05);
  filter: brightness(1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,15,16,0.95) 0%, rgba(15,15,16,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  z-index: 2;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
  transform: translateY(10px);
  opacity: 0.6;
  transition: all 0.5s var(--ease) 0.1s;
}
.project-card:hover .project-meta {
  transform: translateY(0);
  opacity: 1;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.project-title em {
  font-style: italic;
  color: var(--red);
}

.project-tagline {
  font-size: 14px;
  color: var(--text);
  max-width: 80%;
  transform: translateY(10px);
  opacity: 0.7;
  transition: all 0.5s var(--ease) 0.2s;
}
.project-card:hover .project-tagline {
  transform: translateY(0);
  opacity: 1;
}

.project-view {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  padding: 10px 16px;
  background: var(--red);
  color: white;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate(20px, -20px);
  opacity: 0;
  transition: all 0.4s var(--ease);
}
.project-card:hover .project-view {
  transform: translate(0, 0);
  opacity: 1;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.services-list {
  padding: 0 40px;
}

.service {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 40px;
  align-items: baseline;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
  cursor: default;
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service:hover { padding-left: 24px; }
.service:hover h3 { color: var(--red); }

.service-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--text-faint);
}
.service h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.5s var(--ease);
}
.service p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 480px;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  padding: 160px 40px;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 80px;
  max-width: 1400px;
}

.about-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  align-self: start;
  padding-top: 12px;
}

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  color: var(--text);
}
.about-body p:not(.about-lead) {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 60px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 700px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: 160px 40px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--red-deep) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 32px 0 60px;
}
.contact-title em {
  font-style: italic;
  color: var(--red);
  font-weight: 300;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-style: italic;
  font-weight: 400;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  transition: all 0.5s var(--ease);
}
.contact-email:hover {
  color: var(--red);
  border-color: var(--red);
  gap: 28px;
}
.contact-email .arrow {
  font-style: normal;
  transition: transform 0.5s var(--ease);
}
.contact-email:hover .arrow { transform: translateX(8px); }

.contact-social {
  margin-top: 80px;
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-social a {
  color: var(--text-dim);
  position: relative;
  transition: color 0.3s var(--ease);
}
.contact-social a::after {
  content: '↗';
  margin-left: 4px;
  font-size: 11px;
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.contact-social a:hover { color: var(--red); }
.contact-social a:hover::after { transform: translate(2px, -2px); }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 32px 40px;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,15,16,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fadeIn 0.5s var(--ease);
}

.modal-shell {
  position: relative;
  width: calc(100% - 40px);
  height: calc(100vh - 40px);
  max-width: 1400px;
  background: var(--black);
  border: 1px solid var(--line);
  overflow: hidden;
  animation: modalIn 0.6s var(--ease-out);
}

@keyframes modalIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(15,15,16,0.6);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}
.modal-close:hover {
  border-color: var(--red);
  background: var(--red);
}
.close-x { font-size: 18px; line-height: 1; }

.modal-content {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: var(--red-deep); }

.modal-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}
.modal-hero img,
.modal-hero iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--black));
  pointer-events: none;
}

.modal-body {
  padding: 60px 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.modal-meta {
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.modal-meta span { display: flex; align-items: center; gap: 10px; }
.modal-meta span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.modal-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 300;
  color: var(--red);
  margin-bottom: 60px;
  max-width: 800px;
  line-height: 1.3;
}

.modal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}
.modal-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}
.modal-credits {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.modal-credits-title {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.credit-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  gap: 16px;
}
.credit-key { color: var(--text-dim); }
.credit-val { color: var(--text); text-align: right; }

.modal-media {
  display: grid;
  gap: 24px;
}
.media-item {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--gray);
}
.media-item img {
  width: 100%;
  height: auto;
  display: block;
}
.media-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.modal-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  border: 1px solid var(--red);
  background: var(--red);
  color: white;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  border-radius: 100px;
  transition: all 0.4s var(--ease);
}
.modal-more-btn:hover {
  background: transparent;
  color: var(--red);
  gap: 22px;
}
.modal-more-btn .arrow {
  font-style: normal;
  transition: transform 0.4s var(--ease);
}
.modal-more-btn:hover .arrow { transform: translate(4px, -4px); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }

  .hero { padding: 120px 24px 0; }
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
  .hero-scroll { display: none; }
  .marquee { margin-left: -24px; margin-right: -24px; }

  .section-head { padding: 0 24px; }
  .projects-grid { padding: 0 24px; gap: 16px; }
  .projects-grid > * { grid-column: span 12 !important; aspect-ratio: 16/10 !important; }

  .services-list { padding: 0 24px; }
  .service { grid-template-columns: 60px 1fr; }
  .service p { grid-column: 2; max-width: 100%; }

  .about { padding: 100px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .contact { padding: 100px 24px; }
  .footer { padding: 24px; }
  .footer-row { flex-direction: column; gap: 8px; }

  .modal-shell { width: 100%; height: 100vh; border: none; }
  .modal-body { padding: 40px 24px 60px; }
  .modal-grid { grid-template-columns: 1fr; gap: 40px; }
  .modal-credits { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }
  .modal-hero { height: 40vh; }
}

@media (max-width: 600px) {
  .hero-grid { flex-direction: column; gap: 12px; align-items: start; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .stat-num { font-size: 36px; }
  .contact-social { flex-wrap: wrap; gap: 20px; }
  .marquee-track { font-size: 22px; gap: 24px; }
}
