:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #60716d;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --line: #dedbd0;
  --moss: #26473f;
  --moss-2: #3f675d;
  --coral: #d7654c;
  --gold: #c89435;
  --aqua: #7fb8b1;
  --shadow: 0 24px 80px rgba(23, 33, 31, 0.13);
  --radius: 8px;
  --max: 1180px;
  --section-space: 128px;
  --section-space-mobile: 76px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-body);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(127, 184, 177, 0.12), transparent 22rem),
    linear-gradient(180deg, #fbfaf6 0%, #f5f2ea 56%, #ebe5d7 100%);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 10px auto 0;
  padding: 0 14px 0 18px;
  border: 1px solid rgba(222, 219, 208, 0.86);
  border-radius: var(--radius);
  background: rgba(251, 250, 246, 0.88);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-elevated {
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 16px 50px rgba(23, 33, 31, 0.1);
}

.brand,
.nav,
.header-actions,
.lock-link,
.nav-cta,
.button,
.hero-stats,
.trusted-strip,
.proof-details {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav {
  gap: 6px;
  padding: 4px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.nav a {
  min-height: 38px;
  padding: 10px 13px;
  border-radius: 6px;
  color: #3b4d49;
  font-size: 0.92rem;
  font-weight: 680;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.header-actions {
  gap: 10px;
}

.lock-link {
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--moss);
  transition: transform 160ms ease, background 160ms ease;
}

.lock-link:hover {
  transform: translateY(-2px);
  background: #fff;
}

.nav-cta,
.button {
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 760;
}

.nav-cta {
  padding: 0 16px;
  background: var(--ink);
  color: #fff8ec;
  font-size: 0.92rem;
}

.lock-link svg,
.nav-cta svg,
.button svg,
.service-card svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.section-shell {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
  grid-template-areas:
    "statement statement"
    "copy visual";
  gap: 76px;
  row-gap: 48px;
  align-items: end;
  min-height: calc(100svh - 112px);
  padding: 26px 0 58px;
}

.hero-top-statement {
  grid-area: statement;
  display: flex;
  justify-content: center;
  min-height: 150px;
  align-items: center;
  text-align: center;
}

.hero-top-statement p {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.1vw, 3.15rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  grid-area: copy;
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 18ch;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.15vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  max-width: 16ch;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.25vw, 2.55rem);
  font-weight: 720;
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead,
.intro-grid > p,
.section-heading p,
.contact-grid > div > p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.lead {
  max-width: 640px;
  margin-bottom: 30px;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 660px;
  margin-bottom: 34px;
}

.hero-actions .button {
  width: 100%;
  min-width: 0;
}

.button {
  width: fit-content;
  min-width: 156px;
  padding: 0 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--moss);
  color: #fff8ec;
  box-shadow: 0 16px 34px rgba(38, 71, 63, 0.18);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 660px;
  margin: 0;
}

.hero-stats div {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 132px;
  padding: 22px 24px;
  border: 1px solid rgba(222, 219, 208, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.hero-stats dt {
  max-width: 8ch;
  font-size: 1.16rem;
  line-height: 1.08;
  font-weight: 820;
}

.hero-stats dd {
  max-width: 10ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.16;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 11% -7% -9% 6%;
  content: "";
  border-radius: 999px;
  background:
    radial-gradient(circle at 68% 38%, rgba(215, 101, 76, 0.18), transparent 34%),
    radial-gradient(circle at 24% 66%, rgba(127, 184, 177, 0.32), transparent 36%),
    rgba(200, 148, 53, 0.14);
  filter: blur(34px);
}

.hero-visual img {
  position: relative;
  width: 100%;
  height: 488px;
  object-fit: cover;
  transform: translateY(4px);
  border-radius: 2px;
  box-shadow: 0 38px 110px rgba(23, 33, 31, 0.2);
  z-index: 1;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 68px;
  align-items: end;
  padding: var(--section-space) 0;
}

.services,
.proof,
.contact-grid {
  padding: var(--section-space) 0;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.section-heading.split {
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 40px;
}

.section-heading.split h2 {
  max-width: 13ch;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 242px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 33, 31, 0.08);
}

.service-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: 42px;
  color: var(--moss-2);
}

.service-card p,
.case-card span,
.proof-details span {
  color: var(--muted);
  line-height: 1.55;
}

.work {
  overflow: hidden;
  padding: var(--section-space) 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(127, 184, 177, 0.2), transparent 28rem),
    linear-gradient(180deg, #f8f6f0 0%, #eee8db 100%);
  color: var(--ink);
}

.work .eyebrow {
  color: var(--coral);
}

.work .section-heading p,
.case-card span {
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.work-feature {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid rgba(255, 248, 236, 0.14);
  border-radius: 2px;
  background: rgba(255, 248, 236, 0.06);
}

.work-feature span {
  color: #e59b82;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-feature h3 {
  margin: 8px 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

.work-feature p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 248, 236, 0.68);
  line-height: 1.6;
}

.work-feature .button-secondary {
  border-color: rgba(255, 248, 236, 0.24);
  background: #fff8ec;
  color: var(--ink);
}

.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 520px;
  padding: 12px;
  border: 1px solid rgba(222, 219, 208, 0.95);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(23, 33, 31, 0.06);
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 2px;
}

.case-card div {
  display: grid;
  align-content: end;
  padding: 22px 8px 8px;
}

.case-card h3 {
  max-width: 18ch;
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.case-card.featured {
  background: rgba(255, 255, 255, 0.82);
}

.process-story {
  position: relative;
  overflow: hidden;
  padding: var(--section-space) 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(127, 184, 177, 0.24), transparent 30rem),
    linear-gradient(180deg, #f7f5ef 0%, #e9e3d6 100%);
  color: var(--ink);
}

.process-story .eyebrow {
  color: var(--coral);
}

.process-story .section-heading {
  margin-bottom: 48px;
}

.process-story .section-heading p {
  color: var(--muted);
}

.story-panels {
  display: grid;
  gap: 28px;
}

.story-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  min-height: 380px;
  padding: clamp(26px, 4.2vw, 48px);
  border: 1px solid rgba(222, 219, 208, 0.95);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(127, 184, 177, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 24px 70px rgba(23, 33, 31, 0.09);
}

.story-panel::after {
  position: absolute;
  inset: auto 8% -1px 42%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(127, 184, 177, 0.55), transparent);
  filter: blur(1px);
}

.story-panel.reverse {
  grid-template-columns: minmax(420px, 1.06fr) minmax(0, 0.94fr);
}

.story-panel.reverse .story-copy {
  order: 2;
}

.story-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.story-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-color: rgba(38, 71, 63, 0.34);
  border-radius: 999px;
  color: var(--moss);
  font-size: 1.45rem;
  font-weight: 620;
}

.story-copy h3 {
  max-width: 15ch;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.45vw, 2.55rem);
  line-height: 1.06;
}

