:root {
  --paper: #f6f1e8;
  --paper-2: #ece5d7;
  --ink: #171717;
  --ink-2: #2c2a26;
  --muted: #6f6a61;
  --line: rgba(34, 31, 27, 0.14);
  --line-strong: rgba(34, 31, 27, 0.24);
  --surface: rgba(255, 252, 246, 0.78);
  --surface-solid: #fffaf0;
  --dark: #151719;
  --dark-2: #202327;
  --green: #5b7c62;
  --blue: #087cf0;
  --coral: #df3f62;
  --amber: #ce9144;
  --violet: #7868b8;
  --mint: #27906f;
  --shadow: 0 24px 80px rgba(28, 24, 17, 0.12);
  --shell: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(35, 30, 24, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 30, 24, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fbf6ec 0%, #f1eadc 48%, #e8e8de 100%);
  background-size: 28px 28px, 28px 28px, auto;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.6), transparent 38%),
    repeating-linear-gradient(135deg, rgba(40, 34, 25, 0.035) 0 1px, transparent 1px 9px);
  content: "";
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(8, 124, 240, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--dark);
  border-radius: 6px;
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.section-block {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 0 max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled {
  min-height: 62px;
  border-color: var(--line);
  background: rgba(246, 241, 232, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(26, 24, 21, 0.14);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.62);
}

.desktop-nav a {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  transition: color 160ms ease, background 160ms ease;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: rgba(23, 23, 23, 0.055);
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 252, 246, 0.58);
  font-size: 13px;
  font-weight: 720;
}

.menu-button,
.mobile-nav {
  display: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 64px);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.hero-lede,
.intro-copy p,
.section-heading.wide > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.76;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.8fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 66px 0 72px;
}

.hero-copy {
  padding: 28px 0;
}

.studio-dossier-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  margin-bottom: 38px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.dossier-grid div {
  min-height: 68px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.62);
}

.dossier-grid span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dossier-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 760;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 252, 246, 0.66);
  border-color: var(--line-strong);
}

.text-link {
  display: inline-flex;
  width: max-content;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 780;
}

.hero-instrument {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #f6efe2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #151719, #23282b 58%, #191a1b);
  background-size: 42px 42px, 42px 42px, auto;
  box-shadow: var(--shadow);
}

.hero-instrument::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.instrument-topline {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px 18px;
  color: rgba(246, 239, 226, 0.72);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.instrument-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 72px);
  gap: 10px;
}

.instrument-tile {
  display: grid;
  align-content: end;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent), transparent 72%), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.instrument-tile:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent), white 26%);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent), transparent 56%), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.04);
}

.instrument-tile img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.instrument-tile span {
  overflow-wrap: anywhere;
  font-weight: 780;
}

.instrument-tile small {
  color: rgba(246, 239, 226, 0.62);
  font-size: 12px;
}

.tile-1 {
  grid-column: span 3;
  grid-row: span 3;
}

.tile-2 {
  grid-column: span 3;
  grid-row: span 2;
}

.tile-3,
.tile-4 {
  grid-column: span 2;
  grid-row: span 2;
}

.tile-5 {
  grid-column: span 2;
  grid-row: span 3;
}

.signal-board {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  height: 42px;
}

.signal-board span {
  align-self: end;
  min-height: 10px;
  border-radius: 3px;
  background: rgba(246, 239, 226, 0.24);
}

.signal-board span:nth-child(2) { height: 24px; background: rgba(8, 124, 240, 0.52); }
.signal-board span:nth-child(3) { height: 36px; background: rgba(39, 144, 111, 0.58); }
.signal-board span:nth-child(4) { height: 18px; background: rgba(206, 145, 68, 0.58); }
.signal-board span:nth-child(5) { height: 31px; background: rgba(223, 63, 98, 0.5); }

.studio-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.46);
}

