:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #5d6862;
  --line: #dfe5dc;
  --green: #1f6b5f;
  --green-dark: #15483f;
  --coral: #c45f42;
  --gold: #b58b2f;
  --shadow: 0 24px 70px rgba(23, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.nav a:focus-visible,
.nav a:hover {
  background: var(--surface);
  color: var(--green-dark);
  outline: none;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: 70vh;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) 0 clamp(38px, 6vw, 74px);
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 5.55rem;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 30px;
  max-width: 820px;
}

.lede {
  color: var(--muted);
  font-size: 1.26rem;
  margin-bottom: 32px;
  max-width: 680px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 12px 19px;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #ffffff;
}

.button.primary:focus-visible,
.button.primary:hover {
  background: var(--green-dark);
  outline: none;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:focus-visible,
.button.secondary:hover {
  border-color: var(--green);
  color: var(--green-dark);
  outline: none;
}

.portfolio-visual {
  align-self: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 1px, transparent 1px),
    #dce8dd;
  background-size: 34px 34px;
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.portfolio-map {
  display: block;
  height: auto;
  width: 100%;
}

.map-toolbar {
  fill: #f9fbf7;
}

.map-topline {
  stroke: var(--green);
  stroke-linecap: round;
  stroke-width: 10;
}

.map-links line {
  stroke: rgba(23, 32, 28, 0.24);
  stroke-linecap: round;
  stroke-width: 4;
}

.map-node {
  filter: drop-shadow(0 14px 18px rgba(23, 32, 28, 0.14));
}

.node-ring {
  fill: #ffffff;
}

.publishing-node {
  fill: var(--green);
}

.software-node {
  fill: var(--coral);
}

.media-node {
  fill: var(--gold);
}

.map-label {
  fill: var(--green-dark);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-anchor: middle;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.brand-section,
.contact-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

h2 {
  font-size: 3.2rem;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
  max-width: 680px;
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.brand-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 274px;
  padding: 26px;
}

.card-mark {
  align-items: center;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  margin-bottom: 24px;
  width: 46px;
}

.promptstage-mark {
  background: var(--green);
}

.stack-mark {
  background: var(--coral);
}

.press-mark {
  background: var(--gold);
}

.brand-card h3 {
  font-size: 1.3rem;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.brand-card p {
  color: var(--muted);
  margin-bottom: 24px;
}

.brand-card a {
  color: var(--green-dark);
  font-weight: 800;
  margin-top: auto;
  text-decoration-color: rgba(31, 107, 95, 0.28);
  text-underline-offset: 4px;
}

.contact-section {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.email-link {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 850;
  padding: 18px 20px;
  text-decoration: none;
}

.email-link:focus-visible,
.email-link:hover {
  border-color: var(--green);
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 32px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  h1 {
    font-size: 4.2rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 2.5rem;
  }

  .lede {
    font-size: 1.16rem;
  }

  .brand-list {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .intro,
  .brand-section,
  .contact-section,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .brand span {
    font-size: 0.88rem;
  }

  .nav a {
    padding: 9px 11px;
  }

  h1 {
    font-size: 2.88rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 2.08rem;
  }

  .lede {
    font-size: 1.06rem;
  }

  .email-link {
    font-size: 1rem;
  }

  .email-link {
    width: 100%;
    word-break: break-word;
  }
}
