/* ============================================================
   TWIN CUT STUDIO — sitio web
   Sistema: Archivo Black + Space Mono · rojo #c8362d
   ============================================================ */
:root {
  --ink: #14110f;
  --paper: #f5f2ec;
  --paper-2: #ffffff;
  --dark: #14110f;
  --red: #c8362d;
  --muted: #5a534b;
  --muted-dark: #b9b3a8;
  --hair: rgba(20,17,15,0.14);
  --hair-light: rgba(246,244,239,0.16);
  --maxw: 1280px;
  --pad: 48px;
  --nav-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.black { font-family: 'Archivo Black', sans-serif; letter-spacing: -0.04em; line-height: 0.85; }
.mono { font-family: 'Space Mono', monospace; }
.red { color: var(--red); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(245,242,236,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1.5px solid var(--ink);
}
.nav.on-dark { background: rgba(20,17,15,0.82); border-bottom-color: var(--paper); color: var(--paper); }
.nav .row {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav .brand {
  font-family: 'Archivo Black', sans-serif; font-size: 19px; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 9px;
}
.nav .brand .sq { width: 12px; height: 12px; background: var(--red); display: inline-block; }
.nav .brand-logo { height: 34px; width: auto; display: block; }
.nav .links { display: flex; align-items: center; gap: 26px; }
.nav .links a {
  font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.04em;
  text-transform: lowercase; position: relative; padding: 4px 0;
}
.nav .links a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--red); transition: width .25s ease;
}
.nav .links a:hover::after, .nav .links a.active::after { width: 100%; }
.nav .links a.active { color: var(--red); }
.nav .lang {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.1em;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 5px 11px;
  display: inline-flex; gap: 6px; cursor: pointer; background: none; color: inherit;
  text-transform: uppercase;
}
.nav .lang b { color: var(--red); }
.nav .burger { display: none; }

/* ---------------- HERO ---------------- */
.hero { padding: clamp(56px, 9vw, 116px) 0 clamp(44px, 6vw, 80px); }
.hero .kicker {
  font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 26px;
  display: flex; align-items: center; gap: 10px;
}
.hero .kicker .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; }
.hero h1 {
  font-family: 'Archivo Black', sans-serif; margin: 0;
  font-size: clamp(56px, 11vw, 150px); line-height: 0.82; letter-spacing: -0.05em;
}
.hero h1 .red { color: var(--red); }
.hero .lede {
  margin-top: 30px; max-width: 620px;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--ink);
}
.hero .lede b { font-weight: 700; }

/* ---------------- generic section heads ---------------- */
.sec { padding: clamp(54px, 8vw, 104px) 0; }
.sec.alt { background: var(--paper-2); }
.sec.dark { background: var(--dark); color: var(--paper); }
.sec-label {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 18px;
}
.sec h2 {
  font-family: 'Archivo Black', sans-serif; margin: 0;
  font-size: clamp(38px, 6vw, 76px); line-height: 0.86; letter-spacing: -0.05em;
}
.sec .intro { margin-top: 22px; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.sec.dark .intro { color: var(--muted-dark); }

/* ---------------- TWO WORLDS ---------------- */
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--ink); }
.worlds .w {
  padding: clamp(28px, 4vw, 48px); min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .3s ease, color .3s ease;
}
.worlds .w + .w { border-left: 1.5px solid var(--ink); }
.worlds .w .wnum {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; display: flex; justify-content: space-between; color: var(--red);
}
.worlds .w h3 { font-family: 'Archivo Black', sans-serif; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.04em; line-height: 0.9; margin: 26px 0 14px; }
.worlds .w p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 32ch; }
.worlds .w ul { margin: 0 0 26px; padding: 0; list-style: none; }
.worlds .w li {
  font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.03em;
  text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid var(--hair);
}
.worlds .w .go {
  font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
}
.worlds .w .go .arr { color: var(--red); transition: transform .25s ease; }
.worlds .w:hover { background: var(--ink); color: var(--paper); }
.worlds .w:hover li { border-bottom-color: var(--hair-light); }
.worlds .w:hover p { color: var(--muted-dark); }
.worlds .w:hover .go .arr { transform: translateX(6px); }

/* ---------------- WORK / PORTFOLIO TILES ---------------- */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  position: relative; border: 1.5px solid var(--ink); background: var(--ink);
  overflow: hidden; aspect-ratio: 16 / 10;
}
.tile.tall { aspect-ratio: 16 / 20; }
.tile.wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.tile image-slot { width: 100%; height: 100%; }
.tile .meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 18px 20px; color: #fff;
  background: linear-gradient(to top, rgba(20,17,15,0.82), rgba(20,17,15,0) 100%);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.tile .meta .t { font-family: 'Archivo Black', sans-serif; font-size: 22px; letter-spacing: -0.03em; line-height: 0.95; }
