:root {
  --bg: #f6f2ea;
  --ink: #17201e;
  --muted: #5b645f;
  --panel: #fffaf1;
  --panel-strong: #f1e3ce;
  --line: rgba(23, 32, 30, 0.14);
  --teal: #0b7c78;
  --teal-dark: #064f51;
  --amber: #d88a27;
  --oxide: #ac4f35;
  --graphite: #26302d;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(38, 48, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  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 {
  align-items: center;
  background: rgba(246, 242, 234, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 760;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  width: 34px;
}

.brand-mark span {
  transform: translateY(1px);
}

.brand-name {
  text-decoration: none;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  min-height: max(650px, calc(100vh - 150px));
  padding: clamp(52px, 7vw, 90px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 60px);
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 6vw, 6.6rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.35rem);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 0;
}

h3 {
  font-size: 1.32rem;
  letter-spacing: 0;
  line-height: 1.16;
  margin-bottom: 12px;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  max-width: 660px;
}

.hero-actions,
.contact-actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 250, 241, 0.72);
}

.proof-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.proof-pills span,
.pill,
.tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.proof-pills span {
  background: var(--panel);
  color: var(--graphite);
  padding: 8px 11px;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.spotlight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  min-height: 440px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.spotlight-card img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.spotlight-card::after {
  background: linear-gradient(180deg, rgba(23, 32, 30, 0.04), rgba(23, 32, 30, 0.78));
  content: "";
  inset: 0;
  position: absolute;
}

.spotlight-copy {
  align-self: end;
  color: var(--white);
  padding: 28px;
  position: relative;
  z-index: 1;
}

.spotlight-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.04;
  max-width: 500px;
}

.spotlight-copy .eyebrow {
  color: var(--amber);
  margin-bottom: 12px;
}

.spotlight-copy p {
  color: rgba(255, 255, 255, 0.78);
  margin: 12px 0 0;
  max-width: 520px;
}

