/* Archivo · base styles. Tokens and refinement are grouped below. */
:root {
  --paper:#f7f8f2;
  --ink:#172b29;
  --muted:#64706a;
  --line:#dce1d7;
  --green:#d7ef87;
  --purple:#e3def8;
  --radius:18px
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased
}
button,input,a {
  -webkit-tap-highlight-color:transparent
}
button,input {
  font:inherit
}
button,a {
  touch-action:manipulation
}
a {
  color:inherit;
  text-decoration:none
}
button {
  cursor:pointer
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #6c4fc9;
  outline-offset:5px
}
[hidden] {
  display:none!important
}
.skip {
  position:fixed;
  top:-100px;
  left:20px;
  padding:16px;
  background:var(--green);
  z-index:20
}
.skip:focus {
  top:12px
}
.header {
  max-width:1280px;
  margin:auto;
  padding:28px 48px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line)
}
.brand {
  display:inline-flex;
  align-items:center;
  font-size:29px;
  font-weight:800;
  letter-spacing:-1.5px
}
.brand-icon {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:35px;
  height:35px;
  border-radius:10px;
  background:var(--ink);
  color:var(--green);
  margin-right:10px;
  font-size:27px;
  letter-spacing:-3px;
  padding-right:4px
}
.brand-icon span {
  font-size:15px;
  align-self:flex-start;
  margin-top:4px
}
.brand-dot {
  color:#718b3d
}
.header nav {
  display:flex;
  align-items:center;
  gap:32px;
  font-size:13px
}
.header nav a span {
  margin-left:14px
}
.course {
  color:var(--muted);
  border-left:1px solid var(--line);
  padding-left:32px
}
.hero {
  max-width:1280px;
  margin:0 auto;
  padding:74px 48px 68px;
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:40px;
  align-items:center
}
.eyebrow {
  font-size:10px;
  font-weight:700;
  letter-spacing:1.8px;
  line-height:1.5;
  margin:0 0 23px
}
.live-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#80974b;
  display:inline-block;
  margin-right:8px
}
h1 {
  font-size:clamp(40px,4.4vw,62px);
  line-height:1.08;
  letter-spacing:-3.3px;
  font-weight:500;
  margin:0 0 23px
}
h1 em {
  font-family:Georgia,'Times New Roman',serif;
  font-weight:400;
  color:#647d37
}
.hero-description {
  font-size:15px;
  line-height:1.8;
  color:var(--muted);
  margin:0 0 29px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:35px;
  min-height:48px;
  padding:14px 20px;
  border-radius:8px;
  border:1px solid var(--line);
  font-size:13px;
  font-weight:600;
  transition:transform .2s,background .2s
}
.primary {
  background:var(--ink);
  color:white;
  border-color:var(--ink)
}
.primary:hover {
  background:#304941;
  transform:translateY(-2px)
}
.hero-note {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:11px;
  margin-top:28px
}
.small-line {
  width:21px;
  height:1px;
  background:#8b9888
}
.hero-art {
  position:relative;
  height:363px;
  background:#e9eddf;
  border-radius:140px 140px 22px 22px;
  overflow:hidden
}
.art-label {
  position:absolute;
  top:30px;
  left:0;
  width:100%;
  text-align:center;
  font-size:9px;
  letter-spacing:2px;
  color:#718060
}
.orbit {
  position:absolute;
  border:1px solid #ced6bf;
  border-radius:50%;
  width:440px;
  height:280px;
  left:0;
  top:45px;
  transform:rotate(-28deg)
}
.orbit-two {
  transform:rotate(35deg);
  left:-40px;
  top:75px
}
.art-window {
  position:absolute;
  background:var(--paper);
  border:1px solid var(--ink);
  border-radius:12px;
  width:68%;
  top:76px;
  left:16%;
  transform:rotate(-7deg);
  box-shadow:12px 16px 0 #172b2910
}
.window-top {
  height:34px;
  display:flex;
  gap:4px;
  align-items:center;
  padding:0 12px;
  border-bottom:1px solid var(--ink)
}
.window-top i {
  width:5px;
  height:5px;
  border:1px solid #718060;
  border-radius:50%
}
.window-top span {
  font-family:monospace;
  font-size:8px;
  margin-left:auto;
  color:var(--muted)
}
.window-body {
  padding:18px 22px
}
.code-symbol {
  font-family:monospace;
  font-size:40px;
  letter-spacing:-6px;
  font-weight:600;
  color:#53673b;
  display:block;
  margin-bottom:13px
}
.art-line {
  height:5px;
  border-radius:4px;
  background:#dce1d0;
  margin-bottom:7px;
  width:65%
}
.art-line.long {
  width:86%;
  background:#b6c794
}
.art-line.short {
  width:42%
}
.art-tiles {
  display:flex;
  gap:8px;
  margin-top:17px
}
.art-tiles span {
  height:36px;
  width:33%;
  background:#e0e8d1;
  border-radius:4px
}
.art-tiles span:nth-child(2) {
  background:#ddd8ef
}
.art-tiles span:nth-child(3) {
  background:#eddcc9
}
.art-tag {
  position:absolute;
  border:1px solid var(--ink);
  padding:14px 17px;
  border-radius:7px;
  font-size:20px;
  font-weight:700;
  box-shadow:4px 5px 0 #172b2910
}
.art-tag span {
  margin-left:18px;
  font-size:18px
}
.tag-a {
  left:8%;
  top:73px;
  background:var(--green);
  transform:rotate(-12deg)
}
.tag-b {
  right:6%;
  bottom:67px;
  background:var(--purple);
  transform:rotate(10deg)
}
.art-star {
  position:absolute;
  right:12%;
  top:49px;
  font-size:50px;
  color:#617843
}
.art-caption {
  position:absolute;
  bottom:22px;
  left:28px;
  right:28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:8px;
  letter-spacing:1.6px;
  color:#637358
}
.art-caption span {
  font-size:24px
}
.catalog {
  border-top:1px solid var(--line);
  padding:52px 48px 62px;
  max-width:1280px;
  margin:auto
}
.section-top {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:27px
}
.muted {
  color:var(--muted);
  margin-bottom:10px
}
.section-top h2,.how h2 {
  font-size:33px;
  font-weight:500;
  letter-spacing:-1.3px;
  margin:0;
  line-height:1.2
}
.section-top h2>span {
  color:#839b46
}
.section-top>p {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
  margin:0
}
.division-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-bottom:32px
}
.division {
  display:flex;
  align-items:center;
  text-align:left;
  gap:15px;
  padding:19px 22px;
  border:1px solid #d8decf;
  border-radius:12px;
  background:#eef2e6;
  color:var(--ink);
  transition:transform .2s,border-color .2s
}
.division:hover {
  transform:translateY(-3px);
  border-color:#829365
}
.division[aria-pressed=true] {
  box-shadow:inset 0 0 0 2px var(--ink)
}
.division-b {
  background:#efedf6;
  border-color:#ddd8eb
}
.division-icon {
  display:grid;
  place-items:center;
  width:46px;
  height:48px;
  background:var(--green);
  border-radius:9px;
  font-family:Georgia,serif;
  font-size:30px
}
.division-b .division-icon {
  background:#ded7f4
}
.division strong {
  display:block;
  font-size:18px;
  font-weight:500;
  margin-bottom:7px
}
.division small {
  font-size:11px;
  color:var(--muted)
}
.division-arrow {
  margin-left:auto;
  font-size:24px
}
.catalog-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding-bottom:23px;
  border-bottom:1px solid var(--line)
}
.tabs {
  display:flex;
  gap:6px
}
.tabs button {
  border:0;
  padding:10px 18px;
  border-radius:6px;
  background:transparent;
  color:var(--muted);
  font-size:12px
}
.tabs button[aria-pressed=true] {
  background:var(--ink);
  color:white
}
.search {
  display:flex;
  gap:10px;
  align-items:center;
  min-width:350px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:7px;
  padding:0 13px
}
.search>span {
  font-size:24px;
  color:var(--muted)
}
.search input {
  border:0;
  background:none;
  width:100%;
  min-width:0;
  padding:12px 0;
  font-size:12px;
  color:var(--ink)
}
.search input::placeholder {
  color:#7a8278
}
.results-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:24px 0 18px
}
.results-heading h3 {
  font-size:14px;
  font-weight:500;
  margin:0
}
.results-heading>span {
  font-size:11px;
  color:var(--muted)
}
.projects {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px
}
.project-card {
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  transition:transform .2s,box-shadow .2s
}
.project-card:hover {
  transform:translateY(-4px);
  box-shadow:0 10px 25px #172b2909
}
.project-visual {
  height:175px;
  background:#edf1e3;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center
}
.project-card.b .project-visual {
  background:#eeebf6
}
.project-visual img {
  width:100%;
  height:100%;
  object-fit:cover
}
.project-glyph {
  font-family:Georgia,serif;
  font-size:75px;
  color:#829369
}
.project-card.b .project-glyph {
  color:#988ab7
}
.project-visual .visual-mark {
  position:absolute;
  right:18px;
  top:17px;
  font-size:21px;
  color:#74835f
}
.project-body {
  padding:21px
}
.badges {
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.badge {
  font-size:10px;
  padding:5px 8px;
  border-radius:4px;
  background:#eef2e7;
  color:#40552b;
  display:inline-block
}
.badge.b {
  background:#eeebf6;
  color:#605178
}
.badge.neutral {
  background:#f1f2ef;
  color:#646e61
}
.project-body h3 {
  font-size:21px;
  letter-spacing:-.6px;
  font-weight:500;
  margin:16px 0 9px;
  overflow-wrap:anywhere
}
.project-body>p {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
  margin:0 0 15px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden
}
.members {
  font-size:11px;
  color:var(--muted);
  line-height:1.7
}
.project-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:17px;
  padding-top:15px;
  border-top:1px solid var(--line);
  font-size:12px;
  font-weight:600
}
.project-bottom span {
  font-size:20px
}
.empty {
  padding:46px 24px;
  text-align:center;
  border:1px dashed #cfd7c8;
  border-radius:12px;
  background:#f1f4eb
}
.empty-icon {
  font-size:31px;
  margin-bottom:14px;
  color:#718754
}
.empty h3 {
  font-size:20px;
  font-weight:500;
  letter-spacing:-.4px;
  margin:0 0 10px
}
.empty p {
  font-size:13px;
  color:var(--muted);
  line-height:1.8;
  max-width:430px;
  margin:0 auto 18px
}
.empty .button {
  background:transparent
}
.how {
  max-width:1184px;
  margin:0 auto 55px;
  padding:35px 32px;
  display:grid;
  grid-template-columns:45px 1fr 1fr;
  gap:20px;
  background:#eaeee2;
  border-radius:12px
}
.how-symbol {
  font-size:40px;
  color:#6c8050
}
.how h2 {
  font-size:27px
}
.how ol {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:19px
}
.how li {
  display:flex;
  gap:16px
}
.how li>span {
  font-family:monospace;
  font-size:10px;
  color:#6c8050;
  padding-top:4px
}
.how strong {
  font-size:12px;
  font-weight:600
}
.how li p {
  font-size:11px;
  color:var(--muted);
  margin:6px 0 0
}
footer {
  max-width:1280px;
  padding:26px 48px;
  margin:auto;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}
