:root {
  --bg: #0f120f;
  --bg-soft: #141a15;
  --panel: #171d18;
  --panel-strong: #1f2a22;
  --text: #f0eeeb;
  --muted: #c9c3bd;
  --faint: #8d867e;
  --line: #2f4637;
  --accent: #39a86d;
  --accent-dark: #1f6b45;
  --accent-soft: rgba(57, 168, 109, 0.14);
  --gold: #d3a172;
  --font-heading: "Bricolage Grotesque", "Urbanist", system-ui, sans-serif;
  --font-body: "Urbanist", system-ui, sans-serif;
  --container: min(1180px, calc(100vw - 44px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(57, 168, 109, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(57, 168, 109, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(57, 168, 109, 0.13), transparent 520px),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto, auto;
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
  opacity: 0.28;
  z-index: -1;
}

.site-header::after {
  content: "SYSTEM NOIR // BACKEND CONTROL ROOM";
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
  width: var(--container);
  color: rgba(201, 195, 189, 0.42);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  pointer-events: none;
}

.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 32%;
  bottom: 90px;
  width: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}

.signal-stack {
  position: absolute;
  left: 0;
  bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}

.signal-stack span {
  padding: 8px 12px;
  border: 1px solid rgba(57, 168, 109, 0.38);
  background: rgba(15, 18, 15, 0.72);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-card,
.project-card,
.writing-card,
.testimonial-grid article,
.tool-groups article,
.about-facts article,
.timeline article,
.not-found-panel {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 24px 90px rgba(0, 0, 0, 0.17);
}

.project-card,
.writing-card,
.testimonial-grid article,
.tool-groups article,
.about-facts article,
.timeline article {
  position: relative;
}

.project-card::before,
.writing-card::before,
.timeline article::after,
.tool-groups article::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  opacity: 0.72;
}

.case-item {
  position: relative;
}

.case-item::before {
  content: "CASE FILE";
  position: absolute;
  left: 0;
  top: -30px;
  color: rgba(201, 195, 189, 0.34);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.project-shot {
  border-color: rgba(57, 168, 109, 0.3);
}

.project-shot.has-image {
  background: rgba(15, 18, 15, 0.24);
}

.transparent-logo-shot {
  background: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--accent);
  color: #0f0d0b;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 21, 18, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(56, 69, 59, 0.74);
}

.nav {
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 3px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #101712;
  overflow: hidden;
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background:
    radial-gradient(circle at 50% 38%, #d3a172 0 14%, transparent 15%),
    radial-gradient(circle at 50% 100%, #7a5b42 0 34%, transparent 35%),
    #2a2520;
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.text-link:hover,
.contact-section a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section,
.credibility-strip,
.footer {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 104px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 64px;
}

.page-hero {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(3.8rem, 8.5vw, 8.4rem);
}

.page-section {
  padding-top: 76px;
}

.projects-intro .hero-lede {
  max-width: 870px;
}

.case-list {
  display: grid;
  gap: 108px;
}

.case-item {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: center;
}

.case-copy h2 {
  margin-top: 16px;
  color: var(--accent);
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
}

.case-copy p {
  max-width: 610px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.43;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
}

.case-links a {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.case-links a:hover {
  color: var(--accent);
}

.case-stat {
  display: grid;
  gap: 8px;
  margin-top: 56px;
}

.case-stat span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-stat strong {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1;
}

.project-shot {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 34px;
  border-radius: 8px;
  border: 1px dashed rgba(23, 21, 18, 0.35);
  background:
    linear-gradient(180deg, rgba(57, 168, 109, 0.92) 0 70px, transparent 70px),
    linear-gradient(135deg, rgba(211,161,114,0.46), rgba(31,107,69,0.76)),
    #1d3427;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
  color: var(--text);
  text-align: center;
}

.project-shot span {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 800;
}

.project-shot small {
  color: rgba(240, 238, 235, 0.72);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


.project-shot.has-image {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-style: solid;
}

.project-shot.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.project-shot.has-image figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 23, 18, 0.82);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo-shot {
  position: relative;
}

.screenshot-shot {
  background: #101712;
}

.screenshot-shot img {
  object-fit: cover;
  object-position: center;
}

.dark-logo-shot {
  background: #1d1d1d;
}

.transparent-logo-shot {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.apartay-logo-shot img {
  padding: 44px;
}

.portrait-experience-shot img {
  object-fit: cover;
  object-position: center 32%;
}

.duwitt-logo-shot {
  background: #020705;
}

.duwitt-logo-shot img {
  padding: 34px;
}

.compact-projects {
  padding-top: 12px;
}

.compact-case-list {
  gap: 56px;
}

.compact-case-item {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.72fr);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.compact-case-item .project-shot {
  min-height: 300px;
}

.experience-list {
  gap: 64px;
}

.experience-item {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 0.82fr);
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.experience-shot {
  min-height: 300px;
  background:
    linear-gradient(180deg, rgba(57, 168, 109, 0.88) 0 56px, transparent 56px),
    linear-gradient(135deg, rgba(211, 161, 114, 0.25), rgba(31, 107, 69, 0.62)),
    #26231f;
  color: var(--text);
}

.experience-shot small {
  color: var(--muted);
}

.eyebrow,
.card-topline,
.writing-card span,
.timeline span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin-top: 18px;
  font-size: clamp(4.1rem, 11vw, 9.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.55rem, 2vw, 2.15rem);
}

.hero-lede,
.philosophy p,
.contact-section p {
  max-width: 780px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.72rem);
  line-height: 1.45;
}

.hero-actions,
.social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.button-primary,
.contact-button {
  background: var(--accent);
  color: #11100e;
}

.button-primary:hover,
.contact-button:hover {
  background: #45a66f;
  color: #11100e;
}

.button-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.profile-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), rgba(36, 33, 29, 0.55));
  padding: 18px;
}

.portrait-slot {
  aspect-ratio: 4 / 5;
  min-height: 430px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px dashed rgba(57, 168, 109, 0.64);
  background:
    linear-gradient(135deg, rgba(57, 168, 109, 0.16), transparent),
    #151310;
  text-align: center;
}

.portrait-initials {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #11100e;
  font-size: 2.4rem;
  font-weight: 900;
}

.portrait-slot p {
  font-weight: 900;
  font-size: 1.2rem;
}

.portrait-slot span,
.profile-note span,
.footer p {
  color: var(--faint);
}

.portrait-photo {
  padding: 0;
  border-style: solid;
  overflow: hidden;
  background: #151310;
}

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

.profile-note {
  display: grid;
  gap: 6px;
  padding: 18px 4px 4px;
}

.credibility-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 74px;
  border-bottom: 1px solid var(--line);
}

.credibility-strip span,
.tag-list span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.philosophy,
.split-section,
.about-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.philosophy h2,
.about-copy h2 {
  margin-top: 14px;
}

.project-grid,
.writing-grid,
.testimonial-grid,
.tool-groups,
.about-facts {
  display: grid;
  gap: 16px;
}

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

.project-card,
.writing-card,
.testimonial-grid article,
.tool-groups article,
.about-facts article,
.timeline article {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover,
.writing-card:hover,
.testimonial-grid article:hover,
.tool-groups article:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 168, 109, 0.72);
  background: var(--panel-strong);
}