.studio-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.studio-strip-grid > div {
  min-height: 108px;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.studio-strip-grid > div:first-child {
  border-left: 1px solid var(--line);
}

.metric {
  display: block;
  color: var(--ink);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

.metric-label {
  display: block;
  max-width: 260px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.intro-grid,
.philosophy-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 72px;
  align-items: start;
}

.section-heading {
  max-width: 620px;
}

.section-heading.wide {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(220px, 0.46fr);
  gap: 42px;
  align-items: end;
  max-width: none;
  margin-bottom: 34px;
}

.section-heading.wide .text-link {
  justify-self: end;
  margin-bottom: 18px;
}

.intro-copy {
  display: grid;
  gap: 18px;
}

.intro-copy p {
  margin-bottom: 0;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 91%), rgba(255, 252, 246, 0.82)),
    var(--surface-solid);
  box-shadow: 0 18px 46px rgba(32, 28, 21, 0.07);
}

.product-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 80%) 0 2px, transparent 2px 100%);
  background-size: 16px 16px;
  opacity: 0.18;
  content: "";
  pointer-events: none;
}

.product-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 24px;
}

.product-card-title {
  display: flex;
  gap: 13px;
  align-items: center;
}

.product-card-title img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  box-shadow: 0 9px 24px color-mix(in srgb, var(--accent), transparent 76%);
}

.product-card-title p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card-title h3 {
  margin: 0;
}

.product-card-copy > p {
  max-width: 410px;
  margin: 24px 0;
  color: var(--muted);
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-card-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.62);
  font-size: 13px;
  font-weight: 760;
}

.product-card-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 26px 20px 0 0;
}

.phone-frame {
  position: relative;
  width: min(170px, 100%);
  margin: 0;
  padding: 7px;
  border-radius: 28px;
  background: linear-gradient(135deg, #3b3d40, #0a0b0c);
  box-shadow: 0 22px 48px rgba(20, 18, 15, 0.28);
}

.phone-frame::before {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 56px;
  height: 15px;
  border-radius: 999px;
  background: #070708;
  content: "";
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.tools-visual {
  align-self: center;
  width: min(250px, 100%);
  padding: 13px;
  border: 1px solid rgba(23, 23, 23, 0.2);
  border-radius: 8px;
  background: #181b1b;
  color: #e9f4ec;
  box-shadow: 0 20px 46px rgba(20, 18, 15, 0.25);
}

.tools-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  color: rgba(233, 244, 236, 0.62);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tools-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.tools-toolbar span:nth-child(2) {
  background: var(--amber);
}

.tools-toolbar span:nth-child(3) {
  background: var(--coral);
}

.tools-toolbar b {
  margin-left: auto;
}

.tools-visual pre {
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #dfead8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.tools-output {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.tools-output span {
  padding: 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: rgba(233, 244, 236, 0.74);
  font-size: 10px;
  font-weight: 780;
  text-align: center;
}

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

.principle {
  display: grid;
  grid-template-columns: 54px 0.42fr 1fr;
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.principle:last-child {
  border-bottom: 1px solid var(--line);
}

.principle span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.principle h3 {
  margin: 0;
  font-size: 22px;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.blog-preview-copy {
  display: grid;
  align-content: start;
  min-height: 220px;
}

.blog-preview-copy h2 {
  max-width: 520px;
  margin-bottom: 22px;
}

.blog-preview .post-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.post-card,
.post-row,
.newsletter-section,
.article-cta,
.product-next,
.login-panel,
.admin-posts,
.editor-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.7);
}

.post-card {
  min-height: 230px;
  padding: 22px;
  transition: transform 160ms ease, background 160ms ease;
}

.post-card.product-post,
.post-row.product-post {
  border-color: color-mix(in srgb, var(--accent), transparent 68%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 92%), rgba(255, 252, 246, 0.74) 42%),
    rgba(255, 252, 246, 0.7);
}

.post-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 252, 246, 0.92);
}

.post-card-meta {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.post-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h3 {
  font-size: 24px;
}

.post-card-meta p {
  margin: 0;
}

.post-card span,
.muted {
  color: var(--muted);
}

.newsletter-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
  margin-bottom: 88px;
  padding: 30px;
  color: #f6efe2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #17191a;
  background-size: 30px 30px;
}

.newsletter-section h2,
.newsletter-section .eyebrow {
  color: #f6efe2;
}