.story-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 520;
  line-height: 1.58;
}

.story-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid rgba(38, 71, 63, 0.28);
  border-radius: 999px;
  color: var(--moss);
  font-weight: 760;
}

.story-visual {
  position: relative;
  min-height: 300px;
}

.story-visual::before {
  position: absolute;
  inset: 58% 10% 0;
  content: "";
  background: rgba(127, 184, 177, 0.42);
  border-radius: 999px;
  filter: blur(24px);
}

.login-card,
.chart-card,
.table-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.48)),
    rgba(58, 77, 91, 0.28);
  box-shadow: 0 24px 70px rgba(23, 33, 31, 0.12);
  backdrop-filter: blur(18px);
}

.login-card {
  display: grid;
  justify-items: center;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 64px 42px 44px;
  border-radius: 18px;
}

.login-card strong {
  color: var(--moss);
  font-size: 3.4rem;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.login-card small {
  margin: 24px 0 16px;
  color: rgba(38, 71, 63, 0.5);
  letter-spacing: 0.38em;
}

.login-card div {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(38, 71, 63, 0.12);
  border-radius: 4px;
  background: rgba(38, 71, 63, 0.08);
}

.login-card button {
  width: 168px;
  height: 30px;
  margin-top: 20px;
  border: 0;
  border-radius: 999px;
  background: var(--moss);
  color: #fff8ec;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.32em;
}

.orbit {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #fff;
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 820;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.orbit-a { top: -14px; left: 12%; }
.orbit-b { top: 33%; right: 7%; background: rgba(127, 184, 177, 0.9); }
.orbit-c { bottom: 4%; left: 18%; background: rgba(215, 101, 76, 0.9); color: #fff; }
.orbit-d { top: 12%; right: 25%; width: 76px; height: 76px; }

.analytics {
  min-height: 330px;
}

.chart-card {
  width: min(100%, 540px);
  padding: 22px 24px 26px;
  border-radius: 18px;
}

.chart-card header,
.table-card header {
  display: flex;
  justify-content: space-between;
  color: rgba(23, 33, 31, 0.72);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chart-card small {
  color: rgba(23, 33, 31, 0.42);
}

.bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 18px;
  height: 190px;
  margin-top: 28px;
  padding: 0 8px;
  border-bottom: 1px solid rgba(23, 33, 31, 0.12);
}

.bars i {
  display: block;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #c89435, #7fb8b1);
  box-shadow: 0 0 24px rgba(127, 184, 177, 0.22);
}

.insight-card {
  position: absolute;
  z-index: 4;
  left: -24px;
  bottom: -4px;
  width: 245px;
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--moss), #7fb8b1);
  color: #fff;
  box-shadow: 0 24px 60px rgba(38, 71, 63, 0.2);
}

.insight-card span,
.insight-card small {
  display: block;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.insight-card strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 2.5rem;
}

.table-card {
  width: min(100%, 500px);
  margin: 20px auto 0;
  padding: 20px;
  border-radius: 18px;
}

.table-card div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(23, 33, 31, 0.72);
}

.table-card b {
  display: grid;
  height: 30px;
  place-items: center;
  border-radius: 4px;
  background: rgba(38, 71, 63, 0.82);
  color: #fff;
  font-size: 0.78rem;
}

.proof-panel {
  padding: clamp(28px, 5vw, 64px);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(127, 184, 177, 0.24), transparent 42%),
    #fff;
  box-shadow: 0 18px 55px rgba(23, 33, 31, 0.08);
}