footer .brand {
  font-size:23px
}
footer p,footer>span {
  font-size:10px;
  color:var(--muted)
}
.detail {
  max-width:1100px;
  margin:auto;
  padding:45px 48px 80px;
  min-height:70vh
}
.back {
  display:inline-flex;
  align-items:center;
  gap:14px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:42px
}
.detail-layout {
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:45px
}
.detail h1 {
  font-size:48px;
  margin-top:20px;
  overflow-wrap:anywhere
}
.detail-description {
  color:var(--muted);
  font-size:16px;
  line-height:1.8;
  white-space:pre-line;
  overflow-wrap:anywhere
}
.detail-cover {
  width:100%;
  max-height:340px;
  object-fit:cover;
  border-radius:12px;
  margin:20px 0
}
.detail-side {
  padding:28px;
  background:#eaeee2;
  border:1px solid var(--line);
  border-radius:15px;
  align-self:start
}
.detail-side h2 {
  font-size:21px;
  letter-spacing:-.5px;
  margin:0 0 24px;
  font-weight:500
}
.detail-side h3 {
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:var(--muted);
  margin:23px 0 12px
}
.member-list {
  list-style:none;
  padding:0;
  margin:0
}
.member-list li {
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 0;
  font-size:14px;
  overflow-wrap:anywhere
}
.avatar {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  background:var(--paper);
  border-radius:50%;
  font-size:11px;
  flex-shrink:0
}
.detail-actions {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:30px 0 16px
}
.detail-note {
  font-size:12px;
  color:var(--muted);
  line-height:1.7
}
.tags {
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.tags span {
  font-size:11px;
  background:var(--paper);
  padding:7px 10px;
  border-radius:5px
}
.retry {
  margin-top:8px
}
@media(min-width:1500px) {
  .hero {
    padding-top:90px;
    padding-bottom:90px
  }
  .hero-art {
    height:390px
  }
}
@media(max-width:900px) {
  .header {
    padding:23px 28px
  }
  .hero {
    padding:48px 28px;
    gap:22px
  }
  .hero-art {
    height:320px
  }
  h1 {
    font-size:44px;
    letter-spacing:-2px
  }
  .eyebrow {
    font-size:9px;
    letter-spacing:1.3px
  }
  .hero-description {
    font-size:13px
  }
  .catalog {
    padding:40px 28px
  }
  .how {
    margin:0 28px 40px
  }
  .projects {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  footer {
    padding:26px 28px
  }
  footer>span {
    display:none
  }
  .detail {
    padding:35px 28px
  }
  .detail-layout {
    gap:25px
  }
}
@media(max-width:620px) {
  .header {
    padding:20px
  }
  .brand {
    font-size:25px
  }
  .brand-icon {
    width:31px;
    height:31px
  }
  .course {
    display:none
  }
  .header nav {
    font-size:11px
  }
  .hero {
    grid-template-columns:1fr;
    padding:38px 20px 34px;
    gap:28px
  }
  .hero h1 {
    font-size:43px;
    letter-spacing:-2.1px
  }
  .hero-art {
    height:285px;
    max-width:410px;
    width:100%;
    justify-self:center;
    border-radius:90px 90px 16px 16px
  }
  .art-window {
    width:60%;
    top:55px;
    left:20%
  }
  .window-body {
    padding:12px 17px
  }
  .code-symbol {
    font-size:32px;
    margin-bottom:8px
  }
  .art-tiles {
    margin-top:12px
  }
  .art-tiles span {
    height:28px
  }
  .tag-a {
    top:64px
  }
  .tag-b {
    bottom:50px
  }
  .art-star {
    top:25px;
    right:13%;
    font-size:40px
  }
  .art-label {
    top:18px;
    font-size:8px
  }
  .art-caption {
    bottom:14px
  }
  .hero-note {
    margin-top:20px
  }
  .catalog {
    padding:32px 20px
  }
  .section-top h2 {
    font-size:28px
  }
  .section-top>p {
    display:none
  }
  .division-grid {
    gap:10px;
    margin-bottom:24px
  }
  .division {
    padding:14px 12px;
    gap:10px
  }
  .division-icon {
    width:34px;
    height:40px;
    font-size:24px
  }
  .division strong {
    font-size:16px
  }
  .division small {
    font-size:10px
  }
  .division-arrow {
    font-size:19px
  }
  .catalog-toolbar {
    align-items:stretch;
    flex-direction:column;
    gap:14px;
    padding-bottom:18px
  }
  .tabs button {
    flex:1
  }
  .search {
    min-width:0;
    width:100%
  }
  .projects {
    grid-template-columns:1fr
  }
  .project-visual {
    height:190px
  }
  .empty {
    padding:30px 16px
  }
  .empty h3 {
    font-size:18px
  }
  .how {
    margin:8px 20px 32px;
    padding:26px 23px;
    grid-template-columns:1fr;
    gap:22px
  }
  .how-symbol {
    display:none
  }
  .how h2 {
    font-size:27px
  }
  .how ol {
    gap:18px
  }
  footer {
    padding:24px 20px;
    align-items:flex-start
  }
  footer p {
    line-height:1.7;
    margin:0;
    text-align:right;
    max-width:160px
  }
  .detail {
    padding:30px 20px
  }
  .detail-layout {
    grid-template-columns:1fr
  }
  .detail h1 {
    font-size:39px;
    letter-spacing:-1.6px
  }
  .back {
    margin-bottom:25px
  }
  .detail-actions {
    flex-direction:column;
    align-items:stretch
  }
  .detail-side {
    padding:24px
  }
  .detail-description {
    font-size:14px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    transition:none!important;
    animation:none!important
  }
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.icon {
  width:1em;
  height:1em;
  display:inline-block;
  vertical-align:middle;
  flex-shrink:0
}
.division-icon {
  flex-shrink:0
}
.brand-icon .icon {
  width:12px;
  height:12px
}
.art-star {
  font-family:Arial,sans-serif;
  font-variant-emoji:text
}
/* Opiniones compartidas */
.reviews {
  margin-top:65px;
  padding-top:40px;
  border-top:1px solid var(--line)
}
.reviews-heading {
  display:flex;
  justify-content:space-between;
  gap:25px;
  align-items:center;
  margin-bottom:30px
}
.reviews h2,.other-projects h2 {
  font-size:34px;
  font-weight:500;
  letter-spacing:-1.3px;
  margin:0
}
.reviews h2 span {
  color:#718b3d
}
.reviews-heading p:not(.eyebrow) {
  font-size:13px;
  color:var(--muted);
  line-height:1.7
}
.review-score {
  display:flex;
  flex-direction:column;
  gap:8px;
  text-align:right;
  min-width:160px
}
.review-score strong {
  font-size:21px;
  font-weight:500
}
.review-score strong span {
  color:#718b3d
}
.review-score>span {
  font-size:11px;
  color:var(--muted)
}
.reviews-layout {
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:36px
}
.review-form {
  padding:27px;
  background:#eef2e6;
  border:1px solid #dce3d2;
  border-radius:14px
}
.review-form h3,.feed-top h3 {
  font-weight:500;
  font-size:19px;
  margin:0 0 8px;
  letter-spacing:-.5px
}
.review-form>p {
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
  margin:0 0 22px
}
.review-form>label,.review-form legend {
  display:block;
  font-size:12px;
  margin-bottom:9px
}
.review-form input:not([type=radio]),.review-form textarea {
  display:block;
  width:100%;
  padding:13px 14px;
  border:1px solid #d6decf;
  background:#fff;
  border-radius:7px;
  color:var(--ink);
  font:13px/1.6 Arial,sans-serif
}
.review-form textarea {
  resize:vertical;
  min-height:120px
}
.review-form fieldset {
  border:0;
  margin:24px 0;
  padding:0
}
.stars-input {
  display:flex;
  gap:8px
}
.stars-input label {
  cursor:pointer;
  position:relative;
  border:1px solid #d6decf;
  background:#f8faf4;
  border-radius:6px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  color:#849471;
  font-size:26px;
  transition:transform .18s,background .18s
}
.stars-input input {
  position:absolute;
  opacity:0;
  width:100%;
  height:100%;
  margin:0;
  cursor:pointer
}
.stars-input label:has(input:checked) {
  background:var(--ink);
  color:var(--green);
  transform:translateY(-3px)
}
.stars-input label:has(input:focus-visible) {
  outline:3px solid #6c4fc9;
  outline-offset:3px
}
.review-help {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:10px;
  color:var(--muted);
  margin:11px 0 23px
}
.review-form .button {
  width:100%
}
.review-form .review-message {
  margin:14px 0 0;
  font-size:12px;
  color:#963e2b
}
.review-form .review-message.success {
  color:#3e642e
}
.feed-top {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  padding:8px 0 20px;
  border-bottom:1px solid var(--line)
}
.feed-top h3 {
  font-size:17px;
  margin:0
}
.text-button {
  border:0;
  background:none;
  text-decoration:underline;
  text-underline-offset:4px;
  font-size:11px;
  color:var(--muted);
  padding:8px
}
.review {
  padding:24px 0;
  border-bottom:1px solid var(--line)
}
.review-author {
  display:flex;
  align-items:center;
  gap:10px
}
.review-avatar {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e8ecdF;
  color:#5d7640;
  font-family:Georgia,serif;
  font-size:19px;
  flex-shrink:0
}
.review-author h4 {
  font-size:13px;
  font-weight:600;
  margin:0 0 5px;
  overflow-wrap:anywhere
}
.review-author time {
  font-size:10px;
  color:var(--muted)
}
.review-stars {
  margin-left:auto;
  color:#718b3d;
  white-space:nowrap;
  letter-spacing:1px;
  font-size:13px
}
.review-stars>span {
  color:#8b9780
}
.review>p {
  font-size:13px;
  color:#48564d;
  line-height:1.8;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  margin:16px 0 0
}
.no-reviews {
  padding:28px 14px
}
.no-reviews>span {
  font:72px/1 Georgia,serif;
  color:#a4b78e
}
.no-reviews h4 {
  font-size:20px;
  font-weight:500;
  letter-spacing:-.5px;
  margin:0 0 12px
}
.no-reviews p,.review-error {
  font-size:13px;
  line-height:1.8;
  color:var(--muted)
}
.more-reviews {
  margin-top:20px
}
.other-projects {
  margin-top:45px;
  padding-top:35px;
  border-top:1px solid var(--line)
}
.other-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:20px
}
.other-grid article {
  padding:23px;
  background:#efeee8;
  border-radius:12px
}
.other-grid h3 {
  font-size:20px;
  font-weight:500;
  margin:0 0 13px
}
.other-grid p {
  font-size:13px;
  line-height:1.8;
  color:var(--muted)
}
.other-grid .button {
  padding:10px 12px;
  gap:12px;
  font-size:11px;
  margin:6px 5px 0 0
}
.button:disabled {
  opacity:.55;
  cursor:wait
}
.project-visual img {
  transition:transform .5s
}
.project-card:hover .project-visual img {
  transform:scale(1.035)
}
.project-card {
  animation:arrive .5s both
}
.project-card:nth-child(3n+2) {
  animation-delay:.07s
}
.project-card:nth-child(3n+3) {
  animation-delay:.14s
}
.art-window {
  animation:float-window 7s ease-in-out infinite
}
.art-tag {
  animation:float-tag 6s ease-in-out infinite
}
.tag-b {
  animation-delay:-3s
}
.hero-copy {
  animation:arrive .7s both
}
.detail-layout {
  animation:arrive .4s both
}
@keyframes arrive {
  from {
    opacity:0;
    transform:translateY(14px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}
@keyframes float-window {
  0%,100% {
    transform:rotate(-7deg) translateY(0)
  }
  50% {
    transform:rotate(-5deg) translateY(-7px)
  }
}
@keyframes float-tag {
  0%,100% {
    translate:0 0
  }
  50% {
    translate:0 -7px
  }
}
@media(max-width:700px) {
  .reviews-layout {
    grid-template-columns:1fr;
    gap:25px
  }
  .reviews-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:12px
  }
  .review-score {
    text-align:left
  }
  .reviews {
    margin-top:40px;
    padding-top:30px
  }
  .reviews h2 {
    font-size:30px
  }
  .review-form {
    padding:22px
  }
  .other-grid {
    grid-template-columns:1fr
  }
}
@media(prefers-reduced-motion:reduce) {
  .art-window,.art-tag,.project-card,.hero-copy,.detail-layout {
    animation:none!important
  }
  .project-visual img {
    transition:none
  }
}
.project-card.pending {
  background:#f1f3ec
}
.pending .project-visual {
  height:80px;
  background:#e9ede1;
  place-items:center start;
  padding-left:22px
}
.pending .project-glyph {
  font-size:43px;
  opacity:.65
}
.pending .project-body h3 {
  font-size:19px
}
.pending .project-body>p {
  font-size:11px
}
.project-card.pending:hover {
  background:#fff
}
#detail-title:focus,#catalog-title:focus {
  outline:none
}
/* Carga de fichas y estados del catálogo */
.loading-dialog {
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--paper);
  color:var(--ink);
  padding:42px;
  max-width:440px;
  width:calc(100% - 36px);
  text-align:center;
  box-shadow:0 24px 100px #172b2933
}
.loading-dialog::backdrop {
  background:#172b2966;
  backdrop-filter:blur(7px)
}
.loading-dialog h2 {
  font-size:27px;
  letter-spacing:-1px;
  font-weight:500;
  margin:15px 0
}
.loading-dialog #loading-status {
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
  min-height:44px
}
.loading-dialog progress {
  display:block;
  width:100%;
  height:5px;
  border:0;
  accent-color:#718b3d;
  border-radius:8px;
  margin:22px 0 12px;
  overflow:hidden
}
.loading-dialog progress::-webkit-progress-bar {
  background:#e1e7d7
}
.loading-dialog progress::-webkit-progress-value {
  background:#718b3d;
  transition:width .2s
}
.loading-percent {
  display:block;
  font-size:13px;
  color:#5c703b;
  margin-bottom:18px
}
.loading-symbol {
  display:flex;
  justify-content:center;
  gap:6px;
  height:44px;
  margin-bottom:25px
}
.loading-symbol i {
  display:block;
  width:13px;
  background:#aac07c;
  border-radius:3px;
  animation:book-wave 1.2s ease-in-out infinite
}
.loading-symbol i:nth-child(2) {
  background:#172b29;
  animation-delay:.15s
}
.loading-symbol i:nth-child(3) {
  background:#c9c0e3;
  animation-delay:.3s
}
.projects[aria-busy=true] {
  min-height:180px;
  background:linear-gradient(110deg,#eef1e7 30%,#f8faf3 45%,#eef1e7 60%);
  background-size:200% 100%;
  animation:skeleton 1.5s linear infinite;
  border-radius:12px
}
@keyframes book-wave {
  0%,100% {
    transform:translateY(0) rotate(-5deg)
  }
  50% {
    transform:translateY(-8px) rotate(3deg)
  }
}
@keyframes skeleton {
  to {
    background-position:-200% 0
  }
}
@media(prefers-reduced-motion:reduce) {
  .loading-symbol i,.projects[aria-busy=true] {
    animation:none
  }
  .loading-dialog progress::-webkit-progress-value {
    transition:none
  }
  .loading-dialog::backdrop {
    backdrop-filter:none
  }
}

/* --------------------------------------------------------------------------
   Product foundations · Archivo
   A calm school archive: cream paper, forest ink and two labelled divisions.
   Text colours below meet WCAG AA against their documented surface.
   -------------------------------------------------------------------------- */
:root {
  --paper: #f7f8f2;
  --surface: #ffffff;
  --surface-soft: #eef2e6;
  --ink: #172b29;
  --muted: #536259;
  --accent: #526b2b;
  --line: #d5ddcf;
  --green: #d7ef87;
  --purple: #e3def8;
  --purple-ink: #57466e;
  --focus: #6c4fc9;
  --danger: #8d352c;
  --font-body: Arial, Helvetica, sans-serif;
  --font-editorial: Georgia, 'Times New Roman', serif;
  --text-xs: .75rem;
  --text-sm: .8125rem;
  --text-base: 1rem;
  --text-body: .9375rem;
  --text-card: 1.375rem;
  --text-section: clamp(1.75rem, 2.8vw, 2.25rem);
  --text-hero: clamp(2.5rem, 4.5vw, 4rem);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 8px;
  --radius-card: 14px;
  --radius-panel: 20px;
  --shadow-card: 0 8px 24px #172b290a;
  --motion-fast: 160ms;
  --motion-panel: 240ms;
  --ease-out: cubic-bezier(.2, .75, .25, 1);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
}

button, input, textarea, select {
  font: inherit;
}

button, a, input, textarea, select {
  touch-action: manipulation;
}

button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

button:disabled {
  cursor: wait;
}

.header {
  padding-block: var(--space-5);
}

.header nav {
  font-size: var(--text-sm);
}

.header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero {
  padding-block: var(--space-8);
}

.eyebrow {
  font-size: .6875rem;
  letter-spacing: .13em;
}

h1 {
  font-size: var(--text-hero);
  letter-spacing: -.055em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 em {
  color: var(--accent);
}

.hero-description {
  font-size: var(--text-body);
  max-width: 39ch;
  line-height: 1.8;
}

.hero-note {
  font-size: var(--text-xs);
}

.button {
  min-height: 48px;
  font-size: var(--text-sm);
  padding: 13px 20px;
  gap: var(--space-5);
  border-radius: var(--radius-sm);
  transition: transform var(--motion-fast) var(--ease-out),
    background-color var(--motion-fast), border-color var(--motion-fast);
}

.button:active {
  transform: translateY(1px);
}

.button.primary:hover, .button.primary:focus-visible {
  background: #304941;
}

.hero-art {
  isolation: isolate;
}

/* Two book spines extend the original browser illustration into an archive. */
.hero-art::before, .hero-art::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: 40px;
  width: 19px;
  border: 1px solid #b5c3a5;
  border-radius: 4px 4px 2px 2px;
  transform-origin: bottom center;
}

.hero-art::before {
  left: 35px;
  height: 142px;
  background: #d5e0be;
  transform: rotate(-8deg);
}

.hero-art::after {
  left: 58px;
  height: 120px;
  background: #dfd8ed;
  transform: rotate(4deg);
}

.hero-art[data-paused=true] *, .is-page-hidden .hero-art * {
  animation-play-state: paused;
}

.art-label, .art-caption {
  color: #526247;
}

.catalog {
  padding-top: var(--space-7);
  padding-bottom: var(--space-8);
}

.section-top {
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.section-top h2, .how h2 {
  font-size: var(--text-section);
  line-height: 1.2;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.section-top > p {
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.division-grid {
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.division {
  min-width: 0;
  min-height: 96px;
  padding: 20px 24px;
  gap: var(--space-4);
  border-radius: var(--radius-card);
  transition: transform var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.division > span:nth-child(2) {
  min-width: 0;
}

.division strong {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.division small {
  display: block;
  font-size: var(--text-xs);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.division-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.division[aria-pressed=true] {
  box-shadow: inset 0 0 0 2px var(--ink), 0 5px 0 #172b2906;
}

.division[aria-pressed=true] .division-arrow {
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-size: 17px;
}

.division[aria-pressed=true] .division-arrow svg {
  display: none;
}

.division[aria-pressed=true] .division-arrow::after {
  content: '✓';
}

.catalog-toolbar {
  gap: var(--space-5);
  align-items: flex-end;
}

.tabs {
  min-height: 48px;
  align-items: center;
}

.tabs button {
  min-height: 44px;
  min-width: 64px;
  padding: 10px 18px;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  transition: background-color var(--motion-fast), color var(--motion-fast);
}

.tabs button:hover:not([aria-pressed=true]) {
  background: #e9eee1;
  color: var(--ink);
}

.search-group {
  display: grid;
  gap: var(--space-2);
  width: min(100%, 390px);
}

.search-label {
  font-size: var(--text-xs);
  color: var(--muted);
}

.search {
  min-width: 340px;
  min-height: 48px;
  width: 100%;
  padding-inline: 14px;
  border-radius: var(--radius-sm);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #526b2b12;
}

.search input {
  font-size: var(--text-sm);
  padding-block: 12px;
  min-height: 46px;
}

.search input::placeholder {
  color: #626e65;
  opacity: 1;
}

.filter-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--space-4);
}

.filter-summary button, .text-button {
  min-height: 44px;
  font-size: var(--text-xs);
}

.results-heading {
  margin: var(--space-5) 0 var(--space-4);
  gap: var(--space-4);
}

.results-heading h3 {
  font-size: var(--text-body);
}

.results-heading > span {
  font-size: var(--text-xs);
  flex-shrink: 0;
}

.catalog-group-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) 0 0;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.catalog-group-label strong {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--ink);
}

.projects {
  gap: var(--space-5);
}

.project-card {
  min-width: 0;
  border-radius: var(--radius-card);
  animation: none;
  transition: transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast), border-color var(--motion-fast);
}

/* Entry motion is opt-in. Search updates must not replay every card. */
.projects[data-animate=true] .project-card {
  animation: arrive var(--motion-panel) var(--ease-out) both;
}

.projects[data-animate=true] .project-card:nth-child(3n+2) {
  animation-delay: 35ms;
}

.projects[data-animate=true] .project-card:nth-child(3n+3) {
  animation-delay: 70ms;
}

.project-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover, .project-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: #91a177;
}

.project-card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.project-card a:focus-visible {
  outline: none;
}

.project-visual {
  height: auto;
  aspect-ratio: 1.84;
  flex-shrink: 0;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-position: var(--image-position, center top);
  transition: transform 240ms var(--ease-out);
}

.project-card:focus-within .project-visual img {
  transform: scale(1.035);
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--space-5);
}

.badge {
  font-size: var(--text-xs);
  line-height: 1.3;
  padding: 6px 8px;
  border-radius: 5px;
}

.badge.b {
  color: var(--purple-ink);
}

.badge.neutral {
  color: #505d50;
}

.project-body h3 {
  font-size: var(--text-card);
  line-height: 1.2;
  letter-spacing: -.035em;
  margin: var(--space-4) 0 var(--space-3);
  text-wrap: pretty;
}

.project-body > p {
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--space-4);
  min-height: 3.5em;
}

