:root {
  color-scheme: dark;
  --bg: #111211;
  --surface: #191b19;
  --surface2: #212421;
  --text: #f2f1eb;
  --muted: #acafa6;
  --subtle: #858b80;
  --accent: #c0daa2;
  --line: #353a33;
  --radius: 6px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-section: 112px;
  --motion-fast: 180ms;
  --motion-normal: 460ms;
  --motion-reveal: 800ms;
  --motion-ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 Arial,Helvetica,sans-serif; letter-spacing: 0; }
body.menu-open { overflow: hidden; }
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1,h2,h3,p,figure { margin-top: 0; }
h1,h2,h3 { letter-spacing: 0; font-weight: 500; }
h1 { font-size: 72px; line-height: 1.08; }
h2 { font-size: 48px; line-height: 1.13; }
h3 { font-size: 22px; line-height: 1.3; }
p { margin-bottom: 20px; }
section { padding: var(--space-section) 0; }
section[id] { scroll-margin-top: 24px; }
.wrap { width: min(1320px,calc(100% - 112px)); margin-inline: auto; }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 200; padding: 12px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.small-label,.eyebrow,.meta { font-size: 11px; font-weight: 500; text-transform: uppercase; line-height: 1.6; }
.small-label { color: var(--muted); }
.eyebrow { display: block; margin-bottom: 24px; color: var(--accent); }
.lead { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.icon-arrow { width: 20px; height: 20px; flex: 0 0 20px; filter: invert(94%); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
.text-link .icon-arrow { transition: transform var(--motion-fast) var(--motion-ease); }
.text-link:hover { color: var(--accent); }
.text-link:hover .icon-arrow { transform: translate(3px,-3px); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 22px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background var(--motion-fast),transform var(--motion-fast); }
.button-primary { color: #171c13; background: var(--accent); border-color: var(--accent); }
.button-primary .icon-arrow { filter: none; }
.button-primary:hover { background: #d2e6bc; }
.button-secondary { color: var(--text); background: transparent; }
.button-secondary:hover { background: var(--surface2); }
.button:active { transform: translateY(1px); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.availability { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(17,18,17,.95); backdrop-filter: blur(16px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; transition: min-height var(--motion-normal); }
.scrolled .nav { min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-wordmark { font-size: 19px; font-weight: 600; overflow-wrap: break-word; }
.brand-period { color: var(--accent); }
.brand small { color: var(--muted); font-size: 10px; text-transform: uppercase; padding-left: 16px; border-left: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 27px; }
.nav-links a { position: relative; padding: 12px 0; font-size: 13px; color: var(--muted); }
.nav-links a:hover,.nav-links a[aria-current] { color: var(--text); }
.nav-links a::after { content: ''; position: absolute; bottom: 6px; left: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--motion-normal); }
.nav-links a:hover::after,.nav-links a[aria-current]::after { transform: scaleX(1); }
.nav-availability { margin-left: 10px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 11px; background: transparent; border: 1px solid var(--line); border-radius: 3px; }
.menu-lines { display: grid; gap: 6px; }
.menu-lines i { height: 1px; width: 20px; background: var(--text); transition: transform var(--motion-fast); }
.menu-button[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { max-width: 420px; margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.info-card,.skill-card,.process-card { padding: 30px; }
.card h3 { font-size: 21px; margin-bottom: 14px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.card ul { color: var(--muted); }
.card .eyebrow { margin-bottom: 16px; }
.tags,.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tag { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.project-card { min-width: 0; }
.project-shot { display: block; position: relative; padding: 40px; background: #242723; overflow: hidden; border-radius: 4px; }
.project-preview-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; color: #c1c6bc; font-size: 10px; text-transform: uppercase; }
.project-preview-label .icon-arrow { width: 24px; height: 24px; }
.browser { border-radius: 3px; border: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.browser-bar { height: 27px; display: flex; align-items: center; gap: 4px; padding: 0 10px; background: #20241e; }
.browser-bar > span { width: 4px; height: 4px; border-radius: 50%; background: #777f6e; }
.browser-bar small { margin: auto; padding-right: 20px; font-size: 8px; color: #aab2a1; }
.browser img { width: 100%; aspect-ratio: 1.92; object-fit: cover; object-position: top; transition: transform 650ms var(--motion-ease); }
.project-shot:hover .browser img { transform: scale(1.025); }
.project-body { padding: 28px 0 0; }
.project-kicker { display: flex; gap: 16px; align-items: flex-start; color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.project-number { flex: 0 0 24px; color: var(--accent); }
.project-body h3 { font-size: 29px; margin-bottom: 16px; }
.project-body > p { max-width: 600px; font-size: 15px; color: var(--muted); }
.project-summary { display: none; }
.card-links { display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.card-links .text-link { font-size: 12px; }
.card-links .icon-arrow { width: 17px; height: 17px; flex-basis: 17px; }
[data-projects="all"] { row-gap: 64px; }
.project-card[hidden] { display: none; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter { min-height: 44px; padding: 9px 16px; background: transparent; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); cursor: pointer; font-size: 12px; }
.filter.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.filter-status { margin: 20px 0; color: var(--muted); font-size: 12px; }
.page-hero { padding: 90px 0 64px; }
.page-hero h1 { max-width: 960px; margin: 0 0 30px; font-size: 64px; }
.page-hero .lead { max-width: 800px; }
.hero-grid,.case-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.case-hero h1 { font-size: 52px; }
.case-hero > div > p:not(.lead) { color: var(--muted); }
.case-screen { padding: 20px; background: #252923; border-radius: 4px; }
.case-screen .browser img { aspect-ratio: auto; object-fit: contain; }
.content h2 { font-size: 42px; }
.content p,.content li { color: var(--muted); }
.list { margin: 16px 0 0; padding-left: 20px; }
.list li { margin: 8px 0; color: var(--muted); font-size: 14px; }
.skill-card ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; list-style: none; padding: 0; margin-bottom: 0; font-size: 13px; }
.skill-card li { min-width: 0; }
.exploring { border-style: dashed; }
.process-grid { counter-reset: step; }
.process-card::before { counter-increment: step; content: '0' counter(step); display: block; color: var(--accent); margin-bottom: 22px; font-size: 12px; }
.process-card h3 { font-size: 21px; }
.price-card { padding: 32px; }
.price-card.featured { border-color: var(--accent); }
.price-card h2 { font-size: 26px; }
.price { margin: 30px 0; font-size: 36px; }
.price small { display: block; color: var(--muted); font-size: 11px; }
.price-card .button { margin-top: 32px; }
.timeline-item { padding: 0 0 40px 24px; border-left: 1px solid var(--line); position: relative; }
.timeline-item::before { content: ''; position: absolute; top: 8px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.meta { color: var(--accent); }
.system-visual { padding: 30px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.flow-node { padding: 14px 18px; border: 1px solid var(--line); font-size: 14px; }
.flow-node strong { color: var(--accent); padding-right: 12px; }
.flow-line { height: 24px; width: 1px; margin: auto; background: var(--accent); }
.about-visual { min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.contact-grid h2 { font-size: 34px; }
.contact-grid a { overflow-wrap: anywhere; }
.form-card { padding: 32px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: block; font-size: 12px; }
.field.full { grid-column: 1 / -1; }
.field input,.field select,.field textarea { width: 100%; min-height: 48px; margin-top: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--bg); color: var(--text); font-size: 14px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: var(--accent); }
.field input:user-invalid,.field select:user-invalid,.field textarea:user-invalid { border-color: #e09b91; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 30px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.form-status.is-error { color: #e9a69c; }
.form-status.is-success { color: var(--accent); }
.cta { text-align: left; padding: 48px 0; border-top: 1px solid var(--line); }
.cta h2 { max-width: 980px; margin-bottom: 24px; font-size: 48px; }
.cta p { color: var(--muted); max-width: 680px; }
.cta .button { margin-top: 12px; }
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-intro .brand { margin-bottom: 24px; }
.footer-intro p { max-width: 280px; font-size: 13px; color: var(--muted); }
.footer-title { margin-bottom: 20px; color: var(--subtle); font-size: 11px; text-transform: uppercase; }
.footer-list { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 28px; overflow-wrap: anywhere; }
.footer-list a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 64px; padding-top: 24px; color: var(--subtle); font-size: 11px; }
@media (min-width:1700px) { .wrap { width: min(1500px,calc(100% - 160px)); } }
@media (max-width:1100px) {
  .wrap { width: calc(100% - 72px); }
  .nav-links { gap: 20px; }
  .nav-availability,.brand small { display: none; }
  .hero-grid,.case-hero { gap: 32px; }
  .case-hero { grid-template-columns: 1fr; }
  .case-screen { max-width: 1040px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-shot { padding: 24px; }
  .footer-grid { gap: 24px; }
}
@media (max-width:800px) {
  .brand-wordmark { font-size: 16px; }
  :root { --space-section: 80px; }
  .wrap { width: calc(100% - 48px); }
  h2 { font-size: 40px; }
  .nav { min-height: 74px; }
  .scrolled .nav { min-height: 66px; }
  .menu-button { display: block; }
  .nav-links { display: none; position: fixed; inset: 74px 0 auto; max-height: calc(100dvh - 74px); overflow-y: auto; background: var(--bg); padding: 24px; border-bottom: 1px solid var(--line); align-items: stretch; gap: 0; }
  .scrolled .nav-links { top: 66px; }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-links a { min-height: 54px; border-bottom: 1px solid var(--line); font-size: 24px; }
  .nav-links a::after { display: none; }
  .nav-availability { display: inline-flex; padding: 22px 0; margin: 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 24px; }
  .hero-grid,.contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-body h3 { font-size: 24px; }
  .page-hero h1,.case-hero h1 { font-size: 48px; }
  .content h2 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width:560px) {
  :root { --space-section: 64px; }
  .wrap { width: calc(100% - 36px); }
  h2 { font-size: 32px; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 14px; }
  .eyebrow { font-size: 10px; margin-bottom: 20px; }
  .grid-2,.grid-3,.grid-4,.field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .project-shot { padding: 20px; }
  .project-preview-label { margin-bottom: 18px; }
  .project-body h3 { font-size: 26px; }
  .project-kicker { gap: 10px; }
  .card-links { gap: 20px; }
  .page-hero { padding: 64px 0 40px; }
  .page-hero h1,.case-hero h1 { font-size: 37px; overflow-wrap: break-word; }
  .case-hero { gap: 40px; }
  .case-screen { padding: 12px; }
  .lead { font-size: 16px; }
  .skill-card ul { grid-template-columns: 1fr; }
  .info-card,.skill-card,.process-card,.form-card,.price-card { padding: 24px; }
  .content h2,.cta h2 { font-size: 32px; }
  .footer-grid { gap: 32px 16px; }
  .footer-intro,.footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-list a { min-height: 34px; }
  .footer-bottom { flex-direction: column; gap: 12px; margin-top: 40px; }
}
