:root {
  color-scheme: light;
  --paper: #f5f2e8;
  --ink: #182820;
  --muted: #45594e;
  --forest: #213b2f;
  --sage: #dde5d5;
  --line: #c8d0c1;
  --accent: #dcea94;
  --rust: #714231;
  --display: Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(.2, .65, .23, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #54823a; outline-offset: 5px; }
.skip { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .5rem .75rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.shell { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.top { min-height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top nav, .wordmark { display: flex; align-items: center; gap: 14px; }
.top nav { gap: clamp(13px, 3vw, 33px); font-size: .9rem; }
.top nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wordmark { font-weight: 700; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 50%; color: var(--paper); background: var(--forest); font-size: .72rem; }
.nav-contact { font-weight: 700; }

.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 78px); min-height: 570px; padding-block: 62px 71px; }
.label { color: var(--muted); margin: 0 0 13px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.059em; line-height: .99; margin: 0; }
h1 { font-size: clamp(3.2rem, 6.9vw, 7.15rem); }
h1 em { color: #416049; font-weight: 400; }
h2 { font-size: clamp(2.6rem, 5vw, 4.75rem); }
.intro { max-width: 43ch; margin: 23px 0 27px; font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; gap: 16px 21px; align-items: center; flex-wrap: wrap; }
.button { min-height: 47px; padding: 9px 15px; display: inline-flex; gap: 25px; align-items: center; justify-content: space-between; font-size: .89rem; font-weight: 700; border: 1px solid var(--ink); }
.primary { background: var(--accent); transition: background-color .18s ease, transform .18s var(--ease); }
.primary:hover { background: #e7f3a8; transform: translateY(-2px); }
.button span, .text-link span { display: inline-block; transition: transform .2s var(--ease); }
.button:hover span, .text-link:hover span { transform: translate(3px, -2px); }
.text-link { font-weight: 700; font-size: .9rem; text-decoration: underline; text-underline-offset: .28em; }

.portrait { margin: 0; justify-self: end; width: min(100%, 405px); }
.portrait-mat { background: var(--sage); padding: clamp(12px, 2.2vw, 25px); position: relative; }
.portrait-mat::before, .portrait-mat::after { position: absolute; z-index: 1; width: 35%; height: 33%; content: ''; pointer-events: none; }
.portrait-mat::before { top: 7px; left: 7px; border-top: 1px solid #879a86; border-left: 1px solid #879a86; }
.portrait-mat::after { bottom: 7px; right: 7px; border-bottom: 1px solid #879a86; border-right: 1px solid #879a86; }
.portrait-photo { overflow: hidden; aspect-ratio: 1 / 1.04; background: #b6c3ac; }
.portrait-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; }
.portrait figcaption { margin-top: 8px; color: var(--muted); font-size: .76rem; }

.work { padding-block: 53px 76px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head p { max-width: 32ch; color: var(--muted); margin: 0; }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project { min-width: 0; border: 1px solid var(--line); background: #f9f7ee; }
.feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.16fr 1fr; }
.project-visual { display: grid; align-content: end; position: relative; isolation: isolate; overflow: hidden; min-height: 210px; aspect-ratio: 2.2; }
.project-body { padding: 21px 24px 27px; }
.feature .project-body { align-self: center; padding: clamp(19px, 3vw, 38px); }
.project-body .label { margin-bottom: 8px; }
.project-body h3 { margin: 0 0 10px; font: 400 clamp(1.6rem, 2.9vw, 2.85rem)/1.05 var(--display); letter-spacing: -.043em; }
.project-body p:not(.label) { color: var(--muted); margin: 0 0 13px; max-width: 53ch; }
.project-body .text-link { display: inline-block; margin-top: 4px; }
.shop-visual { display: grid; min-height: 320px; place-items: center; padding: clamp(15px, 3vw, 33px); background: #d5deca; aspect-ratio: auto; }
.mock-browser { width: min(100%, 490px); display: block; border: 1px solid #334238; box-shadow: 0 12px 24px #23352340; transition: transform .34s var(--ease); }
.shop-visual:hover .mock-browser, .shop-visual:focus-visible .mock-browser { transform: translateY(-5px) rotate(-1deg); }
.mock-bar { padding: 6px 9px; display: flex; justify-content: space-between; gap: 8px; background: #e8e5da; font-size: .65rem; }
.mock-dots { letter-spacing: .05em; font-size: .56rem; }
.mock-screen { position: relative; isolation: isolate; min-height: 216px; padding: 14px 16px; display: flex; align-items: start; flex-direction: column; justify-content: center; color: #f5f1e7; background: #202522; }
.mock-screen::after { content: ''; position: absolute; z-index: -1; inset: 12px 12px 12px 52%; background: url('https://images.unsplash.com/photo-1764245546004-e6b743242a80?auto=format&fit=crop&w=800&q=80') 60% 54% / cover, #34312b; }
.mock-brand { font-size: .54rem; letter-spacing: .1em; font-weight: 700; margin-bottom: 13px; color: #f6ad72; }
.mock-screen strong { font: 400 clamp(1.68rem, 3.05vw, 2.96rem)/.94 var(--display); letter-spacing: -.055em; }
.mock-cta { margin-top: 16px; padding: 3px 7px; color: #231d19; background: #f6ad72; font-weight: 700; font-size: .62rem; }
.vinyl-visual { place-items: center; align-content: center; background: #563127; }
.album-art { z-index: 1; display: flex; align-items: end; padding: 15px; width: min(39%, 174px); aspect-ratio: 1; margin-right: 17%; background: repeating-linear-gradient(155deg, #fff2 0 1px, transparent 1px 12px), linear-gradient(140deg, #bb7952, #713c2f); border: 1px solid #fac39388; box-shadow: 0 8px 14px #27130f77; color: #fff4de; font-size: clamp(.65rem, 1.35vw, 1rem); font-weight: 800; letter-spacing: .09em; line-height: 1.17; transform: rotate(-4deg); }
.vinyl { position: absolute; width: min(37%, 162px); aspect-ratio: 1; border-radius: 50%; left: 48%; background: radial-gradient(circle at center,#15231a 0 3%,#e3b683 4% 15%,#291d1b 16% 22%,transparent 23%), repeating-radial-gradient(circle,#292728 0 1px,#15191a 2px 4px); box-shadow: 1px 3px 10px #29191299; transition: transform .48s var(--ease); }
.vinyl::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(from 35deg, transparent 60deg, #fff2 95deg, transparent 118deg, transparent 237deg, #fff1 260deg, transparent 291deg); }
.vinyl-visual:hover .vinyl, .vinyl-visual:focus-visible .vinyl { transform: translateX(15%) rotate(36deg); }
.engineering-visual { background: #202f26; padding: 20px; color: #fffef3; }
.engineering-visual::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(10deg,#19271bdc, #17251a0a 83%), url('https://naskiera.com/assets/baja-airborne.jpeg') center 47% / cover; transition: transform .42s var(--ease); }
.engineering-visual:hover::before, .engineering-visual:focus-visible::before { transform: scale(1.045); }
.engineering-visual span { font-weight: 700; font-size: clamp(1rem, 2.25vw, 1.6rem); line-height: 1.09; }

.about { background: var(--forest); color: var(--paper); padding-block: 64px 69px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 33px; align-items: center; }
.about .label { color: var(--accent); }
.about-copy { max-width: 52ch; color: #edf1e8; }
.about-copy p { margin: 0 0 12px; }
.about-copy p:last-child { margin: 0; }
.services { padding-block: 65px 61px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-grid article { border-top: 1px solid var(--line); padding-top: 14px; }
.service-grid h3 { margin: 0 0 5px; font-size: 1.25rem; }
.service-grid p { margin: 0; color: var(--muted); max-width: 34ch; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 46px 51px; border-top: 1px solid var(--line); }
.contact p { color: var(--muted); margin: 13px 0 0; }
.footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-block: 17px; color: var(--muted); font-size: .76rem; }

@media (prefers-reduced-motion: no-preference) {
  .entrance { animation: arrive .62s var(--ease) both; }
  h1.entrance { animation-delay: .075s; }
  .intro.entrance { animation-delay: .145s; }
  .hero-actions.entrance { animation-delay: .205s; }
  .portrait.entrance { animation-delay: .12s; }
  .portrait-photo img { animation: settle .95s var(--ease) both; }
  .reveal-pending { opacity: 0; transform: translateY(14px); }
  .reveal-in { animation: arrive .55s var(--ease) both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes settle { from { transform: scale(1.055); } to { transform: scale(1); } }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .hero { min-height: initial; padding-block: 51px 56px; }
  .shop-visual { min-height: 270px; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 32px); }
  .top { min-height: 65px; flex-wrap: wrap; padding-block: 8px; }
  .top nav, .wordmark { font-size: .81rem; gap: 9px; }
  .mark { width: 28px; }
  .hero, .projects, .feature, .about-grid, .service-grid { grid-template-columns: 1fr; }
  .hero { gap: 25px; padding-block: 37px 38px; }
  .hero h1 { font-size: clamp(3.25rem, 10.4vw, 5.6rem); }
  .intro { margin-block: 18px 21px; }
  .portrait { width: min(100%, 355px); justify-self: start; }
  .portrait-photo { aspect-ratio: 1.24; }
  .section-head, .contact { align-items: flex-start; flex-direction: column; gap: 10px; }
  .work, .about, .services, .contact { padding-block: 39px; }
  .work .section-head { margin-bottom: 19px; }
  .projects, .service-grid { gap: 15px; }
  .project-visual { min-height: 184px; }
  .shop-visual { min-height: 245px; }
  .project-body { padding: 18px 16px 22px; }
  .about-grid { gap: 16px; }
  .contact .button { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .primary:hover, .button:hover span, .text-link:hover span, .shop-visual:hover .mock-browser, .shop-visual:focus-visible .mock-browser, .vinyl-visual:hover .vinyl, .vinyl-visual:focus-visible .vinyl, .engineering-visual:hover::before, .engineering-visual:focus-visible::before { transform: none; }
}