.members {
  font-size: var(--text-xs);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.project-bottom {
  font-size: var(--text-sm);
  min-height: 44px;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-4);
  padding-bottom: 2px;
}

.project-body .members {
  margin-bottom: var(--space-4);
}

.project-bottom .icon {
  transition: transform var(--motion-fast) var(--ease-out);
}

.project-card:hover .project-bottom .icon,
.project-card:focus-within .project-bottom .icon {
  transform: translate(2px, -2px);
}

.pending .project-visual {
  height: 68px;
  aspect-ratio: auto;
  padding-left: var(--space-5);
}

.pending .project-glyph {
  font-size: 2rem;
  color: #536642;
  opacity: 1;
}

.pending .project-body h3 {
  font-size: 1.125rem;
}

.pending .project-body > p {
  font-size: var(--text-sm);
  min-height: auto;
}

.image-fallback {
  position: relative;
  display: grid;
  place-items: center;
  background: #edf1e3;
  color: #536642;
  font: 4rem var(--font-editorial);
}

.project-card.b .image-fallback {
  background: #eeebf6;
  color: var(--purple-ink);
}

.empty {
  padding: var(--space-7) var(--space-5);
  border-radius: var(--radius-card);
}

.empty h3 {
  font-size: 1.375rem;
  line-height: 1.3;
}

