/* interior.css */
.ix {
  --section-gap: clamp(2.5rem, 5vw, 4.25rem);
  padding-block: clamp(2rem, 5vw, 4rem) 3rem;
}

.ix h1 { font-size: clamp(2.75rem, 5.6vw, 4.8rem); }
.ix-top { max-width: 52rem; margin-bottom: 2rem; }
.ix-top .lead { max-width: 44rem; }

.ix-local {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 1.8rem;
  padding: .3rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  background: var(--surface);
}

.ix-local a {
  padding: .5rem 1rem;
  border-radius: .4rem;
  text-decoration: none;
}

.ix-local a:hover {
  background: var(--surface-muted);
  color: var(--accent);
  text-decoration: none;
}

.ix-section {
  padding-block: var(--section-gap);
  border-top: 1px solid var(--border);
  scroll-margin-top: 1rem;
}

.ix-head { width: 100%; margin-bottom: 2.25rem; }
.ix-head h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.ix-head p {
  max-width: 44rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.13rem;
}

.ix-body p { color: var(--text-muted); }
.ix-body p + p, .ix-note { margin-top: .65rem; }
.ix-note { max-width: 48rem; color: var(--text-muted); }

.ix-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.ix-personas { margin-block: 1.5rem 2rem; }
.ix-cards article { border-top: 1px solid var(--border); padding-top: 1rem; }
.ix-cards h3 { margin-bottom: .2rem; }
.ix-personas article { border-top: 3px solid var(--accent); }
.ix-personas p strong:first-child { color: var(--text); }

.trace-example {
  margin: .85rem 0;
  padding: .4rem .8rem;
  list-style: none;
  background: var(--surface-muted);
  border-radius: .35rem;
}

.trace-example li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .15rem .6rem;
  padding-block: .3rem;
}

.trace-example li + li { border-top: 1px solid var(--border); }

.ix-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  padding-block: var(--section-gap) 1rem;
  border-top: 1px solid var(--border);
}

.ix-cta .button { min-height: 3rem; }

.ix-cta .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 12rem;
  padding: .65rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: .4rem;
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
  background: var(--surface);
}

.ix-cta .secondary:hover { border-color: var(--accent); color: var(--accent); }
.ix-cta .ix-head { flex-basis: 100%; margin-bottom: .6rem; }

@media (max-width: 58rem) {
  .ix-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .ix-cards { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .ix-cta { flex-direction: column; align-items: stretch; }
  .ix-cta .secondary, .ix-cta .button { width: 100%; }
}

/* gallery.css */
.ix-gallery {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding-block: 1rem var(--section-gap);
}

.ix-project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.ix-project:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.ix-project:nth-child(even) .thumb { order: 2; }
.ix-project h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }

.ix-project h2 a::after {
  content: "";
  position: absolute;
  inset: -.75rem;
  border-radius: .9rem;
}

.ix-project:hover h2 a, .ix-project:hover .ix-go { color: var(--accent); }
.ix-project:focus-within .thumb { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
.ix-project h2 a:focus-visible { outline: none; }

.ix-copy p { color: var(--text-muted); margin-top: .9rem; max-width: 32rem; }
.ix-copy .label { margin: 0 0 1rem; color: var(--accent); }

.ix-go {
  display: inline-block;
  margin-top: 1.3rem;
  font-weight: 650;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: .35em;
}

.thumb {
  display: grid;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  padding: clamp(.75rem, 2.5vw, 2.5rem);
  border-radius: .85rem;
  background: var(--preview-background);
}

.thumb[data-tone="deep"] { background: var(--preview-background-deep); }

.thumb img {
  display: block;
  width: 100%;
  border-radius: .35rem;
  box-shadow: 0 .65rem 2rem var(--preview-shadow);
}

@media (max-width: 48rem) {
  .ix-project, .ix-project:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .ix-project:nth-child(even) .thumb { order: 0; }
}
