@font-face { font-family: Poppins; src: url("/fonts/poppins-400-latin.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url("/fonts/poppins-700-latin.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/fonts/open-sans-600-latin.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }

* { box-sizing: border-box; }
html { background: #000; color-scheme: dark; }
body { margin: 0; min-width: 320px; background: #000; color: #fff; font-family: Poppins, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }

.site-name { position: fixed; z-index: 10; top: 10px; left: 20px; margin: 0; color: #fff; font-size: 21px; font-weight: 700; line-height: 1.5rem; pointer-events: none; }
a.site-name { pointer-events: auto; }
.showreel { display: grid; width: 100%; height: 80vh; margin-top: 45px; padding: 0 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; }
.showreel-cell { position: relative; min-width: 0; min-height: 0; overflow: hidden; border-radius: 10px; background: #000; }
.showreel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.projects { display: grid; padding: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.project-card { position: relative; display: block; height: 350px; overflow: hidden; border-radius: 20px; background: #000; }
.project-card > img { width: 100%; height: 100%; object-fit: cover; }
.project-label { position: absolute; right: 10px; bottom: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 10px; border: 1px solid #ffffff12; border-radius: 15px; outline: 1px solid #a7a7a729; background: #00000029; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.project-title { margin-right: 10px; font-size: 14px; font-weight: 700; line-height: 14px; }
.project-category { margin-top: 3px; font-size: 12px; font-weight: 400; line-height: 12px; }

.site-footer { position: fixed; z-index: 10; bottom: 1rem; left: 1rem; display: flex; align-items: center; gap: .75rem; padding: 10px 15px; border: 1px solid #ffffff0f; border-radius: 20px; background: #17171780; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-footer > span { color: #a1a1a1; font-family: Poppins, sans-serif; font-size: 11.2px; font-weight: 700; line-height: 12.8px; opacity: .36; }
.site-footer a { font-family: "Open Sans", sans-serif; font-size: 12.8px; font-weight: 600; line-height: 20px; }

.project-page { width: min(100% - 2rem, 1600px); margin: 72px auto 0; }
.project-page h1 { margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 4rem); font-weight: 500; }
.project-back { display: inline-block; margin-bottom: 1rem; color: #aaa; }
.project-cover { width: 100%; max-height: 80vh; object-fit: contain; }
.project-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.project-gallery figure { margin: 0; }
.project-gallery img, .project-gallery video { width: 100%; height: auto; }
.project-next { display: block; margin: 3rem 0 5rem; color: #aaa; }

.page-shell { width: min(100% - 2rem, 940px); min-height: 100svh; margin: 0 auto; padding: 92px 0 120px; }
.page-kicker { margin: 0 0 1.25rem; color: #858585; font-family: "Open Sans", sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.page-shell > h1 { max-width: 20ch; margin: 0 0 1.25rem; font-size: clamp(2.4rem, 7vw, 5.4rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.04; }
.page-intro { max-width: 44rem; margin: 0; color: #b7b7b7; font-size: clamp(1.05rem, 2.4vw, 1.45rem); line-height: 1.55; }
.page-back { display: inline-block; margin-bottom: 2rem; color: #aaa; font-family: "Open Sans", sans-serif; font-size: .9rem; }
.page-back:hover, .next-article:hover, .contact-actions a:hover, .contact-cta:hover { color: #fff; }
.contact-page { display: flex; min-height: 100svh; flex-direction: column; justify-content: center; padding-bottom: 130px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.contact-actions a, .contact-cta { display: inline-flex; min-height: 48px; align-items: center; gap: 1.75rem; padding: 0 1rem; border: 1px solid #ffffff24; border-radius: 999px; color: #ededed; font-family: "Open Sans", sans-serif; font-size: .9rem; }
.contact-actions span, .contact-cta span { color: #8c8c8c; }
.article-directory { max-width: 1040px; }
.article-directory > h1 { margin-bottom: 2rem; }
.page-search { display: flex; max-width: 38rem; align-items: center; border-bottom: 1px solid #ffffff45; }
.page-search input { width: 100%; min-width: 0; padding: .8rem 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 1rem; }
.page-search input::placeholder { color: #777; }
.page-search button { width: 42px; height: 42px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 1.2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.article-count { margin: 2rem 0 .4rem; color: #777; font-family: "Open Sans", sans-serif; font-size: .78rem; }
.article-list, .search-results { margin: 0; padding: 0; list-style: none; }
.article-list li, .search-results li { border-top: 1px solid #ffffff1b; }
.article-list a { position: relative; display: grid; min-height: 88px; grid-template-columns: minmax(0, 1fr) 26px; align-content: center; gap: .3rem 1rem; padding: 1rem 0; }
.article-list-title { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 500; line-height: 1.3; }
.article-list-description { max-width: 75ch; grid-column: 1; color: #888; font-size: .82rem; line-height: 1.5; }
.article-list-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #777; }
.article-list a:hover .article-list-title, .search-results a:hover { color: #bdbdbd; }
.empty-state { color: #888; }
.reading-page { max-width: 820px; }
.reading-content { overflow-wrap: anywhere; }
.reading-content h1 { max-width: 22ch; margin: 0 0 2.5rem; font-size: clamp(2.1rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.08; }
.reading-content h2 { margin: 3rem 0 1rem; font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.2; }
.reading-content h3, .reading-content h4 { margin: 2rem 0 .75rem; font-size: 1.15rem; font-weight: 500; }
.reading-content p, .reading-content li, .imported-content p, .imported-content li { color: #c5c5c5; font-size: .98rem; line-height: 1.8; }
.reading-content p { margin: 0 0 1.15rem; }
.reading-content a, .imported-content a { text-decoration: underline; text-decoration-color: #777; text-underline-offset: .2em; }
.reading-content ul, .reading-content ol { margin: 1rem 0 1.5rem; padding-left: 1.3rem; }
.reading-content blockquote { margin: 2rem 0; padding-left: 1rem; border-left: 2px solid #777; color: #bdbdbd; }
.reading-content img, .imported-content img { width: auto; max-width: 100%; height: auto; margin: 1.5rem auto; border-radius: 8px; }
.reading-content figure { margin: 2rem 0; }
.reading-content figcaption { color: #888; font-size: .8rem; }
.next-article { display: flex; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding: 1.25rem 0; border-top: 1px solid #ffffff2b; color: #aaa; }
.search-results a { display: flex; min-height: 72px; align-items: center; gap: 1rem; padding: 1rem 0; }
.search-results a span { min-width: 4rem; color: #777; font-family: "Open Sans", sans-serif; font-size: .75rem; text-transform: uppercase; }
.search-results a b { margin-left: auto; color: #777; font-weight: 400; }
.imported-page > h1 { margin-bottom: 2rem; }
.imported-content { max-width: 60rem; }
.imported-content > h1 { margin: 2rem 0 1rem; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 500; }
.imported-content > h4, .imported-content > h5 { margin: 1rem 0; color: #aaa; font-weight: 400; }
.imported-content > strong { display: block; margin-top: 1.5rem; font-size: 1.1rem; font-weight: 500; }
.imported-content > a { display: inline-flex; margin: .5rem 1rem .5rem 0; }
.imported-content > a img { max-width: min(38vw, 400px); }
.contact-cta { margin-top: 2rem; }

@media (max-width: 800px) {
  .showreel { height: 80vh; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .5rem; }
  .project-card { height: 300px; }
}
@media (max-width: 520px) {
  .projects { grid-template-columns: 1fr; }
  .project-card { height: 350px; }
  .project-gallery { grid-template-columns: 1fr; }
  .site-footer { bottom: .75rem; left: .75rem; gap: .6rem; padding: 9px 12px; font-size: 12px; }
  .page-shell { width: min(100% - 1.5rem, 940px); padding-top: 78px; }
  .contact-page { padding-bottom: 120px; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions a { justify-content: space-between; }
  .article-list a { min-height: 76px; }
  .reading-content p, .reading-content li, .imported-content p, .imported-content li { font-size: .92rem; line-height: 1.72; }
}
