:root{
  --ink:#100E0C;
  --ink-2:#171310;
  --bone:#F3ECDF;
  --bone-dim:#C9C1B2;
  --amber:#E3A13B;
  --rust:#B4491F;
  --teal:#20423E;
  --stone:#8C8579;
  --line: rgba(243,236,223,0.14);
  --line-strong: rgba(243,236,223,0.28);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--ink);
  color:var(--bone);
  font-family:'Inter', sans-serif;
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
}
body.subpage{
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, rgba(180,73,31,0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 92% 8%, rgba(32,66,62,0.32), transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(227,161,59,0.09), transparent 60%),
    var(--ink);
  background-repeat:no-repeat;
}
::selection{ background:var(--amber); color:var(--ink); }
.mono{ font-family:'Space Mono', monospace; letter-spacing:0.04em; }
.serif{ font-family:'Fraunces', serif; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

/* film grain overlay */
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:60; opacity:0.05; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scroll timecode bar */
.scrubber{
  position:fixed; top:0; left:0; right:0; height:3px; z-index:70; background:var(--line);
}
.scrubber-fill{
  height:100%; width:0%; background:linear-gradient(90deg,var(--amber),var(--rust));
  transition:width 0.08s linear;
}

/* NAV */
header{
  position:fixed; top:3px; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:22px clamp(20px,4vw,56px);
  background:linear-gradient(to bottom, rgba(16,14,12,0.85), transparent);
}
.logo{ font-family:'Fraunces', serif; font-size:20px; font-weight:600; letter-spacing:0.02em; display:flex; align-items:center; flex-shrink:0; }
.logo span{ color:var(--amber); }
.logo img{ height:36px; width:auto; max-width:none; display:block; }
nav.links{ display:flex; gap:34px; }
nav.links a{ font-size:13px; text-transform:uppercase; letter-spacing:0.12em; color:var(--bone-dim); transition:color .2s; }
nav.links a:hover{ color:var(--amber); }
.nav-right{ display:flex; align-items:center; gap:22px; }
.tc-readout{ font-size:12px; color:var(--stone); display:flex; align-items:center; gap:8px; }
.tc-dot{ width:6px; height:6px; border-radius:50%; background:var(--rust); animation:blink 1.6s infinite; }
@keyframes blink{ 50%{ opacity:0.25; } }
.nav-toggle{ display:none; background:none; border:1px solid var(--line-strong); color:var(--bone); font-size:12px; padding:8px 12px; letter-spacing:0.1em; cursor:pointer; }

/* BACK TO TOP */
.back-to-top{
  position:fixed; bottom:28px; right:24px; z-index:55;
  width:46px; height:46px; border-radius:50%; border:none;
  background:var(--amber); color:var(--ink); font-size:18px; line-height:1;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .25s ease, transform .25s ease, visibility .25s, background .2s;
}
.back-to-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--bone); }

/* HERO */
.hero{
  min-height:100svh; position:relative; display:flex; flex-direction:column; justify-content:flex-end;
  padding:0 clamp(20px,4vw,56px) 64px;
  background:var(--ink);
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.hero-video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
}
.hero::before{
  content:''; position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(ellipse 90% 60% at 30% 0%, rgba(180,73,31,0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(32,66,62,0.55), transparent 60%),
    linear-gradient(180deg, rgba(16,14,12,0.55) 0%, rgba(11,10,8,0.88) 100%);
}
.reel-tag{
  position:relative; z-index:2;
  font-size:12px; color:var(--amber); margin-bottom:22px; display:flex; align-items:center; gap:10px;
}
.reel-tag::before{ content:''; width:26px; height:1px; background:var(--amber); }
.hero h1{
  position:relative; z-index:2;
  font-family:'Fraunces', serif; font-weight:500; font-size:clamp(42px,8vw,108px);
  line-height:0.98; letter-spacing:-0.01em; max-width:16ch;
}
.hero h1 em{ font-style:italic; color:var(--stone); font-weight:300; }
.hero-sub{
  position:relative; z-index:2;
  display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-top:40px;
  padding-top:28px; padding-right:60px; border-top:1px solid var(--line); flex-wrap:wrap;
}
.hero-sub p{ max-width:34ch; color:var(--bone-dim); font-size:15.5px; }
.hero-meta{ display:flex; gap:34px; font-size:12px; }
.hero-meta div span{ display:block; color:var(--stone); margin-bottom:4px; }
.hero-meta div b{ font-family:'Space Mono',monospace; font-weight:400; font-size:13px; }
.scroll-cue{ position:absolute; z-index:2; bottom:24px; right:clamp(20px,4vw,56px); font-size:11px; color:var(--stone); writing-mode:vertical-rl; display:flex; align-items:center; gap:8px; }
.scroll-cue::after{ content:''; width:1px; height:34px; background:var(--stone); }

/* SECTION SHELL */
section{ padding:110px clamp(20px,4vw,56px); position:relative; }
.section-label{
  display:flex; align-items:center; gap:14px; margin-bottom:52px; color:var(--amber); font-size:12px;
}
.section-label::after{ content:''; height:1px; flex:1; background:var(--line-strong); }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:64px; flex-wrap:wrap; }
.section-head h2{ font-family:'Fraunces',serif; font-weight:500; font-size:clamp(30px,4vw,52px); max-width:14ch; }
.section-head p{ max-width:36ch; color:var(--bone-dim); font-size:15px; padding-bottom:6px; }