.newsletter-section .eyebrow {
  opacity: 0.7;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.newsletter-form label,
.login-panel label,
.editor-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.newsletter-form input,
.login-panel input,
.editor-panel input,
.editor-panel select,
.editor-panel textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.86);
  color: var(--ink);
}

.newsletter-form input,
.login-panel input,
.editor-panel input,
.editor-panel select {
  min-height: 44px;
  padding: 0 12px;
}

.newsletter-form p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(246, 239, 226, 0.68);
  font-size: 13px;
}

.newsletter-form p a {
  border-bottom: 1px solid currentColor;
}

.site-footer {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.48);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 0.7fr);
  gap: 42px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 420px;
  color: var(--muted);
}

.site-footer h2 {
  margin: 4px 0 13px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a:not(.brand) {
  display: block;
  width: max-content;
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--ink);
}

.page-hero {
  padding: 58px 0 34px;
}

.page-hero.compact {
  max-width: 760px;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: stretch;
  padding: 58px 0 24px;
  --blog-hero-card-height: 320px;
}

.blog-hero-copy,
.blog-hero-panel,
.blog-filter-panel,
.blog-featured-card,
.blog-article-card,
.empty-blog-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.72);
}

.blog-hero-copy {
  position: relative;
  overflow: hidden;
  height: var(--blog-hero-card-height);
  padding: 30px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 91%), rgba(255, 252, 246, 0.78) 44%),
    rgba(255, 252, 246, 0.72);
}

.blog-hero-copy::after {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 180px;
  height: 120px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 74%) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--accent), transparent 80%) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.28;
  content: "";
  pointer-events: none;
}

.blog-title-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 6px 12px 6px 6px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.blog-title-mark span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.blog-title-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-title-mark b {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.blog-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 64px;
  line-height: 0.98;
}

.blog-hero .hero-lede {
  position: relative;
  z-index: 1;
  max-width: 760px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-hero-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  align-content: stretch;
  gap: 16px;
  height: var(--blog-hero-card-height);
  padding: 22px;
  color: #f6efe2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #17191a;
  background-size: 26px 26px;
}

.blog-hero-panel span,
.blog-hero-panel p {
  margin: 0;
  color: rgba(246, 239, 226, 0.66);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-hero-panel strong {
  display: flex;
  align-items: center;
  color: #f6efe2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.05;
}

.blog-hero-panel a {
  width: max-content;
  border-bottom: 1px solid currentColor;
  color: #f6efe2;
  font-size: 13px;
  font-weight: 780;
}

.blog-browser {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 0 0 72px;
}

.blog-filter-panel {
  position: sticky;
  top: 86px;
  padding: 16px;
  background: rgba(255, 252, 246, 0.66);
  box-shadow: 0 18px 50px rgba(28, 24, 17, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.blog-filter-panel h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.blog-filter-panel .blog-filter-rail {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.blog-filter-section {
  padding: 0 0 18px;
}

.blog-filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(34, 31, 27, 0.16);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.58);
  box-shadow: 0 18px 50px rgba(28, 24, 17, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.blog-filter-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.blog-filter-chip.product-filter {
  border-color: color-mix(in srgb, var(--accent), transparent 74%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 88%), rgba(255, 252, 246, 0.72));
}

.blog-filter-chip:hover,
.blog-filter-chip.active {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent, #171717), transparent 48%);
  background: rgba(255, 252, 246, 0.9);
  color: var(--ink);
}

.filter-letter {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #17191a;
  color: #f6efe2 !important;
  font-size: 12px;
  font-weight: 820;
}

.blog-feed {
  min-width: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.blog-is-loading .blog-feed {
  opacity: 0.48;
  transform: translateY(4px);
  pointer-events: none;
}

.blog-fragment-enter .blog-feed {
  animation: blog-feed-enter 180ms ease both;
}

@keyframes blog-feed-enter {
  from {
    opacity: 0.68;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-feed-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.blog-feed-head h2 {
  margin: 0;
  font-size: 30px;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.blog-featured-card.product-post,
.blog-article-card.product-post {
  border-color: color-mix(in srgb, var(--accent), transparent 68%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 92%), rgba(255, 252, 246, 0.76) 46%),
    rgba(255, 252, 246, 0.72);
}

.blog-featured-logo {
  display: grid;
  min-height: 230px;
  align-content: space-between;
  padding: 16px;
  border-radius: 8px;
  color: #f6efe2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    #17191a;
  background-size: 24px 24px;
}

.blog-featured-logo img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.blog-featured-logo span {
  color: rgba(246, 239, 226, 0.78);
  font-size: 13px;
  font-weight: 820;
}

.blog-featured-copy {
  display: grid;
  align-content: start;
}

.blog-card-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
}

.blog-card-meta-line time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.blog-featured-card h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: 36px;
}

.blog-featured-card p,
.blog-article-card p,
.empty-blog-state p {
  color: var(--muted);
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.blog-card-grid.single-card {
  grid-template-columns: 1fr;
}

.blog-card-grid.single-card .blog-article-card {
  min-height: 168px;
}

.blog-article-card {
  min-height: 190px;
  padding: 18px;
}

.blog-article-card h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.empty-blog-state {
  padding: 28px;
}

.post-list-section {
  padding: 18px 0 64px;
}

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

.post-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 20px;
}

.post-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.post-row time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.post-row h2 {
  margin-bottom: 8px;
  font-size: 25px;
}

.post-row p {
  max-width: 720px;
  margin-bottom: 14px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(255, 252, 246, 0.58);
  font-size: 12px;
  font-weight: 720;
}

.product-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  width: max-content;
  padding: 3px 9px 3px 4px;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 66%);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), color-mix(in srgb, var(--accent), transparent 86%)),
    rgba(255, 252, 246, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 28px color-mix(in srgb, var(--accent), transparent 84%);
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.product-badge.compact {
  min-height: 28px;
  padding: 3px 8px 3px 4px;
  font-size: 11px;
}

.product-badge-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.05);
}

