body.home-page {
  height: 100svh;
  overflow: hidden;
}

.home-main {
  display: grid;
  height: calc(100svh - 76px);
  align-items: center;
  padding: clamp(18px, 4vw, 36px) clamp(18px, 5vw, 70px);
  overflow: hidden;
}

.home-hero {
  display: grid;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .82fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
}

.home-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.home-title {
  max-width: 820px;
  margin: 0 0 clamp(14px, 2.5vw, 24px);
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: .84;
  text-transform: uppercase;
  text-align: left;
}

.home-title span {
  display: block;
}

.home-title .outline {
  -webkit-text-fill-color: var(--accent);
  -webkit-text-stroke: 1.65px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--accent);
}

.home-description {
  max-width: 560px;
  margin: 0;
  color: #303030;
  font-size: clamp(1rem, 1.55vw, 1.32rem);
  line-height: 1.45;
  font-weight: 400;
  text-align: left;
}

.home-portrait-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 0;
  height: min(100%, calc(100svh - 180px));
  padding: 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-portrait-card:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.home-proof-label {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-proof-caption {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-portrait-visual {
  display: grid;
  min-height: 0;
  height: 100%;
  place-items: end center;
  overflow: hidden;
  border: 1px solid var(--strong);
  background: #fafafa;
}

.home-portrait-visual img {
  display: block;
  width: min(92%, 340px);
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.profile-card {
  display: grid;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px);
  justify-items: center;
  gap: clamp(16px, 3vw, 24px);
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-.35deg);
}

.profile-art-wrap {
  display: grid;
  width: min(100%, 360px);
  min-height: 278px;
  padding: 18px 18px 0;
  place-items: end center;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #fafafa;
  box-shadow: 4px 4px 0 var(--ink);
}

.profile-art {
  display: block;
  width: min(100%, 290px);
  height: auto;
}

.profile-text {
  max-width: 690px;
  margin: 0;
  color: #303030;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  text-align: left;
}

.work {
  color: var(--paper);
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    #111;
  background-size: 24px 24px;
}

.work .eyebrow,
.case-copy {
  color: rgba(255, 255, 255, .66);
}

.case-lab {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: stretch;
}

.case-copy {
  display: grid;
  min-height: 460px;
  align-content: space-between;
  line-height: 1.7;
}

.case-copy h3 {
  color: var(--paper);
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.case-meta {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.case-meta span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .55);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-meta b,
.case-meta a {
  color: var(--paper);
}

.preview-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  background: #050505;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .38);
}

.preview-top {
  display: flex;
  min-height: 48px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background: #111;
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic i {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .38);
}

.preview-address {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .62);
  font-size: .7rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.preview-size {
  display: flex;
  gap: 6px;
}

.preview-size button {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: rgba(255, 255, 255, .62);
  background: transparent;
  cursor: pointer;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-size button.active {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent);
}

.scroll-hint {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .72);
  background: #0e0e0e;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-frame-wrap {
  display: grid;
  min-height: 520px;
  padding: 18px;
  place-items: center;
  background: #050505;
}

.preview-frame {
  width: 100%;
  height: 500px;
  border: 0;
  background: var(--paper);
  transition: width .22s;
}

.preview-frame.mobile {
  width: min(390px, 100%);
}

.legal {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 70px);
  line-height: 1.7;
}

.legal-card {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, .72);
  box-shadow: 8px 8px 0 var(--ink);
}

.legal h2,
.legal h3 {
  margin: 30px 0 10px;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.legal p,
.legal li {
  color: #303030;
}

@media (max-width: 1100px) {
  .case-lab {
    grid-template-columns: 1fr;
  }

  .case-copy {
    min-height: 0;
  }
}

@media (min-width: 901px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.14fr) minmax(240px, .72fr);
    gap: clamp(28px, 3.5vw, 64px);
    align-items: stretch;
  }

  .home-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    height: min(100%, calc(100svh - 180px));
    gap: clamp(18px, 3.2vh, 44px);
    min-height: 0;
  }

  .home-title {
    max-width: none;
    margin: 0;
    font-size: clamp(5.5rem, 19vh, 13rem);
    line-height: .78;
    letter-spacing: -.02em;
  }

  .home-title .outline {
    -webkit-text-stroke-width: clamp(1.75px, .15vw, 2.5px);
    text-shadow: clamp(4px, .45vw, 7px) clamp(4px, .45vw, 7px) 0 var(--accent);
  }

  .home-description {
    max-width: min(94%, 760px);
    margin: 0;
    font-size: clamp(1.35rem, 3.8vh, 2.5rem);
    line-height: 1.34;
  }
}

@media (min-width: 901px) and (max-width: 1099px) {
  .home-title {
    font-size: clamp(4.75rem, 17vh, 10.5rem);
  }

  .home-description {
    font-size: clamp(1.2rem, 3.4vh, 2.1rem);
  }
}

@media (min-width: 1100px) {
  .home-title {
    font-size: clamp(7rem, 21vh, 15rem);
  }

  .home-description {
    font-size: clamp(1.5rem, 4.2vh, 2.85rem);
  }
}

@media (min-width: 1400px) {
  .home-title {
    font-size: clamp(8.5rem, 23vh, 16rem);
  }

  .home-description {
    font-size: clamp(1.65rem, 4.5vh, 3rem);
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-portrait-card {
    height: auto;
    max-height: 38svh;
  }

  .home-portrait-visual img {
    width: min(72%, 220px);
  }
}

@media (max-width: 760px) {
  body.home-page {
    height: 100svh;
  }

  .home-main {
    height: calc(100svh - 70px);
    padding: 16px 18px 20px;
  }

  .home-title {
    margin-bottom: 10px;
    font-size: clamp(2.35rem, 14vw, 3.8rem);
    line-height: .86;
  }

  .home-title .outline {
    -webkit-text-stroke-width: 1.15px;
    text-shadow: 3px 3px 0 var(--accent);
  }

  .home-description {
    font-size: .92rem;
  }

  .home-portrait-card {
    max-height: 34svh;
    padding: 12px;
  }

  .profile-card {
    transform: none;
  }

  .profile-art-wrap {
    width: min(100%, 320px);
    min-height: 230px;
  }

  .profile-art {
    width: min(88%, 250px);
  }

  .preview-top {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .preview-frame-wrap {
    min-height: 430px;
    padding: 10px;
  }

  .preview-frame,
  .preview-frame.mobile {
    width: 100%;
    height: 410px;
  }

  .case-actions .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .preview-frame-wrap {
    min-height: 340px;
  }

  .preview-frame,
  .preview-frame.mobile {
    height: 320px;
  }
}

@media (max-height: 760px) and (min-width: 901px) {
  .home-intro,
  .home-portrait-card {
    height: min(100%, calc(100svh - 150px));
  }

  .home-intro {
    gap: clamp(12px, 2vh, 24px);
  }

  .home-title {
    font-size: clamp(3.75rem, 15vh, 8.5rem);
    line-height: .8;
  }

  .home-description {
    font-size: clamp(1.05rem, 2.8vh, 1.9rem);
    line-height: 1.3;
  }
}

@media (max-height: 760px) and (min-width: 761px) and (max-width: 900px) {
  .home-title {
    margin-bottom: 10px;
    font-size: clamp(2.6rem, 11vw, 4.2rem);
  }

  .home-description {
    font-size: clamp(.9rem, 3.2vw, 1.05rem);
  }

  .home-portrait-card {
    max-height: 32svh;
  }
}
