/* Page 1 styles */
:root {
  --paper: #f7f5f0;
  --ink: #111111;
  --charcoal: #2b2f32;
  --muted: #6b6f72;
  --line: #d8d6d0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e8e6df;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.cover {
  position: relative;
  display: grid;
  min-height: min(1122px, calc(100vh - 48px));
  width: min(794px, calc(100vw - 48px));
  grid-template-rows: auto 1fr auto auto auto 1fr auto;
  overflow: hidden;
  padding: 72px 76px 58px;
  background:
    linear-gradient(90deg, var(--charcoal) 0 18px, transparent 18px),
    var(--paper);
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
}

.cover-rule {
  position: absolute;
  top: 72px;
  right: 76px;
  left: 118px;
  height: 1px;
  background: var(--line);
}

.identity {
  grid-row: 2;
}

.name {
  margin: 0 0 28px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: 600px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 82px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitle {
  grid-row: 3;
  max-width: 560px;
  margin: 36px 0 0;
  color: var(--charcoal);
  font-size: 22px;
  line-height: 1.42;
}

.role {
  grid-row: 4;
  width: fit-content;
  margin: 44px 0 0;
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  padding: 12px 0;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.background-note {
  grid-row: 5;
  max-width: 560px;
  margin-top: 28px;
  border-left: 1px solid var(--charcoal);
  padding-left: 18px;
}

.background-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.48;
}

.featured {
  grid-row: 7;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.featured p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.featured div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.5;
}

.featured span {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--charcoal);
}

.site-nav {
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-self: start;
  padding-top: 18px;
}

.site-nav a,
.cover-links a {
  color: var(--charcoal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-nav a {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.background-note {
  grid-row: 5;
}

.featured {
  grid-row: 7;
}

.cover-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px !important;
}

.cover-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

@media (max-width: 680px) {
  .page {
    padding: 0;
  }

  .cover {
    min-height: 100vh;
    width: 100vw;
    padding: 52px 34px 42px 48px;
    box-shadow: none;
  }

  .cover-rule {
    top: 52px;
    right: 34px;
    left: 82px;
  }

  .subtitle {
    font-size: 19px;
  }

  .site-nav {
    gap: 10px 14px;
    padding-top: 8px;
  }

  .site-nav a {
    font-size: 10px;
  }

}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    background: var(--paper);
  }

  .page {
    min-height: auto;
    padding: 0;
  }

  .cover {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none;
  }
}


/* Page 2 styles */
:root {
  --paper: #f7f5f0;
  --ink: #111111;
  --charcoal: #2b2f32;
  --muted: #6b6f72;
  --line: #d8d6d0;
  --soft: #eeece5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e8e6df;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.sheet {
  display: grid;
  min-height: min(1122px, calc(100vh - 48px));
  width: min(794px, calc(100vw - 48px));
  grid-template-rows: auto auto 1fr auto;
  gap: 30px;
  overflow: hidden;
  padding: 56px 64px 46px;
  background:
    linear-gradient(90deg, var(--charcoal) 0 18px, transparent 18px),
    var(--paper);
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
}

.page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.kicker,
.section-title p,
.capabilities > p {
  margin: 0;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 640px;
  margin: 20px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.intro {
  display: grid;
  gap: 16px;
  max-width: 620px;
}

.intro p {
  margin: 0;
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.56;
}

.workflow-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.section-title {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 2px;
}

.section-title span {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.workflow {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.36);
}

.number {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.2;
}

.workflow p:not(.number) {
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.42;
}

.capabilities {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.capabilities div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.capabilities span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--soft);
  color: var(--charcoal);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
}

@media (max-width: 680px) {
  .page {
    padding: 0;
  }

  .sheet {
    min-height: 100vh;
    width: 100vw;
    gap: 34px;
    padding: 48px 28px 38px 46px;
    box-shadow: none;
  }

  h1 {
    font-size: 34px;
  }

  .intro p {
    font-size: 15.5px;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    background: var(--paper);
  }

  .page {
    min-height: auto;
    padding: 0;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none;
  }
}


