/* Reserve two rows on desktop. Missing content stays visually empty, without fake cards. */
.card-grid[data-collection-items] { grid-template-rows: repeat(2, minmax(310px, 1fr)); grid-auto-rows: minmax(310px, 1fr); }
/* UI v8: shared alignment, soft surfaces and restrained hierarchy. */

.catalog-section { padding-block: 64px 72px; }
#projects { padding-top: 56px; }
.catalog-section .section-heading { margin-bottom: 34px; }
.catalog-section .section-heading h2, .collaboration-section .section-heading h2 { font-size: clamp(30px, 3vw, 40px); margin-top: 10px; font-weight: 600; letter-spacing: -.035em; }
.heading-dot { display: none; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.catalog-item { min-width: 0; }
.catalog-card { display: flex; flex-direction: column; height: 100%; border: 1px solid transparent; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.catalog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.catalog-card:focus-visible { outline-offset: 5px; }
.card-visual { position: relative; height: 235px; min-width: 0; overflow: hidden; color: #22231f; }
.card-visual-vessel { background: var(--project-tint); }
.card-kicker { position: absolute; left: 23px; top: 20px; z-index: 2; font-size: 9px; }
.card-cover-caption { position: absolute; bottom: 15px; left: 23px; z-index: 2; font-size: 9px; }
.card-vessel { position: absolute; inset: 12px 0 10px; }
.card-vessel img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; pointer-events: none; }
.card-vessel .card-line-layer { clip-path: inset(0 0 0 50%); background: var(--project-tint); }
.card-vessel::after { content: ""; width: 1px; position: absolute; left: 50%; top: 18%; bottom: 17%; background: #22231f40; }
.card-visual-note { background: var(--lavender); display: grid; place-items: center; }
.card-visual-note::before { content: ""; width: 280px; height: 280px; position: absolute; border: 1px solid #22231f16; border-radius: 50%; top: calc(50% - 140px); left: calc(50% - 140px); }
.card-cover-word { font-size: 57px; line-height: 1.12; font-weight: 650; letter-spacing: -.07em; position: relative; }
.card-cover-word > span { position: absolute; right: -45px; top: -12px; font-size: 57px; font-weight: 400; }
.card-visual-letter { background: var(--lime); display: grid; place-items: center; padding: 35px; }
.card-visual-letter .card-cover-word { font-size: 38px; }
.card-body { flex: 1; min-width: 0; padding: 21px 24px; }
.card-title { font-size: 20px; letter-spacing: -.025em; line-height: 1.5; font-weight: 600; margin: 0; }
.collection-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 52px; margin-top: 21px; }
.collection-bottom > p { color: var(--muted); font-size: 11px; }
.collection-more { min-height: 44px; padding: 9px 18px; font-size: 13px; gap: 30px; }
.blog-band { background: var(--surface); }
.blog-band .catalog-card { background: var(--paper); }

.collaboration-section { padding-block: 76px 85px; }
.collaboration-empty { display: grid; grid-template-columns: 80px 1fr auto; gap: 34px; align-items: center; background: #252821; color: #f4f2eb; padding: 44px; }
.collaboration-symbol { font-size: 100px; line-height: 1; color: var(--lime); align-self: start; padding-top: 18px; }
.collaboration-empty-copy > .section-index { color: var(--lime); font-size: 10px; }
.collaboration-empty h3 { font-size: 35px; margin: 14px 0; letter-spacing: -.045em; line-height: 1.4; }
.collaboration-empty-copy > p:not(.section-index) { color: #c7cabc; font-size: 14px; line-height: 1.9; }
.collaboration-types { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 25px; font-size: 11px; }
.collaboration-types span::before { content: "+ "; color: var(--lime); }
.collaboration-empty .button { background: var(--lime); color: #22231f; font-size: 13px; gap: 20px; align-self: end; }

.social-contact { background: var(--lime); color: #22231f; padding-block: 75px 60px; }
.social-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 42px; }
.social-heading h2 { font-size: clamp(34px, 4vw, 58px); margin-top: 23px; letter-spacing: -.055em; line-height: 1.35; }
.social-heading > p { font-size: 14px; line-height: 1.9; padding-bottom: 5px; }
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.social-card { display: flex; align-items: center; text-align: left; gap: 17px; padding: 24px 21px; min-height: 120px; border: 1px solid #22231f50; background: #ffffff65; color: #22231f; position: relative; transition: background .2s, transform .2s; }
.social-card:is(a, button):hover { background: #fffdf4; transform: translateY(-3px); }
.social-card[data-unconfigured] { border-style: dashed; }
.social-icon { display: grid; place-items: center; border: 1px solid #22231f; width: 39px; height: 39px; border-radius: 50%; flex-shrink: 0; font-size: 19px; font-weight: 600; line-height: 1; }
.social-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.social-label { font-size: 16px; font-weight: 600; }
.social-value { font-size: 11px; color: #50583f; overflow-wrap: anywhere; }
.social-action { font-size: 10px; margin-left: auto; white-space: nowrap; }
.social-card:has(.social-action:not(:empty)) { flex-wrap: wrap; }
.social-card:has(.social-action:not(:empty)) .social-copy { flex: 1; }
.social-note { font-size: 11px; color: #50583f; margin-top: 18px; }
.copy-feedback { font-size: 13px; padding: 12px 16px; border: 1px solid #22231f; margin-top: 16px; background: #fffdf4; overflow-wrap: anywhere; }
.message-panel { border-block: 1px solid #22231f70; margin-top: 40px; }
.message-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 550; }
.message-panel > summary::-webkit-details-marker { display: none; }
.message-panel > summary .mono { font-size: 9px; font-weight: 400; margin-left: 16px; }
.message-plus { font-size: 30px; line-height: 1; transition: transform .2s; }
.message-panel[open] .message-plus { transform: rotate(45deg); }
.message-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; padding-block: 18px 42px; }
.message-intro h3 { font-size: 34px; line-height: 1.5; margin: 18px 0; letter-spacing: -.04em; }
.message-intro p { font-size: 14px; line-height: 2; }
.message-panel .form-panel { box-shadow: var(--shadow); margin-right: 0; }
.message-panel .form-heading h3 { font-size: 22px; }


.project-page { padding-block: 40px 80px; }
.project-page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin: 35px 0 44px; }
.project-page-heading h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.28; letter-spacing: -.055em; margin-block: 20px; }
.project-page-heading h1 span { color: var(--accent-ink); }
.project-page-heading > div > p:last-child { font-size: 16px; color: var(--muted); }
.project-page-heading > .badge { margin-bottom: 8px; white-space: nowrap; }
.project-page-layout { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: 55px; }
.project-visual-panel { background: var(--project-tint); padding: 24px; border-radius: 24px; }
.project-visual-panel .project-stage { box-shadow: none; border-radius: 16px; }
.project-facts { padding-top: 20px; }
.project-facts dl { margin-block: 20px 28px; }
.project-facts dl > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-size: 11px; }
.project-facts dd { font-size: 18px; line-height: 1.6; margin: 7px 0 0; }
.fact-disclosure { color: var(--muted); font-size: 13px; padding: 15px 17px; background: var(--surface); border-left: 3px solid var(--orange); }
.project-story { max-width: 800px; margin: 76px auto 0; }
.project-story > section { margin-bottom: 54px; }
.project-story .section-index { color: var(--muted); font-size: 11px; }
.project-story h2 { font-size: 29px; margin-top: 18px; }
.project-story section > p:not(.section-index) { margin-top: 20px; }
.project-next-step { padding: 32px; background: var(--surface); color: var(--ink); border-radius: 24px; }
.project-next-step h2 { margin-top: 0; }
.project-next-step p { font-size: 15px; margin-bottom: 22px; }

@media (max-width: 1150px) {
  
  .social-card { gap: 12px; padding: 23px 16px; }
  .social-icon { width: 32px; height: 32px; font-size: 15px; }
  .social-label { font-size: 14px; }
  .card-grid { gap: 22px; }
  .card-body { padding: 22px; }
  .card-title { font-size: 20px; }
  .collaboration-empty { grid-template-columns: 60px 1fr; gap: 25px; padding: 35px; }
  .collaboration-symbol { font-size: 80px; }
  .collaboration-empty .button { grid-column: 2; justify-self: start; }
}
@media (max-width: 999px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-section { padding-block: 55px; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-card { padding-inline: 25px; min-height: 104px; }
  .social-icon { width: 39px; height: 39px; font-size: 18px; }
  .social-label { font-size: 16px; }
  .social-heading > p { font-size: 12px; }
  .message-layout { gap: 35px; }
  .project-page-layout { gap: 30px; grid-template-columns: 1.3fr 1fr; }
  .project-facts dd { font-size: 16px; }
}
@media (max-width: 767px) {
  .catalog-section, .collaboration-section { padding-block: 50px; }
  #projects { padding-top: 40px; }
  .catalog-section .section-heading { margin-bottom: 27px; }
  .catalog-section .section-heading h2, .collaboration-section .section-heading h2 { font-size: 30px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .card-cover-word > span { font-size: 45px; right: -31px; }
  .card-kicker { left: 18px; font-size: 8px; }
  .card-cover-caption { left: 18px; font-size: 8px; }
  .collaboration-empty { padding: 30px; grid-template-columns: 1fr; gap: 18px; }
  .collaboration-symbol { display: none; }
  .collaboration-empty h3 { font-size: 30px; }
  .collaboration-empty .button { grid-column: auto; margin-top: 8px; }
  .social-contact { padding-block: 50px; }
  .social-heading { display: block; margin-bottom: 28px; }
  .social-heading h2 { font-size: 39px; margin-top: 20px; }
  .social-heading > p { margin-top: 22px; font-size: 13px; }
  .message-layout { grid-template-columns: 1fr; padding-top: 0; gap: 22px; }
  .message-intro h3 { font-size: 26px; margin-top: 5px; }
  .message-intro h3 br { display: none; }
  .message-intro p { font-size: 13px; }
  .message-intro p br { display: none; }
  .message-panel .form-panel { margin-top: 0; }
  .message-panel > summary { font-size: 15px; }
  .project-page-heading { display: block; margin-top: 24px; }
  .project-page-heading > .badge { margin-top: 18px; }
  .project-page-heading h1 { font-size: 43px; }
  .project-page-layout { display: block; }
  .project-facts { margin-top: 30px; }
  .project-facts dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .project-facts dd { font-size: 14px; }
  .project-story { margin-top: 50px; }
  .project-story h2 { font-size: 26px; }
}
@media (max-width: 540px) {
  .collection-bottom { min-height: 44px; margin-top: 18px; }
  .collection-bottom > p { font-size: 10px; }
  .collection-more { padding: 9px 14px; font-size: 12px; gap: 22px; }
  .catalog-section .section-heading h2, .collaboration-section .section-heading h2 { font-size: 29px; }
  .collaboration-empty { padding: 26px; }
  .collaboration-empty h3 { font-size: 27px; }
  .collaboration-empty-copy > p:not(.section-index) { font-size: 13px; }
  .collaboration-types { margin-top: 20px; gap: 10px 16px; font-size: 10px; }
  .social-heading h2 { font-size: 35px; line-height: 1.4; }
  .social-grid { gap: 12px; }
  .social-card { gap: 11px; padding: 20px 15px; min-height: 103px; }
  .social-icon { width: 29px; height: 29px; font-size: 14px; }
  .social-label { font-size: 14px; }
  .social-value { font-size: 10px; }
  .social-note { font-size: 10px; line-height: 1.9; }
  .message-panel { margin-top: 30px; }
  .message-panel > summary .mono { display: none; }
  .message-panel > summary { font-size: 14px; }
  .message-panel .form-panel { padding-inline: 18px; }
  .project-page { padding-top: 26px; }
  .project-page-heading { margin-bottom: 28px; }
  .project-page-heading h1 { font-size: 37px; }
  .project-page-heading > div > p:last-child { font-size: 14px; }
  .project-visual-panel { padding: 17px; }
  .project-facts dl { display: block; }
  .project-facts dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 15px; padding: 15px 0; align-items: center; }
  .project-facts dd { margin: 0; font-size: 15px; }
  .project-story { font-size: 15px; }
  .project-story h2 { font-size: 25px; line-height: 1.5; }
  .project-next-step { padding: 25px; }
  .project-next-step h2 { font-size: 24px; }
}
@media (max-width: 360px) {
  
  .social-card { gap: 8px; padding-inline: 12px; }
  .social-icon { width: 26px; height: 26px; font-size: 13px; }
  .social-label { font-size: 13px; }
  .social-heading h2 { font-size: 30px; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .card-grid { gap: 20px; }
  .card-body { padding: 19px; }
  .card-title { font-size: 20px; }
  .card-visual { height: 210px; }
  .card-grid[data-collection-items] { grid-template-rows: repeat(2, minmax(290px, 1fr)); grid-auto-rows: minmax(290px, 1fr); }
}
@media (max-width: 767px) {
  .card-grid[data-collection-items] { grid-template-rows: none; grid-auto-rows: auto; }
  .card-visual { height: 240px; }
}
@media print {
  .card-grid { display: block; }
  .catalog-card { break-inside: avoid; margin-bottom: 20px; }
}

.language-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 44px; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.language-toggle:hover { color: var(--accent-ink); }
html[lang="en"] .card-title { font-size: 20px; line-height: 1.45; }
html[lang="en"] .card-cover-word { font-size: 47px; }
html[lang="en"] .social-heading h2 { font-size: clamp(32px, 4vw, 54px); }
html[lang="en"] .collaboration-empty h3 { font-size: clamp(25px, 3vw, 35px); }
html[lang="en"] .card-cover-caption { font-size: 8px; }
@media (max-width: 540px) {
  .nav-actions { gap: 0; }
  html[lang="en"] .social-card { flex-wrap: wrap; }
  html[lang="en"] .social-label { font-size: 13px; }
  html[lang="en"] .social-value { font-size: 9px; }
  html[lang="en"] .project-page-heading h1 { font-size: 36px; }
}
