@font-face {
  font-family: Cormorant;
  src: url("assets/cormorant.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/manrope.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url("assets/barlow.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  font-family: Manrope, system-ui, sans-serif;
  --gut: clamp(1.25rem, 5vw, 5.5rem);
  --max: 96rem;
  --mono: ui-monospace, "Courier New", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: calc(5.7rem + env(safe-area-inset-bottom));
  background: var(--page);
  color: var(--ink);
}
img { display: block; max-width: 100%; object-fit: cover; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }
figure, p, h1, h2, dl, dd { margin: 0; }
h1, h2 { text-wrap: balance; }
p { line-height: 1.65; }
:focus-visible { outline: 2px solid var(--focus, #b5532c); outline-offset: 5px; }
section[id], figure[id] { scroll-margin-top: 1.5rem; }
.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gut); }
.skip-link {
  position: fixed;
  z-index: 10;
  inset: .75rem auto auto .75rem;
  padding: .8rem 1rem;
  color: #172520;
  background: #faf5e8;
  transform: translateY(-170%);
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.55rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1;
}
.wordmark-period { color: var(--accent); }
.brand-mark {
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 1.45rem;
  height: 1.3rem;
  padding-bottom: .1rem;
  color: var(--accent);
}
.brand-mark i {
  display: block;
  width: 2px;
  height: .8rem;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center bottom;
  transform: rotate(-26deg);
}
.brand-mark i:nth-child(2) { height: 1.1rem; transform: none; }
.brand-mark i:nth-child(3) { transform: rotate(26deg); }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.6rem); }
.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 700;
}
.site-nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-nav .nav-contact { padding-inline: 1rem; border: 1px solid var(--line); border-radius: 40px; }

