/* Visual polish: the original warm, flat identity with a calmer editorial rhythm. */
:root {
  --color-bg-raw: 250, 248, 242;
  --color-surface-raw: 239, 235, 224;
  --color-text-raw: 27, 29, 26;
  --color-border-raw: 184, 181, 169;
  --color-muted-raw: 79, 79, 73;
  --color-accent-raw: 188, 209, 202;
  --color-peach-raw: 232, 199, 177;
  --global-radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 0 rgba(27, 29, 26, 0.04);
  --shadow-2: 0 8px 0 rgba(27, 29, 26, 0.06);
  --max-content-width: 1240px;
  --margin-section: clamp(12px, 2vw, 28px);
}

body {
  background: var(--color-bg);
}

section {
  scroll-margin-top: 24px;
}

#hero {
  min-height: 100svh;
  padding: 44px 0;
  background: var(--color-bg);
}

#hero::before {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0H56M0 0V56' fill='none' stroke='%23b8b5a9' stroke-opacity='.35'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.72) 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.72) 82%, transparent 100%);
  opacity: 0.68;
}

.hero-container-new {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(34px, 6vw, 92px);
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(4rem, 9vw, 7.4rem);
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.hero-description {
  margin: 0;
  max-width: 49ch;
  font-size: clamp(1rem, 1.7vw, 1.17rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-action--primary {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}

.hero-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 0 rgba(27, 29, 26, 0.1);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  border: 1px solid rgba(var(--color-border-raw), 0.7);
  border-radius: 46% 46% 24px 24px;
  background: rgb(var(--color-accent-raw));
  overflow: hidden;
}

.hero-container-img {
  width: min(100%, 620px);
  transform: translateY(28px) scale(1.03);
}

.section-title,
.orders-title,
.support-title {
  letter-spacing: -0.045em;
}

.section-title {
  margin-bottom: 62px;
  padding-bottom: 0;
  line-height: 0.9;
}

.section-title::after { display: none; }

#about,
#projects,
#contact {
  border-radius: 28px;
  box-shadow: none;
}

#about {
  padding: clamp(64px, 8vw, 108px) clamp(8px, 3vw, 38px);
  border: 1px solid rgba(var(--color-border-raw), 0.62);
}

.about-container {
  gap: clamp(44px, 7vw, 90px);
}

.about-text > p {
  font-size: 1.03rem;
}

.about-quote {
  border-color: rgba(var(--color-text-raw), 0.5);
  font-size: clamp(1.65rem, 3vw, 2.65rem);
}

.about-stack-tags span,
.order-card,
.small-order-card,
.project-story-card,
.dead-project-card {
  box-shadow: none;
}

.about-stack-tags span {
  border-radius: 9px;
  background: var(--color-bg);
}

#orders {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--color-bg);
  overflow-x: clip;
}

.order-card:hover,
.order-card:focus-visible,
.order-card:focus-within,
.small-order-card:hover,
.project-story-card:hover,
.project-story.is-active .project-story-card,
.project-story.is-active .project-story-card:hover {
  box-shadow: 0 7px 0 rgba(27, 29, 26, 0.07);
}

.small-orders {
  overflow: visible;
}

.small-orders-marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 4px 0 12px;
}

.small-order-track {
  --small-order-gap: 12px;
  position: relative;
  width: 100%;
  min-height: 188px;
  overflow: hidden;
  contain: layout paint;
}

.small-order-list {
  position: absolute;
  inset: 0 auto auto 0;
  display: flex;
  gap: var(--small-order-gap);
  min-width: max-content;
  padding: 0 var(--small-order-gap) 8px 0;
  overflow: visible;
  animation: small-orders-scroll 72s linear infinite;
  will-change: transform;
}

.small-order-list[aria-hidden="true"] {
  animation-name: small-orders-scroll-copy;
}

.small-orders-marquee:hover .small-order-list,
.small-orders-marquee:focus-within .small-order-list {
  animation-play-state: paused;
}

.small-order-card {
  width: clamp(250px, 22vw, 310px);
  min-height: 174px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.small-order-card p {
  flex-grow: 1;
}

@keyframes small-orders-scroll {
  to { transform: translateX(-100%); }
}

@keyframes small-orders-scroll-copy {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

#projects {
  margin: var(--margin-section);
  border: 1px solid rgba(var(--color-border-raw), 0.58);
  background: var(--color-surface);
}

#projects::before { display: none; }

.projects-showcase {
  overflow: hidden;
  background: #1c1c1a;
}

.project-preview {
  clip-path: none;
  transform: translate3d(-22px, 0, 0) scale(1.012);
  transition:
    opacity 0.42s ease,
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-preview.is-active {
  clip-path: none;
  transform: translate3d(0, 0, 0) scale(1);
}

.project-preview-media {
  -webkit-mask-image: none;
  mask-image: none;
}

.project-preview-media::after { display: none; }

.project-preview--logo .project-preview-media img,
.project-preview--logo.is-active .project-preview-media img {
  filter: none;
}

.project-story-card::before {
  width: 7px;
}

.dead-project-card {
  background: var(--color-bg);
  backdrop-filter: none;
}

#support {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#support::after { display: none; }

#contact {
  border: 1px solid rgba(var(--color-border-raw), 0.62);
}

.support-card:hover {
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.28);
}

.email-link::before { display: none; }

.email-link:hover {
  background: var(--color-text);
}

footer p {
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero-container-new { grid-template-columns: 1fr 0.86fr; }
  .hero-visual { min-height: 460px; }
}

@media (max-width: 768px) {
  #hero {
    padding: 24px 0;
  }

  #hero::before {
    inset: 0;
    background-size: 42px 42px;
    border-radius: 0;
  }

  .hero-container-new {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-inline: 26px;
  }

  .hero-text-content { text-align: left; }
  .hero-visual { order: 2; }

  .hero-title { font-size: clamp(3.5rem, 18vw, 5.2rem); margin-bottom: 20px; }
  .hero-description { margin-inline: 0; max-width: 38ch; }
  .hero-actions { margin-top: 26px; }
  .hero-action { flex: 1 1 190px; }

  .hero-visual {
    min-height: 330px;
    border-radius: 44% 44% 18px 18px;
  }

  .hero-container-img { max-width: 100%; transform: translateY(20px); }
  #about,
  #projects,
  #contact { border-radius: 20px; }

  #orders,
  #support { border-radius: 0; }

  #about { padding: 56px 12px; }

  .projects-showcase {
    border-radius: 0;
  }

  .small-orders-heading {
    align-items: flex-start;
  }

  .small-order-track {
    --small-order-gap: 10px;
    min-height: 178px;
  }

  .small-order-list {
    grid-template-columns: none;
    grid-auto-flow: initial;
    grid-auto-columns: auto;
    margin-inline: 0;
    padding: 0 var(--small-order-gap) 8px 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .small-order-card {
    width: min(280px, calc(100vw - 44px));
    min-height: 164px;
  }
}

@media (max-width: 430px) {
  .hero-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-action:hover { transform: none; }

  .small-orders-marquee {
    overflow-x: auto;
  }

  .small-order-track {
    width: max-content;
    overflow: visible;
    contain: none;
  }

  .small-order-list {
    position: static;
    animation: none !important;
  }

  .small-order-list[aria-hidden="true"] {
    display: none;
  }
}
