:root {
  --wine: #7a1424;
  --wine-hover: #991427;
  --wine-soft: rgba(122, 20, 36, 0.08);
  --ink: #161214;
  --ink-soft: #5c5654;
  --paper: #f6f1ee;
  --paper-2: #efe8e3;
  --card: #fffcfa;
  --rule: rgba(22, 18, 20, 0.12);
  --rule-strong: rgba(22, 18, 20, 0.22);
  --radius: 10px;
  --display: "Bricolage Grotesque", sans-serif;
  --sans: "Figtree", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1180px;
  --header: 76px;
  --header-compact: 66px;
  --shadow: 0 1px 0 rgba(255, 252, 250, 0.85) inset, 0 10px 28px rgba(22, 18, 20, 0.08), 0 2px 8px rgba(122, 20, 36, 0.07);
  --shadow-tight: 0 1px 0 rgba(255, 252, 250, 0.9) inset, 0 14px 36px rgba(22, 18, 20, 0.12), 0 4px 12px rgba(122, 20, 36, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--wine);
  z-index: 400;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 72, "wght" 700;
  letter-spacing: -0.048em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wine);
  color: #fff;
  padding: 8px 14px;
  z-index: 500;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.lede {
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  padding: 10px 0 8px;
  background: linear-gradient(to bottom, var(--paper) 55%, color-mix(in srgb, var(--paper) 0%, transparent));
}

body:has(.hero) .site-header {
  background: transparent;
}

body:has(.hero) .site-header.is-compact {
  background: linear-gradient(to bottom, var(--paper) 75%, color-mix(in srgb, var(--paper) 0%, transparent));
}

.header-slot {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 58px;
  padding: 0 10px 0 16px;
  background: var(--card);
  border: 1px solid rgba(22, 18, 20, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: height 0.25s var(--ease), box-shadow 0.25s var(--ease), padding 0.25s var(--ease);
}

.site-header.is-compact {
  padding-top: 6px;
}

.site-header.is-compact .header-bar {
  height: 52px;
  box-shadow: var(--shadow-tight);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.brand img {
  height: 36px;
  width: auto;
  transition: height 0.25s var(--ease);
}

.site-header.is-compact .brand img {
  height: 30px;
}

.nav-desk {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-desk a {
  position: relative;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-desk a:hover {
  color: var(--ink);
  background: var(--wine-soft);
}

.nav-desk a[aria-current="page"] {
  color: var(--wine);
  background: var(--wine-soft);
}

.header-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  margin-left: auto;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
}

.drawer {
  display: none;
}

.header-sentinel {
  height: 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 8px 18px rgba(122, 20, 36, 0.22);
}

.btn-primary:hover {
  background: var(--wine-hover);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--rule-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  margin-top: calc(-1 * var(--header));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: calc(var(--header) + 8px) 0 48px;
}

.hero-copy {
  position: relative;
  isolation: isolate;
  max-width: 40rem;
  padding: 48px 52px 52px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px -24px -20px -24px;
  pointer-events: none;
  background: color-mix(in srgb, var(--card) 40%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 44px;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
}

@media (prefers-reduced-transparency: reduce) {
  .hero-copy::after {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: color-mix(in srgb, var(--card) 96%, transparent);
  }
}

.hero-copy::before {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-bottom: 22px;
  background: var(--wine);
  border-radius: 2px;
  transform-origin: left center;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.05rem);
  font-variation-settings: "opsz" 96, "wght" 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 600;
  font-variation-settings: "opsz" 96, "wght" 600;
}

.hero-copy .lede {
  margin-top: 18px;
  font-size: 1.12rem;
  max-width: 36ch;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 88px 0;
}

.manifesto {
  padding-top: 72px;
  padding-bottom: 40px;
}

.manifesto-inner {
  max-width: 38rem;
}

.manifesto h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  max-width: 16ch;
}

.manifesto p {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.oficios {
  padding-top: 48px;
}

.oficios-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: start;
}

.oficios-photo {
  margin: 0;
  position: sticky;
  top: 96px;
}

.oficios-photo img {
  width: 100%;
  height: min(68vh, 560px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.oficios h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  max-width: 18ch;
  margin-bottom: 28px;
}

.ledger {
  display: grid;
}

.ledger a {
  display: grid;
  gap: 6px;
  padding: 18px 8px 18px 16px;
  text-decoration: none;
  border-left: 2px solid var(--rule);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease);
}

.ledger a:hover {
  border-left-color: var(--wine);
  background: var(--card);
  transform: translateX(4px);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.ledger strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.ledger span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.method {
  background: var(--paper-2);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
  align-items: start;
}

.method-intro h2,
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.method-intro p,
.section-head p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid rgba(122, 20, 36, 0.22);
}

.timeline li {
  position: relative;
  padding: 0 0 32px 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--wine);
  box-shadow: 0 0 0 4px var(--paper-2);
}

.timeline .idx {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--wine);
  margin-bottom: 8px;
}