.empty p {
  font-size: var(--text-body);
  max-width: 50ch;
}

.how {
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-card);
}

.how strong {
  font-size: var(--text-sm);
}

.how li p {
  font-size: var(--text-xs);
}

footer p, footer > span {
  font-size: var(--text-xs);
  line-height: 1.7;
}

/* Team details retain a clear route back and distinguish the main project. */
.detail {
  padding-top: var(--space-6);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.breadcrumb a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.breadcrumb [aria-current] {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.back {
  min-height: 44px;
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
}

.detail-layout {
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr);
}

.detail-layout > * {
  min-width: 0;
}

.detail h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.detail-kicker {
  margin: var(--space-5) 0 var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: .12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
}

.detail-description {
  font-size: var(--text-body);
  max-width: 68ch;
  line-height: 1.85;
}

.detail-summary h2 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 var(--space-2);
}

.detail-cover {
  aspect-ratio: 1.7;
  max-height: none;
  object-position: var(--image-position, center top);
  margin: var(--space-5) 0;
  background: #e9eddf;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.detail-side {
  padding: var(--space-5);
  border-radius: var(--radius-panel);
}

.detail-side h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-side h3 {
  font-size: var(--text-xs);
  line-height: 1.4;
  letter-spacing: .08em;
}

.member-list li {
  align-items: flex-start;
  font-size: var(--text-body);
  line-height: 1.5;
  min-height: 52px;
  gap: var(--space-3);
}

