/* ====================================================================
   HOME, SERVICES AND CASE PAGE ADDITIONS
   ====================================================================

   FONT GUIDE
   Inter: regular text and existing Inter headings.
   Ballet: every cursive script accent.
   Archivo Black: kept on its existing headings.
   Navigation: original fonts and styling are preserved.


   01. GLOBAL AND NAVIGATION — hidden elements, skip link and
       language menu
   02. HOME HERO — service links and action buttons
   03. HOME SERVICES — preview, Archivo Black heading and Inter copy
   04. SERVICES PAGE — Ballet title and service detail rows
   05. CASE PAGES — static layout, actions and campaign deck links
   06. BAG DIALOG — backdrop, scrolling and portfolio link
   07. RESPONSIVE — tablet, 900px and below
   08. RESPONSIVE — menu and content stacks, 700px and below
   09. RESPONSIVE — home contact heading, 600px and below
   ==================================================================== */

/* ====================================================================
   01. GLOBAL AND NAVIGATION — hidden elements, skip link and language menu
   ==================================================================== */

[hidden] {
  display: none !important;
}

.room-skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 9000;
  padding: 12px;
  background: #fff;
  color: #000;
}

.room-skip-link:focus {
  top: 10px;
}

.dropdown-menu {
  padding-right: 120px;
}

.menu-top .brand-small {
  color: inherit;
  text-decoration: none;
}

.language-switch {
  position: absolute;
  top: 14px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #777;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.language-switch a[aria-current],
.language-switch a:hover {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ====================================================================
   02. HOME HERO — service links and action buttons
   ==================================================================== */

.hero-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-offer-actions .project-work-link {
  margin-top: 0;
  padding-inline: 18px;
  font-size: 11px;
}

.hero-offer-actions .hero-secondary-link {
  background: transparent;
  color: #000;
}

.hero-offer-actions .hero-secondary-link:hover {
  background: var(--room-pink);
}

/* ====================================================================
   03. HOME SERVICES — preview, Archivo Black heading and Inter copy
   ==================================================================== */

/* The arrow's transparent canvas should not create horizontal scrolling. */
.page-index main {
  overflow-x: clip;
}

.home-services {
  /* QUICK EDITS: pink box, rounded corners and arrow dimensions. */
  --home-services-radius: 26px;
  --home-services-arrow-width: 430px;

  position: relative;
  width: min(calc(100% - 80px), 1080px);
  margin-inline: auto;
  padding: 55px 32px 55px;
  border-radius: var(--home-services-radius);
  background-color: #ffe3f1;
  overflow: visible;
}

.home-services-title {
  /* Keep the title clear of the linked arrow at the upper right. */
  max-width: calc(100% - 135px);
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3rem, 6vw, 5rem); /*3.8, 7, 6*/
  line-height: 0.76;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.home-services-intro {
  max-width: calc(100% - 145px);
  margin-top: 18px;
  font-family: "Inter", sans-serif;
  font-size: clamp(20px, 2vw, 27px);
  font-style: italic;
  line-height: 1.2;
}

/* HOME: transparent halftone arrow links directly to the contact page.
   Move top/right to change its position without shifting the text. */
.home-services-contact {
  position: absolute;
  top: -75px;
  right: -160px;
  display: block;
  width: var(--home-services-arrow-width);
  border-radius: 8px;
}

.home-services-contact img {
  width: 100%;
  height: auto;
}

.home-services-contact:hover {
  opacity: 0.75;
}

.service-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 35px;
}

.service-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 18px;
  border-top: 1px solid #000;
}

