:root {
  --phone-bg: #e9e5de;
  --phone-surface: #ded9d0;
  --phone-surface-raised: #f2eee7;
  --phone-surface-inset: #d3cec5;
  --phone-ink: #211f1c;
  --phone-muted: #666159;
  --phone-rule: #b9b2a8;
  --phone-violet: #4f46e5;
  --phone-violet-dark: #3f37bd;
  --phone-violet-bright: #766cff;
  --phone-success: #6f8d5b;
  --phone-gutter: clamp(14px, 4.2vw, 20px);
  --phone-max: 440px;
  --phone-header-height: 76px;
  --phone-shadow-raised: 0 8px 20px rgba(24, 22, 19, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -2px 4px rgba(35, 31, 26, 0.08);
  --phone-shadow-inset: inset 0 2px 5px rgba(35, 31, 26, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.45);
  color-scheme: light;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--phone-header-height) + env(safe-area-inset-top) + 18px);
  background: #d7d2c9;
}

body.page-home,
body.page-content {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: auto;
  color: var(--phone-ink);
  background: #d7d2c9;
  font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.phone-dialog-open {
  overflow: hidden;
}

body > :not(.phone-site):not(script) {
  display: none !important;
}

.phone-site {
  --phone-texture-image: none;
  --phone-texture-opacity: 0;
  position: relative;
  display: block !important;
  width: min(100%, var(--phone-max));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: clip;
  color: var(--phone-ink);
  background:
    radial-gradient(circle at 18% 4%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(180deg, #eeebe5, var(--phone-bg));
  box-shadow: 0 0 34px rgba(45, 40, 34, 0.18);
  isolation: isolate;
}

.phone-site::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image: var(--phone-texture-image);
  background-position: center top;
  background-size: auto 100vh;
  background-size: auto 100svh;
  background-repeat: repeat-y;
  opacity: var(--phone-texture-opacity);
  pointer-events: none;
  filter: saturate(0.76) contrast(0.98) brightness(1.01);
  mix-blend-mode: multiply;
}

.phone-site[data-phone-texture="weathered-limestone"] {
  --phone-texture-image: image-set(
    url("/media/phone/backgrounds/weathered-limestone.avif") type("image/avif"),
    url("/media/phone/backgrounds/weathered-limestone.webp") type("image/webp"),
    url("/media/phone/backgrounds/weathered-limestone.jpg") type("image/jpeg")
  );
  --phone-texture-opacity: 0.46;
}

.phone-site[data-phone-texture="compact-limestone"] {
  --phone-texture-image: image-set(
    url("/media/phone/backgrounds/compact-limestone.avif") type("image/avif"),
    url("/media/phone/backgrounds/compact-limestone.webp") type("image/webp"),
    url("/media/phone/backgrounds/compact-limestone.jpg") type("image/jpeg")
  );
  --phone-texture-opacity: 0.48;
}

.phone-site[data-phone-texture="pale-quartzite"] {
  --phone-texture-image: image-set(
    url("/media/phone/backgrounds/pale-quartzite.avif") type("image/avif"),
    url("/media/phone/backgrounds/pale-quartzite.webp") type("image/webp"),
    url("/media/phone/backgrounds/pale-quartzite.jpg") type("image/jpeg")
  );
  --phone-texture-opacity: 0.42;
}

.phone-site[data-phone-texture="quiet-limestone"] {
  --phone-texture-image: image-set(
    url("/media/phone/backgrounds/quiet-limestone.avif") type("image/avif"),
    url("/media/phone/backgrounds/quiet-limestone.webp") type("image/webp"),
    url("/media/phone/backgrounds/quiet-limestone.jpg") type("image/jpeg")
  );
  --phone-texture-opacity: 0.28;
}

.phone-site[data-phone-texture="proof-traces"] {
  --phone-texture-image: image-set(
    url("/media/phone/backgrounds/proof-traces.avif") type("image/avif"),
    url("/media/phone/backgrounds/proof-traces.webp") type("image/webp"),
    url("/media/phone/backgrounds/proof-traces.jpg") type("image/jpeg")
  );
  --phone-texture-opacity: 0.34;
}

.phone-site[data-phone-texture="violet-veins"] {
  --phone-texture-image: image-set(
    url("/media/phone/backgrounds/violet-veins.avif") type("image/avif"),
    url("/media/phone/backgrounds/violet-veins.webp") type("image/webp"),
    url("/media/phone/backgrounds/violet-veins.jpg") type("image/jpeg")
  );
  --phone-texture-opacity: 0.24;
}

.phone-site[data-phone-texture="instrument-paper"] {
  --phone-texture-image: image-set(
    url("/media/phone/backgrounds/instrument-paper.avif") type("image/avif"),
    url("/media/phone/backgrounds/instrument-paper.webp") type("image/webp"),
    url("/media/phone/backgrounds/instrument-paper.jpg") type("image/jpeg")
  );
  --phone-texture-opacity: 0.3;
}

.phone-site *,
.phone-site *::before,
.phone-site *::after {
  box-sizing: border-box;
}

.phone-site a {
  color: inherit;
}

.phone-site img,
.phone-site video,
.phone-site svg {
  display: block;
  max-width: 100%;
}

.phone-site button,
.phone-site input {
  font: inherit;
}

.phone-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-icon .phone-icon-fill {
  fill: currentColor;
  stroke: none;
}

.phone-skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 10005;
  padding: 10px 14px;
  color: #fff;
  background: var(--phone-violet-dark);
  border-radius: 8px;
  transform: translate(-50%, -150%);
}

.phone-skip-link:focus {
  transform: translate(-50%, 0);
}

.phone-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  min-height: calc(var(--phone-header-height) + env(safe-area-inset-top));
  padding: max(12px, env(safe-area-inset-top)) var(--phone-gutter) 10px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(237, 233, 226, 0.93);
  border-bottom: 1px solid rgba(79, 73, 64, 0.18);
  box-shadow: 0 5px 18px rgba(45, 40, 34, 0.08);
  backdrop-filter: blur(16px) saturate(0.82);
}