.quote {
  max-width: 880px;
  margin-bottom: 42px;
  font-family: var(--font-display);
  font-size: clamp(1.72rem, 2.65vw, 2.95rem);
  font-weight: 620;
  line-height: 1.13;
  letter-spacing: 0;
}

.proof-details {
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.proof-details div {
  display: grid;
  gap: 6px;
}

.contact {
  background: #fdfcf8;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.68fr);
  gap: 72px;
  align-items: start;
}

.contact-grid h2 {
  max-width: 13ch;
  margin-bottom: 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(23, 33, 31, 0.08);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #40524e;
  font-size: 0.92rem;
  font-weight: 720;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8d4c7;
  border-radius: 6px;
  padding: 13px 14px;
  background: #fbfaf6;
  color: var(--ink);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(127, 184, 177, 0.34);
  border-color: var(--moss-2);
}

.contact-form .button {
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px max(16px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #fdfcf8;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 820;
}

.dashboard-page {
  min-height: 100vh;
}

.dashboard-header {
  position: relative;
}

.dashboard-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 72px 0 110px;
}

.dashboard-gate,
.dashboard-content {
  min-height: calc(100vh - 220px);
}

.gate-card {
  display: grid;
  justify-items: start;
  max-width: 760px;
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(127, 184, 177, 0.18), transparent 38%),
    #fff;
  box-shadow: var(--shadow);
}

.gate-card > svg {
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  color: var(--moss);
}

.gate-card h1,
.dashboard-hero h1 {
  max-width: 13ch;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 4.1vw, 4.2rem);
}

.gate-card p:not(.eyebrow),
.dashboard-hero p,
.project-card p {
  color: var(--muted);
  line-height: 1.65;
}

.gate-card .button {
  margin-top: 16px;
}

.gate-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 760px;
  margin-top: 16px;
}

.gate-shortcuts a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 760;
}

.gate-shortcuts svg {
  width: 18px;
  height: 18px;
  color: var(--moss-2);
}

.dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-actions .button {
  min-width: 148px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-width: 0;
  min-height: 275px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 55px rgba(23, 33, 31, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: project-card-in 420ms both;
}

.myking-remote {
  margin: 0 0 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(38, 71, 63, 0.1), rgba(255, 255, 255, 0.76));
}

