/**
 * Appily Fortyseven — Studio Profile (company info)
 * Layout: light masthead + stats belt + dark promise rail (left) + story (right) + collections reel + registry/desk split + bento
 */

.page-company-studio {
  --st-plum: #3d2b3f;
  --st-plum-deep: #2a1830;
  --st-gold: #c9a86c;
  --st-gold-light: #e8d5b0;
  --st-cream: #faf7f4;
  --st-blush: #f3ebe6;
  --st-ink: #1e1518;
  --st-muted: #7a6b72;
  --st-border: rgba(61, 43, 63, 0.1);
  --st-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --st-shadow: 0 20px 50px rgba(42, 24, 48, 0.12);
  background:
    radial-gradient(ellipse 85% 50% at 100% 0%, rgba(201, 168, 108, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 65% 40% at 0% 100%, rgba(232, 180, 188, 0.05) 0%, transparent 50%),
    var(--st-cream);
}

.page-company-studio .page-main {
  padding-top: 0;
}

.a47-studio {
  padding-bottom: 3rem;
}

/* ── Reveal ── */
.a47-studio-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--st-ease) calc(var(--a47-delay, 0) * 0.07s),
              transform 0.65s var(--st-ease) calc(var(--a47-delay, 0) * 0.07s);
}
.a47-studio-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.a47-studio-panel-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-plum);
  background: rgba(61, 43, 63, 0.06);
  border-left: 3px solid var(--st-gold);
}

/* ── Masthead ── */
.a47-studio-mast {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 3rem) 0 clamp(1.25rem, 3vw, 1.75rem);
}

.a47-studio-mast-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff 0%, var(--st-blush) 45%, var(--st-cream) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  pointer-events: none;
}
.a47-studio-mast-bg::after {
  content: "";
  position: absolute;
  top: -25%;
  right: -6%;
  width: min(38vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 108, 0.18) 0%, transparent 65%);
  animation: stOrb 17s ease-in-out infinite alternate;
}
@keyframes stOrb {
  to { transform: translate(-14px, 12px) scale(1.05); }
}

.a47-studio-mast-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: end;
}

.a47-studio-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.a47-studio-crumb a {
  color: var(--st-muted);
  text-decoration: none;
}
.a47-studio-crumb a:hover {
  color: var(--st-plum);
}
.a47-studio-crumb span {
  color: rgba(61, 43, 63, 0.25);
}

.a47-studio-eyebrow {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--st-plum);
  background: rgba(61, 43, 63, 0.06);
  border-left: 3px solid var(--st-gold);
}

.a47-studio-intro h1 {
  margin: 0 0 0.5rem;
  font-family: var(--a47-font-serif);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.05;
  color: var(--st-plum-deep);
}
.a47-studio-intro h1 em {
  font-style: italic;
  color: var(--st-gold);
}

.a47-studio-tagline {
  margin: 0;
  max-width: 48ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--st-muted);
}

.a47-studio-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  padding: 1rem 1.25rem;
  text-align: center;
  background: var(--st-plum-deep);
  color: #fff;
  border-radius: 4px 24px 24px 4px;
  box-shadow: var(--st-shadow);
}
.a47-studio-badge-icon {
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.a47-studio-badge strong {
  font-family: var(--a47-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--st-gold-light);
}
.a47-studio-badge span:last-child {
  margin-top: 0.2rem;
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

/* ── Stats belt ── */
.a47-studio-stats-wrap {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(0.85rem, 2vw, 1.1rem) 0;
  background: #fff;
  border-block: 1px solid var(--st-border);
  box-shadow: 0 8px 32px rgba(42, 24, 48, 0.04);
}

.a47-studio-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 720px;
}

.a47-studio-stat {
  padding: 0.85rem 0.75rem;
  text-align: center;
  background: var(--st-blush);
  border-radius: 4px 16px 16px 4px;
  border-left: 3px solid var(--st-gold);
}
.a47-studio-stat strong {
  display: block;
  font-family: var(--a47-font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--st-plum-deep);
  line-height: 1;
}
.a47-studio-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
}

/* ── Stage ── */
.a47-studio-stage {
  padding-top: 0.25rem;
}

/* Workspace: dark rail + story */
.a47-studio-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin-bottom: 1.75rem;
}

