/* Services and catalog share the environment's light, material and rhythm.
   The existing portal actions, catalog drawer and previews retain ownership. */
.services,
.catalog {
  background: transparent;
  border: 0;
  padding-block: clamp(96px, 12vw, 180px);
}
.services .section-heading,
.catalog .section-heading { margin-bottom: clamp(48px, 6vw, 90px); gap: 48px; }
.services .section-heading h2,
.catalog .section-heading h2 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 5.8vw, 5.5rem);
  line-height: 1.04;
  text-wrap: balance;
}
.services .section-heading > p,
.catalog .section-heading > p { max-width: 32ch; line-height: 1.7; }
.services .eyebrow,
.catalog .eyebrow { color: var(--muted); font-weight: 400; letter-spacing: .11em; }

/* A row of architectural objects, without an enclosing card surface. */
.service-grid { gap: clamp(22px, 3vw, 44px); perspective: 1400px; align-items: stretch; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  translate: 0 var(--service-entry-y, 0px);
  rotate: x var(--service-entry-angle, 0deg);
  scale: var(--service-entry-scale, 1);
  transform-origin: 50% 90%;
  transition: transform .5s cubic-bezier(.22,.7,.2,1), border-color .4s;
}
.service-card:hover { background: transparent; border-color: var(--accent); }
.service-card:focus-visible { outline-offset: 9px; border-color: var(--accent); }
.service-card .card-meta {
  padding: 20px 0 12px;
  gap: 8px;
  min-height: 61px;
  font-size: .6875rem;
  letter-spacing: .075em;
  font-weight: 500;
  color: var(--muted);
}
.service-card .card-meta > span:last-child { color: var(--accent); font-size: 1.35rem; }
.service-card .portal-scene {
  flex: 0 0 auto;
  height: 300px;
  margin: 0 -8px;
  background: transparent;
  border-radius: 0;
  perspective: 900px;
  overflow: hidden;
}
.service-card .portal-scene::before {
  content: '';
  position: absolute;
  width: 78%;
  height: 44px;
  left: 11%;
  bottom: 31px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 50%;
  transform: rotateX(60deg);
  opacity: .65;
}
.service-card .portal-frame {
  top: 37px;
  height: 210px;
  width: 136px;
  border-width: 9px;
  box-shadow: 12px 20px 30px color-mix(in srgb, var(--bg) 70%, transparent),
    1px 0 0 color-mix(in srgb, var(--ink) 35%, transparent);
  transition: transform .75s cubic-bezier(.2,.7,.2,1), box-shadow .75s;
}
.service-card .portal-core { background-color: var(--portal); }
.service-card .portal-two .portal-frame { width: 148px; height: 190px; top: 47px; }
.service-card[data-service="shop"] .portal-frame { width: 154px; height: 180px; top: 53px; transform: translateX(-50%) rotateY(-19deg); }
.service-card[data-service="shop"] .portal-core::after { inset: 17px 9px; border-width: 1px 1px 4px; }
.service-card .portal-three .portal-frame { width: 174px; height: 174px; top: 54px; }
.service-card .portal-floor { bottom: 43px; height: 14px; width: 140px; opacity: .11; filter: blur(10px); }
.service-card .portal-hint { bottom: 7px; letter-spacing: .08em; color: var(--muted); font-size: .625rem; }
.service-card:is(:hover,:focus-visible) .portal-frame {
  transform: translateX(-50%) rotateY(0deg) scale(1.06);
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 17%, transparent),
    8px 22px 32px color-mix(in srgb, var(--bg) 75%, transparent);
}
.service-card .service-info { padding: 24px 0 0; flex: 1; }
.service-card .service-title { min-height: 2.6em; line-height: 1.3; font-size: clamp(1.1rem, 1.45vw, 1.4rem); letter-spacing: -.035em; }
.service-card .service-subtitle { min-height: 3.3em; line-height: 1.65; font-size: .8125rem; margin-top: 9px; max-width: 27ch; }
.service-card .service-price { margin-top: 28px; padding-top: 22px; min-height: 76px; font-size: clamp(1.65rem, 2.55vw, 2.7rem); line-height: 1.1; }
.service-card .service-price small { font-size: .875rem; color: var(--muted); }
.service-card .service-price.individual { font-size: clamp(1.05rem, 1.35vw, 1.3rem); gap: 12px; align-items: baseline; flex-wrap: wrap; padding-top: 27px; }
.services .section-tail,
.catalog .section-tail { margin-top: 22px; padding-top: 22px; line-height: 1.65; }