.service-preview h3 {
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.service-preview p {
  margin-bottom: 18px;
  font-size: 12px;
  line-height: 1.6;
}

.service-more {
  margin-top: auto;
  padding-block: 6px;
  font-size: 11px;
  font-weight: 600;
  text-underline-offset: 5px;
}

/* ====================================================================
   04. SERVICES PAGE — Ballet title and service detail rows
   ==================================================================== */

.services-page {
  width: min(calc(100% - 48px), 1040px);
  margin-inline: auto;
  padding-block: 65px 80px;
}

.services-intro {
  margin-bottom: 60px;
}

.services-title {
  margin-block: 24px 30px;
  font-family: "Ballet", cursive;
  font-size: clamp(4.7rem, 9vw, 7.2rem);
  font-weight: 400;
  line-height: 1.2;
}

.services-intro > p:last-child {
  font-family: "Inter", sans-serif;
  font-size: clamp(22px, 2.8vw, 32px);
  font-style: italic;
  line-height: 1.2;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(30px, 7vw, 80px);
  padding-block: 40px 60px;
  border-top: 1px solid #000;
  scroll-margin-top: 100px;
}

.service-detail h2 {
  margin-bottom: 20px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.service-detail p,
.service-detail li {
  font-size: 13px;
  line-height: 1.65;
}

.service-detail h3 {
  margin-block: 24px 10px;
  font-size: 12px;
  font-weight: 700;
}

.service-detail ul {
  padding-left: 18px;
}

.service-detail .project-work-link {
  margin-top: 24px;
}

.service-example-image {
  display: block;
  padding: 18px;
  background: #f4edf1;
}

.service-example-image img {
  width: 100%;
  max-height: 470px;
  object-fit: contain;
}

.services-contact {
  padding-top: 28px;
  border-top: 1px solid #000;
}

.services-contact p {
  max-width: 60ch;
  font-size: 13px;
  line-height: 1.6;
}

/* ====================================================================
   05. CASE PAGES — static layout, actions and campaign deck links
   ==================================================================== */

a.projekti-tile,
a.projekti-close,
a.projekti-next-item,
a.projekti-deck-trigger {
  text-decoration: none;
}

.projekti-more-actions:has(> [hidden] + [hidden]) {
  display: none;
}

.room-static-case {
  display: block;
  max-height: none;
  margin: 32px auto 48px;
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

.room-static-case .projekti-card-top {
  position: static;
}

.room-case-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 28px;
}

.room-copy-status {
  margin-bottom: 20px;
  font-size: 12px;
}

.room-copy-status:empty,
.projekti-case-notes:empty,
.projekti-credits:empty {
  display: none;
}

.room-case-contact {
  margin-top: 30px;
}

.room-case-deck {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--projekti-line);
}

.room-case-deck .projekti-deck-image-frame {
  grid-column: 2;
}

.room-slide-links {
  margin-top: 20px;
  font-size: 11px;
}

.room-slide-links summary {
  cursor: pointer;
}

.room-slide-links ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
  padding-left: 22px;
}

.room-slide-links a {
  text-underline-offset: 3px;
}

/* ====================================================================
   06. BAG DIALOG — backdrop, scrolling and portfolio link
   ==================================================================== */

.room-bag-dialog {
  max-height: calc(100dvh - 80px);
  margin: auto;
  overflow: auto;
  color: #000;
}

.room-bag-dialog::backdrop {
  background: rgb(255 255 255 / 50%);
  backdrop-filter: blur(7px);
}

.bag-work-link {
  display: inline-block;
  margin-top: 28px;
  padding-block: 6px;
  font-size: 12px;
  text-underline-offset: 5px;
}

/* ====================================================================
   07. RESPONSIVE — tablet, 900px and below
   ==================================================================== */

@media (max-width: 900px) {
  .hero-offer-actions {
    justify-content: center;
  }

  .home-services {
    --home-services-arrow-width: 360px;
  }

  .home-services-title {
    font-size: clamp(3.2rem, 7vw, 4.7rem);
  }

  .home-services-contact {
    top: -60px;
    right: -115px;
  }

  .service-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

/* ====================================================================
   08. RESPONSIVE — menu and content stacks, 700px and below
   ==================================================================== */

@media (max-width: 700px) {
  .dropdown-menu {
    padding-right: 14px;
  }

  .language-switch {
    top: 3px;
    right: 14px;
    gap: 10px;
  }

  .menu-top {
    padding-right: 78px;
  }

  .home-services {
    --home-services-arrow-width: 210px;
    --home-services-radius: 22px;

    width: calc(100% - 40px);
    padding: 40px 24px 45px;
  }

  .home-services-title {
    max-width: calc(100% - 80px);
    font-size: clamp(2.5rem, 9vw, 3.8rem);
    line-height: 0.95;
  }

  .home-services-intro {
    max-width: calc(100% - 40px);
    font-size: 19px;
    line-height: 1.35;
  }

  .home-services-contact {
    top: -35px;
    right: -60px;
  }

  .service-preview-grid,
  .service-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-preview-grid {
    gap: 28px;
  }

  .services-page {
    width: calc(100% - 40px);
    padding-block: 38px 55px;
  }

  .services-intro {
    margin-bottom: 38px;
  }

  .service-detail {
    gap: 28px;
    padding-block: 30px 40px;
  }

  .service-example-image {
    width: min(100%, 420px);
  }

  .room-static-case {
    margin-top: 20px;
  }
}

/* The replacement home heading has longer words than "work with me". */

/* ====================================================================
   09. RESPONSIVE — home contact heading, 600px and below
   ==================================================================== */

@media (max-width: 600px) {
  .page-index .contact-heading {
    font-size: clamp(54px, 15vw, 88px);
    letter-spacing: -0.055em;
    line-height: 0.9;
  }
}