.project-card-featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.project-card h3,
.writing-card h3,
.timeline h3,
.tool-groups h3 {
  margin-top: 18px;
}

.project-card p,
.writing-card p,
.timeline p,
.tool-groups p,
.about-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.project-card-featured .card-lede {
  max-width: 720px;
  font-size: 1.35rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.project-card ul {
  margin: 28px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  color: var(--accent);
  font-weight: 900;
}

.sticky-heading {
  position: sticky;
  top: 110px;
}

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

.timeline article {
  position: relative;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 24px;
  width: 3px;
  height: 54px;
  background: var(--accent);
}

.tool-groups {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.writing-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.writing-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.writing-card .text-link {
  margin-top: auto;
}

.writing-cta {
  margin-top: 20px;
}

.testimonials {
  padding-bottom: 52px;
}

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

.testimonial-grid article {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-placeholder {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.48;
}

.testimonial-grid strong,
.testimonial-grid span {
  display: block;
}

.testimonial-grid span {
  margin-top: 5px;
  color: var(--faint);
}

.about-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-facts strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 3rem;
  line-height: 1;
}

.about-facts span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.contact-section {
  padding: 88px 0 0;
  background: #151a16;
}

.contact-inner {
  width: var(--container);
  min-height: 520px;
  margin: 0 auto;
  padding: 0 0 112px;
  border-bottom: 1px solid var(--line);
}

.contact-section h2 {
  font-size: clamp(4rem, 8vw, 7rem);
}

.contact-section p {
  max-width: 760px;
}

.contact-section a:not(.contact-button) {
  color: var(--accent);
}

.contact-button {
  min-width: 258px;
  min-height: 96px;
  margin-top: 52px;
  font-size: 1.05rem;
}

.social-row {
  margin-top: 34px;
}

.social-row a {
  font-weight: 800;
}

.footer {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
}

.not-found {
  min-height: calc(100vh - 226px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 70px;
}

.not-found h1 {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(4rem, 9vw, 8.4rem);
}

.not-found-panel {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(57, 168, 109, 0.18), transparent 52%),
    var(--panel);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.22);
}

.not-found-code {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.88;
}

.route-list {
  display: grid;
  gap: 12px;
}

.route-list a {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.route-list a:hover {
  border-color: var(--accent);
  background: rgba(57, 168, 109, 0.1);
}

.route-list span {
  color: var(--text);
  font-weight: 900;
}

.route-list small {
  color: var(--faint);
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .hero,
  .not-found,
  .philosophy,
  .split-section,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .project-grid,
  .tool-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .case-item,
  .experience-item,
  .compact-case-item {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-shot {
    min-height: 340px;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links.is-open {
    display: flex;
  }

  .section {
    padding: 76px 0;
  }

  .hero {
    min-height: auto;
    gap: 42px;
  }
  .signal-stack {
    position: static;
    margin-top: 8px;
  }

  .site-header::after {
    display: none;
  }


  h1 {
    font-size: clamp(3.45rem, 18vw, 6rem);
  }

  h2,
  .contact-section h2 {
    font-size: clamp(2.65rem, 13vw, 4.4rem);
  }

  .hero-lede,
  .philosophy p,
  .contact-section p {
    font-size: 1.17rem;
  }

  .portrait-slot {
    min-height: 360px;
  }

  .project-grid,
  .writing-grid,
  .testimonial-grid,
  .tool-groups,
  .about-facts {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-column: auto;
    min-height: auto;
  }

  .case-list {
    gap: 74px;
  }

  .case-copy h2 {
    font-size: clamp(2.4rem, 13vw, 3.7rem);
  }

  .case-copy p {
    font-size: 1.15rem;
  }

  .project-shot {
    min-height: 260px;
  }

  .compact-case-item {
    padding-bottom: 42px;
  }

  .card-topline {
    flex-direction: column;
    gap: 8px;
  }

  .contact-button {
    width: 100%;
  }

  .footer {
    padding: 30px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Experimental app-like portfolio layer */
.interface-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px;
  align-items: stretch;
  padding-top: 48px;
  padding-bottom: 54px;
}

.thread-panel {
  align-self: center;
  border: 1px solid rgba(57, 168, 109, 0.38);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(57, 168, 109, 0.08), transparent 38%),
    rgba(12, 15, 12, 0.9);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

.thread-topbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(57, 168, 109, 0.24);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thread-topbar strong {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.74rem;
}

.thread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
}

.message-stack {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 42px);
}

.message {
  width: fit-content;
  max-width: min(760px, 100%);
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.035);
}

.message span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.message p {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.45;
}

.message-user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: rgba(57, 168, 109, 0.16);
}

.message-system,
.message-codex {
  border-bottom-left-radius: 4px;
}

.message-codex {
  width: 100%;
  background: linear-gradient(135deg, rgba(57, 168, 109, 0.18), rgba(255,255,255,0.03));
}

.message-codex h1 {
  margin: 0 0 20px;
  max-width: 980px;
  font-size: clamp(3.2rem, 7vw, 7.3rem);
}

.compact-message {
  max-width: 620px;
}

.thread-panel .hero-actions {
  margin: 0;
  padding: 0 clamp(18px, 4vw, 42px) clamp(18px, 4vw, 42px);
}

.interface-hero .profile-card {
  align-self: center;
  border-radius: 18px;
  transform: rotate(1.2deg);
}

.interface-hero .portrait-slot {
  border-radius: 14px;
}

.receipt-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(15, 18, 15, 0.72);
}