/* Page 3 styles */
:root {
  --paper: #f7f5f0;
  --ink: #111111;
  --charcoal: #2b2f32;
  --muted: #6b6f72;
  --line: #d8d6d0;
  --soft: #eeece5;
  --white: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e8e6df;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.sheet {
  display: grid;
  min-height: min(1122px, calc(100vh - 48px));
  width: min(794px, calc(100vw - 48px));
  grid-template-rows: auto 1fr auto auto;
  gap: 30px;
  overflow: hidden;
  padding: 58px 64px 50px;
  background:
    linear-gradient(90deg, var(--charcoal) 0 18px, transparent 18px),
    var(--paper);
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
}

.page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.kicker,
.panel-label,
.tech-stack > p {
  margin: 0;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.summary {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.45;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.narrative {
  display: grid;
  gap: 22px;
}

article h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

article p,
li {
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.55;
}

ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.diagram-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  background: var(--white);
}

.flow {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.node,
.branches div {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
}

.arrow {
  width: 1px;
  height: 18px;
  margin: -2px auto;
  background: var(--charcoal);
}

.arrow::after {
  display: block;
  width: 7px;
  height: 7px;
  margin: 12px 0 0 -3px;
  border-right: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  content: "";
  transform: rotate(45deg);
}

.branches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  border-left: 2px solid var(--charcoal);
  padding-left: 10px;
}

.branches div {
  background: var(--soft);
  font-size: 12.5px;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lower-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.value-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.34);
}

.value-card p {
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.52;
}

.tech-stack {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.tech-stack div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.tech-stack span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--soft);
  color: var(--charcoal);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1;
}

@media (max-width: 760px) {
  .page {
    padding: 0;
  }

  .sheet {
    min-height: 100vh;
    width: 100vw;
    padding: 48px 28px 38px 46px;
    box-shadow: none;
  }

  h1 {
    font-size: 40px;
  }

  .content-grid,
  .lower-grid,
  .lower-grid.three {
    grid-template-columns: 1fr;
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    background: var(--paper);
  }

  .page {
    min-height: auto;
    padding: 0;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none;
  }
}


/* Page 4 styles */
:root {
  --paper: #f7f5f0;
  --ink: #111111;
  --charcoal: #2b2f32;
  --muted: #6b6f72;
  --line: #d8d6d0;
  --soft: #eeece5;
  --white: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e8e6df;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.sheet {
  display: grid;
  min-height: min(1122px, calc(100vh - 48px));
  width: min(794px, calc(100vw - 48px));
  grid-template-rows: auto auto 1fr auto;
  gap: 24px;
  overflow: hidden;
  padding: 52px 58px 44px;
  background:
    linear-gradient(90deg, var(--charcoal) 0 18px, transparent 18px),
    var(--paper);
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
}

.page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.kicker,
.panel-label,
.tech-stack > p {
  margin: 0;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.summary {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--charcoal);
  font-size: 18px;
  line-height: 1.42;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 24px;
  align-items: start;
}

.narrative {
  display: grid;
  gap: 17px;
}

h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

article p {
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.5;
}

ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

li {
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.5;
}

.diagram-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  background: var(--white);
}

.flow {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.node,
.branches div {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 11px;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 12.6px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.arrow {
  width: 1px;
  height: 15px;
  margin: -1px auto;
  background: var(--charcoal);
}

.arrow::after {
  display: block;
  width: 7px;
  height: 7px;
  margin: 9px 0 0 -3px;
  border-right: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  content: "";
  transform: rotate(45deg);
}

.branches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  border-left: 2px solid var(--charcoal);
  padding-left: 9px;
}

.branches div {
  background: var(--soft);
  font-size: 12px;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lower-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.value-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.34);
}

.value-card p {
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.52;
}

.tech-stack {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.tech-stack div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tech-stack span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--soft);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

