main > section {
  scroll-margin-top: 24px;
  margin-bottom: 86px;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 46px;
  align-items: center;
  padding-top: 64px;
  margin-bottom: 48px;
}
.hero h1 {
  margin: 20px 0 26px;
  max-width: 680px;
}
.hero h1 span {
  display: block;
  margin-top: 7px;
}
.hero-intro {
  max-width: 490px;
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.hero-feature {
  display: block;
  border: 1px solid #494034;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 65%, #8e663830, transparent 70%), #23221f;
  text-decoration: none !important;
}
.hero-feature:hover .feature-caption {
  color: var(--accent);
}
.feature-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  font:
    500 12px "Space Grotesk",
    monospace;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-phones {
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px 26px;
}
.phone {
  overflow: hidden;
  border: 5px solid #121212;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 20px 40px #0003;
  flex: none;
}
.phone img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.feature-phones .phone {
  height: 345px;
  max-width: 44%;
  transform: rotate(-6deg);
}
.feature-phones .phone:nth-child(2) {
  transform: translateY(22px) rotate(7deg);
}
.feature-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
  border-top: 1px solid #494034;
  background: #28251f;
  font-size: 14px;
}
.tech-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-block: 1px solid var(--border);
  font:
    500 12px "Space Grotesk",
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 72px;
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px 28px;
}
.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none !important;
}
.project-stage {
  height: 320px;
  background: #2f332b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.project-card:nth-child(2) .project-stage {
  background: #292e29;
}
.project-card:nth-child(3) .project-stage {
  background: #342d27;
}
.project-card:nth-child(n + 4) .project-stage {
  background: var(--panel);
}
.project-stage .phone {
  height: 280px;
  max-width: 80%;
  border-radius: 22px;
}
.web-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
}
.card-copy {
  padding-top: 20px;
}
.card-copy .eyebrow {
  margin-bottom: 9px;
}
.project-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}
.project-heading h3 {
  font-size: 26px;
  margin: 0;
}
.project-heading .accent {
  font-size: 23px;
}
.card-copy > p:not(.eyebrow) {
  margin: 10px 0 4px;
}
.project-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.project-card:hover .project-stage {
  box-shadow: 0 0 0 1px #746044;
}
.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.about-section h2 {
  margin-bottom: 25px;
}
.headshot {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(1);
}
.about-section > div > p:not(.eyebrow) {
  font-size: 18px;
  margin-bottom: 28px;
}
.about-section h3 {
  font-size: 21px;
  margin-bottom: 0;
}
.experience-entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  border-top: 1px solid var(--border);
  padding: 30px 0;
}
.experience-date {
  font:
    500 14px "Space Grotesk",
    monospace;
  color: var(--accent);
  padding-top: 5px;
}
.experience-entry h3 {
  margin-bottom: 18px;
  font-size: 24px;
}
.contributions {
  padding-left: 20px;
  color: var(--muted);
}
.contributions li {
  margin-bottom: 9px;
}
.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  border-top: 1px solid var(--border);
  padding-top: 45px;
}
.contact-section h2 {
  margin: 10px 0 0;
}
.contact-section p:not(.eyebrow) {
  font-size: 18px;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}
