/* Homepage composition: editorial portfolio built from Twelve Moons content. */
@font-face {
  font-family: "SuperGroteskRegular";
  src: url("../fonts/SuperGroteskRegular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "SuperGroteskCondensed";
  src: url("../fonts/SuperGroteskCondensed.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "SuperGroteskMedium";
  src: url("../fonts/SuperGroteskMedium.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "SuperGroteskCondensedMedium";
  src: url("../fonts/SuperGroteskCondensedMedium.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  --tm-paper: #f0f0ed;
  --tm-black: #171717;
  --tm-grey: #858583;
  --tm-radius: 10px;
  --tm-display: "SuperGroteskCondensed", "FF Super Grotesk Condensed", "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --tm-sans: "SuperGroteskRegular", "FF Super Grotesk Regular", "Inter", "Helvetica Neue", Arial, sans-serif;
  --tm-medium: "SuperGroteskMedium", "FF Super Grotesk Medium", "Inter", "Helvetica Neue", Arial, sans-serif;
  --tm-display-medium: "SuperGroteskCondensedMedium", "FF Super Grotesk Condensed Medium", "Barlow Condensed", "Arial Narrow", sans-serif;
}

body[data-page="portfolio"] {
  background: var(--tm-black);
  font-family: var(--tm-sans);
}

body[data-page="portfolio"] > .site-shell.portfolio-shell {
  display: none;
}

body[data-page="portfolio"] > .site-footer {
  display: none;
}

body[data-page="portfolio"] > .site-footer.unified-site-footer {
  display: block;
}

.site-header {
  align-items: center;
  background: var(--tm-paper);
  max-width: none;
  min-height: auto;
  padding: 18px max(28px, calc((100vw - 1220px) / 2));
}

.wordmark,
.wordmark img {
  min-width: 0;
  width: 104px;
}

.main-nav {
  gap: 24px;
}

.main-nav a {
  color: var(--tm-black);
  font-family: var(--tm-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #777773;
}

.home-landing {
  background: var(--tm-black);
  color: var(--tm-paper);
}

.home-inner {
  margin: 0 auto;
  max-width: 1220px;
  padding-left: 28px;
  padding-right: 28px;
}

.home-intro {
  padding-bottom: 84px;
  padding-top: 92px;
}

.home-intro h1,
.home-section-title,
.home-contact-title {
  font-family: var(--tm-display);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.86;
  margin: 0;
  text-transform: uppercase;
}

.home-intro h1 {
  font-size: clamp(46px, 6.15vw, 92px);
  max-width: 1000px;
}

.home-intro p {
  color: #d2d2cd;
  font-size: clamp(19px, 1.55vw, 25px);
  letter-spacing: -0.035em;
  line-height: 1.22;
  margin: 30px 0 28px;
  max-width: 690px;
}

.home-pill {
  border: 1px solid rgba(240, 240, 237, 0.72);
  border-radius: 999px;
  color: var(--tm-paper);
  display: inline-flex;
  font-family: var(--tm-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 10px 16px;
  transition: background 160ms ease, color 160ms ease;
}

.home-pill:hover {
  background: var(--tm-paper);
  color: var(--tm-black);
}

.home-showcase-card__title {
  font-family: var(--tm-display);
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-transform: uppercase;
}

.home-showcase-card__caption {
  color: #a8a8a4;
  font-size: 15px;
  line-height: 1.2;
}

.home-showcase-card:hover .home-showcase-card__title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.home-work {
  background: var(--tm-paper);
  color: var(--tm-black);
  padding: 96px 0 110px;
}

.home-work__eyebrow {
  color: #696966;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.home-section-title {
  font-size: clamp(42px, 5vw, 76px);
  margin-bottom: 54px;
}

.home-showcase-grid {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.home-showcase-card {
  color: inherit;
  display: block;
}

.home-showcase-card::before {
  background-image: var(--home-art);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--tm-radius);
  content: "";
  display: block;
  height: 360px;
}

.home-showcase-card--large {
  grid-row: span 2;
}

.home-showcase-card--large::before {
  height: 720px;
}

.home-showcase-card__image {
  display: none;
}

.home-showcase-card--large .home-showcase-card__image {
  min-height: 720px;
}

.home-showcase-card__title {
  display: block;
  font-size: clamp(28px, 3vw, 44px);
  margin-top: 13px;
}

.home-showcase-card__caption {
  color: #6f6f6b;
  display: block;
  font-size: 16px;
  margin-top: 4px;
}

.home-contact {
  background: #101010;
  border-top: 1px solid rgba(240, 240, 237, 0.2);
  color: var(--tm-paper);
  padding: 74px 0 46px;
}

.home-contact__grid {
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(250px, 1.45fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
}

.home-contact-title {
  font-size: clamp(42px, 4.7vw, 66px);
}

.home-contact__mail {
  color: var(--tm-paper);
  display: inline-block;
  font-family: var(--tm-display);
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: 10px;
}

.home-contact__mail:hover,
.home-contact a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-contact__label {
  color: #a5a5a1;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.035em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.home-contact p,
.home-contact a {
  color: #e8e8e2;
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.home-contact__bottom {
  border-top: 1px solid rgba(240, 240, 237, 0.2);
  color: #81817d;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 20px;
}

.home-portfolio-grid {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.home-portfolio-card {
  color: var(--tm-black);
  display: block;
}

.home-portfolio-card--tall {
  grid-row: span 2;
}

.home-portfolio-card img {
  aspect-ratio: 16 / 10;
  border-radius: var(--tm-radius);
  display: block;
  object-fit: cover;
  transition: transform 320ms ease, filter 320ms ease;
  width: 100%;
}

.home-portfolio-card--tall img {
  aspect-ratio: auto;
  height: 710px;
}

.home-portfolio-card span,
.home-portfolio-card small {
  display: block;
}

.home-portfolio-card span {
  font-family: var(--tm-display);
  font-size: clamp(26px, 2.7vw, 42px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.9;
  margin-top: 13px;
  text-transform: uppercase;
}

.home-portfolio-card small {
  color: #6f6f6b;
  font-size: 15px;
  line-height: 1.25;
  margin-top: 4px;
}

.home-portfolio-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.01);
}

.home-all-projects {
  border: 1px solid #212121;
  border-radius: 999px;
  color: #171717;
  display: inline-flex;
  font-family: var(--tm-display);
  font-size: 16px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: -0.02em;
  margin-top: 56px;
  padding: 11px 17px;
}

.home-all-projects:hover {
  background: #171717;
  color: var(--tm-paper);
}

.home-bottom-work {
  background: #252527;
  color: var(--tm-paper);
  padding: 94px 0 104px;
}

.home-bottom-work .home-work__eyebrow,
.home-bottom-work .home-showcase-card__caption {
  color: #b0b0ad;
}

.home-bottom-work .home-showcase-card__title {
  color: var(--tm-paper);
}

.home-contact__grid {
  grid-template-columns: minmax(250px, 1.3fr) minmax(150px, 0.65fr) minmax(110px, 0.42fr) minmax(250px, 0.8fr);
}

.home-socials {
  display: flex;
  gap: 9px;
}

.home-socials a {
  align-items: center;
  border: 1px solid rgba(240, 240, 237, 0.7);
  border-radius: 50%;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  height: 31px;
  justify-content: center;
  letter-spacing: -0.06em;
  text-decoration: none;
  width: 31px;
}

.home-socials a:hover {
  background: var(--tm-paper);
  color: #111111;
  text-decoration: none;
}

.home-newsletter {
  display: flex;
}

.home-newsletter input,
.home-newsletter button {
  background: transparent;
  border: 1px solid rgba(240, 240, 237, 0.7);
  color: var(--tm-paper);
  font: inherit;
  height: 40px;
}

.home-newsletter input {
  border-right: 0;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.home-newsletter input::placeholder {
  color: #adadaa;
}

.home-newsletter button {
  cursor: pointer;
  font-family: var(--tm-display);
  font-weight: 800;
  padding: 0 14px;
}

.home-newsletter button:hover {
  background: var(--tm-paper);
  color: #111111;
}

.home-newsletter__note {
  color: #a5a5a1 !important;
  font-size: 11px !important;
  margin-top: 9px !important;
}

@media (max-width: 740px) {
  .site-header {
    padding: 14px 16px;
  }

  .wordmark,
  .wordmark img {
    width: 82px;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav a {
    font-size: 9px;
  }

  .home-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-intro {
    padding-bottom: 56px;
    padding-top: 60px;
  }

  .home-work,
  .home-bottom-work {
    padding: 62px 0 70px;
  }

  .home-section-title {
    margin-bottom: 38px;
  }

  .home-showcase-grid,
  .home-portfolio-grid,
  .home-contact__grid {
    grid-template-columns: 1fr;
  }

  .home-portfolio-card--tall {
    grid-row: auto;
  }

  .home-portfolio-card--tall img {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .home-portfolio-card span {
    font-size: 31px;
  }

  .home-showcase-card--large {
    grid-row: auto;
  }

  .home-showcase-card::before,
  .home-showcase-card--large::before {
    height: 62vw;
    max-height: 560px;
    min-height: 300px;
  }

  .home-contact {
    padding-top: 56px;
  }

  .home-contact__bottom {
    gap: 8px;
    margin-top: 44px;
  }
}

/* Explicit type scale shared with the project pages. */
.main-nav a {
  font-family: var(--tm-medium);
  font-size: 18px;
  font-weight: 500;
}

.home-intro h1,
.home-section-title,
.home-contact-title {
  font-family: var(--tm-display);
  font-size: 50px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: .96;
  text-transform: uppercase;
}

.home-intro p {
  font-size: 24px;
  line-height: 1.36;
}

.home-pill,
.home-all-projects {
  font-family: var(--tm-display-medium);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.home-portfolio-card span,
.home-showcase-card__title {
  font-family: var(--tm-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: .98;
  text-transform: uppercase;
}

.home-portfolio-card small,
.home-showcase-card__caption {
  font-family: var(--tm-sans);
  font-size: 17px;
  line-height: 1.35;
}

.home-contact__label {
  font-family: var(--tm-medium);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.home-contact p,
.home-contact a,
.home-contact__bottom,
.home-contact__bottom a,
.home-newsletter__note {
  font-family: var(--tm-sans);
  font-size: 17px !important;
  font-weight: 400;
  line-height: 1.4;
}

.home-contact .home-contact__mail {
  font-family: var(--tm-medium) !important;
  font-size: 24px !important;
  font-weight: 500 !important;
}

.home-newsletter input,
.home-newsletter button {
  font-size: 17px;
}

.home-newsletter button {
  font-family: var(--tm-display-medium);
  font-size: 21px;
  font-weight: 500;
}

@media (max-width: 740px) {
  .main-nav a { font-size: 15px; }
  .home-intro h1, .home-section-title, .home-contact-title { font-size: 42px; }
  .home-intro p { font-size: 20px; }
  .home-portfolio-card span, .home-showcase-card__title { font-size: 30px; }
}

/* Final home refinements from the supplied visual references. */
.home-intro p {
  font-size: 25px;
}

.home-work__eyebrow {
  font-family: var(--tm-medium);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.home-reel__frame {
  aspect-ratio: auto;
  height: 700px;
}

.home-reel__frame img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.home-portfolio-card {
  overflow: hidden;
}

.home-portfolio-card img {
  transform: scale(1.025);
  transform-origin: center center;
  transition: filter 260ms ease, transform 320ms ease;
}

.home-portfolio-card:hover img,
.home-portfolio-card:focus-visible img {
  filter: brightness(.68) saturate(.9);
  transform: scale(1.045);
}

.home-portfolio-card small,
.home-showcase-card__caption {
  font-family: var(--tm-regular);
  font-size: 23px;
  line-height: 1.3;
  margin-top: 7px;
}

.home-showcase-card::before {
  transition: filter 260ms ease, transform 320ms ease;
}

.home-showcase-card:hover::before,
.home-showcase-card:focus-visible::before {
  filter: brightness(.68) saturate(.9);
  transform: scale(1.012);
}

.home-showcase-card {
  overflow: hidden;
}

.home-showcase-card__title,
.home-showcase-card__caption {
  position: relative;
  z-index: 1;
}

@media (max-width: 740px) {
  .home-intro p { font-size: 21px; }
  .home-work__eyebrow { font-size: 15px; }
  .home-reel__frame { height: 58vw; min-height: 320px; }
  .home-portfolio-card small, .home-showcase-card__caption { font-size: 19px; }
}

/* 2026-07-17 homepage polish */
body[data-page="portfolio"] .main-nav a {
  font-size: 22px;
}

.home-intro p {
  font-family: var(--tm-display);
  font-size: 50px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: .96;
  max-width: 1160px;
  text-transform: lowercase;
}

.home-showcase-card,
.home-showcase-card--large {
  display: block;
  overflow: visible;
}

.home-showcase-card::before,
.home-showcase-card--large::before {
  display: none;
}

.home-showcase-card__image,
.home-showcase-card--large .home-showcase-card__image {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  transition: filter 260ms ease, transform 320ms ease;
  width: 100%;
}

.home-showcase-card:hover .home-showcase-card__image,
.home-showcase-card:focus-visible .home-showcase-card__image {
  filter: brightness(.68) saturate(.9);
  transform: scale(1.045);
}

@media (max-width: 740px) {
  body[data-page="portfolio"] .main-nav a { font-size: 17px; }
  .home-intro p { font-size: 40px; }
}

/* Final editorial proportions: one typographic opening, then a consistent work grid. */
.site-header {
  min-height: 58px;
  padding: 15px max(24px, calc((100vw - 1120px) / 2));
}

.wordmark,
.wordmark img {
  width: 86px;
}

.main-nav {
  gap: 22px;
}

.main-nav a {
  font-family: var(--tm-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.home-inner {
  max-width: 1120px;
  padding-left: 24px;
  padding-right: 24px;
}

.home-intro {
  align-items: center;
  display: flex;
  min-height: 620px;
  padding: 88px 0 96px;
}

.home-intro .home-inner {
  width: 100%;
}

.home-intro h1,
.home-section-title,
.home-contact-title {
  font-stretch: normal;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.91;
}

.home-intro h1 {
  font-size: clamp(58px, 7.25vw, 106px);
  max-width: 780px;
}

.home-intro p {
  color: #c8c8c4;
  font-size: clamp(16px, 1.35vw, 20px);
  letter-spacing: -0.025em;
  line-height: 1.38;
  margin: 34px 0 30px;
  max-width: 585px;
}

.home-pill,
.home-all-projects {
  font-family: var(--tm-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 12px 18px;
}

.home-work {
  padding: 112px 0 124px;
}

.home-work__eyebrow,
.home-contact__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.home-section-title {
  font-size: clamp(54px, 6vw, 82px);
  margin-bottom: 62px;
}

.home-portfolio-grid,
.home-showcase-grid {
  gap: 24px;
}

.home-portfolio-grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
}

.home-portfolio-card--tall img {
  height: 738px;
}

.home-portfolio-card span,
.home-showcase-card__title {
  font-family: var(--tm-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-transform: none;
}

.home-portfolio-card span {
  font-size: clamp(29px, 3.2vw, 46px);
  margin-top: 14px;
}

.home-portfolio-card small,
.home-showcase-card__caption {
  font-size: 13px;
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.home-all-projects {
  margin-top: 64px;
}

.home-bottom-work {
  background: #29292b;
  padding: 112px 0 124px;
}

.home-showcase-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.home-showcase-card::before {
  height: 378px;
}

.home-showcase-card--large::before {
  height: 756px;
}

.home-showcase-card__title {
  font-size: clamp(31px, 3.4vw, 48px);
  margin-top: 15px;
}

.home-contact {
  background: #111111;
  padding: 92px 0 34px;
}

.home-contact__grid {
  gap: 32px;
  grid-template-columns: minmax(255px, 1.25fr) minmax(150px, 0.62fr) minmax(104px, 0.38fr) minmax(230px, 0.78fr);
}

.home-contact-title {
  font-size: clamp(55px, 5.8vw, 76px);
}

.home-contact__mail {
  font-family: var(--tm-display);
  font-size: clamp(27px, 2.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-contact p,
.home-contact a {
  font-size: 13px;
}

.home-socials a {
  font-family: var(--tm-sans);
  font-size: 11px;
  height: 34px;
  width: 34px;
}

.home-newsletter input,
.home-newsletter button {
  height: 42px;
}

.home-newsletter button {
  font-family: var(--tm-sans);
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 740px) {
  .site-header {
    padding: 14px 16px;
  }

  .wordmark,
  .wordmark img {
    width: 76px;
  }

  .main-nav {
    gap: 13px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .home-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-intro {
    min-height: 520px;
    padding: 68px 0;
  }

  .home-intro h1 {
    font-size: clamp(53px, 16vw, 78px);
  }

  .home-intro p {
    font-size: 16px;
    margin-top: 27px;
  }

  .home-work,
  .home-bottom-work {
    padding: 72px 0 82px;
  }

  .home-section-title {
    font-size: 54px;
    margin-bottom: 42px;
  }

  .home-portfolio-grid,
  .home-showcase-grid,
  .home-contact__grid {
    gap: 34px;
  }

  .home-contact {
    padding: 72px 0 30px;
  }
}

/* White homepage and the final asymmetric portfolio rhythm. */
body[data-page="portfolio"],
.home-landing {
  background: var(--tm-paper);
  color: var(--tm-black);
}

.site-header {
  background: #ffffff;
  min-height: 78px;
  padding: 20px max(28px, calc((100vw - 1180px) / 2));
}

.wordmark,
.wordmark img {
  width: 92px;
}

.main-nav {
  gap: 30px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.home-inner {
  max-width: 1180px;
  padding-left: 28px;
  padding-right: 28px;
}

.home-intro {
  background: #ffffff;
  min-height: 500px;
  padding: 116px 0 76px;
}

.home-intro h1,
.home-section-title,
.home-contact-title {
  color: var(--tm-black);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-transform: none;
}

.home-intro h1 {
  font-size: clamp(64px, 7.5vw, 118px);
  max-width: 820px;
}

.home-intro p {
  color: #353535;
  font-family: var(--tm-sans);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.35;
  margin: 32px 0 34px;
  max-width: 635px;
}

.home-pill {
  background: var(--tm-black);
  border-color: var(--tm-black);
  color: #ffffff;
  font-family: var(--tm-sans);
  font-size: 16px;
  font-weight: 600;
  padding: 17px 28px;
}

.home-pill:hover {
  background: transparent;
  color: var(--tm-black);
}

.home-reel {
  background: #ffffff;
  padding: 0 0 112px;
}

.home-reel__frame {
  aspect-ratio: 16 / 9;
  background: #dededb;
  border-radius: 12px;
  overflow: hidden;
}

.home-reel__frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 170ms ease;
  width: 100%;
}

.home-reel__frame img.is-changing {
  opacity: 0;
}

.home-work {
  background: var(--tm-paper);
  padding: 112px 0 126px;
}

.home-work__eyebrow {
  font-family: var(--tm-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.home-section-title {
  font-size: clamp(60px, 6.5vw, 94px);
  margin-bottom: 68px;
}

.home-portfolio-grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-work-column {
  display: grid;
  gap: 46px;
}

.home-portfolio-card {
  overflow: visible;
}

.home-portfolio-card img,
.home-portfolio-card--tall img {
  aspect-ratio: 16 / 11;
  height: auto;
}

.home-portfolio-card--large img {
  aspect-ratio: 4 / 3;
}

.home-portfolio-card--small img {
  aspect-ratio: 16 / 8;
}

.home-portfolio-card span {
  font-size: clamp(31px, 3vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: .96;
  margin-top: 15px;
  text-transform: none;
}

.home-portfolio-card small {
  font-family: var(--tm-sans);
  font-size: 14px;
  line-height: 1.35;
}

.home-all-projects {
  background: transparent;
  border-color: var(--tm-black);
  font-size: 15px;
  margin-top: 72px;
  padding: 15px 23px;
}

.home-bottom-work {
  background: #29292b;
  padding: 112px 0 124px;
}

.home-bottom-work .home-section-title {
  color: var(--tm-paper);
}

.home-showcase-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-showcase-card,
.home-showcase-card--large {
  grid-row: auto;
}

.home-showcase-card::before,
.home-showcase-card--large::before {
  aspect-ratio: 1 / 1;
  height: auto;
}

.home-showcase-card__title {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: .95;
  text-transform: none;
}

.home-contact-title {
  color: var(--tm-paper);
  text-transform: none;
}

@media (max-width: 740px) {
  .site-header {
    min-height: 64px;
    padding: 16px;
  }

  .wordmark,
  .wordmark img {
    width: 80px;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .home-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-intro {
    min-height: 440px;
    padding: 84px 0 62px;
  }

  .home-intro h1 {
    font-size: clamp(55px, 15vw, 76px);
  }

  .home-intro p {
    font-size: 17px;
  }

  .home-pill {
    font-size: 15px;
    padding: 15px 22px;
  }

  .home-reel {
    padding-bottom: 72px;
  }

  .home-work,
  .home-bottom-work {
    padding: 78px 0 86px;
  }

  .home-section-title {
    font-size: 57px;
    margin-bottom: 44px;
  }

  .home-portfolio-grid,
  .home-showcase-grid {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  .home-work-column {
    gap: 38px;
  }

  .home-portfolio-card--large img,
  .home-portfolio-card--small img {
    aspect-ratio: 16 / 10;
  }
}

/* Final type scale — intentionally last so it is not diluted by legacy homepage rules. */
body[data-page="portfolio"] {
  background: var(--tm-paper);
  color: var(--tm-black);
}

body[data-page="portfolio"] .site-header {
  background: #fff;
  min-height: 82px;
  padding: 20px max(28px, calc((100vw - 1240px) / 2));
}

body[data-page="portfolio"] .wordmark,
body[data-page="portfolio"] .wordmark img { width: 92px; }
body[data-page="portfolio"] .main-nav { gap: 30px; }
body[data-page="portfolio"] .main-nav a {
  color: var(--tm-black);
  font-family: var(--tm-medium);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.home-intro h1,
.home-section-title,
.home-contact-title {
  font-family: var(--tm-display);
  font-size: 50px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: .96;
  text-transform: uppercase;
}

.home-intro p { font-family: var(--tm-sans); font-size: 24px; line-height: 1.36; }
.home-pill,
.home-all-projects {
  font-family: var(--tm-display-medium);
  font-size: 21px;
  font-weight: 500;
  line-height: 1;
}

.home-portfolio-card span,
.home-showcase-card__title {
  font-family: var(--tm-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: .98;
  text-transform: uppercase;
}

.home-portfolio-card small,
.home-showcase-card__caption {
  font-family: var(--tm-sans);
  font-size: 17px;
  line-height: 1.35;
}

.home-contact__label {
  font-family: var(--tm-medium);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.home-contact p,
.home-contact a,
.home-contact__bottom,
.home-contact__bottom a,
.home-newsletter__note {
  font-family: var(--tm-sans);
  font-size: 17px !important;
  font-weight: 400;
  line-height: 1.4;
}

.home-contact__mail {
  font-family: var(--tm-medium) !important;
  font-size: 24px !important;
  font-weight: 500 !important;
}

.home-newsletter input { font-family: var(--tm-sans); font-size: 17px; }
.home-newsletter button { font-family: var(--tm-display-medium); font-size: 21px; font-weight: 500; }

@media (max-width: 740px) {
  body[data-page="portfolio"] .site-header { min-height: 68px; padding: 16px; }
  body[data-page="portfolio"] .main-nav { gap: 16px; }
  body[data-page="portfolio"] .main-nav a { font-size: 15px; }
  .home-intro h1, .home-section-title, .home-contact-title { font-size: 42px; }
  .home-intro p { font-size: 20px; }
  .home-portfolio-card span, .home-showcase-card__title { font-size: 30px; }
}

/* Final cascade: reference-matched home typography, crop and hover behaviour. */
.home-intro p {
  font-size: 25px;
}

.home-work__eyebrow {
  font-family: var(--tm-medium);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.home-reel__frame {
  aspect-ratio: auto;
  height: 700px;
}

.home-reel__frame img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.home-portfolio-card,
.home-showcase-card {
  overflow: hidden;
}

.home-portfolio-card img {
  transform-origin: center center;
  transition: filter 260ms ease, transform 320ms ease;
}

.home-portfolio-card:hover img,
.home-portfolio-card:focus-visible img {
  filter: brightness(.68) saturate(.9);
  transform: scale(1.018);
}

.home-portfolio-card small,
.home-showcase-card__caption {
  font-family: var(--tm-regular);
  font-size: 23px;
  line-height: 1.3;
  margin-top: 7px;
}

.home-showcase-card::before {
  transition: filter 260ms ease, transform 320ms ease;
}

.home-showcase-card:hover::before,
.home-showcase-card:focus-visible::before {
  filter: brightness(.68) saturate(.9);
  transform: scale(1.012);
}

.home-showcase-card__title,
.home-showcase-card__caption {
  position: relative;
  z-index: 1;
}

@media (max-width: 740px) {
  .home-intro p { font-size: 21px; }
  .home-work__eyebrow { font-size: 15px; }
  .home-reel__frame { height: 58vw; min-height: 320px; }
  .home-portfolio-card small, .home-showcase-card__caption { font-size: 19px; }
}

/* Current homepage decisions — keep this block last in the cascade. */
body[data-page="portfolio"],
body[data-page="portfolio"] button,
body[data-page="portfolio"] input,
body[data-page="portfolio"] textarea {
  font-feature-settings: "lnum" 1, "onum" 0, "pnum" 1;
  font-variant-numeric: lining-nums proportional-nums;
}

body[data-page="portfolio"] .main-nav a {
  font-family: var(--tm-medium);
  font-size: 18px;
  font-weight: 500;
}

.home-intro,
.home-reel {
  background: #000;
}

.home-intro,
.home-intro h1,
.home-intro p {
  color: #fff;
}

.home-intro p {
  font-family: var(--tm-display);
  font-size: 50px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: .96;
  max-width: 1160px;
  text-transform: lowercase;
}

.home-intro .home-pill {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.home-intro .home-pill:hover,
.home-intro .home-pill:focus-visible {
  background: #fff;
  color: #000;
}

.home-reel__frame {
  background: var(--reel-tone, #1d1d1f);
  position: relative;
}

.home-reel__frame img,
.home-reel__frame img.is-changing {
  object-fit: cover;
  object-position: center;
  opacity: 1 !important;
  transition: none !important;
  will-change: transform;
}

.home-reel__counter {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, .72);
  border: 0;
  border-radius: 999px;
  bottom: 16px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: var(--tm-medium);
  font-feature-settings: "lnum" 1, "onum" 0, "pnum" 1;
  font-size: 17px;
  font-variant-numeric: lining-nums proportional-nums;
  gap: 10px;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 10px 15px;
  position: absolute;
  z-index: 2;
}

.home-reel__counter [data-reel-number] {
  flex: 0 0 auto;
}

.home-reel__counter [data-reel-title] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-work {
  background: #1d1d1f;
  color: #f0f0ed;
}

.home-work .home-section-title {
  color: #f0f0ed;
}

.home-work .home-work__eyebrow,
.home-work .home-portfolio-card small {
  color: #b6b6b1;
}

.home-work .home-portfolio-card,
.home-work .home-portfolio-card span {
  color: #f0f0ed;
}

.home-work .home-all-projects {
  border-color: #f0f0ed;
  color: #f0f0ed;
}

.home-work .home-all-projects:hover,
.home-work .home-all-projects:focus-visible {
  background: #f0f0ed;
  color: #171717;
}

.home-bottom-work {
  background: #343437;
}

.home-showcase-card,
.home-showcase-card--large {
  display: block;
  overflow: visible;
}

.home-showcase-card::before,
.home-showcase-card--large::before {
  display: none;
}

.home-showcase-card__image,
.home-showcase-card--large .home-showcase-card__image {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: filter 260ms ease, transform 320ms ease;
  width: 100%;
}

.home-showcase-card:hover .home-showcase-card__image,
.home-showcase-card:focus-visible .home-showcase-card__image {
  filter: brightness(.68) saturate(.9);
  transform: scale(1.012);
}

@media (max-width: 740px) {
  body[data-page="portfolio"] .main-nav a { font-size: 18px; }
  .home-intro p { font-size: 40px; }
}