.product-badge.compact .product-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.product-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .product-badge span,
.post-row .product-badge span,
.article-header .product-badge span,
.blog-filter-chip span {
  color: inherit;
}

.article-shell {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 42px;
}

.article-header {
  margin-bottom: 34px;
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.article-meta-line .eyebrow {
  margin: 0;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--muted);
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 760;
}

.article-header p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

.article-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  margin: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-content {
  color: #292724;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 34px 0 11px;
}

.article-content h2 {
  font-size: 27px;
}

.article-content h3 {
  font-size: 21px;
}

.article-content p,
.article-content li {
  color: #47433c;
  font-size: 16px;
  line-height: 1.72;
}

.article-content a {
  color: #075aa9;
  border-bottom: 1px solid currentColor;
}

.article-content img {
  width: 100%;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-content pre {
  overflow: auto;
  margin: 28px 0;
  padding: 18px;
  border-radius: 8px;
  background: #17191a;
  color: #f2eadc;
  font-size: 14px;
  line-height: 1.65;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.article-content p code,
.article-content li code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 252, 246, 0.8);
  color: #1b1b1b;
  font-size: 0.92em;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--green);
  background: rgba(255, 252, 246, 0.62);
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.table-scroll {
  overflow: auto;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 252, 246, 0.7);
}

.article-content th,
.article-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 34px;
  padding: 22px;
}

.article-cta p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.62fr);
  gap: 34px;
  align-items: center;
  min-height: auto;
  padding: 44px 0 52px;
}

.product-title-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.product-title-row img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent), transparent 75%);
}

.product-title-row h1 {
  margin-bottom: 0;
}

.product-title-row .eyebrow {
  margin-bottom: 5px;
}

.product-visual-large {
  display: grid;
  place-items: center;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent), transparent 82%) 0 1px, transparent 1px 100%),
    linear-gradient(color-mix(in srgb, var(--accent), transparent 86%) 0 1px, transparent 1px 100%),
    rgba(255, 252, 246, 0.56);
  background-size: 34px 34px;
}

.product-visual-large .phone-frame {
  width: 176px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-list article {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 15px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.detail-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-list span {
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.detail-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.product-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 0;
}

.product-proof span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.64);
  color: var(--muted);
  font-weight: 760;
}

.product-next {
  margin-bottom: 64px;
  padding: 22px;
}