/* The original five catalog tiles read as a collection of material studies. */
.catalog { perspective: 1600px; }
.catalog-tiles { gap: 24px; }
.catalog-tile,
.catalog-tile:nth-child(n+4) {
  min-height: 354px;
  padding: 25px 28px 27px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--surface) 66%, transparent);
  border-color: var(--line);
  box-shadow: 0 14px 26px -24px color-mix(in srgb, var(--ink) 25%, transparent);
  transition: background-color .6s, border-color .4s, box-shadow .4s, transform .5s cubic-bezier(.22,.7,.2,1);
}
.catalog-tile::after {
  content: '';
  position: absolute;
  inset: auto 28px 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.22,.7,.2,1);
}
.catalog-tile:is(:hover,:focus-visible,[aria-expanded=true]) {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  box-shadow: 0 24px 38px -28px color-mix(in srgb, var(--ink) 22%, transparent);
  transform: translateY(-4px);
}
.catalog-tile:is(:hover,:focus-visible,[aria-expanded=true])::after { transform: scaleX(1); }
.cat-tile-meta { font-size: .6875rem; letter-spacing: .095em; }
.cat-glyph,
.catalog-tile:nth-child(n+4) .cat-glyph { height: 151px; margin: 17px 0 21px; }
.cat-glyph-type { font-size: 6rem; color: var(--ink); justify-content: center; gap: 15px; }
.cat-glyph-type > span { color: var(--accent); font-size: 3.9rem; opacity: .8; }
.cat-glyph-colors i {
  width: 83px;
  height: 83px;
  background: var(--accent);
  border-color: color-mix(in srgb, var(--ink) 13%, transparent);
  box-shadow: inset 1px 2px 1px color-mix(in srgb, var(--ink) 12%, transparent),
    8px 13px 18px color-mix(in srgb, var(--bg) 58%, transparent);
}
.cat-glyph-colors i + i { background: var(--ink); border-color: var(--line); margin-left: -29px; }
.cat-glyph-colors i:last-child { background: color-mix(in srgb, var(--muted) 65%, var(--surface)); border-color: var(--line); }
.cat-glyph-orbit i { width: 110px; height: 110px; border-color: var(--muted); }
.cat-glyph-orbit i:nth-child(2) { border-color: var(--accent); }
.cat-glyph-orbit i:nth-child(3) { width: 18px; height: 18px; box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 15%, transparent); }
.cat-glyph-layers i { width: 110px; height: 90px; border-color: var(--line); box-shadow: 5px 10px 18px color-mix(in srgb, var(--bg) 65%, transparent); }
.cat-glyph-layers i:nth-child(2) { border-color: var(--muted); }
.cat-glyph-layers i:nth-child(3) { background: var(--accent); border-color: var(--accent); }
.cat-glyph-blocks { grid-template-columns: 76px 50px; grid-template-rows: 43px 43px; gap: 10px; }
.cat-glyph-blocks i { border-radius: 2px; border-color: var(--line); box-shadow: 4px 8px 12px color-mix(in srgb, var(--bg) 45%, transparent); }
.cat-glyph-blocks i:nth-child(2) { background: var(--ink); border-color: var(--ink); }
.cat-tile-title { font-size: clamp(1.6rem, 2.15vw, 2rem); font-weight: 500; margin: 0 0 8px; }
.cat-tile-caption { font-size: .875rem; max-width: 38ch; }
.cat-tile-reveal { font-size: .75rem; margin-top: auto; padding-top: 24px; }

/* The drawer is a solid, quiet part of the same environment, not glass. */
.catalog-panel { border-radius: 4px; padding-inline: 32px; box-shadow: -22px 10px 60px color-mix(in srgb, var(--bg) 80%, transparent); }
.catalog-panel::before { display: none; }
.cat-panel-top { padding-block: 17px 13px; }
.cat-panel-top .eyebrow { font-size: .6875rem; font-weight: 400; }
.cat-panel-heading { padding-block: 34px 24px; }
.cat-category-nav { gap: 4px; }
.cat-category-nav button { border-radius: 3px; font-size: .8125rem; padding-inline: 11px; }
.cat-category-nav [aria-pressed=true] { background: var(--accent); color: var(--on-accent); }
.cat-toolbar { padding-block: 24px; }
.cat-toolbar label,
.cat-toolbar #catalog-count { font-size: .75rem; }
.cat-toolbar input { border-radius: 3px; }
.cat-content { gap: 18px; }
.cat-item { border-radius: 3px; }
.cat-item-info { padding: 19px; }
.cat-item-info p { font-size: .8125rem; }
.cat-item h3 { font-size: 1rem; }
.cat-icon-button { background: transparent; }