@media (max-width: 760px) {
  .page {
    padding: 0;
  }

  .sheet {
    min-height: 100vh;
    width: 100vw;
    padding: 48px 28px 38px 46px;
    box-shadow: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero-grid,
  .lower-grid,
  .lower-grid.three {
    grid-template-columns: 1fr;
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    background: var(--paper);
  }

  .page {
    min-height: auto;
    padding: 0;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none;
  }
}


/* Page 5 styles */
:root {
  --paper: #f7f5f0;
  --ink: #111111;
  --charcoal: #2b2f32;
  --muted: #6b6f72;
  --line: #d8d6d0;
  --soft: #eeece5;
  --white: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e8e6df;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.sheet {
  display: grid;
  min-height: min(1122px, calc(100vh - 48px));
  width: min(794px, calc(100vw - 48px));
  grid-template-rows: auto auto 1fr auto;
  gap: 24px;
  overflow: hidden;
  padding: 52px 58px 44px;
  background:
    linear-gradient(90deg, var(--charcoal) 0 18px, transparent 18px),
    var(--paper);
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
}

.page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.kicker,
.panel-label,
.tech-stack > p {
  margin: 0;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 47px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.summary {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.42;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 24px;
  align-items: start;
}

.narrative {
  display: grid;
  gap: 17px;
}

h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

article p {
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.5;
}

ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

li {
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.5;
}

.diagram-panel {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px;
  background: var(--white);
}

.flow {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.node,
.split div,
.outcomes div {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 11px;
  background: var(--paper);
  color: var(--charcoal);
  font-size: 12.6px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.arrow {
  width: 1px;
  height: 15px;
  margin: -1px auto;
  background: var(--charcoal);
}

.arrow::after {
  display: block;
  width: 7px;
  height: 7px;
  margin: 9px 0 0 -3px;
  border-right: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  content: "";
  transform: rotate(45deg);
}

.split,
.outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  border-left: 2px solid var(--charcoal);
  padding-left: 9px;
}

.split div,
.outcomes div {
  background: var(--soft);
  font-size: 12px;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lower-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.value-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.34);
}

.value-card p {
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.52;
}

.tech-stack {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.tech-stack div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tech-stack span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--soft);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

@media (max-width: 760px) {
  .page {
    padding: 0;
  }

  .sheet {
    min-height: 100vh;
    width: 100vw;
    padding: 48px 28px 38px 46px;
    box-shadow: none;
  }

  h1 {
    font-size: 38px;
  }

  .hero-grid,
  .lower-grid,
  .lower-grid.three {
    grid-template-columns: 1fr;
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    background: var(--paper);
  }

  .page {
    min-height: auto;
    padding: 0;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none;
  }
}


/* Page 6 styles */
:root {
  --paper: #f7f5f0;
  --ink: #111111;
  --charcoal: #2b2f32;
  --muted: #6b6f72;
  --line: #d8d6d0;
  --soft: #eeece5;
  --white: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e8e6df;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.sheet {
  display: grid;
  min-height: min(1122px, calc(100vh - 48px));
  width: min(794px, calc(100vw - 48px));
  grid-template-rows: auto auto 1fr auto auto;
  gap: 38px;
  overflow: hidden;
  padding: 64px 68px 54px;
  background:
    linear-gradient(90deg, var(--charcoal) 0 18px, transparent 18px),
    var(--paper);
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
}

.page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 34px;
}

.kicker,
.card-label,
.section-label {
  margin: 0;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 660px;
  margin: 20px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.intro {
  display: grid;
  gap: 14px;
  max-width: 640px;
}

.intro p,
.career-direction p:not(.section-label) {
  margin: 0;
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.55;
}

.focus-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.focus-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  background: var(--white);
}

.focus-card.dark {
  border-color: var(--charcoal);
  background: var(--charcoal);
}

.focus-card.dark .card-label,
.focus-card.dark li {
  color: var(--paper);
}

ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

li {
  color: var(--charcoal);
  font-size: 13.8px;
  line-height: 1.45;
}

.career-direction {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.career-direction p:not(.section-label) {
  max-width: 650px;
  margin-top: 14px;
}

.closing {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.closing p {
  margin: 0;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.closing span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

@media (max-width: 760px) {
  .page {
    padding: 0;
  }

  .sheet {
    min-height: 100vh;
    width: 100vw;
    gap: 34px;
    padding: 48px 28px 38px 46px;
    box-shadow: none;
  }

  h1 {
    font-size: 34px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .closing {
    align-items: start;
    flex-direction: column;
  }

  .closing span {
    text-align: left;
  }
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    background: var(--paper);
  }

  .page {
    min-height: auto;
    padding: 0;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none;
  }
}


/* Page 7 styles */
:root {
  --paper: #f7f5f0;
  --ink: #111111;
  --charcoal: #2b2f32;
  --muted: #6b6f72;
  --line: #d8d6d0;
  --soft: #eeece5;
  --white: rgba(255, 255, 255, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #e8e6df;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.sheet {
  display: grid;
  min-height: min(1122px, calc(100vh - 48px));
  width: min(794px, calc(100vw - 48px));
  grid-template-rows: auto 1fr auto;
  gap: 36px;
  overflow: hidden;
  padding: 60px 64px 50px;
  background:
    linear-gradient(90deg, var(--charcoal) 0 18px, transparent 18px),
    var(--paper);
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
}

.page-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.kicker {
  margin: 0;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 45px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.summary {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.5;
}

.concept-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.concept {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 18px 20px;
  background: var(--white);
}

.number {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
}

h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.concept p:not(.number) {
  margin: 0;
  color: var(--charcoal);
  font-size: 13.4px;
  line-height: 1.47;
}

@media (max-width: 760px) {
  .page {
    padding: 0;
  }

  .sheet {
    min-height: 100vh;
    width: 100vw;
    padding: 48px 28px 38px 46px;
    box-shadow: none;
  }

  h1 {
    font-size: 34px;
  }

  .concept {
    grid-template-columns: 1fr;
    gap: 10px;
  }

}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    background: var(--paper);
  }

  .page {
    min-height: auto;
    padding: 0;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    box-shadow: none;
  }
}


/* Combined portfolio adjustments */
body {
  display: grid;
  gap: 40px;
  padding: 24px 0;
}

main {
  display: grid;
  min-width: 0;
  gap: 40px;
}

main > .page {
  min-height: auto;
  padding: 0 24px;
}

.page,
.cover,
.sheet,
.page-header,
.content-grid,
.hero-grid,
.lower-grid,
.narrative,
.diagram-panel,
.workflow > div,
.concept > div,
.tech-stack,
.portfolio-links {
  min-width: 0;
}

h1,
h2,
.role,
.kicker,
.summary,
.featured div,
.node,
.branches div,
.split div,
.outcomes div,
.tech-stack span,
.public-workflow-link,
.public-workflow-link a,
.portfolio-links a {
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
}

@media (max-width: 760px) {
  body {
    display: block;
    overflow-x: hidden;
    padding: 0;
  }

  main {
    gap: 0;
  }

  main > .page {
    width: 100%;
    padding: 0;
  }

  .cover,
  .sheet {
    width: 100%;
    max-width: 100%;
  }

  .role {
    max-width: 100%;
    width: auto;
  }

  .tech-stack span.tech-badge {
    max-width: 100%;
    line-height: 1.25;
  }

  .portfolio-links div {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    display: block;
    padding: 0;
  }

  main {
    display: block;
    gap: 0;
  }

  main > .page {
    break-after: page;
    page-break-after: always;
    padding: 0;
  }

  main > .page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}

/* Clear brand/product badges using downloaded logo assets */
.tech-stack span.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px 7px 9px;
}

.brand-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.tech-stack span.tech-badge img[src$="google-sheets.png"],
.tech-stack span.tech-badge img[src$="google-docs.png"],
.tech-stack span.tech-badge img[src$="google-drive.png"] {
  width: 25px;
  height: 25px;
  flex-basis: 25px;
}

.public-workflow-link {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 13px 0 0;
  color: var(--charcoal);
  font-size: 11.5px;
  line-height: 1.35;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}

.status-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--soft);
  color: var(--charcoal);
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.2;
}

.workflow .status-row {
  margin-top: 10px;
}

.cover,
.sheet {
  position: relative;
}

.page-number {
  position: absolute;
  right: 26px;
  bottom: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.cover > .page-number {
  right: 76px;
  bottom: 32px;
}

@media (max-width: 760px) {
  .page-number {
    right: 24px;
    bottom: 16px;
  }

  .cover > .page-number {
    right: 34px;
    bottom: 20px;
  }
}

@media screen {
  .cover-page { order: 0; }
  main > .page:nth-of-type(2) { order: 1; }
  .property-portal-page { order: 2; }
  .property-automation-page { order: 3; }
  .farmer-page { order: 4; }
  .asana-page { order: 5; }
  .principles-page { order: 6; }

  html {
    scroll-behavior: smooth;
  }
}

.public-workflow-link a,
.portfolio-links a {
  color: var(--charcoal);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.portfolio-links {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.portfolio-links > p {
  margin: 0 0 8px;
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-links div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}

.portfolio-links a {
  overflow-wrap: anywhere;
  font-size: 11.5px;
  line-height: 1.35;
}

/* Keep ordinary prose intact when the PDF renderer wraps narrow columns. */
.narrative p,
.narrative li,
.value-card p,
.summary,
.intro p,
.workflow p,
.concept p:not(.number) {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}


/* PDF export hardening */
/* Keep the private rental portal page free of the template's coloured edge. */
main > .page:nth-of-type(5) .sheet {
  background: var(--paper);
}

@media print {
  html,
  body {
    width: 210mm;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--paper) !important;
  }

  body {
    display: block !important;
    gap: 0 !important;
  }

  main > .page {
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    break-after: page;
    page-break-after: always;
  }

  main > .page:last-child {
    break-after: auto;
    page-break-after: auto;
  }


  .content-grid,
  .hero-grid {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 26px !important;
    align-items: start !important;
  }

  .lower-grid,
  .lower-grid.three {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .diagram-panel {
    width: auto !important;
  }

  .cover,
  .sheet {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  main > .page:nth-of-type(4) .sheet {
    gap: 15px !important;
    padding-top: 38px !important;
  }

  main > .page:nth-of-type(4) .kicker {
    font-size: 10.5px !important;
    letter-spacing: 0.14em !important;
  }

  main > .page:nth-of-type(4) .narrative {
    gap: 12px !important;
  }

  main > .page:nth-of-type(6) h1 {
    font-size: 40px !important;
  }
}


/* PDF export spacing fit */
@media print {
  .sheet {
    gap: 22px !important;
    padding: 44px 52px 30px !important;
  }

  .cover {
    padding: 68px 76px 54px !important;
  }

  .page-header {
    padding-bottom: 20px !important;
  }

  .summary,
  .intro p,
  .narrative p,
  .narrative li,
  .value-card p,
  .concept p:not(.number),
  .workflow p:not(.number) {
    line-height: 1.42 !important;
  }

  .flow {
    gap: 5px !important;
  }

  .node,
  .branches div,
  .split div,
  .outcomes div {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .arrow {
    height: 11px !important;
  }

  .arrow::after {
    margin-top: 5px !important;
  }

  .value-card {
    padding: 16px !important;
  }

  .tech-stack {
    padding-top: 12px !important;
  }

  .public-workflow-link {
    margin-top: 8px !important;
    font-size: 10.5px !important;
  }

  .portfolio-links {
    padding-top: 10px !important;
  }

  .portfolio-links > p {
    margin-bottom: 6px !important;
  }

  .portfolio-links a {
    font-size: 10.5px !important;
  }

  .tech-stack div {
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .tech-stack span.tech-badge {
    min-height: 30px !important;
    padding: 5px 10px 5px 8px !important;
  }

  .brand-icon {
    width: 20px !important;
    height: 20px !important;
    flex-basis: 20px !important;
  }
}