.back-link {
  margin: 34px 0 26px;
}
.project-intro {
  max-width: 850px;
  margin-bottom: 38px;
}
.project-intro h1 {
  margin: 15px 0 24px;
  font-size: clamp(42px, 5vw, 64px);
  overflow-wrap: break-word;
}
.project-description {
  font-size: 21px;
  max-width: 780px;
}
.project-overview {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 35px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  margin-bottom: 64px;
}
.project-overview h2 {
  font-size: 27px;
}
.project-overview p {
  font-size: 18px;
  max-width: 720px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  display: block;
  min-width: 0;
  padding: 22px;
  background: var(--panel);
  border-radius: 6px;
  text-decoration: none !important;
}
.gallery-item img {
  height: 420px;
  width: 100%;
  object-fit: contain;
  object-position: center;
}
.gallery-item > span {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}
.gallery-item:hover {
  box-shadow: 0 0 0 1px var(--accent);
}
.image-viewer {
  width: min(850px, calc(100vw - 32px));
  padding: 22px;
}
.viewer-header,
.viewer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.viewer-header p {
  margin: 0;
  font-size: 16px;
}
.viewer-image {
  max-height: calc(100dvh - 210px);
  overflow: auto;
  margin: 18px 0;
  display: flex;
  justify-content: center;
  align-items: start;
  background: #22211e;
}
.viewer-image img {
  width: min(100%, 470px);
  height: auto;
}
.viewer-controls {
  font-size: 14px;
}
.project-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 28px 0;
  border-block: 1px solid var(--border);
  margin-bottom: 60px;
}
.project-pagination a {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-pagination a:last-child {
  text-align: right;
}
.project-pagination .eyebrow {
  color: var(--accent);
}
.compact {
  margin-bottom: 64px;
}
.demo-note {
  font-size: 14px;
  margin-bottom: 22px;
}
.demo-preview {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  display: grid;
  gap: 24px;
  justify-items: start;
}
.demo-preview img {
  max-height: 420px;
  width: 100%;
  object-fit: contain;
}
.demo-frame {
  display: block;
  width: 100%;
  height: 800px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
}
.demo-section:has(.demo-frame:not([hidden])) .demo-preview {
  display: none;
}
.not-found {
  min-height: 65vh;
  padding-top: 90px;
  padding-bottom: 80px;
}
.not-found h1 {
  margin: 22px 0;
}
.not-found > p:not(.eyebrow) {
  max-width: 550px;
  font-size: 18px;
}
.not-found-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 1023px) {
  .hero {
    gap: 30px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .feature-phones {
    height: 370px;
    padding: 26px 20px;
    gap: 12px;
  }
  .feature-phones .phone {
    height: 285px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-section,
  .contact-section {
    gap: 35px;
  }
  .experience-entry {
    grid-template-columns: 155px 1fr;
    gap: 25px;
  }
}
@media (max-width: 767px) {
  main > section {
    margin-bottom: 60px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    gap: 35px;
  }
  .hero h1 {
    font-size: clamp(44px, 8vw, 58px);
    letter-spacing: -0.045em;
  }
  .hero-intro {
    font-size: 17px;
  }
  .feature-phones {
    height: 350px;
    gap: 18px;
  }
  .feature-phones .phone {
    height: 285px;
    transform: none !important;
  }
  .feature-label {
    padding: 18px;
  }
  .feature-caption {
    padding: 16px 18px;
    font-size: 13px;
  }
  .tech-strip {
    margin-bottom: 50px;
    gap: 15px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .project-stage {
    height: 310px;
  }
  .about-section,
  .contact-section,
  .project-overview {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .about-section,
  .contact-section {
    padding-top: 32px;
  }
  .experience-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 26px 0;
  }
  .experience-date {
    margin-bottom: 8px;
  }
  .experience-entry h3 {
    font-size: 22px;
  }
  .project-description {
    font-size: 18px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item img {
    height: auto;
    max-height: 540px;
    object-fit: contain;
  }
  .project-overview {
    margin-bottom: 45px;
  }
  .viewer-header {
    align-items: start;
  }
  .viewer-controls {
    gap: 8px;
    flex-wrap: wrap;
  }
  .viewer-controls .button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .viewer-controls [data-viewer-count] {
    font-size: 12px;
  }
  .project-pagination {
    gap: 24px;
  }
  .project-pagination a {
    font-size: 14px;
  }
  .demo-preview {
    padding: 16px;
  }
  .not-found {
    padding-top: 65px;
  }
  .contact-links {
    gap: 12px 20px;
  }
}

.experience-entry h3 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