.receipt-strip span {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 18px;
  background: transparent;
}

.receipt-strip span:last-child {
  border-right: 0;
}

.memo-section,
.dossier-section,
.ops-log-section,
.inventory-section,
.notes-section,
.witness-section,
.profile-log-section {
  position: relative;
}

.memo-section::before,
.dossier-section::before,
.ops-log-section::before,
.inventory-section::before,
.notes-section::before,
.witness-section::before,
.profile-log-section::before {
  content: attr(class);
  display: none;
}

.section-heading,
.philosophy > div,
.about-copy {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
}

.project-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.project-card,
.writing-card,
.testimonial-grid article,
.tool-groups article,
.about-facts article,
.timeline article {
  border-radius: 0 18px 18px 18px;
}

.project-card::after,
.writing-card::after,
.tool-groups article::after {
  content: "open file";
  position: absolute;
  left: 26px;
  bottom: 18px;
  color: rgba(201, 195, 189, 0.38);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card-featured::after {
  content: "flagship file";
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(57, 168, 109, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(57, 168, 109, 0.08) 1px, transparent 1px),
    #0d110e;
  background-size: 52px 52px;
}

.contact-inner {
  position: relative;
}

.contact-inner::before {
  content: "CHANNEL READY";
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(57, 168, 109, 0.38);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

@media (max-width: 980px) {
  .receipt-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receipt-strip span {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .interface-hero {
    padding-top: 34px;
  }

  .message-codex h1 {
    font-size: clamp(2.7rem, 15vw, 4.8rem);
  }

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

  .receipt-strip span {
    border-right: 0;
  }
}

/* Stranger interface pass */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(57, 168, 109, 0.18), transparent 22rem),
    linear-gradient(90deg, rgba(57, 168, 109, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(57, 168, 109, 0.045) 1px, transparent 1px),
    #0b0f0c;
  background-size: auto, 64px 64px, 64px 64px, auto;
}

.site-header {
  top: 14px;
  width: min(1180px, calc(100vw - 28px));
  margin: 14px auto 0;
  border: 1px solid rgba(57, 168, 109, 0.26);
  border-radius: 999px;
  background: rgba(11, 15, 12, 0.78);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.04);
}

.site-header::after {
  content: "MAYOWA OS // NOT A TEMPLATE // STILL RESPONSIVE, SADLY";
  left: 28px;
  right: 28px;
  bottom: -28px;
  transform: none;
  width: auto;
}

.nav {
  width: 100%;
  min-height: 64px;
  padding: 0 12px 0 14px;
}

.brand {
  min-width: 0;
}

.brand > span:last-child {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-avatar {
  width: 42px;
  height: 42px;
  border-color: var(--gold);
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: rgba(57, 168, 109, 0.34);
  background: rgba(57, 168, 109, 0.12);
}

.section,
.credibility-strip,
.footer {
  width: min(1180px, calc(100vw - 44px));
}

.interface-hero {
  min-height: calc(100vh - 92px);
  padding-top: 76px;
  padding-bottom: 34px;
}

.hero::after {
  right: 7%;
  bottom: 10%;
  width: 46%;
  opacity: 0.25;
}

.thread-panel,
.profile-card,
.page-hero,
.not-found-panel {
  position: relative;
  isolation: isolate;
}

.thread-panel::before,
.page-hero::before,
.not-found-panel::before {
  content: "TRANSMISSION LOG";
  position: absolute;
  top: -13px;
  left: 22px;
  z-index: 1;
  padding: 4px 9px;
  border: 1px solid rgba(57, 168, 109, 0.32);
  background: #0b0f0c;
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-card::before {
  content: "ONE PHOTO SLOT";
  position: absolute;
  top: 14px;
  left: -18px;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #0b0f0c;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.profile-note {
  border-top: 1px solid rgba(57, 168, 109, 0.26);
  margin-top: 12px;
  padding: 16px 4px 2px;
}

.receipt-strip {
  margin-top: -8px;
  transform: rotate(-0.35deg);
}

.receipt-strip span {
  min-height: 74px;
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  color: var(--text);
}

.philosophy,
.split-section,
.about-section,
.writing-section,
.testimonials {
  border-bottom: 1px solid rgba(57, 168, 109, 0.22);
}

.memo-section,
.dossier-section,
.ops-log-section,
.inventory-section,
.notes-section,
.witness-section,
.profile-log-section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.memo-section::after,
.dossier-section::after,
.ops-log-section::after,
.inventory-section::after,
.notes-section::after,
.witness-section::after,
.profile-log-section::after {
  content: "";
  position: absolute;
  left: 0;
  top: 44px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.25;
}

.section-heading,
.philosophy > div,
.about-copy {
  border-left: 0;
  padding-left: 0;
}

.section-heading::before,
.philosophy > div::before,
.about-copy::before {
  content: "open drawer";
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(57, 168, 109, 0.3);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-grid,
.writing-grid,
.testimonial-grid,
.tool-groups,
.about-facts,
.timeline {
  gap: 12px;
}

.project-card,
.writing-card,
.testimonial-grid article,
.tool-groups article,
.about-facts article,
.timeline article {
  background: rgba(12, 16, 13, 0.76);
  border-color: rgba(57, 168, 109, 0.23);
  border-radius: 18px;
}

.project-card:hover,
.writing-card:hover,
.testimonial-grid article:hover,
.tool-groups article:hover {
  background: rgba(19, 28, 21, 0.9);
}

.project-card h3,
.writing-card h3,
.timeline h3,
.tool-groups h3,
.case-copy h2 {
  color: var(--gold);
}

.page-hero {
  min-height: auto;
  margin-top: 78px;
  padding: clamp(34px, 6vw, 74px);
  border: 1px solid rgba(57, 168, 109, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(57, 168, 109, 0.13), transparent 40%),
    rgba(11, 15, 12, 0.8);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.035);
}

.page-hero::before {
  content: "SELECTED TAB / EVIDENCE MODE";
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(3rem, 7vw, 6.8rem);
}

.page-hero .hero-lede {
  max-width: 840px;
}

.page-section,
.project-list-section,
.experience-list-section {
  padding-top: 54px;
}

.case-list {
  gap: 18px;
}

.case-item,
.experience-item,
.compact-case-item {
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 0.82fr);
  gap: 42px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid rgba(57, 168, 109, 0.22);
  border-radius: 22px;
  background: rgba(12, 16, 13, 0.58);
}

.case-item::before {
  top: 16px;
  left: 24px;
  color: rgba(201, 195, 189, 0.42);
}

.case-copy {
  padding-top: 32px;
}

.case-copy h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.2rem);
}

