@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --canvas: #ffffff;
  --surface: #f6f7f8;
  --surface-blue: #eef3fa;
  --ink: #15191e;
  --text: #39434d;
  --muted: #69747e;
  --line: #dce1e5;
  --accent: #315f9f;
  --accent-hover: #244b80;
  --success: #33715a;
  --font: "Inter", system-ui, sans-serif;
  --container: 1180px;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(29, 42, 57, .10);
  --ease: cubic-bezier(.2, .75, .25, 1);

  /* Shared type scale — reused across homepage + every case study */
  --fs-h1: clamp(2.75rem, 1.2rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem);
  --fs-h3-flagship: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .6vw, 1.625rem);

  /* Shared spacing rhythm */
  --section-pad: 6rem;
  --section-pad-mobile: 4rem;
}

/* Portfolio case-study system */
.case-page.portfolio-case { padding-top: 0; background: var(--canvas); }
.pc-hero { overflow: hidden; padding: 7rem 0 0; }
.pc-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
}
.pc-hero h1 {
  max-width: 850px;
  font-size: var(--fs-h1);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.pc-hero-summary { padding-bottom: .35rem; }
.pc-hero-summary > p {
  max-width: 510px;
  margin: 0;
  color: var(--text);
  font-size: 1.16rem;
  line-height: 1.6;
}
.pc-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
}
.pc-meta div { padding-top: 1rem; border-top: 1px solid var(--line); }
.pc-meta dt {
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pc-meta dd { margin: 0; font-size: .82rem; font-weight: 500; line-height: 1.45; }
.pc-hero-summary .pc-meta + .inline-link { display: block; margin-top: 1.5rem; }
.pc-demo-note { margin: .6rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.pc-hero-stage {
  position: relative;
  height: 640px;
  margin: 5rem 0 0;
  overflow: hidden;
}
.pc-hero-stage figcaption {
  position: absolute;
  z-index: 4;
  left: 1.25rem;
  bottom: 1rem;
  color: var(--muted);
  font-size: .68rem;
}
.case-app {
  overflow: hidden;
  background: white;
  border: 1px solid #ccd6e0;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(29, 42, 57, .14);
}
.case-app-bar {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0 1.35rem;
  border-bottom: 1px solid var(--line);
  font-size: .68rem;
}
.case-app-bar span { margin-right: auto; color: var(--muted); font-size: .55rem; }
.case-app-bar button {
  border: 0;
  border-radius: 5px;
  padding: .55rem .75rem;
  background: var(--accent);
  color: white;
  font-size: .52rem;
  font-weight: 600;
}
.case-app-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}
.case-app-nav strong {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--accent);
  color: white;
  font-size: .62rem;
}
.case-app-nav i { width: 24px; height: 24px; border-radius: 4px; background: #edf1f4; }
.case-app-nav i.active { background: var(--ink); }
.task-preview .case-app, .employee-preview .case-app { width: 100%; height: 320px; }
.task-board-app .case-shot, .task-detail-app .case-shot,
.employee-operations-app .case-shot, .employee-roster-app .case-shot { object-position: left top; }
.case-app-heading { display: flex; align-items: center; justify-content: space-between; }
.case-app-heading small, .case-app-heading b { display: block; }
.case-app-heading small { color: var(--muted); font-size: .54rem; }
.case-app-heading b { font-size: 1rem; }
.case-app-heading > span {
  min-width: 170px;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: .5rem;
}

.pc-value-section { padding: var(--section-pad) 0; }
.pc-value-section > .container > .eyebrow { margin-bottom: 2.5rem; }
.pc-value-grid {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: clamp(4rem, 10vw, 10rem);
}
.pc-value-grid article { position: relative; padding-top: 2rem; border-top: 1px solid var(--line); }
.pc-value-grid article:nth-child(2) { margin-top: 5rem; }
.pc-value-grid article > span {
  position: absolute;
  top: 2rem;
  right: 0;
  color: rgba(21, 25, 30, .14);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}
.pc-value-grid h2 { max-width: 520px; font-size: var(--fs-h2); }
.pc-value-grid p { max-width: 520px; margin: 1.6rem 0 0; color: var(--text); font-size: 1.04rem; }

.pc-product-section { overflow: hidden; padding: var(--section-pad) 0; background: var(--surface); }
.pc-section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 310px;
  gap: 2rem;
  align-items: end;
}
.pc-section-head .eyebrow { align-self: start; }
.pc-section-head h2 { max-width: 760px; font-size: var(--fs-h2); }
.pc-section-head > p:last-child { margin: 0; color: var(--text); font-size: 1rem; }

.pc-engineering-section { padding: var(--section-pad) 0; }
.pc-engineering-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(4rem, 9vw, 9rem);
  align-items: start;
}
.pc-engineering-grid h2 { max-width: 600px; font-size: var(--fs-h2); }
.pc-engineering-grid h2 + p { max-width: 580px; margin: 1.8rem 0 0; color: var(--text); }
.pc-engineering-proof ol { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.pc-engineering-proof li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
}
.pc-engineering-proof li span { color: var(--accent); font-size: .7rem; }
.pc-stack { margin: 2rem 0 0; color: var(--text); font-size: .82rem; }
.pc-stack span {
  margin-right: 2rem;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pc-stack + .pc-stack { margin-top: .75rem; }
.pc-case-ending { padding: 4.5rem 0; background: var(--surface); border-top: 1px solid var(--line); }
.pc-case-ending > .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}
.pc-next-project { display: block; width: max-content; max-width: 100%; }
.pc-next-project > span {
  display: block;
  margin-bottom: .65rem;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pc-next-project strong { font-size: clamp(2rem, 3.8vw, 3.8rem); letter-spacing: -.05em; line-height: 1; }
.pc-case-ending p { margin: 0; color: var(--text); font-size: .86rem; }
.pc-case-ending p .inline-link { margin-left: .55rem; }

/* Student Platform */
.student-directory-stage {
  padding: 5rem 4.5rem 0;
  border-radius: 0 150px 0 0;
  background: #e4edf7;
}
.student-directory-app { width: 100%; height: 540px; }
.student-directory-layout { display: grid; grid-template-columns: 68px 1fr; height: calc(100% - 60px); }
.student-directory-content { padding: 2rem 2.2rem; }
.student-directory-table { margin-top: 1.6rem; border: 1px solid var(--line); border-radius: 7px; }
.student-directory-labels,
.student-directory-table p {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) 1fr .8fr .55fr;
  align-items: center;
  gap: 1rem;
}
.student-directory-labels { padding: .65rem 1rem .65rem 4.25rem; background: var(--surface); }
.student-directory-labels span { color: var(--muted); font-size: .48rem; }
.student-directory-table p { grid-template-columns: 34px minmax(170px, 1.45fr) 1fr .8fr .55fr; margin: 0; padding: .85rem 1rem; border-top: 1px solid var(--line); }
.student-directory-table p i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--accent);
  font-size: .48rem;
  font-style: normal;
}
.student-directory-table p b { font-size: .62rem; }
.student-directory-table p b small { display: block; color: var(--muted); font-size: .46rem; font-weight: 400; }
.student-directory-table p > span { color: var(--text); font-size: .54rem; }
.student-directory-table p em { color: var(--success); font-size: .5rem; font-style: normal; }
.student-record-section { background: #f5f6f7; }
.student-record-composition { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; margin-top: 6rem; }
.student-record-index { align-self: center; padding-right: 2.5rem; border-top: 1px solid var(--line); }
.student-record-index span { display: block; padding: 1.05rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .78rem; }
.student-record-index span:first-child { color: var(--accent); font-weight: 600; }
.student-record-stage { min-width: 0; padding: 4.5rem 0 0 4.5rem; border-radius: 110px 0 0 0; background: #dfe9f5; }
.student-record-app { width: 850px; height: 540px; border-radius: 12px 0 0 0; }
.student-record-layout { display: grid; grid-template-columns: 150px 1fr; height: calc(100% - 60px); }
.student-record-layout > nav { padding: 1.5rem; border-right: 1px solid var(--line); }
.student-record-layout > nav b,
.student-record-layout > nav span { display: block; padding: .6rem .7rem; border-radius: 4px; font-size: .57rem; }
.student-record-layout > nav b { background: var(--surface-blue); color: var(--accent); }
.student-record-layout > nav span { color: var(--muted); }
.student-profile-content { padding: 1.7rem; }
.student-profile-content > header { display: flex; align-items: center; gap: .8rem; }
.student-profile-content > header i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--accent);
  font-size: .58rem;
  font-style: normal;
}
.student-profile-content > header small,
.student-profile-content > header b { display: block; }
.student-profile-content > header small { color: var(--muted); font-size: .48rem; }
.student-profile-content > header b { font-size: .82rem; }
.student-profile-content > header em { margin-left: auto; color: var(--success); font-size: .52rem; font-style: normal; }
.student-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.4rem; }
.student-profile-grid article { min-height: 115px; padding: 1rem; border: 1px solid var(--line); border-radius: 7px; }
.student-profile-grid small,
.student-profile-grid b,
.student-profile-grid article > span { display: block; }
.student-profile-grid small { color: var(--muted); font-size: .48rem; }
.student-profile-grid b { margin-top: .45rem; font-size: .7rem; }
.student-profile-grid article > span { margin-top: .2rem; color: var(--muted); font-size: .5rem; }

