/* Studio (services), Contact, the "Want one like this?" strip and the Work-with-me widget.
   Built on the Liquid Glass tokens in glass.css; iOS treatment at the bottom. */

.app-window[data-window="studio"] { width: 1040px; height: 700px; }
.app-window[data-window="contact"] { width: 720px; height: 700px; }

/* ---------- Icons for the new built-ins ---------- */
.osapp-icon.is-studio { background: linear-gradient(160deg, #4fb3ff, #0a64e8); }
.osapp-icon.is-contact { background: linear-gradient(150deg, #6fe08a, #24a548); }
.dock-studio { background: linear-gradient(160deg, #4fb3ff, #0a64e8); }
.dock-studio svg { width: 58%; height: 58%; stroke: #fff; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Studio ---------- */
.st-main { padding: 22px 28px 28px; overflow-y: auto; overscroll-behavior: contain; }
.st-main h1 { margin: 2px 0 8px; }
.st-main p { margin: 0; }
.st-intro { max-width: 58ch; color: var(--lg-text-2); }
.st-main .st-h2 { margin: 30px 0 12px; font-size: 18px; letter-spacing: -.015em; }
.st-section { margin-top: 26px; }
.st-section .st-h2 { margin: 0 0 10px; }
.st-muted, .st-fine { color: var(--lg-text-3); font-size: 12px; }
.st-chips { display: none; }
.st-page { max-width: 820px; }

/* Featured hero (the Mac App Store "Today" card) */
.st-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 190px;
  margin-top: 20px;
  border-radius: 26px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--tint-a, #ff8fa3), var(--tint-b, #d6455d));
  box-shadow: var(--lg-rim-strong), var(--lg-shadow);
  isolation: isolate;
}
.st-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--lg-sheen), linear-gradient(0deg, rgba(70, 0, 20, .34), rgba(70, 0, 20, 0) 70%); pointer-events: none; }
.st-hero-art { position: absolute; right: -24px; bottom: -34px; z-index: 0; width: 230px; height: 230px; opacity: .22; transform: rotate(-12deg); }
.st-hero-glyph { width: 100%; height: 100%; stroke-width: 1.2; }
.st-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; max-width: 520px; padding: 24px 28px; }
.st-main .st-hero h2, .st-main .st-hero p { color: #fff; }
.st-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; opacity: .85; }
.st-hero h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.025em; text-shadow: 0 1px 6px rgba(80, 0, 20, .25); }
.st-hero-copy > p:not(.st-kicker) { font-size: 14px; opacity: .94; }
.st-hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.st-more { padding: 0; border: 0; background: none; color: #fff; font: 600 13px var(--lg-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.st-hero :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* The App Store "Get" pill */
.st-get {
  flex: none;
  min-width: 68px;
  min-height: 30px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--lg-accent);
  font: 700 13px var(--lg-font);
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 8px rgba(10, 132, 255, .35);
  transition: transform var(--lg-fast) var(--lg-ease), filter var(--lg-fast);
}
.st-get:hover { filter: brightness(1.08); }
.st-get:active { transform: scale(.94); }
.st-hero .st-get { color: var(--lg-accent); background: #fff; box-shadow: 0 2px 10px rgba(80, 0, 20, .25); }

/* Service cards */
.st-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 10px;
  border-radius: 20px;
  background: var(--os-card);
  box-shadow: inset 0 0 0 .5px var(--os-card-line), var(--lg-shadow-sm);
  transition: transform var(--lg-medium) var(--lg-spring), background var(--lg-fast);
}
.st-card:hover { background: rgba(255, 255, 255, .8); transform: translateY(-1px); }
body.dark-desktop .st-card:hover { background: rgba(255, 255, 255, .1); }
.st-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; border: 0; border-radius: 14px; background: none; color: var(--lg-text); font: inherit; text-align: left; cursor: pointer; }
.st-card-main:focus-visible { outline: 2px solid var(--lg-accent); outline-offset: 1px; }
.st-card-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-card-text strong { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.st-card-text small { font-size: 12px; line-height: 1.35; color: var(--lg-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Process */
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.st-steps li { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: var(--os-card); box-shadow: inset 0 0 0 .5px var(--os-card-line); }
.st-step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--lg-accent); font-size: 12px; font-weight: 700; }
.st-steps strong { font-size: 14px; }
.st-steps p { margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--lg-text-2); }
.st-talk { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; padding: 16px 20px; border-radius: 20px; background: var(--os-card); box-shadow: inset 0 0 0 .5px var(--os-card-line); }
.st-talk p { color: var(--lg-text-2); max-width: 52ch; }

/* Detail page */
.st-back { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 14px -6px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; background: none; color: var(--lg-accent); font: 500 13px var(--lg-font); cursor: pointer; }
.st-back svg { width: 16px; height: 16px; }
.st-back:hover { background: var(--lg-accent-soft); }
.st-detail-head { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.st-detail-titles { min-width: 0; }
.st-detail-titles h1 { margin: 0 0 4px; }
.st-detail-tag { color: var(--lg-text-2); max-width: 54ch; }
.st-detail-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.st-section p { color: var(--lg-text); max-width: 62ch; }
.st-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-includes li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; }
.st-includes svg { flex: none; width: 18px; height: 18px; margin-top: 1px; padding: 2px; border-radius: 50%; color: #fff; background: #30c15f; box-sizing: border-box; stroke-width: 2.6; }
.st-proof { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.st-tile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 18px; background: var(--os-card); color: var(--lg-text); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 .5px var(--os-card-line), var(--lg-shadow-sm); transition: transform var(--lg-medium) var(--lg-spring); }
.st-tile:hover { transform: translateY(-1px); }
.st-tile:focus-visible { outline: 2px solid var(--lg-accent); outline-offset: 2px; }
.st-tile span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-tile strong { font-size: 13px; }
.st-tile small { font-size: 11.5px; line-height: 1.35; color: var(--lg-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-behance { margin-top: 12px; }
.st-link { color: var(--lg-accent); font-weight: 600; font-size: 13px; text-decoration: none; }
.st-link:hover { text-decoration: underline; }
.st-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 18px 20px; border-radius: 22px; background: var(--lg-accent-soft); box-shadow: inset 0 0 0 .5px rgba(10, 132, 255, .24); }
.st-cta p { margin-top: 2px; font-size: 12.5px; color: var(--lg-text-2); max-width: 46ch; }
.st-cta-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Contact ---------- */
.ct-main { padding: 18px 26px 22px; overflow-y: auto; overscroll-behavior: contain; }
.ct-main p { margin: 0; }
.ct-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ct-head h1 { margin: 0; font-size: 24px; }
.ct-to { color: var(--lg-text-2); font-size: 12.5px; }
.ct-to b { color: var(--lg-text); font-weight: 600; }
.ct-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ct-quick-link { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px; color: var(--lg-text); background: var(--os-field); font-size: 12.5px; font-weight: 500; text-decoration: none; box-shadow: inset 0 0 0 .5px var(--os-card-line), 0 1px 3px rgba(0, 10, 30, .08); }
.ct-quick-link:hover { background: var(--os-hover); }
.ct-form { display: flex; flex-direction: column; gap: 0; border-radius: 18px; background: var(--os-card); box-shadow: inset 0 0 0 .5px var(--os-card-line); overflow: hidden; }
.ct-pair { display: grid; grid-template-columns: 1fr 1fr; }
.ct-pair .ct-row:first-child { border-right: .5px solid var(--lg-separator); }
.ct-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 10px; margin: 0; min-width: 0; border: 0; border-bottom: .5px solid var(--lg-separator); }
.ct-row > label, .ct-choice legend { padding: 0; font-size: 11.5px; font-weight: 600; color: var(--lg-text-2); }
.ct-row b { color: #e5484d; font-weight: 700; }
.ct-row input[type="text"], .ct-row select, .ct-row textarea {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  outline: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--lg-text);
  font: 400 14px/1.45 var(--lg-font);
  resize: none;
}
.ct-row select { appearance: none; -webkit-appearance: none; padding-right: 22px; background: var(--os-chevron) right 2px center / 12px no-repeat; cursor: pointer; }
.ct-row input::placeholder, .ct-row textarea::placeholder { color: var(--lg-text-3); }
.ct-row:focus-within { background: rgba(10, 132, 255, .06); }
.ct-row [aria-invalid="true"] { box-shadow: 0 1px 0 #e5484d; }
.ct-error { color: #d12f34; font-size: 11.5px; font-weight: 500; }
body.dark-desktop .ct-error { color: #ff7b80; }
.ct-choice[data-invalid="true"] legend { color: #d12f34; }
.ct-segs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 2px; }
.ct-seg { position: relative; }
.ct-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ct-seg span { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--lg-text); background: var(--os-seg); transition: background var(--lg-fast), color var(--lg-fast); }
.ct-seg input:checked + span { color: #fff; background: var(--lg-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.ct-seg input:focus-visible + span { outline: 2px solid var(--lg-accent); outline-offset: 2px; }
.ct-trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ct-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.ct-note { font-size: 11.5px; color: var(--lg-text-3); max-width: 38ch; }
.ct-send { min-width: 96px; }
.ct-send[disabled] { opacity: .6; cursor: progress; }
.ct-banner { margin-bottom: 14px; padding: 14px 16px; border-radius: 18px; background: rgba(229, 72, 77, .1); box-shadow: inset 0 0 0 .5px rgba(229, 72, 77, .35); outline: 0; }
.ct-banner p { margin-top: 3px; font-size: 12.5px; color: var(--lg-text-2); }
.ct-fallback { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ct-fallback a { display: inline-flex; align-items: center; text-decoration: none; }
.ct-thanks { margin: 28px auto 0; max-width: 440px; text-align: center; outline: 0; }
.ct-thanks h2 { margin: 14px 0 6px; }
.ct-thanks p { color: var(--lg-text-2); }
.ct-thanks .action-row { justify-content: center; margin-top: 18px; }
.ct-thanks .soft-button { display: inline-flex; align-items: center; text-decoration: none; }
.ct-tick { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: #30c15f; box-shadow: 0 6px 18px rgba(48, 193, 95, .4); }
.ct-tick svg { width: 28px; height: 28px; }

/* ---------- "Want one like this?" strip ---------- */
.st-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  border-radius: 999px;
  background: var(--lg-sheen), var(--lg-fill-regular);
  box-shadow: var(--lg-rim), var(--lg-shadow-sm);
}
.st-bar-text { flex: 1; min-width: 0; font-size: 12.5px; color: var(--lg-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-bar-text b { color: var(--lg-text); font-weight: 650; margin-right: 4px; }
.st-bar-go { flex: none; min-height: 28px; padding: 0 14px; border: 0; border-radius: 999px; color: #fff; background: var(--lg-accent); font: 600 12.5px var(--lg-font); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.st-bar-go:active { transform: scale(.95); }
.st-bar-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--lg-text-3); font-size: 18px; line-height: 1; cursor: pointer; }
.st-bar-x:hover { background: var(--os-hover); color: var(--lg-text); }

/* ---------- Work with me widget (desktop) ---------- */
.dw-work .dw-open { display: flex; align-items: center; gap: 7px; margin: 0 0 3px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.dw-dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .25); flex: none; }
.dw-work small { display: block; margin-bottom: 10px; font-size: 11px; opacity: .78; }
.dw-work-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dw-work-actions .is-primary { flex: 1 1 100%; justify-content: center; }
.dw-work-actions button:not(.is-primary), .dw-work-actions a { flex: 1; justify-content: center; }
.dw-work-actions button, .dw-work-actions a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 0; border-radius: 999px; color: #fff; background: rgba(255, 255, 255, .2); font: 600 12px var(--lg-font); text-decoration: none; cursor: pointer; box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .4); }
.dw-work-actions .is-primary { background: var(--lg-accent); }
.dw-work-actions button:hover, .dw-work-actions a:hover { filter: brightness(1.12); }
@media (max-height: 860px) { .desktop-widgets .dw-building { display: none; } }

/* ---------- Narrow windows ---------- */
@media (max-width: 900px) {
  .st-list, .st-steps { grid-template-columns: 1fr; }
  .st-hero-art { display: none; }
}

/* ---------- iOS ---------- */
body.ios-mode .st-main { padding-left: 16px !important; padding-right: 16px !important; }
body.ios-mode .st-chips { display: flex; gap: 8px; margin: 0 -16px 14px; padding: 2px 16px 4px; overflow-x: auto; scrollbar-width: none; }
body.ios-mode .st-chips::-webkit-scrollbar { display: none; }
body.ios-mode .st-main.is-detail .st-chips { display: none; }
body.ios-mode .st-chips button { flex: none; min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; color: var(--ios-label); background: var(--ios-fill); font: 500 14px var(--ios-font); }
body.ios-mode .st-chips button.selected { color: #fff; background: var(--ios-tint); }
body.ios-mode .st-main .section-kicker { display: none; }
body.ios-mode .st-main h1 { font-size: 26px; }
body.ios-mode .st-intro { font-size: 15px; color: var(--ios-label2); }
body.ios-mode .app-window .st-main .st-hero h2, body.ios-mode .app-window .st-main .st-hero p { color: #fff; }
body.ios-mode .st-hero { margin-top: 14px; min-height: 170px; border-radius: 24px; }
body.ios-mode .st-hero-art { display: block; right: -30px; width: 190px; height: 190px; }
body.ios-mode .st-hero-copy { padding: 18px 18px 18px; }
body.ios-mode .st-hero h2 { font-size: 24px; }
body.ios-mode .st-h2 { font-size: 20px; margin-top: 22px; }
body.ios-mode .st-list { grid-template-columns: 1fr; gap: 0; background: var(--ios-card); border-radius: 22px; overflow: hidden; }
body.ios-mode .st-card { border-radius: 0; padding: 8px 14px 8px 10px; background: none; box-shadow: none; }
body.ios-mode .st-card + .st-card::before { content: ""; position: absolute; top: 0; left: 76px; right: 0; height: .5px; background: var(--ios-sep); }
body.ios-mode .st-card:hover { transform: none; background: none; }
body.ios-mode .st-card-main { color: var(--ios-label); min-height: 64px; }
body.ios-mode .st-card-text small { color: var(--ios-label2); font-size: 13px; }
body.ios-mode .st-card .osapp-icon { --sz: 52px !important; }
body.ios-mode .st-get { min-height: 32px; background: var(--ios-fill); color: var(--ios-tint); box-shadow: none; font-weight: 700; }
body.ios-mode .st-hero .st-get { background: #fff; color: var(--ios-tint); }
body.ios-mode .st-steps { grid-template-columns: 1fr; gap: 0; background: var(--ios-card); border-radius: 22px; overflow: hidden; }
body.ios-mode .st-steps li { flex-direction: row; align-items: flex-start; gap: 12px; border-radius: 0; background: none; box-shadow: none; }
body.ios-mode .st-steps p { font-size: 13px; color: var(--ios-label2); }
body.ios-mode .st-talk { flex-direction: column; align-items: stretch; background: var(--ios-card); box-shadow: none; }
body.ios-mode .st-talk p { color: var(--ios-label2); }
body.ios-mode .st-back { display: none; }
body.ios-mode .st-detail-head { gap: 16px; }
body.ios-mode .st-detail-head .osapp-icon { --sz: 84px !important; }
body.ios-mode .st-detail-tag { color: var(--ios-label2); font-size: 14px; }
body.ios-mode .st-includes li { font-size: 15px; }
body.ios-mode .st-proof { grid-template-columns: 1fr; }
body.ios-mode .st-tile { background: var(--ios-card); box-shadow: none; color: var(--ios-label); min-height: 56px; }
body.ios-mode .st-tile small { color: var(--ios-label2); font-size: 13px; }
body.ios-mode .st-section p { color: var(--ios-label); }
body.ios-mode .st-cta { flex-direction: column; align-items: stretch; background: var(--ios-card); box-shadow: none; }
body.ios-mode .st-cta p { color: var(--ios-label2); font-size: 14px; }
body.ios-mode .st-cta-actions .soft-button { flex: 1; display: inline-flex; justify-content: center; align-items: center; text-decoration: none; }
body.ios-mode .st-link { color: var(--ios-tint); font-size: 15px; }
body.ios-mode .st-muted, body.ios-mode .st-fine { color: var(--ios-label2); }

body.ios-mode .ct-main { padding-left: 16px !important; padding-right: 16px !important; }
body.ios-mode .ct-head { display: none; }
body.ios-mode .ct-quick-link { min-height: 40px; background: var(--ios-fill); color: var(--ios-tint); box-shadow: none; font-size: 15px; }
body.ios-mode .ct-form { background: var(--ios-card); box-shadow: none; border-radius: 22px; }
body.ios-mode .ct-pair { grid-template-columns: 1fr; }
body.ios-mode .ct-pair .ct-row:first-child { border-right: 0; }
body.ios-mode .ct-row { border-bottom-color: var(--ios-sep); }
body.ios-mode .ct-row > label, body.ios-mode .ct-choice legend { color: var(--ios-label2); font-size: 13px; }
body.ios-mode .ct-row input[type="text"], body.ios-mode .ct-row select, body.ios-mode .ct-row textarea { color: var(--ios-label); font-size: 17px; }
body.ios-mode .ct-seg span { min-height: 38px; font-size: 14px; background: var(--ios-fill); color: var(--ios-label); }
body.ios-mode .ct-seg input:checked + span { background: var(--ios-tint); color: #fff; }
body.ios-mode .ct-note { color: var(--ios-label2); font-size: 12px; }
body.ios-mode .ct-actions { flex-direction: column; align-items: stretch; }
body.ios-mode .ct-send { min-height: 48px; border-radius: 14px; }
body.ios-mode .ct-thanks p, body.ios-mode .ct-banner p { color: var(--ios-label2); }

body.ios-mode .st-bar-sub { display: none; }
body.ios-mode .st-bar { position: sticky; bottom: 14px; margin-top: 10px; z-index: 3; background: var(--ios-card); box-shadow: 0 0 0 .5px var(--ios-sep), 0 6px 18px rgba(0, 12, 40, .18); }
body.ios-mode .st-bar-text { font-size: 13px; color: var(--ios-label2); }
body.ios-mode .st-bar-text b { color: var(--ios-label); }
body.ios-mode .st-bar-go { min-height: 36px; background: var(--ios-tint); }
body.ios-mode .st-bar-x { width: 36px; height: 36px; color: var(--ios-label2); }

/* ---------- Motion ---------- */
body.motion-reduced .st-card, body.motion-reduced .st-tile, body.motion-reduced .st-get { transition: none; }
@media (prefers-reduced-motion: reduce) { .st-card, .st-tile, .st-get { transition: none; } }