.eyebrow {
  display: flex;
  gap: .65rem;
  align-items: center;
  font: 700 .78rem/1.3 var(--mono);
  letter-spacing: .105em;
  text-transform: uppercase;
  color: var(--quiet);
}
.eyebrow > span, .specimen-note > span {
  width: .45rem;
  height: .45rem;
  flex: 0 0 .45rem;
  border-radius: 50%;
  background: var(--accent);
}
.action {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: var(--button);
  color: var(--button-ink);
  border: 1px solid transparent;
  padding: .75rem 1.35rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: .935rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.action:hover { background: var(--button-hover); }
.text-link { font-size: .9rem; font-weight: 800; text-underline-offset: .26em; }
.section-heading { max-width: 45rem; }
.section-heading .eyebrow, .contact-inner .eyebrow { margin-bottom: .9rem; }
.section-heading > p:not(.eyebrow) { margin-top: .85rem; color: var(--quiet); max-width: 38rem; }
.section-heading .text-link { display: inline-block; margin-top: 1.35rem; }
h2 { font-size: clamp(2.25rem, 5vw, 4.75rem); line-height: 1.01; letter-spacing: -.07em; }
.contact-section {
  background: var(--contact);
  border-block: 1px solid var(--line);
  margin-top: clamp(3rem, 8vw, 8rem);
}
.contact-inner {
  display: flex;
  gap: 1.5rem 3rem;
  align-items: end;
  justify-content: space-between;
  padding-block: clamp(2.75rem, 6vw, 6rem);
}
.contact-inner > div { max-width: 46rem; }
.contact-inner h2 { font-size: clamp(2.1rem, 4.5vw, 4.2rem); }
.contact-inner p:not(.eyebrow) { margin-top: 1rem; color: var(--quiet); }
.contact-inner > .action { flex: 0 0 auto; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: .45rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.2rem;
  color: var(--quiet);
  font-size: .83rem;
}

.switcher {
  position: fixed;
  z-index: 5;
  bottom: calc(.95rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 1.25rem);
  display: flex;
  gap: .2rem;
  align-items: center;
  padding: .3rem;
  border: 1px solid #46514c;
  border-radius: 3rem;
  box-shadow: 0 .42rem 1.6rem #1719143c;
  background: #1b2520;
  color: #e9e9df;
  --focus: #edc885;
}
.switch-label {
  padding-inline: .7rem .55rem;
  color: #c5cbc3;
  font: 700 .72rem/1 var(--mono);
}
.switch-option {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding-inline: clamp(.64rem, 1.5vw, 1.1rem);
  border-radius: 3rem;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.switch-option:hover { background: #33443a; }
.switch-option[aria-current] { background: #f6eddb; color: #242d26; }
.switch-icon { width: .83rem; height: .83rem; display: inline-block; flex: 0 0 auto; }
.icon-fibra {
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 4px);
  transform: skewX(-18deg);
}
.icon-taller {
  background: linear-gradient(currentColor, currentColor) center 4px / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center 8px / 100% 1px no-repeat;
}
.icon-muestrario { border: 1px solid currentColor; border-radius: 50%; box-shadow: inset 3px 0 currentColor; }

/* Fibra */
.theme-fibra {
  --page: #101d19;
  --ink: #f3eada;
  --quiet: #c4cec2;
  --accent: #dcb674;
  --line: #3b4c42;
  --button: #e8c887;
  --button-hover: #f7daa0;
  --button-ink: #1b231a;
  --focus: #f6d699;
  --contact: #172820;
}
.fiber-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  width: min(100%, var(--max));
  min-height: clamp(35rem, 48vw, 50rem);
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}
.fiber-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, #101d19 19%, #101d19e5 27%, #101d1955 47%, transparent 64%);
}
.fiber-photo { position: absolute; z-index: -2; inset: 0 0 0 24%; overflow: hidden; }
.fiber-photo img { width: 100%; height: 100%; object-position: 59% 52%; }
.specimen-note {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  bottom: 1.2rem;
  right: 1.4rem;
  color: #f5e6ca;
  background: #101d19e9;
  border: 1px solid #536353;
  border-radius: 3rem;
  padding: .45rem .7rem;
  font-size: .79rem;
}
.specimen-note > span { width: .35rem; height: .35rem; flex-basis: .35rem; }
.fiber-copy {
  position: relative;
  padding: 3.8rem var(--gut) 4.3rem;
  max-width: 52rem;
}
.fiber-copy h1, .theme-fibra h2 { font-family: Cormorant, Georgia, serif; font-weight: 600; }
.fiber-copy h1 {
  font-size: clamp(5.25rem, 9.7vw, 10.25rem);
  line-height: .78;
  letter-spacing: -.063em;
  margin-block: 1.8rem 1.6rem;
  text-wrap: initial;
}
.fiber-copy h1 em { font-style: normal; color: var(--accent); }
.fiber-copy > p:not(.eyebrow) { max-width: 18rem; color: var(--quiet); margin-bottom: 1.65rem; }
.stage { padding-top: clamp(3rem, 7vw, 7rem); }
.stage .section-heading { margin-bottom: 1.6rem; }
.fiber-diagram {
  border: 1px solid var(--line);
  border-radius: .45rem;
  overflow: hidden;
  background: #172b21;
}
.diagram-visual {
  position: relative;
  height: clamp(16rem, 41vw, 32rem);
  background: radial-gradient(ellipse at center, #263e2c, #14271f 83%);
}
.diagram-visual > .eyebrow {
  position: absolute;
  bottom: .85rem;
  left: 1rem;
  pointer-events: none;
  padding: .45rem .55rem;
  background: #16271fe8;
  border-radius: .2rem;
}
.diagram-visual canvas, .diagram-fallback { width: 100%; height: 100%; }
.diagram-fallback { object-position: center; }
.fiber-steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.fiber-steps button {
  min-height: 3rem;
  background: transparent;
  color: var(--quiet);
  border: 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
}
.fiber-steps button + button { border-left: 1px solid var(--line); }
.fiber-steps button:hover { color: var(--ink); }
.fiber-steps button[aria-pressed="true"] { color: #1b231a; background: #e8c887; }
.fiber-steps button:focus-visible { outline-offset: -5px; outline-color: #f8f4e2; }
.fiber-origin, .atlas-origin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(3rem, 8vw, 8rem);
}
.fiber-origin img { height: auto; aspect-ratio: 5 / 3; border-radius: .2rem; }
.fiber-origin h2 { margin-top: .9rem; }
.fiber-origin p:not(.eyebrow) { margin-block: 1rem 1.2rem; color: var(--quiet); }

/* Taller */
.theme-taller {
  --page: #f1e7d9;
  --ink: #312018;
  --quiet: #694837;
  --line: #af8b753f;
  --accent: #9b331d;
  --button: #8a321f;
  --button-hover: #6e2819;
  --button-ink: #fff4e5;
  --focus: #8a321f;
  --contact: #e8d2bd;
}
.press-hero {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1rem, 4vw, 5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 6.5rem);
}
.press-copy h1, .theme-taller h2 {
  font-family: Barlow Condensed, "Arial Narrow", sans-serif;
  font-weight: 700;
}
.press-copy h1 {
  font-size: clamp(5rem, 10vw, 11rem);
  line-height: .78;
  margin-block: 1rem 1.5rem;
  letter-spacing: -.043em;
}
.press-copy h1 span, .atlas-copy h1 span { color: var(--accent); }
.press-copy > p:not(.eyebrow) { max-width: 19.5rem; color: var(--quiet); margin-bottom: 1.55rem; }
.press-figure { border: 1px solid #77534173; overflow: hidden; background: #ecd2bb; }
.press-images { position: relative; aspect-ratio: 9 / 8; isolation: isolate; }
.press-images img { position: absolute; inset: 0; width: 100%; height: 100%; }
.press-sole {
  clip-path: polygon(0 0, 0 0, 0 36%, 0 68%, 0 100%, 0 100%);
  transition: clip-path .9s cubic-bezier(.32,.02,.18,1);
}
.press-edge {
  position: absolute;
  width: 25%;
  height: 100%;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, transparent, #8b3b1754, #ffdaa871, transparent);
  transform: translateX(-105%);
  opacity: 0;
  pointer-events: none;
}
.press-figure[data-pressed="true"] .press-sole {
  clip-path: polygon(0 0, 100% 0, 103% 36%, 100% 68%, 100% 100%, 0 100%);
}
.press-figure figcaption, .atlas-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding: .78rem .9rem;
  font: 700 .81rem/1.4 var(--mono);
  color: var(--quiet);
}
.press-figure figcaption { border-top: 1px solid #77534173; }
.press-figure figcaption > :first-child, .atlas-figure figcaption > :first-child { color: var(--ink); }
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 6vw, 6rem);
  padding-top: clamp(2.5rem, 4vw, 5rem);
  border-top: 1px solid var(--line);
}
.workbench h2, .theme-taller .contact-inner h2 { letter-spacing: -.02em; }
.workbench-list { border-top: 1px solid var(--line); }
.workbench-list > div {
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(6.3rem, 1fr) 2fr;
  gap: .7rem 1rem;
  align-items: baseline;
}
.workbench-list dt { font-weight: 800; }
.workbench-list dd { font-size: .9rem; color: var(--quiet); }

/* Muestrario */
.theme-muestrario {
  --page: #ebf0eb;
  --ink: #172f2a;
  --quiet: #3f5e55;
  --line: #6f888779;
  --accent: #31664f;
  --button: #224a3c;
  --button-hover: #17362c;
  --button-ink: #f5f1e4;
  --focus: #31664f;
  --contact: #e0e9e1;
}
.theme-muestrario .site-header { background: #e7eee8; }
.atlas-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(1.35rem, 4.8vw, 5rem);
  align-items: center;
  padding-block: clamp(2.4rem, 5.9vw, 6.25rem);
  background-image: linear-gradient(#75938921 1px, transparent 1px),
    linear-gradient(90deg, #75938921 1px, transparent 1px);
  background-size: 2rem 2rem;
}
.atlas-copy { grid-area: 1 / 2; }
.atlas-figure { grid-area: 1 / 1; }
.atlas-copy h1 {
  font-size: clamp(3.2rem, 6.7vw, 7.3rem);
  line-height: .93;
  letter-spacing: -.085em;
  margin-block: 1.05rem 1.25rem;
}
.atlas-copy > p:not(.eyebrow) { max-width: 20rem; margin-bottom: 1.4rem; color: var(--quiet); }
.atlas-figure {
  background: #f6f6ed;
  border: 1px solid #71867a;
  padding: .6rem;
  box-shadow: .7rem .7rem 0 #bbccc36b;
}
.atlas-surface {
  --light: 35%;
  position: relative;
  isolation: isolate;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  background: #775434;
}
.atlas-surface img { width: 100%; height: 100%; }
.atlas-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 87% at var(--light) 44%, #fff1cb67 0%, #fff1cb1c 45%, #24190fb6 100%);
  mix-blend-mode: overlay;
}
.atlas-figure figcaption { padding-inline: .2rem; }
.atlas-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: .2rem .2rem .1rem;
  border-top: 1px solid var(--line);
}
.atlas-control label { font-size: .83rem; font-weight: 800; }
.atlas-control input {
  width: min(60%, 23rem);
  min-height: 2.75rem;
  margin: 0;
  accent-color: #28513f;
  cursor: ew-resize;
}
.atlas-origin img { height: auto; aspect-ratio: 4 / 3; border: 1px solid var(--line); }

@media (max-width: 60rem) {
  .press-hero, .atlas-hero { gap: clamp(1.15rem, 4vw, 2rem); }
  .press-copy h1 { font-size: clamp(4.25rem, 11vw, 8rem); }
  .atlas-copy h1 { font-size: clamp(2.85rem, 7.4vw, 5rem); }
}
@media (max-width: 44rem) {
  .fiber-hero { min-height: 0; display: flex; flex-direction: column; }
  .fiber-hero::after { content: none; }
  .fiber-copy { width: 100%; max-width: none; padding-block: 2.8rem 1.55rem; }
  .fiber-copy h1 { font-size: clamp(4.35rem, 14vw, 6.3rem); margin-block: 1.2rem 1.25rem; }
  .fiber-copy > p:not(.eyebrow) { margin-bottom: 1.25rem; }
  .fiber-photo {
    order: 1;
    inset: auto;
    position: relative;
    width: 100%;
    height: clamp(15.25rem, 74vw, 25rem);
  }
  .fiber-photo::after { content: ""; position: absolute; inset: 0 0 auto; height: 12%; background: linear-gradient(#101d19, transparent); }
  .fiber-photo img { object-position: 58% 55%; }
  .specimen-note { right: var(--gut); bottom: .8rem; }
  .press-hero, .atlas-hero, .fiber-origin, .atlas-origin, .workbench { grid-template-columns: minmax(0, 1fr); }
  .press-hero, .atlas-hero { padding-block: 2.35rem 2.65rem; gap: 1.25rem; }
  .press-copy h1 { font-size: clamp(4.25rem, 15vw, 6rem); line-height: .85; margin-block: .7rem .95rem; }
  .atlas-copy h1 { font-size: clamp(3rem, 11vw, 5rem); margin-block: .7rem .85rem; }
  .press-copy > p:not(.eyebrow), .atlas-copy > p:not(.eyebrow) { margin-bottom: 1.1rem; }
  .press-images { aspect-ratio: 4 / 3; }
  .atlas-surface { aspect-ratio: 4 / 3; }
  .atlas-copy, .atlas-figure { grid-area: auto; }
  .fiber-origin img { order: 1; }
  .contact-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 28rem) {
  .site-nav { gap: .8rem; }
  .site-nav .nav-contact { padding-inline: .65rem; }
  .site-nav a { font-size: .79rem; }
  .wordmark { gap: .25rem; font-size: 1.15rem; }
  .brand-mark { width: 1.2rem; }
  .switch-label { display: none; }
  .switch-option { gap: .34rem; }
  .atlas-control { gap: .45rem; }
  .atlas-control input { width: 53%; }
}
@media (max-width: 22rem) {
  .site-nav a[href="#origen"] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