.mini-product-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.mini-product-row a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 52px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent), transparent 93%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.mini-product-row img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  flex: 0 0 auto;
}

.login-shell {
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.login-panel {
  width: min(420px, 100%);
  padding: 28px;
}

.login-panel p {
  color: var(--muted);
}

.login-panel code {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(23, 23, 23, 0.08);
}

.login-panel label {
  margin: 22px 0 16px;
}

.admin-shell {
  width: min(1320px, calc(100% - 34px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.admin-topbar h1 {
  margin-bottom: 0;
  font-size: 44px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-posts {
  position: sticky;
  top: 84px;
  overflow: hidden;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 820;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.72);
  font-size: 22px;
  line-height: 1;
}

.admin-post-list {
  display: grid;
  max-height: calc(100svh - 170px);
  overflow: auto;
}

.admin-post-list button {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.admin-post-list button:hover {
  background: rgba(255, 252, 246, 0.7);
}

.admin-post-list strong {
  font-size: 14px;
}

.admin-post-list span {
  color: var(--muted);
  font-size: 12px;
}

.editor-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkbox-label {
  align-content: end;
  min-height: 69px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  padding-bottom: 9px;
}

.editor-panel textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.6;
}

.markdown-editor {
  min-height: 440px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 0.42fr);
  gap: 10px;
}

.file-input {
  padding: 9px 10px !important;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .desktop-nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 252, 246, 0.7);
  }

  .menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
  }

  .mobile-nav {
    position: fixed;
    z-index: 90;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 252, 246, 0.96);
    box-shadow: var(--shadow);
  }

  body.menu-open .mobile-nav {
    display: grid;
  }

  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 6px;
    font-weight: 760;
  }

  .mobile-nav a:hover {
    background: rgba(23, 23, 23, 0.06);
  }

  .hero-section,
  .intro-grid,
  .philosophy-grid,
  .blog-preview-grid,
  .product-hero,
  .product-detail-grid,
  .newsletter-section,
  .article-cta {
    grid-template-columns: 1fr;
  }

  .blog-hero,
  .blog-browser {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    --blog-hero-card-height: 300px;
  }

  .blog-filter-panel {
    position: relative;
    top: auto;
  }

  .blog-filter-panel .blog-filter-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .product-hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-instrument {
    min-height: 360px;
  }

  .section-heading.wide {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .section-heading.wide .text-link {
    justify-self: start;
    margin-bottom: 0;
  }

  .product-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .blog-preview-grid {
    gap: 26px;
    padding-top: 26px;
  }

  .blog-preview-copy {
    min-height: 0;
  }

  .product-card {
    grid-template-columns: 1fr 150px;
  }

  .principle {
    grid-template-columns: 42px 1fr;
  }

  .principle p {
    grid-column: 2;
  }

  .studio-strip-grid {
    grid-template-columns: 1fr;
  }

  .studio-strip-grid > div,
  .studio-strip-grid > div:first-child {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .footer-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-posts {
    position: relative;
    top: auto;
  }

  .mini-product-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 24px, 1160px);
  }

  body {
    font-size: 15px;
  }

  .section-block {
    padding: 48px 0;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 25px;
  }

  .hero-lede,
  .intro-copy p,
  .article-content p,
  .article-content li {
    font-size: 16px;
  }

  .hero-instrument {
    min-height: 360px;
    padding: 12px;
  }

  .blog-hero {
    gap: 12px;
    padding-top: 34px;
    --blog-hero-card-height: 280px;
  }

  .blog-hero-copy,
  .blog-hero-panel,
  .blog-filter-panel,
  .blog-featured-card,
  .blog-article-card {
    padding: 18px;
  }

  .blog-hero h1 {
    font-size: 36px;
  }

  .blog-hero .hero-lede {
    -webkit-line-clamp: 3;
  }

  .blog-hero-panel strong {
    font-size: 28px;
  }

  .blog-filter-panel .blog-filter-rail {
    grid-template-columns: 1fr;
  }

  .blog-feed-head {
    align-items: start;
    flex-direction: column;
  }

  .blog-featured-card {
    grid-template-columns: 1fr;
  }

  .blog-featured-logo {
    min-height: 118px;
  }

  .blog-featured-card h2 {
    font-size: 28px;
  }

  .instrument-topline {
    display: grid;
  }

  .instrument-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }

  .instrument-tile,
  .tile-1,
  .tile-2,
  .tile-3,
  .tile-4,
  .tile-5 {
    grid-column: auto;
    grid-row: auto;
    min-height: 88px;
  }

  .signal-board {
    display: none;
  }

  .product-card {
    grid-template-columns: 1fr;
  }

  .blog-filter-rail {
    gap: 7px;
    padding: 10px;
  }

  .blog-filter-chip {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .post-card-meta {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .post-row-meta {
    flex-flow: row wrap;
    align-items: center;
  }

  .product-badge {
    max-width: 100%;
  }

  .product-card-visual {
    justify-content: flex-start;
    padding: 0 24px 24px;
  }

  .phone-frame {
    width: 132px;
  }

  .newsletter-form,
  .post-row,
  .two-col,
  .upload-row {
    grid-template-columns: 1fr;
  }

  .post-row {
    gap: 12px;
    padding: 20px;
  }

  .article-shell {
    padding-top: 42px;
  }

  .article-cta {
    align-items: start;
  }

  .product-visual-large {
    min-height: 340px;
  }

  .product-visual-large .phone-frame {
    width: 160px;
  }

  .mini-product-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .blog-filter-panel .blog-filter-rail {
    flex-wrap: nowrap;
  }
}

@media (max-width: 680px) {
  .blog-filter-panel .blog-filter-rail {
    flex-wrap: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* Microsoft-inspired home treatment */
body.ms-home {
  background: #fff;
  color: #1a1a1a;
  font-family: "Segoe UI", "Avenir Next", system-ui, sans-serif;
}

body.ms-home::before {
  display: none;
}

.ms-home .site-header {
  min-height: 54px;
  padding-inline: max(5vw, calc((100vw - 1360px) / 2));
  border-bottom: 0;
  background: #fff;
}

.ms-home .site-header.is-scrolled {
  min-height: 54px;
  border-bottom: 1px solid #e5e5e5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
}

.ms-home .brand {
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
}

.ms-home .brand img {
  width: 27px;
  height: 27px;
  border-radius: 2px;
  box-shadow: none;
}

.ms-home .desktop-nav {
  justify-content: flex-start;
  border: 0;
  background: transparent;
}

.ms-home .desktop-nav a,
.ms-home .header-action {
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #262626;
  font-size: 13px;
  font-weight: 400;
}

.ms-home .desktop-nav a:hover,
.ms-home .header-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ms-main {
  padding-bottom: 42px;
}

.ms-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(480px, 0.58fr);
  min-height: 430px;
  margin-top: 14px;
  overflow: hidden;
  background: #f2f2f2;
}

.ms-hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 48px 54px;
}

.ms-kicker {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin: 0 0 10px;
  padding: 3px 10px;
  background: #ffb900;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
}

.ms-hero h1,
.ms-wide-promo h2,
.ms-section-title {
  margin: 0 0 16px;
  color: #1a1a1a;
  font-family: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.18;
}

.ms-hero h1 {
  max-width: 460px;
  font-size: 34px;
}

.ms-hero p,
.ms-wide-promo p,
.ms-card p {
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.5;
}

.ms-hero p {
  max-width: 480px;
  margin-bottom: 22px;
}

.ms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.ms-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #0067b8;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.ms-button:hover {
  background: #005da6;
}