.case-copy p {
  font-size: clamp(1.05rem, 1.5vw, 1.34rem);
}

.case-stat {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(57, 168, 109, 0.22);
}

.case-stat strong {
  font-size: clamp(1.7rem, 3vw, 3.1rem);
}

.project-shot,
.experience-shot {
  position: relative;
  min-height: 320px;
  border-style: solid;
  border-color: rgba(57, 168, 109, 0.24);
  background: transparent;
  box-shadow: none;
}

.project-shot::before {
  content: "visual evidence";
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(11, 15, 12, 0.8);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-shot.has-image img {
  object-fit: contain;
  padding: 26px;
}

.screenshot-shot img,
.portrait-experience-shot img {
  object-fit: cover;
  padding: 0;
}

.dark-logo-shot,
.duwitt-logo-shot,
.transparent-logo-shot,
.screenshot-shot {
  background: transparent;
}

.apartay-logo-shot img,
.duwitt-logo-shot img {
  padding: 42px;
}

.writing-card {
  min-height: 260px;
}

.writing-card::after,
.project-card::after,
.tool-groups article::after {
  bottom: 14px;
}

.not-found {
  padding-top: 96px;
}

.not-found-panel::before {
  content: "BAD ROUTE, GOOD TASTE";
}

.contact-section {
  margin-top: 40px;
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 28px;
  }

  .case-item,
  .experience-item,
  .compact-case-item {
    grid-template-columns: 1fr;
  }

  .project-shot,
  .experience-shot {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 8px;
    width: calc(100vw - 20px);
    margin-top: 8px;
  }

  .nav {
    padding-right: 8px;
  }

  .brand > span:last-child {
    max-width: 150px;
  }

  .nav-links {
    left: 10px;
    right: 10px;
    top: 76px;
    border-radius: 18px;
  }

  .interface-hero {
    padding-top: 60px;
  }

  .page-hero {
    margin-top: 58px;
    padding: 30px 20px;
  }

  .case-item,
  .experience-item,
  .compact-case-item {
    padding: 18px;
  }

  .case-copy {
    padding-top: 36px;
  }

  .project-shot.has-image img {
    padding: 18px;
  }

  .screenshot-shot img,
  .portrait-experience-shot img {
    padding: 0;
  }
}