/* Employee Operations */
.employee-operations-stage { padding: 4.5rem 4.5rem 0; border-radius: 130px 0 0 0; background: #202830; }
.employee-operations-stage figcaption { color: #aeb8c2; }
.employee-operations-app { width: 100%; height: 555px; }
.employee-operations-layout { display: grid; grid-template-columns: 68px 1fr; height: calc(100% - 60px); }
.employee-operations-content { padding: 2rem 2.2rem; }
.employee-status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.5rem 0; }
.employee-status-grid article { padding: 1rem; border: 1px solid var(--line); border-radius: 7px; }
.employee-status-grid small,
.employee-status-grid b,
.employee-status-grid span { display: block; }
.employee-status-grid small { color: var(--muted); font-size: .48rem; }
.employee-status-grid b { margin: .25rem 0; font-size: 1rem; }
.employee-status-grid span { color: var(--success); font-size: .46rem; }
.employee-assignment-table { border: 1px solid var(--line); border-radius: 7px; }
.employee-assignment-table header { display: flex; justify-content: space-between; padding: .8rem 1rem; background: var(--surface); font-size: .55rem; }
.employee-assignment-table header span { color: var(--muted); }
.employee-assignment-table p { display: grid; grid-template-columns: 34px 1fr .7fr .5fr; align-items: center; gap: .8rem; margin: 0; padding: .85rem 1rem; border-top: 1px solid var(--line); font-size: .55rem; }
.employee-assignment-table p i,
.employee-roster-list p i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--accent);
  font-size: .46rem;
  font-style: normal;
}
.employee-assignment-table p span { color: var(--text); }
.employee-assignment-table p em { color: var(--success); font-style: normal; }
.employee-value-section { background: var(--surface); }
.employee-control-section { background: white; }
.employee-control-composition { display: grid; grid-template-columns: minmax(0, 1.25fr) 370px; gap: 3rem; align-items: end; margin-top: 6rem; }
.employee-roster-stage { min-width: 0; padding: 4.5rem 4.5rem 0 0; background: #e2eaf3; }
.employee-roster-app { width: 760px; height: 455px; border-radius: 0 12px 0 0; }
.employee-roster-content { padding: 1.8rem; }
.employee-roster-list { margin-top: 1.4rem; border: 1px solid var(--line); border-radius: 7px; }
.employee-roster-list p { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: .75rem; margin: 0; padding: .85rem 1rem; border-top: 1px solid var(--line); }
.employee-roster-list p:first-child { border-top: 0; }
.employee-roster-list p b { font-size: .61rem; }
.employee-roster-list p small { display: block; color: var(--muted); font-size: .47rem; }
.employee-roster-list p em { color: var(--success); font-size: .5rem; font-style: normal; }
.employee-request-stage { padding-bottom: 2rem; }
.employee-request-card { padding: 2rem; border: 1px solid var(--line); background: var(--surface); }
.employee-request-card > header { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: .68rem; font-weight: 600; }
.employee-request-card > header em { color: var(--accent); font-style: normal; }
.employee-request-card > small { display: block; margin-top: 2rem; color: var(--muted); font-size: .55rem; }
.employee-request-card h3 { margin-top: .3rem; font-size: 2.4rem; }
.employee-request-card dl { margin: 2rem 0; }
.employee-request-card dl div { display: flex; justify-content: space-between; padding: .8rem 0; border-top: 1px solid var(--line); font-size: .68rem; }
.employee-request-card dt { color: var(--muted); }
.employee-request-card dd { margin: 0; font-weight: 600; }
.employee-request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.employee-request-actions button { border: 1px solid var(--line); border-radius: 5px; padding: .65rem; background: white; font-size: .58rem; font-weight: 600; }
.employee-request-actions button:first-child { border-color: var(--accent); background: var(--accent); color: white; }
.employee-request-card > p { margin: 1rem 0 0; color: var(--muted); font-size: .54rem; text-align: center; }
.employee-engineering-section { background: #f7f8f9; }

/* Task Management */
.task-board-stage { padding: 4.5rem 0 0 4.5rem; border-radius: 0 130px 0 0; background: #e3ebf4; }
.task-board-app { width: calc(100% + 90px); height: 550px; }
.task-board-columns { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 1rem; padding: 1.6rem; }
.task-board-columns > section > header { display: flex; justify-content: space-between; padding: 0 .25rem .7rem; color: var(--text); font-size: .6rem; }
.task-board-columns > section > header span { color: var(--accent); }
.task-board-columns article { position: relative; min-height: 118px; margin-bottom: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: 0 8px 18px rgba(29, 42, 57, .06); }
.task-board-columns article b,
.task-board-columns article small { display: block; }
.task-board-columns article b { font-size: .66rem; }
.task-board-columns article small { margin-top: .55rem; color: var(--muted); font-size: .5rem; }
.task-board-columns article em { position: absolute; right: 1rem; bottom: 1rem; color: var(--accent); font-size: .48rem; font-style: normal; }
.task-value-section .pc-value-grid { grid-template-columns: 1.08fr .92fr; }
.task-value-section .pc-value-grid article:first-child { margin-top: 5rem; }
.task-value-section .pc-value-grid article:nth-child(2) { margin-top: 0; }
.task-flow-section { background: #f4f6f8; }
.task-lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); margin: 5rem 0 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.task-lifecycle li { position: relative; padding: 1.2rem 1rem 1.2rem 0; color: var(--text); font-size: .78rem; font-weight: 500; }
.task-lifecycle li:not(:last-child)::after { content: ""; position: absolute; top: 1rem; right: 1rem; bottom: 1rem; width: 1px; background: var(--line); }
.task-lifecycle li span { margin-right: .7rem; color: var(--accent); font-size: .58rem; }
.task-detail-composition { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 4rem; align-items: center; margin-top: 6rem; }
.task-detail-stage { min-width: 0; padding: 4rem 0 0 4rem; border-radius: 100px 0 0 0; background: #dce7f4; }
.task-detail-app { width: 820px; height: 500px; border-radius: 12px 0 0 0; }
.task-detail-content { display: grid; grid-template-columns: 1fr 240px; gap: 2rem; padding: 2rem; }
.task-main-copy h3 { max-width: 440px; font-size: 3.5rem; }
.task-main-copy > p:not(.project-category) { max-width: 350px; color: var(--text); font-size: .72rem; }
.task-attachment { display: flex; align-items: center; gap: .8rem; width: 270px; margin-top: 2rem; padding: .8rem; border: 1px solid var(--line); border-radius: 6px; }
.task-attachment i { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 4px; background: var(--surface-blue); color: var(--accent); font-size: .48rem; font-style: normal; }
.task-attachment b,
.task-attachment small { display: block; }
.task-attachment b { font-size: .58rem; }
.task-attachment small { color: var(--muted); font-size: .46rem; }
.task-properties { margin: 0; border-top: 1px solid var(--line); }
.task-properties div { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.task-properties dt { color: var(--muted); font-size: .48rem; }
.task-properties dd { margin: .2rem 0 0; font-size: .62rem; font-weight: 600; }
.task-activity-panel { padding-bottom: 1rem; }
.task-activity-panel h3 { max-width: 300px; font-size: 3rem; }
.task-activity-panel ol { margin: 2rem 0 0; padding: 0; list-style: none; }
.task-activity-panel li { display: grid; grid-template-columns: 20px 1fr; gap: .8rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.task-activity-panel li i { width: 8px; height: 8px; margin-top: .35rem; border-radius: 50%; background: var(--accent); }
.task-activity-panel li b,
.task-activity-panel li small { display: block; }
.task-activity-panel li b { font-size: .66rem; }
.task-activity-panel li small { color: var(--muted); font-size: .52rem; }

/* Mini-browser mockup — shared hero-illustration frame for the
   public-website case studies. Premium Landing Page uses a stylized
   fake preview; NAMA uses real cropped screenshots of the live site. */
.mini-browser {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border: 1px solid #ccd6e0;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(29, 42, 57, .14);
}
.mini-browser-dark { background: #101216; border-color: #23262d; }
.mini-browser-bar { display: flex; align-items: center; gap: .4rem; flex: none; height: 46px; padding: 0 1.1rem; border-bottom: 1px solid var(--line); }
.mini-browser-dark .mini-browser-bar { border-bottom-color: rgba(255,255,255,.1); }
.mini-browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dfe1e5; }
.mini-browser-dark .mini-browser-bar i { background: #2c2f37; }
.mini-browser-bar span { margin-left: .85rem; padding: .35rem .8rem; border-radius: 5px; background: var(--surface); color: var(--muted); font-size: .58rem; }
.mini-browser-dark .mini-browser-bar span { background: #181b20; color: #6b7078; }
.mini-browser-shot { flex: 1; overflow: hidden; background: #fffaf1; }
.mini-browser-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.website-preview .mini-browser { height: 320px; }

/* Business Website mockup content */
.site-mini-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 3rem 3.5rem; background: #f6f3ec; }
.site-mini-nav { display: flex; justify-content: space-between; margin-bottom: 3rem; font-size: .56rem; color: #4a473f; }
.site-mini-nav b { color: #1c1b18; letter-spacing: .04em; }
.site-mini-hero h4 { margin: 0 0 .8rem; font-size: 2rem; line-height: 1.05; color: #1c1b18; }
.site-mini-hero p { margin: 0 0 1.6rem; max-width: 300px; color: #4a473f; font-size: .68rem; }
.site-mini-actions { display: flex; gap: .6rem; }
.site-mini-actions i { display: block; width: 92px; height: 26px; border-radius: 5px; background: #2b3a67; }
.site-mini-actions i:last-child { background: transparent; border: 1px solid #d8d2c2; }

.site-services-composition { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; margin-top: 5rem; }
.site-services-composition .mini-browser { height: 320px; }
.site-mini-services { flex: 1; padding: 2rem 2.2rem; background: #f6f3ec; }
.site-mini-services > small { display: block; margin-bottom: 1.4rem; color: #8a8577; font-size: .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.site-mini-services-grid { display: grid; gap: .9rem; }
.site-mini-services-grid span { display: block; padding-top: .8rem; border-top: 1px solid #e4dfd1; font-size: .64rem; color: #1c1b18; font-weight: 600; }
.site-mini-services-grid b { display: block; margin-bottom: .4rem; color: #8a8577; font-size: .5rem; font-weight: 700; }
.site-product-notes { list-style: none; margin: 0; padding: 0; }
.site-product-notes li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.site-product-notes li:first-child { border-top: none; }
.site-product-notes b { display: block; margin-bottom: .3rem; font-size: .92rem; color: var(--ink); }
.site-product-notes span { color: var(--muted); font-size: .84rem; line-height: 1.5; }

/* Premium Landing Page mockup content */
.campaign-mini-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem; text-align: center; }
.campaign-mini-eyebrow { display: block; margin-bottom: 1rem; color: #6c8eff; font-size: .5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.campaign-mini-hero h4 { margin: 0 0 1.4rem; font-size: 2.1rem; line-height: 1.05; color: white; font-weight: 700; }
.campaign-mini-hero h4 em { color: #6c8eff; font-style: normal; }
.campaign-mini-cta { display: inline-flex; padding: .6rem 1.2rem; border-radius: 7px; background: #6c8eff; color: #0b0d10; font-size: .6rem; font-weight: 700; }

.campaign-flow-composition { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; margin-top: 5rem; }
.campaign-flow-composition .mini-browser { height: 320px; }
.campaign-mini-panel { flex: 1; padding: 1.75rem 2rem; }
.campaign-mini-panel > span { display: block; width: 40%; height: 8px; margin-bottom: 1.4rem; border-radius: 4px; background: rgba(255,255,255,.14); }
.campaign-mini-panel div { display: flex; align-items: center; gap: .6rem; padding: .8rem; margin-bottom: .5rem; border-radius: 8px; background: #181b20; color: #c7cbd1; font-size: .62rem; font-weight: 600; }
.campaign-mini-panel i { width: 7px; height: 7px; border-radius: 50%; }
.dot-a { background: #6c8eff; }
.dot-b { background: #5fd98a; }
.dot-c { background: #6b7078; }
.campaign-product-notes { list-style: none; margin: 0; padding: 0; }
.campaign-product-notes li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.campaign-product-notes li:first-child { border-top: none; }
.campaign-product-notes b { display: block; margin-bottom: .3rem; font-size: .92rem; color: var(--ink); }
.campaign-product-notes span { color: var(--muted); font-size: .84rem; line-height: 1.5; }

@media (max-width: 900px) {
  .site-services-composition, .campaign-flow-composition { grid-template-columns: 1fr; gap: 2.25rem; }
  .site-services-composition .mini-browser, .campaign-flow-composition .mini-browser { height: 280px; }
}

@media (max-width: 640px) {
  .site-mini-hero { padding: 2rem; }
  .site-mini-hero h4 { font-size: 1.5rem; }
  .site-mini-nav { margin-bottom: 2rem; }
}

@media (max-width: 900px) {
  .pc-hero { padding-top: 5rem; }
  .pc-hero-copy { grid-template-columns: 1fr; gap: 2.5rem; }
  .pc-hero-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .pc-meta { margin-top: 0; }
  .pc-hero-stage { height: 480px; margin-top: 3rem; }
  .pc-value-grid { gap: 4rem; }
  .pc-section-head { grid-template-columns: 140px minmax(0, 1fr); }
  .pc-section-head > p:last-child { grid-column: 2; max-width: 520px; margin-top: 1rem; }
  .pc-engineering-grid { gap: 4rem; }
  .student-directory-stage,
  .employee-operations-stage { padding: 3.5rem 2.5rem 0; border-radius: 100px 0 0 0; }
  .student-record-composition { grid-template-columns: 170px minmax(0, 1fr); }
  .student-record-stage { padding-left: 3rem; }
  .student-record-app { width: 760px; }
  .employee-control-composition { grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; }
  .employee-roster-stage { padding-right: 2rem; }
  .employee-roster-app { width: 650px; }
  .task-board-stage { padding-left: 3rem; border-radius: 100px 0 0 0; }
  .task-board-app { width: calc(100% + 180px); }
  .task-detail-composition { grid-template-columns: minmax(0, 1fr) 260px; gap: 2.5rem; }
  .task-detail-stage { padding-left: 3rem; }
  .task-detail-app { width: 720px; }
  .task-activity-panel h3 { font-size: 2.6rem; }
}

@media (max-width: 640px) {
  .pc-hero { padding-top: 4rem; }
  .pc-hero-copy,
  .pc-hero-copy > div { min-width: 0; }
  .pc-hero h1 { line-height: 1.1; }
  .pc-hero-summary { display: block; }
  .pc-hero-summary > p { font-size: 1.03rem; }
  .pc-meta { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .pc-hero-stage { width: calc(100% + 1rem); height: 380px; margin: 2rem -1rem 0 0; contain: layout paint; }
  .pc-hero-stage figcaption { display: none; }
  .case-app-bar { height: 52px; padding: 0 .85rem; }
  .case-app-bar span { display: none; }
  .case-app-heading > span { min-width: 0; padding: .45rem; }
  .pc-value-section { padding: var(--section-pad-mobile) 0; }
  .pc-value-grid,
  .task-value-section .pc-value-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .pc-value-grid article:nth-child(2),
  .task-value-section .pc-value-grid article:first-child { margin-top: 0; }
  .pc-product-section { padding: var(--section-pad-mobile) 0; }
  .pc-section-head { display: block; }
  .pc-section-head > p:last-child { margin-top: 1.4rem; }
  .pc-engineering-section { padding: var(--section-pad-mobile) 0; }
  .pc-engineering-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .pc-stack span { display: block; margin: 0 0 .5rem; }
  .pc-case-ending { padding: 3.5rem 0; }
  .pc-case-ending > .container { grid-template-columns: 1fr; align-items: start; }
  .pc-next-project { width: 100%; }
  .pc-next-project strong { display: block; overflow-wrap: anywhere; font-size: 2.45rem; }
  .pc-case-ending p .inline-link { display: block; width: max-content; margin: .5rem 0 0; }

  .student-directory-stage,
  .employee-operations-stage { padding: 2.5rem 0 0 1rem; border-radius: 64px 0 0 0; }
  .student-directory-app,
  .employee-operations-app { width: 100%; height: 470px; border-radius: 10px 0 0 0; }
  .student-directory-layout,
  .employee-operations-layout { grid-template-columns: 1fr; }
  .student-directory-layout > aside,
  .employee-operations-layout > aside { display: none; }
  .student-directory-content,
  .employee-operations-content { padding: 1.2rem; }
  .student-directory-labels { grid-template-columns: 1fr 100px; padding-left: 1rem; }
  .student-directory-labels span:nth-child(3),
  .student-directory-labels span:nth-child(4) { display: none; }
  .student-directory-table p { grid-template-columns: 32px minmax(0, 1fr) 92px; gap: .6rem; }
  .student-directory-table p > span:nth-of-type(2),
  .student-directory-table p em { display: none; }
  .student-record-composition { display: block; margin-top: 4rem; }
  .student-record-index { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .student-record-index span { padding-right: .5rem; }
  .student-record-stage { width: calc(100% + 1rem); height: 500px; margin: 2.5rem -1rem 0 0; padding: 2.5rem 0 0 1rem; border-radius: 64px 0 0 0; contain: layout paint; }
  .student-record-app { width: 100%; height: 480px; }
  .student-record-layout { grid-template-columns: 1fr; }
  .student-record-layout > nav { display: none; }
  .student-profile-content { padding: 1.2rem; }
  .student-profile-grid { grid-template-columns: 1fr 1fr; }

  .employee-status-grid { grid-template-columns: 1fr 1fr; }
  .employee-status-grid article:nth-child(3) { display: none; }
  .employee-assignment-table p { grid-template-columns: 32px 1fr auto; }
  .employee-assignment-table p > span { display: none; }
  .employee-control-composition { display: block; margin-top: 4rem; }
  .employee-roster-stage { width: calc(100% + 1rem); height: 400px; margin-right: -1rem; padding: 2.5rem 0 0 1rem; contain: layout paint; }
  .employee-roster-app { width: 100%; height: 380px; }
  .employee-roster-content { padding: 1.2rem; }
  .employee-request-stage { width: 92%; margin: 3rem 0 0 auto; padding: 0; }
  .employee-request-card { padding: 1.5rem; }
  .employee-request-card h3 { font-size: 2.15rem; }

  .task-board-stage { height: 590px; padding: 2.5rem 1rem 0; border-radius: 64px 0 0 0; }
  .task-board-app { width: 100%; height: 565px; border-radius: 10px 0 0 0; }
  .task-board-columns { grid-template-columns: 1fr; gap: .5rem; padding: 1rem; }
  .task-board-columns article { min-height: 72px; margin-bottom: .45rem; padding: .75rem; }
  .task-board-columns article:nth-of-type(2) { display: none; }
  .task-lifecycle { grid-template-columns: 1fr 1fr; margin-top: 3rem; }
  .task-lifecycle li:nth-child(even)::after { display: none; }
  .task-detail-composition { display: flex; flex-direction: column; gap: 2.5rem; margin-top: 4rem; }
  .task-detail-stage { width: calc(100% + 1rem); height: 480px; margin-right: -1rem; padding: 2.5rem 0 0 1rem; border-radius: 64px 0 0 0; contain: layout paint; }
  .task-detail-app { width: 100%; height: 460px; }
  .task-detail-content { display: block; padding: 1.3rem; }
  .task-main-copy h3 { font-size: 2.6rem; }
  .task-main-copy > p:not(.project-category),
  .task-attachment { width: 100%; }
  .task-properties { display: none; }
  .task-activity-panel { order: -1; width: 88%; margin-left: auto; }
  .task-activity-panel h3 { font-size: 2.75rem; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--ink); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(calc(100% - 3rem), var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 99; top: .75rem; left: .75rem; padding: .75rem 1rem; background: var(--ink); color: white; border-radius: 6px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 20; top: 0; width: 100%; }
.nav-wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: .94rem; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: white; font-size: .72rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; color: var(--muted); font-size: .86rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.menu-button { display: none; border: 0; background: transparent; padding: .5rem; }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 1px; margin: 5px; background: currentColor; }

.eyebrow, .project-category { margin: 0 0 1.25rem; color: var(--accent); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.055em; line-height: 1.02; }
h1 { font-size: clamp(3.7rem, 6.8vw, 7rem); }
h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
h1 em, h2 em, h4 em { color: var(--accent); font: inherit; font-style: normal; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 48px; padding: .8rem 1.2rem; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: white; font-size: .88rem; font-weight: 600; transition: background .2s, transform .2s var(--ease); }
.button::after { content: "↗"; }
.button:hover { background: var(--accent-hover); transform: translateY(-1px); }
.button-secondary { border-color: var(--line); background: white; color: var(--ink); }
.button-secondary::after { content: "→"; }
.button-secondary:hover { background: var(--surface); }
.inline-link { display: inline-block; padding-bottom: .2rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .84rem; font-weight: 600; }
.section { padding: var(--section-pad) 0; }
.section-heading { display: grid; grid-template-columns: 190px 1fr; margin-bottom: 3rem; }
.section-heading h2 { max-width: 850px; font-size: var(--fs-h2); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 0; }
.hero::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.hero-stage { position: relative; z-index: 1; min-height: 460px; padding-bottom: 3rem; }
.hero-stage > .eyebrow { position: relative; z-index: 4; margin-bottom: 1.1rem; }
.hero-title { position: relative; z-index: 3; width: 100%; font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -.02em; }
.hero-title span { display: block; width: max-content; max-width: 100%; }
.hero-title span:nth-child(2) { margin-left: 2%; }
.hero-title span:nth-child(3) { margin-left: 4%; }
.hero-title span:nth-child(4) { margin-left: 7%; }
.hero-footer { position: relative; z-index: 5; width: min(100%, 470px); margin-top: 2rem; }
.hero-footer > p { width: min(100%, 420px); margin: 0; color: var(--text); font-size: 1.05rem; }
.hero-actions { display: flex; flex: none; gap: .9rem; }
.hero-footer .hero-actions { margin-top: 1.5rem; }
.hero-actions .button { min-height: 52px; padding: .85rem 1.45rem; }
.hero-visual { position: absolute; z-index: 2; top: 2rem; right: -.6rem; width: clamp(380px, 40vw, 500px); margin: 0; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; top: -1.5rem; left: -1.5rem; width: 58%; height: 58%; border: 1px solid rgba(49, 95, 159, .3); border-radius: 18px; transform: rotate(6deg); }
.hero-visual picture { position: relative; z-index: 1; display: block; aspect-ratio: 1137 / 1024; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface-blue); box-shadow: var(--shadow); transform: rotate(-1.4deg); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 48%; }

/* Work */
.work-section { background: var(--surface); border-top: 1px solid var(--line); }
.work-section .section-heading { margin-bottom: 1.5rem; }
.work-section .project-category { color: var(--muted); font-weight: 500; }
.work-section .inline-link { color: var(--accent); border-color: rgba(49, 95, 159, .3); }
.work-section .inline-link:hover { color: var(--accent-hover); border-color: var(--accent); }
.flagship-meta .inline-link-quiet { color: var(--muted); border-color: var(--line); }
.flagship-meta .inline-link-quiet:hover { color: var(--ink); border-color: var(--line); }
.project-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: .5rem; }
.project-cta .inline-link { margin-top: 0; }
.project-cta .inline-link-quiet { color: var(--muted); border-color: var(--line); }
.project-cta .inline-link-quiet:hover { color: var(--ink); border-color: var(--line); }
.project-info { padding: 2.5rem; }
.project-info h3 { margin-bottom: .6rem; font-size: var(--fs-h3); }
.project-info > p:not(.project-category):not(.project-tech) { max-width: 460px; margin: 0 0 1rem; color: var(--text); font-size: 1.05rem; line-height: 1.6; }
.project-tech { margin: 0 0 .25rem; color: var(--muted); font-size: .78rem; }
.project-preview { display: block; position: relative; min-height: 380px; overflow: hidden; background: var(--surface-blue); }
.sanad-preview { min-height: 620px; padding: 4.5rem 0 0 3.5rem; }
.ui-window { width: 700px; height: 450px; overflow: hidden; background: white; border: 1px solid #cfd7df; border-radius: 10px; box-shadow: var(--shadow); }
.ui-shot { height: calc(100% - 46px); overflow: hidden; }
.ui-shot img, .case-shot { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Flagship (SanadLink) */
.flagship { display: grid; grid-template-columns: minmax(260px, .86fr) 1.54fr; align-items: center; gap: 2.5rem 3.5rem; margin-bottom: 4rem; }
.flagship-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; min-width: 0; }
.flagship-title .project-category { margin-bottom: .5rem; }
.flagship-title h3 { font-size: var(--fs-h3-flagship); }
.flagship-summary { max-width: 100%; text-align: left; }
.flagship-summary p { margin: 0 0 1.25rem; color: var(--text); font-size: 1.02rem; }
.flagship-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 1.5rem; }
.flagship-meta .project-tech { margin: 0; }
.flagship-visual { position: relative; display: flex; justify-content: center; min-width: 0; padding: clamp(1.75rem, 3.5vw, 3rem); background: var(--surface-blue); border: 1px solid var(--line); border-radius: 20px; }
.flagship-window { position: relative; width: 100%; max-width: 860px; min-width: 0; }
.ui-window--large { width: 100%; max-width: 860px; height: auto; aspect-ratio: 860 / 480; }
.flagship-window .share-toast { right: -1.1rem; bottom: -1.1rem; }
.ui-top { height: 46px; display: flex; align-items: center; gap: 1.4rem; padding: 0 1rem; border-bottom: 1px solid var(--line); font-size: .58rem; }
.ui-top b { font-size: .72rem; }
.ui-top span { color: var(--muted); }
.ui-top i { width: 6px; height: 6px; margin-left: auto; background: var(--accent); border-radius: 50%; }
.ui-layout { display: grid; grid-template-columns: 56px 1fr; height: calc(100% - 46px); }
.ui-layout aside { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem .8rem; border-right: 1px solid var(--line); }
.ui-layout aside strong { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 5px; background: var(--accent); color: white; font-size: .58rem; }
.ui-layout aside span { width: 21px; height: 21px; border-radius: 4px; background: #edf1f4; }
.ui-layout aside .active { background: var(--ink); }
.ui-content { padding: 1.4rem; }
.ui-content header { display: flex; align-items: center; justify-content: space-between; }
.ui-content header small, .ui-content header b { display: block; }
.ui-content header small { color: var(--muted); font-size: .5rem; }
.ui-content header b { font-size: .9rem; }
.ui-content header button { border: 0; border-radius: 5px; padding: .5rem .65rem; background: var(--accent); color: white; font-size: .48rem; }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin: 1.2rem 0; }
.ui-stats div { padding: .8rem; border: 1px solid var(--line); border-radius: 6px; }
.ui-stats small, .ui-stats b, .ui-stats em { display: block; }
.ui-stats small { color: var(--muted); font-size: .46rem; }
.ui-stats b { margin: .25rem 0; font-size: .8rem; }
.ui-stats em { color: var(--success); font-size: .43rem; font-style: normal; }
.ui-table { border: 1px solid var(--line); border-radius: 6px; padding: .85rem; }
.ui-table > div { display: flex; justify-content: space-between; padding-bottom: .65rem; font-size: .52rem; }
.ui-table > div small { color: var(--accent); }
.ui-table p { display: grid; grid-template-columns: .7fr 1.4fr .7fr .5fr; align-items: center; margin: 0; padding: .65rem 0; border-top: 1px solid var(--line); font-size: .45rem; }
.ui-table p i { color: var(--muted); font-style: normal; }
.ui-table p em { color: var(--success); font-style: normal; }
.share-toast { position: absolute; right: 1.4rem; bottom: 1.5rem; display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 30px rgba(29,42,57,.12); }
.share-toast > i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--success); color: white; font-size: .62rem; font-style: normal; }
.share-toast b, .share-toast small { display: block; }
.share-toast b { font-size: .58rem; }
.share-toast small { color: var(--muted); font-size: .47rem; }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.project-card .project-preview { min-height: 420px; border: 1px solid var(--line); border-radius: 14px; }
.project-card .project-info { padding: 1.75rem 0 0; }
.project-card .project-info p:not(.project-category) { color: var(--text); font-size: 1rem; line-height: 1.6; }
.project-info .inline-link { margin-top: .5rem; font-size: .88rem; }
.student-preview, .employee-preview, .website-preview { padding: 3rem; }
.student-preview { background: #eef3f8; }
.student-panel { max-width: 440px; margin: auto; padding: 1.4rem; background: white; border: 1px solid #cfd7df; border-radius: 9px; box-shadow: 0 16px 36px rgba(29,42,57,.10); }
.student-panel header { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; }
.student-panel header span { padding: .3rem .5rem; border-radius: 4px; background: var(--surface-blue); color: var(--accent); font-size: .5rem; }
.student-search { margin: 1rem 0; padding: .5rem .6rem; border-radius: 4px; background: var(--surface); color: var(--muted); font-size: .48rem; }
.student-panel p { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: .7rem; margin: 0; padding: .75rem 0; border-top: 1px solid var(--line); }
.student-panel p i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-blue); color: var(--accent); font-size: .47rem; font-style: normal; }
.student-panel p b { font-size: .57rem; }
.student-panel p small { display: block; color: var(--muted); font-size: .45rem; }
.student-panel p em { color: var(--success); font-size: .45rem; font-style: normal; }
.employee-preview { background: #202830; color: var(--ink); }
.employee-shell { max-width: 460px; margin: auto; padding: 1.5rem; background: white; border-radius: 9px; box-shadow: 0 20px 45px rgba(0,0,0,.22); }
.employee-shell header { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.employee-shell header b { font-size: .82rem; }
.employee-shell header span { color: var(--muted); font-size: .5rem; }
.employee-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.employee-kpis i { padding: .85rem; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-style: normal; }
.employee-kpis small, .employee-kpis b { display: block; }
.employee-kpis small { color: var(--muted); font-size: .46rem; }
.employee-kpis b { font-size: 1rem; }
.employee-chart { height: 160px; display: flex; align-items: flex-end; gap: 11px; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 5px; }
.employee-chart span { flex: 1; height: 40%; background: #9db6d2; }
.employee-chart span:nth-child(2) { height: 62%; }.employee-chart span:nth-child(3) { height: 50%; }.employee-chart span:nth-child(4) { height: 78%; background: var(--accent); }.employee-chart span:nth-child(5) { height: 70%; }.employee-chart span:nth-child(6) { height: 88%; background: var(--accent); }.employee-chart span:nth-child(7) { height: 82%; }

.project-wide { overflow: hidden; margin-bottom: 3rem; background: white; border: 1px solid var(--line); border-radius: 16px; }
.project-wide .project-link { display: grid; grid-template-columns: .65fr 1.35fr; min-height: 360px; }
.project-wide .project-info { align-self: center; }
.task-preview { min-height: 360px; padding: 2.5rem 0 0 2.5rem; background: #edf2f6; }
.kanban { width: 700px; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.kanban section > b { display: block; margin-bottom: .75rem; color: var(--muted); font-size: .58rem; }
.kanban section > b i { color: var(--accent); font-style: normal; }
.kanban p { margin: .65rem 0; padding: .9rem; background: white; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 8px 18px rgba(29,42,57,.07); }
.kanban p span, .kanban p small { display: block; }
.kanban p span { font-size: .56rem; font-weight: 600; }
.kanban p small { margin-top: .45rem; color: var(--muted); font-size: .44rem; }

.project-grid-small { margin-top: 0; margin-bottom: 0; }
.project-grid-small .project-preview { min-height: 320px; padding: 2.25rem; }
.project-grid-small .project-info { padding: 1.5rem 0 0; }
.project-grid-small .project-info p:not(.project-category) { max-width: 320px; font-size: .96rem; }
.website-preview { background: #efeee9; }
.site-mock { height: 310px; padding: 1.2rem; background: white; border-radius: 7px; box-shadow: 0 15px 35px rgba(29,42,57,.09); }
.site-mock header { display: flex; justify-content: space-between; font-size: .46rem; }
.site-mock h4 { margin: 4.5rem 1.6rem .7rem; font-size: 2.1rem; }
.site-mock p { margin-left: 1.6rem; color: var(--muted); font-size: .6rem; }
.site-mock i { display: block; width: 75px; height: 24px; margin-left: 1.6rem; border-radius: 4px; background: var(--accent); }
.landing-preview { background: #dfe7f0; }
.landing-mock { height: 310px; padding: 3.2rem; background: var(--ink); color: white; text-align: center; border-radius: 7px; box-shadow: 0 15px 35px rgba(29,42,57,.15); }
.landing-mock small { color: #aeb8c2; font-size: .52rem; }
.landing-mock h4 { margin: .7rem 0 1rem; font-size: 2.4rem; }
.landing-mock h4 em { color: #9eb9de; }
.landing-mock > span { padding: .45rem .7rem; border-radius: 4px; background: white; color: var(--ink); font-size: .48rem; }

/* Supporting sections */
.solutions-section { background: white; }
.solution-list { border-top: 1px solid var(--line); }
.solution-list article { display: grid; grid-template-columns: 96px 1fr; column-gap: 2rem; align-items: start; padding: 2.5rem 1rem; margin: 0 -1rem; border-bottom: 1px solid var(--line); transition: background .25s var(--ease); }
.solution-list article:hover { background: var(--surface); }
.solution-list span { grid-row: 1; padding-top: .2rem; color: rgba(21, 25, 30, .16); font-size: clamp(2.4rem, 3.2vw, 3.2rem); font-weight: 600; letter-spacing: -.03em; }
.solution-list h3 { grid-column: 2; font-size: clamp(1.5rem, 2.3vw, 2.3rem); }
.solution-list p { grid-column: 2; max-width: 520px; margin: .6rem 0 0; color: var(--text); font-size: 1.02rem; line-height: 1.6; }
.about-section { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: minmax(0, 500px) 1fr; align-items: center; gap: 2.5rem; }
.about-grid .eyebrow { grid-column: 1 / -1; margin-bottom: 1.5rem; }
.about-grid h2 { max-width: 480px; }
.about-content { max-width: 500px; margin: 0; }
.about-content p { margin: 0 0 1.75rem; color: var(--text); font-size: 1.1rem; line-height: 1.7; }
.technology-section { padding: 6rem 0; background: white; border-top: 1px solid var(--line); }
.technology-grid { display: grid; grid-template-columns: 190px 1fr; gap: 3rem; align-items: baseline; }
.tech-strip { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; font-size: .98rem; font-weight: 500; color: var(--ink); }
.tech-strip li { position: relative; padding: .3rem 1.15rem .3rem 0; margin-right: 1.15rem; }
.tech-strip li:last-child { margin-right: 0; padding-right: 0; }
.tech-strip li::after { content: ""; position: absolute; right: 0; top: 50%; width: 3px; height: 3px; margin-top: -1.5px; border-radius: 50%; background: var(--line); }
.tech-strip li:last-child::after { display: none; }
.contact-section { padding: var(--section-pad) 0; background: var(--ink); color: white; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 4rem; }
.contact-section .eyebrow { color: #9eb9de; }
.contact-grid h2 { font-size: var(--fs-h2); }
.contact-grid > div:last-child > p { max-width: 400px; color: #c5ccd2; font-size: 1.05rem; }
.contact-grid .button { margin-top: 1.4rem; min-height: 54px; padding: .9rem 1.6rem; background: white; color: var(--ink); border-color: white; }
.contact-email { display: block; margin-top: 1.4rem; color: #b5c3d3; font-size: .82rem; }
.contact-links { margin: .5rem 0 0; color: #b5c3d3; font-size: .82rem; }
.contact-links a { color: inherit; }
.contact-links a:hover { color: white; }
.contact-links span { margin: 0 .4rem; }
footer { padding: 2.5rem 0; background: #0c0f12; color: white; }
footer .container { display: flex; align-items: center; justify-content: space-between; }
footer .brand-mark { background: white; color: var(--ink); }
footer small { color: #87929b; font-size: .68rem; }

/* Case studies */
.case-header { position: absolute; }
.case-page { padding-top: 8rem; }

.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

@media (max-width: 1024px) {
  .hero { padding-top: 5rem; }
  .hero-stage { min-height: 420px; padding-bottom: 3rem; }
  .hero-visual { top: 1.5rem; right: -.2rem; width: clamp(320px, 40vw, 420px); }
  .hero-footer { width: min(100%, 420px); margin-top: 2.2rem; }
  .hero-footer > p { max-width: 400px; }
  .project-wide .project-link { grid-template-columns: 1fr; }
  .project-wide .project-preview { order: 1; }
  .project-wide .project-info { order: 2; }
  .task-preview { min-height: 0; }
  .task-preview .case-app { height: auto; aspect-ratio: 2880 / 1700; }
  .project-card .employee-preview { min-height: 0; }
  .employee-preview .case-app { height: auto; aspect-ratio: 2880 / 1500; }
  .sanad-preview { min-height: 570px; }
  .project-grid { gap: 2rem; }
  .flagship { grid-template-columns: 1fr; gap: 2.25rem; }
  .flagship-summary { max-width: 560px; }
}

@media (max-width: 768px) {
  .container { width: min(calc(100% - 2rem), var(--container)); }
  .nav-wrap { height: 74px; }
  .menu-button { display: block; z-index: 2; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem; }
  .hero { padding: 6rem 0 0; }
  .hero-stage { min-height: 0; padding-bottom: 3rem; text-align: center; }
  .hero-stage > .eyebrow { margin-bottom: 1.1rem; }
  .hero-title { position: relative; z-index: 3; line-height: 1.08; }
  .hero-title span { margin-inline: auto; }
  .hero-title span:nth-child(2), .hero-title span:nth-child(3), .hero-title span:nth-child(4) { margin-left: auto; }
  .hero-visual { position: relative; top: auto; right: auto; width: min(100%, 420px); margin: 2rem auto 0; }
  .hero-visual::before { display: none; }
  .hero-footer { width: min(100%, 430px); margin: 2rem auto 0; }
  .hero-footer > p { margin-inline: auto; font-size: 1.05rem; }
  .hero-actions { justify-content: center; }
  .section { padding: var(--section-pad-mobile) 0; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 4rem; text-align: center; }
  .project-grid { grid-template-columns: 1fr; gap: 3rem; margin-bottom: 2.5rem; }
  .project-grid-small { margin-bottom: 0; }
  .project-wide { margin-bottom: 3rem; }
  .flagship { margin-bottom: 3rem; }
  .flagship-head { align-items: center; text-align: center; }
  .flagship-summary p { margin-inline: auto; }
  .flagship-meta { justify-content: center; }
  .project-info, .project-card .project-info { padding: 2.2rem 0 3rem; text-align: center; }
  .project-info > p:not(.project-category):not(.project-tech) { margin-inline: auto; }
  .project-cta { justify-content: center; }
  .project-wide .project-info { padding-inline: 2rem; }
  .solution-list article { grid-template-columns: 1fr; text-align: center; }
  .solution-list span { grid-column: 1; font-size: 2rem; }
  .solution-list h3 { grid-column: 1; }
  .solution-list p { grid-column: 1; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; text-align: center; }
  .about-grid h2 { max-width: 100%; }
  .about-content { max-width: 100%; margin: 0 auto; }
  .technology-grid, .contact-grid { grid-template-columns: 1fr; }
  .technology-grid { gap: 1rem; text-align: center; }
  .tech-strip { justify-content: center; }
  .contact-grid { text-align: center; justify-items: center; }
  .contact-grid > div:last-child > p { margin-inline: auto; }
  .site-nav a { text-align: center; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(3rem, 13.5vw, 4rem); }
  h2 { font-size: clamp(2.6rem, 11vw, 3.5rem); }
  .hero { padding: 6rem 0 0; }
  .hero-stage { min-height: 0; }
  .hero-stage > .eyebrow { margin-bottom: 1.1rem; }
  .hero-title { line-height: 1.1; }
  .hero-title span { width: auto; }
  .hero-visual { width: 100%; margin-top: 1.6rem; }
  .hero-visual picture { border-radius: 16px; transform: rotate(-1deg); }
  .hero-footer { margin-top: 1.6rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { min-height: 52px; padding: .85rem 1.25rem; }
  .button { min-height: 52px; }
  .section-heading { margin-bottom: 3rem; }
  .project-wide { border-radius: 12px; }
  .project-wide .project-info { padding: 2rem 1.3rem; }
  .flagship-visual { padding: 1.75rem 1.25rem; border-radius: 16px; }
  .flagship-window .share-toast { right: .4rem; bottom: .4rem; padding: .6rem .8rem; }
  .sanad-preview { min-height: 390px; padding: 1rem; }
  .ui-window { width: 100%; height: 345px; }
  .ui-content { padding: .75rem; }
  .ui-stats { grid-template-columns: 1fr 1fr; }
  .ui-stats div:nth-child(3) { display: none; }
  .share-toast { right: .5rem; bottom: .5rem; }
  .project-card .project-preview { min-height: 390px; }
  .student-preview, .employee-preview, .website-preview { padding: 1.4rem; }
  .student-panel, .employee-shell, .kanban { width: 100%; max-width: 100%; }
  .task-preview { padding: 2rem 0 0 1.2rem; }
  .kanban { width: 600px; }
  .project-grid-small .project-preview { min-height: 310px; padding: 1.4rem; }
  .site-mock, .landing-mock { height: 270px; }
  .solution-list article { grid-template-columns: 1fr; padding: 1.8rem 1rem; }
  .solution-list span { font-size: 1.5rem; }
  .tech-strip { font-size: .88rem; }
  .tech-strip li { padding-right: .8rem; margin-right: .8rem; }
  .contact-section { padding: var(--section-pad-mobile) 0; }
  footer .container { align-items: center; flex-direction: column; gap: 1.5rem; text-align: center; }
}

/* Desktop-only Selected Work spacing (>1024px; tablet/mobile untouched) */
@media (min-width: 1025px) {
  .flagship { margin-bottom: 5rem; }
  .project-wide { margin-bottom: 5rem; }
  .project-grid { gap: 3rem; }
}

/* SanadLink case study */
.sanad-case { padding-top: 0; background: var(--canvas); }
.sanad-project-hero { overflow: hidden; padding: 7rem 0 0; }
.sanad-hero-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
}
.sanad-hero-head h1 {
  font-size: var(--fs-h1);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.sanad-hero-summary { padding-bottom: .4rem; }
.sanad-hero-summary > p {
  max-width: 520px;
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.6;
}
.sanad-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
}
.sanad-meta div { padding-top: 1rem; border-top: 1px solid var(--line); }
.sanad-meta dt {
  margin-bottom: .35rem;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sanad-meta dd { margin: 0; font-size: .82rem; font-weight: 500; line-height: 1.45; }
.sanad-hero-summary .sanad-meta + .inline-link { display: block; margin-top: 1.5rem; }
.sanad-dashboard-stage {
  position: relative;
  width: calc(100% + 6rem);
  height: 650px;
  margin: 5rem -6rem 0 0;
  padding: 5rem 6rem 0 5rem;
  overflow: hidden;
  border-radius: 150px 0 0 0;
  background: #e3edf9;
}
.sanad-dashboard-stage::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -10rem;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
}
.sanad-case .case-dashboard-window {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  aspect-ratio: 1.72 / 1;
  box-shadow: 0 28px 70px rgba(29, 42, 57, .15);
}
.sanad-dashboard-stage .share-toast { z-index: 3; right: 4rem; bottom: 3rem; }
.sanad-dashboard-stage figcaption {
  position: absolute;
  z-index: 3;
  left: 1.2rem;
  bottom: 1.2rem;
  color: var(--muted);
  font-size: .7rem;
}

.sanad-value-section { padding: var(--section-pad) 0; }
.sanad-value-section > .container > .eyebrow { margin-bottom: 2.5rem; }
.sanad-value-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(4rem, 10vw, 10rem);
}
.sanad-value-grid article { position: relative; padding-top: 2rem; border-top: 1px solid var(--line); }
.sanad-value-grid article:nth-child(2) { margin-top: 5rem; }
.sanad-value-grid article > span {
  position: absolute;
  top: 2rem;
  right: 0;
  color: rgba(21, 25, 30, .16);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}
.sanad-value-grid h2 { max-width: 470px; font-size: var(--fs-h2); }
.sanad-value-grid p { max-width: 520px; margin: 1.6rem 0 0; color: var(--text); font-size: 1.05rem; }

.sanad-product-section { overflow: hidden; padding: var(--section-pad) 0; background: var(--surface); }
.sanad-section-intro {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: end;
}
.sanad-section-intro .eyebrow { align-self: start; }
.sanad-section-intro h2 { max-width: 720px; font-size: var(--fs-h2); }
.sanad-section-intro > p:last-child { margin: 0; color: var(--text); font-size: 1rem; }
.sanad-capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.sanad-capabilities li {
  position: relative;
  padding: 1.25rem 1.1rem 1.25rem 0;
  color: var(--text);
  font-size: .8rem;
  font-weight: 500;
}
.sanad-capabilities li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  right: 1rem;
  bottom: 1.1rem;
  width: 1px;
  background: var(--line);
}
.sanad-moment { margin-top: 8rem; }
.sanad-invoice-moment {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.sanad-moment-copy h3 { font-size: var(--fs-h3-flagship); }
.sanad-moment-copy > p:last-child { margin: 1.4rem 0 0; color: var(--text); }
.invoice-stage {
  min-width: 0;
  padding: 4.5rem 0 0 4.5rem;
  overflow: hidden;
  border-radius: 110px 0 0 0;
  background: #e2ebf6;
}
.invoice-workspace {
  width: 840px;
  height: 520px;
  overflow: hidden;
  background: white;
  border: 1px solid #ccd6e0;
  border-radius: 12px 0 0 0;
  box-shadow: 0 24px 60px rgba(29, 42, 57, .13);
}
.invoice-workspace > header {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: .72rem;
}
.invoice-workspace > header span {
  margin-right: auto;
  padding: .28rem .5rem;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-size: .5rem;
}
.invoice-workspace > header button {
  border: 0;
  border-radius: 5px;
  padding: .55rem .75rem;
  background: var(--accent);
  color: white;
  font-size: .5rem;
}
.invoice-workspace-body { display: grid; grid-template-columns: 66px 1fr; height: calc(100% - 60px); }
.invoice-workspace-body > aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}
.invoice-workspace-body > aside strong {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--accent);
  color: white;
  font-size: .62rem;
}
.invoice-workspace-body > aside i { width: 24px; height: 24px; border-radius: 4px; background: #edf1f4; }
.invoice-workspace-body > .invoice-editor { padding: 2rem; }
.invoice-heading { display: flex; justify-content: space-between; }
.invoice-heading span { min-width: 160px; padding: .8rem; border: 1px solid var(--line); border-radius: 6px; }
.invoice-heading small,
.invoice-heading b,
.invoice-customer small,
.invoice-customer b,
.invoice-customer span { display: block; }
.invoice-heading small,
.invoice-customer small { color: var(--muted); font-size: .5rem; }
.invoice-heading b { margin-top: .25rem; font-size: .72rem; }
.invoice-customer { margin: 1.2rem 0; padding: 1rem; background: var(--surface-blue); border-radius: 6px; }
.invoice-customer b { font-size: .75rem; }
.invoice-customer span { color: var(--muted); font-size: .52rem; }
.invoice-lines { border: 1px solid var(--line); border-radius: 6px; }
.invoice-lines div,
.invoice-lines p { display: grid; grid-template-columns: 1fr 60px 100px; gap: 1rem; align-items: center; }
.invoice-lines div { padding: .65rem 1rem; background: var(--surface); }
.invoice-lines div small { color: var(--muted); font-size: .48rem; }
.invoice-lines p { margin: 0; padding: .85rem 1rem; border-top: 1px solid var(--line); font-size: .55rem; }
.invoice-lines p span { color: var(--muted); }
.invoice-lines p strong { text-align: right; }
.invoice-total { display: flex; justify-content: flex-end; gap: 2rem; margin-top: 1rem; font-size: .72rem; }

.sanad-payment-moment {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 320px;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
}
.payment-stage {
  position: relative;
  min-height: 610px;
  padding: 5rem 0 4rem 6rem;
  border-radius: 0 120px 0 0;
  background: #dce8f6;
}
.payment-page {
  width: 430px;
  min-height: 510px;
  padding: 2rem;
  background: white;
  border: 1px solid #ccd6e0;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(29, 42, 57, .13);
}
.payment-page.payment-shot { height: 610px; padding: 0; overflow: hidden; }
.payment-page header { display: flex; justify-content: space-between; font-size: .68rem; }
.payment-page header span { color: var(--muted); font-size: .52rem; }
.payment-reference { margin: 4rem 0 .35rem; color: var(--muted); font-size: .65rem; }
.payment-page > h3 { font-size: 3.7rem; letter-spacing: -.06em; }
.payment-page > h3 + p { margin: .2rem 0 2rem; color: var(--text); }
.payment-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .67rem;
}
.payment-summary span { color: var(--text); }
.payment-page > button {
  width: 100%;
  margin-top: 1.4rem;
  border: 0;
  border-radius: 7px;
  padding: .85rem;
  background: var(--accent);
  color: white;
  font-size: .72rem;
  font-weight: 600;
}
.payment-page > small { display: block; margin-top: .8rem; color: var(--muted); text-align: center; font-size: .55rem; }
.payment-share-state,
.payment-paid-state {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 205px;
  padding: .9rem 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 14px 34px rgba(29, 42, 57, .12);
}
.payment-share-state { top: 9rem; right: 2rem; }
.payment-paid-state { right: 4rem; bottom: 5rem; }
.payment-share-state i,
.payment-paid-state i {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-blue);
  color: var(--accent);
  font-size: .7rem;
  font-style: normal;
}
.payment-paid-state i { background: var(--success); color: white; }
.payment-share-state b,
.payment-share-state small,
.payment-paid-state b,
.payment-paid-state small { display: block; }
.payment-share-state b,
.payment-paid-state b { font-size: .62rem; }
.payment-share-state small,
.payment-paid-state small { color: var(--muted); font-size: .5rem; }

.sanad-building-section { padding: var(--section-pad) 0; }
.sanad-building-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(4rem, 9vw, 9rem);
  align-items: start;
}
.sanad-building-grid h2 { max-width: 580px; font-size: var(--fs-h2); }
.sanad-building-grid h2 + p { max-width: 580px; margin: 1.8rem 0 0; color: var(--text); }
.sanad-engineering ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sanad-engineering li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 500;
}
.sanad-engineering li span { color: var(--accent); font-size: .7rem; }
.sanad-stack { margin: 2rem 0 0; color: var(--text); font-size: .82rem; }
.sanad-stack span { margin-right: 2rem; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

.sanad-case-ending { padding: 4.5rem 0; background: var(--surface); border-top: 1px solid var(--line); }
.sanad-case-ending > .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
}
.sanad-next-project { display: block; width: max-content; max-width: 100%; }
.sanad-next-project span {
  display: block;
  margin-bottom: .65rem;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sanad-next-project strong { font-size: clamp(2rem, 3.8vw, 3.8rem); letter-spacing: -.05em; line-height: 1; }
.sanad-case-ending p { margin: 0; color: var(--text); font-size: .86rem; }
.sanad-case-ending p .inline-link { margin-left: .55rem; }

@media (max-width: 900px) {
  .sanad-project-hero { padding-top: 5rem; }
  .sanad-hero-head { grid-template-columns: 1fr; gap: 2.5rem; }
  .sanad-hero-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .sanad-meta { margin-top: 0; }
  .sanad-dashboard-stage { width: calc(100% + 2rem); height: 570px; margin: 4rem -2rem 0 0; padding: 4rem 2rem 0 3rem; border-radius: 100px 0 0 0; }
  .sanad-value-grid { gap: 4rem; }
  .sanad-section-intro { grid-template-columns: 140px minmax(0, 1fr); }
  .sanad-section-intro > p:last-child { grid-column: 2; max-width: 520px; margin-top: 1rem; }
  .sanad-capabilities { grid-template-columns: repeat(4, 1fr); }
  .sanad-capabilities li:nth-child(3)::after { display: block; }
  .sanad-invoice-moment { grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; }
  .invoice-stage { padding-left: 3rem; }
  .sanad-payment-moment { grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; }
  .payment-stage { padding-left: 3rem; }
  .payment-share-state { right: 1rem; }
  .payment-paid-state { right: 1.5rem; }
  .sanad-building-grid { gap: 4rem; }
}

@media (max-width: 640px) {
  .sanad-project-hero { padding-top: 4rem; }
  .sanad-hero-head,
  .sanad-hero-head > div { min-width: 0; }
  .sanad-hero-summary { display: block; }
  .sanad-hero-summary > p { font-size: 1.05rem; }
  .sanad-meta { grid-template-columns: 1fr; gap: 1rem; margin-top: 2rem; }
  .sanad-dashboard-stage {
    width: calc(100% + 1rem);
    height: 390px;
    margin: 3rem -1rem 0 0;
    padding: 2.5rem 0 0 1rem;
    border-radius: 64px 0 0 0;
    contain: layout paint;
  }
  .sanad-case .case-dashboard-window { width: 100%; height: 340px; aspect-ratio: auto; }
  .sanad-case .case-dashboard-window .ui-layout { grid-template-columns: 1fr; }
  .sanad-case .case-dashboard-window .ui-layout > aside { display: none; }
  .sanad-case .case-dashboard-window .ui-content { padding: .85rem; }
  .sanad-case .case-dashboard-window .ui-content header button { padding: .45rem .55rem; }
  .sanad-case .case-dashboard-window .ui-table p:nth-of-type(3) { display: none; }
  .sanad-dashboard-stage .share-toast { display: none; }
  .sanad-dashboard-stage figcaption { display: none; }
  .sanad-value-section { padding: var(--section-pad-mobile) 0; }
  .sanad-value-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .sanad-value-grid article:nth-child(2) { margin-top: 0; }
  .sanad-product-section { padding: var(--section-pad-mobile) 0; }
  .sanad-section-intro { display: block; }
  .sanad-section-intro > p:last-child { margin-top: 1.4rem; }
  .sanad-capabilities { grid-template-columns: 1fr 1fr; margin-top: 3rem; }
  .sanad-capabilities li:nth-child(3)::after { display: block; }
  .sanad-capabilities li:nth-child(even)::after { display: none; }
  .sanad-moment { margin-top: 5.5rem; }
  .sanad-invoice-moment,
  .sanad-payment-moment { display: flex; flex-direction: column; gap: 2rem; }
  .sanad-invoice-moment .sanad-moment-copy { order: -1; }
  .invoice-stage {
    width: calc(100% + 1rem);
    height: 420px;
    margin-right: -1rem;
    padding: 2.5rem 0 0 1rem;
    border-radius: 64px 0 0 0;
    contain: layout paint;
  }
  .invoice-workspace { width: 100%; height: 400px; }
  .invoice-workspace-body { grid-template-columns: 1fr; }
  .invoice-workspace-body > aside { display: none; }
  .invoice-workspace-body > .invoice-editor { padding: 1.4rem; }
  .invoice-heading span { min-width: 0; }
  .invoice-heading span:nth-child(2) { display: none; }
  .invoice-lines div,
  .invoice-lines p { grid-template-columns: minmax(0, 1fr) 34px 70px; gap: .45rem; }
  .payment-stage {
    width: calc(100% + 1rem);
    min-height: 560px;
    margin-right: -1rem;
    padding: 3rem 1rem;
    border-radius: 0 64px 0 0;
  }
  .payment-page { width: min(100%, 390px); min-height: 480px; padding: 1.5rem; }
  .payment-share-state { top: 8rem; right: .5rem; }
  .payment-paid-state { right: .5rem; bottom: 2rem; }
  .sanad-payment-moment .sanad-moment-copy { order: -1; }
  .sanad-building-section { padding: var(--section-pad-mobile) 0; }
  .sanad-building-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .sanad-stack span { display: block; margin: 0 0 .5rem; }
  .sanad-case-ending { padding: 3.5rem 0; }
  .sanad-case-ending > .container { grid-template-columns: 1fr; align-items: start; }
  .sanad-next-project { width: 100%; }
  .sanad-next-project strong { display: block; overflow-wrap: anywhere; }
  .sanad-next-project strong { font-size: 2.5rem; }
  .sanad-case-ending p .inline-link { display: block; width: max-content; margin: .5rem 0 0; }
}