.avatar {
  width: 38px;
  height: 38px;
  font-size: var(--text-xs);
  background: var(--paper);
}

.detail-actions {
  margin: var(--space-5) 0 var(--space-3);
}

.detail-note {
  font-size: var(--text-sm);
  line-height: 1.8;
  max-width: 68ch;
}

.tags span {
  font-size: var(--text-xs);
  line-height: 1.4;
  padding: 7px 9px;
}

.other-grid article {
  border: 1px solid var(--line);
}

.other-grid .button {
  min-height: 44px;
  font-size: var(--text-xs);
}

.other-grid article[data-unavailable=true] {
  background: #f1eee9;
  border-style: dashed;
}

.loading-dialog {
  padding: var(--space-6);
}

.loading-dialog h2 {
  overflow-wrap: anywhere;
}

.loading-dialog #loading-status {
  font-size: var(--text-sm);
}

.loading-dialog .text-button {
  min-height: 48px;
}

.loading-dialog[open] {
  animation: panel-in 160ms var(--ease-out) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-height: 800px) and (min-width: 901px) {
  .header { padding-block: 16px; }
  .hero { padding-block: 36px; }
  .hero-art { height: 306px; }
  .hero h1 { font-size: clamp(2.5rem, 4.1vw, 3.5rem); }
  .hero-note { margin-top: 20px; }
  .art-window { top: 57px; }
  .tag-a { top: 54px; }
  .tag-b { bottom: 49px; }
}