/* Responsive repair pass */
@media (max-width: 980px) {
  .section,
  .credibility-strip,
  .footer {
    width: min(100vw - 32px, 760px);
  }

  .site-header {
    width: min(100vw - 24px, 760px);
  }

  .interface-hero {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding-top: 70px;
  }

  .hero::after {
    display: none;
  }

  .thread-panel,
  .interface-hero .profile-card {
    width: 100%;
    min-width: 0;
    transform: none;
  }

  .thread-panel {
    overflow: visible;
  }

  .message-stack {
    gap: 12px;
    padding: 22px;
  }

  .message {
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .message-user {
    justify-self: stretch;
  }

  .message-codex h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 9vw, 4.7rem);
    line-height: 1.02;
    overflow-wrap: normal;
  }

  .interface-hero .profile-card {
    max-width: 560px;
    justify-self: center;
    padding: 14px;
  }

  .interface-hero .portrait-slot,
  .portrait-slot {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }

  .portrait-photo img {
    object-position: center 34%;
  }

  .profile-note {
    padding: 12px 2px 0;
  }

  .receipt-strip {
    transform: none;
  }

  .case-list,
  .compact-case-list,
  .experience-list {
    gap: 18px;
  }

  .case-item,
  .experience-item,
  .compact-case-item {
    gap: 18px;
    padding: 20px;
  }

  .case-copy h2 {
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .case-copy p {
    max-width: 100%;
  }

  .project-shot,
  .experience-shot,
  .compact-case-item .project-shot {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 24px, 1180px);
  }

  .section,
  .credibility-strip,
  .footer {
    width: var(--container);
  }

  .site-header {
    width: calc(100vw - 16px);
    margin-top: 8px;
    border-radius: 999px;
  }

  .site-header::after {
    display: none;
  }

  .nav {
    min-height: 56px;
    padding: 0 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-avatar {
    width: 36px;
    height: 36px;
    padding: 2px;
  }

  .brand > span:last-child {
    max-width: 160px;
    font-size: 0.86rem;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    left: 8px;
    right: 8px;
    top: 62px;
    border-radius: 18px;
  }

  .interface-hero {
    gap: 14px;
    padding-top: 48px;
    padding-bottom: 24px;
  }

  .thread-topbar {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.7rem;
  }

  .thread-panel::before,
  .page-hero::before,
  .not-found-panel::before {
    left: 14px;
    max-width: calc(100% - 28px);
    white-space: normal;
    line-height: 1.2;
  }

  .message-stack {
    padding: 18px;
  }

  .message {
    padding: 14px;
    border-radius: 14px;
  }

  .message span {
    font-size: 0.62rem;
  }

  .message p {
    font-size: 0.96rem;
    line-height: 1.4;
  }

  .message-codex h1,
  h1 {
    font-size: clamp(2.35rem, 12vw, 3.55rem);
    line-height: 1.02;
  }

  .thread-panel .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 18px 18px;
  }

  .button,
  .contact-button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    font-size: 0.82rem;
  }

  .interface-hero .profile-card {
    max-width: 100%;
    padding: 12px;
  }

  .profile-card::before {
    top: -8px;
    left: 14px;
    font-size: 0.58rem;
    transform: rotate(-2deg);
  }

  .interface-hero .portrait-slot,
  .portrait-slot {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .portrait-photo img {
    object-position: center 30%;
  }

  .profile-note strong,
  .profile-note span {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .receipt-strip {
    margin-top: 0;
  }

  .receipt-strip span {
    min-height: 52px;
    padding: 14px;
    font-size: 0.88rem;
  }

  .memo-section,
  .dossier-section,
  .ops-log-section,
  .inventory-section,
  .notes-section,
  .witness-section,
  .profile-log-section,
  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .section-heading h2,
  .philosophy h2,
  .about-copy h2,
  h2,
  .contact-section h2 {
    font-size: clamp(2.05rem, 10vw, 3.25rem);
    line-height: 1.02;
  }

  .hero-lede,
  .philosophy p,
  .contact-section p,
  .case-copy p {
    font-size: 1rem;
    line-height: 1.46;
  }

  .project-grid,
  .writing-grid,
  .testimonial-grid,
  .tool-groups,
  .about-facts {
    grid-template-columns: 1fr;
  }

  .project-card,
  .writing-card,
  .testimonial-grid article,
  .tool-groups article,
  .about-facts article,
  .timeline article {
    padding: 20px;
  }

  .case-list,
  .compact-case-list,
  .experience-list {
    gap: 14px;
  }

  .case-item,
  .experience-item,
  .compact-case-item {
    padding: 16px;
    border-radius: 18px;
  }

  .case-item::before {
    top: 14px;
    left: 16px;
    font-size: 0.58rem;
  }

  .case-copy {
    padding-top: 34px;
  }

  .case-links {
    gap: 14px;
    margin-top: 18px;
  }

  .case-links a {
    font-size: 0.98rem;
  }

  .tag-list {
    gap: 6px;
  }

  .tag-list span {
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .case-stat {
    margin-top: 24px;
  }

  .case-stat strong {
    font-size: clamp(1.45rem, 8vw, 2.45rem);
  }

  .project-shot,
  .experience-shot,
  .compact-case-item .project-shot {
    min-height: 0;
    aspect-ratio: 1 / 0.72;
    padding: 16px;
  }

  .project-shot.has-image {
    padding: 0;
  }

  .project-shot.has-image img {
    padding: 16px;
  }

  .screenshot-shot img,
  .portrait-experience-shot img {
    padding: 0;
  }

  .project-shot.has-image figcaption {
    left: 12px;
    bottom: 12px;
    font-size: 0.66rem;
  }

  .project-shot::before {
    top: 12px;
    left: 12px;
    font-size: 0.56rem;
  }

  .page-hero {
    margin-top: 58px;
    padding: 30px 18px;
  }
}

@media (max-width: 380px) {
  .brand > span:last-child {
    max-width: 125px;
  }

  .message-codex h1,
  h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
  }

  .thread-panel .hero-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  .message-stack {
    padding: 14px;
  }
}

/* Mobile first-screen compression */
@media (max-width: 720px) {
  .interface-hero {
    padding-top: 38px;
    gap: 10px;
  }

  .thread-topbar {
    min-height: 40px;
  }

  .message-stack {
    gap: 9px;
    padding: 14px;
  }

  .message {
    padding: 12px 13px;
  }

  .message span {
    margin-bottom: 5px;
  }

  .message p {
    font-size: 0.9rem;
  }

  .message-system:not(.compact-message),
  .message-user {
    padding-block: 10px;
  }

  .message-codex h1,
  h1 {
    margin-bottom: 10px;
    font-size: clamp(1.95rem, 10vw, 2.85rem);
    line-height: 1.01;
  }

  .message-codex p {
    font-size: 0.93rem;
  }

  .compact-message p {
    font-size: 0.88rem;
  }

  .thread-panel .hero-actions {
    padding: 0 14px 14px;
  }

  .button,
  .contact-button {
    min-height: 46px;
  }

  .interface-hero .profile-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
  }

  .profile-card::before {
    content: "PHOTO";
    top: -9px;
    left: 12px;
    padding: 5px 8px;
  }

  .interface-hero .portrait-slot,
  .portrait-slot {
    width: 86px;
    min-height: 0;
    aspect-ratio: 1;
    border-radius: 14px;
  }

  .profile-note {
    margin-top: 0;
    padding: 0;
    border-top: 0;
  }

  .profile-note strong {
    display: block;
    margin-bottom: 4px;
  }

  .profile-note span {
    display: block;
    color: var(--muted);
  }

  .receipt-strip {
    display: none;
  }

  .project-card-featured {
    min-height: 0;
  }

  .project-card ul {
    margin-top: 18px;
  }

  .page-section,
  .project-list-section,
  .experience-list-section {
    padding-top: 28px;
  }

  .case-item,
  .experience-item,
  .compact-case-item {
    gap: 12px;
  }

  .case-copy h2 {
    font-size: clamp(1.8rem, 8.8vw, 2.8rem);
  }

  .project-shot,
  .experience-shot,
  .compact-case-item .project-shot {
    aspect-ratio: 16 / 9;
  }

  .project-shot.has-image img {
    padding: 12px;
  }

  .screenshot-shot img,
  .portrait-experience-shot img {
    padding: 0;
  }

  .apartay-logo-shot img,
  .duwitt-logo-shot img {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .message-system:not(.compact-message) {
    display: none;
  }

  .message-codex h1,
  h1 {
    font-size: clamp(1.78rem, 9.8vw, 2.45rem);
  }

  .message-codex p {
    font-size: 0.88rem;
  }

  .interface-hero .profile-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .interface-hero .portrait-slot,
  .portrait-slot {
    width: 72px;
  }

  .profile-note strong,
  .profile-note span {
    font-size: 0.8rem;
  }
}

/* Phone hero hard trim */
@media (max-width: 520px) {
  .interface-hero {
    padding-top: 32px;
  }

  .message-system,
  .message-user {
    display: none;
  }

  .message-codex {
    padding: 14px;
  }

  .message-codex h1,
  h1 {
    font-size: clamp(2rem, 9.2vw, 2.65rem);
  }

  .message-codex p {
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .thread-panel .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .button,
  .contact-button {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.72rem;
    white-space: normal;
    text-align: center;
  }

  .interface-hero .profile-card {
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 88px;
  }

  .interface-hero .portrait-slot,
  .portrait-slot {
    width: 68px;
  }
}

@media (max-width: 360px) {
  .thread-panel .hero-actions {
    grid-template-columns: 1fr;
  }
}

/* Mobile catalogue rows */
@media (max-width: 720px) {
  .project-list-section .case-item,
  .experience-list-section .case-item {
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 12px;
    align-items: start;
  }

  .project-list-section .case-copy,
  .experience-list-section .case-copy {
    min-width: 0;
    padding-top: 30px;
  }

  .project-list-section .project-shot,
  .experience-list-section .project-shot,
  .project-list-section .compact-case-item .project-shot,
  .experience-list-section .compact-case-item .project-shot {
    width: 118px;
    min-height: 0;
    aspect-ratio: 1;
    align-self: start;
    margin-top: 34px;
    border-radius: 14px;
  }

  .project-list-section .project-shot::before,
  .experience-list-section .project-shot::before,
  .project-list-section .project-shot figcaption,
  .experience-list-section .project-shot figcaption {
    display: none;
  }

  .project-list-section .project-shot.has-image img,
  .experience-list-section .project-shot.has-image img {
    padding: 10px;
  }

  .project-list-section .screenshot-shot img,
  .experience-list-section .screenshot-shot img,
  .experience-list-section .portrait-experience-shot img {
    padding: 0;
  }

  .project-list-section .case-copy h2,
  .experience-list-section .case-copy h2 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
  }

  .project-list-section .case-copy p,
  .experience-list-section .case-copy p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .project-list-section .case-stat,
  .experience-list-section .case-stat {
    margin-top: 16px;
    padding-top: 12px;
  }

  .project-list-section .case-stat strong,
  .experience-list-section .case-stat strong {
    font-size: 1.35rem;
  }
}

@media (max-width: 390px) {
  .project-list-section .case-item,
  .experience-list-section .case-item {
    grid-template-columns: minmax(0, 1fr) 86px;
  }

  .project-list-section .project-shot,
  .experience-list-section .project-shot,
  .project-list-section .compact-case-item .project-shot,
  .experience-list-section .compact-case-item .project-shot {
    width: 86px;
  }

  .project-list-section .tag-list,
  .experience-list-section .tag-list {
    display: none;
  }
}

/* BurnerX visual */
.burnerx-shot {
  position: relative;
  overflow: hidden;
  border-style: solid;
  border-color: rgba(57, 168, 109, 0.34);
  background:
    linear-gradient(135deg, rgba(57, 168, 109, 0.24), transparent 48%),
    radial-gradient(circle at 80% 18%, rgba(211, 161, 114, 0.28), transparent 16rem),
    #07110c;
}

.burnerx-shot::after {
  content: "mail.tm / no tracking / live inbox";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(57, 168, 109, 0.28);
  color: rgba(240, 238, 235, 0.7);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.burnerx-shot span {
  color: var(--text);
}

.burnerx-shot small {
  color: var(--gold);
}

@media (max-width: 720px) {
  .project-list-section .burnerx-shot {
    display: grid;
    place-items: center;
    text-align: center;
  }

  .project-list-section .burnerx-shot span {
    font-size: 1rem;
  }

  .project-list-section .burnerx-shot small,
  .project-list-section .burnerx-shot::after {
    display: none;
  }
}

