:root {
  --bg: #f3f2ed;
  --surface: #ebeae5;
  --text: #161616;
  --muted: #66655f;
  --line: #cbc9c1;
  --accent: #356b1d;
  --max: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "OpenAI Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-weight: 500; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  max-width: var(--max);
  height: 96px;
  margin: auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
}

.brand {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #16161655;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.06em;
  overflow: hidden;
}

.brand img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.site-nav { display: flex; gap: 34px; }
.site-nav a, .text-link { color: #31312e; font-size: 14px; }
.site-nav a:hover, .text-link:hover { color: #000; }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.button-light { background: var(--text); color: var(--bg); }
.button-light:hover { background: var(--accent); }
.menu-button { display: none; }

.hero {
  min-height: 760px;
  height: 100vh;
  max-height: 980px;
  padding: 150px 40px 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 7.3vw, 112px);
  line-height: .98;
  font-weight: 500;
  letter-spacing: -.052em;
  word-spacing: .16em;
}

.hero-role {
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.scroll-cue svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.projects {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 40px 160px;
}

.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 40px 130px;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  border-top: 1px solid var(--line);
}

.intro-index { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.intro-statement { max-width: 980px; margin: 0; font-size: clamp(32px, 4.5vw, 66px); line-height: 1.12; letter-spacing: -.055em; }
.intro-statement span { color: var(--accent); }
.skill-row { grid-column: 2; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tech-item { min-height: 38px; padding: 8px 14px 8px 10px; display: inline-flex; flex-direction: row; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; transition: border-color .2s, background-color .2s; }
.tech-item:hover { border-color: #8c8a82; background: #ebeae5; }
.tech-item svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--text); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.tech-item svg.filled { fill: var(--text); stroke: none; }
.tech-item span { color: #d4d4d8; font-size: 12px; font-weight: 500; }
.skill-row > .tech-item { color: #42413d; font-size: 12px; padding-inline: 15px; }

.section-heading {
  padding-bottom: 48px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow { margin-bottom: 16px; }

.section-heading h2, .about h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 500;
}

.section-heading > p {
  max-width: 370px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.section-heading-side { max-width: 370px; }
.section-heading-side > p { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr);
  align-items: start;
  gap: 50px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.project-art {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 2px;
  background: #dbe1e4;
}

.project-copy { align-self: start; padding-top: 2px; }
.project-type { margin: 0 0 24px; color: var(--muted); font-size: 12px; }

.project-copy h3 {
  margin: 0 0 24px;
  max-width: 460px;
  font-size: clamp(38px, 4vw, 63px);
  line-height: 1.02;
  letter-spacing: -.06em;
  font-weight: 500;
}

.project-copy > p:not(.project-type) {
  max-width: 430px;
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.project-status {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.art-grid {
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image: linear-gradient(#0b171a22 1px, transparent 1px), linear-gradient(90deg, #0b171a22 1px, transparent 1px);
  background-size: 42px 42px;
}

.art-number {
  position: absolute;
  top: 28px;
  left: 32px;
  color: #111216;
  font-size: 12px;
  font-weight: 700;
}

.art-window {
  position: absolute;
  inset: 19% 14%;
  padding: 18px;
  background: #101216;
  box-shadow: 30px 35px 80px #16252f44;
  transform: rotate(-3deg);
}

.art-window span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #777; }
.art-window span:first-child { background: var(--accent); }
.art-window div { height: 70%; margin-top: 55px; background: linear-gradient(135deg, #1f2425, #0d0e11); border-left: 5px solid var(--accent); }

.project-card-two .project-art { background: #ccb6ff; }
.project-card-maple .project-art { display: block; height: 480px; min-height: 480px; background: #efeeeb; }
.project-card-maple .project-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.12); }
.project-card-donovan .project-art { display: block; height: 480px; min-height: 480px; align-self: stretch; background: #050505; }
.project-card-donovan .project-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.1); }
.orb { position: absolute; border-radius: 50%; filter: blur(3px); }
.orb-one { width: 390px; height: 390px; top: -70px; right: -40px; background: #ff826c; }
.orb-two { width: 330px; height: 330px; bottom: -100px; left: -40px; background: #8cffbb; }
.art-mark { position: absolute; inset: 0; display: grid; place-items: center; color: #111216; font-size: clamp(72px, 10vw, 150px); font-weight: 800; letter-spacing: -.1em; mix-blend-mode: multiply; }

.about {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 40px 80px;
  text-align: left;
}

.experience { max-width: var(--max); margin: 0 auto; padding: 40px 40px 80px; }
.experience-list { border-top: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: 1fr 2.4fr 40px; gap: 42px; padding: 46px 0; border-bottom: 1px solid var(--line); }
.experience-date, .experience-company, .experience-number { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.experience-item h3 { margin: 8px 0 14px; font-size: clamp(25px, 3vw, 39px); line-height: 1.1; font-weight: 500; letter-spacing: -.045em; }
.experience-item div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.experience-number { text-align: right; }

.arrow-link { display: inline-flex; gap: 11px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid #888; font-size: 14px; }
.about-list { border-top: 1px solid var(--line); }
.about-item { display: grid; grid-template-columns: 1fr 2.4fr 40px; align-items: start; gap: 42px; width: 100%; padding: 46px 0; border-bottom: 1px solid var(--line); text-align: left; }
.about-label, .about-number { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.about-number { text-align: right; }
.about-item h3 { margin: 0 0 14px; font-size: clamp(25px, 3vw, 39px); line-height: 1.1; font-weight: 500; letter-spacing: -.045em; }
.about-item div > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.about-links { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 15px; }
.about-contact-item { border-bottom: 0; }
.social-link { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; color: var(--text); font-size: 13px; }
.social-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.social-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.huggingface-button { gap: 9px; }
.huggingface-button img { width: 22px; height: 20px; object-fit: contain; }

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}

footer p { color: var(--muted); font-size: 12px; }
.footer-links { justify-self: end; display: flex; gap: 20px; }

@media (max-width: 850px) {
  .site-header { height: 78px; padding: 0 22px; grid-template-columns: 1fr auto; }
  body.menu-open { overflow: hidden; }
  .menu-button {
    display: block;
    position: relative;
    z-index: 12;
    width: 44px;
    height: 44px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
  }
  .menu-button:hover { background: #ffffff70; border-color: #16161624; }
  .menu-button span:not(.sr-only) { position: absolute; left: 9px; width: 24px; height: 1px; background: currentColor; transition: top .32s ease, transform .32s ease, width .32s ease; }
  .menu-button span:first-child { top: 16px; }
  .menu-button span:nth-child(2) { top: 24px; }
  .menu-button[aria-expanded="true"] { background: #ffffff80; border-color: #1616162b; transform: rotate(90deg); }
  .menu-button[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 10px;
    z-index: 11;
    min-height: calc(100dvh - 20px);
    padding: 112px 34px 88px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    border: 1px solid #ffffff96;
    border-radius: 18px;
    background: #f3f2edb8;
    box-shadow: 0 28px 80px #25241f24, inset 0 1px 0 #ffffffa8;
    backdrop-filter: blur(28px) saturate(155%);
    -webkit-backdrop-filter: blur(28px) saturate(155%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px) scale(.985);
    transition: opacity .35s ease, visibility .35s ease, transform .42s cubic-bezier(.2,.75,.2,1);
  }
  .site-nav::before {
    content: "Navigation";
    position: absolute;
    top: 31px;
    left: 34px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
  }
  .site-nav::after {
    content: "Tudor Iustin · AI Engineer";
    position: absolute;
    right: 34px;
    bottom: 30px;
    left: 34px;
    padding-top: 18px;
    border-top: 1px solid #16161620;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .04em;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); }
  .site-nav a {
    position: relative;
    font-size: clamp(42px, 14vw, 66px);
    line-height: 1.04;
    font-weight: 500;
    letter-spacing: -.06em;
    opacity: 0;
    transform: translateY(18px);
    transition: color .2s ease, opacity .4s ease, transform .45s cubic-bezier(.2,.75,.2,1);
  }
  .site-nav a::after { content: "↗"; margin-left: 10px; font-size: .32em; vertical-align: top; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
  .site-nav a:hover::after { opacity: 1; transform: translate(2px, -2px); }
  .site-nav.is-open a { opacity: 1; transform: translateY(0); }
  .site-nav.is-open a:nth-child(1) { transition-delay: .08s; }
  .site-nav.is-open a:nth-child(2) { transition-delay: .13s; }
  .site-nav.is-open a:nth-child(3) { transition-delay: .18s; }
  .header-actions { display: none; }
  .hero { min-height: 650px; padding-inline: 22px; }
  .projects { padding: 70px 22px 100px; }
  .intro { padding: 70px 22px 95px; grid-template-columns: 1fr; }
  .intro-index { margin: 0; }
  .skill-row { grid-column: 1; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 24px; }
  .section-heading-side { margin-top: 24px; }
  .project-card { grid-template-columns: 1fr; gap: 32px; }
  .project-art { min-height: min(72vw, 460px); }
  .project-card-maple .project-art { height: min(72vw, 460px); min-height: min(72vw, 460px); }
  .project-card-donovan .project-art { height: min(72vw, 460px); min-height: min(72vw, 460px); }
  .project-copy h3 { font-size: 44px; }
  .about { padding: 70px 22px 100px; }
  .about-item { grid-template-columns: 1fr; gap: 15px; padding: 36px 0; }
  .about-number { display: none; }
  .experience { padding: 30px 22px 70px; }
  .experience-item { grid-template-columns: 1fr; gap: 15px; padding: 36px 0; }
  .experience-number { display: none; }
  footer { padding: 35px 22px; grid-template-columns: 1fr 1fr; }
  footer p { display: none; }
  .footer-links { justify-self: end; gap: 14px; }
  .footer-links a:not(:last-child) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Donovan Agent case study */
.case-study { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.case-hero { min-height: 660px; padding-top: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.case-hero h1 { margin: 0; font-size: clamp(62px, 9vw, 132px); line-height: .95; font-weight: 500; letter-spacing: -.065em; }
.case-hero > p:not(.eyebrow) { margin: 30px 0; color: #d2d2d6; font-size: clamp(19px, 2.2vw, 29px); }
.case-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.case-meta span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.case-banner { height: 480px; margin: 0; overflow: hidden; background: #050505; }
.case-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.case-intro, .case-install { padding: 130px 0; display: grid; grid-template-columns: 1fr 3fr; gap: 45px; border-bottom: 1px solid var(--line); }
.case-label { margin: 8px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.case-intro h2, .case-install h2, .case-next h2 { max-width: 900px; margin: 0; font-size: clamp(43px, 6vw, 82px); line-height: 1; letter-spacing: -.06em; }
.case-intro div > p { max-width: 780px; margin: 35px 0; color: var(--muted); font-size: 17px; line-height: 1.85; }
.case-features { padding: 130px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-grid article { min-height: 270px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid span { color: var(--muted); font-size: 11px; }
.feature-grid h3 { margin: 65px 0 14px; font-size: 25px; letter-spacing: -.04em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.case-install pre { max-width: 850px; margin: 40px 0 18px; padding: 28px; overflow-x: auto; border: 1px solid var(--line); background: #0a0b0e; color: #d7ffb4; font-size: 13px; line-height: 1.8; }
.case-install div > p { color: var(--muted); font-size: 12px; }
.install-block + .install-block { margin-top: 25px; }
.install-block h3 { margin: 0 0 10px; color: #d7d7db; font-size: 13px; font-weight: 500; }
.install-block pre { margin: 0; }
.quick-command-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; }
.quick-command-grid div { padding: 18px; border: 1px solid var(--line); }
.quick-command-grid span { display: block; margin-bottom: 12px; color: var(--muted); font-size: 11px; }
.quick-command-grid code { color: #d7ffb4; font-size: 12px; }
.case-next { padding: 160px 0 190px; text-align: center; }
.case-next h2 { margin: 0 auto 45px; }

@media (max-width: 850px) {
  .project-header .project-nav { display: none; }
  .case-study { padding: 0 22px; }
  .case-hero { min-height: 580px; padding-top: 120px; }
  .case-banner { height: min(72vw, 460px); }
  .case-intro, .case-install { padding: 90px 0; grid-template-columns: 1fr; }
  .case-features { padding: 90px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .case-next { padding: 110px 0 140px; }
  .quick-command-grid { grid-template-columns: 1fr; }
}

/* Editorial launch pages */
.launch-page { --bg: #f3f2ed; --surface: #ebeae5; --text: #161616; --muted: #66655f; --line: #cbc9c1; }
.launch-page .site-header { color: var(--text); }
.launch-page .site-nav a, .launch-page .text-link { color: #31312e; }
.launch-page .brand { border-color: #16161655; }
.launch-page .button-light { background: #171717; color: #fff; }
.launch-page .button-light:hover { background: #343431; }
.launch-page .case-study { max-width: 1500px; padding-left: clamp(360px, 31vw, 440px); padding-right: 40px; }
.launch-page .case-hero { min-height: 650px; padding: 175px 0 80px; align-items: flex-start; justify-content: flex-end; text-align: left; border-bottom: 1px solid var(--line); }
.launch-page .case-hero h1 { max-width: 1250px; font-size: clamp(76px, 11.5vw, 176px); font-weight: 500; letter-spacing: -.075em; }
.launch-page .case-hero > p:not(.eyebrow) { max-width: 850px; margin: 40px 0; color: var(--text); font-size: clamp(24px, 3vw, 43px); line-height: 1.15; letter-spacing: -.035em; }
.launch-page .case-meta { justify-content: flex-start; }
.launch-page .case-meta span { border-color: var(--line); color: var(--muted); }
.launch-page .case-banner { height: 430px; margin-top: 38px; background: #e9e8e3; }
.launch-page .case-banner img { object-position: right center; }
.launch-page .maple-case-banner img { object-position: center; }
.launch-contents { position: fixed; top: 150px; left: max(40px, calc((100vw - 1500px) / 2 + 40px)); z-index: 4; width: 292px; padding: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; opacity: 1; pointer-events: auto; transform: none; }
.launch-contents span { margin: 0 0 13px; padding: 0 14px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.launch-contents a { padding: 12px 14px; border-radius: 6px; color: var(--muted); font-size: 13px; line-height: 1.35; transition: color .2s, background-color .2s; }
.launch-contents a:hover { color: var(--text); background: #e5e3dc; }
.launch-contents a.is-active { color: var(--text); background: #dfddd5; }
.launch-page .case-intro, .launch-page .case-install, .article-section { width: 100%; max-width: 900px; margin-left: 0; margin-right: 0; padding: 125px 0; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.launch-page .case-intro h2, .launch-page .case-install h2, .article-section h2 { max-width: 900px; font-size: clamp(48px, 6.2vw, 88px); font-weight: 500; }
.launch-page .case-intro div > p, .article-section div > p { max-width: 760px; color: #4e4d48; font-size: 18px; line-height: 1.75; }
.launch-page .case-label { color: var(--muted); }
.launch-page .case-features { width: 100%; max-width: 900px; margin-left: 0; margin-right: 0; }
.launch-page .section-heading { border-color: var(--line); }
.launch-page .feature-grid { border-color: var(--line); }
.launch-page .feature-grid article { border-color: var(--line); }
.launch-page .feature-grid p { color: var(--muted); }
.launch-page .feature-grid h3 { font-weight: 500; }
.launch-page .case-install pre, .article-section pre { background: #171717; color: #d9fdbb; border: 0; }
.launch-page .quick-command-grid div { border-color: var(--line); }
.launch-page .quick-command-grid code { color: #254f13; }
.metric-strip { width: 100%; max-width: 900px; margin-left: 0; margin-right: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-width: 1px 0 0 1px; }
.metric-strip div { min-height: 220px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-width: 0 1px 1px 0; }
.metric-strip strong { font-size: clamp(35px, 4vw, 60px); font-weight: 500; letter-spacing: -.055em; }
.metric-strip span { color: var(--muted); font-size: 12px; }
.article-section { display: grid; gap: 45px; }
.article-section code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.article-section pre { max-width: 850px; margin: 40px 0; padding: 28px; overflow-x: auto; line-height: 1.75; }
.schema-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.schema-grid div { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.schema-grid span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.schema-grid p { margin: 35px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.detail-list { margin-top: 55px; border-top: 1px solid var(--line); }
.detail-list div { padding: 18px 0; display: grid; grid-template-columns: 1fr 1.7fr; gap: 20px; border-bottom: 1px solid var(--line); }
.detail-list span { color: var(--muted); font-size: 12px; }
.detail-list strong { font-size: 14px; font-weight: 500; }
.tag-cloud { margin: 42px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #44433f; font-size: 12px; }
.editorial-grid { margin: 50px 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-width: 1px 0 0 1px; }
.editorial-grid article { min-height: 175px; padding: 24px; border: 1px solid var(--line); border-width: 0 1px 1px 0; }
.editorial-grid span { font-size: 14px; font-weight: 500; }
.editorial-grid p { margin: 55px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.command-list, .permission-table, .check-list { margin: 48px 0; border-top: 1px solid var(--line); }
.command-list div { padding: 18px 0; display: grid; grid-template-columns: minmax(210px, 1fr) 1.5fr; gap: 28px; border-bottom: 1px solid var(--line); }
.command-list code { font-size: 12px; }
.command-list span { color: var(--muted); font-size: 13px; }
.permission-table div { padding: 22px 0; display: grid; grid-template-columns: 150px 1fr; gap: 30px; border-bottom: 1px solid var(--line); }
.permission-table strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 500; }
.permission-table p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.check-list div { padding: 18px 0; display: grid; grid-template-columns: 30px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.check-list span { color: #356b1d; }
.check-list p { margin: 0; color: #4e4d48; font-size: 14px; line-height: 1.6; }
.note { padding: 18px 20px; border-left: 2px solid var(--text); background: #ebe9e2; color: #4e4d48 !important; font-size: 13px !important; }
.article-section blockquote { max-width: 760px; margin: 45px 0; padding: 28px 0 28px 32px; border-left: 2px solid var(--text); font-size: clamp(22px, 3vw, 35px); line-height: 1.35; letter-spacing: -.025em; }
.launch-page .case-next { max-width: 900px; margin: 0; }
.launch-page footer { border-color: var(--line); }

/* Projects archive */
.projects-index-hero { min-height: 610px !important; }
.projects-index-hero > p:not(.eyebrow) { max-width: 760px !important; }
.project-category {
  width: 100%;
  max-width: 900px;
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 32px;
}
.category-heading {
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 30px;
}
.category-heading .case-label { margin: 9px 0 0; }
.category-heading h2 {
  margin: 0;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 500;
}
.category-heading div > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.empty-project-state {
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
}
.empty-project-state span { color: var(--muted); font-size: 12px; }
.empty-project-state p { margin: 0; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.035em; }
.archive-card {
  padding-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 42px;
  border-top: 1px solid var(--line);
}
.archive-image {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #e7e5df;
}
.archive-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.archive-image:hover img { transform: scale(1.015); }
.archive-copy { padding: 4px 0 2px; }
.archive-copy h3 {
  margin: 0 0 22px;
  font-size: clamp(38px, 4.7vw, 65px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 500;
}
.archive-copy > p:not(.project-type) { margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.archive-tags { margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 7px; }
.archive-tags span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: #4e4d48; font-size: 11px; }

@media (max-width: 850px) {
  .launch-page .case-study { padding: 0 22px; }
  .launch-page .case-hero { min-height: 650px; padding: 150px 0 70px; }
  .launch-page .case-banner { height: min(72vw, 460px); margin-top: 24px; }
  .launch-contents { position: sticky; top: 0; left: auto; width: 100%; min-height: 58px; padding: 10px 0; flex-direction: row; align-items: center; gap: 4px; overflow-x: auto; opacity: 1; pointer-events: auto; transform: none; border-bottom: 1px solid var(--line); background: #f3f2edf2; backdrop-filter: blur(12px); }
  .launch-contents span { display: none; }
  .launch-contents a { flex: 0 0 auto; padding: 9px 11px; }
  .launch-page .case-intro, .launch-page .case-install, .article-section { width: 100%; margin-left: 0; padding: 95px 0; grid-template-columns: 1fr; }
  .launch-page .case-features, .metric-strip { width: 100%; margin-left: 0; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-strip div { min-height: 165px; }
  .schema-grid { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; }
  .command-list div, .permission-table div { grid-template-columns: 1fr; gap: 9px; }
  .projects-index-hero { min-height: 560px !important; }
  .project-category { padding: 90px 0; scroll-margin-top: 58px; }
  .category-heading { grid-template-columns: 1fr; gap: 18px; padding-bottom: 36px; }
  .category-heading .case-label { margin: 0; }
  .archive-card { grid-template-columns: 1fr; gap: 30px; }
  .archive-image { min-height: min(68vw, 430px); }
}

/* OpenAI-style project index */
.projects-index-page .site-header { position: absolute; }
.projects-archive {
  width: 100%;
  max-width: var(--max);
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: 150px 40px 180px;
}
.archive-header h1 {
  margin: 0 0 28px;
  font-size: clamp(44px, 4.3vw, 66px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 500;
}
.archive-toolbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.archive-filters { display: flex; align-items: center; gap: 30px; }
.archive-filters button {
  position: relative;
  min-height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.archive-filters button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: transparent;
}
.archive-filters button:hover,
.archive-filters button.is-active { color: var(--text); }
.archive-filters button.is-active::after { background: var(--text); }
.archive-result-count { margin: 0; color: var(--muted); font-size: 13px; }
.project-results { border-bottom: 1px solid var(--line); }
.project-result {
  min-height: 170px;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(0, 3.35fr);
  gap: 52px;
  border-top: 1px solid var(--line);
}
.project-result:first-child { border-top: 0; }
.project-result[hidden] { display: none; }
.project-result-meta p,
.project-result-meta time { display: block; margin: 0; font-size: 13px; }
.project-result-meta time { margin-top: 20px; color: var(--muted); }
.project-result-copy { max-width: 850px; }
.project-result-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 500;
}
.project-result-copy h2 a { display: inline-flex; align-items: baseline; gap: 7px; }
.project-result-copy h2 span { font-size: .62em; transition: transform .2s ease; }
.project-result-copy h2 a:hover span { transform: translate(2px, -2px); }
.project-result-copy > p { max-width: 790px; margin: 0; color: #4e4d48; font-size: 14px; line-height: 1.7; }
.project-results-empty { min-height: 170px; padding: 38px 0; border-top: 0; }
.project-results-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.project-results-empty[hidden] { display: none; }

@media (max-width: 850px) {
  .projects-archive { padding: 125px 22px 110px; }
  .archive-header h1 { margin-bottom: 24px; }
  .archive-toolbar { align-items: flex-end; }
  .archive-filters { max-width: 100%; gap: 22px; overflow-x: auto; }
  .archive-filters button { min-height: 55px; flex: 0 0 auto; font-size: 14px; }
  .archive-result-count { display: none; }
  .project-result { min-height: 0; padding: 30px 0 36px; grid-template-columns: 1fr; gap: 28px; }
  .project-result-meta { display: flex; justify-content: space-between; gap: 20px; }
  .project-result-meta time { margin-top: 0; }
  .project-result-copy h2 { font-size: 25px; }
}
