:root { color-scheme: light; --ink: #202225; --muted: #74777c; --purple: #4325f4; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: 'Inter Tight', Arial, sans-serif; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.portfolio-header { position: sticky; top: 14px; z-index: 30; width: 86%; max-width: 1660px; margin: 14px auto 0; }
.portfolio-nav { min-height: 74px; padding: 10px 14px; border: 0; border-radius: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f7f7f8; }
.portfolio-brand { width: 190px; display: flex; align-items: center; padding-left: 6px; }
.portfolio-brand img { width: 140px; height: auto; max-height: 40px; object-fit: contain; object-position: left; }
.portfolio-nav-links { display: flex; gap: 3px; padding: 5px; background: #f1f1f3; border-radius: 50px; }
.portfolio-nav-links a { padding: 11px 13px; color: #5c5e63; font-size: 17px; font-weight: 600; border-radius: 40px; transition: background .25s, color .25s; }
.portfolio-nav-links a:hover, .portfolio-nav-links a.current { color: #1e2022; background: white; }
.portfolio-nav-actions { display: flex; align-items: center; gap: 12px; }
.portfolio-contact { background: #1d1f21; color: #fff; border-radius: 50px; display: inline-flex; align-items: center; gap: 14px; padding: 9px 9px 9px 21px; font-size: 16px; white-space: nowrap; }
.portfolio-contact span { display: grid; place-items: center; width: 34px; height: 34px; background: #fff; color: #1d1f21; border-radius: 50%; font-size: 20px; }
.portfolio-menu-button, .portfolio-mobile-menu { display: none; }
.portfolio-hero { max-width: 1160px; margin: 0 auto; padding: 120px 24px 118px; text-align: center; }
.portfolio-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--purple); }
.portfolio-hero h1 { margin: 22px 0; font-weight: 600; letter-spacing: -.035em; line-height: .98; font-size: clamp(64px, 9vw, 136px); }
.portfolio-hero h1 em, .portfolio-outro h2 em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.portfolio-hero p { max-width: 750px; margin: 30px auto 35px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.portfolio-hero-scroll { display: inline-flex; align-items: center; justify-content: space-between; min-width: 215px; padding: 12px 12px 12px 21px; border-radius: 40px; color: #fff; background: var(--purple); font-size: 17px; }
.portfolio-hero-scroll span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: var(--purple); background: #fff; font-size: 22px; }
.portfolio-projects { max-width: 1500px; margin: 0 auto; padding: 60px 24px 150px; scroll-margin-top: 105px; }
.portfolio-section-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.portfolio-section-top h2 { margin: 10px 0 0; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.portfolio-total { display: inline-block; vertical-align: top; margin: 5px 0 0 9px; font-size: 22px; letter-spacing: 0; color: #9c9da2; }
.portfolio-section-top p { max-width: 340px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.45; }
.portfolio-filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-button { padding: 12px 19px; border: 1px solid #e5e5e9; border-radius: 40px; background: #fff; color: #484b50; font-size: 15px; font-weight: 600; transition: background .2s, color .2s, border .2s; }
.filter-button span { color: #a2a3a7; font-size: 12px; margin-left: 5px; }
.filter-button:hover { border-color: var(--purple); }
.filter-button.is-active { background: #232427; color: #fff; border-color: #232427; }
.filter-button.is-active span { color: #bbbcc1; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 24px; }
.portfolio-card { min-width: 0; text-align: left; padding: 0; border: 0; background: transparent; display: block; color: inherit; }
.portfolio-card[hidden] { display: none; }
.portfolio-card-art { position: relative; overflow: hidden; height: clamp(330px, 34vw, 520px); border-radius: 27px; background: var(--card-bg); display: flex; justify-content: center; align-items: center; isolation: isolate; }
.portfolio-card-art::before { content: ''; position: absolute; width: 83%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.18); filter: blur(30px); }
.portfolio-card-art img { position: relative; display: block; max-width: 82%; max-height: 88%; height: auto; width: auto; object-fit: contain; box-shadow: 0 18px 50px rgba(0,0,0,.13); transition: transform .45s ease; }
.portfolio-card:hover .portfolio-card-art img { transform: translateY(-9px) scale(1.025); }
.portfolio-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 19px 4px 0; }
.portfolio-card-meta > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.portfolio-card-category { font-size: 12px; color: #85868b; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; }
.portfolio-card strong { font-size: clamp(21px, 2vw, 29px); font-weight: 600; letter-spacing: -.04em; }
.portfolio-card small { color: var(--muted); font-size: 15px; }
.portfolio-card-arrow { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #e6e6e9; font-size: 22px; transition: background .25s, color .25s; }
.portfolio-card:hover .portfolio-card-arrow { background: var(--purple); color: #fff; }
.portfolio-empty { padding: 50px 0; color: var(--muted); }
.portfolio-outro { margin: 0 24px 24px; padding: 100px 24px; text-align: center; border-radius: 30px; background: #f0eeff; }
.portfolio-outro h2 { max-width: 900px; margin: 20px auto 30px; font-size: clamp(40px, 6vw, 75px); line-height: 1.05; font-weight: 600; letter-spacing: -.055em; }
.portfolio-outro a { display: inline-flex; align-items: center; gap: 22px; padding: 15px 21px; color: #fff; border-radius: 40px; background: var(--purple); font-size: 17px; }
.portfolio-outro a span { font-size: 22px; }
.portfolio-footer { max-width: 1500px; padding: 42px 24px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; color: #6c6e73; font-size: 15px; }
.portfolio-footer a:first-child { font-size: 24px; font-weight: 800; letter-spacing: -.05em; color: #202225; }
.portfolio-brand { width: 238px; }
.portfolio-brand img { width: 220px; max-height: 58px; }
.portfolio-footer { flex-wrap: wrap; }
@media (max-width: 991px) { .portfolio-contact { display: none; } }
.project-dialog { max-width: min(1120px, calc(100vw - 26px)); width: 1120px; max-height: calc(100vh - 26px); margin: auto; border: 0; border-radius: 24px; padding: 0; background: #fff; box-shadow: 0 20px 90px rgba(0,0,0,.22); }
.project-dialog::backdrop { background: rgba(16,18,24,.78); backdrop-filter: blur(6px); }
.dialog-shell { padding: 23px; }
.dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.dialog-category { color: var(--purple); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.dialog-title { margin: 4px 0 0; font-size: clamp(23px, 3vw, 36px); letter-spacing: -.05em; }
.dialog-close { display: grid; place-items: center; flex: 0 0 40px; height: 40px; padding: 0; background: #f0f0f2; border: 0; border-radius: 50%; font-size: 26px; line-height: 1; }
.dialog-main { display: grid; grid-template-columns: 52px minmax(0,1fr) 52px; align-items: center; gap: 10px; }
.dialog-arrow { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 1px solid #dddde0; border-radius: 50%; background: #fff; font-size: 24px; }
.dialog-arrow:disabled { opacity: .3; cursor: default; }
.dialog-image-wrap { position: relative; height: min(64vh, 620px); min-height: 300px; padding: 14px; display: flex; justify-content: center; align-items: center; border-radius: 16px; background: #f2f3f5; }
.dialog-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 5px; box-shadow: 0 8px 36px rgba(0,0,0,.09); }
.dialog-counter { position: absolute; bottom: 16px; right: 17px; background: rgba(25,26,29,.82); color: #fff; border-radius: 20px; padding: 6px 11px; font-size: 13px; }
.dialog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; }
.dialog-description { margin: 0; color: var(--muted); font-size: 15px; }
.dialog-thumbs { display: flex; gap: 6px; max-width: 70%; overflow-x: auto; padding: 3px; }
.dialog-thumb { flex: 0 0 42px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 5px; background: #eee; overflow: hidden; }
.dialog-thumb.current { border-color: var(--purple); }
.dialog-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1400px) { .portfolio-nav-links { display: none; } .portfolio-menu-button { display: block; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f2f2f4; font-size: 22px; } .portfolio-mobile-menu:not([hidden]) { display: flex; flex-direction: column; gap: 2px; padding: 15px 25px; border-radius: 20px; background: #f4f4f6; } .portfolio-mobile-menu a { padding: 10px 0; font-size: 17px; } .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .portfolio-card-art { height: 450px; } }
@media (max-width: 650px) { .portfolio-header { width: calc(100% - 24px); top: 12px; margin-top: 12px; } .portfolio-nav { min-height: 62px; border-radius: 30px; } .portfolio-brand { width: auto; } .portfolio-brand img { width: 178px; } .portfolio-contact { display: none; } .portfolio-hero { padding: 80px 20px 75px; } .portfolio-hero h1 { font-size: clamp(58px, 13vw, 82px); } .portfolio-projects { padding: 50px 18px 90px; } .portfolio-section-top { display: block; } .portfolio-section-top p { margin-top: 16px; } .portfolio-filters { flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding: 0 18px 8px 0; } .filter-button { white-space: nowrap; } .portfolio-grid { grid-template-columns: 1fr; gap: 32px; } .portfolio-card-art { height: 460px; } .portfolio-outro { margin: 0 12px 12px; padding: 75px 18px; } .portfolio-footer { flex-wrap: wrap; } .dialog-shell { padding: 13px; } .dialog-main { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 3px; } .dialog-arrow { width: 34px; height: 34px; font-size: 20px; } .dialog-image-wrap { height: min(60vh,580px); padding: 6px; } .dialog-bottom { display: block; } .dialog-thumbs { max-width: 100%; margin-top: 10px; } }
@media (max-width: 1400px) {
  .portfolio-header { width: calc(100% - 80px); }
  .portfolio-menu-overlay:not([hidden]) { position: fixed; z-index: 40; inset: 0 min(300px,100vw) 0 0; background: rgba(0,0,0,.5); }
  .portfolio-mobile-menu:not([hidden]) { position: fixed; z-index: 50; inset: 0 0 0 auto; display: flex; flex-direction: column; gap: 0; width: min(300px,100vw); height: 100vh; overflow-y: auto; padding: 16px 26px; border-radius: 0; background: #fff; box-shadow: -16px 0 55px rgba(16,18,24,.1); }
  .portfolio-mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; font-size: 16px; font-weight: 600; }
  .portfolio-menu-close { width: 28px; height: 28px; padding: 0; border: 0; background: none; color: #202225; font-size: 30px; line-height: 1; }
  .portfolio-mobile-menu a { display: block; padding: 9px 10px; color: #1b1d1e; font-size: 16px; }
  .portfolio-mobile-menu a:hover, .portfolio-mobile-menu a[aria-current="page"] { color: var(--purple); }
}
@media (max-width: 650px) { .portfolio-header { width: calc(100% - 24px); } }