@media (max-width: 900px) {
  .hero { padding-block: var(--space-7); }
  .catalog { padding-block: var(--space-6); }
  .hero-description { font-size: var(--text-body); }
  .eyebrow { font-size: .6875rem; }
  .section-top > p { max-width: 24ch; }
  .division { padding: 20px; }
  .search { min-width: 285px; }
  .detail-layout { grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr); }
}

@media (max-width: 700px) {
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .search-group { width: 100%; }
  .search { min-width: 0; }
  .tabs button { flex: 1; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-actions .button { flex: 1; }
  .detail-side { max-width: none; }
}

@media (max-width: 620px) {
  .header { padding: 16px 20px; gap: 16px; }
  .header nav { font-size: var(--text-xs); }
  .header nav a span { margin-left: 8px; }
  .hero { padding: var(--space-6) 20px; gap: var(--space-6); }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 3.125rem); letter-spacing: -.055em; }
  .hero-art { height: 260px; }
  .hero-description { font-size: var(--text-body); }
  .hero-note { font-size: var(--text-xs); line-height: 1.6; }
  .hero-art::before { left: 22px; height: 110px; }
  .hero-art::after { left: 44px; height: 90px; }
  .art-window { top: 48px; }
  .art-tag { padding: 10px 12px; font-size: 18px; }
  .tag-b { bottom: 42px; }
  .catalog { padding: var(--space-6) 20px; }
  .section-top h2 { font-size: 1.875rem; }
  .division-grid { gap: var(--space-3); margin-bottom: var(--space-5); }
  .division { min-height: 120px; padding: 16px 12px; gap: 10px; align-items: flex-start; position: relative; }
  .division strong { font-size: 1.125rem; line-height: 1.25; padding-top: 3px; }
  .division small { font-size: var(--text-xs); }
  .division-icon { width: 32px; height: 38px; font-size: 24px; }
  .division-arrow { position: absolute; left: 14px; bottom: 12px; width: 24px; height: 24px; font-size: 20px; }
  .division[aria-pressed=true] .division-arrow { font-size: 14px; }
  .project-visual { height: auto; aspect-ratio: 1.84; }
  .project-body { padding: 22px; }
  .pending .project-visual { height: 64px; }
  .results-heading { align-items: baseline; }
  .results-heading h3 { font-size: var(--text-sm); }
  .results-heading > span { font-size: var(--text-xs); }
  .empty { padding: var(--space-6) 20px; }
  .empty p { font-size: var(--text-sm); }
  .how { padding: var(--space-5); }
  .how h2 { font-size: 1.75rem; }
  .detail { padding: var(--space-5) 20px var(--space-7); }
  .detail h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .detail-description { font-size: var(--text-body); }
  .detail-actions { flex-direction: column; }
  .detail-cover { aspect-ratio: 1.5; }
  .back { margin-bottom: var(--space-4); }
  .breadcrumb { margin-bottom: var(--space-3); }
  footer { padding: var(--space-5) 20px; }
  footer p { font-size: var(--text-xs); max-width: 150px; }
}

