/* Colores y espaciado */
:root {
  --ink: #0d141c;
  --white: #fff;
  --ivory: #f4f2ee;
  --muted: #5d6267;
  --border: #e3e3df;
  --space: clamp(22px, 4.5vw, 76px);
}
/* Base y accesibilidad */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  scrollbar-gutter: stable;
  scrollbar-color: var(--muted) var(--ivory);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font:
    16px/1.65 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #38678a;
  outline-offset: 6px;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
/* Encabezado y navegacion */
header {
  min-height: 64px;
  padding: 8px var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  color: var(--ink);
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}
.wordmark {
  font-size: 35px;
  font-weight: 700;
  letter-spacing: -3px;
  display: flex;
  align-items: center;
  gap: 20px;
  line-height: 1;
}
.wordmark span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
}
nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
nav a {
  padding: 10px 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--white);
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
/* Portada con imagen de fondo y contacto */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(620px, calc(100svh - 64px));
  color: var(--white);
  background: var(--ink);
}
.hero-image {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: -2;
}
.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(5 15 23 / 48%);
}
.hero-image figcaption {
  position: absolute;
  left: var(--space);
  bottom: 28px;
  max-width: calc(100% - 160px);
  padding: 5px 9px;
  background: rgb(5 15 23 / 70%);
  color: var(--white);
  font-size: 11px;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
  padding: 70px var(--space) 80px;
}
.hero-copy {
  padding-top: 18px;
  max-width: 740px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin: 0 0 28px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(52px, 5.4vw, 88px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}
h1 span {
  display: block;
}
.hero-description {
  max-width: 38ch;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.6;
  margin-bottom: 28px;
}
.text-link {
  display: inline-block;
  border-bottom: 1px solid;
  padding: 8px 0;
  font-size: 14px;
  min-height: 44px;
}
.hero-contact h2 {
  font-size: clamp(25px, 2.4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 24px;
  text-wrap: initial;
}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.contact-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 12px;
}
.contact-fields input,
.contact-fields select,
.contact-fields textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
}
.contact-fields input::placeholder,
.contact-fields textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.contact-fields input:focus-visible,
.contact-fields select:focus-visible,
.contact-fields textarea:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}
.contact-fields textarea {
  resize: none;
  min-height: 72px;
}
.contact-message {
  grid-column: 1 / -1;
}
.contact-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--white);
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  letter-spacing: 0.4px;
}
.contact-submit:disabled {
  cursor: not-allowed;
}
.contact-preview-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  max-width: 42ch;
}
.contact-submit:not(:disabled):hover {
  background: #24313b;
}
.contact-field-error {
  padding: 4px 6px;
  color: #fff;
  background: #7a1c1c;
  font-size: 12px;
  line-height: 1.4;
}
.contact-fields [aria-invalid='true'] {
  border: 2px solid #9f2525;
}
.contact-feedback {
  margin: 16px 0 0;
  padding: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.contact-feedback[hidden] {
  display: none;
}

/* Secciones y tipografia */
.section {
  padding: 110px var(--space);
  border-bottom: 1px solid var(--border);
}
h2 {
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 400;
  margin-bottom: 30px;
}
.about,
.testimonials {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 35px;
}
.about {
  display: block;
}
.about > div {
  max-width: 740px;
  margin-inline: auto;
}
.about .eyebrow {
  margin-bottom: 20px;
}
.large {
  font-size: 23px;
  max-width: 570px;
}
.muted {
  color: var(--muted);
  max-width: 560px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 35px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading p {
  font-size: 14px;
}
/* Galeria de proyectos */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.project-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.project-visual {
  overflow: hidden;
  background: var(--ivory);
}
.project-card button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
}
.project-card button:hover img {
  transform: scale(1.025);
}
.project-info {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-top: 18px;
}
.project-info h3 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0;
}
.project-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0;
}
.project-info > span {
  font-size: 14px;
  border-bottom: 1px solid;
  white-space: nowrap;
}
/* Testimonios y contacto */
.testimonials {
  background: var(--ivory);
}
.contact {
  background: var(--ink);
  color: var(--white);
}
.contact h2 {
  font-size: clamp(40px, 6vw, 88px);
}
.contact > p:not(.eyebrow) {
  max-width: 440px;
  color: #c3c7ca;
}
.status {
  display: block;
  font-size: 13px;
  color: #c3c7ca;
  margin: 24px 0 0;
}
/* Pie de pagina */
footer {
  padding: 40px var(--space) 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
footer p,
footer > a:last-child {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
/* Detalles de proyectos */
dialog {
  width: min(900px, 92vw);
  max-height: 90svh;
  border: 0;
  padding: 30px;
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop {
  background: #0d141cbf;
}
dialog img {
  width: 100%;
  height: auto;
  margin: 20px 0;
}
dialog h2 {
  font-size: 36px;
}
.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dialog-bar p {
  margin: 0;
}
.dialog-bar button,
.menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  padding: 9px 16px;
  min-height: 44px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
/* Identidad visual */
.brand-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}
/* Mensajes de ejemplo */
.testimonial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 44px;
}
.testimonial {
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  min-width: 0;
}
.testimonial-featured {
  grid-column: 1/-1;
}
.testimonial-label {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.testimonial blockquote {
  margin: 18px 0 24px;
}
.testimonial blockquote p {
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.3px;
  margin: 0;
  overflow-wrap: anywhere;
}
.testimonial-featured blockquote p {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.4;
  letter-spacing: -0.8px;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
}
.testimonial figcaption strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
}
.testimonial figcaption div > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
/* Categorías y acceso de WhatsApp */
.project-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.project-filters button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 14px;
}
.project-filters button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.project-filters button:hover {
  border-color: var(--ink);
}
.project-count {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}
.project-grid[data-filtered='true'] {
  grid-template-columns: minmax(0, 760px);
}
.project-grid[data-filtered='true'] .project-card img {
  height: auto;
  aspect-ratio: 1672 / 941;
}
.project-card[hidden] {
  display: none;
}
.project-category {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 18px 0 10px;
  color: var(--muted);
}
.project-info {
  flex-wrap: wrap;
}
.whatsapp-launcher {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 56px;
  height: 56px;
  padding: 15px;
  color: var(--white);
  background: #087b3d;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgb(0 0 0 / 18%);
}
.whatsapp-launcher img {
  display: block;
  filter: invert(1);
}
.whatsapp-launcher span {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border: 1px solid #087b3d;
  border-radius: 10px;
  color: #087b3d;
  background: var(--white);
  font-size: 11px;
  line-height: 1.4;
}
.whatsapp-note {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: min(320px, calc(100% - 48px));
  z-index: 8;
  padding: 24px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgb(0 0 0 / 15%);
}
.whatsapp-note[hidden] {
  display: none;
}
.whatsapp-note p {
  font-size: 14px;
}
.whatsapp-note button {
  padding: 10px 16px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
}