.myking-remote-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.myking-remote-heading h2 { margin: 0 0 8px; }
.myking-remote-heading p { margin: 0; color: var(--muted); }
.myking-remote-state { color: var(--muted); font-weight: 760; white-space: nowrap; }
.myking-remote-state.is-online { color: var(--moss); }
.myking-remote-grid { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 24px; align-items: start; margin-top: 24px; }
.myking-remote-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.myking-remote-actions .button { min-width: 0; width: 100%; }
.myking-command-message { grid-column: 1 / -1; min-height: 22px; margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
.myking-remote-details p { margin: 0 0 8px; color: var(--muted); overflow-wrap: anywhere; }
.myking-remote-details strong { color: var(--ink); }
.myking-tunnel-link { display: block; margin-top: 14px; color: var(--moss); font-size: 0.85rem; overflow-wrap: anywhere; }
.myking-qr-wrap { display: grid; gap: 8px; justify-items: center; color: var(--muted); font-size: 0.8rem; text-align: center; }
.myking-qr-wrap img { width: 150px; height: 150px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.project-card:nth-child(2) { animation-delay: 50ms; }
.project-card:nth-child(3) { animation-delay: 100ms; }
.project-card:nth-child(4) { animation-delay: 150ms; }
.project-card:nth-child(5) { animation-delay: 200ms; }
.project-card:nth-child(6) { animation-delay: 250ms; }
.project-card:nth-child(7) { animation-delay: 300ms; }
.project-card:nth-child(8) { animation-delay: 350ms; }

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: 0 16px 28px rgba(31, 41, 38, 0.1);
}

@keyframes project-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .project-card { animation: none; transition: none; }
  .project-card:hover { transform: none; }
}

.project-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--moss);
  color: #fff8ec;
}

.project-icon svg {
  width: 20px;
  height: 20px;
}

.project-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h2 {
  margin-bottom: 7px;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  overflow-wrap: anywhere;
}

.project-links {
  display: grid;
  gap: 7px;
  min-width: 0;
  align-self: end;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.project-links svg {
  width: 18px;
  height: 18px;
  color: var(--moss-2);
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
    padding-block: 12px;
  }

  .nav {
    display: none;
  }

  .hero,
  .intro-grid,
  .section-heading.split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "statement"
      "copy"
      "visual";
    min-height: auto;
    align-items: center;
    padding-top: 40px;
    gap: 42px;
  }

  .hero-top-statement {
    min-height: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .hero-visual img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  h1 {
    max-width: 12ch;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .work-feature {
    display: grid;
  }

  .case-card,
  .case-card.featured {
    min-height: auto;
    transform: none;
  }

  .case-card img {
    aspect-ratio: 16 / 10;
  }

  .story-panel,
  .story-panel.reverse {
    grid-template-columns: 1fr;
  }

  .story-panel.reverse .story-copy {
    order: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  .brand span:last-child {
    max-width: 112px;
    white-space: normal;
    line-height: 1.05;
  }

  .nav-cta {
    min-width: 44px;
    padding-inline: 13px;
  }

  .nav-cta svg {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .lock-link {
    width: 44px;
    min-width: 44px;
  }

  .section-shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero {
    gap: 36px;
    padding-top: 36px;
  }

  h1 {
    max-width: 18ch;
    font-size: clamp(1.95rem, 8vw, 2.25rem);
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.7rem, 8vw, 2.12rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .intro-grid,
  .services,
  .process-story,
  .proof,
  .contact-grid,
  .work {
    padding-block: var(--section-space-mobile);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 210px;
  }

  .story-panel {
    min-height: auto;
    padding: 24px;
    border-radius: 18px;
  }

  .story-copy {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .story-number {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .story-copy h3 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .story-copy p {
    font-size: 1rem;
  }

  .story-copy a {
    width: 100%;
  }

  .story-visual {
    min-height: 260px;
  }

  .login-card {
    width: 100%;
    padding: 48px 24px 34px;
  }

  .login-card strong {
    font-size: 3.2rem;
  }

  .orbit {
    width: 50px;
    height: 50px;
  }

  .orbit-d {
    width: 62px;
    height: 62px;
  }

  .insight-card {
    left: 0;
    width: 210px;
  }

  .contact-form {
    padding: 14px;
  }

  .dashboard-shell {
    width: min(calc(100% - 24px), var(--max));
    padding-top: 48px;
  }

  .dashboard-hero {
    display: grid;
    align-items: start;
  }

  .dashboard-actions {
    justify-content: stretch;
  }

  .dashboard-actions .button {
    width: 100%;
  }

  .dashboard-logout {
    width: auto;
  }
}
