/* A light, typographic portfolio based on the selected reference. */
:root { --ink: #171717; --muted: #727272; --line: #dedede; --paper: #fff; --gutter: clamp(24px, 3vw, 48px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; padding: 0; }
button[hidden], [hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
::selection { background: #dcd7f0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.wrap { width: calc(100% - var(--gutter) * 2); max-width: 1440px; margin-inline: auto; }
.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; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.skip-link { position: fixed; z-index: 10; left: 24px; top: 16px; background: var(--ink); color: white; padding: 12px 18px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.header { display: flex; align-items: center; justify-content: space-between; padding-block: 24px; min-height: 84px; }
.wordmark { font-size: 29px; letter-spacing: -.055em; line-height: 1; }
.navigation { display: flex; gap: clamp(28px, 4vw, 64px); align-items: center; font-size: 15px; }
.navigation a { padding-block: 8px; position: relative; }
.navigation a::after { content: ''; position: absolute; bottom: 3px; left: 0; right: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.navigation a:hover::after, .navigation a:focus-visible::after { transform: scaleX(1); }
.hero { padding-top: clamp(110px, 14vw, 205px); padding-bottom: clamp(90px, 10vw, 145px); }
.hero h1 { font-size: clamp(52px, 7.25vw, 110px); font-weight: 400; line-height: 1.035; letter-spacing: -.052em; }
.hero h1 span { display: block; }
.hero-subtitle { margin-top: 26px; font-size: clamp(22px, 2.3vw, 32px); color: var(--muted); letter-spacing: -.04em; line-height: 1.35; }
.hero-timing { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.projects-title { margin-bottom: 32px; font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--muted); letter-spacing: -.02em; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }
.project-heading { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.project-number { font-size: 22px; line-height: 1.2; font-weight: 400; color: #8b8b8b; letter-spacing: -.04em; }
.project-name h3 { font-size: clamp(21px, 2vw, 28px); font-weight: 400; letter-spacing: -.04em; line-height: 1.2; }
.project-name p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.35; }
.project-line { height: 1px; background: var(--line); flex: 1; min-width: 16px; margin-top: 14px; }
.project-preview { display: block; position: relative; overflow: hidden; isolation: isolate; }
.project-preview.netwise { background: #141117; }
.project-preview.sladko { background: #fae4ed; }
.project-preview img { width: 100%; height: auto; aspect-ratio: 16/9; transition: transform .7s cubic-bezier(.2,.65,.2,1); }
.project-preview:hover img { transform: scale(1.025); }
.preview-action { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 16px; align-items: center; padding: 14px 18px; background: #fff; font-size: 14px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.project-preview:hover .preview-action, .project-preview:focus-visible .preview-action { opacity: 1; transform: translateY(0); }
.project-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 14px; line-height: 1.4; }
.project-caption p { color: var(--muted); }
.project-details { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding-block: 4px; }
.project-details .icon { width: 18px; height: 18px; transition: transform .2s; }
.project-details:hover .icon { transform: translate(2px,-2px); }
.about { padding-top: clamp(90px, 10vw, 150px); padding-bottom: 110px; }
.about-intro { display: flex; align-items: center; justify-content: space-between; gap: 56px; }
.about-intro h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.4; font-weight: 400; letter-spacing: -.035em; }
.text-link { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; border-bottom: 1px solid #848484; padding-block: 10px 15px; font-size: 16px; line-height: 1.4; }
.text-link .icon { transition: transform .25s; }
.text-link:hover .icon { transform: translateX(5px); }
.about-details { margin-top: 100px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr 1.1fr; gap: 52px; }
.section-label { color: var(--muted); font-size: 14px; line-height: 1.5; }
.about-copy { max-width: 560px; font-size: 18px; letter-spacing: -.018em; line-height: 1.55; }
.about-copy p + p { margin-top: 20px; color: var(--muted); }
.about-copy .about-lead { font-size: 28px; line-height: 1.3; letter-spacing: -.035em; }
.author-avatar { width: 112px; height: 112px; border: 1px solid #c7c7c7; border-radius: 50%; overflow: hidden; position: relative; margin-top: 24px; background: #fff; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-handle { margin-top: 16px; font-size: 15px; letter-spacing: -.025em; }
.education { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.education .section-label { font-size: 13px; }
.education p + p { margin-top: 10px; font-size: 16px; color: var(--ink); }
.services { font-size: 15px; }
.services li { display: flex; gap: 18px; border-bottom: 1px solid var(--line); padding-block: 0 18px; }
.services li + li { padding-top: 18px; }
.services span { color: var(--muted); font-size: 12px; padding-top: 2px; flex: 0 0 auto; }
.contact { border-top: 1px solid var(--line); padding-block: 38px 65px; }
.contact-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.contact-note { color: var(--muted); font-size: 15px; line-height: 1.5; width: 216px; }
.contact-main { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-block: 68px 46px; }
.contact-main h2 { font-weight: 400; font-size: clamp(48px, 6.2vw, 92px); line-height: 1.04; letter-spacing: -.055em; }
.contact-arrow { width: clamp(72px, 10vw, 144px); height: clamp(72px, 10vw, 144px); fill: none; stroke: currentColor; stroke-width: .6; transition: transform .3s; }
.contact-main:hover .contact-arrow { transform: translate(8px,-8px); }
.contact-bottom { display: flex; align-items: center; gap: 32px; position: relative; flex-wrap: wrap; }
.telegram-link { display: inline-flex; align-items: center; gap: 16px; font-size: 16px; padding-block: 6px; }
.telegram-link span { color: var(--muted); }
.telegram-link .icon { width: 18px; height: 18px; }
.copy-contact { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; }
.copy-contact:hover { color: var(--ink); }
.copy-contact .icon { width: 16px; height: 16px; }
.copy-status { font-size: 13px; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.footer .icon { width: 16px; height: 16px; }
.menu-toggle { display: none; }
.project-dialog { width: min(960px, calc(100% - 48px)); max-height: calc(100svh - 48px); padding: 32px; border: 0; background: white; color: var(--ink); overflow-y: auto; }
.project-dialog::backdrop { background: rgba(16,16,16,.38); backdrop-filter: blur(6px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.dialog-close { width: 40px; height: 40px; display: grid; place-items: center; }
.dialog-close:hover { background: #f3f3f3; }
.project-dialog h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 400; line-height: 1.05; letter-spacing: -.05em; }
.dialog-description { max-width: 660px; margin-block: 20px 32px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.project-dialog > img { width: 100%; height: auto; background: #f5f5f5; }
.dialog-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 30px; }
.dialog-features { font-size: 15px; line-height: 1.6; }
.dialog-features li + li { margin-top: 5px; }
.dialog-features li::before { content: '—'; margin-right: 10px; color: var(--muted); }
@media (min-width: 1600px) { .hero h1 { font-size: 114px; } }
@media (max-width: 1000px) {
  .about-intro { align-items: flex-start; }
  .desktop-break { display: none; }
  .about-details { grid-template-columns: .7fr 2fr; gap: 32px; }
  .services { grid-column: 2; max-width: 100%; }
  .project-grid { gap: 24px; }
  .project-heading { gap: 14px; }
}
@media (max-width: 700px) {
  :root { --gutter: 24px; }
  html { scroll-padding-top: 24px; }
  .header { min-height: 80px; padding-block: 24px; flex-wrap: wrap; position: relative; }
  .wordmark { font-size: clamp(22px, 6.1vw, 27px); }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; min-height: 32px; }
  .menu-lines { display: block; width: 20px; height: 10px; position: relative; }
  .menu-lines::before, .menu-lines::after { content: ''; height: 1px; width: 20px; background: var(--ink); position: absolute; left: 0; transition: transform .2s, top .2s; }
  .menu-lines::before { top: 1px; }.menu-lines::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-lines::before { top: 4px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-lines::after { top: 4px; transform: rotate(-45deg); }
  .navigation { width: 100%; gap: 24px; justify-content: flex-start; font-size: 14px; padding-top: 18px; }
  .js .navigation { display: none; }
  .js .navigation.is-open { display: flex; }
  .hero { padding-top: 104px; padding-bottom: 90px; }
  .hero h1 { font-size: clamp(42px, 8.5vw, 59px); line-height: 1.06; letter-spacing: -.052em; }
  .hero h1 span { display: inline; }
  .hero h1 span::after { content: ' '; }
  .hero-subtitle { font-size: 20px; max-width: 250px; margin-top: 22px; line-height: 1.4; }
  .hero-timing { font-size: 13px; margin-top: 12px; }
  .projects-title { margin-bottom: 28px; font-size: 15px; }
  .project-grid { grid-template-columns: 1fr; gap: 52px; }
  .project-heading { gap: 18px; margin-bottom: 20px; }
  .project-name h3 { font-size: 23px; }
  .project-number { font-size: 20px; padding-top: 2px; }
  .project-name p { font-size: 12px; margin-top: 6px; }
  .project-caption { margin-top: 14px; font-size: 12px; gap: 8px; }
  .preview-action { right: 12px; bottom: 12px; padding: 9px 12px; font-size: 12px; gap: 8px; }
  .preview-action .icon { width: 16px; height: 16px; }
  .about { padding-block: 90px 72px; }
  .about-intro { flex-direction: column; gap: 30px; }
  .about-intro h2 { font-size: 25px; line-height: 1.4; }
  .text-link { font-size: 15px; gap: 32px; padding-bottom: 12px; }
  .about-details { margin-top: 64px; padding-top: 24px; grid-template-columns: 1fr; gap: 28px; }
  .about-copy { font-size: 17px; }
  .about-copy .about-lead { font-size: 25px; }
  .author-profile { display: grid; grid-template-columns: 80px 1fr; grid-template-rows: 1fr 1fr; column-gap: 20px; row-gap: 7px; }
  .author-avatar { grid-column: 1; grid-row: 1 / 3; width: 80px; height: 80px; margin: 0; }
  .author-profile .section-label { grid-column: 2; grid-row: 1; align-self: end; }
  .author-handle { grid-column: 2; grid-row: 2; margin: 0; align-self: start; }
  .education { margin-top: 24px; padding-top: 20px; }
  .services { grid-column: auto; margin-top: 8px; }
  .contact { padding-block: 28px 48px; }
  .contact-top { flex-direction: column; gap: 16px; }
  .contact-note { font-size: 14px; width: auto; }
  .contact-note br { display: none; }
  .contact-main { margin-block: 44px 32px; gap: 12px; }
  .contact-main h2 { font-size: clamp(36px, 7.8vw, 54px); line-height: 1.06; }
  .contact-arrow { width: 42px; height: 42px; flex: 0 0 42px; stroke-width: 1; }
  .contact-bottom { gap: 14px 24px; }
  .telegram-link { font-size: 14px; gap: 12px; }
  .copy-contact { font-size: 12px; }
  .copy-status { width: 100%; }
  .copy-status:empty { display: none; }
  .footer { padding-block: 22px 26px; gap: 16px; font-size: 11px; }
  .footer-specialty { display: none; }
  .project-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 20px; }
  .dialog-header { margin-bottom: 22px; }
  .dialog-header .section-label { font-size: 12px; }
  .dialog-description { font-size: 16px; margin-block: 16px 24px; }
  .dialog-bottom { flex-direction: column; align-items: flex-start; gap: 24px; }
  .dialog-features { font-size: 14px; }
}
@media (hover: none) { .preview-action { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