@media (max-width: 360px) {
  .header { padding-inline: 16px; gap: 10px; }
  .brand { font-size: 23px; }
  .brand-icon { margin-right: 8px; }
  .header nav a { max-width: 105px; line-height: 1.4; }
  .hero, .catalog, .detail { padding-inline: 16px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-art { height: 228px; }
  .art-window { top: 44px; }
  .window-body { padding: 10px 14px; }
  .art-tiles span { height: 24px; }
  .tag-b { bottom: 39px; }
  .art-caption { left: 18px; right: 18px; font-size: 7px; }
  .division { gap: 8px; padding: 14px 10px; min-height: 132px; }
  .division-icon { width: 28px; height: 34px; font-size: 22px; }
  .division strong { font-size: 1rem; }
  .division-arrow { left: 12px; }
  .project-body { padding: 20px; }
  .tabs button { min-width: 0; padding-inline: 14px; }
  .how { margin-inline: 16px; padding: 22px; }
  footer { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  .hero-art *, .projects[data-animate=true] .project-card, .loading-dialog[open] {
    animation: none !important;
  }
  .project-card:hover, .project-card:focus-within,
  .project-card:hover img, .project-card:focus-within img,
  .primary:hover, .button:active {
    transform: none;
  }
}

/* Image loading and absent-image variants used by the catalogue renderer. */
.image-fallback-label {
  grid-area: 1 / 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.project-visual > img {
  grid-area: 1 / 1;
}

.detail-cover-wrap {
  margin: var(--space-5) 0;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.detail-cover-wrap .detail-cover {
  height: auto;
  display: block;
  margin: 0;
}

.detail-cover-wrap.image-fallback {
  aspect-ratio: 1.7;
  min-height: 180px;
  background: var(--surface-soft);
  border: 1px dashed #b9c5ac;
  padding: var(--space-5);
  color: var(--muted);
  font: var(--text-sm) var(--font-body);
}

.detail-layout.without-cover {
  align-items: start;
}

.detail-layout.without-cover .detail-actions:last-child,
.detail-layout.without-cover .detail-note:last-child {
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .detail-cover-wrap.image-fallback { aspect-ratio: 1.5; }
}

/* On a short phone screen, keep the two divisions ahead of decorative artwork. */
@media (max-width: 620px) and (max-height: 760px) {
  .hero-art { display: none; }
  .hero { padding-top: 24px; padding-bottom: 28px; }
  .hero-note { margin-top: 16px; }
}