@media (max-width: 1100px) {
  .service-grid { gap: 46px 30px; }
  .service-card .portal-scene { height: 290px; }
  .service-card .service-title { min-height: 0; font-size: 1.35rem; }
  .service-card .service-subtitle { min-height: 3.3em; }
  .service-card .service-price { font-size: 2.35rem; }
  .service-card .service-price.individual { font-size: 1.3rem; }
  .catalog-tile,
  .catalog-tile:nth-child(n+4) { padding-inline: 22px; }
  .catalog-panel { padding-inline: 24px; }
}
@media (max-width: 760px) {
  .services,
  .catalog { padding-block: 85px; }
  .services .section-heading,
  .catalog .section-heading { margin-bottom: 44px; }
  .services .section-heading h2,
  .catalog .section-heading h2 { font-size: clamp(2.5rem, 9.5vw, 4rem); max-width: 15ch; }
  .service-grid { gap: 29px; perspective: 1100px; }
  .service-card { display: grid; grid-template-columns: 42% minmax(0,1fr); min-height: 252px; }
  .service-card .card-meta { min-height: 58px; padding: 17px 0 12px; font-size: .6875rem; }
  .service-card .portal-scene { height: 193px; margin: 0 0 0 -10px; }
  .service-card .portal-frame { width: 87px; height: 137px; top: 22px; border-width: 7px; }
  .service-card .portal-two .portal-frame { width: 99px; height: 122px; top: 29px; }
  .service-card[data-service="shop"] .portal-frame { width: 100px; height: 115px; top: 34px; }
  .service-card .portal-three .portal-frame { width: 110px; height: 110px; top: 35px; }
  .service-card .portal-scene::before { bottom: 22px; height: 29px; }
  .service-card .portal-floor { bottom: 28px; width: 92px; }
  .service-card .portal-hint { font-size: .5rem; bottom: 4px; letter-spacing: .04em; }
  .service-card .service-info { padding: 10px 0 4px 12px; }
  .service-card .service-title { min-height: 0; font-size: 1.125rem; }
  .service-card .service-subtitle { min-height: 0; font-size: .8125rem; margin-top: 10px; }
  .service-card .service-price { min-height: 45px; padding-top: 15px; margin-top: auto; font-size: 2rem; }
  .service-card[data-service="shop"] .service-price { font-size: clamp(1.22rem, 5.2vw, 1.9rem); }
  .service-card .service-price.individual { font-size: 1.05rem; gap: 5px; padding-top: 15px; }
  .services .section-tail { margin-top: 13px; }
  .catalog-tiles { gap: 14px; }
  .catalog-tile,
  .catalog-tile:nth-child(n+4) { min-height: 286px; padding: 18px 16px 21px; }
  .catalog-tile:last-child { min-height: 226px; }
  .cat-tile-meta { font-size: .625rem; letter-spacing: .05em; gap: 6px; }
  .cat-glyph,
  .catalog-tile:nth-child(n+4) .cat-glyph { height: 95px; margin-block: 13px 19px; }
  .cat-glyph-type { font-size: 3.8rem; gap: 7px; }
  .cat-glyph-type > span { font-size: 2.3rem; }
  .cat-glyph-colors i { width: 56px; height: 56px; }
  .cat-glyph-colors i + i { margin-left: -25px; }
  .cat-glyph-orbit i { width: 74px; height: 74px; }
  .cat-glyph-layers i { width: 65px; height: 58px; }
  .cat-tile-title { font-size: 1.5rem; }
  .cat-tile-caption { font-size: .8125rem; }
  .cat-tile-reveal { font-size: .6875rem; padding-top: 17px; }
  .catalog-tile:last-child .cat-glyph { right: 22px; top: 56px; }
  .catalog-tile:last-child .cat-tile-title { margin-top: 40px; }
  .catalog-panel { padding-inline: 19px; max-height: 80dvh; border-radius: 7px; }
  .cat-panel-top { padding-block: 12px 9px; }
  .cat-panel-heading { padding-block: 24px 20px; }
  .cat-category-nav { gap: 3px; }
  .cat-category-nav button { font-size: .75rem; padding-inline: 9px; }
  .cat-content { gap: 13px; }
  .cat-item-info { padding: 16px; }
}
@media (max-width: 360px) {
  .cat-tile-meta { font-size: .5625rem; }
  .catalog-tile,
  .catalog-tile:nth-child(n+4) { padding-inline: 12px; }
  .cat-glyph-type { font-size: 3.4rem; }
  .cat-glyph-type > span { font-size: 2rem; }
  .cat-tile-title { font-size: 1.35rem; }
  .cat-tile-caption { font-size: .75rem; }
  .service-card .service-title { font-size: 1rem; }
  .service-card .service-subtitle { font-size: .75rem; }
}
@media (hover: none) {
  .service-card:hover { transform: none; }
  .catalog-tile:is(:hover,[aria-expanded=true]) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .service-card { translate: none !important; rotate: none !important; scale: none !important; transition: none; }
  .service-card:hover,
  .catalog-tile:is(:hover,:focus-visible,[aria-expanded=true]) { transform: none; }
  .catalog-tile,
  .catalog-tile::after { transition: none; }
}
.motion-paused .service-card { translate: none !important; rotate: none !important; scale: none !important; transition: none; }
.motion-paused .catalog-tile,
.motion-paused .catalog-tile::after { transition: none; }