.a47-studio-rail {
  position: sticky;
  top: 5.5rem;
  padding: 1.25rem 1.15rem 1.35rem;
  background: linear-gradient(165deg, var(--st-plum-deep) 0%, var(--st-plum) 100%);
  color: #fff;
  border-radius: 4px 24px 24px 4px;
  box-shadow: var(--st-shadow);
}

.a47-studio-rail-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-gold-light);
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--st-gold);
}

.a47-studio-rail h2 {
  margin: 0 0 0.75rem;
  font-family: var(--a47-font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.a47-studio-rail-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.a47-studio-promises {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.a47-studio-promises li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px 10px 10px 4px;
  animation: stPromiseIn 0.5s var(--st-ease) both;
  animation-delay: calc(var(--promise-i, 0) * 0.08s);
}
@keyframes stPromiseIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
.a47-studio-promise-num {
  flex-shrink: 0;
  font-family: var(--a47-font-serif);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--st-gold);
}

.a47-studio-rail-contact {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.a47-studio-rail-contact-label {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.a47-studio-rail-contact a,
.a47-studio-rail-contact span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--st-gold-light);
  text-decoration: none;
  word-break: break-word;
}
.a47-studio-rail-contact a:hover {
  text-decoration: underline;
}
.a47-studio-rail-cta {
  margin-top: 0.5rem;
  padding: 0.55rem 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--st-plum-deep) !important;
  background: var(--st-gold);
  border-radius: 999px;
  transition: filter 0.2s, transform 0.2s;
}
.a47-studio-rail-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Story panel */
.a47-studio-story {
  padding: 1.25rem 1.2rem;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 24px 4px 4px 24px;
  border-left: 4px solid var(--st-gold);
  box-shadow: var(--st-shadow);
}

.a47-studio-panel-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.a47-studio-panel-head .a47-studio-panel-tag {
  flex-basis: 100%;
}
.a47-studio-panel-head > div {
  flex: 1;
}
.a47-studio-panel-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-family: var(--a47-font-serif);
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--st-plum);
  flex-shrink: 0;
}
.a47-studio-panel-head h2 {
  margin: 0;
  font-family: var(--a47-font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--st-plum-deep);
}

.a47-studio-story p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--st-muted);
}
.a47-studio-story p:last-child {
  margin-bottom: 0;
}
.a47-studio-muted {
  color: var(--st-ink) !important;
}

/* Collections reel */
.a47-studio-collections {
  margin-bottom: 1.75rem;
}
.a47-studio-collections-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.a47-studio-collections-head h2 {
  margin: 0;
  font-family: var(--a47-font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--st-plum-deep);
}
.a47-studio-collections-hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--st-muted);
}

