/* ==========================================================================
   markmozza.com — Modern
   ========================================================================== */

:root {
  --bg: #08090b;
  --surface: #0e1014;
  --surface-2: #13161b;
  --ink: #f4f5f7;
  --muted: #8d939e;
  --muted-2: #7a828e;
  --line: #1d2128;
  --line-strong: #2b313a;
  --accent: #6ea8ff;
  --accent-soft: rgba(110, 168, 255, 0.11);
  --green: #75d9a6;
  --violet: #b9a4ff;
  --sans: "Geist", "Segoe UI", sans-serif;
  --mono: "Geist Mono", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 50% -16%, rgba(110, 168, 255, 0.085), transparent 66%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(110, 168, 255, 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #06101f;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

#work,
#about {
  scroll-margin-top: 92px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  background: rgba(8, 9, 11, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.1);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-header nav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.header-status:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.header-status .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(117, 217, 166, 0.6);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: end;
  padding: clamp(64px, 9vw, 118px) 0 clamp(44px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 116px);
  font-weight: 600;
  letter-spacing: -0.072em;
  line-height: 0.9;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-side > p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-meta strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-side .jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 30px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  color: var(--ink);
  font-size: 12.5px;
  text-decoration: none;
}

.hero-side .jump span {
  color: var(--accent);
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-strip span {
  margin-right: 20px;
  padding: 13px 20px 13px 0;
  border-right: 1px solid var(--line);
}

.stats-strip span:last-child {
  border-right: 0;
}

/* --------------------------------------------------------------------------
   Featured project
   -------------------------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  margin-top: 48px;
  padding: 26px;
  border: 1px solid rgba(110, 168, 255, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(600px 380px at 8% 0%, rgba(110, 168, 255, 0.14), transparent 70%),
    var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 168, 255, 0.55);
  box-shadow: 0 30px 70px -44px rgba(110, 168, 255, 0.55);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 8px 14px 14px;
}

.feature-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(117, 217, 166, 0.6);
}

.feature h2 {
  margin: 18px 0 4px;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.feature .tagline {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.3;
  text-wrap: pretty;
}

.feature .description {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  text-wrap: pretty;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
}

.feature-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
}

.feature-cta b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--accent);
  color: #07111f;
  font-size: 12px;
  transition: transform 0.25s ease;
}

.feature:hover .feature-cta b {
  transform: translate(3px, -3px);
}

.feature-shot {
  overflow: hidden;
  min-height: 310px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: #0b1220;
}

.feature-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform 0.65s var(--ease);
}

.feature:hover .feature-shot img {
  transform: scale(1.025);
}

/* --------------------------------------------------------------------------
   Project grid
   -------------------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(64px, 8vw, 108px) 0 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-head > span {
  padding-bottom: 6px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

a.project:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 28px 60px -42px rgba(0, 0, 0, 0.8);
}

.shot {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background: #0b0d10;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.65s var(--ease);
}

a.project:hover .shot img {
  transform: scale(1.03);
}

.project-body {
  padding: 20px;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status--live {
  color: var(--green);
}

.status--new {
  color: var(--accent);
}

.status--lab {
  color: var(--violet);
}

.project h3 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 6px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.project h3 > span {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 16px;
  transition: color 0.2s ease, transform 0.2s ease;
}

a.project:hover h3 > span {
  color: var(--accent);
  transform: translate(3px, -3px);
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.project--lab {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  cursor: default;
  background:
    radial-gradient(600px 300px at 85% 50%, rgba(168, 139, 250, 0.12), transparent 72%),
    var(--surface);
}

.project--lab .project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 230px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(320px 200px at 50% 50%, rgba(168, 139, 250, 0.15), transparent 70%),
    #0d0b14;
}

.lab-visual .ring {
  position: absolute;
  width: 170px;
  height: 78px;
  border: 1px solid rgba(168, 139, 250, 0.35);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.lab-visual .ring::before,
.lab-visual .ring::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a88bfa;
}

.lab-visual .ring::before {
  top: 8px;
  left: 24px;
}

.lab-visual .ring::after {
  right: 18px;
  bottom: 10px;
  background: var(--accent);
}

.lab-visual .star {
  color: #c9b8ff;
  font-size: 30px;
  text-shadow: 0 0 28px rgba(168, 139, 250, 0.55);
}

/* --------------------------------------------------------------------------
   About + footer
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 7vw, 100px);
  margin-top: clamp(74px, 9vw, 120px);
  padding: clamp(42px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.about h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.98;
  text-wrap: balance;
}

.about h2 span {
  color: var(--accent);
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
  text-wrap: pretty;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.about-facts div {
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.about-facts dt {
  margin-bottom: 4px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-facts dd {
  margin: 0;
  font-size: 13px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
}

.site-footer .mono {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Noscript
   -------------------------------------------------------------------------- */

.noscript {
  width: min(100% - 48px, 1240px);
  margin: 0 auto 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.noscript p {
  margin: 0 0 12px;
}

.noscript ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding-left: 18px;
}

.noscript a {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero > div {
  animation: rise 0.8s var(--ease) both;
}

.hero > div:nth-child(2) {
  animation-delay: 0.08s;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  .hero-side > p {
    max-width: 520px;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature-shot {
    min-height: 260px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 36px, 1240px);
  }

  .header-inner {
    min-height: 64px;
    gap: 16px;
  }

  .site-header nav {
    gap: 16px;
  }

  .header-status {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(50px, 15.5vw, 78px);
  }

  .hero-side > p {
    font-size: 15px;
  }

  .stats-strip {
    font-size: 8px;
  }

  .stats-strip span {
    margin-right: 14px;
    padding-right: 14px;
  }

  .feature {
    margin-top: 34px;
    padding: 18px;
    border-radius: 20px;
  }

  .feature-copy {
    padding: 4px;
  }

  .feature-shot {
    min-height: 210px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project--lab {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .lab-visual {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-body,
  .project--lab .project-body {
    padding: 18px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-head > span {
    padding-bottom: 0;
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .shell {
    width: min(100% - 30px, 1240px);
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 15px;
  }

  .site-header nav {
    gap: 12px;
  }

  .site-header nav a {
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(46px, 16vw, 68px);
  }

  .hero-meta {
    gap: 7px 14px;
  }

  .feature h2 {
    font-size: 42px;
  }

  .feature .tagline {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
