/* ODA · base: tokens, fuentes, tipografía, cabecera, menú, botones */
@font-face {
  font-family: "Hubot Sans";
  src: url("../fonts/hubot-sans-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap;
}
/* Solo el cero: Hubot Sans lo dibuja con barra y en cifras de m² se lee como «θ». Se toma el de Mona Sans (misma familia, mismo eje de anchura). */
@font-face {
  font-family: "ODA Zero";
  src: url("../fonts/mona-sans-zero.woff2") format("woff2-variations");
  font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; unicode-range: U+0030;
}
@font-face {
  font-family: "Ubuntu Sans Mono";
  src: url("../fonts/ubuntu-sans-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #0f100f;
  --ink-2: #171918;
  --ink-3: #222523;
  --text: #ecece7;
  --mute: #a2a49f;
  --line: rgba(236, 236, 231, .16);
  --line-2: rgba(236, 236, 231, .32);
  --paper: #e8e9e6;
  --paper-2: #d9dbd7;
  --dark: #121312;
  --mute-dark: #575a56;
  --line-dark: rgba(18, 19, 18, .18);
  --yellow: #fab724;
  --sans: "ODA Zero", "Hubot Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Ubuntu Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --hd: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hd); }
html:not(.lenis) { scroll-behavior: smooth; }
.rm, .rm html { scroll-behavior: auto; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, ol, ul, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.paper :focus-visible, .contact :focus-visible { outline-color: var(--dark); }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--dark); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; line-height: 1.45; }
.paper { background: var(--paper); color: var(--dark); color-scheme: light; }

/* Ejes de plano: burbuja con letra, como en las plantas */
.kick { display: flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: clamp(20px, 3vw, 36px); }
.paper .kick { color: var(--mute-dark); }
.kick::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.eje { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--mono); font-size: 12px; letter-spacing: 0; flex: none; }

/* Cabecera */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hd);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gut); color: var(--text);
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hd.is-solid { background: rgba(15, 16, 15, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.hd__brand { display: block; width: 92px; color: var(--text); }
.logo { display: block; width: 100%; height: auto; aspect-ratio: 945 / 392; }
.hd__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; font-weight: 500; }
.hd__nav a { text-decoration: none; padding: 10px 0; position: relative; }
.hd__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.hd__nav a:hover::after { transform: scaleX(1); }
.hd__cta { border: 1px solid var(--line-2); padding: 9px 16px !important; border-radius: 999px; transition: background-color .3s, color .3s, border-color .3s; }
.hd__cta::after { display: none; }
.hd__cta:hover { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
.hd__menu { display: none; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.hd__menu i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.hd__menu i:first-of-type { top: 19px; }
.hd__menu i:last-of-type { top: 27px; }
.hd__menu[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.hd__menu[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); padding: calc(var(--hd) + 24px) var(--gut) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu ol { display: grid; gap: 4px; }
.menu ol a { display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: clamp(30px, 9vw, 48px); font-weight: 600; font-stretch: 112%; text-decoration: none; line-height: 1.1; border-bottom: 1px solid var(--line); }
.menu .eje { color: var(--yellow); }
.menu__foot { display: grid; gap: 6px; font-family: var(--mono); font-size: 14px; }
.menu__foot a { padding: 8px 0; }

/* Botones */
.btn { display: inline-flex; flex-direction: column; gap: 2px; padding: 16px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.2; min-height: 56px; justify-content: center; transition: transform .35s var(--ease), background-color .3s, color .3s; }
.btn .mono { font-weight: 400; font-size: 12.5px; opacity: .8; }
.btn--dark { background: var(--dark); color: var(--yellow); }
.btn--dark:hover { transform: translateY(-2px); }
.btn--line { border: 1.5px solid var(--dark); color: var(--dark); }
.btn--line:hover { background: var(--dark); color: var(--yellow); }

@media (max-width: 860px) {
  .hd__nav { display: none; }
  .hd__menu { display: block; }
  .hd__brand { width: 80px; }
}

/* Sin JS: cabecera siempre sólida y sin botón de menú (el menú necesita JS) */
html:not(.js) .hd { background: rgba(15, 16, 15, .94); border-bottom-color: var(--line); }
html:not(.js) .hd__menu { display: none; }