/* SERVICES */
.service-row{
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:64px; align-items:center;
  padding:52px 0; border-bottom:1px solid var(--line); cursor:pointer;
}
.service-row:last-child{ border-bottom:none; }
.service-row.rev{ direction:rtl; }
.service-row.rev > *{ direction:ltr; }
.service-row:hover .service-visual{ filter:brightness(1.1); }
.service-row:hover h3{ color:var(--amber); }
.service-row:hover .link-more::after{ transform:translateX(4px); }
.service-visual{
  aspect-ratio:4/3; border-radius:2px; position:relative; overflow:hidden;
  display:flex; align-items:flex-end; padding:20px;
  border:1px solid var(--line-strong); transition:filter .25s ease;
}
.service-visual .tag{ font-size:11px; color:var(--bone); background:rgba(16,14,12,0.55); padding:5px 10px; backdrop-filter:blur(2px); }
.v1{ background:linear-gradient(135deg,#2C1B12,#B4491F 60%,#E3A13B); }
.v2{ background:url('../img/servicio-produccion.jpg') center/cover no-repeat, linear-gradient(135deg,#0E1E1C,#20423E 55%,#3C6A62); }
.service-icon-grid{ position:absolute; inset:0; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:1fr 1fr; }
.service-icon{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; border:1px solid rgba(16,14,12,0.25); color:var(--bone); }
.service-icon svg{ width:30px; height:30px; }
.service-icon span{ font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--bone); }
.service-num{ font-family:'Space Mono',monospace; font-size:12px; color:var(--stone); margin-bottom:14px; }
.service-row h3{ font-family:'Fraunces',serif; font-weight:500; font-size:clamp(26px,3vw,36px); margin-bottom:16px; transition:color .2s; }
.service-row p{ color:var(--bone-dim); font-size:15px; max-width:46ch; margin-bottom:22px; }
.link-more{ font-size:12.5px; text-transform:uppercase; letter-spacing:0.1em; color:var(--amber); display:inline-flex; align-items:center; gap:8px; }
.link-more::after{ content:'→'; transition:transform .2s; }
.link-more:hover::after{ transform:translateX(4px); }

/* PORTFOLIO */
.work-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.work-card{
  aspect-ratio:3/4.4; position:relative; border-radius:2px; overflow:hidden; border:1px solid var(--line);
  display:flex; flex-direction:column; justify-content:space-between; padding:18px;
  cursor:pointer; transition:border-color .2s;
}
.work-card:hover{ border-color:var(--line-strong); }
.work-card:hover::before{ transform:scale(1.04); }
.work-card:hover::after{ opacity:0.25; }
.work-card::before{ content:''; position:absolute; inset:0; opacity:0.9; transition:transform .4s ease; }
.work-card::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(16,14,12,0.15),rgba(16,14,12,0.75)); transition:opacity .3s ease; }
.w1::before{ background:url('../img/trabajo-nocturno.jpg') center/cover no-repeat, linear-gradient(160deg,#12201D,#20423E 60%,#4E8079); }
.w2::before{ background:url('../img/trabajo-restaurante.jpg') center/cover no-repeat, linear-gradient(160deg,#241207,#B4491F 55%,#E3A13B); }
.w3::before{ background:url('../img/trabajo-deportes.jpg') center/cover no-repeat, linear-gradient(160deg,#1C1006,#8A5A22 55%,#E3A13B); }
.w4::before{ background:url('../img/trabajo-eventos.jpg') center/cover no-repeat, linear-gradient(160deg,#160E13,#5C3350 55%,#9A6A8C); }
.work-card > *{ position:relative; z-index:1; }
.work-top{ display:flex; justify-content:space-between; font-size:11px; color:rgba(243,236,223,0.85); }
.work-bottom b{ font-family:'Fraunces',serif; font-size:19px; display:block; font-weight:500; }
.work-bottom span{ font-size:11.5px; color:rgba(243,236,223,0.75); }

/* WEDDINGS */
.wed{
  background:linear-gradient(120deg, #1B120C, #100E0C 60%);
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.wed-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:70px; align-items:center; cursor:pointer; }
.wed-grid:hover .wed-frame{ filter:brightness(1.1); }
.wed-grid:hover .link-more::after{ transform:translateX(4px); }
.wed h2{ font-family:'Fraunces',serif; font-style:italic; font-weight:400; font-size:clamp(30px,4.4vw,54px); margin-bottom:22px; max-width:13ch; transition:color .2s; }
.wed-grid:hover h2{ color:var(--amber); }
.wed p{ color:var(--bone-dim); font-size:15.5px; max-width:44ch; margin-bottom:26px; }
.wed-tags{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:30px; }
.wed-tags span{ font-size:11.5px; border:1px solid var(--line-strong); padding:6px 12px; border-radius:20px; color:var(--bone-dim); }
.wed-frame{
  aspect-ratio:4/5; border-radius:2px; position:relative; overflow:hidden; transition:filter .25s ease;
  background:
    linear-gradient(to top, rgba(16,14,12,0.8), transparent 45%),
    url('../img/bodas-sma.JPG') center/cover no-repeat,
    linear-gradient(160deg,#3A2414,#B4491F 45%,#E3A13B 100%);
}
.wed-frame .cap{ position:absolute; bottom:18px; left:18px; right:18px; font-size:12px; color:rgba(243,236,223,0.9); }

/* CLIENTS MARQUEE */
.clients{ padding:80px 0; border-bottom:1px solid var(--line); overflow:hidden; }
.clients .section-label{ margin:0 clamp(20px,4vw,56px) 40px; }
.marquee{ display:flex; width:max-content; animation:scroll 26s linear infinite; }
.marquee:hover{ animation-play-state:paused; }
.marquee span{
  font-family:'Fraunces',serif; font-size:clamp(28px,3.4vw,44px); color:var(--bone-dim);
  padding:0 46px; white-space:nowrap; opacity:0.55;
}
@keyframes scroll{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ABOUT */
.about{ display:grid; grid-template-columns:0.7fr 1.3fr; gap:70px; }
.about-num{ font-family:'Space Mono',monospace; font-size:80px; color:var(--rust); line-height:1; opacity:0.7; }
.about-text p{ font-size:clamp(18px,2vw,24px); font-family:'Fraunces',serif; font-weight:300; line-height:1.4; color:var(--bone); max-width:32ch; }
.about-facts{ display:flex; gap:60px; margin-top:44px; flex-wrap:wrap; }
.about-facts div span{ display:block; color:var(--stone); font-size:12px; margin-bottom:6px; }
.about-facts div b{ font-family:'Space Mono',monospace; font-size:15px; }

/* CONTACT */
.contact{ text-align:center; }
.contact h2{ font-family:'Fraunces',serif; font-weight:500; font-size:clamp(34px,6vw,72px); max-width:14ch; margin:0 auto 34px; }
.contact-btns{ display:flex; justify-content:center; gap:16px; margin-bottom:60px; flex-wrap:wrap; }
.btn{
  font-size:13px; letter-spacing:0.08em; text-transform:uppercase; padding:16px 30px; border-radius:2px;
  display:inline-flex; align-items:center; gap:10px; transition:all .2s;
}
.btn-solid{ background:var(--amber); color:var(--ink); }
.btn-solid:hover{ background:var(--bone); }
.btn-line{ border:1px solid var(--line-strong); color:var(--bone); }
.btn-line:hover{ border-color:var(--amber); color:var(--amber); }
.contact-locs{ display:flex; justify-content:center; gap:60px; flex-wrap:wrap; font-size:13px; color:var(--stone); }
.contact-locs b{ display:block; color:var(--bone-dim); font-family:'Space Mono',monospace; font-size:12px; margin-bottom:6px; }

footer{
  display:flex; justify-content:space-between; align-items:center; padding:30px clamp(20px,4vw,56px);
  border-top:1px solid var(--line); font-size:12px; color:var(--stone); flex-wrap:wrap; gap:14px;
}
footer .flogo{ font-family:'Fraunces',serif; color:var(--bone-dim); }
footer .fsocial{ display:flex; gap:20px; }

@media(max-width:900px){
  nav.links{
    display:flex; flex-direction:column; gap:0;
    position:absolute; top:100%; left:0; right:0;
    background:var(--ink); border-top:1px solid var(--line);
    padding:8px clamp(20px,4vw,56px) 20px;
    opacity:0; visibility:hidden; transform:translateY(-10px); pointer-events:none;
    transition:opacity .28s ease, transform .28s ease, visibility .28s;
  }
  .nav-toggle{ display:inline-block; }
  .tc-readout{ display:none; }
  header.nav-open nav.links{
    opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto;
  }
  nav.links a{ padding:14px 0; border-bottom:1px solid var(--line); }
  .hero-sub{ flex-direction:column; align-items:flex-start; padding-right:0; }
  .scroll-cue{
    position:static; writing-mode:horizontal-tb; margin-top:24px;
    flex-direction:row-reverse; justify-content:flex-start;
  }
  .scroll-cue::after{ width:34px; height:1px; }
  .service-row, .service-row.rev{ grid-template-columns:1fr; direction:ltr; }
  .work-grid{ grid-template-columns:repeat(2,1fr); }
  .wed-grid{ grid-template-columns:1fr; }
  .about{ grid-template-columns:1fr; }
  .clients .section-label{ margin-bottom:26px; }
}
@media(prefers-reduced-motion:reduce){
  .marquee{ animation:none; }
  html{ scroll-behavior:auto; }
  .hero-video{ display:none; }
}

/* PROJECT DETAIL PAGE */
.back-link{ display:inline-flex; align-items:center; gap:8px; font-size:12px; color:var(--stone); margin-bottom:36px; transition:color .2s; }
.back-link:hover{ color:var(--amber); }
.back-link::before{ content:'←'; }

.project-hero h1{
  font-family:'Fraunces',serif; font-weight:500; font-size:clamp(38px,7vw,84px);
  line-height:1; max-width:20ch; margin:18px 0 40px;
}
.project-meta{ display:flex; gap:40px; flex-wrap:wrap; margin-bottom:36px; padding-bottom:36px; border-bottom:1px solid var(--line); font-size:12px; }
.project-meta div span{ display:block; color:var(--stone); margin-bottom:6px; }
.project-meta div b{ font-family:'Space Mono',monospace; font-weight:400; font-size:14px; }
.project-summary{ max-width:60ch; color:var(--bone-dim); font-size:16px; line-height:1.7; }

.project-gallery{ padding-top:0; }
.gallery-title{ font-family:'Fraunces',serif; font-style:italic; font-weight:400; font-size:clamp(22px,3vw,32px); color:var(--bone); margin-bottom:28px; }
.gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.gallery-item{ border-radius:2px; overflow:hidden; border:1px solid var(--line); background:var(--ink-2); }
.gallery-item img{ width:100%; height:auto; display:block; }

.project-video{ padding-top:0; }
.video-frame{ aspect-ratio:16/9; border-radius:2px; overflow:hidden; border:1px solid var(--line); background:var(--ink-2); }
.video-frame video{ width:100%; height:100%; object-fit:cover; display:block; }

.project-next{ text-align:center; border-top:1px solid var(--line); }
.project-next span{ display:block; color:var(--stone); font-size:12px; margin-bottom:14px; }
.project-next .link-more{ font-size:15px; }

.service-features{ display:flex; flex-direction:column; gap:14px; margin:36px 0 44px; max-width:60ch; }
.service-features li{ list-style:none; padding-left:26px; position:relative; color:var(--bone-dim); font-size:15.5px; }
.service-features li::before{ content:'—'; position:absolute; left:0; color:var(--amber); }

.service-cta{ display:flex; gap:16px; flex-wrap:wrap; }

@media(max-width:900px){
  .gallery-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:560px){
  .gallery-grid{ grid-template-columns:1fr; }
}