/* Pantallas amplias */
@media (min-width: 1600px) {
  .hero-layout,
  .section,
  header,
  footer {
    max-width: 1800px;
    margin-inline: auto;
  }
}
/* Tamaños intermedios */
@media (min-width: 701px) and (max-width: 1000px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    padding-top: 145px;
  }
  .hero-contact h2 {
    font-size: 27px;
  }
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  nav {
    gap: 20px;
  }
  .wordmark {
    gap: 12px;
  }
  .wordmark span {
    font-size: 11px;
    letter-spacing: 1px;
  }
}
/* Adaptacion movil */
@media (max-width: 700px) {
  header {
    min-height: 60px;
    padding-block: 8px;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    background: var(--white);
    color: var(--ink);
    border-bottom-color: var(--border);
  }
  .wordmark span {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .menu-toggle:not([hidden]) {
    display: block;
  }
  nav a {
    min-height: 44px;
  }
  h1 {
    font-size: clamp(46px, 12vw, 68px);
    margin-bottom: 24px;
  }
  nav {
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  nav[data-collapsed='true'] {
    display: none;
  }
  .hero {
    min-height: auto;
    color: var(--white);
    background: var(--ink);
  }
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: 480px;
    align-items: center;
    gap: 0;
    padding-top: 100px;
    padding-bottom: 64px;
  }
  .hero-copy {
    padding-top: 0;
  }
  .hero-copy .eyebrow {
    display: none;
  }
  .hero-image img {
    object-position: 62% center;
  }
  .hero-image figcaption {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
  .hero-description {
    font-size: 18px;
  }
  .hero-contact {
    display: none;
  }
  .contact.has-contact-form > .hero-contact {
    display: block;
    padding: 24px;
    color: var(--ink);
    background: var(--ivory);
  }
  .contact.has-contact-form > h2,
  .contact.has-contact-form > p:not(.eyebrow) {
    display: none;
  }
  .hero-contact h2 {
    font-size: 28px;
  }
  .contact-fields {
    grid-template-columns: 1fr;
  }
  .contact-fields input:focus-visible,
  .contact-fields select:focus-visible,
  .contact-fields textarea:focus-visible {
    outline-color: var(--ink);
  }
  .contact-preview-note {
    color: var(--muted);
  }
  .project-filters {
    gap: 8px;
  }
  .project-filters button {
    padding-inline: 12px;
    font-size: 13px;
  }
  .whatsapp-launcher {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    padding: 15px;
  }
  .whatsapp-note {
    right: 16px;
    bottom: 86px;
  }
  .section {
    padding-top: 65px;
    padding-bottom: 65px;
  }
  .about,
  .testimonials {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .section-heading {
    display: block;
  }
  .section-heading h2 {
    margin-bottom: 20px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .project-card img {
    height: 280px;
  }
  .project-info h3 {
    font-size: 20px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer .wordmark {
    width: 100%;
  }
  .large {
    font-size: 21px;
  }
  dialog {
    padding: 20px;
  }
  .brand-logo {
    width: 48px;
    height: 48px;
  }
  .testimonial-list {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  .testimonial-featured {
    grid-column: auto;
  }
  .testimonial blockquote p {
    font-size: 21px;
  }
  .testimonial-featured blockquote p {
    font-size: 24px;
    line-height: 1.5;
  }
}
/* Preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media (forced-colors: active) {
  html {
    scrollbar-color: auto;
  }
}
@media (min-width: 701px) {
  .menu-toggle {
    display: none;
  }
}

/* Ajustes solicitados por Vito · noviembre 2026 */
@font-face {
  font-family: 'Bryndan Write';
  src: url('assets/fonts/BryndanWrite-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.wordmark .brand-mark {
  font-family: 'Bryndan Write', cursive;
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2px;
  text-transform: none;
}
.wordmark > span:last-child {
  max-width: 180px;
  line-height: 1.6;
}
.hero-location {
  margin: 24px 0;
  font-size: 16px;
}
.about-founder {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 24px 0;
}
.about > div > p:not(.large):not(.about-founder) {
  max-width: 65ch;
}
.contact-fields input,
.contact-fields select,
.contact-fields textarea {
  border-radius: 14px;
}
.contact-submit,
.project-filters button,
.menu-toggle,
.dialog-bar button,
.whatsapp-note button {
  border-radius: 999px;
}
.testimonials {
  display: block;
  padding-block: 64px;
}
.testimonials h2 {
  font-size: clamp(30px, 3vw, 44px);
  margin-bottom: 16px;
}
.testimonials .eyebrow {
  margin-bottom: 16px;
}
.testimonial-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 28px;
}
.testimonial-featured {
  grid-column: auto;
}
.testimonial blockquote p,
.testimonial-featured blockquote p {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.3px;
}
.testimonial-featured blockquote p {
  font-size: 21px;
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 90px;
  }
  .wordmark .brand-mark {
    font-size: 30px;
  }
  header {
    gap: 4px;
  }
  header .wordmark {
    gap: 12px;
  }
  header .wordmark {
    min-width: 0;
    flex: 1;
  }
  header .wordmark > span:last-child {
    max-width: 145px;
    font-size: 11px;
    letter-spacing: 1px;
  }
  .menu-toggle {
    flex-shrink: 0;
  }
  .menu-toggle:not([hidden]) {
    display: block;
  }
  nav {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  nav[data-collapsed='true'] {
    display: none;
  }
  nav a {
    font-size: 13px;
    white-space: nowrap;
  }
  .testimonial-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .testimonial {
    padding-top: 20px;
  }
  .testimonial blockquote {
    margin: 12px 0 16px;
  }
  .testimonial blockquote p,
  .testimonial-featured blockquote p {
    font-size: 18px;
  }
}

/* Navegación inspirada en Frank: portada transparente y desplegable móvil. */
header {
  position: fixed;
  inset: 0 0 auto;
  min-height: 76px;
  max-width: none;
  padding: 12px var(--space);
  background: transparent;
  color: var(--white);
  border: 0;
  transition:
    background 180ms ease,
    color 180ms ease;
}
header.is-scrolled {
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
header .wordmark {
  gap: 16px;
}
header nav {
  gap: clamp(24px, 3vw, 48px);
}
header nav a {
  position: relative;
}
header nav a:hover {
  text-decoration: none;
}
header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
header nav a:hover::after,
header nav a:focus-visible::after {
  transform: scaleX(1);
}
.hero {
  min-height: max(620px, 100svh);
}
.hero-layout {
  padding-top: 140px;
}
@media (max-width: 700px) {
  header {
    position: sticky;
    min-height: 68px;
    padding: 10px 22px;
    background: var(--white);
    color: var(--ink);
    flex-wrap: nowrap;
  }
  header .wordmark {
    gap: 12px;
  }
  header .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  header .menu-toggle[hidden] {
    display: none;
  }
  .menu-icon {
    display: grid;
    gap: 5px;
    width: 24px;
  }
  .menu-icon span {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }
  .menu-icon span:nth-child(2) {
    width: 17px;
  }
  .menu-icon span:nth-child(3) {
    width: 10px;
  }
  .menu-toggle[aria-expanded='true'] .menu-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded='true'] .menu-icon span:nth-child(3) {
    width: 24px;
    transform: translateY(-6px) rotate(-45deg);
  }
  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100svh - 68px);
    overflow-y: auto;
    background: var(--white);
    color: var(--ink);
    padding: 12px 22px 20px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  header nav a {
    padding: 14px 0;
    font-size: 15px;
  }
  header nav a::after {
    display: none;
  }
  .hero {
    min-height: auto;
  }
  .hero-layout {
    padding-top: 80px;
  }
}

/* Retrato pendiente: una abertura de esquinas suaves, como un vano arquitectónico. */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  padding-block: 88px;
}
.about-portrait {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 470px;
  justify-self: end;
}
.portrait-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4 / 5;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid #d2cec6;
  border-radius: 120px 20px 20px 20px;
  background: #eeece7;
  overflow: hidden;
}
.portrait-placeholder::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid #d2cec6;
  border-radius: 105px 10px 10px 10px;
  pointer-events: none;
}
.portrait-monogram {
  margin: auto;
  font:
    400 clamp(64px, 8vw, 112px)/1 'Bryndan Write',
    cursive;
  color: #b1aba1;
}
.portrait-caption {
  position: relative;
}
.portrait-caption p {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.portrait-caption > span {
  font-size: 12px;
  color: var(--muted);
}
.about-portrait figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}
.about > .about-copy {
  max-width: 640px;
  margin: 0;
}
.about h2 {
  font-size: clamp(36px, 3.6vw, 56px);
  margin-bottom: 22px;
}
.about .large {
  font-size: 21px;
  line-height: 1.5;
}
.about-founder {
  margin-block: 22px;
}
@media (max-width: 700px) {
  .about {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 56px;
  }
  .about-portrait {
    max-width: 360px;
    justify-self: center;
  }
  .portrait-placeholder {
    aspect-ratio: 5 / 4;
    border-top-left-radius: 90px;
  }
  .portrait-placeholder::before {
    border-top-left-radius: 75px;
  }
  .portrait-monogram {
    font-size: 72px;
  }
  .portrait-caption p {
    font-size: 20px;
  }
  .about .large {
    font-size: 20px;
  }
}

.wordmark .brand-mark .brand-k {
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  margin-left: 1.5px;
}

/* Leyenda y título forman un solo bloque, alineado ópticamente a la izquierda. */
.section .eyebrow {
  margin-bottom: 10px;
}
.section h2 {
  margin-inline-start: -0.045em;
}
.section-heading h2 {
  margin-inline-start: -0.045em;
}

/* Separación mínima sin romper el espaciado natural de Bryndan Write. */
.wordmark .brand-mark {
  letter-spacing: -1.7px;
}

/* K independiente: conservar la fuente y controlar el aire sin un espacio tipográfico. */
.wordmark .brand-mark {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -2px;
}
.wordmark .brand-mark .brand-k {
  display: inline-block;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
  margin-left: 0;
  padding-left: 4.5px;
}

/* Ubicación sobre el título, visible también en móvil. */
.hero-copy .eyebrow {
  display: block;
  margin-bottom: 24px;
}

/* Cambios WEB .VK · 30/11/2026 */
:root {
  --accent: #cb6ce6;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Logo: punto magenta y descriptor en dos líneas alineadas. */
.brand-dot {
  color: var(--accent);
}
.wordmark .brand-mark .brand-dot {
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.wordmark .wordmark-descriptor {
  max-width: none;
  line-height: 1.45;
  white-space: nowrap;
}
.descriptor-logo .wordmark .wordmark-descriptor {
  font-family: 'Bryndan Write', cursive;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: lowercase;
  line-height: 1.15;
}

/* Punto redondo antes de cada frase; magenta en la frase principal de cada sección. */
.dot {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-right: 0.1em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: baseline;
}
.dot-accent {
  background: var(--accent);
}
h1 .dot {
  width: 0.13em;
  height: 0.13em;
  margin-right: 0.08em;
}
.hero-title-visual > span:not(.dot) {
  display: block;
}
/* La i de "habitar" con punto redondo: ı sin punto + círculo. */
.i-round {
  position: relative;
  display: inline-block;
}
.i-round::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.06em;
  width: 0.13em;
  height: 0.13em;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

/* Barra superior negra al desplazar, para resaltar el logo y el magenta. */
header.is-scrolled {
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}
@media (max-width: 700px) {
  header,
  header.is-scrolled {
    background: var(--ink);
    color: var(--white);
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }
  header nav {
    background: var(--ink);
    color: var(--white);
    border-bottom-color: rgb(255 255 255 / 12%);
  }
  header .wordmark .wordmark-descriptor {
    max-width: none;
    font-size: 10px;
  }
  .descriptor-logo header .wordmark .wordmark-descriptor {
    font-size: 15px;
  }
}
header a:focus-visible,
header button:focus-visible {
  outline-color: var(--accent);
}

/* Proyectos reales: grilla de tres columnas también al filtrar. */
.project-grid[data-filtered='true'] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-visual {
  aspect-ratio: 1672 / 941;
}
.project-card img,
.project-grid[data-filtered='true'] .project-card img {
  height: 100%;
  aspect-ratio: auto;
}
.project-placeholder {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #eeece7;
  border: 1px solid #e0dcd4;
  color: #b1aba1;
  transition: background 0.3s;
}
.project-placeholder-mark {
  font:
    400 clamp(40px, 4vw, 56px)/1 'Bryndan Write',
    cursive;
  letter-spacing: -1.5px;
}
.project-placeholder-note {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.project-card button:hover .project-placeholder {
  background: #e7e4dd;
}
.project-info p[hidden] {
  display: none;
}

/* Ficha del proyecto */
.detail-visual {
  margin: 20px 0;
  aspect-ratio: 1672 / 941;
}
.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.detail-visual .project-placeholder-mark {
  font-size: clamp(56px, 8vw, 96px);
}
dialog h2 {
  margin-bottom: 4px;
}
.detail-location {
  color: var(--muted);
  margin-bottom: 20px;
}
.detail-location[hidden],
.detail-credits[hidden] {
  display: none;
}
.detail-credits {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0 0 24px;
  padding: 14px 0;
  border-block: 1px solid var(--border);
  font-size: 14px;
}
.detail-credits dt {
  color: var(--muted);
}
.detail-credits dd {
  margin: 0;
}
.detail-copy {
  max-width: 68ch;
}
.detail-copy p {
  margin-bottom: 16px;
}
.detail-note {
  font-size: 14px;
  color: var(--muted);
}
.detail-note a {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
}
.detail-copy .text-link {
  margin-bottom: 16px;
}

@media (min-width: 701px) and (max-width: 1000px) {
  .project-grid[data-filtered='true'] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .project-grid[data-filtered='true'] {
    grid-template-columns: 1fr;
  }
  .project-card img {
    height: 100%;
  }
}
