/* 쓰리원 공식 기록·공개자료 확장 v4 */
:root {
  --archive-ink: #071c33;
  --archive-teal: #0aa6a6;
  --archive-paper: #f3f6f6;
}

.portfolio-archive-hero { min-height: 600px; }
.portfolio-archive-hero::before { background-position: center 54%; filter: saturate(.88) contrast(1.04); }
.portfolio-archive-hero::after { background: linear-gradient(90deg, rgba(4,20,39,.94) 0%, rgba(4,20,39,.72) 42%, rgba(4,20,39,.18) 78%); }
.portfolio-archive-hero .container { max-width: 1280px; }
.portfolio-archive-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 6vw, 5.8rem); letter-spacing: -.055em; line-height: .99; }
.portfolio-archive-hero .page-hero-sub { max-width: 650px; }

.archive-section { padding-top: clamp(84px, 10vw, 152px); background: linear-gradient(180deg, #fff 0, var(--archive-paper) 38%, #fff 100%); }
.archive-section .container { max-width: 1360px; }
.archive-filters { position: sticky; z-index: 8; top: calc(var(--header-h) + 14px); width: fit-content; max-width: 100%; margin: 44px 0 14px; padding: 9px; border: 1px solid rgba(7,28,51,.1); border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 14px 40px rgba(7,28,51,.08); backdrop-filter: blur(14px); }
.archive-filters .filter-button { border: 0; background: transparent; }
.archive-filters .filter-button[aria-pressed="true"] { background: var(--archive-ink); color: #fff; box-shadow: 0 6px 18px rgba(7,28,51,.22); }
.archive-section .result-count { margin: 0 0 26px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .04em; }

.project-archive { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
.project-card { grid-column: span 4; position: relative; min-width: 0; border-radius: 4px; background: #fff; box-shadow: 0 18px 48px rgba(7,28,51,.08); overflow: hidden; transition: transform .34s ease, box-shadow .34s ease; }
.project-card-wide { grid-column: span 8; }
.project-card-tall { margin-top: 68px; }
.project-card:nth-child(6n + 5) { transform: translateY(32px); }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 28px 64px rgba(7,28,51,.14); }
.project-card:nth-child(6n + 5):hover { transform: translateY(27px); }
.project-card[hidden] { display: none; }
.project-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.project-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #dce4e5; }
.project-card-wide .project-open { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(300px, .68fr); min-height: 530px; }
.project-card-wide .project-image { height: 100%; aspect-ratio: auto; }
.project-card-tall .project-image { aspect-ratio: 3 / 4; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-image img { transform: scale(1.035); }
.project-copy { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); }
.project-copy strong { font-size: clamp(1.18rem, 1.8vw, 1.78rem); line-height: 1.35; letter-spacing: -.035em; }
.project-card-wide .project-copy { justify-content: flex-end; background: var(--archive-ink); color: #fff; }
.project-card-wide .project-summary { color: rgba(255,255,255,.68); }
.project-card-wide .card-cta { color: #7be1dd; }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 18px; color: #62707d; font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.project-card-wide .project-meta { color: rgba(255,255,255,.58); }
.project-summary { display: block; margin-top: 14px; color: var(--muted); line-height: 1.75; }
.project-copy .card-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: #087f82; font-size: 14px; font-weight: 800; }
.project-copy .card-cta::after { content: '↗'; }
.project-blog-link { position: absolute; z-index: 2; right: 14px; top: 14px; padding: 8px 11px; border-radius: 999px; background: rgba(7,28,51,.82); color: #fff; font-size: 11px; font-weight: 750; letter-spacing: .02em; backdrop-filter: blur(8px); }
.project-blog-link:hover { background: var(--archive-teal); color: #fff; }

dialog.project-dialog { width: min(1380px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 6px; background: #fff; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.38); overflow: auto; }
dialog.project-dialog::backdrop, dialog.safe-patent-dialog::backdrop { background: rgba(3,16,31,.82); backdrop-filter: blur(5px); }
.project-dialog-inner { position: relative; min-height: min(820px, calc(100vh - 30px)); }
.project-dialog .dialog-close, .safe-patent-dialog .dialog-close { position: fixed; z-index: 10; top: max(24px, calc((100vh - min(820px, calc(100vh - 30px))) / 2 + 18px)); right: max(24px, calc((100vw - min(1380px, calc(100vw - 30px))) / 2 + 18px)); margin: 0; box-shadow: 0 8px 30px rgba(7,28,51,.18); }
.project-dialog-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr); min-height: inherit; }
.project-gallery { display: flex; min-width: 0; flex-direction: column; padding: clamp(24px, 3vw, 48px); background: #e9eeee; }
.project-main-wrap { display: grid; flex: 1 1 auto; min-height: 460px; place-items: center; overflow: hidden; background: #dce3e3; }
.project-main-wrap img { width: 100%; height: 100%; max-height: 66vh; object-fit: contain; }
.project-image-status { min-height: 22px; margin: 10px 0 6px; color: #53616d; font-size: 13px; }
.project-thumbnails { display: grid; grid-auto-flow: column; grid-auto-columns: 94px; gap: 8px; padding: 2px 2px 10px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.project-thumb { display: block; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 3px; background: #ccd6d7; cursor: pointer; overflow: hidden; }
.project-thumb[aria-pressed="true"] { border-color: var(--archive-teal); box-shadow: 0 0 0 2px #fff; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-dialog-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 5vw, 82px) clamp(30px, 4vw, 58px); }
.project-dialog-copy h2 { margin: 18px 0; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.2; letter-spacing: -.045em; }
.project-dialog-copy > p { color: var(--muted); line-height: 1.85; }
.project-dialog-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; color: #587079; font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.project-source-note { margin-top: 30px; padding: 18px; border-left: 3px solid var(--archive-teal); background: var(--archive-paper); }
.project-source-note strong { display: block; font-size: 13px; }
.project-source-note p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.home-blog-archive { position: relative; padding: clamp(90px, 10vw, 150px) 0; background: #071c33; color: #fff; overflow: hidden; }
.home-blog-archive::before { content: ''; position: absolute; width: 540px; height: 540px; right: -260px; top: -260px; border: 1px solid rgba(78,205,196,.25); border-radius: 50%; box-shadow: 0 0 0 100px rgba(78,205,196,.02), 0 0 0 200px rgba(78,205,196,.015); }
.home-blog-archive .container { position: relative; max-width: 1360px; }
.home-record-head { align-items: end; }
.home-record-head h2 { font-size: clamp(2.35rem, 5vw, 5rem); color: #fff; line-height: 1.03; letter-spacing: -.055em; }
.home-record-head .lead { color: rgba(255,255,255,.65); }
.home-record-head .btn-line { border-color: rgba(255,255,255,.35); color: #fff; }
.home-record-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-flow: dense; gap: clamp(14px, 2vw, 26px); margin-top: clamp(48px, 7vw, 88px); }
.home-record-card { grid-column: span 3; border-top: 1px solid rgba(255,255,255,.18); }
.home-record-card.home-record-feature { grid-column: span 7; grid-row: span 2; }
.home-record-card.home-record-landscape { grid-column: span 5; }
.home-record-card a { display: block; color: #fff; }
.home-record-feature a { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr); min-height: 610px; }
.home-record-card figure { position: relative; height: 280px; margin: 0; overflow: hidden; background: #112d47; }
.home-record-feature figure { height: 100%; }
.home-record-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.home-record-card:hover img { transform: scale(1.035); filter: saturate(1.06); }
.home-record-card figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 9px; background: rgba(7,28,51,.82); color: rgba(255,255,255,.82); font-size: 11px; font-weight: 700; backdrop-filter: blur(7px); }
.home-record-card h3 { margin: 18px 0 0; color: #fff; font-size: clamp(1.05rem, 1.55vw, 1.42rem); line-height: 1.45; letter-spacing: -.025em; }
.home-record-feature a > div { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 50px); background: #0a283f; }
.home-record-feature span { color: #70d9d4; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.home-record-feature h3 { margin: 16px 0; font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.15; }
.home-record-feature p { color: rgba(255,255,255,.62); line-height: 1.8; }
.home-record-feature strong { margin-top: 36px; color: #7be1dd; font-size: 13px; }

.safe-documents { background: linear-gradient(135deg, #f1f5f5 0%, #fff 55%, #edf3f3 100%); }
.safe-documents .container { max-width: 1320px; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 34px; padding: 14px 16px; border-left: 3px solid var(--archive-teal); background: rgba(10,166,166,.07); color: #47606a; font-size: 13px; line-height: 1.7; }
.privacy-note::before { content: '✓'; flex: none; color: #087f82; font-weight: 900; }
.patent-editorial-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(18px, 3vw, 38px); }
.safe-patent-card { position: relative; display: grid; grid-template-columns: minmax(140px,.42fr) minmax(0,.58fr); min-height: 430px; padding: 0; border: 0; background: #fff; color: var(--archive-ink); text-align: left; cursor: pointer; box-shadow: 0 22px 60px rgba(7,28,51,.1); overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.safe-patent-card:hover { transform: translateY(-5px); box-shadow: 0 30px 74px rgba(7,28,51,.16); }
.safe-patent-card-dark { margin-top: 66px; background: var(--archive-ink); color: #fff; }
.patent-graphic { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 42px); background: linear-gradient(145deg, #0ba5a3, #08777c); color: #fff; overflow: hidden; }
.patent-graphic::after { content: ''; position: absolute; width: 220px; height: 220px; right: -120px; bottom: -120px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.04), 0 0 0 76px rgba(255,255,255,.025); }
.patent-graphic span { position: relative; z-index: 1; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.patent-graphic strong { position: relative; z-index: 1; font-size: clamp(2rem, 4vw, 4.25rem); line-height: .91; letter-spacing: -.07em; }
.safe-patent-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 52px); }
.safe-patent-copy > strong { margin: 18px 0; font-size: clamp(1.35rem, 2.3vw, 2.25rem); line-height: 1.3; letter-spacing: -.04em; }
.safe-patent-copy > span:not(.page-kicker):not(.card-cta) { color: #65727d; font-size: 14px; }
.safe-patent-card-dark .safe-patent-copy > span:not(.page-kicker):not(.card-cta) { color: rgba(255,255,255,.6); }
.safe-patent-copy .card-cta { margin-top: 42px; color: #087f82; font-size: 13px; font-weight: 800; }
.safe-patent-card-dark .safe-patent-copy .card-cta { color: #7be1dd; }
.verification-materials { display: grid; grid-template-columns: minmax(300px,.74fr) minmax(0,1.26fr); gap: clamp(18px, 3vw, 38px); margin-top: clamp(70px, 9vw, 130px); }
.company-verification-card, .catalog-request-panel { padding: clamp(28px, 4vw, 52px); border: 1px solid rgba(7,28,51,.1); background: rgba(255,255,255,.8); }
.company-verification-card h3, .catalog-request-panel h3 { margin: 12px 0 24px; font-size: clamp(1.45rem, 2.4vw, 2.25rem); letter-spacing: -.04em; }
.company-verification-card dl { margin: 0; }
.company-verification-card dl div { display: grid; grid-template-columns: 105px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(7,28,51,.09); }
.company-verification-card dt { color: #6a7780; font-size: 13px; }
.company-verification-card dd { margin: 0; font-weight: 700; }
.catalog-request-panel { background: var(--archive-ink); color: #fff; }
.catalog-request-panel > p { color: rgba(255,255,255,.64); }
.catalog-request-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 30px; }
.catalog-request-grid article { padding: 22px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); }
.catalog-request-grid article > span { color: #7be1dd; font-size: 12px; font-weight: 800; }
.catalog-request-grid article > strong { display: block; margin: 10px 0 20px; font-size: 1.12rem; }
.catalog-request-grid article div { display: flex; flex-wrap: wrap; gap: 13px; }
.catalog-request-grid .text-link { color: #fff; font-size: 13px; }

dialog.safe-patent-dialog { width: min(920px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 6px; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.38); overflow: auto; }
.safe-patent-dialog .dialog-close { right: max(24px, calc((100vw - min(920px, calc(100vw - 30px))) / 2 + 18px)); }
.safe-patent-dialog-inner { display: grid; grid-template-columns: .42fr .58fr; min-height: 570px; }
.patent-graphic-large { min-height: 570px; }
.patent-graphic-large strong { writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(2.3rem, 5vw, 4.8rem); }
.safe-patent-dialog-inner > div:last-child { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 6vw, 76px); }
.safe-patent-dialog h2 { margin: 14px 0 32px; font-size: clamp(1.8rem, 3.6vw, 3.25rem); line-height: 1.18; letter-spacing: -.05em; }
.safe-patent-facts { margin: 0; }
.safe-patent-facts div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.safe-patent-facts dt { color: var(--muted); font-size: 13px; }
.safe-patent-facts dd { margin: 0; font-weight: 750; }

.product-catalog-request { background: #edf3f3; }
.product-catalog-request .catalog-request-banner { display: grid; grid-template-columns: minmax(0,1.2fr) auto; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 66px); background: var(--archive-ink); color: #fff; }
.product-catalog-request .catalog-request-banner h2 { margin: 12px 0 18px; color: #fff; font-size: clamp(1.8rem, 3.8vw, 3.6rem); letter-spacing: -.05em; }
.product-catalog-request .catalog-request-banner p { max-width: 720px; color: rgba(255,255,255,.66); }
.product-catalog-request .section-actions { margin: 0; }
.product-catalog-request .btn-line { border-color: rgba(255,255,255,.35); color: #fff; }

@media (max-width: 1100px) {
  .project-card { grid-column: span 6; }
  .project-card-wide { grid-column: span 12; }
  .project-dialog-layout { grid-template-columns: minmax(0,1.1fr) minmax(330px,.9fr); }
  .home-record-card { grid-column: span 4; }
  .home-record-card.home-record-feature { grid-column: span 8; }
  .home-record-card.home-record-landscape { grid-column: span 4; }
  .home-record-feature a { grid-template-columns: 1fr; min-height: 0; }
  .home-record-feature figure { height: 430px; }
}

@media (max-width: 800px) {
  .portfolio-archive-hero { min-height: 520px; }
  .portfolio-archive-hero h1 { font-size: clamp(2.5rem, 11vw, 4.4rem); }
  .archive-filters { top: calc(var(--header-h) + 7px); width: 100%; flex-wrap: nowrap; margin-top: 30px; border-radius: 10px; overflow-x: auto; }
  .archive-filters .filter-button { flex: none; }
  .project-card, .project-card-wide { grid-column: span 12; }
  .project-card-wide .project-open { grid-template-columns: 1fr; min-height: 0; }
  .project-card-wide .project-image { height: auto; aspect-ratio: 4 / 3; }
  .project-card-tall, .project-card:nth-child(6n + 5) { margin-top: 0; transform: none; }
  .project-card-tall .project-image { aspect-ratio: 4 / 3; }
  .project-card:nth-child(6n + 5):hover { transform: translateY(-5px); }
  dialog.project-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .project-dialog-layout { grid-template-columns: 1fr; }
  .project-gallery { min-height: auto; padding: 16px; }
  .project-main-wrap { min-height: 360px; }
  .project-main-wrap img { max-height: 58vh; }
  .project-dialog-copy { padding: 32px 20px 40px; }
  .project-dialog .dialog-close, .safe-patent-dialog .dialog-close { top: 18px; right: 18px; }
  .home-record-card, .home-record-card.home-record-feature, .home-record-card.home-record-landscape { grid-column: span 6; }
  .home-record-card.home-record-feature { grid-column: span 12; }
  .patent-editorial-grid, .verification-materials { grid-template-columns: 1fr; }
  .safe-patent-card-dark { margin-top: 0; }
  .product-catalog-request .catalog-request-banner { grid-template-columns: 1fr; }
  .product-catalog-request .section-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .project-card { border-radius: 2px; }
  .project-copy { padding: 24px 22px 28px; }
  .project-copy strong { font-size: 1.23rem; }
  .project-summary { font-size: 14px; }
  .project-blog-link { right: 10px; top: 10px; }
  .project-main-wrap { min-height: 300px; }
  .project-thumbnails { grid-auto-columns: 75px; }
  .project-dialog-copy h2 { font-size: 1.75rem; }
  .home-record-grid { gap: 32px 14px; }
  .home-record-card, .home-record-card.home-record-landscape { grid-column: span 6; }
  .home-record-card figure { height: 190px; }
  .home-record-feature figure { height: 360px; }
  .home-record-card h3 { font-size: 1rem; }
  .home-record-feature h3 { font-size: 1.75rem; }
  .safe-patent-card { grid-template-columns: 1fr; min-height: 0; }
  .patent-graphic { min-height: 210px; }
  .safe-patent-copy { min-height: 280px; }
  .verification-materials { margin-top: 64px; }
  .catalog-request-grid { grid-template-columns: 1fr; }
  .company-verification-card dl div { grid-template-columns: 82px 1fr; }
  dialog.safe-patent-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .safe-patent-dialog-inner { grid-template-columns: 1fr; }
  .patent-graphic-large { min-height: 190px; }
  .patent-graphic-large strong { writing-mode: initial; transform: none; }
  .safe-patent-dialog-inner > div:last-child { padding: 34px 22px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .project-image img, .home-record-card img, .safe-patent-card { transition: none; }
}
