:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --ink: #1a1b18;
  --muted: #585a54;
  --rule: #d4d4cc;
  --brand-color: #892bee;
  --brand-art: url("assets/nevko-metal-violet.jpg");
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
:root[data-brand="orange"] {
  --brand-color: #ff681e;
  --brand-art: url("assets/nevko-metal.jpg");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
a:focus-visible, summary:focus-visible { outline: 3px solid #2570cb; outline-offset: 5px; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 10; padding: 12px 18px; background: white; }
.skip:focus { top: 12px; }
.shell { width: min(1280px, calc(100% - clamp(40px, 10vw, 160px))); margin-inline: auto; }
.header { min-height: 82px; display: flex; align-items: center; gap: clamp(28px, 5vw, 78px); border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 740; letter-spacing: -.074em; white-space: nowrap; }
.brand-light { font-weight: 400; }
.brand-mark { width: 33px; height: 29px; display: inline-block; background: var(--brand-color); clip-path: polygon(0 100%, 0 0, 24% 0, 74% 57%, 74% 0, 100% 0, 100% 100%, 76% 100%, 26% 43%, 26% 100%); }
.header nav { margin-left: auto; display: flex; gap: 32px; }
.header nav a, .footer a { font-size: 14px; font-weight: 550; }
.header nav a, .footer a { padding: 10px 0; }
.header nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.arrow { display: inline-block; position: relative; width: 14px; height: 14px; flex: none; transform: rotate(-45deg); }
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { width: 13px; height: 1.6px; background: currentColor; top: calc(50% - .8px); left: 0; }
.arrow::after { width: 7px; height: 7px; border-top: 1.6px solid; border-right: 1.6px solid; right: 1px; top: 50%; transform: translateY(-50%) rotate(45deg); }
.arrow.down { transform: rotate(90deg); }
.arrow.up { transform: rotate(-90deg); }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.09fr 1fr; align-items: center; gap: 2%; padding-block: clamp(46px, 5.5vw, 88px); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 11px/1.45 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.mini-bar { display: inline-block; width: 20px; height: 4px; background: var(--brand-color); flex: none; }
h1, h2, h3 { font-weight: 590; }
h1 { margin-top: 25px; font-size: clamp(57px, 6.7vw, 104px); line-height: .99; letter-spacing: -.06em; }
.dot { color: var(--brand-color); }
.lead { margin-top: 22px; max-width: 480px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.52; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 0 20px; border-radius: 5px; font-size: 15px; font-weight: 600; transition: background .16s ease, transform .16s ease; }
.button:active { transform: translateY(1px); }
.primary { margin-top: 29px; background: var(--brand-color); color: white; }
.primary:hover { background: color-mix(in srgb, var(--brand-color) 84%, var(--paper)); }
.hero-art { align-self: stretch; position: relative; display: grid; align-items: center; justify-items: center; margin: 6px 1px; min-width: 0; }
.hero-art::before { content: ""; width: 96%; aspect-ratio: 4 / 3; background: var(--brand-art) center / contain no-repeat; mix-blend-mode: multiply; mask-image: linear-gradient(90deg, transparent, black 7%, black 94%, transparent), linear-gradient(0deg, transparent, black 6%, black 93%, transparent); mask-composite: intersect; }
.cross { position: absolute; width: 11px; height: 11px; color: #aaa99e; }
.cross::before, .cross::after { content: ""; position: absolute; background: currentColor; }
.cross::before { top: 5px; left: 0; width: 11px; height: 1px; }
.cross::after { left: 5px; top: 0; width: 1px; height: 11px; }
.top-left { top: 0; left: 0; } .top-right { top: 0; right: 0; }
.bottom-left { bottom: 0; left: 0; } .bottom-right { bottom: 0; right: 0; }
h2 { font-size: clamp(34px, 3.5vw, 54px); letter-spacing: -.061em; line-height: 1.08; }
.projects { border-block-end: 1px solid var(--rule); padding-top: clamp(22px, 2.75vw, 40px); }
.projects > h2 { margin-bottom: clamp(22px, 2.6vw, 40px); }
.project { border-top: 1px solid var(--rule); padding-block: clamp(29px, 3.4vw, 51px); }
.project-intro { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(28px, 5vw, 75px); }
.project-name h3 { margin-top: 15px; max-width: 12em; font-size: clamp(33px, 3.15vw, 49px); letter-spacing: -.055em; line-height: 1.06; }
.project-links { display: flex; flex-wrap: wrap; column-gap: 22px; }
.project-link { display: inline-flex; gap: 9px; align-items: center; min-height: 32px; margin-top: 13px; font-size: 14px; }
.project-link:hover, .gallery-item:hover .screen-caption { text-decoration: underline; text-underline-offset: 4px; }
.project-story h4 { font-size: clamp(21px, 1.85vw, 29px); line-height: 1.18; font-weight: 600; letter-spacing: -.038em; }
.project-story p { max-width: 68ch; margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.project-gallery { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.55vw, 24px); margin: clamp(22px, 2.4vw, 35px) 0 0; padding: 0; }
.storefront-gallery { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .72fr); }
.gallery-item { display: block; }
.screen-mount { height: clamp(160px, 18vw, 266px); position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; padding: clamp(13px, 1.45vw, 22px) clamp(11px, 1.35vw, 20px) 0; border: 1px solid #dbdad2; border-radius: 6px; background: linear-gradient(140deg, #eeede7, #e6e5de); }
.screen-mount img { display: block; width: 100%; height: auto; flex: none; border-radius: 3px 3px 0 0; box-shadow: 0 6px 16px #29271e20; transition: transform .2s ease; }
.portrait img { width: auto; height: 159%; max-width: 100%; object-fit: contain; object-position: top; }
.screen-caption { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; line-height: 1.4; }
.enlarge { display: block; position: relative; width: 11px; height: 11px; margin: 0 3px; flex: none; }
.enlarge::before, .enlarge::after { content: ""; position: absolute; width: 6px; height: 6px; border: solid currentColor; }
.enlarge::before { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.enlarge::after { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
@media (hover: hover) {
  .gallery-item:hover img { transform: translateY(-3px); }
  .gallery-item:hover .screen-mount { border-color: #9b9b8f; }
}
.gallery-dialog { width: min(calc(100% - 32px), 1460px); height: min(calc(100% - 32px), 1100px); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); background: var(--paper); }
.gallery-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.gallery-dialog::backdrop { background: rgb(26 27 24 / 74%); }
body:has(.gallery-dialog[open]) { overflow: hidden; }
.viewer-heading, .viewer-footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 7px clamp(14px, 2vw, 28px); }
.viewer-heading h3 { font-size: clamp(17px, 1.6vw, 23px); letter-spacing: -.035em; }
.viewer-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: 25px/1 Arial, sans-serif; cursor: pointer; }
.viewer-button:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.viewer-button:hover { background: #e7e6df; }
.viewer-close { font-size: 30px; }
.viewer-frame { min-height: 0; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 8px; background: #e8e7e1; overflow: hidden; cursor: zoom-out; }
.viewer-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; cursor: default; }
.viewer-footer p { font-size: 15px; }
.viewer-controls { flex: none; display: flex; align-items: center; }
.viewer-count { font: 12px/1.25 var(--mono); white-space: nowrap; }
.approach { padding-block: clamp(40px, 5vw, 76px); }
.process-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 60px); margin-top: clamp(24px, 3vw, 44px); }
.process-layout .eyebrow { color: var(--muted); }
.process-steps { list-style: none; counter-reset: step; margin: 12px 0 0; padding: 0; }
.process-steps li { position: relative; counter-increment: step; border-top: 1px solid var(--rule); padding: 16px 0 17px 38px; }
.process-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px; color: var(--muted); font: 12px/1.4 var(--mono); }
.process-steps h4, .project-support h3 { font-weight: 600; font-size: clamp(20px, 1.85vw, 28px); line-height: 1.18; letter-spacing: -.035em; }
.process-steps p, .project-support > p:last-child { max-width: 55ch; margin-top: 7px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.project-support {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 2.7vw, 40px);
  border-top: 3px solid var(--brand-color);
  border-radius: 10px;
  background: #eae8e0;
  box-shadow: 0 3px 12px rgb(26 27 24 / 20%);
}
.project-support h3 { margin-block: auto; }
.support-duration { display: block; margin-bottom: 8px; font-size: clamp(68px, 7.6vw, 112px); line-height: .9; letter-spacing: -.06em; }
.contact {
  --contact-gutter: max(5vw, calc((100vw - 1280px) / 2));
  --contact-inset: clamp(32px, 4vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: white;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(40px, 4.3vw, 68px) var(--contact-inset) clamp(38px, 4vw, 60px) var(--contact-gutter);
  background: var(--brand-color);
}
.contact h2 { max-width: 8ch; font-size: clamp(60px, 6vw, 94px); line-height: .94; }
.contact-copy { max-width: 43ch; margin-top: 20px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; }
.contact-person { margin-bottom: 12px; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.4; letter-spacing: -.015em; color: #c1c1b8; }
.contact-person strong { font-size: 1.1em; color: white; }
.contact-channels {
  display: grid;
  align-content: start;
  padding: 32px var(--contact-gutter) 32px var(--contact-inset);
  background: var(--ink);
  font-style: normal;
}
.contact-channels a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 16px;
  padding: 16px 0;
  border-bottom: 1px solid #494a43;
}
.contact-channels a:last-child { border-bottom: 0; }
.channel-label { font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .075em; color: #c1c1b8; }
.channel-value { grid-row: 2; font-size: clamp(20px, 1.75vw, 28px); line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.contact-channels .arrow { grid-column: 2; grid-row: 1 / 3; margin-inline-end: 3px; color: var(--brand-color); }
.contact-channels a:is(:hover, :focus-visible) .channel-value { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.contact-channels a:focus-visible { outline: 2px solid var(--brand-color); outline-offset: 3px; }
.footer { min-height: 70px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-block: 10px; }
.footer-credit { font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer a { display: flex; align-items: center; gap: 9px; }
@media (max-width: 850px) {
  .contact { --contact-gutter: 28px; }
  .shell { width: calc(100% - 56px); }
  .header { min-height: 68px; gap: 26px; }
  .header nav { gap: 20px; }
  .hero { grid-template-columns: 1.18fr 1fr; gap: 12px; }
  h1 { font-size: clamp(54px, 7.5vw, 70px); }
  .project-intro { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 26px; }
}
@media (max-width: 650px) {
  .process-layout { grid-template-columns: 1fr; gap: 12px; }
  .project-support { gap: 10px; }
  .project-support h3 { display: flex; align-items: center; gap: 12px; }
  .support-duration { margin: 0; font-size: 52px; }
  .shell { width: calc(100% - 36px); }
  .header { container: mobile-header / inline-size; min-height: 56px; flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .brand { min-height: 44px; margin-inline-end: 8px; gap: 5px; font-size: clamp(18px, 5cqi, 23px); }
  .brand-mark { width: 22px; height: 20px; }
  .header nav { gap: clamp(8px, 2.6cqi, 16px); }
  .header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: clamp(13px, 3vw, 14px); white-space: nowrap; }
  .hero { display: block; padding-block: 35px 27px; }
  h1 { font-size: clamp(50px, 12.8vw, 76px); margin-top: 18px; }
  .eyebrow { font-size: 10px; }
  .lead { margin-top: 16px; max-width: 445px; }
  .primary { margin-top: 20px; }
  .hero-art { display: none; }
  h2 { font-size: clamp(29px, 7.2vw, 41px); }
  .project-intro { grid-template-columns: 1fr; gap: 18px; }
  .project-name h3 { margin-top: 8px; }
  .project-link { margin-top: 5px; }
  .project-gallery, .storefront-gallery { display: flex; gap: 12px; overflow-x: auto; padding: 3px 4px 6px; margin-inline: -4px; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scrollbar-width: thin; scrollbar-color: #a6a69a transparent; }
  .project-gallery li { flex: 0 0 min(84%, 340px); min-width: 0; scroll-snap-align: start; }
  .screen-mount { height: clamp(157px, 45vw, 210px); }
  .gallery-item:focus-visible { outline-offset: 0; }
  .screen-caption { font-size: 13px; }
  .gallery-dialog { width: calc(100% - 16px); max-width: none; height: fit-content; max-height: calc(100dvh - 16px); }
  .viewer-frame { padding: 0; }
  .viewer-heading, .viewer-footer { padding-inline: 10px; gap: 6px; }
  .viewer-footer p { font-size: 13px; }
  .contact { grid-template-columns: 1fr; --contact-gutter: 18px; }
  .contact-intro { padding: 32px var(--contact-gutter); }
  .contact h2 { max-width: none; font-size: clamp(40px, 10vw, 60px); }
  .contact-copy { margin-top: 14px; }
  .contact-channels { padding: 28px var(--contact-gutter) 8px; }
  .footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 14px; }
  .footer-credit { display: grid; row-gap: 2px; }
  .footer-divider { display: none; }
  .footer a { min-height: 44px; }
}
@container mobile-header (max-width: 352px) {
  .brand { min-width: 44px; margin-inline-end: 0; }
  .brand-name { display: none; }
  .brand-mark { width: 26px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes scroll-enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes metal-enter {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: none; }
  }
  .hero h1, .hero .eyebrow { animation: scroll-enter 560ms cubic-bezier(.2, .7, .25, 1) backwards; }
  .hero .lead, .hero .primary { animation: scroll-enter 500ms ease-out 140ms backwards; }
  .hero-art { animation: metal-enter 760ms cubic-bezier(.2, .7, .25, 1) 560ms backwards; }
  .loading-art .hero-art { animation-play-state: paused; }
  .reveal-ready [data-reveal]:not(:focus-within) { opacity: 0; }
  .scroll-enter { animation: scroll-enter 680ms cubic-bezier(.2, .68, .3, 1) var(--enter-delay, 0ms) backwards; }
  .scroll-enter:focus-within, .hero .primary:focus-visible { opacity: 1 !important; transform: none !important; }
  .project-story, .process-steps li:nth-child(2), .contact-copy { --enter-delay: 65ms; }
  .process-steps li:nth-child(3) { --enter-delay: 130ms; }
  .contact-channels > a:nth-of-type(1) { --enter-delay: 55ms; }
  .contact-channels > a:nth-of-type(2) { --enter-delay: 110ms; }
  .contact-channels > a:nth-of-type(3) { --enter-delay: 165ms; }
  .contact-channels > a:nth-of-type(4) { --enter-delay: 220ms; }
}