.ms-link,
.ms-card-link {
  color: #0067b8;
  font-size: 15px;
  font-weight: 600;
}

.ms-link:hover,
.ms-card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  background:
    linear-gradient(135deg, rgba(0, 103, 184, 0.08), rgba(16, 124, 16, 0.07)),
    #e8eef4;
}

.ms-hero-stage::before {
  position: absolute;
  inset: 44px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  content: "";
}

.ms-device-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  padding: 34px;
}

.ms-device {
  display: grid;
  align-content: end;
  width: 154px;
  min-height: 306px;
  padding: 10px;
  background: #111;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.ms-device:nth-child(2) {
  width: 174px;
  min-height: 338px;
}

.ms-device-screen {
  width: 100%;
  height: 252px;
  object-fit: cover;
  object-position: top center;
  background: #f8f8f8;
}

.ms-device:nth-child(2) .ms-device-screen {
  height: 284px;
}

.ms-device span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.ms-device span img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

.ms-quick-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
  padding: 34px 0 30px;
}

.ms-quick-link {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #0067b8;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.ms-quick-link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-quick-link img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.ms-section {
  padding: 16px 0 38px;
}

.ms-section-title {
  font-size: 28px;
}

.ms-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.ms-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.ms-card-media {
  display: grid;
  min-height: 178px;
  place-items: center;
  overflow: hidden;
  background: #f2f2f2;
}