.timeline h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.timeline p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

.step {
  padding: 20px 8px 24px 18px;
  border-left: 2px solid var(--wine);
}

.step .idx {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--wine);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.step p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.product-sec {
  padding-top: 96px;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}

.product img {
  width: 100%;
  height: min(52vh, 460px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 16ch;
}

.product-copy p {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--ink-soft);
}

.product-copy p + p {
  margin-top: 12px;
}

.product-copy .btn {
  margin-top: 24px;
}

.firma {
  padding: 24px 0 88px;
}

.firma-copy {
  max-width: 38rem;
}

.firma-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}

.firma-copy p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.firma-copy p + p {
  margin-top: 12px;
}

.firma-photo {
  margin: 36px 0 0;
}

.firma-photo img,
.firma-bleed img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.firma-photo img {
  height: min(48vh, 420px);
}

.firma-bleed {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.firma-bleed img {
  height: min(56vh, 520px);
  box-shadow: var(--shadow-tight);
}

.firma-bleed figcaption {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.firma-bleed strong {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-size: 1.15rem;
}

.archive-sec h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 10px;
}

.archive-sec .lede {
  margin-bottom: 28px;
}

.archive {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.archive li {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.archive time {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--wine);
}

.archive strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.archive em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.close {
  background: var(--card);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -24px 48px rgba(22, 18, 20, 0.04);
}

.close-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.close h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  max-width: 16ch;
}

.close p {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 46ch;
}

.close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.close-facts {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.close-facts a {
  text-decoration: none;
  font-weight: 600;
}

.close-facts small {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 36ch;
}

.site-footer h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--wine);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.page-intro {
  padding: 48px 0 24px;
}

.page-intro h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  max-width: 16ch;
  font-variation-settings: "opsz" 84, "wght" 800;
}

.page-intro p {
  margin-top: 16px;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}

.service-block img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-block h2 {
  font-size: 1.7rem;
}

.service-block p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.service-meta {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.service-meta div {
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.service-meta strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.service-stack {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}

.service-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.service-card h2 {
  font-size: 1.45rem;
}

.service-card p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--wine-soft);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.95rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  padding: 24px 0 88px;
}

.contact-aside a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  margin-top: 6px;
}

.contact-aside .fact {
  margin-top: 22px;
}

.contact-aside small {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

form {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-soft);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.legal {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.form-status {
  grid-column: 1 / -1;
  color: var(--wine);
  font-weight: 600;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--d, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img {
    animation: ken 22s ease-out both;
  }

  .hero-copy::before {
    animation: rule-in 0.7s var(--ease) both;
  }

  .hero-copy h1 {
    animation: rise 0.9s var(--ease) 0.08s both;
  }

  .hero-copy .lede {
    animation: rise 0.9s var(--ease) 0.18s both;
  }

  .hero-actions {
    animation: rise 0.9s var(--ease) 0.28s both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes rule-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1024px) {
  .oficios-grid,
  .method-grid,
  .product,
  .close-grid,
  .contact-layout,
  .service-block,
  .service-pair,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    object-position: 60% 40%;
  }

  .oficios-photo {
    position: static;
  }

  .oficios-photo img,
  .product img,
  .firma-photo img,
  .firma-bleed img,
  .service-block img {
    height: 280px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .archive li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 820px) {
  body::before {
    width: 3px;
  }

  .wrap,
  .header-slot,
  .firma-bleed {
    width: min(var(--max), calc(100% - 32px));
  }

  .nav-desk,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .drawer {
    display: block;
    position: fixed;
    inset: var(--header) 12px 12px;
    background: var(--card);
    border: 1px solid rgba(22, 18, 20, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-tight);
    padding: 24px 22px;
    z-index: 280;
  }

  .site-header.is-compact + .drawer {
    top: var(--header-compact);
  }

  .drawer[hidden] {
    display: none;
  }

  .drawer a {
    display: block;
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    padding: 10px 0;
  }

  .drawer .btn {
    margin-top: 22px;
    font-family: var(--sans);
    font-size: 0.95rem;
  }

  .hero {
    align-items: flex-end;
  }

  .hero-stage {
    width: min(var(--max), calc(100% - 32px));
    padding-bottom: 32px;
  }

  .hero-copy {
    padding: 36px 32px 40px;
  }

  .hero-copy::after {
    border-radius: 36px;
    inset: -12px -14px -14px -14px;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 8.4vw, 2.7rem);
  }

  .section {
    padding: 64px 0;
  }

  form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .page-intro {
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
