/* Vazio Esculpido — site stylesheet.
   Tokens follow the brand handoff (Modernist system + brand palette):
   ink on paper, Archivo everywhere, 0 radius, 2px ink rules, red once per view. */

/* Archivo is self-hosted, not pulled from fonts.googleapis.com. Two reasons:
   an EU company hotlinking Google Fonts hands every visitor's IP to a US
   third party with no consent step, and the second round-trip to gstatic
   showed as a visible flash on load. These are the variable files Google
   serves (v25, weight 100–900 in one file), split on the same subsets, so
   the rendering is identical. Vietnamese is dropped — nothing here needs it. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #211F1D;
  --paper: #ECE7DC;
  --bone: #F4F1EA;
  --void-tan: #E5D6C4;
  --pebble: #3B3C36;
  --stone: #8A8377;
  --red: #EC3013;
  --red-600: #dd2b0f;
  --red-700: #ae1800;
  --body-text: #3a3734;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body-text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(44px, 6.2vw, 82px); }
h2 { font-size: clamp(30px, 3.4vw, 40px); }
h3 { font-size: 20px; }

p { margin: 0 0 14px; }
img, svg { display: block; max-width: 100%; }

a { color: var(--red-700); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--red) 30%, transparent); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* — kickers: red 2-digit number + tracked caps label — */
.kicker {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
}
.kicker .num {
  color: var(--red);
  letter-spacing: 0;
}

/* — navigation — */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 40px;
  border-bottom: 2px solid var(--ink);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  text-decoration: none;
}
.nav-mark { width: 38px; height: 38px; }
.nav-word {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav a:not(.nav-brand) {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a:not(.nav-brand):hover { color: var(--red); }

/* — hero: copy left, full-height statue cut at the right viewport edge — */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 48px 40px;
  padding-left: max(40px, calc(50vw - 550px));
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero .lead {
  font-size: 19px;
  max-width: 34em;
}

/* — the statue (activated by statue.js when frames exist) — */
.statue-card {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(30vw, 52vh);
  border-left: 2px solid var(--ink);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.8s;
}
.statue-card.on { opacity: 1; }
.statue-card canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.magnet { transition: transform 0.18s ease-out; }

/* — scroll-driven motion (modern browsers only, motion-safe only) — */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rule {
      transform-origin: left;
      animation: draw-rule linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 16%;
    }
    section.wrap > * , .poster p {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 18%;
    }
  }
}
@keyframes draw-rule { from { transform: scaleX(0); } }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: none; }
}

/* — buttons: flush-left labels, 0 radius — */
.btns { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  text-decoration: none;
  /* A <button> takes the browser UI font unless told otherwise; the hero
     buttons are anchors, so this only shows up once a real button exists. */
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 14px 22px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-600); }
.btn-primary:active { background: var(--red-700); }
.btn-secondary { border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--ink) 14%, transparent); }

/* — sections — */
.rule { height: 2px; border: 0; margin: 0; background: var(--ink); }
section.wrap { padding-top: 72px; padding-bottom: 72px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.card {
  background: var(--bone);
  border: 1px solid var(--ink);
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 15px; }

/* — products: editorial rows separated by rules, deliberately not cards — */
.section-lead {
  max-width: 44em;
  font-size: 19px;
}

.products {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}
.product {
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr;
  gap: 18px 48px;
  padding: 34px 0;
  border-top: 1px solid var(--ink);
}
.product:last-child { border-bottom: 1px solid var(--ink); }
.product h3 { font-size: 26px; margin: 0 0 8px; }
.product-cat {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.product-main p { margin: 0 0 20px; max-width: 44em; }

.product-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
}
.product-tags li {
  border: 1px solid color-mix(in srgb, var(--ink) 32%, transparent);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

.product-link {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
}
.product-link::after { content: "\2192"; }
.product-link:hover { color: var(--red); border-bottom-color: var(--red); }

.studio-body { max-width: 46em; }
.studio-body em { font-style: normal; color: var(--ink); font-weight: 500; }

/* — contact form — */
.contact-form {
  display: grid;
  gap: 22px;
  max-width: 620px;
  margin-top: 36px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--stone); }
.field.invalid input,
.field.invalid textarea { border-color: var(--red); }

/* Off-screen rather than display:none — some bots skip hidden fields. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-foot .btn[disabled] { opacity: 0.55; cursor: default; }
.form-status { margin: 0; font-size: 14px; line-height: 1.45; }
.form-status.ok { color: var(--ink); font-weight: 500; }
.form-status.err { color: var(--red-700); }

.contact-alt { margin-top: 30px; font-size: 15px; color: var(--stone); }
.contact-alt a { font-weight: 600; }

/* — 404 page — */
/* The page is shorter than the viewport, so the footer needs pushing to the
   bottom. A flex column on the body does it without hard-coding the nav and
   footer heights, which both change with the font. */
.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
/* width:100% is load-bearing. `.wrap` carries `margin: 0 auto`, and auto
   margins on a flex item's cross axis switch off stretch — without this the
   block shrinks to fit its text and stops matching the footer's 1180px grid. */
.page-404 .notfound { flex: 1 1 auto; width: 100%; }

/* Not `section.wrap`, so it does not inherit that rule's vertical padding. */
.notfound {
  padding-top: 96px;
  padding-bottom: 96px;
}
.notfound .lead { font-size: 19px; max-width: 34em; }

/* — closing poster statement: the one red field — */
.poster { background: var(--red); padding: 96px 0; }
.poster p {
  margin: 0;
  color: var(--paper);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* — footer — */
.footer { background: var(--ink); padding: 40px 0; }
.footer .wrap {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-word {
  color: var(--bone);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-right: auto;
}
.footer p, .footer a { color: #A79F92; font-size: 13px; margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--bone); }

@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  .nav { padding: 14px 24px; gap: 18px; }
  .nav-word { display: none; }
  .hero { display: block; min-height: 0; padding: 48px 24px 0; }
  .statue-card { position: relative; width: calc(100% + 48px); margin: 24px -24px 0; height: 56vh; }
  .cards { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  section.wrap { padding-top: 56px; padding-bottom: 56px; }
}