.metric-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-visual {
  align-self: stretch;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.hero-visual img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-visual figcaption {
  align-items: center;
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid rgba(255, 250, 241, 0.68);
  border-radius: 8px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  left: 18px;
  padding: 8px;
  position: absolute;
  right: 18px;
}

.hero-visual figcaption span {
  background: rgba(23, 32, 30, 0.08);
  border-radius: 6px;
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 760;
  padding: 6px 8px;
}

.proof {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof article {
  border-right: 1px solid var(--line);
  min-height: 170px;
  padding: clamp(20px, 3vw, 34px);
}

.proof article:last-child {
  border-right: 0;
}

.proof strong {
  color: var(--teal-dark);
  display: block;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 14px;
}

.proof span,
.project-card p,
.timeline p,
.capability-list,
.intro > p {
  color: var(--muted);
}

.section {
  padding: clamp(60px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.intro,
.capabilities {
  align-items: start;
  display: grid;
  gap: clamp(24px, 6vw, 90px);
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
}

.intro > p,
.capability-list {
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  margin: 0;
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 52px);
  max-width: 920px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.7;
  margin: 18px 0 0;
}

.split-heading {
  align-items: end;
  display: grid;
  gap: clamp(22px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.62fr);
  max-width: none;
}

.split-heading > p {
  margin: 0;
}

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

.hero-panel .metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid article {
  min-height: 255px;
  padding: 24px;
}

.hero-panel .metric-grid article {
  min-height: 190px;
  padding: 20px;
}

.metric-grid strong {
  color: var(--teal-dark);
  display: block;
  font-size: clamp(2.2rem, 4.4vw, 4.15rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

.hero-panel .metric-grid strong {
  font-size: clamp(2rem, 3.1vw, 3rem);
  margin-bottom: 12px;
}

.hero-panel .metric-grid h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

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

.work-band {
  background: var(--graphite);
  color: var(--white);
}

.work-band .eyebrow,
.work-band .project-kicker {
  color: #f1c071;
}

.work-band .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.work-band .project-card {
  background: #fffaf1;
  color: var(--ink);
}

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

.project-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  overflow: hidden;
  text-decoration: none;
}

.project-card.featured {
  grid-column: span 2;
}

.project-screen {
  align-items: center;
  aspect-ratio: 1.8 / 1;
  background: var(--graphite);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.image-screen {
  background-position: center;
  background-size: cover;
}

.screenshot-screen {
  padding: 0;
}

.screenshot-screen img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.diogo-preview {
  background-image: linear-gradient(180deg, rgba(23, 32, 30, 0), rgba(23, 32, 30, 0.12)), url("assets/diogo-app-card.png");
  background-position: center;
}

.ai-recipes-preview {
  background-color: #fffaf1;
  background-image: linear-gradient(90deg, rgba(255, 250, 241, 0.02), rgba(255, 250, 241, 0.22)), url("assets/ai-recipes-card.png");
  background-position: top center;
  background-size: cover;
}

.agent-smith-preview {
  background-image: linear-gradient(180deg, rgba(255, 250, 241, 0), rgba(255, 250, 241, 0.18)), url("assets/agent-smith-card.png");
  background-position: top center;
}

.bridge-preview {
  background-image: linear-gradient(180deg, rgba(23, 32, 30, 0.02), rgba(23, 32, 30, 0.16)), url("assets/bridge-card.png");
  background-position: 77% 7%;
  background-size: 185%;
}

.key-shooter-preview {
  background-image: linear-gradient(180deg, rgba(23, 32, 30, 0), rgba(23, 32, 30, 0.08)), url("assets/key-shooter-card.png");
  background-position: center;
}

.unicorn-preview {
  background-image: linear-gradient(180deg, rgba(23, 32, 30, 0), rgba(23, 32, 30, 0.08)), url("assets/unicornfly-card.webp");
}

.ocean-screen {
  background-image: linear-gradient(180deg, rgba(23, 32, 30, 0), rgba(23, 32, 30, 0.08)), url("assets/oceanfun-card.webp");
  background-position: center;
}

.project-screen::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 38%, rgba(216, 138, 39, 0.26));
  content: "";
  inset: 0;
  position: absolute;
}

.phone-shell {
  background: #101614;
  border: 7px solid #d9d1c2;
  border-radius: 28px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
  height: 210px;
  padding: 18px;
  position: relative;
  width: 118px;
  z-index: 1;
}

.phone-top {
  background: #24302c;
  border-radius: 99px;
  height: 8px;
  margin: 0 auto 16px;
  width: 38px;
}

.photo-stack {
  display: grid;
  gap: 8px;
}

.photo-stack span {
  background: linear-gradient(135deg, #0b7c78, #d88a27);
  border-radius: 7px;
  display: block;
  height: 42px;
}

.photo-stack span:nth-child(2) {
  background: linear-gradient(135deg, #ac4f35, #f1e3ce);
}

.photo-stack span:nth-child(3) {
  background: linear-gradient(135deg, #26302d, #0b7c78);
}

.chat-card,
.recipe-tile,
.node-map,
.terminal-lines {
  position: relative;
  z-index: 1;
}

.flow-list {
  display: grid;
  gap: 12px;
  position: relative;
  width: min(300px, 92%);
  z-index: 1;
}

.flow-list span {
  background: var(--panel);
  border: 1px solid rgba(23, 32, 30, 0.18);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.14);
  color: var(--ink);
  display: block;
  font-weight: 850;
  padding: 14px;
}

.flow-list span:nth-child(2) {
  border-left-color: var(--amber);
  margin-left: 28px;
}

.flow-list span:nth-child(3) {
  border-left-color: var(--oxide);
  margin-left: 56px;
}

.flow-list.compact span:nth-child(2),
.flow-list.compact span:nth-child(3) {
  margin-left: 22px;
}

.chat-card {
  background: var(--white);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-right: -28px;
  padding: 18px;
  width: 190px;
}

.chat-card span,
.terminal-lines span {
  background: rgba(23, 32, 30, 0.2);
  border-radius: 99px;
  height: 10px;
}

.chat-card span:nth-child(2) {
  width: 76%;
}

.chat-card span:nth-child(3) {
  width: 54%;
}

.recipe-tile {
  background: linear-gradient(135deg, var(--amber), #f2d49a);
  border-radius: 8px;
  height: 118px;
  transform: rotate(4deg);
  width: 118px;
}

.node-map {
  height: 168px;
  width: 240px;
}

.node-map span {
  background: var(--panel);
  border: 2px solid rgba(11, 124, 120, 0.65);
  border-radius: 8px;
  display: block;
  height: 46px;
  position: absolute;
  width: 82px;
}

.node-map span:nth-child(1) {
  left: 0;
  top: 12px;
}

.node-map span:nth-child(2) {
  right: 0;
  top: 0;
}

.node-map span:nth-child(3) {
  left: 34px;
  bottom: 0;
}

.node-map span:nth-child(4) {
  right: 22px;
  bottom: 28px;
}

.terminal-lines {
  background: #0f1514;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 13px;
  padding: 22px;
  width: min(260px, 100%);
}

.terminal-lines span {
  background: rgba(255, 250, 241, 0.28);
}

.terminal-lines span:nth-child(2) {
  background: rgba(11, 124, 120, 0.76);
  width: 82%;
}

.terminal-lines span:nth-child(3) {
  background: rgba(216, 138, 39, 0.76);
  width: 66%;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.project-top {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-icon {
  background: #ece5d7;
  border-radius: 8px;
  display: block;
  height: 48px;
  object-fit: cover;
  overflow: hidden;
  width: 48px;
}

.text-icon {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
}

.pill {
  color: var(--muted);
  padding: 7px 10px;
  white-space: nowrap;
}

.project-kicker {
  color: var(--oxide);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.project-links {
  margin-top: auto;
  padding-top: 16px;
}

.project-links a {
  border-bottom: 2px solid rgba(11, 124, 120, 0.28);
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  background: rgba(23, 32, 30, 0.08);
  color: var(--muted);
  padding: 7px 9px;
}

.project-link {
  color: var(--teal-dark);
  font-weight: 850;
  margin-top: auto;
  padding-top: 20px;
}

.experience {
  background: var(--graphite);
  color: var(--white);
}

.experience .eyebrow,
.experience .timeline span {
  color: #f1c071;
}

.timeline {
  display: grid;
  gap: 1px;
}

.timeline article {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: clamp(16px, 4vw, 48px);
  grid-template-columns: 150px minmax(220px, 0.62fr) minmax(280px, 1fr);
  padding: 28px 0;
}

.timeline span {
  font-weight: 800;
}

.timeline h3 {
  margin: 0;
}

.timeline p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.capability-list {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
}

.capability-list li {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.about-split {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.95fr 1.05fr;
}

.about-split article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
}

.about-split p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.stack-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.stack-list span {
  background: rgba(23, 32, 30, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  padding: 12px;
}

.contact {
  background: var(--panel-strong);
  border-top: 1px solid var(--line);
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.contact > div {
  max-width: 760px;
}

.contact p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 620px;
}

.contact .contact-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 24px;
  max-width: 620px;
}

footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 82px;
  padding: 22px clamp(18px, 5vw, 72px);
}

footer span:last-child {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .hero,
  .intro,
  .capabilities,
  .split-heading,
  .about-split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .project-grid,
  .project-grid.three-up,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    height: auto;
    padding-bottom: 14px;
    padding-top: 14px;
    position: static;
  }

  nav {
    gap: 12px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  nav a {
    white-space: nowrap;
  }

  .hero {
    gap: 20px;
    padding-top: 42px;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1;
    margin-bottom: 16px;
  }

  .hero-text {
    font-size: 1rem;
  }

  .button {
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-visual,
  .spotlight-card {
    min-height: 230px;
  }

  .proof,
  .project-grid,
  .project-grid.three-up,
  .hero-panel .metric-grid,
  .metric-grid,
  .stack-list {
    grid-template-columns: 1fr;
  }

  .metric-grid article {
    min-height: 0;
  }

  .proof article {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    min-height: 0;
  }

  .proof article:last-child {
    border-bottom: 0;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