.tile .meta .c { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.tile .tag-tr {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--red); color: #fff; padding: 5px 10px; border-radius: 999px;
}

/* ---------------- PROCESS STEPS ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.pstep { border: 1.5px solid currentColor; padding: 22px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.pstep .n { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; display: flex; justify-content: space-between; }
.pstep .n .num { color: var(--red); font-weight: 700; }
.pstep .ttl { font-family: 'Archivo Black', sans-serif; font-size: 26px; letter-spacing: -0.03em; line-height: 0.92; text-transform: uppercase; margin-top: 26px; }
.pstep .d { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.sec.dark .pstep .d { color: var(--muted-dark); }

/* ---------------- SERVICE LIST (numbered rows) ---------------- */
.svc-rows { display: flex; flex-direction: column; }
.svc-rows .r {
  display: grid; grid-template-columns: 64px 1.1fr 1.4fr; align-items: baseline; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid currentColor;
}
.svc-rows .r:first-child { border-top: 1px solid currentColor; }
.svc-rows .r .num { font-family: 'Space Mono', monospace; font-size: 14px; color: var(--red); }
.svc-rows .r .name { font-family: 'Archivo Black', sans-serif; font-size: clamp(24px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 0.95; }
.svc-rows .r .desc { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.sec.dark .svc-rows .r .desc { color: var(--muted-dark); }

/* ---------------- BIG CTA ---------------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { padding-top: clamp(54px,8vw,96px); padding-bottom: clamp(54px,8vw,96px); }
.cta-band h2 { font-family: 'Archivo Black', sans-serif; font-size: clamp(42px, 8vw, 104px); line-height: 0.82; letter-spacing: -0.05em; margin: 0; }
.cta-band .sub { font-family: 'Space Mono', monospace; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px;
  font-family: 'Space Mono', monospace; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 16px 26px; border-radius: 999px;
  border: 1.5px solid var(--ink); transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(5px); }

/* ---------------- CONTACT ---------------- */
.contact-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.contact-block + .contact-block { }
.cline {
  border-top: 1.5px solid currentColor; padding: 22px 0;
  display: flex; flex-direction: column; gap: 6px;
}
.cline .k { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.cline .v { font-family: 'Archivo Black', sans-serif; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.03em; }
.cline .v.sm { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: 'Archivo', sans-serif; font-size: 16px; color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--ink); border-radius: 0;
  padding: 13px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 -3px 0 var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle {
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1.5px solid var(--ink); padding: 9px 14px; border-radius: 999px; cursor: pointer; user-select: none;
  background: transparent; transition: background .15s ease, color .15s ease;
}
.chip-toggle.on { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------------- FOOTER ---------------- */
.foot { background: var(--dark); color: var(--paper); padding: clamp(48px,7vw,80px) 0 36px; }
.foot .top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot .big { font-family: 'Archivo Black', sans-serif; font-size: clamp(34px,5vw,64px); line-height: 0.84; letter-spacing: -0.04em; }
.foot .big .red { color: var(--red); }
.foot .col h4 { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin: 0 0 16px; }
.foot .col a, .foot .col p { display: block; font-family: 'Space Mono', monospace; font-size: 13px; letter-spacing: 0.03em; color: var(--paper); margin: 0 0 11px; opacity: .85; }
.foot .col a:hover { opacity: 1; color: var(--red); }
.foot .rule { border-top: 1px solid var(--hair-light); margin: 44px 0 22px; }
.foot .legal { display: flex; justify-content: space-between; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-dark); }

/* ---------------- reveal (static — always visible; subtle hover life lives on cards/buttons) ---------------- */
.reveal { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  :root { --pad: 24px; }
  .nav .links { display: none; }
  .nav .links.open {
    display: flex; flex-direction: column; gap: 18px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1.5px solid var(--ink); padding: 24px var(--pad);
  }
  .nav.on-dark .links.open { background: var(--dark); }
  .nav .burger { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
  .nav .burger span { width: 24px; height: 2px; background: currentColor; display: block; }
  .worlds { grid-template-columns: 1fr; }
  .worlds .w + .w { border-left: none; border-top: 1.5px solid var(--ink); }
  .work-grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .steps, .steps.four { grid-template-columns: 1fr; }
  .svc-rows .r { grid-template-columns: 40px 1fr; }
  .svc-rows .r .desc { grid-column: 2; }
  .contact-split { grid-template-columns: 1fr; gap: 40px; }
  .foot .top { grid-template-columns: 1fr; gap: 28px; }
}