.ms-card-media > img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  object-position: top center;
}

.ms-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 22px 24px;
}

.ms-card-kicker {
  min-height: 18px;
  margin: 0 0 7px;
  color: #616161 !important;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ms-card h3 {
  margin: 0 0 10px;
  color: #1a1a1a;
  font-family: "Segoe UI", "Avenir Next", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.ms-card p {
  margin: 0 0 22px;
}

.ms-card-link {
  margin-top: auto;
}

.ms-card-text {
  min-height: 270px;
}

.ms-tools-panel {
  width: 100%;
  height: 205px;
  padding: 18px;
  background: #f2f2f2;
}

.ms-tools-panel div {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.ms-tools-panel span {
  width: 10px;
  height: 10px;
  background: #0067b8;
}

.ms-tools-panel pre {
  margin: 0 0 18px;
  padding: 14px;
  background: #fff;
  color: #333;
  font-family: Consolas, ui-monospace, monospace;
  font-size: 12px;
}

.ms-tools-panel strong {
  color: #1a1a1a;
  font-size: 18px;
}

.ms-wide-promo {
  min-height: 360px;
  display: grid;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 46px;
  padding: 52px;
  background:
    linear-gradient(90deg, #f2f2f2 0%, #f2f2f2 46%, rgba(242, 242, 242, 0.72) 62%, rgba(242, 242, 242, 0.2) 100%),
    linear-gradient(135deg, rgba(0, 103, 184, 0.12), rgba(16, 124, 16, 0.12));
}

.ms-wide-promo > div {
  max-width: 500px;
}

.ms-wide-promo h2 {
  font-size: 30px;
}

.ms-wide-promo .ms-button {
  margin-top: 8px;
}

.ms-home .newsletter-section {
  grid-template-columns: 0.8fr 1.2fr;
  margin-top: 18px;
  color: #1a1a1a;
  background: #f2f2f2;
}

.ms-home .newsletter-section h2,
.ms-home .newsletter-section .eyebrow {
  color: #1a1a1a;
}

.ms-home .newsletter-section p,
.ms-home .newsletter-form p {
  color: #4a4a4a;
}

.ms-home .newsletter-form input {
  background: #fff;
}

.ms-home .newsletter-form .button.primary {
  background: #0067b8;
  border-color: #0067b8;
}

@media (max-width: 1040px) {
  .ms-hero {
    grid-template-columns: 1fr;
  }

  .ms-hero-copy {
    padding: 34px;
  }

  .ms-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ms-home .site-header {
    padding-inline: 16px;
  }

  .ms-hero {
    margin-top: 0;
  }

  .ms-hero-copy {
    padding: 26px 22px;
  }

  .ms-hero h1 {
    font-size: 28px;
  }

  .ms-hero-stage {
    min-height: 330px;
  }

  .ms-device-row {
    gap: 10px;
    padding: 22px;
  }

  .ms-device {
    width: 112px;
    min-height: 240px;
  }

  .ms-device:nth-child(2) {
    width: 126px;
    min-height: 266px;
  }

  .ms-device-screen {
    height: 190px;
  }

  .ms-device:nth-child(2) .ms-device-screen {
    height: 216px;
  }

  .ms-device span {
    font-size: 11px;
  }

  .ms-quick-links,
  .ms-card-grid {
    grid-template-columns: 1fr;
  }

  .ms-wide-promo {
    min-height: 0;
    padding: 30px 22px;
  }
}
