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

:root {
  --bg: #1a1a1a;
  --bg-elevated: #222;
  --bg-tile: #2a2a2a;
  --ink: #f2f2f2;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #e85a4f;
  --accent-soft: #ff7a6e;
  --max: 1080px;
  --display: "Sora", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--line);
}

.site-header .inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* —— Breadcrumb hierarchy —— */
.breadcrumb {
  padding: 0.85rem 0 0;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.65rem 0 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 500;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb li[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.brand-block {
  text-decoration: none;
  color: inherit;
}

.brand-block:hover {
  color: inherit;
}

.brand-block .name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand-block .tagline {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* —— About hero —— */
.about-hero {
  padding: clamp(2.5rem, 7vw, 4rem) 0 2rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(200px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-intro {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  max-width: 30ch;
  color: #fff;
}

.about-quote {
  margin: 1.25rem 0 0;
  padding: 1rem 0 0 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.25);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--muted);
  max-width: 40rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.75rem;
  max-width: 40rem;
}

.stat {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.02);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-body {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 0.25rem;
}

.about-body p {
  margin: 0;
}

.about-experience {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.about-subhead {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.about-exp-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 42rem;
}

.about-exp-lead strong {
  color: #fff;
  font-weight: 700;
}

.side-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.side-card {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
}

.side-card-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.side-icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.3rem;
  border: 1px solid var(--line);
  color: #fff;
}

.side-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.side-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.side-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.side-card strong {
  color: #fff;
  font-weight: 700;
}

.about-builds {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.project-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.project-chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.chip-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chip-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-location {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.about-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 280px;
  margin-left: auto;
  border-radius: 0.35rem;
  overflow: hidden;
  background: var(--bg-tile);
  border: 1px solid var(--line);
}

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

.about-photo img.is-missing {
  display: none;
}

.about-photo-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.about-photo:has(img:not(.is-missing)) .about-photo-ph {
  display: none;
}

@media (max-width: 760px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    margin: 0;
    max-width: 220px;
  }

  .side-cards {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.5rem 0 2rem;
}

/* —— Tile grid —— */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 3.5rem;
}

@media (max-width: 700px) {
  .tile-grid {
    grid-template-columns: 1fr;
  }
}

.tile {
  position: relative;
  display: block;
  min-height: 220px;
  padding: 1.35rem;
  border-radius: 0.25rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: var(--bg-tile);
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), border-color 0.25s ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.tile-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}

.tile:hover .tile-bg {
  opacity: 0.5;
  transform: scale(1.04);
}

.tile-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 188px;
}

.tile .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.tile h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tile p {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 32ch;
}

.tile .go {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.tile:hover .go {
  color: #fff;
}

/* —— Page title (Experience / Builds) —— */
.page-hero {
  padding: clamp(2.25rem, 6vw, 3.5rem) 0 1.25rem;
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

/* —— Case study —— */
.case-hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 1.5rem;
}

.case-hero .eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.case-hero .lede {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.5rem;
}

.view-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.35rem 0;
}

.view-tabs {
  display: inline-flex;
  align-items: stretch;
  padding: 0.2rem;
  border-radius: 0.3rem;
  background: #111;
  border: 1px solid var(--line);
}

.view-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.view-tabs a:hover {
  color: #fff;
}

.view-tabs a[aria-current="page"] {
  background: #2a2a2a;
  color: #fff;
}

.view-links {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}

.ext-link {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 10.5rem;
  padding: 0.6rem 1rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  text-decoration: none;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ext-link:hover,
.ext-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.ext-link-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.ext-link-value {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.ext-link-value::after {
  content: " \2192";
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.ext-link:hover .ext-link-value::after {
  color: #fff;
}

@media (max-width: 700px) {
  .view-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .view-links {
    justify-content: flex-start;
    margin-left: 0;
  }

  .view-tabs {
    width: 100%;
  }

  .view-tabs a {
    flex: 1;
    justify-content: center;
  }
}

.arch-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.35rem;
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border-radius: 0.25rem;
  background: var(--bg-tile);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.arch-flow .arch-arrow {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 0 0.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0 1.15rem;
  border-radius: 0.2rem;
  font-family: var(--body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: #1a1a1a;
}

.btn-primary:hover {
  background: #e8e8e8;
  color: #1a1a1a;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.prose {
  max-width: 720px;
  padding-bottom: 3.5rem;
}

.prose article {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.prose article:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose h2 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose p {
  margin: 0;
}

.prose ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.prose em {
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

.prose-wide {
  max-width: 760px;
}

.flow-list {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.flow-list li {
  margin-top: 0.85rem;
  padding-left: 0.25rem;
}

.flow-list li::marker {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.flow-list strong {
  display: inline;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 3.5rem;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 1.35rem 1.4rem;
  border-radius: 0.25rem;
  background: var(--bg-tile);
  border: 1px solid var(--line);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.3s var(--ease);
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  color: #fff;
}

.contact-card .eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  word-break: break-word;
}

.contact-card .go {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.contact-card:hover .go {
  color: #fff;
}

.contact-card-resume {
  background: #303030;
}

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.75s var(--ease) both;
  }

  .rise-2 {
    animation-delay: 0.08s;
  }

  .rise-3 {
    animation-delay: 0.16s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