.phone-brand {
  display: block;
  width: 130px;
  min-width: 112px;
}

.phone-brand svg {
  width: 100%;
  height: auto;
}

.phone-header-actions {
  display: flex;
  gap: 8px;
}

.phone-square-button {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: var(--phone-ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(206, 201, 191, 0.64));
  border: 1px solid rgba(96, 89, 78, 0.44);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(34, 30, 26, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.phone-square-button:active {
  box-shadow: var(--phone-shadow-inset);
  transform: translateY(1px);
}

.phone-site :focus-visible {
  outline: 3px solid var(--phone-violet-bright);
  outline-offset: 3px;
}

.phone-main {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - var(--phone-header-height));
  padding: 20px var(--phone-gutter) calc(126px + env(safe-area-inset-bottom));
}

.phone-eyebrow {
  margin: 0 0 7px;
  color: var(--phone-violet-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}

.phone-hero {
  position: relative;
  min-height: 260px;
  padding: 18px 4px 28px;
  overflow: hidden;
}

.phone-hero h1,
.phone-article > h1,
.phone-domain-title-row h1 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin: 0;
  font-size: clamp(36px, 10.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.01;
}

.phone-hero h1 {
  max-width: 11ch;
}

.phone-hero > .phone-eyebrow {
  position: relative;
  z-index: 2;
}

.phone-hero-intro,
.phone-lede,
.phone-section-intro {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  margin: 16px 0 0;
  color: var(--phone-muted);
  font-size: 16px;
  line-height: 1.5;
}

.phone-hero-intro {
  max-width: 29ch;
}

.phone-hero-graffiti {
  position: absolute;
  top: -18px;
  right: -50px;
  width: 210px;
  opacity: 0.17;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.phone-hero-graffiti img {
  width: 100%;
  height: auto;
}

.phone-plate,
.phone-card {
  position: relative;
  background:
    radial-gradient(circle at 10px 10px, #6f6a62 0 1.5px, #c8c2b8 1.7px 3.8px, transparent 4px),
    radial-gradient(circle at calc(100% - 10px) 10px, #6f6a62 0 1.5px, #c8c2b8 1.7px 3.8px, transparent 4px),
    radial-gradient(circle at 10px calc(100% - 10px), #6f6a62 0 1.5px, #c8c2b8 1.7px 3.8px, transparent 4px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #6f6a62 0 1.5px, #c8c2b8 1.7px 3.8px, transparent 4px),
    repeating-linear-gradient(92deg, rgba(70, 64, 54, 0.022) 0 1px, transparent 1px 9px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.63), rgba(210, 205, 196, 0.72));
  border: 1px solid rgba(104, 97, 86, 0.42);
  border-radius: 10px;
  box-shadow: var(--phone-shadow-raised);
}

.phone-watch {
  margin: 0 0 16px;
  padding: 14px;
  border-left: 3px solid var(--phone-violet);
}

.phone-plate-header {
  display: flex;
  margin: 0 2px 11px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.phone-plate-header h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phone-plate-header span {
  color: var(--phone-muted);
  font-size: 12px;
}

.phone-watch video {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #1e211f;
  border: 1px solid rgba(28, 27, 24, 0.52);
  border-radius: 5px;
}

.phone-watch p {
  margin: 11px 3px 0;
  color: var(--phone-muted);
  font-size: 14px;
  line-height: 1.35;
}

.phone-jump-rail,
.phone-library-rail,
.phone-library-switcher,
.phone-toc-rail,
.phone-tab-strip {
  display: flex;
  margin-right: calc(var(--phone-gutter) * -1);
  padding: 2px var(--phone-gutter) 10px 0;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.phone-jump-rail a,
.phone-library-switcher a,
.phone-toc-rail a,
.phone-tab-strip a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 11px 16px;
  color: var(--phone-ink);
  background: rgba(242, 238, 231, 0.72);
  border: 1px solid var(--phone-rule);
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(38, 34, 29, 0.1);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  scroll-snap-align: start;
}

.phone-jump-rail a:first-child,
.phone-library-switcher a[aria-current="page"],
.phone-tab-strip a[aria-current="page"] {
  color: #fff;
  background: var(--phone-violet);
  border-color: var(--phone-violet-dark);
}

.phone-section,
.phone-child-pages,
.phone-applications {
  margin-top: 34px;
  scroll-margin-top: 98px;
}

.phone-section-header {
  display: flex;
  margin-bottom: 13px;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.phone-section-header h2,
.phone-child-pages > h2,
.phone-applications > h2,
.phone-generated-copy > h2,
.phone-modules h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.phone-section-header > a {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 0 8px 8px;
  color: var(--phone-violet-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.phone-card-rail {
  display: flex;
  margin-right: calc(var(--phone-gutter) * -1);
  padding: 4px var(--phone-gutter) 18px 0;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.phone-tool-card {
  position: relative;
  flex: 0 0 clamp(238px, 74vw, 310px);
  min-height: 230px;
  padding: 22px 20px 48px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
}

.phone-tool-card-has-art {
  min-height: 292px;
  padding: 0 20px 48px;
}

.phone-tool-card .phone-work-art {
  display: block;
  width: calc(100% + 40px);
  height: 116px;
  margin: 0 -20px 42px;
  overflow: hidden;
  background: #cbc5bb;
  border-bottom: 1px solid rgba(74, 67, 58, 0.35);
}

.phone-tool-card .phone-work-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-tool-symbol {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--phone-violet-dark);
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(82, 76, 68, 0.28);
  border-radius: 50%;
  box-shadow: var(--phone-shadow-inset);
}

.phone-tool-symbol .phone-icon {
  width: 42px;
  height: 42px;
}

.phone-tool-card-has-art .phone-tool-symbol {
  position: absolute;
  top: 88px;
  left: 18px;
  z-index: 2;
  width: 56px;
  height: 56px;
  margin: 0;
  background: rgba(240, 236, 228, 0.88);
  backdrop-filter: blur(8px);
}

.phone-tool-card-has-art .phone-tool-symbol .phone-icon {
  width: 31px;
  height: 31px;
}

.phone-tool-index {
  position: absolute;
  top: 19px;
  right: 20px;
  color: rgba(79, 70, 59, 0.32);
  font-size: 30px;
  font-weight: 800;
}

.phone-tool-card-has-art .phone-tool-index {
  top: 14px;
  padding: 2px 7px;
  color: #fff;
  background: rgba(31, 28, 25, 0.45);
  border-radius: 999px;
  font-size: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
}

.phone-tool-card-copy > strong,
.phone-tool-card-copy > span {
  display: block;
}

.phone-tool-card-copy > strong {
  font-size: 20px;
  line-height: 1.1;
}

.phone-tool-card-copy > span {
  margin: 8px 0 0;
  color: var(--phone-muted);
  font-size: 14px;
  line-height: 1.35;
}

.phone-work-list {
  display: grid;
  gap: 12px;
}

.phone-tool-card-list {
  width: 100%;
  min-width: 0;
  scroll-snap-align: none;
}

.phone-round-arrow,
.phone-action-button,
.phone-sticky-arrow {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--phone-violet-bright), var(--phone-violet-dark));
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(55, 44, 125, 0.3);
}

.phone-round-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 36px;
  height: 36px;
}

.phone-round-arrow .phone-icon,
.phone-action-button .phone-icon,
.phone-sticky-arrow .phone-icon {
  width: 20px;
  height: 20px;
}

.phone-library-rail a {
  flex: 0 0 150px;
  min-height: 128px;
  padding: 16px 14px;
  color: inherit;
  background: rgba(238, 234, 226, 0.82);
  border: 1px solid var(--phone-rule);
  border-radius: 8px;
  text-decoration: none;
  scroll-snap-align: start;
}

.phone-library-rail a > span {
  display: block;
  margin-bottom: 15px;
  color: var(--phone-violet-dark);
}

.phone-library-rail strong,
.phone-library-rail small {
  display: block;
}

.phone-library-rail strong {
  font-size: 15px;
}

.phone-library-rail small {
  margin-top: 5px;
  color: var(--phone-muted);
  font-size: 11px;
  line-height: 1.3;
}

.phone-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.phone-domain-card {
  display: grid;
  min-height: 126px;
  padding: 18px 14px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.phone-domain-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("/media/domains/stone-texture.webp");
  background-image: image-set(
    url("/media/domains/stone-texture.avif") type("image/avif"),
    url("/media/domains/stone-texture.webp") type("image/webp"),
    url("/media/domains/stone-texture.jpg") type("image/jpeg")
  );
  background-position: center;
  background-size: 220%;
  opacity: 0.15;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.phone-domain-card:nth-child(3n + 2)::before {
  background-position: 28% 62%;
}

.phone-domain-card:nth-child(3n)::before {
  background-position: 76% 34%;
}

.phone-domain-card-icon {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.phone-domain-card-watermark {
  position: absolute;
  right: -22px;
  bottom: -26px;
  width: 112px;
  height: 112px;
  opacity: 0.055;
  pointer-events: none;
  transform: rotate(-7deg);
}

.phone-domain-card-copy {
  position: relative;
  z-index: 1;
}

.phone-domain-card > .phone-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  color: var(--phone-violet-dark);
}

.phone-domain-card strong,
.phone-domain-card small {
  display: block;
}

.phone-domain-card strong {
  font-size: 16px;
}

.phone-domain-card small {
  margin-top: 4px;
  color: var(--phone-muted);
  font-size: 10px;
  line-height: 1.25;
}

.phone-paper-list,
.phone-stack {
  display: grid;
  gap: 9px;
}

.phone-paper-row {
  display: grid;
  min-height: 98px;
  padding: 12px;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  color: inherit;
  background: rgba(246, 243, 237, 0.62);
  border: 1px solid var(--phone-rule);
  border-radius: 7px;
  text-decoration: none;
}

.phone-paper-miniature {
  display: grid;
  width: 50px;
  height: 68px;
  padding: 10px 7px;
  gap: 5px;
  background: #f8f6ef;
  border: 1px solid rgba(96, 90, 80, 0.35);
  box-shadow: 0 3px 7px rgba(42, 37, 30, 0.13);
}

.phone-paper-miniature i {
  display: block;
  height: 2px;
  background: rgba(59, 55, 49, 0.28);
}

.phone-paper-miniature i:first-child {
  width: 74%;
  height: 4px;
  margin: 3px auto 6px;
  background: rgba(42, 39, 35, 0.54);
}

.phone-paper-row strong,
.phone-paper-row small,
.phone-paper-row time {
  display: block;
}

.phone-paper-row strong {
  font-family: "Cactus Classical Serif", Georgia, serif;
  font-size: 16px;
  line-height: 1.15;
}

.phone-paper-row small,
.phone-paper-row time {
  margin-top: 4px;
  color: var(--phone-muted);
  font-size: 11px;
}

.phone-paper-row > .phone-icon {
  width: 20px;
  color: var(--phone-violet-dark);
}

.phone-card {
  display: grid;
  min-height: 104px;
  padding: 16px 14px;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.phone-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--phone-violet-dark);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(87, 80, 70, 0.28);
  border-radius: 8px;
}

.phone-card-copy > small,
.phone-card-copy > strong,
.phone-card-copy > span {
  display: block;
}

.phone-card-copy > small {
  color: var(--phone-violet-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-card-copy > strong {
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.12;
}

.phone-card-copy > span {
  margin-top: 4px;
  color: var(--phone-muted);
  font-size: 12px;
  line-height: 1.3;
}

.phone-card-arrow {
  color: var(--phone-violet-dark);
}

.phone-card-arrow .phone-icon {
  width: 20px;
}

.phone-inline-action {
  display: grid;
  min-height: 88px;
  margin-top: 36px;
  padding: 15px;
  grid-template-columns: 44px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
  color: inherit;
  border-left: 3px solid var(--phone-violet);
  text-decoration: none;
}

.phone-inline-action > span:first-child {
  color: var(--phone-violet-dark);
}

.phone-inline-action strong,
.phone-inline-action small {
  display: block;
}

.phone-inline-action strong {
  color: var(--phone-violet-dark);
  font-size: 17px;
  text-transform: uppercase;
}

.phone-inline-action small {
  margin-top: 3px;
  color: var(--phone-muted);
  font-size: 12px;
}

.phone-action-button {
  width: 44px;
  height: 44px;
}

.phone-footer {
  display: flex;
  margin-top: 42px;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--phone-muted);
  border-top: 1px solid var(--phone-rule);
  font-size: 11px;
}

.phone-footer span {
  width: 100%;
  color: var(--phone-ink);
  font-weight: 800;
}

.phone-footer a {
  min-height: 32px;
  padding-top: 6px;
}

.phone-sticky-action {
  position: fixed;
  right: max(var(--phone-gutter), calc((100vw - var(--phone-max)) / 2 + var(--phone-gutter)));
  bottom: max(10px, env(safe-area-inset-bottom));
  left: max(var(--phone-gutter), calc((100vw - var(--phone-max)) / 2 + var(--phone-gutter)));
  z-index: 90;
  display: grid;
  min-height: 78px;
  padding: 12px 13px;
  grid-template-columns: 46px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  color: var(--phone-ink);
  background:
    linear-gradient(90deg, rgba(79, 70, 229, 0.14), transparent 20%),
    rgba(236, 232, 225, 0.95);
  border: 1px solid rgba(94, 87, 77, 0.58);
  border-left: 3px solid var(--phone-violet);
  border-radius: 11px;
  box-shadow: 0 8px 28px rgba(34, 29, 24, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.phone-sticky-action.is-reading-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
}

.phone-sticky-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--phone-violet-dark);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--phone-rule);
  border-radius: 8px;
}

.phone-sticky-action strong,
.phone-sticky-action small {
  display: block;
}

.phone-sticky-action strong {
  color: var(--phone-violet-dark);
  font-size: 16px;
  line-height: 1.1;
  text-transform: uppercase;
}

.phone-sticky-action small {
  margin-top: 4px;
  color: var(--phone-muted);
  font-size: 11px;
}

.phone-sticky-arrow {
  width: 46px;
  height: 46px;
}

.phone-article {
  padding-top: 12px;
}

.phone-article > h1,
.phone-domain-title-row h1 {
  max-width: 100%;
  margin-bottom: 14px;
}

.phone-lede {
  margin-top: 0;
  color: #504c45;
}

.phone-editorial-hero {
  display: block;
  margin: 24px calc(var(--phone-gutter) * -1) 26px;
  overflow: hidden;
  background: #cbc6bd;
}

.phone-editorial-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.phone-work-feature {
  display: block;
  height: clamp(190px, 54vw, 232px);
  margin: 24px calc(var(--phone-gutter) * -1) 26px;
  overflow: hidden;
  background: #c9c3b9;
  border-block: 1px solid rgba(74, 67, 58, 0.35);
}

.phone-work-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-prose-after-navigation {
  padding-top: 28px;
  border-top: 1px solid var(--phone-rule);
}

.phone-prose,
.phone-generated-copy,
.phone-product-body,
.phone-application > div {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

.phone-prose {
  margin-top: 28px;
}

.phone-prose h2,
.phone-generated-copy h2 {
  margin: 2em 0 0.55em;
  font-size: 25px;
  line-height: 1.16;
}

.phone-prose h3,
.phone-generated-copy h3,
.phone-application h3 {
  margin: 1.6em 0 0.45em;
  font-size: 19px;
  line-height: 1.24;
}

.phone-prose p,
.phone-generated-copy p,
.phone-application p {
  margin: 0 0 1em;
}

.phone-prose a,
.phone-generated-copy a,
.phone-application a {
  color: var(--phone-violet-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.phone-prose ul,
.phone-prose ol,
.phone-generated-copy ul,
.phone-generated-copy ol,
.phone-application ul,
.phone-application ol {
  padding-left: 1.3em;
}

.phone-prose li + li,
.phone-generated-copy li + li,
.phone-application li + li {
  margin-top: 0.45em;
}

.phone-prose pre,
.phone-generated-copy pre,
.phone-application pre {
  max-width: 100%;
  padding: 16px;
  overflow-x: auto;
  color: #f5f1e8;
  background: #232421;
  border: 1px solid #111;
  border-radius: 7px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.phone-prose :not(pre) > code,
.phone-generated-copy :not(pre) > code,
.phone-application :not(pre) > code {
  padding: 0.1em 0.28em;
  color: #2e276e;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

.phone-prose table,
.phone-generated-copy table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
}

.phone-prose th,
.phone-prose td,
.phone-generated-copy th,
.phone-generated-copy td {
  padding: 9px;
  border: 1px solid var(--phone-rule);
  text-align: left;
  vertical-align: top;
}

.phone-metadata {
  display: grid;
  margin: 24px 0;
  padding: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.phone-metadata > div {
  min-width: 0;
  padding: 11px;
  border-bottom: 1px solid rgba(105, 97, 87, 0.24);
}

.phone-metadata dt {
  color: var(--phone-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone-metadata dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 700;
}

.phone-diagram {
  margin: 22px 0;
  padding: 14px;
}

.phone-diagram figcaption strong,
.phone-diagram figcaption span {
  display: block;
}

.phone-diagram figcaption strong {
  font-size: 16px;
}

.phone-diagram figcaption span {
  margin-top: 5px;
  color: var(--phone-muted);
  font-size: 12px;
  line-height: 1.4;
}

.phone-diagram img {
  width: 100%;
  height: auto;
  margin-top: 14px;
  border-top: 1px solid var(--phone-rule);
}

.phone-tab-strip {
  margin-top: 14px;
}

.phone-generated-copy {
  margin-top: 26px;
}

.phone-chip-list {
  display: flex;
  margin: 14px 0 22px;
  padding: 0;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.phone-chip-list li {
  padding: 7px 10px;
  color: #464139;
  background: rgba(238, 234, 226, 0.82);
  border: 1px solid var(--phone-rule);
  border-radius: 999px;
  font-size: 12px;
}

.phone-modules {
  margin-top: 28px;
  padding: 18px;
  scroll-margin-top: 96px;
}

.phone-modules ul {
  margin: 14px 0 0;
  padding-left: 16px;
  list-style: none;
  border-left: 1px solid var(--phone-rule);
}

.phone-modules > ul {
  padding-left: 0;
  border-left: 0;
}

.phone-modules li + li {
  margin-top: 8px;
}

.phone-modules li > span {
  color: var(--phone-muted);
  font-size: 13px;
  font-weight: 700;
}

.phone-modules li > a {
  display: flex;
  min-height: 44px;
  padding: 9px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--phone-ink);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(105, 97, 87, 0.24);
  border-radius: 5px;
  text-decoration: none;
}

.phone-modules li > a small {
  color: var(--phone-muted);
  font-size: 10px;
}

.phone-more-copy {
  margin-top: 28px;
  border-top: 1px solid var(--phone-rule);
}

.phone-more-copy > summary,
.phone-abstract > summary {
  min-height: 48px;
  padding: 14px 0;
  color: var(--phone-violet-dark);
  font-weight: 800;
  cursor: pointer;
}

.phone-note {
  margin: 24px 0;
  padding: 14px;
  color: var(--phone-muted);
  background: var(--phone-surface-inset);
  border-left: 3px solid var(--phone-rule);
}

.phone-domain-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-domain-hero {
  position: relative;
  margin: -12px calc(var(--phone-gutter) * -1) 0;
  padding: 26px var(--phone-gutter) 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(104, 97, 86, 0.34);
  isolation: isolate;
}

.phone-domain-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: url("/media/domains/stone-texture.webp");
  background-image: image-set(
    url("/media/domains/stone-texture.avif") type("image/avif"),
    url("/media/domains/stone-texture.webp") type("image/webp"),
    url("/media/domains/stone-texture.jpg") type("image/jpeg")
  );
  background-position: 50% 42%;
  background-size: 125%;
  opacity: 0.28;
  filter: saturate(0.68) contrast(0.94);
}

.phone-domain-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(105deg, rgba(240, 237, 231, 0.96) 14%, rgba(238, 234, 227, 0.78) 66%, rgba(229, 224, 215, 0.9));
}

.phone-domain-hero-mark {
  position: absolute;
  right: -52px;
  bottom: -66px;
  z-index: -1;
  width: 220px;
  height: 220px;
  opacity: 0.07;
  pointer-events: none;
  transform: rotate(-8deg);
}

.phone-domain-hero .phone-chip-list {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding-right: 48px;
}

.phone-domain-title-row img {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.phone-domain-title-row h1 {
  margin: 0;
}

.phone-domain-problems {
  margin-top: 26px;
  padding: 18px;
}

.phone-domain-problems > h2 {
  margin: 0;
  font-size: 22px;
}

.phone-domain-problems > ul {
  padding-left: 1.2em;
  color: var(--phone-muted);
  font-size: 14px;
  line-height: 1.45;
}

.phone-solution-grid {
  display: grid;
  margin-top: 18px;
  gap: 8px;
}

.phone-solution-grid article {
  padding: 12px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(105, 97, 87, 0.24);
  border-radius: 6px;
}

.phone-solution-grid p {
  margin: 4px 0 0;
  color: var(--phone-muted);
  font-size: 13px;
  line-height: 1.35;
}

.phone-section-intro {
  margin: 8px 0 16px;
  font-size: 14px;
}

.phone-product {
  margin-top: 10px;
  overflow: hidden;
}

.phone-product > summary {
  display: grid;
  min-height: 68px;
  padding: 14px 16px;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
}

.phone-product > summary::-webkit-details-marker,
.phone-application > summary::-webkit-details-marker {
  display: none;
}

.phone-product > summary > span {
  color: var(--phone-violet-dark);
}

.phone-product > summary > small {
  color: var(--phone-muted);
  font-size: 11px;
}

.phone-product > summary > b,
.phone-application > summary > b {
  color: var(--phone-violet-dark);
  font-size: 16px;
  transition: transform 180ms ease;
}

.phone-product[open] > summary > b {
  transform: rotate(180deg);
}

.phone-product-body {
  padding: 0 14px 15px;
  border-top: 1px solid rgba(105, 97, 87, 0.25);
}

.phone-application {
  border-bottom: 1px solid rgba(105, 97, 87, 0.25);
}

.phone-application > summary {
  display: grid;
  min-height: 60px;
  padding: 10px 2px;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
}

.phone-application > summary > span {
  color: var(--phone-violet-dark);
  font-size: 11px;
  font-weight: 800;
}

.phone-application > summary > strong {
  font-size: 14px;
  line-height: 1.25;
}

.phone-application[open] > summary > b {
  transform: rotate(45deg);
}

.phone-application > div {
  padding: 4px 0 18px 40px;
  font-size: 14px;
}

.phone-text-action {
  display: inline-flex;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 14px;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  background: var(--phone-violet-dark);
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none !important;
}

.phone-text-action .phone-icon {
  width: 18px;
}

.phone-paper > h1 {
  font-family: "Cactus Classical Serif", Georgia, serif;
  font-size: clamp(36px, 10vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.phone-paper-byline {
  display: flex;
  margin: 8px 0 20px;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--phone-muted);
  font-size: 13px;
}

.phone-paper-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phone-paper-actions a,
.phone-paper-actions button {
  display: flex;
  min-height: 48px;
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--phone-ink);
  background: var(--phone-surface-raised);
  border: 1px solid var(--phone-rule);
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.phone-paper-actions .phone-icon {
  width: 19px;
}

.phone-abstract {
  margin-top: 20px;
  padding: 0 17px 15px;
}

.phone-abstract p {
  margin: 0;
  font-family: "Cactus Classical Serif", Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
}

.phone-toc-rail {
  margin-top: 20px;
}

.nylas-scheduler-section {
  margin-top: 24px;
}

.nylas-scheduler-component-shell,
.nylas-scheduler-component {
  display: block;
  width: 100%;
  min-height: 680px;
}

.phone-dialog {
  width: min(100%, var(--phone-max));
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  color: var(--phone-ink);
  background: var(--phone-bg);
  border: 0;
}

.phone-dialog:not([open]) {
  display: none;
}

.phone-dialog::backdrop {
  background: rgba(21, 20, 18, 0.56);
  backdrop-filter: blur(4px);
}

.phone-dialog-inner {
  min-height: 100%;
  padding: max(18px, env(safe-area-inset-top)) var(--phone-gutter) max(26px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(circle at 16% 4%, rgba(255, 255, 255, 0.48), transparent 26%),
    repeating-linear-gradient(97deg, rgba(56, 51, 43, 0.02) 0 1px, transparent 1px 8px),
    var(--phone-bg);
}

.phone-dialog-header {
  position: sticky;
  top: calc(max(18px, env(safe-area-inset-top)) * -1);
  z-index: 2;
  display: flex;
  margin: calc(max(18px, env(safe-area-inset-top)) * -1) calc(var(--phone-gutter) * -1) 18px;
  padding: max(18px, env(safe-area-inset-top)) var(--phone-gutter) 13px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(233, 229, 222, 0.94);
  border-bottom: 1px solid var(--phone-rule);
  backdrop-filter: blur(15px);
}

.phone-dialog-header h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.025em;
}

.phone-menu-groups {
  display: grid;
  gap: 9px;
}

.phone-menu-home,
.phone-menu-group {
  color: inherit;
  background: rgba(242, 238, 231, 0.64);
  border: 1px solid var(--phone-rule);
  border-radius: 9px;
  box-shadow: 0 4px 11px rgba(33, 29, 25, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.phone-menu-home {
  display: grid;
  min-height: 74px;
  padding: 13px 15px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.phone-menu-home > span {
  grid-row: 1 / span 2;
  color: var(--phone-violet-dark);
}

.phone-menu-home strong,
.phone-menu-home small {
  display: block;
}

.phone-menu-home small {
  color: var(--phone-muted);
  font-size: 11px;
  line-height: 1.3;
}

.phone-menu-group > summary {
  display: grid;
  min-height: 76px;
  padding: 13px 14px;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}

.phone-menu-group > summary::-webkit-details-marker {
  display: none;
}

.phone-menu-symbol {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--phone-violet-dark);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--phone-rule);
  border-radius: 7px;
}

.phone-menu-group summary strong,
.phone-menu-group summary small {
  display: block;
}

.phone-menu-group summary strong {
  font-size: 15px;
  text-transform: uppercase;
}

.phone-menu-group summary small {
  margin-top: 3px;
  color: var(--phone-muted);
  font-size: 11px;
  line-height: 1.25;
}

.phone-menu-chevron {
  color: var(--phone-violet-dark);
  font-size: 20px;
  transition: transform 180ms ease;
}

.phone-menu-group[open] .phone-menu-chevron {
  transform: rotate(180deg);
}

.phone-menu-links {
  display: grid;
  padding: 0 14px 14px 56px;
  gap: 2px;
}

.phone-menu-links a {
  min-height: 44px;
  padding: 11px 8px;
  color: #49453e;
  border-top: 1px solid rgba(105, 97, 87, 0.18);
  font-size: 13px;
  text-decoration: none;
}

.phone-menu-links a[aria-current="page"] {
  color: var(--phone-violet-dark);
  font-weight: 800;
}

.phone-menu-actions {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.phone-menu-action {
  display: grid;
  min-height: 96px;
  padding: 14px;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  color: var(--phone-ink);
  background: var(--phone-surface-raised);
  border: 1px solid var(--phone-rule);
  border-radius: 8px;
  text-decoration: none;
}

.phone-menu-action.is-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--phone-violet-bright), var(--phone-violet-dark));
  border-color: var(--phone-violet-dark);
}

.phone-menu-action .phone-icon {
  width: 20px;
}

.phone-menu-action strong {
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.phone-menu-footer {
  margin: 22px 0 0;
  color: var(--phone-muted);
  font-size: 11px;
  text-align: center;
}

.phone-search-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.phone-search-input-shell {
  display: grid;
  min-height: 54px;
  padding: 0 14px;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: var(--phone-surface-raised);
  border: 1px solid var(--phone-rule);
  border-radius: 8px;
  box-shadow: var(--phone-shadow-inset);
}

.phone-search-input-shell .phone-icon {
  color: var(--phone-violet-dark);
}

.phone-search-input-shell input {
  width: 100%;
  min-width: 0;
  height: 52px;
  color: var(--phone-ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.phone-search-status {
  margin: 12px 2px;
  color: var(--phone-muted);
  font-size: 12px;
}

.phone-search-results {
  display: grid;
  gap: 8px;
}

.phone-search-result {
  display: grid;
  min-height: 76px;
  padding: 12px;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  color: inherit;
  background: rgba(242, 238, 231, 0.7);
  border: 1px solid var(--phone-rule);
  border-radius: 7px;
  text-decoration: none;
}

.phone-search-result small,
.phone-search-result strong,
.phone-search-result span {
  display: block;
}

.phone-search-result > span > small:first-child {
  color: var(--phone-violet-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.phone-search-result strong {
  margin-top: 2px;
  font-size: 15px;
}

.phone-search-result span span {
  margin-top: 3px;
  color: var(--phone-muted);
  font-size: 11px;
  line-height: 1.3;
}

@media (min-width: 400px) {
  .phone-solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 340px) {
  :root {
    --phone-gutter: 14px;
  }

  .phone-brand {
    width: 112px;
  }

  .phone-header-actions {
    gap: 6px;
  }

  .phone-square-button {
    width: 44px;
    height: 44px;
  }

  .phone-hero h1,
  .phone-article > h1,
  .phone-domain-title-row h1 {
    font-size: 34px;
  }

  .phone-domain-grid,
  .phone-paper-actions,
  .phone-menu-actions {
    grid-template-columns: 1fr;
  }

  .phone-tool-card {
    flex-basis: 86vw;
  }

  .phone-hero-graffiti {
    right: -60px;
    width: 188px;
  }

  .phone-application > div {
    padding-left: 0;
  }

  .phone-sticky-action {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .phone-site *,
  .phone-site *::before,
  .phone-site *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .phone-plate,
  .phone-card,
  .phone-sticky-action,
  .phone-square-button {
    background: Canvas;
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .phone-eyebrow,
  .phone-sticky-action strong,
  .phone-card-copy > small {
    color: LinkText;
  }
}