.a47-studio-collections-track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.a47-studio-collection {
  position: relative;
  flex: 0 0 min(170px, 44vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem 0.85rem;
  text-align: center;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 4px 18px 18px 4px;
  box-shadow: 0 6px 20px rgba(42, 24, 48, 0.06);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  animation: stColIn 0.5s var(--st-ease) both;
  animation-delay: calc(var(--col-i, 0) * 0.05s);
}
@keyframes stColIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.a47-studio-collection:hover {
  transform: translateY(-4px);
  box-shadow: var(--st-shadow);
  border-color: rgba(61, 43, 63, 0.16);
}
.a47-studio-collection-num {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--st-muted);
}
.a47-studio-collection-glyph {
  font-size: 1.75rem;
  line-height: 1;
}
.a47-studio-collection strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--st-plum);
  line-height: 1.25;
}
.a47-studio-collection span:last-child {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--st-muted);
}
.a47-studio-collection.tone-rose:hover { border-left-color: #c45c6e; border-left-width: 3px; }
.a47-studio-collection.tone-lily:hover { border-left-color: #9a7ab8; border-left-width: 3px; }
.a47-studio-collection.tone-orchid:hover { border-left-color: #7a5a9a; border-left-width: 3px; }
.a47-studio-collection.tone-sun:hover { border-left-color: #c49a3a; border-left-width: 3px; }
.a47-studio-collection.tone-tulip:hover { border-left-color: #c45c6e; border-left-width: 3px; }
.a47-studio-collection.tone-tropic:hover { border-left-color: #5a9a6e; border-left-width: 3px; }
.a47-studio-collection.tone-bouquet:hover { border-left-color: var(--st-gold); border-left-width: 3px; }

/* Registry + desk */
.a47-studio-registry-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 300px);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  margin-bottom: 1.5rem;
}

.a47-studio-registry {
  padding: 1.25rem 1.2rem;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 24px 4px 4px 24px;
  box-shadow: var(--st-shadow);
}
.a47-studio-registry .a47-studio-panel-head {
  justify-content: space-between;
}
.a47-studio-registry-code {
  flex-shrink: 0;
  padding: 0.3rem 0.6rem;
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--st-muted);
  background: var(--st-blush);
  border-radius: 999px;
  margin-left: auto;
}

.a47-studio-registry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}
.a47-studio-reg-cell {
  padding: 0.65rem 0.75rem;
  background: var(--st-blush);
  border-radius: 4px 12px 12px 4px;
}
.a47-studio-reg-cell.is-wide {
  grid-column: 1 / -1;
}
.a47-studio-reg-cell dt {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.a47-studio-reg-cell dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--st-ink);
  line-height: 1.4;
  word-break: break-word;
}

/* Dark desk aside */
.a47-studio-desk {
  position: sticky;
  top: 5.5rem;
  padding: 1.15rem 1.1rem 1.25rem;
  background: linear-gradient(165deg, var(--st-plum-deep) 0%, var(--st-plum) 100%);
  color: #fff;
  border-radius: 4px 24px 24px 4px;
  box-shadow: var(--st-shadow);
}
.a47-studio-desk-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-gold-light);
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--st-gold);
}
.a47-studio-desk h2 {
  margin: 0 0 0.85rem;
  font-family: var(--a47-font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.a47-studio-desk-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.a47-studio-desk-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px 10px 10px 4px;
}
.a47-studio-desk-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
}
.a47-studio-desk-list strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.a47-studio-desk-list p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  word-break: break-word;
}
.a47-studio-desk-list a {
  color: var(--st-gold-light);
  text-decoration: none;
}
.a47-studio-desk-list a:hover {
  text-decoration: underline;
}
.a47-studio-desk-cta {
  display: block;
  padding: 0.62rem 1rem;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--st-plum-deep) !important;
  text-decoration: none !important;
  background: linear-gradient(120deg, var(--st-gold), var(--st-gold-light));
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(201, 168, 108, 0.25);
  transition: filter 0.2s, transform 0.2s;
}
.a47-studio-desk-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

/* What we sell */
.a47-studio-sell {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(135deg, rgba(61, 43, 63, 0.03), rgba(201, 168, 108, 0.1));
  border: 1px solid var(--st-border);
  border-radius: 4px 20px 20px 4px;
}
.a47-studio-sell p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--st-muted);
}

/* Bento */
.a47-studio-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.a47-studio-tile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid var(--st-border);
  border-radius: 4px 16px 16px 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.a47-studio-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 24, 48, 0.1);
}
.a47-studio-tile--primary {
  background: linear-gradient(135deg, var(--st-plum-deep), var(--st-plum));
  border-color: transparent;
}
.a47-studio-tile--primary strong {
  color: #fff;
}
.a47-studio-tile--primary small {
  color: rgba(255, 255, 255, 0.6);
}
.a47-studio-tile > span:first-child {
  font-size: 1.35rem;
  line-height: 1;
}
.a47-studio-tile strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--st-ink);
}
.a47-studio-tile small {
  display: block;
  font-size: 0.72rem;
  color: var(--st-muted);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .a47-studio-reveal,
  .a47-studio-promises li,
  .a47-studio-collection {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none !important;
  }
  .a47-studio-mast-bg::after {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .a47-studio-workspace,
  .a47-studio-registry-wrap {
    grid-template-columns: 1fr;
  }
  .a47-studio-rail,
  .a47-studio-desk {
    position: static;
  }
  .a47-studio-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .a47-studio-mast-grid {
    grid-template-columns: 1fr;
  }
  .a47-studio-badge {
    align-self: start;
    min-width: 0;
    width: 100%;
  }
  .a47-studio-stats {
    grid-template-columns: 1fr;
    max-width: none;
  }
  .a47-studio-registry-grid {
    grid-template-columns: 1fr;
  }
  .a47-studio-reg-cell.is-wide {
    grid-column: auto;
  }
  .a47-studio-bento {
    grid-template-columns: 1fr;
  }
}
